/* ============================================================
   RÉINITIALISATION
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================================
   GÉNÉRAL — CORPS ET HTML
   ============================================================ */

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background: #03050f;
  color: #f0f4ff;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   BARRE DE DÉFILEMENT
   ============================================================ */

::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: #03050f; }
::-webkit-scrollbar-thumb { background: rgba(200, 169, 110, 0.3); border-radius: 2px; }

/* ============================================================
   CURSEUR PERSONNALISÉ
   ============================================================ */

.curseur {
  position: fixed;
  width: 6px;
  height: 6px;
  background: #c8a96e;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px #c8a96e;
}

.curseur-anneau {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(200, 169, 110, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

/* ============================================================
   FOND — CANVAS ÉTOILES ET NÉBULEUSE
   ============================================================ */

#champ-etoiles {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
}

.fond-nebuleuse {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(30, 20, 80, 0.5) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(10, 40, 80, 0.4) 0%, transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(40, 10, 60, 0.3) 0%, transparent 60%);
}

/* ============================================================
   CONTENU DE PAGE — CONTENEUR PRINCIPAL
   ============================================================ */

.contenu-page {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   EN-TÊTE ET NAVIGATION
   ============================================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 64px;
  border-bottom: 1px solid rgba(200, 169, 110, 0.1);
  backdrop-filter: blur(12px);
  background: rgba(3, 5, 15, 0.4);
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 26px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #e8d4a8;
  text-decoration: none;
}

.logo span {
  color: #c4c4c4;
  font-style: italic;
}

nav {
  display: flex;
  gap: 48px;
  align-items: center;
}

nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav li {
  display: inline-block;
}

nav a {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #a8b8d8;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 100%;
  height: 1px;
  background: #c8a96e;
  transition: right 0.3s;
}

nav a:hover         { color: #e8d4a8; }
nav a:hover::after  { right: 0; }

nav a.lien-special {
  padding: 7px 19px;
  border: 1px solid rgba(200, 169, 110, 0.3);
  color: #c8a96e;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
}

nav a.lien-special::after  { display: none; }
nav a.lien-special:hover   { background: rgba(200, 169, 110, 0.1); color: #e8d4a8; }

/* ============================================================
   MENU HAMBURGER (MOBILE)
   ============================================================ */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #c8a96e;
  transition: all 0.3s ease;
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(3, 5, 15, 0.95);
    backdrop-filter: blur(12px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(200, 169, 110, 0.1);
  }

  .nav-menu.active {
    max-height: 400px;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 0;
    padding: 24px;
  }

  .nav-menu li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(200, 169, 110, 0.06);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    font-size: 13px;
    display: block;
  }
}

/* ============================================================
   HERO — SECTION PRINCIPALE D'ACCUEIL
   ============================================================ */

.hero {
  min-height: 800px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 128px 64px 64px;
  gap: 64px;
}

.hero-surtitle {
  font-size: 10px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-surtitle::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: #c8a96e;
}

.hero-titre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 70px;
  font-weight: 300;
  line-height: 74px;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-titre em {
  font-style: italic;
  color: #e8d4a8;
  display: block;
}

.hero-description {
  font-size: 14px;
  line-height: 27px;
  color: #c4c4c4;
  max-width: 400px;
  margin-bottom: 48px;
  letter-spacing: 1px;
}

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}

.btn-principal {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background: #c8a96e;
  color: #03050f;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.3s;
}

