/* =====================================================================
   L'Horlogerie d'Excellence — feuille de style unique
   Palette bleu nuit + laiton, reprise de la carte de visite de la maison.
   Refonte 2026-10 (maquette du client) : titres en Georgia, accueil en blocs
   alternés bleu nuit / blanc crème. Les pages intérieures restent sombres.
   2026-11-08 : écran « Comptes » de l'administration, bandeau admin en mobile,
   formulaire de montre aligné.
   ===================================================================== */

/* Polices hébergées sur le site (depuis le 2026-09-30, plus d'appel à Google).
   Georgia est une police système (Windows, macOS, iOS) : sa licence interdit de
   l'héberger, elle est donc appelée par son nom, avec un serif de secours. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url("assets/fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("assets/fonts/montserrat.woff2") format("woff2");
}

:root {
  /* Couleurs de la palette */
  --nuit:        #0C1726;
  --nuit-2:      #111F33;
  --nuit-3:      #182B44;
  --marine:      #1B3557;
  --or:          #C2A165;
  --or-clair:    #E2CB97;
  --or-sombre:   #7E6430;
  --creme:       #F5F2EC;
  --creme-2:     #ECE7DD;
  --creme-3:     #E2DCCF;
  --alerte:      #C06B5A;
  --alerte-texte:#E9A899;

  /* Tokens du thème : valeurs du thème sombre (par défaut). Une section
     .section--claire les redéfinit (voir plus bas), les composants n'ont
     pas à savoir sur quel fond ils sont posés. */
  --fond:         var(--nuit);
  --fond-2:       var(--nuit-2);
  --fond-3:       var(--nuit-3);
  --texte:        #ECEFF4;
  --texte-doux:   #9FAEC2;
  --accent-texte: var(--or-clair);   /* liens et mots en couleur */
  --surtitre:     var(--or);
  --ligne:        rgba(194, 161, 101, .22);
  --ligne-froide: rgba(159, 174, 194, .16);
  --champ-fond:   var(--nuit-2);

  /* Typographie */
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  /* Le nom de la maison à côté du monogramme, repris de la carte de visite. */
  --logo:  "Montserrat", "Inter", -apple-system, "Segoe UI", Arial, sans-serif;

  /* Géométrie */
  --radius: 2px;
  --gouttiere: clamp(1.25rem, 5vw, 3rem);
  --largeur: 1180px;
  --section: clamp(4.5rem, 10vw, 8rem);
  --hauteur-header: 7rem;

  /* Mouvement */
  --transition: 240ms cubic-bezier(.2, .6, .3, 1);
}

/* Thème clair : les blocs crème de l'accueil. */
.section--claire {
  --fond:         var(--creme);
  --fond-2:       var(--creme-2);
  --fond-3:       var(--creme-3);
  --texte:        var(--nuit);
  --texte-doux:   #4B586A;
  --accent-texte: var(--or-sombre);
  --surtitre:     var(--or-sombre);
  --ligne:        rgba(126, 100, 48, .35);
  --ligne-froide: rgba(12, 23, 38, .14);
  --champ-fond:   #FFFFFF;
  background: var(--fond);
  color: var(--texte);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--nuit);
  color: var(--texte);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.005em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.25; }
h1 em, h2 em, .accroche em { font-style: italic; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-texte); text-decoration-color: var(--ligne); text-underline-offset: .22em; }
a:hover { color: var(--texte); }

:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

