/* ==========================================================
   L'Atelier Nocturne · site liste d'attente
   Esprit : grandes maisons (JLC, Omega, Rolex) — blanc, image plein écran,
   capitales espacées, boutons carrés, beaucoup d'air.
   ========================================================== */

@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --noir: #0C0908;
  --blanc: #FFFFFF;
  --pierre: #F3F1ED;       /* fond clair (questions) */
  --encre: #2B2725;        /* texte principal (anthracite chaud) */
  --gris: #6E6762;         /* texte secondaire (5,6:1 sur blanc) */
  --filet: #E4DFD9;
  --rose: #D1A084;         /* or rose, seulement sur noir */
  --rose-b: #8A5A42;       /* or rose foncé, petits accents sur blanc */
  --lune: #A3262A;         /* rouge de la lune, touches très rares */
  --clair: #F4F0EA;        /* texte sur noir */
  --clair-2: #B4ABA2;      /* texte secondaire sur noir */

  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lent: cubic-bezier(.22, .61, .36, 1);
  --marge: clamp(1.25rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
/* Verrouille le rendu : le site reste identique, que le système soit en mode clair ou sombre.
   "only light" empêche aussi Chrome/Edge/Opera (Android et PC) d'assombrir le site automatiquement. */
:root { color-scheme: only light; supported-color-schemes: light; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--blanc); color: var(--encre); }
body {
  margin: 0; background: var(--blanc); color: var(--encre);
  font: 300 1rem/1.75 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { margin: 0 0 1.2em; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* ---------- Typo de base ---------- */
.surtitre {
  display: block; margin-bottom: 1.4rem;
  font: 400 .6875rem/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--rose-b);
}
.titre {
  font-size: clamp(1.75rem, 4.4vw, 2.6rem); line-height: 1.15;
  letter-spacing: .14em; text-transform: uppercase;
}
/* filet or rose sous chaque titre de section */
.titre::after { content: ""; display: block; width: 2.5rem; height: 1px; margin: 1.4rem 0 0; background: var(--rose); }
.centre .titre::after { margin-inline: auto; }
.chapeau { font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.5rem); line-height: 1.5; color: var(--encre); }
.titre + .chapeau { margin-top: 1.6rem; }
.centre { text-align: center; }
.etroit { width: min(100% - 2 * var(--marge), 640px); margin-inline: auto; }
.large { width: min(100% - 2 * var(--marge), 1200px); margin-inline: auto; }
.section { padding: clamp(5rem, 13vw, 9rem) 0; }

/* ---------- Boutons : carrés, sobres ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 2.4rem;
  font: 400 .75rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border-radius: 0;
  transition: background .5s var(--lent), color .5s var(--lent), border-color .5s var(--lent);
}
.btn-clair { color: var(--clair); border: 1px solid rgba(244, 240, 234, .7); background: transparent; }
.btn-clair:hover { background: var(--rose); border-color: var(--rose); color: var(--noir); }
.btn-plein { color: #fff; background: var(--encre); border: 1px solid var(--encre); }
.btn-plein:hover { background: var(--rose-b); border-color: var(--rose-b); }
@media (max-width: 400px) { .btn { padding: 0 1.2rem; letter-spacing: .18em; } }
.btn-petit { min-height: 40px; padding: 0 1.4rem; font-size: .6875rem; }
.btn[disabled] { opacity: .5; cursor: wait; }

.lien {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  font: 400 .75rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  color: var(--encre); text-decoration: none; background: none; border: 0; cursor: pointer;
  background-image: linear-gradient(var(--rose), var(--rose));
  background-size: 100% 1px; background-position: 0 calc(50% + .9em); background-repeat: no-repeat;
}
.lien-clair { color: var(--clair-2); }
.lien-clair:hover { color: var(--rose); }

/* ---------- Barre fixe : logo + un seul bouton, apparaît après l'ouverture ---------- */
.barre, .barre-page {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 64px; padding: 0 var(--marge);
  background: rgba(12, 9, 8, .92); color: var(--clair);
  border-bottom: 1px solid rgba(244, 240, 234, .08);
}
.barre {
  position: fixed; z-index: 10; inset: 0 0 auto;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateY(-100%); transition: transform .6s var(--lent);
}
.barre.visible { transform: none; }
.barre-logo img { width: auto; height: 38px; } /* même hauteur que le bouton (40px) */
.barre .btn-clair { border-color: rgba(209, 160, 132, .7); }
/* Téléphone et tablette : pas de cadre autour du bouton, simple lien souligné or rose */
@media (max-width: 1024px), (hover: none) {
  .barre .btn-clair {
    min-height: 44px; padding: 0; border: 0; background: none; color: var(--clair);
    background-image: linear-gradient(var(--rose), var(--rose));
    background-size: 100% 1px; background-position: 0 calc(50% + .95em); background-repeat: no-repeat;
  }
  .barre .btn-clair:hover, .barre .btn-clair:active { background-color: transparent; color: var(--rose); }
}

