/* OpenSail — « Nuit au large ».
   Idée de mise en page : la page est une traversée de 3 600 milles ; un rail à gauche trace la route,
   chaque section est une marque de parcours. Titres en capitales étroites façon numéros de voile,
   feux de navigation rouge (bâbord) et vert (tribord) pour les deux classements. */
:root {
  --abyss: #04091a;      /* nuit, fond de page */
  --deep: #0a1630;       /* panneaux */
  --swell: #14284c;      /* reliefs, filets */
  --moon: #e9eef6;       /* texte */
  --haze: #9fb2cd;       /* texte secondaire */
  --phos: #62e2ff;       /* phosphorescence : actions, repères */
  --brass: #f2c46b;      /* laiton : prix et Milles */
  --port: #ff5d50;       /* feu bâbord : classement Open */
  --stbd: #3fe08f;       /* feu tribord : classement Monotype */
  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --gut: clamp(18px, 4.5vw, 64px);
  --rail: 0px;
  color-scheme: dark;
}
@media (min-width: 1240px) { :root { --rail: 148px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--abyss); color: var(--moon);
  font: 400 clamp(1rem, .95rem + .25vw, 1.125rem)/1.6 var(--body);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
canvas, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--phos); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 6.2vw, 5.9rem); line-height: .9; }
h2 { font-size: clamp(2.5rem, 6.4vw, 5.5rem); line-height: .9; margin-bottom: .45em; }
h3 { font: 600 1.15rem/1.3 var(--body); }
.lede { font-size: clamp(1.08rem, 1rem + .5vw, 1.4rem); line-height: 1.5; color: var(--moon); max-width: 34em; }
.note, .hint, .aside { color: var(--haze); font-size: .9rem; }
.aside { max-width: 44em; margin-top: 2.2rem; font-size: 1rem; }
.note { margin-top: 1rem; }

/* mots révélés un à un (les spans sont posés par app.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-top: .06em; }
.wi { display: inline-block; will-change: transform; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--gut); }
main, .foot { padding-left: var(--rail); }
.sec { position: relative; padding-block: clamp(84px, 13vw, 190px); }
.two { display: grid; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } .two.rev { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
.two > * { min-width: 0; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--phos); color: var(--abyss); padding: 10px 16px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }

#motes { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .8; }
main, .foot { position: relative; z-index: 1; }

/* ---------- barre du haut ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; gap: clamp(10px, 2vw, 28px);
  padding: 12px var(--gut); transition: background .4s, backdrop-filter .4s;
}
.top.solid { background: rgba(4, 9, 26, .78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.45rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; margin-right: auto; white-space: nowrap; }
.top-nav { display: none; gap: 26px; font-size: .95rem; }
.top-nav a { text-decoration: none; color: var(--haze); padding: 10px 0; position: relative; transition: color .2s; }
.top-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--phos); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.top-nav a:hover, .top-nav a.on { color: var(--moon); }
.top-nav a:hover::after, .top-nav a.on::after { transform: scaleX(1); }
@media (min-width: 1000px) { .top-nav { display: flex; } }
.lang { display: flex; border: 1px solid var(--swell); border-radius: 999px; padding: 3px; }
.lang button { background: none; border: 0; border-radius: 999px; min-width: 40px; min-height: 36px; font-size: .8rem; font-weight: 600; color: var(--haze); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--moon); color: var(--abyss); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--phos); color: #03121c; font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(98, 226, 255, .5); transition: box-shadow .35s, background .2s;
}
.btn:hover { box-shadow: 0 0 34px 2px rgba(98, 226, 255, .45); background: #8cebff; }
.btn-ghost { background: transparent; color: var(--moon); box-shadow: inset 0 0 0 1px rgba(233, 238, 246, .45); }
.btn-ghost:hover { background: rgba(233, 238, 246, .08); box-shadow: inset 0 0 0 1px var(--moon); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .92rem; }
.btn .short { display: none; }
@media (max-width: 720px) { .btn .long { display: none; } .btn .short { display: inline; } .brand span { display: none; } }

/* ---------- rail de route ---------- */
.rail { display: none; }
@media (min-width: 1240px) {
  .rail { display: block; position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); z-index: 20; padding: 96px 0 28px 34px; }
  .rail-track { position: absolute; left: 40px; top: 104px; bottom: 76px; width: 1px; background: var(--swell); }
  .rail-fill { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: var(--phos); box-shadow: 0 0 10px var(--phos); }
  .rail-boat { position: absolute; left: -6px; top: 0; width: 13px; height: 13px; margin-top: -6px; border-radius: 50%; background: var(--phos); box-shadow: 0 0 0 5px rgba(98, 226, 255, .16), 0 0 22px var(--phos); }
  .rail-wp { position: absolute; left: 40px; top: 104px; bottom: 76px; right: 0; }
  .rail-wp li { position: absolute; left: 0; transform: translateY(-50%); padding-left: 18px; font-size: .74rem; color: var(--haze); opacity: .55; transition: opacity .3s, color .3s; white-space: nowrap; }
  .rail-wp li::before { content: ""; position: absolute; left: -3px; top: 50%; width: 7px; height: 1px; background: currentColor; }
  .rail-wp li.past { opacity: .9; }
  .rail-wp li.on { opacity: 1; color: var(--phos); }
  .rail-log { position: absolute; left: 34px; bottom: 26px; font-size: .74rem; color: var(--haze); font-variant-numeric: tabular-nums; white-space: nowrap; }
}
.mlog { position: fixed; left: 0; right: 0; bottom: 0; height: 3px; z-index: 30; background: rgba(20, 40, 76, .6); }
.mlog i { display: block; height: 100%; width: 0; background: var(--phos); box-shadow: 0 0 12px var(--phos); }
@media (min-width: 1240px) { .mlog { display: none; } }

