/* JD Auto Moto École — Taverny
   Nuit (bitume) + turquoise de la C3 + jaune des gilets moto.
   Archivo variable (largeur 62→125 %) : les titres s'étirent avec la vitesse du défilement. */

@font-face { font-family: 'Archivo'; src: url(../fonts/archivo-latin.woff2?v=2f7ea45b) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'JB Mono'; src: url(../fonts/jbmono-latin.woff2?v=570751c5) format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url(../fonts/caveat-latin.woff2?v=1fde3bbf) format('woff2'); font-weight: 500 700; font-display: swap; }

:root {
  --nuit: #061017;
  --nuit-2: #0b1a23;
  --nuit-3: #12252f;
  --bitume: #1a2329;
  --jd: #17a6b5;
  --jd-clair: #6fe0ea;
  --jd-fonce: #0b5d67;
  --gilet: #d8f23a;
  --rouge: #e3262f;
  --papier: #eef1ef;
  --papier-2: #e2e7e5;
  --blanc: #ffffff;
  --encre: #081217;
  --encre-2: rgba(8, 18, 23, .66);
  --encre-3: rgba(8, 18, 23, .42);
  --clair-2: rgba(238, 241, 239, .68);
  --clair-3: rgba(238, 241, 239, .4);
  --filet: rgba(8, 18, 23, .14);
  --filet-clair: rgba(238, 241, 239, .16);
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JB Mono', ui-monospace, Menlo, monospace;
  --main: 'Caveat', 'Segoe Print', cursive;
  --marge: clamp(16px, 3.4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --etire: 100%;
  --entete: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--nuit); }
html:has(body.bloque) { overflow: hidden; }
/* fond sombre sur html ET body : quand iOS « rebondit » en bas de page, il peint le fond du body ;
   en papier, une bande claire surgissait sous le pied sombre. Le papier est porté par <main>. */
main { background: var(--papier); }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.5; color: var(--encre); background: var(--nuit); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-stretch: 100%; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gilet); color: var(--encre); }
:focus-visible { outline: 2px solid var(--jd); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ------------------------------------------------------------- typographie */
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.t-mega { font-weight: 900; font-size: clamp(64px, 15.5vw, 290px); line-height: .9; letter-spacing: -.035em; text-transform: uppercase; font-stretch: var(--etire); margin: 0; }
.t-1 { font-weight: 850; font-size: clamp(44px, 8.2vw, 148px); line-height: .88; letter-spacing: -.03em; text-transform: uppercase; font-stretch: var(--etire); margin: 0; }
.t-2 { font-weight: 800; font-size: clamp(34px, 5vw, 84px); line-height: .92; letter-spacing: -.025em; text-transform: uppercase; font-stretch: var(--etire); margin: 0; }
.t-3 { font-weight: 750; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.02; letter-spacing: -.015em; margin: 0; }
.t-4 { font-weight: 700; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.15; letter-spacing: -.005em; margin: 0; }
.chapo { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; max-width: 36em; color: var(--encre-2); margin: 0; }
.etiquette { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.etiquette::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--jd); box-shadow: 0 0 0 4px rgba(23, 166, 181, .18); }
.contour { -webkit-text-stroke: 1.5px currentColor; color: transparent; }
.jd { color: var(--jd); }
.gilet { color: var(--gilet); }
[data-vitesse] { font-stretch: var(--etire); transition: none; }

/* lignes masquées (révélation façon Apex) */
/* place au-dessus pour les accents des capitales (Ê, É) : avec un interligne de .8, le masque d'apparition les coupait (« DE TETE ») */
.ligne { display: block; overflow: hidden; padding-top: .18em; margin-top: -.18em; padding-bottom: .04em; margin-bottom: -.04em; }
.ligne > span { display: inline-block; will-change: transform; }
html.js [data-rv] .ligne > span { transform: translateY(105%); }
html.js [data-rv].vu .ligne > span { transform: none; transition: transform 1.25s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.js [data-monte] { opacity: 0; transform: translateY(36px); }
html.js [data-monte].vu { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }

/* ---------------------------------------------------------------- boutons */
.btn { --c: var(--encre); --f: var(--blanc); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 15px; letter-spacing: .01em; background: var(--c); color: var(--f); overflow: hidden; isolation: isolate; white-space: nowrap; transition: transform .5s var(--ease); }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--jd); clip-path: circle(0% at var(--mx, 50%) var(--my, 120%)); transition: clip-path .7s var(--ease); }
@media (hover: hover) { .btn:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 120%)); } }
.btn .fl { width: 18px; height: 18px; flex: none; transition: transform .6s var(--ease); }
@media (hover: hover) { .btn:hover .fl { transform: translateX(4px); } }
.btn-gilet { --c: var(--gilet); --f: var(--encre); }
.btn-gilet::before { background: var(--blanc); }
.btn-jd { --c: var(--jd); --f: var(--blanc); }
.btn-jd::before { background: var(--encre); }
.btn-ligne { --c: transparent; --f: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
@media (hover: hover) { .btn-ligne:hover { color: var(--blanc); } }
.btn-ligne::before { background: var(--jd); }
.btn-l { height: 64px; padding: 0 34px; font-size: 16px; }
.btn-rond { width: 54px; padding: 0; }
.lien-souligne { position: relative; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.lien-souligne::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
@media (hover: hover) { .lien-souligne:hover::after { transform: scaleX(0); } }

/* ----------------------------------------------------------------- en-tête */
.entete { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: var(--entete); display: flex; align-items: center; gap: 22px; padding: 0 var(--marge); color: var(--blanc); transition: color .5s var(--ease), transform .7s var(--ease); pointer-events: none; }
.entete > * { pointer-events: auto; }
.entete::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(6, 16, 23, .55), rgba(6, 16, 23, 0)); opacity: 1; transition: opacity .5s; pointer-events: none; }
html[data-entete="clair"] .entete { color: var(--encre); }
html[data-entete="clair"] .entete::before { background: linear-gradient(rgba(238, 241, 239, .94) 55%, rgba(238, 241, 239, 0)); }
html.entete-cache .entete { transform: translateY(-110%); }
.marque { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.marque-sceau { width: 44px; height: 44px; flex: none; }
.marque-txt { display: grid; line-height: 1; }
.marque-txt b { font-size: 24px; font-weight: 900; letter-spacing: -.02em; font-stretch: 112%; }
.marque-txt small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; margin-top: 4px; opacity: .8; }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 10px 14px; font-weight: 650; font-size: 15px; border-radius: 999px; transition: background .3s; }
@media (hover: hover) { .nav a:hover { background: rgba(127, 127, 127, .14); } }
.nav a[aria-current="page"]::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--gilet); }
html[data-entete="clair"] .nav a[aria-current="page"]::after { background: var(--jd); }
.entete-tel { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; font-weight: 500; padding: 10px 6px; }
.entete .btn { height: 46px; padding: 0 20px; font-size: 14px; }
.burger { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px currentColor; }
.burger i { display: block; width: 18px; height: 1.5px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; transition: transform .5s var(--ease); }
@media (max-width: 1180px) { .nav, .entete-tel { display: none; } }
@media (max-width: 560px) { .entete .btn-inscr { display: none; } .marque-txt small { display: none; } :root { --entete: 64px; } .marque-sceau { width: 38px; height: 38px; } }

/* ------------------------------------------------------------ menu plein écran */
.menu { position: fixed; inset: 0; z-index: 80; background: var(--jd); color: var(--nuit); display: grid; grid-template-rows: auto 1fr auto; padding: 0 var(--marge) 28px; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .9s var(--ease-io), visibility 0s .9s; overflow-y: auto; overscroll-behavior: contain; }
.menu.ouvert { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu-haut { height: var(--entete); display: flex; align-items: center; justify-content: space-between; }
.menu-fermer { width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; display: grid; place-items: center; font-size: 22px; }
.menu-liens { display: flex; flex-direction: column; justify-content: center; padding: 3vh 0; }
.menu-liens a { display: flex; align-items: baseline; gap: 2vw; padding: .5vh 0; border-bottom: 1.5px solid rgba(6, 16, 23, .16); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 8.6vh, 104px); line-height: .98; letter-spacing: -.03em; font-stretch: 75%; transition: font-stretch .6s var(--ease), color .3s, padding .6s var(--ease); }
.menu-liens a small { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .1em; font-stretch: 100%; }
@media (hover: hover) { .menu-liens a:hover { font-stretch: 125%; color: var(--blanc); padding-left: 1vw; } }
.menu-liens a .s { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; margin-left: auto; text-transform: none; font-stretch: 100%; opacity: .7; }
.menu-bas { display: grid; grid-template-columns: repeat(3, auto); gap: 18px 40px; justify-content: space-between; font-size: 15px; }
.menu-bas b { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; font-weight: 500; opacity: .75; }
html.js .menu .menu-liens a { transform: translateY(60px); opacity: 0; }
html.js .menu.ouvert .menu-liens a { transform: none; opacity: 1; transition: transform 1s var(--ease) calc(.25s + var(--i) * 60ms), opacity .8s calc(.25s + var(--i) * 60ms), font-stretch .6s var(--ease), color .3s, padding .6s var(--ease); }
@media (max-width: 700px) { .menu-bas { grid-template-columns: 1fr; } .menu-liens a .s { display: none; } }

/* ------------------------------------------------------ rideau entre les pages */
.rideau { position: fixed; inset: 0; z-index: 120; pointer-events: none; display: grid; place-items: center; background: var(--nuit); color: var(--blanc); transform: translateY(100%); overflow: hidden; }
/* la route ne défile que pendant le passage du rideau (avant : en continu sur toutes les pages,
   même caché), et par transform : plus de fond recalculé à chaque image */
.rideau .rideau-route { position: absolute; left: 50%; top: -120px; bottom: 0; width: 10px; margin-left: -5px; background: repeating-linear-gradient(to bottom, var(--gilet) 0 60px, transparent 60px 120px); opacity: .9; }
html.arrivee .rideau .rideau-route, html.depart .rideau .rideau-route { animation: route-defile .5s linear infinite; }
@keyframes route-defile { to { transform: translate3d(0, 120px, 0); } }
.rideau .rideau-titre { position: relative; font-weight: 900; text-transform: uppercase; font-size: clamp(48px, 11vw, 200px); letter-spacing: -.03em; font-stretch: 125%; line-height: .9; mix-blend-mode: difference; }
.rideau .rideau-titre small { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; font-weight: 500; text-align: center; margin-top: 18px; font-stretch: 100%; }
html.arrivee .rideau { transform: translateY(0); }

/* --------------------------------------------------------------- intro */
.intro { position: fixed; inset: 0; z-index: 140; background: var(--nuit); color: var(--blanc); display: grid; place-items: center; overflow: hidden; }
html.sans-intro .intro { display: none; }
.intro-cadran { position: relative; width: min(78vw, 520px); aspect-ratio: 2 / 1.3; }
.intro-cadran svg { width: 100%; height: auto; overflow: visible; }
.intro-vitesse { position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; }
.intro-vitesse b { display: block; font-family: var(--mono); font-weight: 700; font-size: clamp(54px, 9vw, 110px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.intro-vitesse span { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--clair-2); }
.intro-ligne { position: absolute; bottom: 7vh; left: var(--marge); right: var(--marge); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--clair-3); text-transform: uppercase; }
.intro-passer { position: absolute; right: var(--marge); top: 24px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--clair-2); padding: 10px; }
.intro-volets { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr 1fr; pointer-events: none; }

/* ---------------------------------------------------- sections et thèmes */
.section { position: relative; padding: clamp(90px, 13vw, 200px) var(--marge); }
.contenu { position: relative; z-index: 2; }
.nuit { background: var(--nuit); color: var(--blanc); }
.nuit .chapo { color: var(--clair-2); }
.nuit .etiquette::before { box-shadow: 0 0 0 4px rgba(23, 166, 181, .3); }
.petrole { background: var(--jd); color: var(--nuit); }
.petrole .chapo { color: rgba(6, 16, 23, .74); }
.papier { background: var(--papier); color: var(--encre); }
.entete-sec { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; margin-bottom: clamp(40px, 6vw, 90px); }
.entete-sec .chapo { justify-self: end; max-width: 28em; }
@media (max-width: 800px) { .entete-sec { grid-template-columns: 1fr; } .entete-sec .chapo { justify-self: start; } }

/* bord courbe qui monte sur la section précédente (Kiln) */
.courbe-haut { position: relative; }
.courbe-haut::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: clamp(60px, 9vw, 160px); transform: translateY(-99%); background: inherit; border-radius: 50% 50% 0 0 / 100% 100% 0 0; transform-origin: bottom; scale: 1 var(--courbe, 1); pointer-events: none; }