/* ==========================================================
   1. Ouverture : image plein écran, logo centré par-dessus
   ========================================================== */
.heros {
  position: relative; min-height: 100svh;
  background: #000; color: var(--clair); /* noir pur, comme le fond des photos */
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.heros picture, .heros picture img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.heros picture img { object-fit: cover; object-position: center top; }
@media (min-aspect-ratio: 1/1) { .heros picture img { object-position: 30% center; } }
.entete {
  position: absolute; z-index: 2; top: 0; left: 0; right: 0;
  display: flex; justify-content: center; padding: 1.8rem var(--marge) 0;
}
.entete img { width: clamp(104px, 22vw, 136px); }
.heros::after { /* voile bas pour lire le texte */
  content: ""; position: absolute; inset: auto 0 0; height: 55%;
  background: linear-gradient(to top, rgba(12, 9, 8, .92), rgba(12, 9, 8, 0));
  pointer-events: none;
}

.heros-texte {
  position: relative; z-index: 1; text-align: center;
  padding: 0 var(--marge) clamp(3rem, 8vh, 5rem);
}
.heros .surtitre { color: var(--rose); margin-bottom: 1rem; }
.heros .titre::after, .heros h1::after { display: none; }
.heros h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); line-height: 1.05; letter-spacing: .16em; text-transform: uppercase; }
.heros .infos {
  margin: 1.2rem 0 2.2rem;
  font: 300 .8125rem/1.9 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--clair-2);
}
.heros .infos b { font-weight: 400; color: var(--clair); }
.heros .prix { margin: 1.4rem 0 2rem; font-family: var(--serif); font-size: 1.375rem; color: var(--clair); }
.heros .prix small { display: block; margin-top: .2rem; font: 300 .8125rem/1.6 var(--sans); letter-spacing: .04em; color: var(--rose); }
@media (min-aspect-ratio: 1/1) and (min-width: 900px) {
  /* Ordinateur, tablette couchée : même image que sur téléphone. Montre à gauche, en grand ; texte centré dans le noir à droite. */
  .heros { justify-content: center; }
  /* Image calée sur la hauteur de l'écran, décalée pour que la couronne s'arrête vers 55 % de la largeur */
  .heros picture { inset: 0 auto 0 min(0px, 55vw - 118svh); width: 178svh; }
  .heros picture img { object-position: left center; }
  .heros-texte { width: 38vw; margin: 0 0 0 58vw; padding: 0; }
  .heros h1 { font-size: min(3.8rem, 3vw); }
  .heros::after { /* fondus : sous le logo en haut, vers le noir à droite et en bas */
    inset: 0; height: auto;
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0) 24%),
      linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0) 16%),
      linear-gradient(to left, #000 30vw, rgba(0, 0, 0, 0) 46vw);
  }
}
/* Écran vertical (téléphones, tablettes debout) : logo, montre, texte empilés.
   La montre prend la place restante, sans grand vide ni chevauchement, quelle que soit la hauteur. */