/* ---------- départ ---------- */
.hero {
  position: relative; min-height: min(94svh, 980px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  background: radial-gradient(60% 46% at 70% 26%, #1b3a6b 0%, transparent 70%), linear-gradient(#030716 0%, #0a1a3a 52%, #06102a 53%, #04091a 100%);
}
#sea { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 9, 26, .96) 0%, rgba(4, 9, 26, .5) 34%, transparent 62%), linear-gradient(to right, rgba(4, 9, 26, .5), transparent 60%); pointer-events: none; }
.hero-in { position: relative; padding-top: 120px; padding-bottom: clamp(88px, 11vh, 140px); }
.hero h1 { max-width: 8.9em; }
.hero .lede { margin-top: 1.5rem; max-width: 31em; text-shadow: 0 1px 18px rgba(4, 9, 26, .8); }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--moon); margin-bottom: 1.4rem; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: var(--stbd); box-shadow: 0 0 12px var(--stbd); animation: blink 2.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.repeaters { position: absolute; right: var(--gut); bottom: 56px; display: flex; gap: 2px; }
.repeaters div { background: rgba(4, 9, 26, .5); border: 1px solid rgba(159, 178, 205, .22); padding: 10px 16px 8px; min-width: 104px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.repeaters div:first-child { border-radius: 10px 0 0 10px; } .repeaters div:last-child { border-radius: 0 10px 10px 0; }
.repeaters dt { font-size: .72rem; color: var(--haze); }
.repeaters dd { font: 700 2.1rem/1 var(--display); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 4px; }
.repeaters dd span { font: 500 .8rem var(--body); color: var(--haze); }
.scene-note { position: absolute; right: var(--gut); bottom: 18px; font-size: .74rem; color: var(--haze); opacity: .8; }
/* Écran étroit : les répétiteurs passent au-dessus du titre, entre le bateau et le texte. L'espace laissé à la scène,
   qui était la marge haute du texte, devient la leur ; app.js les fait glisser avec le texte au défilement. */
@media (max-width: 900px) {
  .repeaters { position: relative; right: auto; bottom: auto; order: -1; z-index: 1; margin: 120px var(--gut) 18px; } /* z-index : placés avant par order, ils seraient peints sous la mer */
  .repeaters div { flex: 1; min-width: 0; padding: 8px 12px 6px; }
  .repeaters dd { font-size: 1.7rem; }
  .hero-in { padding-top: 0; padding-bottom: 44px; }
  .scene-note { display: none; }
}

/* ---------- le jeu ---------- */
.dials { width: min(100%, 360px); margin-inline: auto; }
.dials .ring { fill: none; stroke: var(--swell); stroke-width: 1; }
.orbit { transform-origin: 160px 160px; animation: spin linear infinite; }
.o1 { animation-duration: 7s; } .o2 { animation-duration: 28s; } .o3 { animation-duration: 90s; }
@keyframes spin { to { transform: rotate(360deg); } }
.tempos { display: grid; gap: 0; margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--swell); }
.tempos li { padding: 28px 0; border-bottom: 1px solid var(--swell); display: grid; gap: 6px 40px; }
.tempos .dur { font: 700 clamp(1.6rem, 3vw, 2.4rem)/1 var(--display); text-transform: uppercase; }
.tempos li:nth-child(1) .dur { color: var(--moon); } .tempos li:nth-child(2) .dur { color: var(--phos); } .tempos li:nth-child(3) .dur { color: var(--brass); }
.tempos p { color: var(--haze); max-width: 40em; }
@media (min-width: 900px) { .tempos li { grid-template-columns: 1fr 1.1fr 1.6fr; align-items: baseline; } }

/* ---------- le globe ---------- */
.globe { position: relative; height: 420vh; }
.globe-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#globeCv { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe-in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 96px; padding-bottom: 6vh; pointer-events: none; }
.globe-in h2 { position: absolute; top: 96px; left: var(--gut); right: var(--gut); max-width: 9em; font-size: clamp(2.2rem, 5.2vw, 4.6rem); }
.steps { position: relative; min-height: 9.5em; max-width: 26em; }
.steps li { position: absolute; left: 0; bottom: 0; opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .5s; padding-left: 18px; border-left: 2px solid var(--phos); }
.steps li.on { opacity: 1; transform: none; }
.steps p { color: var(--moon); }
.steps h3 { font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.05 var(--display); text-transform: uppercase; margin-bottom: .35em; }
.globe-in .note { margin-top: 14px; }
.globe.static { height: auto; } .globe.static .globe-stick { position: relative; height: auto; } .globe.static #globeCv { position: relative; height: 70vh; } .globe.static .globe-in h2 { position: static; margin-bottom: 1rem; } .globe.static .steps li { position: static; opacity: 1; transform: none; margin-bottom: 1.2rem; } .globe.static .globe-in { padding-top: 24px; }

/* ---------- à la barre ---------- */
.ctrl { margin-top: 1.8rem; }
.ctrl label, .ctrl legend { display: block; font-weight: 600; margin-bottom: .6rem; }
.ctrl output { font: 700 1.5rem/1 var(--display); color: var(--phos); margin-left: 8px; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; max-width: 440px; height: 44px; background: none; -webkit-appearance: none; appearance: none; cursor: grab; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--swell); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--swell); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -12px; border-radius: 50%; background: var(--phos); box-shadow: 0 0 0 6px rgba(98, 226, 255, .18), 0 0 20px var(--phos); border: 0; }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--phos); box-shadow: 0 0 0 6px rgba(98, 226, 255, .18); border: 0; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--swell); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { background: none; border: 0; min-height: 44px; padding: 0 20px; border-radius: 999px; color: var(--haze); cursor: pointer; font-weight: 500; transition: background .25s, color .25s; }
.seg button:hover { color: var(--moon); }
.seg button[aria-pressed="true"] { background: var(--moon); color: var(--abyss); font-weight: 600; }
.seg-sm { margin-top: 14px; } .seg-sm button { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.lvl-p { margin-top: 1rem; min-height: 3.2em; max-width: 30em; }
.sims { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .6rem; }
.sims li { font-size: .84rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--swell); color: var(--haze); opacity: .5; transition: all .35s; }
.sims li.on { opacity: 1; color: var(--abyss); background: var(--brass); border-color: var(--brass); }
.polar { position: relative; }
.polar canvas { width: 100%; height: auto; aspect-ratio: 1; touch-action: none; cursor: grab; }
.readout { display: flex; gap: clamp(18px, 4vw, 44px); margin-top: 10px; }
.readout dt { font-size: .78rem; color: var(--haze); }
.readout dd { font: 700 clamp(1.7rem, 3.4vw, 2.6rem)/1.05 var(--display); font-variant-numeric: tabular-nums; text-transform: uppercase; }
.readout dd span { font: 500 .85rem var(--body); color: var(--haze); text-transform: none; }