/* --- Ossature -------------------------------------------------------- */
.conteneur { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--nuance { background: var(--nuit-2); }
.espace-haut { margin-top: 2.5rem; }

/* Surtitre de bloc : « 01 / Notre regard ». */
.surtitre {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--surtitre);
  margin: 0 0 1.1rem;
}
.entete-section { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.entete-section--centre { margin-inline: auto; text-align: center; }
.chapo { color: var(--texte-doux); font-size: 1.08em; }
/* Phrase d'accroche en serif, sous un titre de bloc. */
.accroche {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 .8em;
}

/* --- Boutons et liens d'action --------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  border: 1px solid var(--or);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary { background: var(--or); color: var(--nuit); }
.btn-primary:hover { background: var(--or-clair); border-color: var(--or-clair); color: var(--nuit); }
.btn-ghost { background: transparent; color: var(--accent-texte); }
.btn-ghost:hover { background: color-mix(in srgb, var(--or) 14%, transparent); color: var(--accent-texte); }
.btn svg { width: 1em; height: 1em; flex: none; }

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-texte);
}
.lien-fleche svg { width: 1.1em; height: 1.1em; transition: transform var(--transition); }
.lien-fleche:hover svg { transform: translateX(.25rem); }

/* Lien souligné d'un trait, comme dans la maquette du client. */
.lien-souligne {
  display: inline-block;
  padding-bottom: .4rem;
  border-bottom: 1px solid currentColor;
  color: var(--texte);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition);
}
.lien-souligne:hover { color: var(--accent-texte); }

/* --- En-tête --------------------------------------------------------- */
/* Fluidite (2026-09-30, reprise d'informatiquecompiegne.fr, skill sites-vitrines) :
   la barre logo + nav (.header-barre) est posee SOUS le bandeau de contact et se
   replie par transform, sans animer de hauteur ni recalculer de flou. */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
}
.header-topbar {
  position: relative;
  z-index: 1;
  background: var(--marine);
  font-size: .78rem;
  letter-spacing: .04em;
}
.header-topbar .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.5rem;
}
.header-topbar a { color: var(--texte); text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.header-topbar a:hover { color: var(--or-clair); }
.header-topbar svg { width: .95em; height: .95em; }
.topbar-secondaire { color: var(--texte-doux); }

.header-barre {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(12, 23, 38, .97);
  border-bottom: 1px solid var(--ligne-froide);
  transition: transform var(--transition), opacity var(--transition),
              background var(--transition), border-color var(--transition);
}
/* Accueil, en haut de page : la barre se pose sur la photo du hero. */
.accueil .header.en-haut .header-barre { background: transparent; border-bottom-color: transparent; }
/* Menu mobile ouvert : la barre retrouve son fond, le menu se lit sur la photo. */
.accueil .header.en-haut .header-barre:has([data-ouvert="true"]) { background: rgba(12, 23, 38, .97); }
.header.nav-hidden .header-barre { transform: translateY(-100%); opacity: 0; pointer-events: none; }
/* Navigation au clavier : un lien qui recoit le focus fait revenir la barre. */
.header.nav-hidden .header-barre:focus-within { transform: none; opacity: 1; pointer-events: auto; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.logo { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--texte); }
.logo { flex: none; }
.logo img, .logo picture { width: 34px; flex: none; }
.logo span {
  font-family: var(--logo);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.35;
}

.nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.8rem); }
.nav a {
  color: var(--texte-doux);
  text-decoration: none;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-block: .35rem;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--texte); border-bottom-color: var(--or); }
.accueil .header.en-haut .nav a { color: var(--texte); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ligne-froide);
  border-radius: var(--radius);
  color: var(--texte);
  padding: .5rem;
  cursor: pointer;
}
.nav-toggle svg { width: 1.3rem; height: 1.3rem; display: block; }
/* Lien Contact à droite de la barre : mobile seulement (la nav l'a déjà sur grand écran). */
.header-contact { display: none; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--nuit-2);
    border-bottom: 1px solid var(--ligne-froide);
    padding: .5rem var(--gouttiere) 1.5rem;
    display: none;
  }
  .nav[data-ouvert="true"] { display: flex; }
  .nav a { padding-block: .9rem; border-bottom: 1px solid var(--ligne-froide); white-space: normal; }
  /* Mobile : la barre (logo + bouton menu) reste toujours visible. */
  .header.nav-hidden .header-barre { transform: none; opacity: 1; pointer-events: auto; }
  /* Maquette mobile du client (2026-11-03) : menu à gauche, nom centré, Contact à droite,
     sans bandeau de contact (l'e-mail reste dans le bloc Contact et le pied). */
  :root { --hauteur-header: 4.5rem; }
  html { scroll-padding-top: 4.5rem; }
  body .page-corps { padding-top: 8.5rem; }
  body .ancre-message { scroll-margin-top: 5.5rem; }
  .header-topbar { display: none; }
  /* ... sauf dans l'administration, dont c'est le seul menu. */
  .admin .header-topbar { display: block; }
  .admin .header-topbar .conteneur { flex-wrap: wrap; padding-block: .5rem; }
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; }
  .nav-toggle { order: -1; justify-self: start; border: 0; padding: .5rem .5rem .5rem 0; }
  .nav-toggle svg { width: 1.7rem; height: 1.7rem; stroke-width: 1.2; }
  .logo { justify-self: center; text-align: center; }
  .logo picture, .logo img { display: none; }
  .logo span { font-size: .85rem; }
  .header-contact {
    display: block;
    justify-self: end;
    color: var(--texte);
    text-decoration: none;
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
  }
}

