/* NIVÔSE — maquette d'un atelier d'horlogerie (Studio Boréal).
   Hors du parc : couleurs en dur, JS autorisé. Deux lumières — la nuit de
   l'établi pour le mouvement, la neige pour tout le reste — et une seule
   couleur d'accent, celle de l'acier bleui. */

@font-face { font-family: 'Nivose Titre'; src: url('../fonts/nivose-titre.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Nivose Titre'; src: url('../fonts/nivose-titre-italique.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Nivose Texte'; src: url('../fonts/nivose-texte.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Nivose Mono'; src: url('../fonts/nivose-mono.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --nuit: #0b0e13;
  --nuit-2: #121722;
  --nuit-3: #1b2230;
  --givre: #e9edf3;
  --givre-2: #9ba4b4;
  --neige: #f4f1ea;
  --neige-2: #ebe6dc;
  --neige-3: #e1dbcf;
  --encre: #16181e;
  --encre-2: #575b65;
  --bleui: #2f4bc4;
  --bleui-fonce: #22389b;
  --bleui-clair: #9cb0ff;
  --laiton: #d2b06a;
  --filet-nuit: rgb(233 237 243 / .13);
  --filet-neige: rgb(22 24 30 / .14);
  --bord-commande: #7f8289; /* ≥ 3:1 sur neige et neige-2 : le bord d’un choix l’identifie */

  --f-titre: 'Nivose Titre', 'EB Garamond', Garamond, serif;
  --f-texte: 'Nivose Texte', system-ui, sans-serif;
  --f-mono: 'Nivose Mono', ui-monospace, monospace;

  --t-petit: .8125rem;
  --t-texte: 1.0625rem;
  --t-chapo: clamp(1.125rem, 1.05rem + .45vw, 1.35rem);
  --t-h2: clamp(2.35rem, 1.6rem + 3.6vw, 4.3rem);
  --marge: clamp(1rem, .5rem + 2.6vw, 3rem);
  --largeur: 78rem;
  --entete-h: 4rem;
  --rythme: clamp(5rem, 3.5rem + 7vw, 10rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete-h) + 1rem); }
body {
  margin: 0;
  background: var(--neige);
  color: var(--encre);
  font: 400 var(--t-texte)/1.6 var(--f-texte);
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--f-titre); font-weight: 500; text-wrap: balance; }
h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--bleui); outline-offset: 3px; border-radius: 2px; }
.sombre :focus-visible, .heros :focus-visible, .calibre :focus-visible, .entete :focus-visible, .pied :focus-visible, .menu :focus-visible { outline-color: var(--bleui-clair); }
button, input, textarea { font: inherit; color: inherit; }
sup { font-size: .6em; line-height: 0; }

.cadre { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--marge); }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--givre); color: var(--nuit); }
.evitement:focus { top: 1rem; }