/* ---------- routeur ---------- */
.chart canvas { width: 100%; height: auto; border-radius: 14px; background: linear-gradient(160deg, #0b1b3c, #060f26); border: 1px solid var(--swell); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: .84rem; color: var(--haze); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 22px; height: 0; border-top: 2px solid var(--phos); }
.legend span:nth-child(1) i { border-color: rgba(159, 178, 205, .6); } .legend span:nth-child(3) i { border-top: 2px dashed var(--haze); }
.feat { display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid var(--swell); }
.feat li { padding: 18px 0; border-bottom: 1px solid var(--swell); }
.feat h3 { margin-bottom: 2px; }
.feat p { color: var(--haze); max-width: 34em; }
.soon { font: 500 .72rem/1 var(--body); font-style: normal; color: var(--brass); border: 1px solid currentColor; border-radius: 999px; padding: 3px 9px; margin-left: 8px; vertical-align: middle; white-space: nowrap; }

/* ---------- équité ---------- */
.versus { width: 100%; min-width: 620px; border-collapse: collapse; margin-top: clamp(32px, 5vw, 64px); }
.versus th, .versus td { text-align: left; vertical-align: top; padding: 20px 22px 20px 0; border-bottom: 1px solid var(--swell); }
.versus thead th { font: 800 clamp(1.8rem, 3.6vw, 3rem)/1 var(--display); text-transform: uppercase; padding-bottom: 14px; border-bottom-width: 2px; }
.versus thead th:nth-child(2) { color: var(--port); border-bottom-color: var(--port); }
.versus thead th:nth-child(3) { color: var(--stbd); border-bottom-color: var(--stbd); }
.versus thead th i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: currentColor; box-shadow: 0 0 16px currentColor; margin-right: 12px; vertical-align: .12em; }
.versus tbody th { font-weight: 600; width: 22%; color: var(--haze); }
.versus td { width: 39%; }
#equite h3 { margin-top: clamp(48px, 7vw, 96px); font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.1 var(--display); text-transform: uppercase; }
.rules { counter-reset: r; margin-top: 1.4rem; display: grid; gap: 0 56px; }
@media (min-width: 900px) { .rules { grid-template-columns: 1fr 1fr; } }
.rules li { counter-increment: r; display: grid; grid-template-columns: 2.6rem 1fr; padding: 18px 0; border-bottom: 1px solid var(--swell); }
.rules li::before { content: counter(r); font: 800 2rem/1 var(--display); color: var(--phos); }

/* ---------- bateaux ---------- */
.fleet { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: clamp(28px, 4vw, 56px); padding-bottom: 12px; }
.fleet li { scroll-snap-align: start; min-width: 0; border-top: 1px solid var(--swell); padding-top: 18px; }
.fleet svg { width: 100%; height: auto; margin-bottom: 14px; }
.fleet svg .hull { fill: var(--moon); } .fleet svg .sail { fill: none; stroke: var(--moon); stroke-width: 1.6; stroke-linejoin: round; } .fleet svg .sea { stroke: var(--phos); stroke-width: 1.4; fill: none; opacity: .7; }
.fleet li:hover svg .sail { stroke: var(--phos); }
.fleet p { color: var(--haze); font-size: .96rem; }
.crewrow { align-items: start; margin-top: clamp(40px, 6vw, 84px); }
.crewrow p { color: var(--haze); margin-top: .5rem; max-width: 32em; }
.crew { margin-top: .6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.crew b { display: block; font-weight: 600; } .crew span { color: var(--haze); font-size: .94rem; }

/* ---------- clubs ---------- */
.watch { display: grid; gap: 22px; justify-items: start; }
.watch svg { width: min(100%, 340px); }
.watch p { color: var(--haze); margin-top: .5rem; max-width: 30em; }
.watch-now { font: 700 1.5rem/1.1 var(--display) !important; text-transform: uppercase; color: var(--moon) !important; }

/* ---------- catalogue ---------- */
.milles { display: grid; gap: 22px 48px; align-items: center; margin-top: clamp(32px, 5vw, 60px); padding: clamp(20px, 3vw, 34px); border: 1px solid rgba(242, 196, 107, .4); border-radius: 18px; background: linear-gradient(120deg, rgba(242, 196, 107, .1), transparent 60%); }
@media (min-width: 900px) { .milles { grid-template-columns: 1fr 1.25fr; } }
.milles h3 { color: var(--brass); font: 800 2rem/1 var(--display); text-transform: uppercase; }
.milles p { color: var(--haze); margin-top: .4rem; }
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .packs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.packs li { padding: 12px 14px; border-radius: 12px; background: rgba(4, 9, 26, .55); border: 1px solid var(--swell); }
.packs b { display: block; font: 800 1.6rem/1 var(--display); color: var(--brass); font-variant-numeric: tabular-nums; white-space: nowrap; }
.packs span { font-size: .92rem; color: var(--moon); font-variant-numeric: tabular-nums; }
.shop-grid { display: grid; gap: clamp(32px, 5vw, 72px); margin-top: clamp(36px, 5vw, 64px); align-items: start; }
@media (min-width: 1020px) { .shop-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.shop-grid > * { min-width: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 6px; }
.tabs button { flex: none; background: none; border: 1px solid var(--swell); color: var(--haze); border-radius: 999px; min-height: 44px; padding: 0 18px; cursor: pointer; white-space: nowrap; transition: all .25s; }
.tabs button:hover { color: var(--moon); border-color: var(--haze); }
.tabs button[aria-selected="true"] { background: var(--moon); border-color: var(--moon); color: var(--abyss); font-weight: 600; }
.tab-note { color: var(--haze); font-size: .9rem; min-height: 1.5em; margin-top: 14px; }
.price-list { margin-top: 6px; border-top: 1px solid var(--swell); }
.price-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--swell); align-items: baseline; }
.price-list b { font-weight: 600; } .price-list span { color: var(--haze); font-size: .94rem; grid-column: 1; }
.price-list em { font-style: normal; grid-row: 1 / span 2; grid-column: 2; text-align: right; color: var(--brass); font-weight: 600; font-variant-numeric: tabular-nums; max-width: 15em; }
@media (max-width: 560px) { .price-list li { grid-template-columns: 1fr; } .price-list em { grid-row: auto; grid-column: 1; text-align: left; } }
.livery { border: 1px solid var(--swell); border-radius: 18px; padding: clamp(16px, 2.4vw, 28px); background: linear-gradient(180deg, rgba(20, 40, 76, .5), rgba(10, 22, 48, .3)); }
.boat-svg { width: 100%; height: auto; }
.livery figcaption { margin-top: 12px; display: grid; gap: 12px; }
.livery label { font-weight: 600; }
.sw-row { display: flex; align-items: center; gap: 14px; } .sw-row > span { width: 4.5em; color: var(--haze); font-size: .9rem; }
.sw { display: flex; flex-wrap: wrap; gap: 8px; }
.sw button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; background: none; padding: 5px; cursor: pointer; }
.sw button i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--c); }
.sw button[aria-pressed="true"] { border-color: var(--moon); }
input[type="text"], input[type="email"], select { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--swell); background: rgba(4, 9, 26, .7); color: var(--moon); }
input[type="text"]:focus, input[type="email"]:focus, select:focus { border-color: var(--phos); outline: none; box-shadow: 0 0 0 3px rgba(98, 226, 255, .22); }