/* --- Hero ------------------------------------------------------------ */
/* Photo des magazines en fond (fournie par le client, 2026-10-08) : paysage
   sur grand écran, portrait sur mobile. Voile sombre en haut pour le titre,
   léger en bas pour la barre des rubriques. */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--hauteur-header) + clamp(2rem, 6vh, 4rem));
  padding-bottom: clamp(2rem, 6vh, 4rem);
  isolation: isolate;
  color: #FFFFFF;
  background: var(--nuit) url("assets/images/hero-magazines-1600.webp") center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Grand écran, titre centré (maquette du client, 2026-11-03) : voile ovale
     au centre, sous le titre posé sur les couvertures claires des magazines,
     et voile vertical léger pour la barre de l'en-tête. */
  background:
    radial-gradient(ellipse 55% 50% at 50% 52%,
      rgba(12, 23, 38, .55) 0%,
      rgba(12, 23, 38, .3) 60%,
      rgba(12, 23, 38, 0) 100%),
    linear-gradient(180deg,
      rgba(12, 23, 38, .55) 0%,
      rgba(12, 23, 38, .1) 30%,
      rgba(12, 23, 38, .1) 75%,
      rgba(12, 23, 38, .4) 100%);
}
/* Grand écran : bloc centré, sobre (titre, filet, villes, lien). */
.hero-contenu {
  align-self: center;
  display: grid;
  justify-items: center;
  max-width: 46rem;
  text-align: center;
  text-shadow: 0 2px 24px rgba(12, 23, 38, .45);
}
.hero h1 { margin-bottom: .9em; }
.hero-titre { display: block; text-wrap: balance; }
.hero h1 em { color: var(--or-clair); }
/* Les villes restent dans le h1 (mots-clés locaux). */
.hero-villes {
  display: block;
  width: fit-content;
  margin: .55em auto 0;
  padding: .6em 2.2em 0;
  border-top: 1px solid rgba(255, 255, 255, .6);
  font-size: clamp(1.15rem, 1.9vw, 1.65rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
}
.hero .lien-fleche { color: #FFFFFF; font-size: clamp(.85rem, 1.1vw, 1rem); letter-spacing: .22em; gap: .9rem; }
.hero .lien-fleche svg { width: 1.6em; height: 1.6em; }

/* Flèche de défilement : mobile seulement, le grand écran reste épuré. */
.hero-bas { display: none; justify-items: center; padding-top: clamp(2rem, 6vh, 4rem); }
.hero-fleche {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  color: #FFFFFF;
  position: relative;
  transition: background var(--transition), color var(--transition);
}
.hero-fleche::before {
  content: "";
  position: absolute;
  bottom: 100%;
  width: 1px;
  height: clamp(2rem, 6vh, 3.5rem);
  background: rgba(255, 255, 255, .55);
}
.hero-fleche svg { width: 1rem; height: 1rem; }
.hero-fleche:hover { background: #FFFFFF; color: var(--nuit); }

@media (max-width: 700px) {
  .hero { background-image: url("assets/images/hero-magazines-900.webp"); }
  /* Mobile : même bloc centré qu'en grand écran, plus la flèche de défilement. */
  .hero-bas { display: grid; }
  /* Mobile : photo portrait, titre au centre : voile ovale plus large que sur grand écran. */
  .hero::before {
    background:
      radial-gradient(ellipse 90% 40% at 50% 50%,
        rgba(12, 23, 38, .55) 0%,
        rgba(12, 23, 38, .25) 65%,
        rgba(12, 23, 38, 0) 100%),
      linear-gradient(180deg,
        rgba(12, 23, 38, .55) 0%,
        rgba(12, 23, 38, .1) 25%,
        rgba(12, 23, 38, .1) 75%,
        rgba(12, 23, 38, .4) 100%);
  }
}

/* --- Grilles de cartes ----------------------------------------------- */
.grille-3 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
/* auto-fill, pas auto-fit : une page qui n'a qu'une ou deux montres garde des
   colonnes de taille normale au lieu d'étirer la photo sur toute la largeur. */
.grille-2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }

.carte {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.75rem, 3vw, 2.4rem);
  background: var(--fond-2);
  border: 1px solid var(--ligne-froide);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}
.section--nuance .carte { background: var(--nuit-3); }
.carte:hover { border-color: var(--ligne); transform: translateY(-3px); }
.carte h3 { margin: 0; }
.carte p { color: var(--texte-doux); }
.carte .lien-fleche { margin-top: auto; }

.carte-icone {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  color: var(--or);
}
.carte-icone svg { width: 1.35rem; height: 1.35rem; }

/* --- Montres --------------------------------------------------------- */
.montre {
  display: flex;
  flex-direction: column;
  background: var(--fond-2);
  border: 1px solid var(--ligne-froide);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.montre:hover { border-color: var(--ligne); transform: translateY(-4px); }
.montre-photo { aspect-ratio: 4 / 5; background: var(--fond-3); overflow: hidden; }
.montre-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.2, .6, .3, 1); }
.montre:hover .montre-photo img { transform: scale(1.04); }
.montre-corps { padding: 1.6rem clamp(1.25rem, 2.5vw, 1.8rem) 1.8rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.montre-marque { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--surtitre); }
.montre-corps h3 { margin: 0; font-size: 1.4rem; }
.montre-detail { color: var(--texte-doux); font-size: .92rem; }
.montre-prix { font-family: var(--serif); font-size: 1.5rem; color: var(--texte); margin-top: .3rem; }
.montre-corps .lien-fleche { margin-top: 1rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  align-self: flex-start;
  padding: .3rem .7rem;
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-texte);
}