/* -------------------------------------------------------- WebGL : accroches */
.scene-gl { position: fixed; top: 0; left: 0; width: 100%; height: 100lvh; z-index: 1; pointer-events: none; }
.toile-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
html.gl-on img.gl-cache { opacity: 0 !important; }
html.gl-on .gl-actif { background: transparent !important; }
[data-gl-cadre], .cadre { position: relative; overflow: hidden; background: var(--nuit-3); }
.cadre img, [data-gl-cadre] img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================== ACCUEIL */
/* hero : la route de nuit */
.hero { position: relative; height: 230lvh; background: var(--nuit); color: var(--blanc); }
.hero-colle { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; z-index: 2; }
.hero-scene { position: absolute; inset: 0; background: var(--nuit) url(../img/px/nuit-route-1000.webp) center / cover no-repeat; }
html.gl-on .hero-scene { background: transparent; }
html.gl-natif .hero-scene { background: var(--nuit); }
.hero-voile { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(6, 16, 23, .55) 0%, rgba(6, 16, 23, 0) 55%), linear-gradient(0deg, rgba(6, 16, 23, .75) 0%, rgba(6, 16, 23, 0) 34%); }
.hero-contenu { position: absolute; inset: 0; z-index: 3; display: grid; grid-template-rows: 1fr auto auto; padding: calc(var(--entete) + 20px) var(--marge) 0; pointer-events: none; }
.hero-contenu a, .hero-contenu button { pointer-events: auto; }
.hero-lieu { align-self: start; display: flex; justify-content: space-between; color: var(--clair-2); }
.hero-titre { font-weight: 900; text-transform: uppercase; font-size: clamp(66px, 13.4vw, 262px); line-height: .8; letter-spacing: -.04em; margin: 0; font-stretch: var(--etire); }
.hero-titre .ligne:nth-child(2) { padding-left: 9vw; }
.hero-titre em { font-style: normal; color: var(--gilet); }
.hero-titre .ligne { perspective: 900px; }
.hero-titre .ligne > span { transform: skewX(var(--skew, 0deg)); transform-origin: 0 100%; }
.hero-titre .car { display: inline-block; will-change: transform, opacity; }
html.js .hero-titre .car { opacity: 0; }
.hero-pied { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 30px; align-items: end; padding: 28px 0 30px; }
.hero-pied p { margin: 0; color: var(--clair-2); max-width: 30em; font-size: 17px; }
.hero-pied p b { color: var(--blanc); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hud { display: grid; grid-template-columns: repeat(4, auto); border-top: 1px solid var(--filet-clair); }
.hud > div { padding: 16px 0 22px; display: grid; gap: 4px; }
.hud > div + div { padding-left: 24px; border-left: 1px solid var(--filet-clair); }
.hud b { font-size: clamp(22px, 2.3vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.hud span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--clair-3); }
.hud .etoiles { color: var(--gilet); letter-spacing: .1em; font-size: 14px; }
.compteur-kmh b { font-family: var(--mono); font-weight: 700; }
.hero-devise { position: absolute; z-index: 3; left: var(--marge); top: calc(var(--entete) + 9vh); pointer-events: none; opacity: 0; max-width: 46vw; }
@media (max-width: 900px) { .hero-devise { max-width: none; right: var(--marge); top: auto; bottom: 6vh; } .hero-devise .t-1 { font-size: clamp(40px, 11vw, 70px); } }
.hero-devise .t-1 { font-stretch: 112%; text-shadow: 0 10px 40px rgba(6, 16, 23, .6); }
.hero-defiler { position: absolute; right: var(--marge); bottom: 120px; z-index: 3; writing-mode: vertical-rl; color: var(--clair-3); display: flex; align-items: center; gap: 12px; }
.hero-defiler::after { content: ''; width: 1.5px; height: 64px; background: linear-gradient(var(--gilet), transparent); animation: defiler 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes defiler { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 900px) {
  .hero { height: 190lvh; }
  .hero-pied { grid-template-columns: 1fr; gap: 18px; padding-bottom: 18px; }
  .hud { grid-template-columns: 1fr 1fr; }
  .hud > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hud > div:nth-child(n+3) { border-top: 1px solid var(--filet-clair); }
  .hero-titre .ligne:nth-child(2) { padding-left: 0; }
  .hero-defiler { display: none; }
  .hero-lieu span:last-child { display: none; }
}

/* manifeste : mots qui s'allument + pilules photo dans le texte */
.manifeste { padding-top: clamp(80px, 10vw, 150px); }
.manifeste-texte { font-weight: 800; font-size: clamp(32px, 5.3vw, 92px); line-height: 1.02; letter-spacing: -.03em; margin: 0; max-width: 16.5em; font-stretch: 92%; }
.manifeste-texte .mot { opacity: .14; transition: opacity .25s; }
.manifeste-texte .mot.on { opacity: 1; }
.pilule { display: inline-block; vertical-align: middle; width: 1.9em; height: .92em; border-radius: 999px; overflow: hidden; margin: -.12em .08em 0; position: relative; transform: scale(var(--pil, 0)); transition: transform 1s var(--ease); background: var(--jd); }
.pilule.on { --pil: 1; }
.pilule img { width: 100%; height: 100%; object-fit: cover; }
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(60px, 8vw, 120px); border-top: 1.5px solid var(--encre); }
.chiffres > div { padding: 22px 20px 0 0; }
.chiffres > div + div { padding-left: 20px; border-left: 1px solid var(--filet); }
.chiffres b { display: block; font-size: clamp(54px, 7vw, 120px); font-weight: 900; letter-spacing: -.04em; line-height: .9; font-variant-numeric: tabular-nums; font-stretch: 80%; }
.chiffres b sup { font-size: .32em; vertical-align: top; position: relative; top: .3em; margin-left: .06em; font-stretch: 100%; }
.chiffres > div > span { display: block; margin-top: 10px; color: var(--encre-2); font-size: 15px; max-width: 16em; }
@media (max-width: 800px) { .chiffres { grid-template-columns: 1fr 1fr; } .chiffres > div:nth-child(3) { padding-left: 0; border-left: 0; } .chiffres > div:nth-child(n+3) { margin-top: 30px; } }

/* formations : piste horizontale épinglée (Kiln) */
.formations { position: relative; background: var(--nuit); color: var(--blanc); }
.formations-colle { position: sticky; top: 0; z-index: 2; height: 100vh; height: 100lvh; overflow: hidden; display: grid; grid-template-rows: auto 1fr; padding-top: calc(var(--entete) + 2vh); }
.formations-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; padding: 0 var(--marge); gap: 24px 30px; position: relative; z-index: 2; }
.formations-fond { position: absolute; left: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; font-weight: 900; font-size: 26vw; line-height: 1; letter-spacing: -.04em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(238, 241, 239, .12); pointer-events: none; z-index: 0; }
.formations-piste { display: flex; gap: clamp(16px, 2vw, 30px); align-items: center; padding: 0 var(--marge); will-change: transform; position: relative; z-index: 2; }
.carte-f { position: relative; flex: none; width: clamp(290px, 27vw, 430px); height: min(60vh, 570px); border-radius: 22px; overflow: hidden; display: grid; grid-template-rows: 1fr auto; color: var(--blanc); background: var(--nuit-3); isolation: isolate; }
.carte-f .cadre { position: absolute; inset: 0; z-index: -1; border-radius: 22px; }
.carte-f .cadre::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 16, 23, .3) 0%, rgba(6, 16, 23, 0) 30%, rgba(6, 16, 23, .86) 100%); }
html.gl-on .carte-f .cadre::after { z-index: 2; }
html.gl-on:not(.gl-natif) .carte-f { background: transparent; }
/* cylindre : le voile est dessiné dans le shader, le texte suit la courbe (accueil.js) */
html.gl-on:not(.gl-natif) .carte-f .cadre::after { display: none; }
.carte-f-haut, .carte-f-bas { will-change: transform; transform-origin: 50% 50%; }
.carte-f-haut { display: flex; justify-content: space-between; align-items: start; padding: 20px 20px 0; position: relative; z-index: 3; }
.categorie { display: grid; place-items: center; min-width: 64px; height: 64px; padding: 0 12px; border-radius: 14px; background: var(--blanc); color: var(--encre); font-weight: 900; font-size: 30px; letter-spacing: -.03em; font-stretch: 110%; }
.categorie.moto { background: var(--gilet); }
.carte-f-age { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 10px; border-radius: 999px; background: rgba(6, 16, 23, .5); backdrop-filter: blur(6px); }
.carte-f-bas { padding: 20px; display: grid; gap: 14px; position: relative; z-index: 3; }
.carte-f-bas h3 { font-size: clamp(28px, 2.5vw, 40px); line-height: .95; font-weight: 850; text-transform: uppercase; letter-spacing: -.02em; margin: 0; font-stretch: 88%; }
.carte-f-bas p { margin: 0; font-size: 15px; color: var(--clair-2); }
.carte-f-lien { position: absolute; inset: 0; z-index: 4; }
@media (hover: hover) { .carte-f:hover .plaque { transform: translateY(-4px) rotate(-1.5deg); } }
.formations-fin { flex: none; width: clamp(280px, 30vw, 460px); padding-right: var(--marge); }
.formations-barre { position: absolute; left: var(--marge); right: var(--marge); bottom: 4vh; height: 2px; background: var(--filet-clair); z-index: 2; }
.formations-barre i { position: absolute; inset: 0; background: var(--gilet); transform-origin: left; transform: scaleX(var(--p, 0)); }
@media (max-width: 900px) {
  .formations-colle { position: relative; height: auto; padding: 90px 0 70px; }
  .formations-piste { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; margin-top: 36px; }
  .formations-piste::-webkit-scrollbar { display: none; }
  .formations-piste { perspective: 900px; perspective-origin: 50% 50%; }
  .carte-f { scroll-snap-align: center; width: 80vw; height: 112vw; max-height: 560px; transform-style: preserve-3d; will-change: transform; }
  .formations-barre, .formations-fond { display: none; }
}