@media (max-aspect-ratio: 1/1) {
  .heros { min-height: max(100svh, 40rem); justify-content: flex-start; }
  .entete { position: relative; padding-top: 1.6rem; }
  .heros picture { position: relative; inset: auto; flex: 1 1 0; min-height: min(80vw, 460px); height: auto; margin: -1.6rem 0 -1.4rem; } /* marges négatives : les fondus haut et bas de l'image passent sous le logo et le texte */
  /* Montre de trois quarts, en grand, qui déborde des bords ; fondue dans le noir en haut et en bas */
  .heros picture img {
    inset: 50% 0 auto; height: min(100%, 128vw); transform: translateY(-50%); /* montre entière visible, couronne comprise */
    object-fit: cover; object-position: 36% center;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 76%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 76%, transparent 100%);
  }
  .heros::after { display: none; }
  .heros-texte { padding-bottom: 3.2rem; }
  .heros .surtitre { margin-bottom: .7rem; }
  .heros .infos { margin: .9rem 0 1.8rem; }
}
.descendre { position: absolute; z-index: 1; left: 50%; bottom: 1.1rem; width: 1px; height: 28px; background: rgba(244, 240, 234, .45); transform: translateX(-50%); }

/* Photos : cadre or rose fin, décalé de l'image */
.cadre { outline: 1px solid rgba(209, 160, 132, .55); outline-offset: clamp(8px, 1.4vw, 14px); }

/* ==========================================================
   2. La montre en détail
   ========================================================== */
.apres-studio { padding-top: 0; }
#detail { padding-bottom: clamp(3rem, 7vw, 4.5rem); }

/* Fiche à gauche, montre détourée à droite (au-dessus sur téléphone) */
.specs { width: min(100% - 2 * var(--marge), 1040px); margin-inline: auto; display: grid; gap: 2.5rem clamp(3rem, 7vw, 6rem); align-items: start; }
.specs-montre { margin: 0; text-align: center; }
.specs-montre figcaption { margin-top: 1rem; font: 300 .6875rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }

/* Galerie : une image à la fois, on glisse ou on clique les flèches */
.galerie-cadre { position: relative; width: min(100%, 340px); margin-inline: auto; }
.galerie-piste {
  display: flex; margin: 0; padding: 0; list-style: none;
  aspect-ratio: 4 / 5; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  background: #000;
}
.galerie-piste::-webkit-scrollbar { display: none; }
.galerie-diapo { flex: 0 0 100%; scroll-snap-align: center; }
.galerie-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.galerie-zoom img { width: 100%; height: 100%; object-fit: cover; }
.galerie-diapo.detouree img { object-fit: contain; padding: 8% 0; } /* montre détourée posée sur le noir */
.galerie-fleche {
  position: absolute; top: 50%; width: 36px; height: 36px; margin-top: -18px; padding: 0;
  border: 1px solid rgba(209, 160, 132, .6); border-radius: 0; background: rgba(12, 9, 8, .55); cursor: pointer;
  transition: background .4s var(--lent), opacity .4s var(--lent);
}
.galerie-fleche::before { content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px; border: solid var(--clair); border-width: 1px 1px 0 0; }
.galerie-fleche.prec { left: 10px; } .galerie-fleche.prec::before { transform: translateX(2px) rotate(-135deg); }
.galerie-fleche.suiv { right: 10px; } .galerie-fleche.suiv::before { transform: translateX(-2px) rotate(45deg); }
.galerie-fleche:hover { background: rgba(209, 160, 132, .85); }
.galerie-fleche:disabled { opacity: 0; pointer-events: none; }
.galerie-points { display: flex; justify-content: center; gap: .2rem; margin-top: .6rem; }
.galerie-points button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.galerie-points button::before { content: ""; display: block; width: 6px; height: 6px; margin: auto; border: 1px solid var(--rose-b); border-radius: 50%; }
.galerie-points button[aria-current]::before { background: var(--rose-b); }