/* ---------- formules ---------- */
#formules .seg { margin-top: 8px; }
.plans { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plans > li { position: relative; padding: 26px 24px 28px; border-radius: 18px; border: 1px solid var(--swell); background: rgba(10, 22, 48, .55); overflow: hidden; }
.plans > li::before { content: ""; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -40%), rgba(98, 226, 255, .14), transparent 60%); pointer-events: none; }
.plans > li:nth-child(2) { border-color: rgba(98, 226, 255, .55); }
.plans h3 { font: 800 2.1rem/1 var(--display); text-transform: uppercase; }
.plans .sub { color: var(--haze); font-size: .88rem; margin-top: 4px; }
.plans .price { margin: 18px 0 16px; font: 800 3.1rem/1 var(--display); color: var(--brass); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plans .price small { display: block; font: 500 .86rem/1.4 var(--body); color: var(--haze); margin-top: 6px; }
.plans ul li { padding: 8px 0; border-top: 1px solid rgba(20, 40, 76, .9); font-size: .96rem; }

/* ---------- entreprises ---------- */
.offers { display: grid; gap: 0 40px; margin-top: clamp(32px, 5vw, 60px); border-top: 1px solid var(--swell); }
@media (min-width: 860px) { .offers { grid-template-columns: 1fr 1fr; } .offers-3 { grid-template-columns: repeat(3, 1fr); } }
.offers li { padding: 22px 0; border-bottom: 1px solid var(--swell); }
.offers h3 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; align-items: baseline; }
.offers h3 em { font: 800 1.7rem/1 var(--display); font-style: normal; color: var(--brass); white-space: nowrap; font-variant-numeric: tabular-nums; }
.offers-3 h3 em { font-size: 1.25rem; }
.offers p { color: var(--haze); margin-top: 6px; max-width: 36em; }
#entreprises > .wrap > h3 { margin-top: clamp(40px, 6vw, 80px); font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.1 var(--display); text-transform: uppercase; }
#entreprises .offers-3 { margin-top: 1.2rem; }
#entreprises .btn { margin-top: 1.8rem; }