/* plaque d'immatriculation (prix) */
.plaque { display: inline-flex; align-items: stretch; height: 48px; border-radius: 7px; background: #f7f7f2; color: #0b0b0b; box-shadow: inset 0 0 0 2px #0b0b0b, 0 8px 22px rgba(0, 0, 0, .3); overflow: hidden; font-weight: 800; transition: transform .6s var(--ease); width: max-content; }
.plaque-ue { width: 30px; background: #1a3fa0; color: #fff; display: grid; place-items: center; align-content: center; gap: 1px; font-size: 13px; font-weight: 800; padding: 4px 0 3px; border: 2px solid #0b0b0b; border-right: 0; border-radius: 7px 0 0 7px; }
.plaque-ue svg { width: 15px; height: 15px; }
.plaque-txt { display: grid; place-items: center; padding: 0 14px; font-size: 26px; letter-spacing: .02em; font-stretch: 78%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plaque-dep { width: 30px; background: #1a3fa0; color: #fff; display: grid; align-content: end; justify-items: center; font-size: 12px; font-weight: 800; padding-bottom: 4px; border: 2px solid #0b0b0b; border-left: 0; border-radius: 0 7px 7px 0; position: relative; }
.plaque-dep::before { content: ''; position: absolute; top: 6px; width: 15px; height: 12px; border-radius: 2px; background: linear-gradient(135deg, #ffd23a 0 30%, #e3262f 30% 60%, #1a3fa0 60%); }
.plaque-l { height: 64px; border-radius: 9px; }
.plaque-l .plaque-txt { font-size: 38px; padding: 0 20px; }
.plaque-l .plaque-ue, .plaque-l .plaque-dep { width: 40px; }
.plaque-xl { height: clamp(90px, 13vw, 190px); border-radius: clamp(10px, 1.4vw, 20px); box-shadow: inset 0 0 0 clamp(3px, .45vw, 6px) #0b0b0b, 0 30px 80px rgba(0, 0, 0, .35); }
.plaque-xl .plaque-txt { font-size: clamp(54px, 9.4vw, 150px); padding: 0 clamp(16px, 2.4vw, 40px); }
.plaque-xl .plaque-ue, .plaque-xl .plaque-dep { width: clamp(46px, 6vw, 92px); border-width: clamp(3px, .45vw, 6px); font-size: clamp(16px, 2vw, 30px); }
.plaque-xl .plaque-ue svg { width: 60%; height: auto; }
.plaque-xl .plaque-dep::before { width: 55%; height: 22%; top: 12%; }

/* particules : la mise au point */
.particules { position: relative; height: 380vh; background: radial-gradient(120% 80% at 50% 40%, #0c2430 0%, var(--nuit) 70%); color: var(--blanc); }
.particules-colle { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; z-index: 2; }
.particules-textes { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.etape { position: absolute; max-width: 560px; }
.etape .t-2 { font-stretch: 85%; }
.etape p { color: var(--clair-2); margin: 16px 0 0; font-size: 18px; }
.etape-1 { left: var(--marge); bottom: 14vh; }
.etape-2 { right: var(--marge); top: 50%; transform: translateY(-50%); text-align: right; }
.etape-3 { left: 0; right: 0; bottom: 9vh; margin: 0 auto; text-align: center; }
.etape .mono { color: var(--gilet); display: block; margin-bottom: 14px; }
.particules-jauge { position: absolute; left: var(--marge); top: calc(var(--entete) + 30px); display: flex; gap: 14px; z-index: 3; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--clair-3); }
.particules-jauge i { display: block; width: 90px; height: 2px; background: var(--filet-clair); margin-top: 6px; position: relative; }
.particules-jauge i::after { content: ''; position: absolute; inset: 0; background: var(--gilet); transform-origin: left; transform: scaleX(var(--j, 0)); }
@media (max-width: 900px) { .particules { height: 320vh; } .etape-2 { left: var(--marge); right: var(--marge); top: auto; bottom: 12vh; transform: none; text-align: left; } .etape-1 { bottom: 12vh; right: var(--marge); } .particules-jauge i { width: 50px; } }

/* avis : le panneau 5,0 */
.avis { overflow: hidden; }
.avis-grille { display: grid; grid-template-columns: minmax(280px, .9fr) 1.1fr; gap: clamp(30px, 6vw, 110px); align-items: center; }
.panneau-scene { perspective: 1400px; display: grid; place-items: center; }
.panneau-limite { --t: min(38vw, 520px); width: var(--t); height: var(--t); border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 calc(var(--t) * .095) var(--rouge), inset 0 0 0 calc(var(--t) * .11) #fff, 0 2px 0 calc(var(--t) * .012) #c9cfd1, 0 50px 90px rgba(6, 16, 23, .28); display: grid; place-items: center; transform-style: preserve-3d; position: relative; }
.panneau-limite::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .55) 46%, rgba(255, 255, 255, 0) 60%); background-size: 260% 100%; background-position: var(--reflet, 100%) 0; mix-blend-mode: soft-light; pointer-events: none; }
.panneau-limite b { font-weight: 800; font-size: calc(var(--t) * .37); letter-spacing: -.04em; line-height: 1; color: #111; font-stretch: 72%; font-variant-numeric: tabular-nums; }
.panneau-limite small { position: absolute; bottom: 24%; font-family: var(--mono); font-size: calc(var(--t) * .034); letter-spacing: .2em; color: #111; }
.panneau-pied { width: 14px; height: 120px; margin-top: -10px; background: linear-gradient(90deg, #8a979c, #d6dcde 40%, #7c888d); border-radius: 0 0 4px 4px; }
.avis-mots { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; padding: 0; list-style: none; }
.avis-mots li { padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--filet); font-weight: 650; font-size: 15px; }
.avis-mots li span { font-family: var(--mono); font-size: 12px; color: var(--jd-fonce); margin-left: 6px; }
.avis-rail { margin-top: clamp(60px, 8vw, 120px); display: flex; gap: 18px; width: max-content; cursor: grab; touch-action: pan-y; user-select: none; }
.avis-rail:active { cursor: grabbing; }
.avis-carte { width: clamp(300px, 30vw, 440px); flex: none; padding: 28px; border-radius: 22px; background: var(--blanc); display: grid; gap: 18px; align-content: space-between; box-shadow: 0 1px 0 var(--filet); min-height: 290px; }
.avis-carte blockquote { margin: 0; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.32; font-weight: 600; letter-spacing: -.01em; }
.avis-carte footer { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--encre-2); text-transform: uppercase; }
.avis-carte .etoiles { color: var(--jd); letter-spacing: .12em; font-size: 15px; }
.avis-carte.nuit { background: var(--nuit); color: var(--blanc); }
.avis-carte.nuit footer { color: var(--clair-2); }
.avis-carte.jd { background: var(--jd); }
.avis-carte.gilet-f { background: var(--gilet); }
@media (max-width: 900px) { .avis-grille { grid-template-columns: 1fr; } .panneau-limite { --t: min(72vw, 360px); } }

/* polaroïds (Paragon) */
.polas { position: relative; min-height: 210vh; background: var(--nuit); color: var(--blanc); overflow: clip; }
.polas-colle { position: sticky; top: 0; height: 100vh; height: 100lvh; display: grid; place-items: center; text-align: center; }
.polas-titre { position: relative; z-index: 1; padding: 0 var(--marge); }
.polas-titre .t-1 { font-stretch: 78%; }
.polas-titre p { color: var(--clair-2); margin: 20px auto 0; max-width: 30em; }
.pola { position: absolute; left: 50%; top: 50%; z-index: 3; width: clamp(170px, 17vw, 270px); padding: 10px 10px 0; background: #fbfaf6; color: #1b1b1b; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); border-radius: 3px; cursor: grab; touch-action: none; will-change: transform; }
.pola:active { cursor: grabbing; }
.pola .cadre { aspect-ratio: 1; background: #ccc; }
.pola .cadre img { pointer-events: none; }
.pola figcaption { font-family: var(--main); font-weight: 700; font-size: clamp(20px, 1.7vw, 27px); line-height: 1.1; padding: 10px 4px 14px; color: #1e3a8a; text-align: left; }
.polas-astuce { position: absolute; bottom: 5vh; left: 0; right: 0; text-align: center; color: var(--clair-3); z-index: 2; }
@media (max-width: 900px) { .pola { width: 42vw; } }

/* équipe : lignes façon calendrier de course */
.equipe-liste { border-top: 1.5px solid currentColor; }
.equipe-ligne { position: relative; display: grid; grid-template-columns: 90px 1fr minmax(200px, .8fr) 60px; align-items: center; gap: 20px; padding: clamp(14px, 1.8vw, 26px) 0; border-bottom: 1px solid var(--filet); isolation: isolate; overflow: hidden; }
.equipe-ligne::before { content: ''; position: absolute; inset: 0 calc(var(--marge) * -1); z-index: -1; background: var(--jd); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
@media (hover: hover) { .equipe-ligne:hover::before { transform: scaleY(1); } }
.equipe-ligne .num { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; }
.equipe-ligne h3 { margin: 0; font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 6.4vw, 112px); line-height: .92; letter-spacing: -.035em; font-stretch: 70%; transition: font-stretch .7s var(--ease), letter-spacing .7s var(--ease); }
@media (hover: hover) { .equipe-ligne:hover h3 { font-stretch: 125%; letter-spacing: -.02em; } }
.equipe-ligne p { margin: 0; color: var(--encre-2); font-size: 16px; }
@media (hover: hover) { .equipe-ligne:hover p { color: var(--encre); } }
.equipe-ligne .ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px currentColor; justify-self: end; transition: transform .7s var(--ease), background .4s; }
@media (hover: hover) { .equipe-ligne:hover .ico { transform: rotate(-90deg); background: var(--encre); color: var(--blanc); } }
.equipe-ligne .ico svg { width: 22px; height: 22px; }
.equipe-citation { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; margin-top: clamp(40px, 6vw, 80px); max-width: 960px; }
.equipe-citation q { font-weight: 750; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.15; letter-spacing: -.015em; quotes: '«\00a0' '\00a0»'; }
.equipe-citation span { display: block; margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--encre-2); text-transform: uppercase; }
@media (max-width: 800px) { .equipe-ligne { grid-template-columns: 40px 1fr 46px; } .equipe-ligne p { grid-column: 2 / 4; grid-row: 2; } .equipe-ligne .ico { grid-column: 3; grid-row: 1; } }

/* carte du trajet vers la piste (Era) */
.trajet { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 90px); align-items: center; }
.trajet-carte { position: relative; aspect-ratio: 1.1; border-radius: 26px; background: var(--nuit-2); overflow: hidden; }
.trajet-carte svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.trajet-carte .route-fond { fill: none; stroke: rgba(238, 241, 239, .12); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.trajet-carte .route-trace { fill: none; stroke: var(--gilet); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.trajet-carte .grille line { stroke: rgba(238, 241, 239, .05); }
.trajet-km { position: absolute; left: 24px; bottom: 22px; font-family: var(--mono); color: var(--blanc); }
.trajet-km b { display: block; font-size: clamp(44px, 5vw, 76px); line-height: 1; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.trajet-km span { font-size: 11px; letter-spacing: .14em; color: var(--clair-3); }
.trajet-lieu { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; fill: var(--blanc); text-transform: uppercase; }
.trajet-motos { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--filet-clair); }
.trajet-motos li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--filet-clair); font-weight: 650; }
.trajet-motos li span { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--gilet); }
@media (max-width: 900px) { .trajet { grid-template-columns: 1fr; } }

/* final : ROULEZ (photo dans les lettres) */
.final { text-align: center; overflow: hidden; padding-bottom: clamp(70px, 9vw, 140px); }
.roulez { font-weight: 900; font-size: clamp(90px, 25vw, 470px); line-height: .78; letter-spacing: -.05em; text-transform: uppercase; margin: 0 0 clamp(30px, 4vw, 60px); font-stretch: var(--etire, 100%); background: url(../img/px/nuit-trainees-2000.webp) center / cover; background-position: calc(50% + var(--fx, 0px)) calc(50% + var(--fy, 0px)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: saturate(1.25) contrast(1.1); }
.final .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.final .chapo { margin: 0 auto 34px; text-align: center; }

/* --------------------------------------------------------------- pied */
.pied { position: relative; background: var(--nuit); color: var(--blanc); padding: clamp(70px, 8vw, 120px) var(--marge) 26px; overflow: hidden; z-index: 2; }
.pied-haut { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--filet-clair); }
.pied h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--clair-3); margin: 0 0 16px; }
.pied p, .pied li { margin: 0; color: var(--clair-2); font-size: 15px; line-height: 1.7; }
.pied ul { list-style: none; padding: 0; margin: 0; }
@media (hover: hover) { .pied a:hover { color: var(--gilet); } }
.pied-statut { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 14px; border-radius: 999px; background: var(--nuit-3); font-size: 14px; font-weight: 650; color: var(--blanc); }
.pied-statut i { width: 8px; height: 8px; border-radius: 50%; background: #9aa5aa; }
.pied-statut.ouvert i { background: #46e08a; box-shadow: 0 0 0 4px rgba(70, 224, 138, .2); }
.pied-geant { overflow: hidden; margin: 30px calc(var(--marge) * -1) 0; }
.pied-geant-int { display: inline-flex; white-space: nowrap; animation: defile 38s linear infinite; }
.pied-geant .mot { font-weight: 900; font-size: 17vw; line-height: .8; letter-spacing: -.05em; text-transform: uppercase; color: var(--jd); font-stretch: var(--etire, 100%); padding-right: .25em; }
.pied-geant .mot.contour { color: transparent; -webkit-text-stroke: 2px var(--jd); }
.pied-geant img { width: 13vw; height: auto; opacity: .95; }
.pied-bas { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 24px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--clair-3); text-transform: uppercase; }
@media (max-width: 900px) { .pied-haut { grid-template-columns: 1fr 1fr; } .pied-haut > div:first-child { grid-column: 1 / -1; } }

/* ============================================================ PAGES INTÉRIEURES */
/* hero façon Apex : grand titre + photo qui s'ouvre au défilement */
.ouverture { position: relative; height: 240lvh; background: var(--papier); }
.ouverture-colle { position: sticky; top: 0; z-index: 2; height: 100vh; height: 100lvh; overflow: hidden; }
.ouverture-photo { position: absolute; top: var(--ih, 22%); bottom: var(--ih, 22%); left: var(--iw, 30%); right: var(--iw, 30%); border-radius: var(--ir, 22px); overflow: hidden; }
.ouverture-photo .cadre { position: absolute; inset: 0; border-radius: inherit; }
.ouverture-photo::after { content: ''; position: absolute; inset: 0; background: rgba(6, 16, 23, var(--voile, 0)); z-index: 2; pointer-events: none; }
.ouverture-titre { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--entete) + 3vh) var(--marge) 7vh; pointer-events: none; color: var(--encre); }
.ouverture-titre span:last-child { align-self: flex-end; color: var(--jd); }
.ouverture-titre span { font-weight: 900; text-transform: uppercase; font-size: clamp(64px, 13.5vw, 260px); line-height: .8; letter-spacing: -.045em; font-stretch: var(--etire); will-change: transform; }
.ouverture-bas { position: absolute; z-index: 3; left: var(--marge); right: 40vw; bottom: 26px; display: flex; justify-content: space-between; align-items: end; gap: 20px; color: var(--encre); }
.ouverture-bas .liste-cat { display: flex; gap: 8px; flex-wrap: wrap; }
.ouverture-bas .liste-cat span { padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
@media (max-width: 800px) { .ouverture-bas { display: none; } .ouverture-titre { padding-top: calc(var(--entete) + 5vh); padding-bottom: 10vh; } }
.ouverture-devise { position: absolute; z-index: 4; left: var(--marge); bottom: 12vh; max-width: 680px; color: var(--blanc); opacity: 0; }
.ouverture-devise .t-2 { font-stretch: 90%; }
.ouverture-devise p { color: rgba(255, 255, 255, .8); margin-top: 16px; }

/* levier de vitesses : manuelle / automatique */
.boite { display: grid; grid-template-columns: minmax(260px, .7fr) 1.3fr; gap: clamp(30px, 6vw, 110px); align-items: center; }
.levier { position: relative; width: min(100%, 380px); aspect-ratio: .82; margin: 0 auto; border-radius: 40px; background: radial-gradient(120% 90% at 50% 20%, #24343c, #0b161c); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06), 0 40px 80px rgba(6, 16, 23, .35); touch-action: none; user-select: none; }
.levier svg.grille-h { position: absolute; inset: 14% 14% 24%; width: 72%; height: 62%; }
.levier .fente { fill: none; stroke: #050a0d; stroke-width: 22; stroke-linecap: round; }
.levier .fente-bord { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 26; stroke-linecap: round; }
.levier .rapport { font-family: var(--mono); font-size: 17px; font-weight: 700; fill: rgba(238, 241, 239, .45); }
.levier .rapport.on { fill: var(--gilet); }
.pommeau { position: absolute; left: 0; top: 0; width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%; background: radial-gradient(60% 60% at 35% 30%, #4b5a61, #10191e 70%); box-shadow: 0 18px 30px rgba(0, 0, 0, .55), inset 0 -6px 12px rgba(0, 0, 0, .5), inset 0 3px 4px rgba(255, 255, 255, .15); cursor: grab; display: grid; place-items: center; color: var(--jd-clair); font-family: var(--mono); font-weight: 700; font-size: 13px; will-change: transform; }
.pommeau:active { cursor: grabbing; }
.levier-legende { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; }
.levier-legende button { padding: 9px 14px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--clair-2); box-shadow: inset 0 0 0 1px var(--filet-clair); }
.levier-legende button[aria-pressed="true"] { background: var(--gilet); color: var(--encre); box-shadow: none; }
.boite-panneaux { position: relative; }
.boite-panneau { display: none; }
.boite-panneau.on { display: block; }
.boite-panneau .t-1 { font-stretch: 82%; }
.boite-panneau ul { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--filet); }
.boite-panneau li { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--filet); font-weight: 600; display: flex; gap: 10px; align-items: baseline; }
.boite-panneau li::before { content: '→'; color: var(--jd); font-weight: 800; }
.boite-prix { display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; }
.boite-prix small { color: var(--encre-2); font-size: 15px; }
@media (max-width: 900px) { .boite { grid-template-columns: 1fr; } .boite-panneau ul { grid-template-columns: 1fr; } }

/* parcours en 4 étapes : la route qui se dessine */
.parcours { position: relative; }
.parcours-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.parcours-svg .bitume { fill: none; stroke: var(--nuit); stroke-width: 70; stroke-linecap: round; opacity: .07; }
.parcours-svg .axe { fill: none; stroke: var(--jd); stroke-width: 4; stroke-dasharray: 22 18; stroke-linecap: round; }
.parcours-svg .voiture { transition: none; }
.parcours-etapes { position: relative; z-index: 1; display: grid; gap: clamp(90px, 16vh, 200px); padding: 4vh 0; }
.parcours-etape { width: min(100%, 500px); padding: 30px; border-radius: 24px; background: var(--blanc); box-shadow: 0 30px 60px rgba(6, 16, 23, .08); }
.parcours-etape:nth-child(even) { justify-self: end; }
.parcours-etape .num { font-weight: 900; font-size: 90px; line-height: .8; letter-spacing: -.05em; color: var(--jd); font-stretch: 70%; }
.parcours-etape h3 { margin: 12px 0 8px; font-size: clamp(26px, 2.4vw, 36px); font-weight: 850; text-transform: uppercase; letter-spacing: -.02em; line-height: .98; }
.parcours-etape p { margin: 0; color: var(--encre-2); }
.parcours-etape .mono { display: inline-block; margin-top: 16px; padding: 7px 11px; border-radius: 999px; background: var(--papier); color: var(--encre); }

/* duo AAC / supervisée */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--filet-clair); border-radius: 28px; overflow: hidden; }
.duo > div { background: var(--nuit-2); padding: clamp(30px, 4vw, 60px); display: grid; gap: 20px; align-content: start; }
.duo .age { font-weight: 900; font-size: clamp(80px, 11vw, 190px); line-height: .8; letter-spacing: -.05em; color: var(--gilet); font-stretch: 70%; }
.duo .age small { font-size: .26em; letter-spacing: 0; color: var(--blanc); font-stretch: 100%; margin-left: 8px; }
.duo ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--clair-2); }
.duo li::before { content: '✓  '; color: var(--jd-clair); font-weight: 800; }
.jauges { margin-top: clamp(40px, 5vw, 70px); display: grid; gap: 18px; }
.jauge { display: grid; grid-template-columns: 220px 1fr 70px; gap: 20px; align-items: center; }
.jauge .barre { height: 14px; border-radius: 999px; background: rgba(238, 241, 239, .08); overflow: hidden; }
.jauge .barre i { display: block; height: 100%; border-radius: inherit; background: var(--jd); transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease); }
.jauge.vu .barre i { transform: scaleX(var(--v)); }
.jauge.fort .barre i { background: var(--gilet); }
.jauge b { font-family: var(--mono); font-size: 20px; text-align: right; }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } .jauge { grid-template-columns: 1fr 60px; } .jauge .barre { grid-column: 1 / -1; grid-row: 2; } }

/* liste de forfaits (lignes) */
.forfaits { border-top: 1.5px solid currentColor; }
.forfait { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--filet); }
.nuit .forfait { border-color: var(--filet-clair); }
.forfait h3 { margin: 0; font-size: clamp(26px, 2.6vw, 42px); font-weight: 850; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; font-stretch: 85%; }
.forfait h3 small { display: block; margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; font-weight: 500; color: var(--jd-fonce); font-stretch: 100%; }
.nuit .forfait h3 small { color: var(--gilet); }
.forfait p { margin: 0; color: var(--encre-2); font-size: 15px; }
.nuit .forfait p { color: var(--clair-2); }
.forfait .plaque { justify-self: end; }
.bascule-code { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(127, 127, 127, .14); gap: 2px; margin-bottom: 24px; }
.bascule-code button { padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.bascule-code button[aria-pressed="true"] { background: var(--encre); color: var(--blanc); }
.nuit .bascule-code button[aria-pressed="true"] { background: var(--gilet); color: var(--encre); }
@media (max-width: 800px) { .forfait { grid-template-columns: 1fr; gap: 14px; } .forfait h3 { overflow-wrap: anywhere; } .forfait .plaque { justify-self: start; } }

/* --------------------------------------------------------------- MOTO */
.moto-hero { position: relative; min-height: 100lvh; background: #000; color: var(--blanc); overflow: hidden; display: grid; }
.moto-hero .cadre { position: absolute; inset: 0; background: #000; }
.moto-hero .cadre::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .1) 60%), linear-gradient(0deg, rgba(0, 0, 0, .7), transparent 40%); z-index: 2; }
.moto-hero-contenu { position: relative; z-index: 3; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 30px; padding: calc(var(--entete) + 40px) var(--marge) 34px; }
.moto-stats { display: grid; gap: 22px; align-self: center; }
.moto-stats b { display: block; font-size: 30px; font-weight: 850; line-height: 1; }
.moto-stats span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--clair-3); text-transform: uppercase; }
.moto-num { font-weight: 900; font-size: clamp(160px, 34vw, 640px); line-height: .74; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--gilet); font-stretch: 70%; justify-self: end; align-self: center; }
.moto-titre { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.moto-titre .t-mega { font-stretch: 70%; }
.moto-titre p { max-width: 24em; color: var(--clair-2); margin: 0; }
.jaune { background: var(--gilet); color: var(--encre); }
.damier { height: 48px; background: conic-gradient(#000 25%, #fff 0 50%, #000 0 75%, #fff 0) 0 0 / 48px 48px; }
.calendrier { border-top: 2px solid currentColor; }
.cal-ligne { position: relative; display: grid; grid-template-columns: 110px 1fr 1fr 170px; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--filet-clair); }
.jaune .cal-ligne { border-color: rgba(8, 18, 23, .2); }
.cal-ligne .code { font-weight: 900; font-size: 40px; letter-spacing: -.03em; font-stretch: 112%; }
.cal-ligne h3 { margin: 0; font-weight: 850; font-size: clamp(24px, 2.4vw, 38px); text-transform: uppercase; letter-spacing: -.02em; font-stretch: 80%; line-height: 1; }
.cal-ligne p { margin: 0; font-size: 15px; opacity: .75; }
.cal-ligne .prix { justify-self: end; font-weight: 900; font-size: clamp(28px, 2.6vw, 44px); letter-spacing: -.03em; font-stretch: 80%; }
@media (hover: hover) { .cal-ligne:hover { color: var(--gilet); } }
@media (hover: hover) { .jaune .cal-ligne:hover { color: var(--blanc); background: var(--encre); } }
.cal-apercu { position: fixed; z-index: 50; left: 0; top: 0; width: 300px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-6deg); transition: opacity .3s, transform .5s var(--ease); }
.cal-apercu.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.cal-apercu img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .cal-ligne { grid-template-columns: 70px 1fr auto; } .cal-ligne p { grid-column: 2 / 4; } .cal-ligne .code { font-size: 26px; } .moto-hero-contenu { grid-template-columns: 1fr; } .moto-num { position: absolute; right: -4vw; top: 16vh; opacity: .6; } .moto-titre { flex-direction: column; align-items: start; } }

