/* Huitième · maison horlogère imaginaire (démonstration Print & Com). Feuille écrite à la main.
   Teintes : émeraude profond, crème, or (palette de Wajdi : 0F3D34, 134E43, E6F0E9, F7F6F1, C8A96A).
   Polices : Cinzel (rappel du mot HUITIÈME du logo), Spectral (textes), Montserrat (devise du logo, cotes et boutons). */
@font-face { font-family: Cinzel; src: url(polices/cinzel.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Spectral; src: url(polices/spectral-200.woff2) format("woff2"); font-weight: 200; font-display: swap; }
@font-face { font-family: Spectral; src: url(polices/spectral-200i.woff2) format("woff2"); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: Spectral; src: url(polices/spectral-300.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: Spectral; src: url(polices/spectral-300i.woff2) format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: Montserrat; src: url(polices/montserrat.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --abime: #061A16; --fond: #0B2A24; --emeraude: #0F3D34; --emeraude-2: #134E43;
  --menthe: #E6F0E9; --creme: #F7F6F1; --or: #C8A96A; --or-clair: #E9D6A3; --or-sombre: #8C7440; --rubis: #C2214B;
  --page: var(--fond); --clair: #F2EFE4; --papier: var(--creme); --encre: #0E3229; --trait: rgba(200, 169, 106, .34);
  --lueur: none;
  --marge: clamp(1.25rem, 5vw, 4.5rem);
  --serif: Spectral, "Iowan Old Style", Georgia, serif; --cap: Cinzel, "Trajan Pro", Georgia, serif; --sans: Montserrat, system-ui, "Segoe UI", sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--abime); scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; color: var(--clair); font: 300 1.0625rem/1.62 var(--serif); overflow-x: clip; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-variant-numeric: lining-nums; }
/* le satin du fond : deux bandes de lumière en biais et un grain très fin, comme derrière le logo */
body::before { content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='8'/%3E%3CfeColorMatrix values='0 0 0 0 .8  0 0 0 0 .95  0 0 0 0 .86  0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E"),
  linear-gradient(118deg, transparent 0 18%, rgba(30, 96, 82, .16) 27%, transparent 38%, transparent 56%, rgba(30, 96, 82, .12) 66%, transparent 78%),
  var(--page); transition: background-color .9s; }
img, canvas, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 1.5px solid var(--or-clair); outline-offset: 4px; }
::selection { background: var(--or); color: var(--abime); }
.evitement { position: fixed; left: 1rem; top: -4rem; z-index: 60; padding: .7rem 1rem; background: var(--or); color: var(--abime); font: 500 .8rem var(--sans); }
.evitement:focus { top: 1rem; }

/* ---------- titres, sur-titres, boutons ---------- */
h1, h2 { font: 200 clamp(2.05rem, 3.9vw + 1rem, 4.4rem)/1.04 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
h2 { font-size: clamp(1.95rem, 3vw + 1rem, 3.5rem); }
h1 em, h2 em { font-style: italic; color: var(--or-clair); text-shadow: var(--lueur); }
.sur { display: flex; align-items: center; gap: 1.1em; margin-bottom: 1.5em; font: 400 .76rem/1 var(--cap); letter-spacing: .34em; text-transform: uppercase; color: var(--or); text-shadow: var(--lueur); }
.frac { display: inline-flex; align-items: baseline; padding: .55em .8em .5em .95em; border: 1px solid var(--trait); border-radius: 99px; font: 500 .72rem/1 var(--sans); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.frac b { font-weight: 600; } .frac i { font-style: normal; opacity: .7; } .frac i::before { content: "/"; margin: 0 .14em; }
.note { font-size: .92rem; font-style: italic; opacity: .72; }
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .2rem 1.7rem; border: 1px solid var(--or); color: var(--or-clair); font: 500 .7rem/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; text-align: center; transition: background .35s, color .35s, box-shadow .35s; }
.bouton:hover, .bouton:focus-visible { background: rgba(200, 169, 106, .14); }
.bouton.plein { background: var(--or); color: var(--abime); }
.bouton.plein:hover, .bouton.plein:focus-visible { background: var(--or-clair); }
.lien { font: 500 .68rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--or); padding: .9rem 0; border-bottom: 1px solid var(--trait); }
.lien:hover { color: var(--or-clair); border-color: var(--or); }

/* ---------- en-tête ---------- */
.tete { position: fixed; z-index: 40; inset: 0 0 auto 0; display: flex; align-items: center; gap: 1.4rem; padding: max(.85rem, env(safe-area-inset-top)) var(--marge) .85rem; transition: background .5s, box-shadow .5s, padding .4s; }
.defile .tete { background: rgba(6, 26, 22, .9); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(200, 169, 106, .16); padding-top: max(.55rem, env(safe-area-inset-top)); padding-bottom: .55rem; }
.marque { display: flex; align-items: center; gap: .7rem; margin-right: auto; text-decoration: none; }
.marque .m-8 { height: 2.5rem; width: auto; filter: var(--lueur-img, none); }
.marque .m-nom { height: .98rem; width: auto; opacity: 0; transform: translateX(-6px); transition: opacity .5s, transform .5s; }
.defile .marque .m-nom { opacity: 1; transform: none; }
.menu { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); }
.menu a { position: relative; padding: .7rem 0; font: 500 .66rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--clair); opacity: .82; transition: opacity .3s, color .3s; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .3rem; height: 1px; background: var(--or); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.menu a:hover, .menu a:focus-visible { opacity: 1; color: var(--or-clair); }
.menu a:hover::after, .menu a:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
.menu .m-rdv { padding: .75rem 1.1rem; border: 1px solid var(--trait); opacity: 1; color: var(--or-clair); }
.menu .m-rdv::after { display: none; } .menu .m-rdv:hover { border-color: var(--or); background: rgba(200, 169, 106, .1); }
.b-son { display: flex; align-items: center; gap: .5rem; min-width: 2.75rem; min-height: 2.75rem; justify-content: center; font: 500 .62rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--clair); opacity: .75; }
.b-son svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.b-son .onde { opacity: .25; transition: opacity .3s; }
.b-son[aria-pressed="true"] { opacity: 1; color: var(--or-clair); } .b-son[aria-pressed="true"] .onde { opacity: 1; }
.b-son[aria-pressed="true"] .o2 { animation: onde 1s ease-in-out infinite; } @keyframes onde { 50% { opacity: .3; } }
.b-menu { display: none; }
@media (max-width: 900px) {
  .b-son span { display: none; }
  .b-menu { display: grid; place-items: center; position: relative; width: 2.75rem; height: 2.75rem; margin-right: -.5rem; }
  .b-menu i { position: absolute; left: .7rem; right: .7rem; height: 1px; background: var(--or-clair); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
  .b-menu i:nth-child(1) { transform: translateY(-4px); } .b-menu i:nth-child(2) { transform: translateY(4px); }
  .b-menu span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ouvert .b-menu i:nth-child(1) { transform: rotate(45deg); } .ouvert .b-menu i:nth-child(2) { transform: rotate(-45deg); }
  .menu { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: .4rem; padding: 5rem var(--marge) 3rem; background: rgba(4, 20, 17, .97); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
  .ouvert .menu { opacity: 1; visibility: visible; }
  .menu a { padding: 1rem .5rem; font: 200 1.9rem/1.1 var(--serif); letter-spacing: 0; text-transform: none; opacity: 1; }
  .menu a::after { display: none; }
  .menu .m-rdv { margin-top: 1.4rem; padding: 1rem 1.8rem; font: 500 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
  .marque .m-nom { opacity: 1; transform: none; }
}

/* ---------- le régleur ---------- */
.regleur { position: fixed; z-index: 30; left: max(1rem, env(safe-area-inset-left)); bottom: max(1rem, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .65rem; padding: .4rem 1rem .4rem .42rem; border: 1px solid rgba(200, 169, 106, .3); border-radius: 99px; background: rgba(5, 22, 19, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--or-clair); pointer-events: none; opacity: 0; transform: translateY(8px); transition: opacity .6s .3s, transform .6s .3s; }
.pret .regleur { opacity: 1; transform: none; }
.r-bal { width: 2.5rem; height: 2.5rem; fill: none; stroke: var(--or); stroke-width: .9; }
.r-bal .r-cage { stroke: rgba(200, 169, 106, .3); stroke-dasharray: 1.2 2.4; }
.r-bal .r-vis { fill: var(--or); stroke: none; } .r-bal .r-rubis { fill: var(--rubis); stroke: var(--or-clair); stroke-width: .6; }
.r-txt { display: grid; gap: .28rem; min-width: 6.6rem; }
.r-nom { font: 500 .52rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .68; white-space: nowrap; }
.r-val { font: 500 .88rem/1 var(--sans); letter-spacing: .06em; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: var(--lueur); }
.r-frac { display: none; align-items: baseline; padding-left: .75rem; border-left: 1px solid rgba(200, 169, 106, .3); font: 400 1.25rem/1 var(--cap); font-variant-numeric: lining-nums; }
.r-frac i { font-style: normal; font-size: .72em; opacity: .65; } .r-frac i::before { content: "/"; margin: 0 .08em; }
.regleur[data-zone="seconde"] .r-frac { display: inline-flex; }
@media (max-width: 600px) { .regleur { padding: .28rem .8rem .28rem .3rem; gap: .5rem; } .r-bal { width: 2rem; height: 2rem; } .r-txt { min-width: 4.4rem; } .r-nom { display: none; } .r-val { font-size: .8rem; } .r-frac { font-size: 1.02rem; padding-left: .55rem; } }

/* ---------- la première scène : l'instant, le tic, le tac ---------- */
.seconde { position: relative; height: 900vh; }
.plan { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.plan canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#plan-1::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 46% at 50% 42%, rgba(24, 92, 78, .55), rgba(11, 42, 36, 0) 70%); pointer-events: none; }
.repere { position: absolute; left: 0; width: 1px; height: 1px; }
.t-instant { position: absolute; left: 0; right: 0; bottom: clamp(4.2rem, 7.5vh, 5.2rem); padding: 0 var(--marge); text-align: center; }
.t-instant .sur { justify-content: center; margin-bottom: 1.3em; letter-spacing: .3em; }
.t-instant time { font: 500 1.02em/1 var(--sans); letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--or-clair); }
.t-instant h1 { max-width: 15em; margin-inline: auto; }
.invite { display: flex; flex-direction: column; align-items: center; gap: .9rem; margin-top: clamp(1.1rem, 3vh, 2rem); font: 500 .64rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--clair); opacity: .7; }
.invite i { order: 2; width: 1px; height: 2.2rem; background: linear-gradient(var(--or), transparent); transform-origin: 50% 0; animation: fil 2.6s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes fil { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.leg { position: absolute; left: 0; right: 0; bottom: clamp(5.4rem, 15vh, 9rem); padding: 0 var(--marge); text-align: center; font: 200 clamp(1.5rem, 2.2vw + 1rem, 2.6rem)/1.15 var(--serif); letter-spacing: -.01em; text-wrap: balance; opacity: 0; visibility: hidden; pointer-events: none; }
.leg em { font-style: italic; color: var(--or-clair); text-shadow: var(--lueur); }
/* la signature : le mot, la devise et la croix, posés sous l'emblème aux cotes exactes du logo (1 --er = le rayon du cercle fin) */
.signature { position: absolute; left: calc(var(--ex) - 1.3219 * var(--er)); top: calc(var(--ey) + .8519 * var(--er)); width: calc(2.6638 * var(--er)); opacity: 0; visibility: hidden; pointer-events: none; }
.signature img { width: 100%; height: auto; filter: var(--lueur-img, none); }
.signature p { position: absolute; left: 0; right: 0; top: calc(.5156 * var(--er)); transform: translateY(-50%); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(.0705 * var(--er)); font: 500 calc(.0708 * var(--er))/1 var(--sans); letter-spacing: .5em; text-transform: uppercase; white-space: nowrap; color: #DDBD7C; text-shadow: var(--lueur); }
.signature p span { margin-right: -.5em; }
.signature p i { flex: 0 0 calc(.256 * var(--er)); height: max(1px, calc(.004 * var(--er))); background: linear-gradient(90deg, rgba(200, 169, 106, 0), #C8A96A); }
.signature p i:last-child { transform: scaleX(-1); }
.signature svg { position: absolute; left: calc(1.3276 * var(--er)); top: calc(.696 * var(--er)); width: calc(.148 * var(--er)); height: auto; transform: translate(-50%, -50%); fill: none; stroke: #D2B274; stroke-width: 2; }
.signature svg path { fill: #E2C583; stroke: none; }

/* le mouvement */
#c-mouvement { opacity: 0; }
.t-mouv { position: absolute; left: var(--marge); top: 50%; width: min(25.5rem, 31vw); transform: translateY(-46%); opacity: 0; visibility: hidden; }
.t-mouv h2 { margin-bottom: .55em; font-size: clamp(1.8rem, 2.4vw + .9rem, 3.1rem); }
.t-mouv p + p { margin-top: 1em; }
.phases { display: grid; gap: .2rem; margin-top: 1.2rem; counter-reset: ph; }
.phases li { position: relative; display: grid; gap: .25rem; padding: .7rem 0 .7rem 2.6rem; border-top: 1px solid rgba(200, 169, 106, .16); opacity: .38; transition: opacity .35s; }
.phases li::before { counter-increment: ph; content: counter(ph); position: absolute; left: 0; top: .78rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border: 1px solid var(--trait); border-radius: 50%; font: 500 .62rem/1 var(--sans); color: var(--or); transition: background .35s, color .35s; }
.phases b { font: 400 .74rem/1.2 var(--cap); letter-spacing: .26em; text-transform: uppercase; color: var(--or-clair); }
.phases span { font-size: .96rem; line-height: 1.45; }
.phases li.on { opacity: 1; } .phases li.on::before { background: var(--or); color: var(--abime); border-color: var(--or); }
.etiquettes span { position: absolute; left: 0; top: 0; padding: .1rem 0; font: 500 .58rem/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; color: var(--clair); opacity: 0; text-shadow: 0 0 8px var(--page), 0 0 2px var(--page); will-change: transform, opacity; }
.etiquettes span.rub { color: #F3A0B8; }
@media (max-width: 900px) {
  .t-mouv { left: 0; right: 0; top: auto; bottom: 0; width: auto; transform: none; padding: 3.6rem var(--marge) 5.4rem; background: linear-gradient(180deg, rgba(8, 33, 28, 0), rgba(7, 30, 25, .96) 24%); }
  .t-mouv .sur { margin-bottom: 1em; }
  .t-mouv h2 { font-size: clamp(1.55rem, 5.6vw, 2rem); }
  .t-mouv p { font-size: .96rem; line-height: 1.5; }
  .t-mouv .note { display: none; }
  .phases { margin-top: .7rem; gap: 0; } .phases li { padding: .5rem 0 .5rem 2.2rem; } .phases li::before { top: .5rem; width: 1.4rem; height: 1.4rem; }
  .phases span { display: none; font-size: .9rem; } .phases li.on span { display: block; }
  .etiquettes span { font-size: .5rem; letter-spacing: .18em; }
}

/* ---------- rubriques en page : cadre commun ---------- */
.cadre { width: min(74rem, 100% - 2 * var(--marge)); margin-inline: auto; }
.papier { background: var(--papier); color: var(--encre); color-scheme: light; }
.papier .sur { color: var(--or-sombre); } .papier .frac { border-color: rgba(140, 116, 64, .45); }
.papier h2 em { color: #9A7B37; }
.papier ::selection { background: var(--emeraude); color: var(--creme); }

/* ---------- 3/8 la maison ---------- */
.maison { position: relative; z-index: 2; padding: clamp(5.5rem, 14vh, 10rem) 0 clamp(4.5rem, 11vh, 8rem); }
.maison .cadre { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.m-texte h2 { margin-bottom: .7em; }
.m-texte p + p { margin-top: 1.1em; } .m-texte p:not(.sur) { max-width: 33em; font-size: 1.12rem; }
.m-texte sup { font-size: .6em; }
.hublot { display: grid; gap: 1.3rem; justify-items: center; }
.h-verre { position: relative; width: min(100%, 25rem); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 42% 34%, #17584A, #0B2A24 58%, #061A16); box-shadow: 0 0 0 1px #B7975A, 0 0 0 .75rem var(--papier), 0 0 0 calc(.75rem + 1px) rgba(140, 116, 64, .55), 0 2.4rem 4rem -1.6rem rgba(6, 26, 22, .55); }
.h-verre::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 38%); pointer-events: none; }
.h-verre canvas { width: 100%; height: 100%; border-radius: 50%; }
.hublot figcaption { max-width: 21em; text-align: center; font-style: italic; font-size: 1rem; opacity: .78; }
.regle { width: min(74rem, 100% - 2 * var(--marge)); margin: clamp(3.5rem, 9vh, 6.5rem) auto 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(14, 50, 41, .18); }
.regle li { display: grid; gap: .9rem; padding: 1.6rem 1rem 0 0; }
.regle li + li { padding-left: clamp(.8rem, 2vw, 2rem); border-left: 1px solid rgba(14, 50, 41, .18); }
.regle b { font: 200 clamp(3.2rem, 7.2vw, 6.6rem)/.86 var(--serif); letter-spacing: -.03em; color: var(--emeraude); }
.regle span { font: 500 .64rem/1.55 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .72; }
.js .regle li { opacity: 0; transform: translateY(1.4rem); transition: opacity .9s, transform 1s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 110ms); }
.js .regle.vu li { opacity: 1; transform: none; }
.regle li:nth-child(2) { --i: 1; } .regle li:nth-child(3) { --i: 2; } .regle li:nth-child(4) { --i: 3; }
@media (max-width: 860px) {
  .maison .cadre { grid-template-columns: 1fr; }
  .h-verre { width: min(78vw, 21rem); }
  .regle { grid-template-columns: 1fr 1fr; } .regle li { padding: 1.3rem .6rem 1.6rem 0; } .regle li:nth-child(3) { padding-left: 0; border-left: 0; } .regle li:nth-child(n + 3) { border-top: 1px solid rgba(14, 50, 41, .18); }
}

/* ---------- 4/8 le cadran ---------- */
.cadran { position: relative; padding: clamp(5.5rem, 14vh, 10rem) 0; }
.cadran::before { content: ""; position: absolute; inset: 0; background: radial-gradient(48% 42% at 70% 50%, rgba(24, 92, 78, .5), rgba(11, 42, 36, 0) 72%); pointer-events: none; }
.cadran .cadre { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.c-texte h2 { margin-bottom: .6em; } .c-texte > p:not(.sur) { max-width: 30em; }
.reglages { display: grid; gap: 1rem; justify-items: start; margin: 2rem 0 1.4rem; }
.choix { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.choix > span { width: 4.6rem; font: 500 .6rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; opacity: .65; }
.choix button { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; min-width: 2.9rem; justify-content: center; padding: 0 .95rem; border: 1px solid var(--trait); font: 500 .68rem/1 var(--sans); letter-spacing: .12em; color: var(--clair); transition: background .3s, border-color .3s, color .3s; }
.choix button:hover { border-color: var(--or); }
.choix button.on { background: var(--or); border-color: var(--or); color: var(--abime); }
.choix button i { width: .95rem; height: .95rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.c-tour { position: relative; display: grid; justify-items: center; }
#c-guilloche { width: min(100%, 35rem); aspect-ratio: 1; touch-action: none; cursor: crosshair; border-radius: 50%; }
.c-invite { margin-top: 1.3rem; font: 500 .64rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--or-clair); transition: opacity .5s; }
.c-invite.fait { opacity: .55; }
@media (max-width: 860px) {
  .cadran .cadre { grid-template-columns: 1fr; gap: 2.2rem; }
  .cadran::before { background: radial-gradient(70% 34% at 50% 62%, rgba(24, 92, 78, .5), rgba(11, 42, 36, 0) 72%); }
  .c-tour { order: 2; } .c-texte { display: contents; } .c-texte > * { order: 1; } .reglages, .c-texte > .note { order: 3; }
  .cadran .cadre > .c-texte > .sur { margin-bottom: -.4rem; } .cadran .cadre { display: flex; flex-direction: column; align-items: stretch; }
  .c-tour, .reglages { align-self: stretch; } .reglages { margin: 0; } #c-guilloche { width: min(100%, 30rem); }
}

/* ---------- 5/8 les montres ---------- */
.montres { position: relative; z-index: 2; padding: clamp(5.5rem, 14vh, 10rem) 0 clamp(4.5rem, 10vh, 7rem); }
.mo-tete { max-width: 40rem; } .mo-tete h2 { margin-bottom: .55em; } .mo-tete p:not(.sur) { font-size: 1.12rem; max-width: 30em; }
.vitrine { width: min(74rem, 100% - 2 * var(--marge)); margin: clamp(2rem, 6vh, 4rem) auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 3rem); }
.montre { display: grid; justify-items: center; text-align: center; }
.montre canvas { width: 100%; max-width: 21rem; aspect-ratio: 3 / 4; }
.montre h3 { display: grid; gap: .6rem; margin-top: .4rem; font: 200 1.8rem/1.1 var(--serif); }
.montre h3 span { font: 400 .72rem/1 var(--cap); letter-spacing: .32em; text-transform: uppercase; color: var(--or-sombre); }
.montre ul { margin-top: 1rem; display: grid; gap: .1rem; font-size: 1rem; opacity: .84; }
.mo-prix { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid rgba(14, 50, 41, .2); font: 500 .6rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.vi-points { display: none; }
@media (max-width: 860px) {
  .vitrine { width: 100%; display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 11vw; -webkit-overflow-scrolling: touch; }
  .vitrine::-webkit-scrollbar { display: none; }
  .montre { flex: 0 0 78vw; scroll-snap-align: center; padding: 0 3vw; }
  .vi-points { display: flex; justify-content: center; gap: .6rem; margin-top: 1.6rem; }
  .vi-points i { width: 1.4rem; height: 1px; background: currentColor; opacity: .25; transition: opacity .3s, transform .3s; } .vi-points i.on { opacity: 1; transform: scaleY(2); }
}

/* ---------- 6/8 la nuit ---------- */
.nuit-scene { position: relative; z-index: 1; height: 280vh; margin-top: -1px; background: #020907; color: #EDE6C3; }
.n-texte { position: absolute; left: var(--marge); top: 50%; width: min(26rem, 36vw); transform: translateY(-50%); opacity: 0; visibility: hidden; }
.n-texte .sur, .n-texte h2 em { color: #F1E3A8; text-shadow: 0 0 14px rgba(241, 227, 168, .5); }
.n-texte h2 { margin-bottom: .55em; }
.n-ciel { display: grid; gap: .5rem; margin: 1.3rem 0 1.7rem; padding: 1.1rem 0; border-block: 1px solid rgba(241, 227, 168, .2); font-size: 1rem; }
.n-ciel b { font-weight: 300; color: #F6ECC0; text-shadow: 0 0 10px rgba(241, 227, 168, .45); white-space: nowrap; }
.n-texte .bouton { border-color: rgba(241, 227, 168, .6); color: #F6ECC0; }
.n-texte .note { margin-top: 1rem; }
@media (max-width: 900px) {
  .n-texte { left: 0; right: 0; top: auto; bottom: 0; width: auto; transform: none; padding: 3rem var(--marge) 5.2rem; background: linear-gradient(180deg, rgba(2, 9, 7, 0), rgba(2, 9, 7, .9) 26%); }
  .n-texte h2 { font-size: clamp(1.6rem, 6vw, 2.1rem); } .n-texte > p:not(.sur):not(.note) { font-size: .96rem; line-height: 1.5; }
  .n-ciel { margin: .8rem 0 1rem; padding: .7rem 0; font-size: .92rem; gap: .25rem; } .n-texte .sur { margin-bottom: 1em; }
}

/* ---------- 7/8 l'atelier ---------- */
.rdv { position: relative; z-index: 2; padding: clamp(5.5rem, 14vh, 10rem) 0; background: var(--page); }
.rdv::before { content: ""; position: absolute; inset: 0; background: radial-gradient(46% 44% at 72% 48%, rgba(24, 92, 78, .5), rgba(11, 42, 36, 0) 72%); pointer-events: none; }
.rdv .cadre { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.rv-texte h2 { margin-bottom: .55em; } .rv-texte > p:not(.sur) { max-width: 30em; }
.jours { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.8rem 0 1.4rem; }
.jours button { display: grid; gap: .3rem; justify-items: center; min-width: 4.3rem; min-height: 3.6rem; padding: .55rem .7rem; border: 1px solid var(--trait); transition: background .3s, border-color .3s, color .3s; }
.jours button span { font: 500 .56rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.jours button b { font: 300 1.25rem/1 var(--serif); }
.jours button:hover { border-color: var(--or); } .jours button.on { background: var(--or); border-color: var(--or); color: var(--abime); }
.rv-choisi { min-height: 1.4em; margin-bottom: 1.3rem; font: 200 clamp(1.45rem, 1.6vw + 1rem, 2rem)/1.2 var(--serif); color: var(--or-clair); text-shadow: var(--lueur); }
.rv-choisi.ferme { color: #E08FA3; }
.bouton[disabled] { opacity: .4; cursor: not-allowed; }
.rv-note { margin-top: 1.1rem; font-size: 1.05rem; } .rv-note small { display: block; margin-top: .2rem; font: 500 .6rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .65; }
.rdv address { margin-top: 2.2rem; padding-top: 1.3rem; border-top: 1px solid var(--trait); font-style: normal; font-size: .98rem; line-height: 1.55; opacity: .8; }
.rv-montre { position: relative; display: grid; justify-items: center; }
#c-rdv { width: min(100%, 31rem); aspect-ratio: 1; }
.couronne { position: absolute; left: calc(50% + min(50%, 15.5rem) * .598); top: 50%; width: clamp(4.2rem, 17%, 6rem); aspect-ratio: 5 / 9; transform: translateY(-50%); touch-action: none; cursor: ns-resize; border-radius: .4rem; }
.couronne canvas { width: 100%; height: 100%; }
.rv-geste { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; font: 500 .64rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--or-clair); transition: opacity .5s; }
.rv-geste i { width: 1px; height: 1.6rem; background: linear-gradient(transparent, var(--or), transparent); animation: geste 1.8s ease-in-out infinite; } @keyframes geste { 50% { transform: translateY(.35rem); } }
.rv-geste.fait { opacity: .45; } .rv-geste.fait i { animation: none; }
@media (max-width: 860px) {
  .rdv .cadre { grid-template-columns: 1fr; gap: 2rem; }
  .rv-montre { order: 2; padding-right: 12%; } .rv-texte { display: contents; } .rv-texte > * { order: 3; } .rv-texte > .sur, .rv-texte > h2, .rv-texte > p:nth-of-type(2) { order: 1; }
  .rdv .cadre { display: flex; flex-direction: column; } .rv-texte > .sur { margin-bottom: -.5rem; } .rv-texte > h2 { margin-bottom: -.9rem; }
  .jours { margin: 0; } .rv-choisi { margin: 0; } .rdv address { margin-top: .6rem; }
  .couronne { left: calc(44% + min(44%, 15.5rem) * .598); width: 21%; }
}

/* ---------- 8/8 la fin ---------- */
.fin { position: relative; z-index: 2; height: 300vh; background: var(--page); }
#plan-fin::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 46% at 50% 40%, rgba(24, 92, 78, .55), rgba(11, 42, 36, 0) 70%); pointer-events: none; }
.f-texte { position: absolute; left: 0; right: 0; bottom: clamp(4.4rem, 9vh, 6rem); display: grid; justify-items: center; padding: 0 var(--marge); text-align: center; }
.f-texte .sur { margin-bottom: 1.1em; }
.f-compte { font: 200 clamp(2.6rem, 6vw + 1rem, 5.6rem)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; color: var(--or-clair); text-shadow: var(--lueur); }
.f-texte h2 { margin-top: .35em; font-size: clamp(1.5rem, 1.8vw + 1rem, 2.4rem); }
.f-reste { margin-top: .5rem; font-size: 1.1rem; opacity: .85; } .f-reste b { font-weight: 300; color: var(--or-clair); white-space: nowrap; }
.f-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.6rem; }
.js .f-texte > * { opacity: 0; transform: translateY(.8rem); transition: opacity .8s, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .fin.arrive .f-texte > .sur, .js .fin.arrive .f-compte { opacity: 1; transform: none; }
.js .fin.sonne .f-texte > * { opacity: 1; transform: none; } .js .fin.sonne .f-texte h2 { transition-delay: .15s; } .js .fin.sonne .f-reste { transition-delay: .5s; } .js .fin.sonne .f-liens { transition-delay: 1.6s; }

/* ---------- pied ---------- */
.pied { position: relative; z-index: 2; display: grid; justify-items: center; gap: .9rem; padding: 3.2rem var(--marge) calc(5.4rem + env(safe-area-inset-bottom)); background: var(--abime); border-top: 1px solid rgba(200, 169, 106, .18); text-align: center; font-size: .95rem; color: rgba(242, 239, 228, .74); }
.pied img { width: 2.1rem; height: auto; margin-bottom: .4rem; }
.pied .p-vrai { max-width: 36em; color: var(--clair); }
.pied a { color: var(--or-clair); text-underline-offset: .25em; text-decoration-thickness: 1px; }

/* ---------- la nuit sur tout le site : l'or devient lumière ---------- */
.nuit { --page: #030E0C; --fond: #030E0C; --abime: #010706; --papier: #06130F; --encre: #EDE6C3; --clair: #EDE6C3; --or: #E6D79C; --or-clair: #F6ECC0; --or-sombre: #C9BD86; --trait: rgba(230, 215, 156, .32);
  --lueur: 0 0 16px rgba(241, 227, 168, .55), 0 0 3px rgba(241, 227, 168, .35); --lueur-img: brightness(1.18) saturate(.55) drop-shadow(0 0 9px rgba(241, 227, 168, .55)); }
.nuit .papier { color-scheme: dark; } .nuit .papier h2 em { color: var(--or-clair); }
.nuit .regle b { color: var(--or-clair); text-shadow: var(--lueur); } .nuit .regle, .nuit .regle li { border-color: rgba(230, 215, 156, .2); }
.nuit .h-verre { background: radial-gradient(circle at 42% 34%, #0C2B24, #04120F 58%, #010706); }
.nuit .montre h3 span { color: var(--or); } .nuit .mo-prix { border-color: rgba(230, 215, 156, .22); }
.nuit #plan-1::before, .nuit #plan-fin::before, .nuit .cadran::before, .nuit .rdv::before { opacity: .45; }
.nuit .signature p { color: #F1E3A8; } .nuit .signature svg { stroke: #F1E3A8; } .nuit .signature svg path { fill: #F1E3A8; }
.nuit .pied img, .nuit .marque img { filter: var(--lueur-img); }
/* la nuit, l'emblème dessiné prend la même lumière pâle que le mot (comme la version lumineuse du logo) */
.nuit #c-embleme, .nuit #c-infini, .nuit #c-fin { filter: saturate(.5) brightness(1.2); }
html { transition: background-color .9s; } body, .papier, .rdv, .fin, .pied { transition: background-color .9s, color .9s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .invite i, .rv-geste i, .b-son .o2 { animation: none; }
  .js .regle li, .js .f-texte > * { transition-duration: .01s; transition-delay: 0s; }
}