/* Visionneuse plein écran avec zoom */
.visionneuse { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 6, 5, .97); color: var(--clair); }
.visionneuse::backdrop { background: rgba(8, 6, 5, .8); }
.vis-scene { position: absolute; inset: 64px 64px 56px; overflow: hidden; }
.vis-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .5s var(--lent); touch-action: pan-y; } /* toujours entière à l'écran */
.vis-scene.zoom img { transform: scale(2.5); cursor: zoom-out; touch-action: none; }
.vis-fermer { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.vis-fermer::before, .vis-fermer::after { content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 1px; background: var(--clair); transform: rotate(45deg); }
.vis-fermer::after { transform: rotate(-45deg); }
.vis-fermer:hover::before, .vis-fermer:hover::after { background: var(--rose); }
.visionneuse .galerie-fleche { width: 44px; height: 44px; margin-top: -22px; }
.visionneuse .galerie-fleche.prec { left: 12px; } .visionneuse .galerie-fleche.suiv { right: 12px; }
.vis-aide { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; font: 400 .625rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--clair-2); }
@media (max-width: 600px) { .vis-scene { inset: 60px 0 56px; } .visionneuse .galerie-fleche { top: auto; bottom: 8px; margin: 0; } .vis-aide { bottom: 22px; } }
@media (min-width: 860px) {
  .specs { grid-template-columns: 1.15fr 1fr; }
  .galerie-cadre { width: min(100%, 340px, (100svh - 220px) * .8); } /* calée en haut : ne bouge pas quand la fiche s'ouvre */
}
@media (max-width: 859px) {
  .specs-montre { order: -1; }
  .galerie-cadre { width: min(100%, 300px); }
}
.fiche { margin: 0; border-top: 1px solid var(--filet); }
.fiche div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--filet); }
.fiche dt { font: 400 .6875rem/1.9 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }
.fiche dd { margin: 0; font-family: var(--serif); font-size: 1.125rem; line-height: 1.5; color: var(--encre); }

.plus summary { list-style: none; margin-top: 2.4rem; text-align: center; }
.plus summary::-webkit-details-marker { display: none; }
.plus summary .lien { pointer-events: none; }
.plus .ferme { display: none; }
.plus[open] .ouvre { display: none; }
.plus[open] .ferme { display: inline; }
.plus-corps { overflow: hidden; } /* ouverture / fermeture animées en hauteur par site.js */
.plus-corps .fiche div { transition: opacity .7s var(--lent); }
.plus-corps .fiche { margin-top: 0; border-top: 0; }
/* Au dos : image du fond à gauche, texte à droite, sur noir */
.dos { display: grid; background: var(--noir); color: var(--clair); padding: clamp(1.5rem, 5vw, 4.5rem); }
.dos-image { margin: 0; }
.dos-image img { width: 100%; height: 100%; max-height: 82vh; object-fit: cover; }
.dos-texte { padding: clamp(3.5rem, 9vw, 7rem) var(--marge); display: flex; flex-direction: column; justify-content: center; }
.dos .surtitre { color: var(--rose); }
.dos .rotor { margin: 2rem 0 0; max-width: 26rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.375rem, 3vw, 1.75rem); line-height: 1.45; color: var(--clair); }
.dos-infos { margin: 2.4rem 0 0; font: 400 .6875rem/1.9 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--rose); }
@media (min-width: 860px) { .dos { grid-template-columns: 1fr 1fr; } .dos-texte { padding: 3rem 0 3rem clamp(3rem, 7vw, 7rem); } }


/* ==========================================================
   3. L'histoire
   ========================================================== */
.histoire { padding-bottom: 0; border-top: 1px solid var(--filet); }
.histoire .chapeau { margin-top: 1.6rem; }
/* Titre décollé de la photo, photo réduite et centrée */
.portrait { width: min(100% - 2 * var(--marge), 440px); margin: clamp(3rem, 6vw, 4.5rem) auto clamp(3.5rem, 8vw, 6rem); }
.portrait img { width: 100%; }
.portrait figcaption { margin-top: 1.8rem; font: 300 .6875rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gris); text-align: center; }