/* ---------- le cap ---------- */
.road { position: relative; margin-top: clamp(28px, 4vw, 56px); }
.road-line { width: 100%; height: 60px; overflow: visible; }
.road-line path { fill: none; stroke: var(--swell); stroke-width: 2; vector-effect: non-scaling-stroke; }
#roadDone { stroke: var(--phos); filter: drop-shadow(0 0 6px var(--phos)); }
.road-wp { display: grid; gap: 22px; margin-top: 18px; counter-reset: wp; }
@media (min-width: 960px) { .road-wp { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 959px) { .road-line { display: none; } .road-wp { border-left: 1px solid var(--swell); padding-left: 22px; } }
.road-wp li { counter-increment: wp; }
.road-wp li::before { content: counter(wp); display: block; font: 800 2.4rem/1 var(--display); color: var(--swell); transition: color .5s; }
.road-wp li.reached::before { color: var(--phos); }
.road-wp h3 { margin-top: 6px; }
.road-wp p { color: var(--haze); font-size: .95rem; margin-top: 6px; }
.road-wp .soon { color: var(--stbd); margin-left: 0; display: inline-block; margin-top: 8px; }

/* ---------- arrivée ---------- */
.join { background: radial-gradient(70% 90% at 80% 100%, rgba(98, 226, 255, .14), transparent 70%); }
#joinForm { display: grid; gap: 10px; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--swell); border-radius: 20px; background: rgba(10, 22, 48, .6); }
#joinForm label { font-weight: 600; margin-top: 8px; }
#joinForm .btn { margin-top: 16px; width: 100%; }
.form-msg { min-height: 1.5em; font-size: .95rem; margin-top: 6px; }
.form-note { font-size: .82rem; opacity: .7; margin-top: 2px; }
.form-msg.err { color: #ff9a90; } .form-msg.ok { color: var(--stbd); } .form-msg.info { color: var(--brass); }

.foot { border-top: 1px solid var(--swell); padding-block: 36px 56px; color: var(--haze); font-size: .88rem; }
.foot .wrap { display: grid; gap: 6px; } .foot strong { color: var(--moon); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit, .status i { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* la mer et le globe passent sous le rail de route */
.hero, .globe { margin-left: calc(var(--rail) * -1); }
.hero .wrap, .globe .wrap { padding-left: calc(var(--gut) + var(--rail)); max-width: calc(1320px + var(--rail)); }
.globe-in h2 { left: calc(var(--gut) + var(--rail)); }
.globe-stick::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 70% at 0% 100%, rgba(4, 9, 26, .92), transparent 62%), linear-gradient(rgba(4, 9, 26, .75), transparent 26%); }
.globe-in { z-index: 1; }
.globe.static .globe-stick::after { display: none; }

[hidden] { display: none !important; }
@media (max-width: 700px) {
  .repeaters { margin-top: calc(43svh + 32px); } /* juste sous la coque du bateau, qui reste visible */
  .versus { min-width: 0; }
  .versus thead { display: none; }
  .versus tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--swell); }
  .versus th, .versus td { display: block; width: auto; padding: 0; border: 0; }
  .versus tbody th { color: var(--moon); font-size: 1.1rem; margin-bottom: 8px; width: auto; }
  .versus td { padding-left: 16px; margin-top: 8px; border-left: 2px solid var(--port); }
  .versus td:last-child { border-left-color: var(--stbd); }
  .versus td::before { content: attr(data-l); display: block; font: 800 1.15rem/1.2 var(--display); text-transform: uppercase; color: var(--port); }
  .versus td:last-child::before { color: var(--stbd); }
}