/* --- Processus ------------------------------------------------------- */
.etapes { display: grid; gap: 0; counter-reset: etape; }
.etape {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-top: 1px solid var(--ligne-froide);
}
.etape:last-child { border-bottom: 1px solid var(--ligne-froide); }
.etape::before {
  counter-increment: etape;
  content: "0" counter(etape);
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--surtitre);
  line-height: 1;
}
.etape h3 { margin-bottom: .4em; }
.etape p { color: var(--texte-doux); margin: 0; }
.etape p + p { margin-top: .6em; }

/* --- FAQ ------------------------------------------------------------- */
.faq { max-width: 52rem; }
.faq details {
  border-bottom: 1px solid var(--ligne-froide);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.4;
  color: var(--texte);
  transition: color var(--transition);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-texte); }
/* Le « + » de la maquette, qui devient « − » à l'ouverture. */
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
  margin-top: .05em;
  color: var(--texte);
  transition: transform var(--transition);
}
.faq details[open] summary::after { content: "−"; }
.faq-reponse { padding-bottom: 1.6rem; color: var(--texte-doux); max-width: 46rem; }
.faq-reponse ul { margin: 0 0 1em; padding-left: 1.1rem; }
.faq-reponse li { margin-bottom: .4em; }
.faq-note { font-size: .86rem; color: var(--texte-doux); opacity: .85; }