/* garage : fiches techniques */
.garage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fiche { position: relative; border-radius: 24px; padding: 28px; background: var(--nuit-2); min-height: 440px; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; isolation: isolate; }
.fiche .marque-m { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--clair-3); }
.fiche h3 { margin: 6px 0 0; font-weight: 900; font-size: clamp(38px, 4vw, 66px); line-height: .88; text-transform: uppercase; letter-spacing: -.035em; font-stretch: 72%; }
.fiche svg.silhouette { width: 100%; height: auto; align-self: center; margin: 20px 0; color: var(--jd-clair); }
.fiche .silhouette path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fiche-bas { display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.fiche-bas .categorie { min-width: 56px; height: 52px; font-size: 22px; }
.fiche-bas span { font-family: var(--mono); font-size: 12px; color: var(--clair-2); letter-spacing: .06em; }
.fiche::after { content: attr(data-n); position: absolute; right: -10px; bottom: -40px; font-weight: 900; font-size: 220px; line-height: 1; letter-spacing: -.06em; color: rgba(255, 255, 255, .03); z-index: -1; }
@media (max-width: 900px) { .garage { grid-template-columns: 1fr; } }
.equip-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.equip { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: .72; transform-style: preserve-3d; transition: transform .6s var(--ease); color: var(--blanc); }
.equip .cadre { position: absolute; inset: 0; }
.equip .cadre::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .85)); z-index: 2; }
.equip-txt { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 3; }
.equip-txt b { display: block; font-weight: 900; font-size: clamp(26px, 2.2vw, 36px); text-transform: uppercase; letter-spacing: -.02em; line-height: .95; font-stretch: 80%; }
.equip-txt span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--gilet); }
@media (max-width: 900px) { .equip-grille { grid-template-columns: 1fr 1fr; } }
.chute { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.chute b { font-weight: 900; font-size: clamp(120px, 22vw, 380px); line-height: .78; letter-spacing: -.06em; font-stretch: 70%; }
.chute b sub { font-size: .4em; vertical-align: baseline; }
@media (max-width: 800px) { .chute { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- CODE */
.code-hero { min-height: 100lvh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 4vw; padding: calc(var(--entete) + 40px) var(--marge) 60px; background: var(--gilet); color: var(--encre); overflow: hidden; }
.code-hero .t-mega { font-stretch: 75%; }
.code-hero .chapo { color: rgba(8, 18, 23, .75); margin-top: 26px; }
.panneaux-3d { position: relative; height: min(70vh, 640px); perspective: 1200px; }
.p3d { position: absolute; transform-style: preserve-3d; will-change: transform; filter: drop-shadow(0 30px 40px rgba(8, 18, 23, .3)); }
.p3d svg { width: 100%; height: 100%; }
@media (max-width: 900px) { .code-hero { grid-template-columns: 1fr; } .panneaux-3d { height: 56vh; } }
.quiz { max-width: 1100px; margin: 0 auto; }
.quiz-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 20px; margin-bottom: 30px; }
.quiz-progression { display: flex; gap: 6px; }
.quiz-progression i { width: 38px; max-width: 12vw; height: 6px; border-radius: 999px; background: var(--filet); }
.quiz-progression i.on { background: var(--jd); }
.quiz-progression i.ok { background: #2bb673; }
.quiz-progression i.ko { background: var(--rouge); }
.quiz-carte { display: grid; grid-template-columns: 300px 1fr; gap: clamp(26px, 4vw, 60px); align-items: center; padding: clamp(24px, 3.5vw, 50px); border-radius: 30px; background: var(--blanc); box-shadow: 0 40px 80px rgba(8, 18, 23, .08); }
.quiz-signe { aspect-ratio: 1; display: grid; place-items: center; border-radius: 22px; background: var(--papier); }
.quiz-signe svg { width: 76%; height: auto; }
.quiz-q { font-weight: 800; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 22px; }
.quiz-choix { display: grid; gap: 10px; }
.quiz-choix button { text-align: left; padding: 17px 20px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--filet); font-weight: 650; font-size: 17px; display: flex; gap: 14px; align-items: center; transition: background .3s, box-shadow .3s, transform .4s var(--ease); }
@media (hover: hover) { .quiz-choix button:hover:not([disabled]) { box-shadow: inset 0 0 0 1.5px var(--encre); transform: translateX(4px); } }
.quiz-choix button b { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--papier); font-family: var(--mono); font-size: 13px; }
.quiz-choix button.ok { background: #e3f7ec; box-shadow: inset 0 0 0 2px #2bb673; }
.quiz-choix button.ko { background: #fde8e9; box-shadow: inset 0 0 0 2px var(--rouge); }
.quiz-explication { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--papier); font-size: 16px; display: none; }
.quiz-explication.on { display: block; }
.quiz-suite { margin-top: 18px; }
.quiz-fin { text-align: center; padding: clamp(30px, 5vw, 70px); border-radius: 30px; background: var(--nuit); color: var(--blanc); }
.quiz-fin .score { font-weight: 900; font-size: clamp(110px, 18vw, 260px); line-height: .8; letter-spacing: -.06em; font-stretch: 72%; color: var(--gilet); }
@media (max-width: 800px) { .quiz-carte { grid-template-columns: 1fr; } .quiz-signe { width: 60%; margin: 0 auto; } }
.cartes-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.carte-info { padding: 30px; border-radius: 24px; background: var(--blanc); display: grid; gap: 14px; align-content: start; }
.nuit .carte-info { background: var(--nuit-2); }
.carte-info .gros { font-weight: 900; font-size: clamp(54px, 6vw, 96px); line-height: .85; letter-spacing: -.04em; font-stretch: 75%; color: var(--jd); }
.carte-info h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.carte-info p { margin: 0; color: var(--encre-2); font-size: 16px; }
.nuit .carte-info p { color: var(--clair-2); }
@media (max-width: 900px) { .cartes-3 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- TARIFS */
.tarifs-hero { min-height: 100lvh; display: grid; align-content: center; justify-items: center; gap: 40px; text-align: center; padding: calc(var(--entete) + 8vh) var(--marge) 70px; background: var(--nuit); color: var(--blanc); overflow: hidden; position: relative; }
.tarifs-hero .t-1 { font-stretch: 110%; font-size: clamp(42px, 6.6vw, 120px); }
.tarifs-hero .plaque { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease); }
.tarifs-hero .sous { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--clair-2); text-transform: uppercase; min-height: 1.4em; }
.tarifs-hero .puces { justify-content: center; }
.tarifs-hero .puces span { background: transparent; color: var(--blanc); box-shadow: inset 0 0 0 1.5px var(--filet-clair); }
.tarifs-hero .puces input:checked + span { background: var(--gilet); color: var(--encre); box-shadow: none; }
.odo { display: inline-flex; flex-direction: column; overflow: hidden; height: 1em; line-height: 1; }
[data-odo] { align-items: center; line-height: 1; }
[data-odo] > span:not(.odo) { display: inline-block; height: 1em; }
.odo .roue { display: flex; flex-direction: column; align-self: flex-start; flex: none; transition: transform 1.1s var(--ease); }
.odo .roue span { height: 1em; display: block; text-align: center; }
.onglets { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; border-radius: 999px; background: var(--papier-2); width: max-content; max-width: 100%; margin-bottom: 40px; }
.onglets button { padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.onglets button[aria-selected="true"] { background: var(--encre); color: var(--blanc); }
.grille-tarifs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; }
.bloc-tarif { padding-bottom: 50px; }
.bloc-tarif h3 { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--jd-fonce); margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1.5px solid var(--encre); }
.ligne-prix { display: flex; align-items: baseline; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--filet); font-size: 17px; font-weight: 600; }
.ligne-prix::after { content: ''; order: 1; flex: 1; border-bottom: 1.5px dotted var(--encre-3); transform: translateY(-4px); }
.ligne-prix b { order: 2; font-weight: 900; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ligne-prix small { display: block; font-weight: 500; font-size: 13px; color: var(--encre-2); }
.panneau-tarif[hidden] { display: none; }
@media (max-width: 900px) { .grille-tarifs { grid-template-columns: 1fr; } .onglets { border-radius: 20px; } }
.echeancier { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; }
.echeancier::before { content: ''; position: absolute; left: 0; right: 0; top: 23px; height: 4px; border-radius: 999px; background: rgba(6, 16, 23, .15); }
.echeancier::after { content: ''; position: absolute; left: 0; right: 0; top: 23px; height: 4px; border-radius: 999px; background: var(--nuit); transform-origin: left; transform: scaleX(var(--p, 0)); }
.echeance { position: relative; z-index: 1; padding-right: 20px; }
.echeance i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--nuit); color: var(--gilet); font-style: normal; font-family: var(--mono); font-weight: 700; font-size: 14px; }
.echeance b { display: block; margin-top: 20px; font-weight: 900; font-size: clamp(44px, 5vw, 80px); letter-spacing: -.04em; line-height: .9; font-stretch: 80%; }
.echeance span { display: block; margin-top: 8px; font-weight: 600; }
@media (max-width: 700px) { .echeancier { grid-template-columns: 1fr; gap: 30px; } .echeancier::before, .echeancier::after { display: none; } }