.btn-principal:hover { background: #e8d4a8; }
.btn-principal svg   { width: 14px; height: 14px; }

.btn-fantome {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a8b8d8;
  text-decoration: none;
  transition: color 0.3s;
}

.btn-fantome:hover  { color: #e8d4a8; }
.btn-fantome::after { content: '→'; }

.hero-visuel {
  display: flex;
  justify-content: center;
  align-items: center;
}

.constellation-conteneur {
  position: relative;
  width: 480px;
  height: 480px;
}

.constellation-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ============================================================
   SVG — LIGNES ET ÉTOILES DE CONSTELLATION
   ============================================================ */

.const-ligne {
  stroke: rgba(200, 169, 110, 0.25);
  stroke-width: 1;
  fill: none;
}

.const-etoile {
  fill: #f0f4ff;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.7));
}

.const-etoile.etoile-or { fill: #e8d4a8; }

.const-etiquette {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 8px;
  fill: #c4c4c4;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cercle-orbital {
  fill: none;
  stroke: rgba(168, 184, 216, 0.05);
  stroke-width: 1;
}

/* ============================================================
   BARRE DE STATISTIQUES
   ============================================================ */

.barre-stats {
  display: flex;
  border-top: 1px solid rgba(200, 169, 110, 0.1);
  border-bottom: 1px solid rgba(200, 169, 110, 0.1);
  margin: 0 64px;
}

.stat {
  flex: 1;
  padding: 32px;
  border-right: 1px solid rgba(200, 169, 110, 0.1);
  text-align: center;
  transition: background 0.3s;
}

.stat:last-child { border-right: none; }
.stat:hover      { background: rgba(200, 169, 110, 0.04); }

.stat-chiffre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 300;
  color: #e8d4a8;
  display: block;
  line-height: 38px;
  margin-bottom: 6px;
}

.stat-libelle {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c4c4c4;
}

/* ============================================================
   SECTION VEDETTES — GRILLE DE CARTES
   ============================================================ */

.section-vedettes {
  padding: 96px 64px;
}

.en-tete-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.titre-section {
  font-family: 'Cormorant Garamond', serif;
  font-size: 35px;
  font-weight: 300;
  letter-spacing: 1px;
}

.titre-section span {
  display: block;
  font-size: 10px;
  font-family: 'Josefin Sans', sans-serif;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 8px;
}

.voir-tout {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c4c4c4;
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.voir-tout:hover  { color: #c8a96e; }
.voir-tout::after { content: '→'; }

.grille-cartes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(200, 169, 110, 0.1);
  border: 1px solid rgba(200, 169, 110, 0.1);
}

.carte {
  background: #080c1e;
  padding: 40px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.3s;
}

.carte:hover { background: #0d1535; }

.carte-saison {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.carte-saison::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c8a96e;
}

.carte-titre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 27px;
  font-weight: 300;
  margin-bottom: 5px;
  line-height: 30px;
}

.carte-sous-titre {
  font-size: 11px;
  color: #c4c4c4;
  letter-spacing: 2px;
  margin-bottom: 24px;
  font-style: italic;
}

.carte-description {
  font-size: 12px;
  line-height: 22px;
  color: #c4c4c4;
  margin-bottom: 32px;
}

.carte-mini-svg {
  display: block;
  margin-bottom: 24px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.carte:hover .carte-mini-svg { opacity: 1; }

.carte-lien {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c4c4c4;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.carte:hover .carte-lien { color: #c8a96e; }
.carte-lien::after       { content: '→'; }

.carte-numero {
  position: absolute;
  top: 32px;
  right: 32px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  font-weight: 300;
  color: rgba(200, 169, 110, 0.06);
  line-height: 80px;
  pointer-events: none;
}

/* ============================================================
   BANDEAU CTA
   ============================================================ */

.bandeau-cta {
  margin: 0 64px 96px;
  border: 1px solid rgba(200, 169, 110, 0.15);
  background: linear-gradient(135deg, rgba(13, 21, 53, 0.8), rgba(8, 12, 30, 0.8));
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

.bandeau-titre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 29px;
  font-weight: 300;
  margin-bottom: 12px;
}

.bandeau-texte {
  font-size: 13px;
  color: #c4c4c4;
  line-height: 22px;
  letter-spacing: 1px;
}

/* ============================================================
   PIED DE PAGE
   ============================================================ */

footer {
  border-top: 1px solid rgba(200, 169, 110, 0.15);
  padding: 72px 64px 50px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  background: rgba(3, 5, 15, 0.45);
  backdrop-filter: blur(12px);
}

.pied-copyright {
  font-size: 18px;
  letter-spacing: 2px;
  color: #c4c4c4;
  margin-bottom: 12px;
}

.pied-liens {
  display: flex;
  gap: 32px;
}

.pied-liens a {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c4c4c4;
  text-decoration: none;
  transition: color 0.3s;
}

.pied-liens a:hover { color: #c8a96e; }

/* ============================================================
   PAGE GALERIE
   ============================================================ */

.upload-section {
  margin: 120px 64px 40px;
  display: flex;
  justify-content: center;
}

.upload-section form {
  display: flex;
  gap: 12px;
  align-items: center;
  background: linear-gradient(135deg, rgba(13, 21, 53, 0.6), rgba(8, 12, 30, 0.6));
  padding: 18px 24px;
  border: 1px solid rgba(200, 169, 110, 0.08);
  border-radius: 4px;
}

.upload-section label {
  color: #c4c4c4;
  font-size: 12px;
  letter-spacing: 2px;
}

.upload-section input[type="file"] {
  color: #f0f4ff;
}

.upload-section input[type="submit"] {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: #c8a96e;
  color: #03050f;
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
}

.galerie {
  margin: 40px 64px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.galerie img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  border: 1px solid rgba(200, 169, 110, 0.06);
  background: #080c1e;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, filter 0.25s ease;
  filter: grayscale(100%);
}

.galerie img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border-color: #c8a96e;
  filter: grayscale(0%);
}

/* ============================================================
   PAGE RECHERCHE — FORMULAIRE
   ============================================================ */

.section-recherche {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 160px 64px 80px;
}

.recherche-conteneur {
  width: 100%;
  max-width: 600px;
  background: linear-gradient(135deg, rgba(13, 21, 53, 0.6), rgba(8, 12, 30, 0.6));
  border: 1px solid rgba(200, 169, 110, 0.08);
  padding: 48px;
  border-radius: 6px;
  text-align: center;
}

.recherche-titre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 32px;
}

.formulaire-recherche {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.groupe-recherche-simple {
  display: flex;
  gap: 12px;
  align-items: center;
}

.groupe-recherche-simple input {
  flex: 1;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(168, 184, 216, 0.08);
  color: #f0f4ff;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Josefin Sans', sans-serif;
  transition: border-color 0.3s ease;
}

.groupe-recherche-simple input::placeholder {
  color: rgba(168, 184, 216, 0.4);
}

.groupe-recherche-simple input:focus {
  outline: none;
  border-color: #c8a96e;
  box-shadow: 0 0 8px rgba(200, 169, 110, 0.15);
}

.groupe-recherche-simple .btn-recherche {
  padding: 14px 24px;
  background: #c8a96e;
  color: #03050f;
  border: none;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.groupe-recherche-simple .btn-recherche:hover {
  background: #e8d4a8;
}

/* ============================================================
   PAGE RÉSULTATS DE RECHERCHE
   ============================================================ */

.message-succes {
  color: #e8d4a8;
  font-size: 14px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: rgba(232, 212, 168, 0.08);
  border-left: 3px solid #c8a96e;
  border-radius: 2px;
}

.message-erreur {
  color: #ff6b6b;
  font-size: 14px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: rgba(255, 107, 107, 0.08);
  border-left: 3px solid #ff6b6b;
  border-radius: 2px;
}

.message-info {
  font-size: 13px;
  color: #c4c4c4;
  margin-top: 12px;
}

.lien-resultat {
  color: #c8a96e;
  text-decoration: none;
  transition: color 0.3s ease;
}

.lien-resultat:hover {
  color: #e8d4a8;
  text-decoration: underline;
}

.resultat-constellation {
  margin: 24px 0;
  padding: 18px 20px;
  background: rgba(200, 169, 110, 0.04);
  border: 1px solid rgba(200, 169, 110, 0.1);
  border-radius: 4px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.resultat-constellation:hover {
  background: rgba(200, 169, 110, 0.08);
  border-color: #c8a96e;
}

.resultat-titre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  color: #e8d4a8;
  margin-bottom: 12px;
}

.resultat-info {
  font-size: 12px;
  color: #c4c4c4;
  margin: 6px 0;
  letter-spacing: 1px;
}

.resultat-description {
  font-size: 13px;
  color: #f0f4ff;
  line-height: 21px;
  margin-top: 12px;
}

.btn-retour {
  display: inline-block;
  padding: 12px 24px;
  background: #c8a96e;
  color: #03050f;
  border: none;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-retour:hover { background: #e8d4a8; }

.btn-nouvelle-recherche {
  padding: 14px 24px;
  background: #c8a96e;
  color: #03050f;
  border: none;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.btn-nouvelle-recherche:hover {
  background: #e8d4a8;
  color: #03050f;
}

/* ============================================================
   PAGE LISTING — TABLEAU DES CONSTELLATIONS
   ============================================================ */

/* Grille principale des cartes */
.listing-grille {
  padding: 140px 64px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

/* Masquer les <hr> inter-cartes, les bordures font le travail */
.listing-grille > hr {
  display: none;
}

/* Carte constellation */
.listing-grille > div {
  background: linear-gradient(135deg, rgba(13, 21, 53, 0.6), rgba(8, 12, 30, 0.6));
  border: 1px solid rgba(200, 169, 110, 0.12);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.listing-grille > div:hover {
  border-color: rgba(200, 169, 110, 0.35);
  background: linear-gradient(135deg, rgba(13, 21, 53, 0.78), rgba(8, 12, 30, 0.78));
}

/* Titre — Nom + Abréviation */
.listing-grille > div > h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  color: #e8d4a8;
  letter-spacing: 1px;
  line-height: 1.2;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(200, 169, 110, 0.15);
  margin-bottom: 4px;
}

/* Étiquettes Famille & Hémisphère */
.listing-grille > div > p:nth-child(2),
.listing-grille > div > p:nth-child(3) {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c8a96e;
  font-weight: 400;
}

/* Texte Histoire */
.listing-grille > div > p:nth-child(4) {
  font-size: 13px;
  color: #c4c4c4;
  line-height: 22px;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Image de la constellation — conteneur */
.listing-img-conteneur {
  margin-top: 8px;
  border-radius: 3px;
  border: 1px solid rgba(200, 169, 110, 0.1);
  overflow: hidden;
  background: rgba(3, 5, 15, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: border-color 0.3s ease;
}

.listing-grille > div:hover .listing-img-conteneur {
  border-color: rgba(200, 169, 110, 0.25);
}

/* Conteneur image — hauteur fixe pour uniformiser les cartes */
.listing-img-conteneur {
  height: 200px;
}

/* Image paysage : remplit le conteneur en recadrant */
.listing-img-conteneur img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Image portrait : centrée, recadrée proprement */
.listing-img-conteneur img.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 1024px) {
  .listing-grille {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .listing-grille {
    grid-template-columns: 1fr;
    padding: 140px 20px 60px;
  }
}



.table-container {
  margin: 120px 64px 80px;
  overflow-x: auto;
}

.tableau-constellations {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(135deg, rgba(13, 21, 53, 0.6), rgba(8, 12, 30, 0.6));
  border: 1px solid rgba(200, 169, 110, 0.08);
}

.tableau-constellations thead {
  background: rgba(3, 5, 15, 0.6);
  border-bottom: 2px solid rgba(200, 169, 110, 0.15);
}

.tableau-constellations th {
  padding: 16px;
  text-align: left;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c8a96e;
  font-weight: 400;
}

.tableau-constellations td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(200, 169, 110, 0.06);
  color: #f0f4ff;
  font-size: 13px;
  line-height: 21px;
}

.tableau-constellations tbody tr {
  transition: background 0.25s ease;
}

.tableau-constellations tbody tr:hover {
  background: rgba(200, 169, 110, 0.05);
}

.tableau-constellations tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   PAGE CONTACT — FORMULAIRE
   ============================================================ */

.cart {
  margin: 120px 64px 40px;
  display: flex;
  justify-content: center;
}

.form-part {
  width: 100%;
  max-width: 680px;
  background: linear-gradient(135deg, rgba(13, 21, 53, 0.6), rgba(8, 12, 30, 0.6));
  border: 1px solid rgba(200, 169, 110, 0.08);
  padding: 40px;
  border-radius: 6px;
}

.form-part h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 18px;
}

.form-part .message-confirmation {
  color: #e8d4a8;
  margin-bottom: 12px;
}

.form-part form label {
  display: block;
  font-size: 12px;
  color: #c4c4c4;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.form-part input[type="text"],
.form-part input[type="email"],
.form-part textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(168, 184, 216, 0.06);
  color: #f0f4ff;
  border-radius: 4px;
  margin-bottom: 18px;
  font-size: 14px;
}

.form-part input::placeholder,
.form-part textarea::placeholder {
  color: rgba(168, 184, 216, 0.4);
}

.form-part button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: #c8a96e;
  color: #03050f;
  border: none;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
}

/* ============================================================
   RESPONSIVE — ÉCRANS INFÉRIEURS À 576PX
   ============================================================ */

@media (max-width: 576px) {

  body            { cursor: auto; }
  .curseur,
  .curseur-anneau { display: none; }

  header {
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
    position: relative;
  }

  .logo       { font-size: 21px; }
  nav         { gap: 24px; }
  nav a       { font-size: 10px; letter-spacing: 2px; }
  nav a.lien-special { padding: 6px 13px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 32px 24px 48px;
    gap: 40px;
    text-align: center;
  }

  .hero-surtitle         { justify-content: center; }
  .hero-surtitle::before { display: none; }
  .hero-titre            { font-size: 45px; line-height: 48px; }

  .hero-description {
    max-width: 100%;
    font-size: 13px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-principal {
    width: 100%;
    justify-content: center;
  }

  .hero-visuel             { order: -1; }
  .constellation-conteneur { width: 260px; height: 260px; }

  .barre-stats { flex-wrap: wrap; margin: 0 24px; }

  .stat {
    flex: 0 0 50%;
    padding: 24px 16px;
    border-bottom: 1px solid rgba(200, 169, 110, 0.1);
  }

  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-bottom: none; }
  .stat:nth-child(4) { border-right: none; border-bottom: none; }

  .stat-chiffre { font-size: 29px; line-height: 29px; }

  .section-vedettes { padding: 48px 24px; }

  .en-tete-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
  }

  .titre-section     { font-size: 27px; }
  .grille-cartes     { grid-template-columns: 1fr; }
  .carte             { padding: 32px 24px; }

  .bandeau-cta {
    grid-template-columns: 1fr;
    margin: 0 24px 48px;
    padding: 40px 24px;
    gap: 24px;
    text-align: center;
  }

  .bandeau-titre { font-size: 22px; }

  .bandeau-cta .btn-principal {
    width: 100%;
    justify-content: center;
  }

  footer {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px 24px;
    text-align: center;
  }

  .pied-liens {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .upload-section  { margin: 64px 24px 24px; }
  .galerie         { margin: 24px 24px 64px; gap: 12px; grid-template-columns: repeat(2, 1fr); }
  .galerie img     { max-height: 200px; }

  .section-recherche    { padding: 80px 24px 40px; }
  .recherche-conteneur  { padding: 24px; }
  .recherche-titre      { font-size: 26px; }
  .groupe-recherche-simple            { flex-direction: column; }
  .groupe-recherche-simple .btn-recherche { width: 100%; }

  .table-container { margin: 80px 24px 40px; }
  .tableau-constellations           { font-size: 11px; }
  .tableau-constellations th,
  .tableau-constellations td        { padding: 10px 8px; }

  .listing-grille {
    grid-template-columns: 1fr;
    padding: 100px 20px 40px;
    gap: 20px;
  }

  .cart      { margin: 64px 24px 24px; }
  .form-part { padding: 24px; }
  .form-part h1 { font-size: 24px; text-align: center; }

  .entete-resultats {
    padding: 120px 20px 0;
  }
  .entete-resultats .recherche-titre { font-size: 26px; }
}

/* ============================================================
   PAGE RÉSULTATS DE RECHERCHE — EN-TÊTE
   ============================================================ */

.entete-resultats {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  padding: 160px 64px 0;
}

.entete-resultats .recherche-titre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 300;
  color: #e8d4a8;
  letter-spacing: 2px;
  line-height: 1.2;
}

.entete-resultats .recherche-titre em {
  font-style: italic;
  color: #c8a96e;
}

.btn-retour-recherche {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background: #c8a96e;
  color: #03050f;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.3s;
  white-space: nowrap;
}

.btn-retour-recherche:hover {
  background: #e8d4a8;
}

/* ============================================================
   ADMINISTRATION — STYLES COMMUNS
   ============================================================ */

.admin-wrapper {
  position: relative;
  z-index: 1;
  margin-top: 160px;
  padding: 0 64px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.admin-header {
  width: 100%;
  max-width: 1100px;
  margin-bottom: 40px;
}

.admin-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c8a96e;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.3s;
}

.admin-breadcrumb::before {
  content: '←';
  font-size: 14px;
}

.admin-breadcrumb:hover {
  color: #e8d4a8;
}

.admin-titre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 2px;
  color: #e8d4a8;
  margin-bottom: 8px;
}

.admin-titre em {
  font-style: italic;
  color: #c8a96e;
}

.admin-sous-titre {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #a8b8d8;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-sous-titre::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(200,169,110,0.2), transparent);
}

.admin-divider {
  width: 100%;
  max-width: 1100px;
  height: 1px;
  background: linear-gradient(to right, rgba(200,169,110,0.15), transparent);
  margin-bottom: 40px;
}

/* ============================================================
   DASHBOARD — GRILLE DE CARTES
   ============================================================ */

.dashboard-grille {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dashboard-carte {
  position: relative;
  background: linear-gradient(135deg, rgba(13, 21, 53, 0.7), rgba(8, 12, 30, 0.7));
  border: 1px solid rgba(200, 169, 110, 0.1);
  border-radius: 4px;
  padding: 36px 32px;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-carte::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(200,169,110,0.04), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.dashboard-carte:hover {
  border-color: rgba(200, 169, 110, 0.3);
  transform: translateY(-3px);
}

.dashboard-carte:hover::before {
  opacity: 1;
}

.dashboard-carte-icone {
  font-size: 28px;
  margin-bottom: 4px;
  opacity: 0.85;
}

.dashboard-carte-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c8a96e;
}

.dashboard-carte-titre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  color: #e8d4a8;
  letter-spacing: 1px;
}

.dashboard-carte-desc {
  font-size: 12px;
  color: #a8b8d8;
  letter-spacing: 1px;
  line-height: 20px;
}

.dashboard-carte-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c8a96e;
  margin-top: 8px;
  transition: gap 0.3s;
}

.dashboard-carte-action::after {
  content: '→';
}

.dashboard-carte:hover .dashboard-carte-action {
  gap: 14px;
}

/* ============================================================
   GESTION — TABLEAU ADMIN
   ============================================================ */

.admin-table-wrapper {
  width: 100%;
  max-width: 1200px;
  overflow-x: auto;
}

.admin-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.btn-ajouter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  background: rgba(200, 169, 110, 0.08);
  border: 1px solid rgba(200, 169, 110, 0.25);
  color: #c8a96e;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.btn-ajouter::before {
  content: '+';
  font-size: 16px;
  line-height: 1;
}

.btn-ajouter:hover {
  background: rgba(200, 169, 110, 0.15);
  border-color: rgba(200, 169, 110, 0.5);
  color: #e8d4a8;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(135deg, rgba(13, 21, 53, 0.55), rgba(8, 12, 30, 0.55));
  border: 1px solid rgba(200, 169, 110, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.admin-table thead {
  background: rgba(3, 5, 15, 0.5);
  border-bottom: 1px solid rgba(200, 169, 110, 0.12);
}

.admin-table th {
  padding: 15px 18px;
  text-align: left;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c8a96e;
  font-weight: 400;
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(200, 169, 110, 0.05);
  color: #e0e8ff;
  font-size: 13px;
  line-height: 21px;
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: background 0.2s;
}

.admin-table tbody tr:hover {
  background: rgba(200, 169, 110, 0.04);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table td img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(200, 169, 110, 0.1);
  display: block;
}

.btn-modifier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(168, 184, 216, 0.05);
  border: 1px solid rgba(168, 184, 216, 0.15);
  color: #a8b8d8;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-modifier:hover {
  background: rgba(168, 184, 216, 0.1);
  border-color: rgba(168, 184, 216, 0.35);
  color: #e8d4a8;
}

.btn-supprimer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(180, 60, 60, 0.05);
  border: 1px solid rgba(180, 60, 60, 0.2);
  color: #c87070;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-supprimer:hover {
  background: rgba(180, 60, 60, 0.12);
  border-color: rgba(180, 60, 60, 0.4);
}

/* ============================================================
   LISTING — PAGE DES CONSTELLATIONS
   ============================================================ */

.listing-entete {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 3rem;
}

.listing-surtitle {
  font-size: 10px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #c8a96e;
  display: flex;
  align-items: center;
  gap: 16px;
}

.listing-surtitle::before,
.listing-surtitle::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: #c8a96e;
}

.listing-titre {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 3rem;
  letter-spacing: 4px;
  color: #e8d4a8;
  text-align: center;
}

.listing-titre em {
  font-style: italic;
  color: #c8a96e;
}

.contenu-page.listing {
  padding-top: 160px;
  padding-left: 64px;
  padding-right: 64px;
}

/* ============================================================
   FORMULAIRE ADMIN
   ============================================================ */

.admin-form-wrapper {
  width: 100%;
  max-width: 680px;
}

.admin-divider h2 {
  font-family: 'Josefin Sans', sans-serif;
}

.admin-form {
  background: linear-gradient(135deg, rgba(13, 21, 53, 0.6), rgba(8, 12, 30, 0.6));
  border: 1px solid rgba(200, 169, 110, 0.1);
  border-radius: 6px;
  padding: 48px;
}

.admin-form-groupe {
  margin-bottom: 24px;
}

.admin-form-label {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 10px;
  font-weight: 400;
}

.admin-form-input,
.admin-form-textarea,
.admin-form-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(168, 184, 216, 0.1);
  border-radius: 3px;
  color: #f0f4ff;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  transition: border-color 0.3s, background 0.3s;
  outline: none;
  -webkit-appearance: none;
}

.admin-form-input:focus,
.admin-form-textarea:focus,
.admin-form-select:focus {
  border-color: rgba(200, 169, 110, 0.4);
  background: rgba(200, 169, 110, 0.02);
}

.admin-form-input::placeholder,
.admin-form-textarea::placeholder {
  color: rgba(168, 184, 216, 0.25);
}

.admin-form-textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c8a96e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.admin-form-select option {
  background: #0d1535;
  color: #f0f4ff;
}

.admin-form-file-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(168, 184, 216, 0.15);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  font-size: 12px;
  color: #a8b8d8;
  letter-spacing: 1px;
}

.admin-form-file-label:hover {
  border-color: rgba(200, 169, 110, 0.3);
  background: rgba(200, 169, 110, 0.02);
  color: #c8a96e;
}

.admin-form-file {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.btn-soumettre {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background: #c8a96e;
  color: #03050f;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 8px;
}

.btn-soumettre:hover {
  background: #e8d4a8;
}

/* ============================================================
   RESPONSIVE ADMIN
   ============================================================ */

@media (max-width: 900px) {
  .dashboard-grille {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .admin-wrapper {
    margin-top: 100px;
    padding: 0 20px 60px;
  }

  .admin-titre {
    font-size: 32px;
  }

  .dashboard-grille {
    grid-template-columns: 1fr;
  }

  .admin-form {
    padding: 28px 24px;
  }
}