.recit { padding-bottom: clamp(5rem, 13vw, 9rem); }
.plus-histoire > summary { margin: 0 0 1rem; text-align: center; }
/* « Voir toute l'histoire » : plus grand, sans cadre */
.plus-histoire > summary { cursor: pointer; }
.plus-histoire > summary .lien { min-height: 56px; font-size: .9375rem; letter-spacing: .26em; background-position: 0 calc(50% + 1.1em); transition: color .4s var(--lent); }
.plus-histoire > summary:hover .lien { color: var(--rose-b); }
.plus-histoire[open] > summary { margin-bottom: 3.5rem; }
.plus-histoire .plus-corps { padding-bottom: 1rem; }
.chapitre { margin-top: 4.5rem; }
.chapitre:first-child { margin-top: 0; }
.chapitre .num { display: block; font: 400 .6875rem/1 var(--sans); letter-spacing: .32em; color: var(--rose-b); margin-bottom: 1.2rem; text-align: center; }
.chapitre h3 { font-size: clamp(1.5rem, 4vw, 1.9rem); line-height: 1.25; text-align: center; margin-bottom: 2rem; }
.chapitre p { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.75; }
.citation { margin: 5rem 0 0; text-align: center; font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.4; font-style: italic; }
.citation span { display: block; margin-top: 1.4rem; font: 400 .6875rem/1 var(--sans); font-style: normal; letter-spacing: .32em; text-transform: uppercase; color: var(--rose-b); }

/* ==========================================================
   4. Liste d'attente
   ========================================================== */
.liste { border-top: 1px solid var(--filet); }
.liste .chapeau { margin: 1.6rem 0 0; }
.paliers { display: grid; grid-template-columns: repeat(3, 1fr); margin: 2.6rem 0 0; padding: 0; list-style: none; border-block: 1px solid var(--filet); }
.paliers li { display: grid; gap: .3rem; padding: 1.1rem .5rem; }
.paliers li + li { border-left: 1px solid var(--filet); }
.paliers span { font: 400 .625rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }
.paliers b { font: 400 1.375rem/1.2 var(--serif); color: var(--encre); }
.paliers li:first-child b { color: var(--rose-b); }
.paliers-note { margin: .9rem 0 0; font: 300 .8125rem/1.6 var(--sans); color: var(--gris); }

/* Compteur d'inscrits : chiffre changé à la main */
.compteur { margin: 2.4rem auto 0; max-width: 22rem; counter-reset: inscrits var(--inscrits); }
.compteur p { margin: 0 0 .6rem; font: 400 .6875rem/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }
.compteur b { font: 400 1.125rem/1 var(--serif); letter-spacing: 0; color: var(--rose-b); }
.compteur b::before { content: counter(inscrits); }
.jauge { display: block; height: 1px; background: var(--filet); }
.jauge span { display: block; height: 100%; min-width: 4px; width: calc(var(--inscrits) / 333 * 100%); max-width: 100%; background: var(--rose); }

.form { display: grid; gap: 2.2rem; margin-top: 3.5rem; text-align: left; }
.champ { display: grid; gap: .3rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.champ > label, .champ legend {
  padding: 0; font: 400 .6875rem/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--encre);
}
.aide { color: var(--gris); letter-spacing: .08em; text-transform: none; font-weight: 300; }
.champ input[type="text"], .champ input[type="email"], .champ textarea, .champ select {
  width: 100%; min-height: 48px; padding: .6rem 0;
  font: 300 1.0625rem/1.5 var(--sans); color: var(--encre);
  background: transparent; border: 0; border-bottom: 1px solid #CFC8C1; border-radius: 0;
  -webkit-appearance: none; appearance: none;
  transition: border-color .4s var(--lent);
}
.champ textarea { min-height: 84px; resize: vertical; }
.champ select {
  cursor: pointer; padding-right: 1.6rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--encre) 50%), linear-gradient(135deg, var(--encre) 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.champ input:focus, .champ textarea:focus, .champ select:focus { outline: none; border-bottom-color: var(--rose-b); }
.champ ::placeholder { color: #A39A93; opacity: 1; }
.champ select option { color: var(--encre); background: var(--blanc); }
/* Remplissage automatique du navigateur : garder nos couleurs au lieu du fond jaune/bleu ou sombre */
.champ input:-webkit-autofill, .champ input:-webkit-autofill:hover, .champ input:-webkit-autofill:focus, .champ textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--encre);
  -webkit-box-shadow: 0 0 0 1000px var(--blanc) inset; box-shadow: 0 0 0 1000px var(--blanc) inset;
  caret-color: var(--encre); transition: background-color 9999s ease-out 0s;
}
.champ input, .champ textarea { caret-color: var(--encre); }
.champ[aria-invalid="true"] input { border-bottom-color: var(--encre); border-bottom-width: 2px; }