.surtitre {
  font: 400 .75rem/1.4 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bleui);
}
.surtitre span { margin-inline: .35em; }

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .7rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--bleui);
  color: #fff;
  font: 600 .9375rem/1.2 var(--f-texte);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease;
}
.bouton:hover { background: var(--bleui-fonce); }
.bouton-petit { min-height: 2.5rem; padding: .5rem 1.1rem; font-size: .875rem; }
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 3rem;
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
}
.lien-fleche::after {
  content: '';
  width: .55rem;
  height: .55rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.lien-fleche:hover::after { transform: rotate(45deg) translate(1px, 1px); }

/* ---------- Bandeau de maquette ---------- */
.maquette {
  position: relative;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: .55rem var(--marge);
  background: #e9edf3;
  color: var(--nuit);
  font-size: var(--t-petit);
  line-height: 1.4;
}
.maquette span { font-weight: 600; }
.maquette a { white-space: nowrap; color: var(--bleui); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--entete-h);
  padding-inline: var(--marge);
  background: rgb(11 14 19 / .94);
  color: var(--givre);
  border-bottom: 1px solid var(--filet-nuit);
}
.marque { margin-right: auto; text-decoration: none; }
.marque-nom { font: 500 1.6rem/1 var(--f-titre); letter-spacing: .02em; }
.entete-nav { display: flex; gap: 1.6rem; font-size: .9375rem; }
.entete-nav a { text-decoration: none; color: var(--givre-2); transition: color .2s ease; }
.entete-nav a:hover { color: var(--givre); }
.entete-menu { display: none; }
@media (max-width: 64rem) {
  .entete { gap: .75rem; }
  .entete-nav { display: none; }
  .entete-menu {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--filet-nuit);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }
  .entete-menu span { display: block; width: 1rem; height: 1.5px; background: var(--givre); }
}
@media (max-width: 30rem) {
  .entete .bouton-petit { padding-inline: .9rem; }
}
.menu {
  inset: 0 0 0 auto;
  width: min(22rem, 100vw);
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 5rem 2rem 2rem;
  border: 0;
  background: var(--nuit);
  color: var(--givre);
}
.menu:popover-open { display: flex; flex-direction: column; gap: 1.1rem; }
.menu::backdrop { background: rgb(0 0 0 / .5); }
.menu a { font: 500 1.75rem/1.1 var(--f-titre); text-decoration: none; }
.menu .bouton { margin-top: 1rem; font: 600 .9375rem/1.2 var(--f-texte); }
.menu-fermer {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--filet-nuit);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.menu-fermer::before, .menu-fermer::after { content: ''; position: absolute; left: 50%; top: 50%; width: 1rem; height: 1.5px; background: var(--givre); }
.menu-fermer::before { transform: translate(-50%, -50%) rotate(45deg); }
.menu-fermer::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- La montre (composant) ---------- */
.montre {
  --cadran: #d3d0c8;
  --cadran-clair: #f1efea;
  --guilloche-sombre: #b5b1a7;
  --guilloche-clair: #ffffff;
  --chiffres: #1b1e26;
  --filet: #2a2d35;
  --sous-cadran: #dcd9d1;
  --azurage: #a9a59c;
  --boite: #bcc1c8;
  --boite-clair: #f6f8fa;
  --boite-ombre: #69707a;
  --aiguilles: #2c46b8;
  --aiguilles-clair: #849cff;
  --aiguilles-ombre: #121b55;
  --bracelet: #5a3a26;
  --bracelet-ombre: #2b1a10;
  --couture: #d9c7a3;
  position: relative;
  aspect-ratio: 48 / 54;
  transform-style: preserve-3d;
}
.montre svg { position: absolute; overflow: visible; }
.montre-fond, .verre { inset: 0; width: 100%; height: 100%; }
.montre .aiguille { transform-origin: 50% 50%; will-change: transform; }
.montre .verre { pointer-events: none; }
.montre .minutes { fill: var(--filet); stroke: var(--filet); stroke-width: .07; }
.montre .filet { stroke: var(--filet); }
.montre .chiffres { font-family: var(--f-titre); font-style: italic; fill: var(--chiffres); font-variant-numeric: lining-nums; }
.montre .signature { font-family: var(--f-titre); fill: var(--chiffres); }
.montre .sous-signature { font-family: var(--f-titre); fill: var(--chiffres); opacity: .75; }
.montre .sous-cadran { fill: var(--sous-cadran); }
.montre .azurage { stroke: var(--azurage); }
.montre .traits { stroke: var(--filet); }
.montre .couture { stroke: var(--couture); stroke-width: .1; stroke-dasharray: .5 .35; fill: none; }