/* --- Duo texte + média ---------------------------------------------- */
.duo { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.duo--haut { align-items: start; }
.duo-media img { border-radius: var(--radius); border: 1px solid var(--ligne-froide); }
.duo-texte p strong { color: var(--texte); font-weight: 500; }

/* --- Formulaire ------------------------------------------------------ */
.form-contact { display: grid; gap: 1.1rem; max-width: 40rem; }
.champ { display: grid; gap: .45rem; }
.champ label { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--texte-doux); }
.champ input, .champ textarea, .champ select {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--champ-fond);
  border: 1px solid var(--ligne-froide);
  border-radius: var(--radius);
  color: var(--texte);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  transition: border-color var(--transition);
}
.section--nuance .champ input, .section--nuance .champ textarea, .section--nuance .champ select { background: var(--nuit); }
.champ textarea { min-height: 9rem; resize: vertical; }
.champ input:focus, .champ textarea:focus, .champ select:focus { border-color: var(--or); outline: none; }
.champ input:not(:placeholder-shown):invalid, .champ textarea:not(:placeholder-shown):invalid { border-color: var(--alerte); }
.champ-aide { font-size: .8rem; color: var(--texte-doux); }
.champ-leurre { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-rgpd { font-size: .82rem; color: var(--texte-doux); }
.form-contact .btn { justify-self: start; margin-top: .5rem; }

/* Nom et prénom côte à côte, empilés sur mobile. */
.champ-duo { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }

/* Retours d'envoi, affichés sans JS via :target */
.form-message { display: none; padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.form-message p { margin: 0; }
#envoi-ok:target ~ .form-message--ok,
#envoi-erreur:target ~ .form-message--erreur,
#envoi-trop:target ~ .form-message--trop { display: block; }
.form-message--ok { border: 1px solid var(--or); background: color-mix(in srgb, var(--or) 12%, transparent); color: var(--accent-texte); }
.form-message--erreur { border: 1px solid var(--alerte); background: color-mix(in srgb, var(--alerte) 12%, transparent); color: var(--alerte); }
.form-message--trop { border: 1px solid var(--ligne); background: color-mix(in srgb, var(--or) 8%, transparent); color: var(--texte-doux); }
.form-message a { color: inherit; }
.ancre-message { display: block; height: 0; scroll-margin-top: 8rem; }

/* --- Coordonnées ----------------------------------------------------- */
.coordonnees { display: grid; gap: 1.6rem; align-content: start; }
.coordonnee { display: flex; gap: 1rem; }
.coordonnee svg { width: 1.2rem; height: 1.2rem; color: var(--surtitre); flex: none; margin-top: .3rem; }
.coordonnee strong { display: block; font-weight: 500; letter-spacing: .04em; }
.coordonnee span, .coordonnee a { color: var(--texte-doux); text-decoration: none; }
.coordonnee a:hover { color: var(--accent-texte); }

/* La maison, en encart dans le bloc Contact. */
.maison {
  margin-top: 1rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--fond-2);
  border: 1px solid var(--ligne-froide);
  border-radius: var(--radius);
}
.maison h3 { margin-bottom: .6em; }
.maison p { color: var(--texte-doux); }
.maison strong { color: var(--texte); font-weight: 500; }

/* --- Pied de page ---------------------------------------------------- */
.footer { background: var(--nuit-2); border-top: 1px solid var(--ligne-froide); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.footer-accroche { margin-top: 1.2rem; font-size: .95rem; }
/* Titres du pied en <p> : un h4 sous chaque h2 de page serait un saut de niveau. */
.footer-titre { font-family: var(--sans); font-size: .74rem; font-weight: 400; line-height: 1.12; letter-spacing: .2em; text-transform: uppercase; color: var(--or); margin: 0 0 1.1rem; }
.footer-liens { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-liens li { color: var(--texte-doux); font-size: .95rem; }
.footer-liens a { color: var(--texte-doux); text-decoration: none; font-size: .95rem; }
.footer-liens a:hover { color: var(--texte); }
.footer-reseaux { display: flex; gap: .75rem; }
.footer-reseaux a {
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border: 1px solid var(--ligne-froide);
  border-radius: var(--radius);
  color: var(--texte-doux);
  transition: color var(--transition), border-color var(--transition);
}
.footer-reseaux a:hover { color: var(--or-clair); border-color: var(--ligne); }
.footer-reseaux svg { width: 1.15rem; height: 1.15rem; }
.footer-bas {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ligne-froide);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--texte-doux);
}

/* --- Pages intérieures ----------------------------------------------- */
.page-corps { padding-top: 11rem; }
.fil-ariane { font-size: .8rem; letter-spacing: .06em; color: var(--texte-doux); margin-bottom: 1.5rem; }
.fil-ariane a { color: var(--texte-doux); text-decoration: none; }
.fil-ariane a:hover { color: var(--or-clair); }

/* Onglets des trois pages de la vitrine : En stock, Collector, Déjà vendues. */
.vitrine-onglets {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--ligne-froide);
}
.vitrine-onglets a {
  padding: .8rem 0;
  margin-bottom: -1px;
  border-bottom: 1px solid transparent;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--texte-doux);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition);
}
.vitrine-onglets a:hover { color: var(--or-clair); }
.vitrine-onglets a[aria-current="page"] { color: var(--or); border-bottom-color: var(--or); }
.vitrine-autres { margin-top: 1.5rem; color: var(--texte-doux); }
@media (max-width: 480px) {
  .vitrine-onglets { gap: .25rem 1.1rem; }
  .vitrine-onglets a { font-size: .68rem; letter-spacing: .12em; }
}