.choix { display: flex; gap: 2.4rem; padding-top: .4rem; }
.choix label { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; cursor: pointer; font: 300 1rem/1 var(--sans); }
.choix input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; border: 1px solid var(--encre); border-radius: 0; display: grid; place-items: center; cursor: pointer; }
.choix input::after { content: ""; width: 8px; height: 8px; background: var(--rose-b); transform: scale(0); transition: transform .3s var(--lent); }
.choix input:checked::after { transform: scale(1); }

.accord { display: grid; grid-template-columns: 16px 1fr; gap: .9rem; align-items: start; font: 300 .8125rem/1.6 var(--sans); color: var(--gris); cursor: pointer; }
.accord input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: .2rem 0 0; border: 1px solid var(--encre); border-radius: 0; display: grid; place-items: center; cursor: pointer; }
.accord input::after { content: ""; width: 8px; height: 8px; background: var(--rose-b); transform: scale(0); transition: transform .3s var(--lent); }
.accord input:checked::after { transform: scale(1); }
.accord a { color: var(--encre); }

.form .btn { width: 100%; margin-top: .4rem; }
.erreur { margin: -1rem 0 0; font: 400 .8125rem/1.5 var(--sans); color: var(--encre); min-height: 1.2em; text-align: center; }
.mention { margin: -1.4rem 0 0; text-align: center; font: 300 .75rem/1.5 var(--sans); letter-spacing: .06em; color: var(--gris); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.merci { display: none; margin-top: 3.5rem; padding: 1rem 0; }
.merci.visible { display: block; animation: apparait 1.4s var(--lent); }
.merci h3 { font-size: 1.75rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.2rem; }
.merci p { color: var(--gris); }
.etapes { margin: 2.4rem 0 2rem; padding: 0; list-style: none; text-align: left; border-top: 1px solid var(--filet); }
.etapes li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--filet); }
.etapes b { font: 400 .6875rem/1.9 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--rose-b); }
.etapes span { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.5; }
@media (max-width: 560px) { .etapes li { grid-template-columns: 1fr; gap: .2rem; } }

/* ==========================================================
   5. Questions
   ========================================================== */
.faq-section { background: var(--pierre); }
.faq { margin-top: 3.5rem; border-top: 1px solid #DAD4CD; text-align: left; }
.faq details { border-bottom: 1px solid #DAD4CD; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.2rem;
  min-height: 64px; padding: 1.1rem 0;
  font-family: var(--serif); font-size: 1.1875rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; background: linear-gradient(var(--rose-b), var(--rose-b)) center / 100% 1px no-repeat, linear-gradient(var(--rose-b), var(--rose-b)) center / 1px 100% no-repeat; transition: transform .5s var(--lent); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .rep { padding: 0 2rem 1.6rem 0; color: var(--gris); animation: apparait .9s var(--lent); }
.faq .rep p:last-child { margin-bottom: 0; }

/* ==========================================================
   6. Pied de page
   ========================================================== */
.pied { background: var(--noir); color: var(--clair); padding: 5rem var(--marge) 2.5rem; text-align: center; border-top: 1px solid rgba(209, 160, 132, .25); }
.pied .marque { display: block; width: 130px; margin: 0 auto; } /* logo complet : sigil au-dessus du nom */
.pied .devise { font-family: var(--serif); font-style: italic; font-size: 1.125rem; margin: 2rem 0 2.6rem; color: var(--rose); }
.pied nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2rem; }
.pied nav a { display: inline-flex; align-items: center; min-height: 44px; font: 400 .6875rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--clair-2); text-decoration: none; transition: color .4s var(--lent); }
.pied nav a:hover, .pied nav a[aria-current] { color: var(--rose); }
.pied small { display: block; margin-top: 2.6rem; font: 300 .6875rem/1.7 var(--sans); letter-spacing: .06em; color: var(--clair-2); }