/* Les variantes du configurateur : rien que des propriétés. */
.montre-section:has([name=cadran][value=email]:checked) .montre {
  --cadran: #f2efe7; --cadran-clair: #fdfcf9; --guilloche-sombre: #f5f2eb; --guilloche-clair: #f9f7f2;
  --sous-cadran: #f2efe7; --azurage: #e4e0d6; --chiffres: #121318; --filet: #1d1f25;
}
.montre-section:has([name=cadran][value=bleu]:checked) .montre {
  --cadran: #1b2747; --cadran-clair: #33497a; --guilloche-sombre: #192443; --guilloche-clair: #7a98e6;
  --sous-cadran: #1d2a4c; --azurage: #3a4f86; --chiffres: #eef1f7; --filet: #cfd7e6;
}
.montre-section:has([name=cadran][value=saumon]:checked) .montre {
  --cadran: #d8a389; --cadran-clair: #f3cfbb; --guilloche-sombre: #c58f74; --guilloche-clair: #fff3ea;
  --sous-cadran: #dcab93; --azurage: #b8876e; --chiffres: #351f15; --filet: #46291c;
}
.montre-section:has([name=aiguilles][value=or]:checked) .montre { --aiguilles: #c88f5f; --aiguilles-clair: #f6d3ab; --aiguilles-ombre: #84502c; }
.montre-section:has([name=boitier][value=or]:checked) .montre { --boite: #d39d80; --boite-clair: #f8dcc8; --boite-ombre: #8b5a41; }
.montre-section:has([name=bracelet][value=noir]:checked) .montre { --bracelet: #222226; --bracelet-ombre: #0b0b0d; --couture: #8c8a86; }
.montre-section:has([name=bracelet][value=sapin]:checked) .montre { --bracelet: #33503f; --bracelet-ombre: #16261d; --couture: #c9c3a8; }

/* ---------- Héros ---------- */
.heros {
  position: relative;
  overflow: clip;
  background: radial-gradient(120% 90% at 78% 40%, #1c2433 0%, var(--nuit) 62%);
  color: var(--givre);
}
.heros-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 2rem;
  min-height: calc(100svh - var(--entete-h) - 2.4rem);
  padding-block: 3rem;
}
.heros .surtitre { color: var(--laiton); }
.heros h1 {
  margin: 1.2rem 0 1.4rem;
  font-size: clamp(4.6rem, 2rem + 10vw, 10.5rem);
  line-height: .86;
  letter-spacing: -.015em;
}
.heros-chapo { max-width: 30rem; font-size: var(--t-chapo); line-height: 1.5; color: #c8cfda; }
.heros-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.6rem; margin-top: 2.2rem; }
.heros-montre { position: relative; display: grid; justify-items: center; gap: 1.2rem; perspective: 1600px; }
.heros-montre .montre { width: min(100%, 36rem); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.heros-montre::before {
  content: '';
  position: absolute;
  inset: 12% 8%;
  background: radial-gradient(closest-side, rgb(214 183 108 / .16), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.heros-montre figcaption { max-width: 26rem; font-size: var(--t-petit); line-height: 1.5; color: var(--givre-2); text-align: center; }
.heros-montre .heure { color: var(--givre); font-variant-numeric: tabular-nums; }
@media (max-width: 52rem) {
  .heros-grille { grid-template-columns: 1fr; gap: 1rem; min-height: 0; padding-block: 2.5rem 3rem; }
  .heros-montre .montre { width: min(100%, 26rem); }
}

/* ---------- Le calibre : la scène ---------- */
.calibre { background: var(--nuit); color: var(--givre); }
.calibre-piste { position: relative; height: 470vh; }
.calibre-scene {
  position: sticky;
  top: var(--entete-h);
  height: calc(100svh - var(--entete-h));
  display: grid;
  grid-template-columns: minmax(18rem, 27rem) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  max-width: var(--largeur);
  margin-inline: auto;
  padding: clamp(1.5rem, 4vh, 3.5rem) var(--marge);
  overflow: hidden;
}
.calibre .surtitre { color: var(--laiton); }
.calibre-tete h2 { margin: .8rem 0 1rem; font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); line-height: 1.02; }
.calibre-chapo { color: #c3cad6; max-width: 26rem; }
.calibre-etapes { position: relative; align-self: end; display: grid; min-height: 11rem; }
.calibre-etapes li {
  grid-area: 1 / 1;
  align-self: end;
  opacity: 0;
  transform: translateY(.6rem);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.calibre-etapes li.actif { opacity: 1; transform: none; }
.calibre-etapes h3 { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; font: 500 1.65rem/1.15 var(--f-titre); }
.calibre-etapes p { max-width: 25rem; color: #c3cad6; }
.numero {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 400 .75rem/1 var(--f-mono);
}
.calibre-etapes .numero { color: var(--laiton); }
.mouvement {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: center;
  width: min(100%, calc(100svh - var(--entete-h) - 4rem));
  aspect-ratio: 1;
}
.mouvement .couche, .mouvement .tranche { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.mouvement svg { position: absolute; overflow: visible; }
.mouvement .fixe { inset: 0; width: 100%; height: 100%; }
.mouvement .mobile, .mouvement .spiral { transform-origin: 50% 50%; }
.mouvement .mobile { will-change: transform; }
.mouvement .defs { width: 0; height: 0; }
.mouvement .gravure { fill: #d9bb72; font-family: var(--f-titre); }
.mouvement [data-couche='cadran'] .gravure { fill: #6a4f1c; }

.reperes { position: absolute; inset: 0; pointer-events: none; }
.repere {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: .45rem;
  will-change: transform;
  opacity: 0;
  transition: opacity .3s ease;
  white-space: nowrap;
}
.repere.visible { opacity: 1; }
.repere b {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid rgb(210 176 106 / .8);
  border-radius: 50%;
  background: rgb(11 14 19 / .78);
  color: var(--laiton);
  font: 400 .75rem/1 var(--f-mono);
}
.repere span { padding: .3rem .45rem; border-radius: 3px; background: rgb(11 14 19 / .82); font: 400 .6875rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--givre-2); }
.repere.actif b { background: var(--laiton); color: var(--nuit); }
.repere.actif span { color: var(--givre); }

@media (max-width: 64rem) {
  .calibre-piste { height: 420vh; }
  .calibre-scene {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding-block: 1.1rem 1.4rem;
    row-gap: .6rem;
  }
  .calibre-tete h2 { margin: .4rem 0 .5rem; font-size: clamp(1.8rem, 1.2rem + 3vw, 2.6rem); }
  .calibre-chapo { font-size: .9375rem; line-height: 1.5; }
  .mouvement { grid-column: 1; grid-row: 2; width: min(100%, 100%); max-height: 100%; height: auto; max-width: min(100%, calc(100svh - var(--entete-h) - 21rem)); }
  .calibre-etapes { grid-row: 3; min-height: 8.2rem; align-self: start; }
  .calibre-etapes h3 { font-size: 1.35rem; margin-bottom: .3rem; }
  .calibre-etapes p { font-size: .9375rem; line-height: 1.5; }
  .repere span { display: none; }
  .repere b { width: 1.45rem; height: 1.45rem; font-size: .6875rem; }
}
@media (max-width: 64rem) and (max-height: 760px) {
  .calibre-chapo { display: none; }
}

/* ---------- Le calibre : la fiche ---------- */
.calibre-fiche {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  padding-block: var(--rythme);
}
.fiche-texte h3 { font: 500 2rem/1.1 var(--f-titre); margin-bottom: 1rem; }
.fiche-texte p { color: #c3cad6; max-width: 32rem; }
.fiche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--filet-nuit); }
.fiche div { padding: 1.05rem 0; border-bottom: 1px solid var(--filet-nuit); }
.fiche div:nth-child(odd) { padding-right: 1.5rem; }
.fiche dt { font: 400 .6875rem/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--givre-2); }
.fiche dd { margin-top: .35rem; font: 500 1.35rem/1.25 var(--f-titre); font-variant-numeric: lining-nums; }
.rouage-ligne { grid-column: 1 / -1; display: grid; gap: 1rem; padding-top: 1rem; }
.rouage-ligne svg { width: 100%; height: auto; overflow: visible; }
.rouage-ligne figcaption { font-size: var(--t-petit); color: var(--givre-2); max-width: 40rem; }
.rouage-ligne .r-roue { fill: none; stroke: var(--laiton); stroke-width: 1.2; }
.rouage-ligne .r-pignon { fill: none; stroke: var(--givre-2); stroke-width: 1.2; }
.rouage-ligne .r-axe { stroke: var(--filet-nuit); stroke-width: 1; stroke-dasharray: 2 4; }
.rouage-ligne .r-nom { fill: var(--givre); font: 500 17px var(--f-titre); }
.rouage-ligne .r-dents { fill: var(--givre-2); font: 400 11px var(--f-mono); letter-spacing: .06em; }
.rouage-ligne .r-rapport { fill: var(--laiton); font: 400 12px var(--f-mono); }
.rouage-ligne .r-vitesse { fill: var(--givre); font: 400 11px var(--f-mono); letter-spacing: .04em; }
.rouage-haut { display: none; }
@media (max-width: 52rem) {
  .calibre-fiche { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .rouage-large { display: none; }
  .rouage-haut { display: block; max-width: 22rem; }
}

/* ---------- Les finitions ---------- */
.finitions { padding-block: var(--rythme); background: var(--neige); --lumiere: 32deg; --lx: 30%; --ly: 25%; }
.section-tete { max-width: 46rem; }
.section-tete h2 { margin: .8rem 0 1.1rem; font-size: var(--t-h2); line-height: 1.02; }
.section-chapo { font-size: var(--t-chapo); line-height: 1.5; color: var(--encre-2); max-width: 40rem; }
.finitions-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; margin-top: 3.5rem; }
.finition h3 { margin: 1.5rem 0 .4rem; font: 500 1.55rem/1.15 var(--f-titre); }
.finition p { font-size: .9688rem; color: var(--encre-2); }
/* Les loupes : quatre vues grossies du mouvement de la page, dans une
   monture d'oculaire. La lumière suit le pointeur, ou le défilement. */
.loupe {
  position: relative;
  aspect-ratio: 1;
  margin: 10px;
  border-radius: 50%;
  overflow: hidden;
  background: #a7adb6;
  box-shadow: 0 0 0 9px #15181e, 0 0 0 10px #4a505a, 0 26px 44px -14px rgb(22 24 30 / .55);
  isolation: isolate;
}
.loupe-vue { position: absolute; inset: 0; width: 100%; height: 100%; }
.loupe::before, .loupe::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.loupe::before {
  background: radial-gradient(circle at var(--lx) var(--ly), rgb(255 255 255 / .55), rgb(255 255 255 / 0) 46%);
  mix-blend-mode: soft-light;
}
.loupe::after { background: radial-gradient(circle, transparent 60%, rgb(6 8 12 / .18) 84%, rgb(6 8 12 / .5) 100%); }
.loupe .gravure { fill: #b8933f; font-family: var(--f-titre); }
@media (max-width: 64rem) { .finitions-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .finitions-grille { gap: 1.75rem 1rem; } .finition h3 { font-size: 1.3rem; } }

/* ---------- La montre : le configurateur ---------- */
.montre-section { padding-block: var(--rythme); background: linear-gradient(var(--neige-2), var(--neige)); }
.montre-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.montre-apercu { position: sticky; top: calc(var(--entete-h) + 1.5rem); display: grid; justify-items: center; }
.montre-apercu .montre { width: min(100%, 31rem); filter: drop-shadow(0 30px 40px rgb(22 24 30 / .25)); }
.montre-choix h2 { margin: .8rem 0 1.1rem; font-size: var(--t-h2); line-height: 1.02; }
.configurateur { margin-top: 2.2rem; display: grid; gap: 1.4rem; }
.configurateur fieldset { margin: 0; padding: 0; border: 0; }
.configurateur legend { margin-bottom: .6rem; font: 400 .6875rem/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--encre-2); }
.pastilles { display: flex; flex-wrap: wrap; gap: .5rem; }
.pastilles label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding: .35rem .95rem .35rem .4rem;
  border: 1px solid var(--bord-commande);
  border-radius: 999px;
  background: rgb(255 255 255 / .55);
  font-size: .9375rem;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.pastilles label:hover { border-color: var(--encre); }
.pastilles input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pastille { width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--p); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14), inset 0 6px 8px rgb(255 255 255 / .35); }
.pastilles label:has(input:checked) { border-color: var(--encre); background: #fff; box-shadow: inset 0 0 0 1px var(--encre); }
.pastilles label:has(input:focus-visible) { outline: 2px solid var(--bleui); outline-offset: 2px; }
.prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .4rem; padding-top: 1.3rem; border-top: 1px solid var(--filet-neige); }
.prix [data-prix] { font: 500 2.2rem/1 var(--f-titre); font-variant-numeric: lining-nums; }
.prix-note { font: 400 .75rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--encre-2); }
.resume { color: var(--encre-2); font-size: .9375rem; }
.annee { margin: 2.2rem 0 1.6rem; padding: 1.4rem; border: 1px solid var(--filet-neige); border-radius: 6px; background: rgb(255 255 255 / .5); }
.annee h3 { font: 400 .6875rem/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--encre-2); }
.annee-montres { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .4rem; margin: 1rem 0 .9rem; }
.annee-montres li { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--encre); position: relative; }
.annee-montres li.prise { background: var(--encre); }
.annee-montres li.prise::after { content: ''; position: absolute; left: 50%; top: 22%; width: 1.5px; height: 30%; background: var(--neige); transform-origin: 50% 100%; transform: translateX(-50%) rotate(var(--r, 0deg)); }
.annee-texte { font-size: .9375rem; }
@media (max-width: 52rem) {
  .montre-grille { grid-template-columns: 1fr; }
  .montre-apercu { position: relative; top: 0; }
  .montre-apercu .montre { width: min(100%, 22rem); }
}

/* ---------- Formulaires ---------- */
.formulaire {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 8px;
  background: var(--nuit);
  color: var(--givre);
  scroll-margin-top: calc(var(--entete-h) + 1rem);
}
.formulaire h3 { font: 500 2rem/1.1 var(--f-titre); }
.formulaire > p { margin-top: .5rem; color: var(--givre-2); }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; margin: 1.6rem 0 1.4rem; }
.champs label { display: grid; gap: .4rem; font-size: .875rem; color: var(--givre-2); }
.champs .large { grid-column: 1 / -1; }
.champs input, .champs textarea {
  width: 100%;
  min-height: 3rem;
  padding: .7rem .9rem;
  border: 1px solid rgb(233 237 243 / .38);
  border-radius: 4px;
  background: var(--nuit-2);
  color: var(--givre);
  font-size: 1rem;
}
.champs textarea { resize: vertical; }
.champs input[readonly] { border-style: dashed; color: #c3cad6; }
.champs input[aria-invalid='true'] { border-color: #ff9aa8; }
.erreur { margin-bottom: 1rem; color: #ffb3bd; }
.merci { margin-top: 1.2rem; padding: 1rem 1.2rem; border-left: 2px solid var(--laiton); background: var(--nuit-2); color: var(--givre); }
@media (max-width: 40rem) { .champs { grid-template-columns: 1fr; } }

/* ---------- Révision ---------- */
.revision { padding-block: var(--rythme); background: var(--neige); }
.revision-grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); margin-top: 3rem; align-items: start; }
.estimation { display: grid; gap: 2rem; }
.estimation fieldset { margin: 0; padding: 0; border: 0; }
.estimation legend { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; font: 500 1.45rem/1.2 var(--f-titre); }
.estimation .numero { color: var(--bleui); }
.choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.choix-ligne { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choix label {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  padding: .7rem 1rem;
  border: 1px solid var(--bord-commande);
  border-radius: 6px;
  background: rgb(255 255 255 / .6);
  font-size: .9375rem;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.choix label:hover { border-color: var(--encre); }
.choix input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choix label:has(input:checked) { border-color: var(--bleui); background: #fff; box-shadow: inset 0 0 0 1px var(--bleui); }
.choix label:has(input:focus-visible) { outline: 2px solid var(--bleui); outline-offset: 2px; }
.devis {
  position: sticky;
  top: calc(var(--entete-h) + 1.5rem);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 8px;
  background: var(--nuit);
  color: var(--givre);
}
.devis-surtitre { font: 400 .6875rem/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--laiton); }
.devis-titre { margin-top: .7rem; font: 500 1.9rem/1.1 var(--f-titre); }
.devis-prix { margin-top: .6rem; font: 500 2.4rem/1.05 var(--f-titre); font-variant-numeric: lining-nums; color: #fff; }
.devis-delai { margin-top: .4rem; color: var(--givre-2); }
.devis-liste { display: grid; gap: .5rem; margin: 1.3rem 0; padding-top: 1.2rem; border-top: 1px solid var(--filet-nuit); font-size: .9375rem; }
.devis-liste li { position: relative; padding-left: 1.2rem; }
.devis-liste li::before { content: ''; position: absolute; left: 0; top: .62em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--bleui-clair); }
.devis-liste li.alerte { margin-top: .4rem; padding: .7rem .9rem .7rem 2.1rem; border-radius: 4px; background: rgb(255 154 168 / .12); color: #ffd2d8; }
.devis-liste li.alerte::before { left: .9rem; top: 1.25em; background: #ff9aa8; }
.devis-note { margin-bottom: 1.4rem; font-size: var(--t-petit); color: var(--givre-2); }
.parcours { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; margin-top: clamp(3.5rem, 7vw, 6rem); counter-reset: etape; }
.parcours li { padding-top: 1.1rem; border-top: 1.5px solid var(--encre); }
.parcours-n { font: 400 .75rem/1 var(--f-mono); letter-spacing: .1em; color: var(--bleui); }
.parcours h3 { margin: .7rem 0 .35rem; font: 500 1.3rem/1.15 var(--f-titre); }
.parcours p { font-size: .9063rem; line-height: 1.5; color: var(--encre-2); }
@media (max-width: 64rem) {
  .revision-grille { grid-template-columns: 1fr; }
  .devis { position: relative; top: 0; }
  .parcours { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
}
@media (max-width: 40rem) {
  .choix, .choix-ligne { grid-template-columns: 1fr; }
  .choix-ligne { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parcours { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* ---------- La Vallée ---------- */
.vallee { padding-bottom: var(--rythme); background: var(--neige); }
.vallee-image { position: relative; }
.vallee-image img { width: 100%; height: clamp(18rem, 52vw, 44rem); object-fit: cover; }
.vallee-image figcaption, .vallee-duo figcaption { margin-top: .6rem; padding-inline: var(--marge); font-size: var(--t-petit); color: var(--encre-2); }
.vallee-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 6vw, 5.5rem); }
.vallee-texte { display: grid; gap: 1.1rem; font-size: 1.0938rem; }
.vallee-visite { padding-top: 1.1rem; border-top: 1px solid var(--filet-neige); color: var(--encre-2); }
.vallee-duo { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.vallee-duo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.vallee-duo figcaption { padding-inline: 0; }
@media (max-width: 52rem) {
  .vallee-grille, .vallee-duo { grid-template-columns: 1fr; }
}

/* ---------- Pied ---------- */
.pied { padding-block: 3.5rem 4rem; background: var(--nuit); color: var(--givre-2); font-size: .875rem; }
.pied-grille { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 2rem 3rem; }
.pied-grille p + p { margin-top: .8rem; }
.pied-marque { font: 500 2rem/1 var(--f-titre); color: var(--givre); margin-bottom: .8rem; }
.pied a { color: var(--givre); }
@media (max-width: 52rem) { .pied-grille { grid-template-columns: 1fr; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .calibre-piste { height: auto; }
  .calibre-scene { position: relative; top: 0; height: auto; min-height: 0; }
  .calibre-etapes { display: grid; gap: 1.2rem; min-height: 0; }
  .calibre-etapes li { grid-area: auto; opacity: 1; transform: none; }
  .calibre-etapes li[data-etape='boite'] { display: none; }
  .mouvement { width: min(100%, 40rem); }
  .heros-montre .montre { transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