.foot-link { margin-left: 18px; color: var(--haze); text-underline-offset: 3px; display: inline-block; padding: 12px 0; }
.foot-link:hover { color: var(--moon); }

/* ---------- promesse graphique (départ) et section Immersion ---------- */
.hero .claim { margin-top: 1.1rem; font: 700 clamp(1.25rem, 2.3vw, 2rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--phos); text-shadow: 0 0 26px rgba(98, 226, 255, .35); }
.hero .claim + .lede { margin-top: .9rem; }
.immers h2 { font-size: clamp(2.1rem, 4.7vw, 4.1rem); line-height: .94; max-width: 17em; }
.immers .lede { max-width: 38em; }
.proofs { display: grid; gap: 0 36px; margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--swell); }
@media (min-width: 720px) { .proofs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .proofs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.proofs li { padding: 22px 0; border-bottom: 1px solid var(--swell); }
.proofs h3 { font: 700 clamp(1.5rem, 2.2vw, 1.9rem)/1 var(--display); text-transform: uppercase; color: var(--phos); margin-bottom: 8px; }
.proofs p { color: var(--haze); }
.proofs h3 .soon { text-transform: none; letter-spacing: 0; }

/* ---------- film : le rendu du jeu, sous le texte du départ ---------- */
.filmband { position: relative; padding-top: clamp(18px, 2.6vw, 36px); }
.film-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #04070d; box-shadow: 0 0 0 1px rgba(159, 178, 205, .22), 0 40px 90px -50px rgba(98, 226, 255, .35); }
.film-frame img, .film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; transition: opacity .8s ease; }
.film-frame img { object-fit: cover; }
.film-frame iframe { opacity: 0; pointer-events: none; } /* le film ne se manipule pas : la page défile au travers */
.film.on .film-frame iframe { opacity: 1; }
.film.on .film-frame img { opacity: 0; }
.film-go { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.film figcaption { margin-top: 12px; color: var(--haze); font-size: .9rem; max-width: 46em; }
@media (max-width: 900px) { .film-frame { border-radius: 10px; } }
@media (prefers-reduced-motion: reduce) { .film-frame img, .film-frame iframe { transition: none; } }