/* ==========================================================
   7. Pages annexes : mentions légales, confidentialité, merci
   ========================================================== */
.barre-page { position: sticky; top: 0; z-index: 10; }
.page-texte { width: min(100% - 2 * var(--marge), 720px); margin-inline: auto; padding: clamp(4rem, 10vw, 7rem) 0; }
.page-texte h1 { font-size: clamp(1.75rem, 4.4vw, 2.6rem); line-height: 1.15; letter-spacing: .14em; text-transform: uppercase; }
.page-texte .maj { margin: 1.2rem 0 3rem; font-size: .8125rem; color: var(--gris); }
.page-texte h2 { margin: 3.5rem 0 1.2rem; padding-top: 2rem; border-top: 1px solid var(--filet); font-size: 1.5rem; line-height: 1.3; }
.page-texte h1::after { content: ""; display: block; width: 2.5rem; height: 1px; margin-top: 1.4rem; background: var(--rose); }
.page-texte a { text-decoration-color: var(--rose); }
.page-texte p + p, .page-texte p + ul, .page-texte ul + p, .page-texte dl + p, .page-texte p + dl, .page-texte table + p, .page-texte p + table { margin-top: 1rem; }
.page-texte p { margin: 0; }
.page-texte ul { margin: 0; padding-left: 1.2rem; }
.page-texte li + li { margin-top: .4rem; }
.page-texte strong { font-weight: 400; color: #000; }
.page-texte a { color: var(--encre); text-underline-offset: 3px; }
.page-texte dl { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 0; margin: 0; border-top: 1px solid var(--filet); }
.page-texte dt, .page-texte dd { padding: .9rem 0; border-bottom: 1px solid var(--filet); }
.page-texte dt { font: 400 .6875rem/1.9 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }
.page-texte dd { margin: 0; font-family: var(--serif); font-size: 1.125rem; line-height: 1.5; overflow-wrap: anywhere; }
.page-texte table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.page-texte th, .page-texte td { text-align: left; vertical-align: top; padding: .9rem .6rem .9rem 0; border-bottom: 1px solid var(--filet); }
.page-texte th { font: 400 .6875rem/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); border-top: 1px solid var(--filet); }
@media (max-width: 560px) {
  .page-texte dl { grid-template-columns: 1fr; }
  .page-texte dt { padding-bottom: 0; border-bottom: 0; }
  .page-texte table, .page-texte thead, .page-texte tbody, .page-texte tr, .page-texte th, .page-texte td { display: block; }
  .page-texte thead { display: none; }
  .page-texte tr { padding: .9rem 0; border-bottom: 1px solid var(--filet); }
  .page-texte td { border: 0; padding: .1rem 0; }
  .page-texte td:last-child { color: var(--gris); font-size: .875rem; }
}

.page-merci { width: min(100% - 2 * var(--marge), 560px); min-height: calc(100svh - 64px); margin-inline: auto; padding: 5rem 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.page-merci .sigil { width: 34px; margin-bottom: 2.2rem; filter: brightness(0) opacity(.85); }
.page-merci h1 { margin: 0 0 1.6rem; font-size: clamp(1.75rem, 4.4vw, 2.4rem); line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; }
.page-merci .lead { font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; }
.page-merci .small { font-size: .875rem; color: var(--gris); }
.page-merci .btn { margin-top: 1.6rem; }

/* ==========================================================
   Apparitions (si JS actif ; déclenchées tard pour le mobile)
   ========================================================== */
@keyframes apparait { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity 1.6s var(--lent), transform 1.6s var(--lent); }
.js .rv.in { opacity: 1; transform: none; }
.js .heros picture.rv { transform: scale(1.04); transition: opacity 2.4s var(--lent), transform 6s var(--lent); }
.js .heros picture.rv.in { transform: none; }
.js .heros-texte.rv { transition-delay: .6s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .heros picture.rv { opacity: 1; transform: none; }
}