/* ---------------------------------------------------------------- ÉCOLE */
.ecole-hero { position: relative; min-height: 100lvh; background: var(--nuit); color: var(--blanc); display: grid; align-content: end; padding: calc(var(--entete) + 30px) var(--marge) 40px; overflow: hidden; }
.ecole-hero .cadre { position: absolute; inset: 0; }
.ecole-hero .cadre::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 16, 23, .92), rgba(6, 16, 23, .1) 70%); z-index: 2; }
.ecole-hero .contenu { display: grid; gap: 24px; }
.ecole-hero .t-mega { font-stretch: 112%; }
.ecole-hero .adresse { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: end; border-top: 1px solid var(--filet-clair); padding-top: 20px; }
.ecole-hero .adresse p { margin: 0; color: var(--clair-2); }
.ecole-hero .adresse b { color: var(--blanc); font-size: 22px; display: block; }
.equipe-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.membre { position: relative; aspect-ratio: 1.05; perspective: 1200px; }
.membre-int { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.membre:focus-within .membre-int, .membre.tourne .membre-int { transform: rotateY(180deg); }
@media (hover: hover) { .membre:hover .membre-int { transform: rotateY(180deg); } }
.membre-face, .membre-dos { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 24px; padding: 26px; display: grid; align-content: space-between; }
.membre-face { background: var(--blanc); }
.membre-face .ico { width: 64px; height: 64px; border-radius: 50%; background: var(--jd); color: var(--blanc); display: grid; place-items: center; }
.membre-face .ico svg { width: 30px; height: 30px; }
.membre-face h3 { margin: 0; font-weight: 900; font-size: clamp(44px, 4.6vw, 80px); line-height: .85; letter-spacing: -.04em; text-transform: uppercase; font-stretch: 78%; }
.membre-face .mono { color: var(--encre-2); }
.membre-dos { background: var(--nuit); color: var(--blanc); transform: rotateY(180deg); }
.membre-dos p { margin: 0; font-size: 20px; font-weight: 650; line-height: 1.3; }
.membre-dos .etoiles { color: var(--gilet); letter-spacing: .2em; }
@media (max-width: 900px) { .equipe-cartes { grid-template-columns: 1fr 1fr; } .membre { aspect-ratio: .85; } }
@media (max-width: 540px) { .equipe-cartes { grid-template-columns: 1fr; } .membre { aspect-ratio: 1.3; } }
.horaires { display: grid; grid-template-columns: auto 1fr 1fr; gap: clamp(26px, 4vw, 70px); align-items: center; }
.horloge { width: clamp(220px, 22vw, 330px); aspect-ratio: 1; border-radius: 50%; background: var(--blanc); position: relative; box-shadow: 0 30px 70px rgba(6, 16, 23, .12), inset 0 0 0 10px var(--papier); }
.horloge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.horloge .aig { transform-origin: 50% 50%; transition: transform .6s var(--ease); will-change: transform; }
.horloge-statut { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); white-space: nowrap; }
.tableau-h h3 { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin: 0 0 10px; color: var(--jd-fonce); }
.tableau-h div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--filet); font-weight: 650; font-size: 18px; }
.tableau-h div span:last-child { font-family: var(--mono); font-size: 15px; }
.tableau-h div.auj { color: var(--jd-fonce); }
.tableau-h div.auj span:first-child::after { content: ' · aujourd’hui'; font-weight: 500; font-size: 13px; color: var(--encre-2); }
@media (max-width: 1000px) { .horaires { grid-template-columns: 1fr; justify-items: start; } .horloge { justify-self: center; margin-bottom: 30px; } .tableau-h { width: 100%; } }
.quartier { position: relative; border-radius: 28px; overflow: hidden; background: #0b1a23; aspect-ratio: 16 / 9; }
.quartier svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.quartier .rue { fill: none; stroke: rgba(238, 241, 239, .22); stroke-linecap: round; stroke-linejoin: round; }
.quartier .rue.p { stroke: rgba(238, 241, 239, .5); }
.quartier .rail { fill: none; stroke: var(--jd); stroke-width: 2.5; stroke-dasharray: 2 6; }
/* l'onde de l'épingle est un élément HTML sous le plan, posé au point (640, 432) du viewBox 1600×900
   en « slice » : animée dans le SVG, elle faisait recalculer et repeindre tout le plan à chaque image */
.quartier { container-type: size; }
.epingle-onde { --u: max(calc(100cqw / 1600), calc(100cqh / 900)); position: absolute; left: calc(50% - 160 * var(--u)); top: calc(50% - 18 * var(--u)); width: calc(44 * var(--u)); height: calc(44 * var(--u)); margin: calc(-22 * var(--u)) 0 0 calc(-22 * var(--u)); border-radius: 50%; background: #d8f23a; pointer-events: none; animation: pulse 2.2s var(--ease) infinite; will-change: transform, opacity; }
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.quartier-carte { position: absolute; left: 24px; bottom: 24px; padding: 20px 22px; border-radius: 18px; background: var(--blanc); color: var(--encre); max-width: 330px; display: grid; gap: 10px; }
.quartier-carte b { font-size: 20px; }
@media (max-width: 700px) { .quartier { aspect-ratio: .8; } .quartier-carte { left: 12px; right: 12px; bottom: 12px; } }
.labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.label { padding: 26px; border-radius: 22px; background: var(--blanc); display: grid; gap: 12px; align-content: start; }
.label .ico-l { width: 54px; height: 54px; border-radius: 16px; background: var(--papier); display: grid; place-items: center; color: var(--jd-fonce); }
.label .ico-l svg { width: 28px; height: 28px; }
.label b { font-size: 20px; line-height: 1.15; }
.label p { margin: 0; color: var(--encre-2); font-size: 15px; }
@media (max-width: 900px) { .labels { grid-template-columns: 1fr 1fr; } }
.galerie { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.galerie .cadre { border-radius: 20px; }
.galerie .g1 { grid-column: 1 / 8; aspect-ratio: 4 / 3; }
.galerie .g2 { grid-column: 8 / 13; aspect-ratio: 3 / 4; }
.galerie .g3 { grid-column: 1 / 5; aspect-ratio: 3 / 4; }
.galerie .g4 { grid-column: 5 / 13; aspect-ratio: 16 / 10; }
@media (max-width: 700px) { .galerie > * { grid-column: 1 / -1 !important; aspect-ratio: 4 / 3 !important; } }

/* ----------------------------------------------------------- INSCRIPTION */
.inscr { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 90px); align-items: start; padding-top: calc(var(--entete) + 50px); }
.inscr-titre .t-1 { font-stretch: 85%; font-size: clamp(44px, 6vw, 104px); }
.etapes-f { display: flex; gap: 6px; margin: 30px 0 34px; }
.etapes-f span { flex: 1; height: 5px; border-radius: 999px; background: var(--filet); position: relative; overflow: hidden; }
.etapes-f span::after { content: ''; position: absolute; inset: 0; background: var(--jd); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease); }
.etapes-f span.on::after { transform: scaleX(1); }
.f-etape { display: none; }
.f-etape.on { display: block; animation: monte .7s var(--ease); }
@keyframes monte { from { opacity: 0; transform: translateY(24px); } }
.f-etape h2 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 850; letter-spacing: -.02em; margin: 0 0 20px; line-height: 1.05; }
.choix-f { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choix-f label { position: relative; display: grid; gap: 6px; padding: 16px; border-radius: 18px; background: var(--blanc); box-shadow: inset 0 0 0 1.5px var(--filet); cursor: pointer; transition: box-shadow .3s, transform .4s var(--ease); }
@media (hover: hover) { .choix-f label:hover { transform: translateY(-3px); } }
.choix-f input { position: absolute; opacity: 0; pointer-events: none; }
.choix-f label:has(input:checked) { box-shadow: inset 0 0 0 2.5px var(--jd); background: #eafafb; }
.choix-f .cat { font-weight: 900; font-size: 26px; letter-spacing: -.02em; }
.choix-f .nom { font-weight: 650; font-size: 14px; line-height: 1.2; }
.choix-f .px { font-family: var(--mono); font-size: 12px; color: var(--encre-2); }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.champ { display: grid; gap: 6px; }
.champ.l { grid-column: 1 / -1; }
.champ label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-2); }
.champ input, .champ select, .champ textarea { width: 100%; padding: 16px 18px; border-radius: 14px; border: 0; background: var(--blanc); box-shadow: inset 0 0 0 1.5px var(--filet); font-size: 17px; outline: none; transition: box-shadow .3s; }
.champ input:focus, .champ select:focus, .champ textarea:focus { box-shadow: inset 0 0 0 2px var(--jd); }
.champ textarea { min-height: 120px; resize: vertical; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puces label { cursor: pointer; }
.puces input { position: absolute; opacity: 0; pointer-events: none; }
.puces span { display: inline-block; padding: 11px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--filet); font-weight: 650; font-size: 15px; background: var(--blanc); transition: background .3s, color .3s; }
.puces input:checked + span { background: var(--encre); color: var(--blanc); box-shadow: none; }
.puces input:focus-visible + span { outline: 2px solid var(--jd); outline-offset: 2px; }
.f-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; }
.f-erreur { color: var(--rouge); font-weight: 650; font-size: 15px; min-height: 1.4em; margin-top: 12px; }
.recap { border-radius: 20px; background: var(--blanc); padding: 8px 22px; }
.recap div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--filet); }
.recap div:last-child { border: 0; }
.recap span { color: var(--encre-2); }
.recap b { text-align: right; }
.inscr-carte { position: sticky; top: calc(var(--entete) + 30px); perspective: 1400px; }
.permis { position: relative; width: 100%; max-width: 520px; aspect-ratio: 85.6 / 54; margin: 0 auto; border-radius: 20px; background: linear-gradient(135deg, #f8d8e2 0%, #f3c9d6 40%, #e6c5e9 70%, #cfe0f2 100%); color: #2a1b2a; transform-style: preserve-3d; transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -14deg)); transition: transform .5s var(--ease); box-shadow: 0 50px 90px rgba(6, 16, 23, .25); overflow: hidden; font-family: var(--sans); }
.permis::before { content: ''; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 30% 120%, rgba(255, 255, 255, .0) 0 9px, rgba(255, 255, 255, .25) 10px 11px); opacity: .7; }
.permis::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .55) var(--hx, 45%), transparent calc(var(--hx, 45%) + 18%)), linear-gradient(115deg, rgba(120, 255, 240, .0) 30%, rgba(120, 255, 240, .25) var(--hx, 45%), rgba(255, 120, 220, .2) calc(var(--hx, 45%) + 10%), transparent calc(var(--hx, 45%) + 22%)); mix-blend-mode: soft-light; pointer-events: none; }
.permis-tete { position: absolute; left: 4%; top: 6%; right: 4%; display: flex; align-items: center; gap: 3%; }
.permis-ue { width: 11%; aspect-ratio: 1; border-radius: 4px; background: #1a3fa0; color: #ffd200; display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.permis-titre { font-weight: 800; font-size: clamp(11px, 1.6vw, 19px); letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.permis-titre small { display: block; font-weight: 500; font-size: .62em; letter-spacing: .1em; opacity: .7; }
.permis-photo { position: absolute; left: 5%; top: 30%; width: 25%; aspect-ratio: .78; border-radius: 6px; background: linear-gradient(180deg, #d6c3d6, #b9a3bd); overflow: hidden; display: grid; place-items: end center; }
.permis-photo svg { width: 85%; height: auto; opacity: .55; }
.permis-champs { position: absolute; left: 35%; top: 30%; right: 5%; display: grid; gap: 4px; font-size: clamp(10px, 1.25vw, 15px); }
.permis-champs div { display: flex; gap: 8px; align-items: baseline; }
.permis-champs i { font-style: normal; font-family: var(--mono); font-size: .8em; opacity: .55; width: 1.6em; flex: none; }
.permis-champs b { font-weight: 800; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.permis-cats { position: absolute; left: 35%; right: 5%; bottom: 7%; display: flex; gap: 5px; flex-wrap: wrap; }
.permis-cats span { padding: 3px 7px; border-radius: 5px; font-weight: 800; font-size: clamp(10px, 1.1vw, 13px); background: rgba(42, 27, 42, .08); color: rgba(42, 27, 42, .35); transition: background .4s, color .4s, transform .5s var(--ease); }
.permis-cats span.on { background: #2a1b2a; color: #fff; transform: translateY(-2px); }
.permis-jd { position: absolute; right: 5%; top: 6%; width: 13%; opacity: .8; }
.inscr-astuce { text-align: center; margin-top: 30px; color: var(--encre-2); font-size: 15px; }
.confirmation { text-align: center; padding: 40px 0; }
.confirmation .coche { width: 90px; height: 90px; margin: 0 auto 26px; border-radius: 50%; background: var(--jd); color: var(--blanc); display: grid; place-items: center; }
.confirmation .coche svg { width: 44px; height: 44px; }
@media (max-width: 1000px) { .inscr { grid-template-columns: 1fr; } .inscr-carte { position: relative; top: 0; order: -1; } .champs { grid-template-columns: 1fr; } }

/* mentions */
.texte-legal { max-width: 820px; }
.texte-legal h2 { font-size: 24px; margin: 46px 0 12px; }
.texte-legal p, .texte-legal li { color: var(--encre-2); }

/* ------------------------------------------------- défilé de mots (marquee) */
.defile { overflow: hidden; white-space: nowrap; padding: 18px 0; }
.defile-int { display: inline-flex; gap: 40px; animation: defile var(--duree, 40s) linear infinite; }
.defile-int span { font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 4vw, 60px); letter-spacing: -.02em; font-stretch: 112%; display: inline-flex; align-items: center; gap: 40px; }
.defile-int span::after { content: ''; width: .5em; height: .5em; border-radius: 50%; background: currentColor; opacity: .5; }
@keyframes defile { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js [data-rv] .ligne > span, html.js [data-monte] { transform: none; opacity: 1; }
}

/* ---------------------------------------------------------------------------------------
   Téléphone et tablette : fluidité (22/10). Tout ce qui suit retire du travail au GPU et au
   moteur de mise en page pendant le défilement, sans changer ce qu'on voit d'important.
   --------------------------------------------------------------------------------------- */
/* manifeste : une pilule photo pas encore allumée reste visible en petit (plus de trou dans la phrase) */
.pilule { --pil: .55; opacity: .3; transition: transform 1s var(--ease), opacity .6s; }
.pilule.on { --pil: 1; opacity: 1; }

/* polaroïds : le doigt fait défiler la page, il ne les attrape plus ; on ne les déplace qu'à la souris */
@media (hover: none), (pointer: coarse) {
  .pola { touch-action: auto; cursor: default; }
  .polas-astuce { display: none; }
}
@media (max-width: 900px) {
  .pola { width: 33vw; padding: 7px 7px 0; box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
  .pola figcaption { font-size: 16px; padding: 7px 2px 10px; }
  .polas-titre { z-index: 4; }
}

/* levier de vitesses : seul le pommeau capte le doigt, le reste du boîtier laisse défiler */
.levier { touch-action: pan-y; }
.pommeau { touch-action: none; }

/* panneaux 3D du code : l'ombre portée en filtre, recalculée à chaque image, coûte trop au téléphone */
@media (max-width: 900px), (hover: none) {
  .p3d { filter: none; }
}

/* ouverture façon Apex au téléphone : la photo reste plein écran et immobile ; quatre bandes couleur
   papier (seulement la largeur utile : 26 % / 6 % de l'écran) et quatre coins arrondis s'écartent.
   Un clip-path animé obligeait Safari à repeindre toute la photo à chaque image (~10 images/s).
   Avec Safari 26+, tout est piloté par le défilement lui-même (view-timeline) : aucun JavaScript par
   image, le navigateur anime seul. Ailleurs, pages.js écrit les mêmes transform (repli). */
.ouverture-cache { display: none; }
html.gl-natif .ouverture-photo, html:not(.gl-on) .ouverture-photo {
  top: 0; bottom: 0; left: 0; right: 0; border-radius: 0; will-change: transform;
}
html.gl-natif .ouverture-cache, html:not(.gl-on) .ouverture-cache { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; --ih0: 22lvh; --iw0: 30vw; }
@media (max-width: 799px) { html.gl-natif .ouverture-cache, html:not(.gl-on) .ouverture-cache { --ih0: 26lvh; --iw0: 6vw; } }
.ouverture-cache i { position: absolute; background: var(--papier); will-change: transform; }
.ouverture-cache i:nth-of-type(1) { top: 0; left: 0; right: 0; height: var(--ih0); }
.ouverture-cache i:nth-of-type(2) { bottom: 0; left: 0; right: 0; height: var(--ih0); }
.ouverture-cache i:nth-of-type(3) { top: 0; bottom: 0; left: 0; width: var(--iw0); }
.ouverture-cache i:nth-of-type(4) { top: 0; bottom: 0; right: 0; width: var(--iw0); }
/* voile sombre de la photo : un calque à part dont seule l'opacité change (sous les caches) */
.ouverture-cache .voile { position: absolute; inset: 0; background: rgba(6, 16, 23, .45); opacity: 0; will-change: opacity; }
/* chaque coin, posé à l'angle de la fenêtre, s'en va avec lui et rétrécit : rayon 22 px × (1 − ouverture) */
.ouverture-cache b { position: absolute; width: 22px; height: 22px; will-change: transform; }
.ouverture-cache b:nth-of-type(1) { top: var(--ih0); left: var(--iw0); background: radial-gradient(circle at 100% 100%, transparent 21.5px, var(--papier) 22px); transform-origin: 0 0; }
.ouverture-cache b:nth-of-type(2) { top: var(--ih0); right: var(--iw0); background: radial-gradient(circle at 0 100%, transparent 21.5px, var(--papier) 22px); transform-origin: 100% 0; }
.ouverture-cache b:nth-of-type(3) { bottom: var(--ih0); left: var(--iw0); background: radial-gradient(circle at 100% 0, transparent 21.5px, var(--papier) 22px); transform-origin: 0 100%; }
.ouverture-cache b:nth-of-type(4) { bottom: var(--ih0); right: var(--iw0); background: radial-gradient(circle at 0 0, transparent 21.5px, var(--papier) 22px); transform-origin: 100% 100%; }
/* chaque calque bouge seul : rien d'autre n'est repeint pendant l'ouverture */
.ouverture-titre, .ouverture-bas { will-change: opacity; }
.ouverture-devise { will-change: opacity, transform; }

/* images-clés calculées (outil : même courbe que pages.js, ease(smoothstep(0, .62, p))) */
@keyframes ouv-m-h { 0% { transform: translate3d(0, 0lvh, 0) } 5.17% { transform: translate3d(0, -1.505lvh, 0) } 10.33% { transform: translate3d(0, -5.36lvh, 0) } 15.5% { transform: translate3d(0, -10.382lvh, 0) } 20.67% { transform: translate3d(0, -15.433lvh, 0) } 25.83% { transform: translate3d(0, -19.688lvh, 0) } 31% { transform: translate3d(0, -22.75lvh, 0) } 36.17% { transform: translate3d(0, -24.616lvh, 0) } 41.33% { transform: translate3d(0, -25.547lvh, 0) } 46.5% { transform: translate3d(0, -25.901lvh, 0) } 51.67% { transform: translate3d(0, -25.989lvh, 0) } 56.83% { transform: translate3d(0, -26lvh, 0) } 62% { transform: translate3d(0, -26lvh, 0) } 100% { transform: translate3d(0, -26lvh, 0) } }
@keyframes ouv-m-b { 0% { transform: translate3d(0, 0lvh, 0) } 5.17% { transform: translate3d(0, 1.505lvh, 0) } 10.33% { transform: translate3d(0, 5.36lvh, 0) } 15.5% { transform: translate3d(0, 10.382lvh, 0) } 20.67% { transform: translate3d(0, 15.433lvh, 0) } 25.83% { transform: translate3d(0, 19.688lvh, 0) } 31% { transform: translate3d(0, 22.75lvh, 0) } 36.17% { transform: translate3d(0, 24.616lvh, 0) } 41.33% { transform: translate3d(0, 25.547lvh, 0) } 46.5% { transform: translate3d(0, 25.901lvh, 0) } 51.67% { transform: translate3d(0, 25.989lvh, 0) } 56.83% { transform: translate3d(0, 26lvh, 0) } 62% { transform: translate3d(0, 26lvh, 0) } 100% { transform: translate3d(0, 26lvh, 0) } }
@keyframes ouv-m-g { 0% { transform: translate3d(0vw, 0, 0) } 5.17% { transform: translate3d(-0.347vw, 0, 0) } 10.33% { transform: translate3d(-1.237vw, 0, 0) } 15.5% { transform: translate3d(-2.396vw, 0, 0) } 20.67% { transform: translate3d(-3.561vw, 0, 0) } 25.83% { transform: translate3d(-4.543vw, 0, 0) } 31% { transform: translate3d(-5.25vw, 0, 0) } 36.17% { transform: translate3d(-5.681vw, 0, 0) } 41.33% { transform: translate3d(-5.895vw, 0, 0) } 46.5% { transform: translate3d(-5.977vw, 0, 0) } 51.67% { transform: translate3d(-5.998vw, 0, 0) } 56.83% { transform: translate3d(-6vw, 0, 0) } 62% { transform: translate3d(-6vw, 0, 0) } 100% { transform: translate3d(-6vw, 0, 0) } }
@keyframes ouv-m-d { 0% { transform: translate3d(0vw, 0, 0) } 5.17% { transform: translate3d(0.347vw, 0, 0) } 10.33% { transform: translate3d(1.237vw, 0, 0) } 15.5% { transform: translate3d(2.396vw, 0, 0) } 20.67% { transform: translate3d(3.561vw, 0, 0) } 25.83% { transform: translate3d(4.543vw, 0, 0) } 31% { transform: translate3d(5.25vw, 0, 0) } 36.17% { transform: translate3d(5.681vw, 0, 0) } 41.33% { transform: translate3d(5.895vw, 0, 0) } 46.5% { transform: translate3d(5.977vw, 0, 0) } 51.67% { transform: translate3d(5.998vw, 0, 0) } 56.83% { transform: translate3d(6vw, 0, 0) } 62% { transform: translate3d(6vw, 0, 0) } 100% { transform: translate3d(6vw, 0, 0) } }
@keyframes ouv-m-c1 { 0% { transform: translate3d(0vw, 0lvh, 0) scale(1) } 5.17% { transform: translate3d(-0.347vw, -1.505lvh, 0) scale(0.942) } 10.33% { transform: translate3d(-1.237vw, -5.36lvh, 0) scale(0.794) } 15.5% { transform: translate3d(-2.396vw, -10.382lvh, 0) scale(0.601) } 20.67% { transform: translate3d(-3.561vw, -15.433lvh, 0) scale(0.406) } 25.83% { transform: translate3d(-4.543vw, -19.688lvh, 0) scale(0.243) } 31% { transform: translate3d(-5.25vw, -22.75lvh, 0) scale(0.125) } 36.17% { transform: translate3d(-5.681vw, -24.616lvh, 0) scale(0.053) } 41.33% { transform: translate3d(-5.895vw, -25.547lvh, 0) scale(0.017) } 46.5% { transform: translate3d(-5.977vw, -25.901lvh, 0) scale(0.004) } 51.67% { transform: translate3d(-5.998vw, -25.989lvh, 0) scale(0) } 56.83% { transform: translate3d(-6vw, -26lvh, 0) scale(0) } 62% { transform: translate3d(-6vw, -26lvh, 0) scale(0) } 100% { transform: translate3d(-6vw, -26lvh, 0) scale(0) } }
@keyframes ouv-m-c2 { 0% { transform: translate3d(0vw, 0lvh, 0) scale(1) } 5.17% { transform: translate3d(0.347vw, -1.505lvh, 0) scale(0.942) } 10.33% { transform: translate3d(1.237vw, -5.36lvh, 0) scale(0.794) } 15.5% { transform: translate3d(2.396vw, -10.382lvh, 0) scale(0.601) } 20.67% { transform: translate3d(3.561vw, -15.433lvh, 0) scale(0.406) } 25.83% { transform: translate3d(4.543vw, -19.688lvh, 0) scale(0.243) } 31% { transform: translate3d(5.25vw, -22.75lvh, 0) scale(0.125) } 36.17% { transform: translate3d(5.681vw, -24.616lvh, 0) scale(0.053) } 41.33% { transform: translate3d(5.895vw, -25.547lvh, 0) scale(0.017) } 46.5% { transform: translate3d(5.977vw, -25.901lvh, 0) scale(0.004) } 51.67% { transform: translate3d(5.998vw, -25.989lvh, 0) scale(0) } 56.83% { transform: translate3d(6vw, -26lvh, 0) scale(0) } 62% { transform: translate3d(6vw, -26lvh, 0) scale(0) } 100% { transform: translate3d(6vw, -26lvh, 0) scale(0) } }
@keyframes ouv-m-c3 { 0% { transform: translate3d(0vw, 0lvh, 0) scale(1) } 5.17% { transform: translate3d(-0.347vw, 1.505lvh, 0) scale(0.942) } 10.33% { transform: translate3d(-1.237vw, 5.36lvh, 0) scale(0.794) } 15.5% { transform: translate3d(-2.396vw, 10.382lvh, 0) scale(0.601) } 20.67% { transform: translate3d(-3.561vw, 15.433lvh, 0) scale(0.406) } 25.83% { transform: translate3d(-4.543vw, 19.688lvh, 0) scale(0.243) } 31% { transform: translate3d(-5.25vw, 22.75lvh, 0) scale(0.125) } 36.17% { transform: translate3d(-5.681vw, 24.616lvh, 0) scale(0.053) } 41.33% { transform: translate3d(-5.895vw, 25.547lvh, 0) scale(0.017) } 46.5% { transform: translate3d(-5.977vw, 25.901lvh, 0) scale(0.004) } 51.67% { transform: translate3d(-5.998vw, 25.989lvh, 0) scale(0) } 56.83% { transform: translate3d(-6vw, 26lvh, 0) scale(0) } 62% { transform: translate3d(-6vw, 26lvh, 0) scale(0) } 100% { transform: translate3d(-6vw, 26lvh, 0) scale(0) } }
@keyframes ouv-m-c4 { 0% { transform: translate3d(0vw, 0lvh, 0) scale(1) } 5.17% { transform: translate3d(0.347vw, 1.505lvh, 0) scale(0.942) } 10.33% { transform: translate3d(1.237vw, 5.36lvh, 0) scale(0.794) } 15.5% { transform: translate3d(2.396vw, 10.382lvh, 0) scale(0.601) } 20.67% { transform: translate3d(3.561vw, 15.433lvh, 0) scale(0.406) } 25.83% { transform: translate3d(4.543vw, 19.688lvh, 0) scale(0.243) } 31% { transform: translate3d(5.25vw, 22.75lvh, 0) scale(0.125) } 36.17% { transform: translate3d(5.681vw, 24.616lvh, 0) scale(0.053) } 41.33% { transform: translate3d(5.895vw, 25.547lvh, 0) scale(0.017) } 46.5% { transform: translate3d(5.977vw, 25.901lvh, 0) scale(0.004) } 51.67% { transform: translate3d(5.998vw, 25.989lvh, 0) scale(0) } 56.83% { transform: translate3d(6vw, 26lvh, 0) scale(0) } 62% { transform: translate3d(6vw, 26lvh, 0) scale(0) } 100% { transform: translate3d(6vw, 26lvh, 0) scale(0) } }
@keyframes ouv-d-h { 0% { transform: translate3d(0, 0lvh, 0) } 5.17% { transform: translate3d(0, -1.273lvh, 0) } 10.33% { transform: translate3d(0, -4.536lvh, 0) } 15.5% { transform: translate3d(0, -8.785lvh, 0) } 20.67% { transform: translate3d(0, -13.058lvh, 0) } 25.83% { transform: translate3d(0, -16.659lvh, 0) } 31% { transform: translate3d(0, -19.25lvh, 0) } 36.17% { transform: translate3d(0, -20.829lvh, 0) } 41.33% { transform: translate3d(0, -21.617lvh, 0) } 46.5% { transform: translate3d(0, -21.916lvh, 0) } 51.67% { transform: translate3d(0, -21.991lvh, 0) } 56.83% { transform: translate3d(0, -22lvh, 0) } 62% { transform: translate3d(0, -22lvh, 0) } 100% { transform: translate3d(0, -22lvh, 0) } }
@keyframes ouv-d-b { 0% { transform: translate3d(0, 0lvh, 0) } 5.17% { transform: translate3d(0, 1.273lvh, 0) } 10.33% { transform: translate3d(0, 4.536lvh, 0) } 15.5% { transform: translate3d(0, 8.785lvh, 0) } 20.67% { transform: translate3d(0, 13.058lvh, 0) } 25.83% { transform: translate3d(0, 16.659lvh, 0) } 31% { transform: translate3d(0, 19.25lvh, 0) } 36.17% { transform: translate3d(0, 20.829lvh, 0) } 41.33% { transform: translate3d(0, 21.617lvh, 0) } 46.5% { transform: translate3d(0, 21.916lvh, 0) } 51.67% { transform: translate3d(0, 21.991lvh, 0) } 56.83% { transform: translate3d(0, 22lvh, 0) } 62% { transform: translate3d(0, 22lvh, 0) } 100% { transform: translate3d(0, 22lvh, 0) } }
@keyframes ouv-d-g { 0% { transform: translate3d(0vw, 0, 0) } 5.17% { transform: translate3d(-1.736vw, 0, 0) } 10.33% { transform: translate3d(-6.185vw, 0, 0) } 15.5% { transform: translate3d(-11.98vw, 0, 0) } 20.67% { transform: translate3d(-17.807vw, 0, 0) } 25.83% { transform: translate3d(-22.716vw, 0, 0) } 31% { transform: translate3d(-26.25vw, 0, 0) } 36.17% { transform: translate3d(-28.403vw, 0, 0) } 41.33% { transform: translate3d(-29.477vw, 0, 0) } 46.5% { transform: translate3d(-29.886vw, 0, 0) } 51.67% { transform: translate3d(-29.988vw, 0, 0) } 56.83% { transform: translate3d(-30vw, 0, 0) } 62% { transform: translate3d(-30vw, 0, 0) } 100% { transform: translate3d(-30vw, 0, 0) } }
@keyframes ouv-d-d { 0% { transform: translate3d(0vw, 0, 0) } 5.17% { transform: translate3d(1.736vw, 0, 0) } 10.33% { transform: translate3d(6.185vw, 0, 0) } 15.5% { transform: translate3d(11.98vw, 0, 0) } 20.67% { transform: translate3d(17.807vw, 0, 0) } 25.83% { transform: translate3d(22.716vw, 0, 0) } 31% { transform: translate3d(26.25vw, 0, 0) } 36.17% { transform: translate3d(28.403vw, 0, 0) } 41.33% { transform: translate3d(29.477vw, 0, 0) } 46.5% { transform: translate3d(29.886vw, 0, 0) } 51.67% { transform: translate3d(29.988vw, 0, 0) } 56.83% { transform: translate3d(30vw, 0, 0) } 62% { transform: translate3d(30vw, 0, 0) } 100% { transform: translate3d(30vw, 0, 0) } }
@keyframes ouv-d-c1 { 0% { transform: translate3d(0vw, 0lvh, 0) scale(1) } 5.17% { transform: translate3d(-1.736vw, -1.273lvh, 0) scale(0.942) } 10.33% { transform: translate3d(-6.185vw, -4.536lvh, 0) scale(0.794) } 15.5% { transform: translate3d(-11.98vw, -8.785lvh, 0) scale(0.601) } 20.67% { transform: translate3d(-17.807vw, -13.058lvh, 0) scale(0.406) } 25.83% { transform: translate3d(-22.716vw, -16.659lvh, 0) scale(0.243) } 31% { transform: translate3d(-26.25vw, -19.25lvh, 0) scale(0.125) } 36.17% { transform: translate3d(-28.403vw, -20.829lvh, 0) scale(0.053) } 41.33% { transform: translate3d(-29.477vw, -21.617lvh, 0) scale(0.017) } 46.5% { transform: translate3d(-29.886vw, -21.916lvh, 0) scale(0.004) } 51.67% { transform: translate3d(-29.988vw, -21.991lvh, 0) scale(0) } 56.83% { transform: translate3d(-30vw, -22lvh, 0) scale(0) } 62% { transform: translate3d(-30vw, -22lvh, 0) scale(0) } 100% { transform: translate3d(-30vw, -22lvh, 0) scale(0) } }
@keyframes ouv-d-c2 { 0% { transform: translate3d(0vw, 0lvh, 0) scale(1) } 5.17% { transform: translate3d(1.736vw, -1.273lvh, 0) scale(0.942) } 10.33% { transform: translate3d(6.185vw, -4.536lvh, 0) scale(0.794) } 15.5% { transform: translate3d(11.98vw, -8.785lvh, 0) scale(0.601) } 20.67% { transform: translate3d(17.807vw, -13.058lvh, 0) scale(0.406) } 25.83% { transform: translate3d(22.716vw, -16.659lvh, 0) scale(0.243) } 31% { transform: translate3d(26.25vw, -19.25lvh, 0) scale(0.125) } 36.17% { transform: translate3d(28.403vw, -20.829lvh, 0) scale(0.053) } 41.33% { transform: translate3d(29.477vw, -21.617lvh, 0) scale(0.017) } 46.5% { transform: translate3d(29.886vw, -21.916lvh, 0) scale(0.004) } 51.67% { transform: translate3d(29.988vw, -21.991lvh, 0) scale(0) } 56.83% { transform: translate3d(30vw, -22lvh, 0) scale(0) } 62% { transform: translate3d(30vw, -22lvh, 0) scale(0) } 100% { transform: translate3d(30vw, -22lvh, 0) scale(0) } }
@keyframes ouv-d-c3 { 0% { transform: translate3d(0vw, 0lvh, 0) scale(1) } 5.17% { transform: translate3d(-1.736vw, 1.273lvh, 0) scale(0.942) } 10.33% { transform: translate3d(-6.185vw, 4.536lvh, 0) scale(0.794) } 15.5% { transform: translate3d(-11.98vw, 8.785lvh, 0) scale(0.601) } 20.67% { transform: translate3d(-17.807vw, 13.058lvh, 0) scale(0.406) } 25.83% { transform: translate3d(-22.716vw, 16.659lvh, 0) scale(0.243) } 31% { transform: translate3d(-26.25vw, 19.25lvh, 0) scale(0.125) } 36.17% { transform: translate3d(-28.403vw, 20.829lvh, 0) scale(0.053) } 41.33% { transform: translate3d(-29.477vw, 21.617lvh, 0) scale(0.017) } 46.5% { transform: translate3d(-29.886vw, 21.916lvh, 0) scale(0.004) } 51.67% { transform: translate3d(-29.988vw, 21.991lvh, 0) scale(0) } 56.83% { transform: translate3d(-30vw, 22lvh, 0) scale(0) } 62% { transform: translate3d(-30vw, 22lvh, 0) scale(0) } 100% { transform: translate3d(-30vw, 22lvh, 0) scale(0) } }
@keyframes ouv-d-c4 { 0% { transform: translate3d(0vw, 0lvh, 0) scale(1) } 5.17% { transform: translate3d(1.736vw, 1.273lvh, 0) scale(0.942) } 10.33% { transform: translate3d(6.185vw, 4.536lvh, 0) scale(0.794) } 15.5% { transform: translate3d(11.98vw, 8.785lvh, 0) scale(0.601) } 20.67% { transform: translate3d(17.807vw, 13.058lvh, 0) scale(0.406) } 25.83% { transform: translate3d(22.716vw, 16.659lvh, 0) scale(0.243) } 31% { transform: translate3d(26.25vw, 19.25lvh, 0) scale(0.125) } 36.17% { transform: translate3d(28.403vw, 20.829lvh, 0) scale(0.053) } 41.33% { transform: translate3d(29.477vw, 21.617lvh, 0) scale(0.017) } 46.5% { transform: translate3d(29.886vw, 21.916lvh, 0) scale(0.004) } 51.67% { transform: translate3d(29.988vw, 21.991lvh, 0) scale(0) } 56.83% { transform: translate3d(30vw, 22lvh, 0) scale(0) } 62% { transform: translate3d(30vw, 22lvh, 0) scale(0) } 100% { transform: translate3d(30vw, 22lvh, 0) scale(0) } }
@keyframes ouv-mot-g { 0% { transform: translate3d(0vw, 0vh, 0) } 5.17% { transform: translate3d(-1.042vw, -1.273vh, 0) } 10.33% { transform: translate3d(-3.711vw, -4.536vh, 0) } 15.5% { transform: translate3d(-7.188vw, -8.785vh, 0) } 20.67% { transform: translate3d(-10.684vw, -13.058vh, 0) } 25.83% { transform: translate3d(-13.63vw, -16.659vh, 0) } 31% { transform: translate3d(-15.75vw, -19.25vh, 0) } 36.17% { transform: translate3d(-17.042vw, -20.829vh, 0) } 41.33% { transform: translate3d(-17.686vw, -21.617vh, 0) } 46.5% { transform: translate3d(-17.931vw, -21.916vh, 0) } 51.67% { transform: translate3d(-17.993vw, -21.991vh, 0) } 56.83% { transform: translate3d(-18vw, -22vh, 0) } 62% { transform: translate3d(-18vw, -22vh, 0) } 100% { transform: translate3d(-18vw, -22vh, 0) } }
@keyframes ouv-mot-d { 0% { transform: translate3d(0vw, 0vh, 0) } 5.17% { transform: translate3d(1.042vw, 1.273vh, 0) } 10.33% { transform: translate3d(3.711vw, 4.536vh, 0) } 15.5% { transform: translate3d(7.188vw, 8.785vh, 0) } 20.67% { transform: translate3d(10.684vw, 13.058vh, 0) } 25.83% { transform: translate3d(13.63vw, 16.659vh, 0) } 31% { transform: translate3d(15.75vw, 19.25vh, 0) } 36.17% { transform: translate3d(17.042vw, 20.829vh, 0) } 41.33% { transform: translate3d(17.686vw, 21.617vh, 0) } 46.5% { transform: translate3d(17.931vw, 21.916vh, 0) } 51.67% { transform: translate3d(17.993vw, 21.991vh, 0) } 56.83% { transform: translate3d(18vw, 22vh, 0) } 62% { transform: translate3d(18vw, 22vh, 0) } 100% { transform: translate3d(18vw, 22vh, 0) } }
@keyframes ouv-titre { 0% { opacity: 1 } 45% { opacity: 1 } 49.17% { opacity: 0.926 } 53.33% { opacity: 0.741 } 57.5% { opacity: 0.5 } 61.67% { opacity: 0.259 } 65.83% { opacity: 0.074 } 70% { opacity: 0 } 100% { opacity: 0 } }
@keyframes ouv-bas { 0% { opacity: 1 } 5% { opacity: 1 } 8.33% { opacity: 0.926 } 11.67% { opacity: 0.741 } 15% { opacity: 0.5 } 18.33% { opacity: 0.259 } 21.67% { opacity: 0.074 } 25% { opacity: 0 } 100% { opacity: 0 } }
@keyframes ouv-voile { 0% { opacity: 0 } 55% { opacity: 0 } 60% { opacity: 0.074 } 65% { opacity: 0.259 } 70% { opacity: 0.5 } 75% { opacity: 0.741 } 80% { opacity: 0.926 } 85% { opacity: 1 } 100% { opacity: 1 } }
@keyframes ouv-devise { 0% { opacity: 0; transform: translate3d(0, 40px, 0) } 70% { opacity: 0; transform: translate3d(0, 40px, 0) } 73.33% { opacity: 0.074; transform: translate3d(0, 37.037px, 0) } 76.67% { opacity: 0.259; transform: translate3d(0, 29.63px, 0) } 80% { opacity: 0.5; transform: translate3d(0, 20px, 0) } 83.33% { opacity: 0.741; transform: translate3d(0, 10.37px, 0) } 86.67% { opacity: 0.926; transform: translate3d(0, 2.963px, 0) } 90% { opacity: 1; transform: translate3d(0, 0px, 0) } 100% { opacity: 1; transform: translate3d(0, 0px, 0) } }
@supports (animation-timeline: view()) {
  html.gl-natif .ouverture { view-timeline: --ouv block; }
  html.gl-natif .ouverture-cache i, html.gl-natif .ouverture-cache b, html.gl-natif .ouverture-cache .voile,
  html.gl-natif .ouverture-titre, html.gl-natif .ouverture-titre span, html.gl-natif .ouverture-bas, html.gl-natif .ouverture-devise {
    animation-duration: auto; animation-timing-function: linear; animation-fill-mode: both;
    animation-timeline: --ouv; animation-range: contain 0% contain 100%;
  }
  html.gl-natif .ouverture-cache i:nth-of-type(1) { animation-name: ouv-d-h; }
  html.gl-natif .ouverture-cache i:nth-of-type(2) { animation-name: ouv-d-b; }
  html.gl-natif .ouverture-cache i:nth-of-type(3) { animation-name: ouv-d-g; }
  html.gl-natif .ouverture-cache i:nth-of-type(4) { animation-name: ouv-d-d; }
  html.gl-natif .ouverture-cache b:nth-of-type(1) { animation-name: ouv-d-c1; }
  html.gl-natif .ouverture-cache b:nth-of-type(2) { animation-name: ouv-d-c2; }
  html.gl-natif .ouverture-cache b:nth-of-type(3) { animation-name: ouv-d-c3; }
  html.gl-natif .ouverture-cache b:nth-of-type(4) { animation-name: ouv-d-c4; }
  @media (max-width: 799px) {
    html.gl-natif .ouverture-cache i:nth-of-type(1) { animation-name: ouv-m-h; }
    html.gl-natif .ouverture-cache i:nth-of-type(2) { animation-name: ouv-m-b; }
    html.gl-natif .ouverture-cache i:nth-of-type(3) { animation-name: ouv-m-g; }
    html.gl-natif .ouverture-cache i:nth-of-type(4) { animation-name: ouv-m-d; }
    html.gl-natif .ouverture-cache b:nth-of-type(1) { animation-name: ouv-m-c1; }
    html.gl-natif .ouverture-cache b:nth-of-type(2) { animation-name: ouv-m-c2; }
    html.gl-natif .ouverture-cache b:nth-of-type(3) { animation-name: ouv-m-c3; }
    html.gl-natif .ouverture-cache b:nth-of-type(4) { animation-name: ouv-m-c4; }
  }
  html.gl-natif .ouverture-cache .voile { animation-name: ouv-voile; }
  html.gl-natif .ouverture-titre { animation-name: ouv-titre; }
  html.gl-natif .ouverture-titre span:first-child { animation-name: ouv-mot-g; }
  html.gl-natif .ouverture-titre span:last-child { animation-name: ouv-mot-d; }
  html.gl-natif .ouverture-bas { animation-name: ouv-bas; }
  html.gl-natif .ouverture-devise { animation-name: ouv-devise; }
}

/* formations au téléphone : le pivot des cartes est animé par le défilement lui-même
   (animation-timeline), en phase exacte avec le doigt ; repli JavaScript ailleurs */
@supports (animation-timeline: view()) {
  @media (max-width: 900px) {
    .carte-f { animation: carte-pivot linear both; animation-timeline: view(inline); }
  }
}
@keyframes carte-pivot {
  0% { transform: rotateY(40deg) translateZ(-140px) scale(.94); }
  50% { transform: none; }
  100% { transform: rotateY(-40deg) translateZ(-140px) scale(.94); }
}

/* « Roulez. » tient dans la largeur d'un téléphone */
@media (max-width: 900px) { .roulez { font-size: 22.5vw; } }

/* trajet vers la piste : au téléphone, le compteur passe en haut à droite, hors du tracé */
@media (max-width: 900px) { .trajet-km { left: auto; bottom: auto; right: 20px; top: 16px; text-align: right; } }

/* moto, grille de départ : au téléphone le prix reste sur la ligne du titre, sans se couper */
@media (max-width: 800px) { .cal-ligne .prix { grid-row: 1; grid-column: 3; white-space: nowrap; font-size: 26px; } }
/* consignes qui n'ont de sens qu'à la souris */
@media (hover: none) { .seul-souris { display: none; } }

/* textes posés sur les scènes WebGL : chacun sur son propre calque. Leur opacité change à chaque
   image du défilement ; sans calque, Safari repeignait tout le bloc collant (plein écran) avec eux. */
[data-hero-texte], .hero-titre, .hud, .hero-devise, [data-etape] { will-change: opacity, transform; }
.particules-jauge i::after { will-change: transform; }

/* « LA ROUTE. » tient sur une ligne jusqu'aux téléphones de 360 px (à 66 px de corps, le point
   partait seul à la ligne sous 402 px de large) */
@media (max-width: 480px) { .hero-titre { font-size: min(66px, calc((100vw - 2 * var(--marge)) * .18)); } }

/* menu au doigt : le panneau descend en transform au lieu d'un clip-path animé (Safari repeignait
   tout l'écran à chaque image pendant 0,9 s) ; les liens gardent leur entrée en cascade */
@media (hover: none) {
  .menu { clip-path: none; transform: translate3d(0, -100%, 0); transition: transform .9s var(--ease-io), visibility 0s .9s; will-change: transform; }
  .menu.ouvert { clip-path: none; transform: none; transition: transform .9s var(--ease-io), visibility 0s; }
}

/* hero au téléphone (Safari 26+) : titre, textes, compteurs et devise suivent le défilement en CSS
   (view-timeline), calés sur le doigt comme la page. Pilotés en JavaScript, ils ne bougeaient qu'au
   rythme où l'iPhone transmet la position de défilement au script (par à-coups pendant le geste).
   Mêmes courbes que Route.update ; la route WebGL, elle, lisse sa propre progression. */
@keyframes hero-titre { 0% { opacity: 1; transform: translate3d(0, 0vh, 0) } 6% { opacity: 1; transform: translate3d(0, -1.32vh, 0) } 11.67% { opacity: 0.926; transform: translate3d(0, -2.567vh, 0) } 17.33% { opacity: 0.741; transform: translate3d(0, -3.813vh, 0) } 23% { opacity: 0.5; transform: translate3d(0, -5.06vh, 0) } 28.67% { opacity: 0.259; transform: translate3d(0, -6.307vh, 0) } 34.33% { opacity: 0.074; transform: translate3d(0, -7.553vh, 0) } 40% { opacity: 0; transform: translate3d(0, -8.8vh, 0) } 50% { opacity: 0; transform: translate3d(0, -11vh, 0) } 60% { opacity: 0; transform: translate3d(0, -13.2vh, 0) } 70% { opacity: 0; transform: translate3d(0, -15.4vh, 0) } 80% { opacity: 0; transform: translate3d(0, -17.6vh, 0) } 90% { opacity: 0; transform: translate3d(0, -19.8vh, 0) } 100% { opacity: 0; transform: translate3d(0, -22vh, 0) } }
@keyframes hero-texte { 0% { opacity: 1 } 4% { opacity: 1 } 8.33% { opacity: 0.926 } 12.67% { opacity: 0.741 } 17% { opacity: 0.5 } 21.33% { opacity: 0.259 } 25.67% { opacity: 0.074 } 30% { opacity: 0 } 100% { opacity: 0 } }
@keyframes hero-hud { 0% { opacity: 1 } 55% { opacity: 1 } 58.33% { opacity: 0.926 } 61.67% { opacity: 0.741 } 65% { opacity: 0.5 } 68.33% { opacity: 0.259 } 71.67% { opacity: 0.074 } 75% { opacity: 0 } 100% { opacity: 0 } }
@keyframes hero-devise { 0% { opacity: 0; transform: translate3d(0, 40px, 0) } 80% { opacity: 0; transform: translate3d(0, 40px, 0) } 82.5% { opacity: 0.074; transform: translate3d(0, 37.037px, 0) } 85% { opacity: 0.259; transform: translate3d(0, 29.63px, 0) } 87.5% { opacity: 0.5; transform: translate3d(0, 20px, 0) } 90% { opacity: 0.741; transform: translate3d(0, 10.37px, 0) } 92.5% { opacity: 0.926; transform: translate3d(0, 2.963px, 0) } 95% { opacity: 1; transform: translate3d(0, 0px, 0) } 100% { opacity: 1; transform: translate3d(0, 0px, 0) } }
@supports (animation-timeline: view()) {
  html.gl-natif .hero { view-timeline: --hero block; }
  html.gl-natif .hero-titre, html.gl-natif .hero [data-hero-texte], html.gl-natif .hero-devise {
    animation-duration: auto; animation-timing-function: linear; animation-fill-mode: both;
    animation-timeline: --hero; animation-range: contain 0% contain 100%;
  }
  html.gl-natif .hero-titre { animation-name: hero-titre; }
  html.gl-natif .hero [data-hero-texte] { animation-name: hero-texte; }
  html.gl-natif .hero-devise { animation-name: hero-devise; }
  @media (max-width: 900px) {
    html.gl-natif .hero .hud { animation: hero-hud linear both; animation-timeline: --hero; animation-range: contain 0% contain 100%; }
  }
}

/* Pièces jointes de l'inscription (26/10/2026) */
.docs-aide { font-size: 14px; color: var(--encre-2); margin: 0 0 12px; line-height: 1.5; }
.docs { display: grid; gap: 8px; margin-bottom: 22px; }
.doc { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; padding: 10px 16px; border: 1px dashed rgba(8, 18, 23, .28); border-radius: 12px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.doc input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.doc-nom { font-size: 15px; }
.doc-etat { font-family: var(--f-mono, monospace); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: var(--encre-2); }
.doc.ok { border-style: solid; border-color: #17a6b5; background: rgba(23, 166, 181, .07); }
.doc.ok .doc-etat { color: #0d7f8b; }
.doc.ko { border-style: solid; border-color: #c0392b; }
.doc:focus-within { outline: 2px solid #17a6b5; outline-offset: 2px; }
/* Deux agences (26/10/2026) */
.agences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; position: relative; z-index: 2; }
.agence { display: grid; gap: 6px; align-content: start; padding: 22px 24px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.agence b { font-size: 20px; }
.agence > span:not(.mono) { color: rgba(255, 255, 255, .7); font-size: 15px; }
.agence .btn { justify-self: start; margin-top: 10px; }
@media (max-width: 760px) { .agences { grid-template-columns: minmax(0, 1fr); } }

/* Guides publiés par l'équipe SEO (outils/seo-equipe, 26/10/2026) : même papier que les mentions légales */
.guide .fil { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2); margin: 0 0 22px; }
.guide .fil a { text-decoration: underline; text-underline-offset: 3px; }
.guide h1 { font-weight: 850; font-size: clamp(34px, 5.2vw, 72px); line-height: .96; letter-spacing: -.025em; text-transform: uppercase; font-stretch: 92%; margin: 0 0 26px; overflow-wrap: anywhere; hyphens: auto; }
.guide .chapo { margin: 0 0 8px; }
.guide h2 { line-height: 1.2; }
.guide p { margin: 0 0 14px; }
.guide p a, .guide li a, .guide td a, .guide details a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.guide ul:not(.guides-liste) { padding-left: 1.2em; margin: 0 0 16px; }
.guide ul:not(.guides-liste) li { margin: 6px 0; }
.guide .tableau { overflow-x: auto; margin: 6px 0 20px; -webkit-overflow-scrolling: touch; }
.guide table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 420px; }
.guide th, .guide td { text-align: left; padding: 11px 12px; border-bottom: 1px solid rgba(6, 16, 23, .12); vertical-align: top; }
.guide th { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.guide .faq details { border-top: 1px solid rgba(6, 16, 23, .14); padding: 16px 0; }
.guide .faq details:last-child { border-bottom: 1px solid rgba(6, 16, 23, .14); }
.guide summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; padding-right: 28px; position: relative; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: '+'; position: absolute; right: 0; top: -2px; font-size: 24px; font-weight: 400; }
.guide details[open] summary::after { content: '–'; }
.guide details p { margin: 12px 0 0; }
.guide .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 44px 0 0; }
.guide .maj { margin-top: 26px; font-size: 13px; color: var(--encre-2); }
.guides-liste { list-style: none; padding: 0; margin: 18px 0 0; }
.guides-liste li { border-top: 1px solid rgba(6, 16, 23, .14); padding: 20px 0; }
.guides-liste li:last-child { border-bottom: 1px solid rgba(6, 16, 23, .14); }
.guide .guides-liste a { color: var(--encre); text-decoration: none; font-weight: 750; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.2; letter-spacing: -.01em; }
@media (hover: hover) { .guide .guides-liste a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.guides-liste p { margin: 6px 0 0; color: var(--encre-2); }
@media (max-width: 600px) { .guide .actions .btn { width: 100%; justify-content: center; } }