.fiche { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); align-items: start; }
.fiche-galerie { display: grid; gap: 1rem; }
.fiche-galerie img { border: 1px solid var(--ligne-froide); border-radius: var(--radius); }
.fiche-specs { list-style: none; margin: 1.8rem 0; padding: 0; }
.fiche-specs li { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: .8rem; border-bottom: 1px solid var(--ligne-froide); }
.fiche-specs li:first-child { border-top: 1px solid var(--ligne-froide); }
.fiche-specs .cle { color: var(--texte-doux); }
.fiche-specs .valeur { text-align: right; }

/* Pages de texte : le :not(.btn) protège le texte des boutons. */
.article-page { max-width: 46rem; }
.article-page a:not(.btn) { color: var(--or-clair); }
.article-page h2 { margin-top: 2.5em; }
.article-page h3 { margin-top: 2em; }
.article-page ul { padding-left: 1.2rem; color: var(--texte-doux); }
.article-page li { margin-bottom: .5em; }

/* --- Révélation au défilement ---------------------------------------- */
.reveal-on-scroll { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .6, .3, 1); }
.reveal-on-scroll.est-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
  .montre-photo img, .lien-fleche svg { transition: none; }
}

/* --- Administration --------------------------------------------------- */
.admin { background: var(--nuit); }
.admin-corps { padding-block: clamp(2rem, 5vw, 3.5rem) 5rem; }
.admin-etroit { max-width: 26rem; margin-inline: auto; margin-top: 4rem; }
.admin-etroit h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-bottom: 1.2rem; }

.admin-carte {
  background: var(--nuit-2);
  border: 1px solid var(--ligne-froide);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1.5rem;
}
.admin-carte h2 {
  font-size: 1.25rem;
  margin-bottom: 1.4rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--ligne-froide);
}

.admin-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.admin-entete h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .2em; }
.admin-entete .chapo { margin: 0; }

.admin-flash {
  padding: .9rem 1.2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--or);
  border-radius: var(--radius);
  background: rgba(194, 161, 101, .1);
  color: var(--or-clair);
}
.admin-erreur {
  padding: .9rem 1.2rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--alerte);
  border-radius: var(--radius);
  background: rgba(192, 107, 90, .12);
  color: var(--alerte-texte);
}

.admin-liste { display: grid; gap: .75rem; }
.admin-ligne {
  display: grid;
  grid-template-columns: 2.25rem 5rem 1fr auto auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--nuit-2);
  border: 1px solid var(--ligne-froide);
  border-radius: var(--radius);
  scroll-margin-top: 2rem;
}
.admin-ligne:target { border-color: var(--or); }
.admin-ligne--compte { grid-template-columns: 1fr auto; }
.admin-compte-form { max-width: 28rem; }

.admin-rang { display: grid; justify-items: center; gap: .15rem; }
.admin-rang form { margin: 0; display: flex; }
.admin-rang-numero { font-size: .75rem; color: var(--texte-doux); }
.admin-fleche {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 1.6rem;
  padding: 0;
  background: none;
  border: 1px solid var(--ligne-froide);
  border-radius: var(--radius);
  color: var(--texte-doux);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.admin-fleche svg { width: 1rem; height: 1rem; }
.admin-fleche:hover:not(:disabled) { color: var(--or-clair); border-color: var(--ligne); }
.admin-fleche:disabled { opacity: .3; cursor: default; }
.admin-vignette {
  width: 5rem; height: 5rem;
  background: var(--nuit-3);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid; place-items: center;
}
.admin-vignette img { width: 100%; height: 100%; object-fit: cover; }
.admin-sans-photo { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-doux); }
.admin-ligne-texte { display: grid; gap: .2rem; }
.admin-ligne-texte strong { font-size: 1.05rem; font-weight: 500; }
.admin-compte-courant { color: var(--texte-doux); font-size: .85rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.admin-actions form { margin: 0; }

.btn-petit { padding: .5rem 1rem; font-size: .68rem; }
.btn-danger { border-color: rgba(192, 107, 90, .5); color: var(--alerte-texte); }
.btn-danger:hover { background: rgba(192, 107, 90, .15); color: var(--alerte-texte); }

.badge--vendu { color: var(--texte-doux); border-color: var(--ligne-froide); }
.admin-groupe { margin-top: 2.5rem; }
.admin-groupe h2 { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-groupe h2 a { font-family: var(--sans); font-size: .75rem; letter-spacing: .08em; }
.badge--brouillon { color: var(--texte-doux); border-color: var(--ligne-froide); }

.admin-form .form-contact, .admin-form { max-width: none; }
/* Grille de champs : chaque champ se cale en haut de sa cellule (libellé, case,
   aide), pour que les cases d'une même ligne restent alignées et de même hauteur
   même quand un voisin a un texte d'aide. */
.admin-grille { display: grid; gap: 1.6rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); align-items: start; }
.admin-grille .champ { align-content: start; }
.admin-carte .champ + .champ { margin-top: 1.1rem; }
.admin-grille .champ + .champ { margin-top: 0; }
/* Même hauteur que les champs texte (le select en prend 2 px de plus). */
.admin-form .champ input:not([type="checkbox"]):not([type="file"]), .admin-form .champ select { height: 3.1rem; }
/* Choix des photos : bouton aux couleurs du site au lieu du gris du navigateur. */
.admin-form input[type="file"] { padding: .55rem; color: var(--texte-doux); font-size: .9rem; cursor: pointer; }
.admin-form input[type="file"]::file-selector-button {
  margin-right: 1rem;
  padding: .6rem 1.2rem;
  background: transparent;
  border: 1px solid var(--or);
  border-radius: var(--radius);
  color: var(--accent-texte);
  font: inherit;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}
.admin-form input[type="file"]::file-selector-button:hover { background: color-mix(in srgb, var(--or) 14%, transparent); }
.champ-case { grid-column: 1 / -1; }
.champ-case label {
  display: flex; align-items: center; gap: .6rem;
  font-size: .9rem; letter-spacing: 0; text-transform: none; color: var(--texte);
}
.champ-case input { width: auto; }

.admin-photos + .champ-aide { margin-top: 1.4rem; }
.admin-carte > .champ-aide + .champ, .admin-carte > .chapo + .champ { margin-top: 1.4rem; }
.admin-photos { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.admin-photo img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border: 1px solid var(--ligne-froide); border-radius: var(--radius); margin-bottom: .8rem;
}
.admin-photos-suppr { display: flex; flex-wrap: wrap; gap: 1rem; }
.admin-photos-suppr form { display: grid; gap: .5rem; justify-items: center; }
.admin-photos-suppr img { width: 80px; height: 80px; object-fit: cover; border: 1px solid var(--ligne-froide); }

.admin-barre {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  position: sticky; bottom: 0;
  padding: 1rem 0;
  background: linear-gradient(to top, var(--nuit) 70%, transparent);
}

@media (max-width: 720px) {
  .admin-ligne { grid-template-columns: 2.25rem 4rem 1fr; gap: .9rem; }
  .admin-ligne--compte { grid-template-columns: 1fr; }
  .admin-ligne .badge, .admin-actions { grid-column: 1 / -1; }
}

/* --- Accessibilité --------------------------------------------------- */
.saut-contenu {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--or);
  color: var(--nuit);
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top var(--transition);
}
.saut-contenu:focus { top: .5rem; color: var(--nuit); }
.visuellement-cache {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
