/* Nico on Rails — homepage */
:root {
  --navy: #0a1430;
  --navy-2: #111f45;
  --navy-3: #1a2b5c;
  --ink: #141b2e;
  --ink-soft: #4a5570;
  --ice: #eef3fa;
  --ice-2: #dfe7f3;
  --paper: #f7f9fc;
  --gold: #f2c14e;
  --gold-2: #ffd77a;
  --red: #d63a2f;
  --red-2: #ef4a3d;
  --blue: #4f8fe0;
  --line: rgba(20, 27, 46, .12);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); margin-bottom: .6em; }
h2 em, h1 em { font-style: italic; font-weight: 500; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
svg .fill { fill: currentColor; stroke: none; }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  color: var(--ink-soft);
}
.eyebrow.red { color: var(--red); }
.eyebrow.gold { color: var(--gold); }

/* ---------- Progress rail ---------- */
.rail-progress { position: fixed; left: 0; right: 0; top: var(--nav-h, 68px); height: 4px; z-index: 51; pointer-events: none; background: rgba(255,255,255,.06); transition: top .4s var(--ease); }
.rail-progress__fill { height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--red), var(--gold)); }
.rail-progress__train {
  position: absolute; top: -4.5px; left: 0; width: 36px; height: 13px;
  /* le train roule sur la ligne, juste devant la partie remplie */
  transform: translateX(min(calc(var(--p, 0) * 100vw), calc(100vw - 38px)));
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.45));
}
.rail-progress__train .body { fill: var(--gold); stroke: var(--navy); stroke-width: 1.4; stroke-linejoin: round; }
.rail-progress__train .stripe { fill: var(--red); }
.rail-progress__train .w { fill: var(--navy); }
.rail-progress__train .wheel { fill: var(--navy); stroke: var(--gold); stroke-width: .9; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  color: #fff;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s;
}
.nav.is-scrolled { background: rgba(10, 20, 48, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); padding-top: 10px; padding-bottom: 10px; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--mono); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; }
.nav__brand img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.nav__links { display: flex; gap: 28px; font-weight: 600; font-size: .95rem; }
.nav__links a { text-decoration: none; opacity: .8; position: relative; transition: opacity .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__social { display: flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22); transition: background .2s, transform .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); border-color: rgba(255,255,255,.5); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (max-width: 820px) { .nav__links { display: none; } }

/* Sélecteur de langue */
.lang { position: relative; }
.lang__btn { width: auto; padding: 0 10px; gap: 6px; display: inline-flex; align-items: center; color: inherit; background: none; cursor: pointer; font: 700 .74rem var(--mono); letter-spacing: .1em; }
.lang__btn svg { width: 18px; height: 18px; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; margin: 0; padding: 6px; list-style: none;
  background: rgba(10,20,48,.96); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .2s var(--ease);
}
.lang.is-open .lang__menu { opacity: 1; transform: none; pointer-events: auto; }
.lang__menu a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .92rem; color: rgba(255,255,255,.85); }
.lang__menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.lang__menu a[aria-current="true"]::after { content: "✓"; color: var(--gold); }
.footer__lang { color: rgba(255,255,255,.75); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 48px;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(79, 143, 224, .22), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(214, 58, 47, .18), transparent 60%),
    linear-gradient(180deg, #071029 0%, var(--navy) 55%, var(--navy-2) 100%);
}
.hero__snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__glow {
  position: absolute; z-index: -1; width: 60vmax; height: 60vmax; right: -15vmax; top: -10vmax; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(242,193,78,.18), rgba(79,143,224,.12), rgba(214,58,47,.14), rgba(242,193,78,.18));
  filter: blur(80px); animation: spin 28s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__inner { width: 100%; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.55fr .8fr; gap: 48px; align-items: center; }
.hero .eyebrow { color: rgba(255,255,255,.65); }
.hero__title { font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: .98; margin-bottom: .45em; }
.hero__title .line { display: block; }
/* Les titres traduits sont plus longs qu'en français : un cran plus petit pour rester sur 3 lignes */
html:not([lang="fr"]) .hero__title { font-size: clamp(2.3rem, 5.2vw, 4.7rem); }
.hero__title .accent { color: var(--gold); font-style: italic; font-weight: 500; }
.hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: rgba(255,255,255,.78); max-width: 38em; }
.hero__lead strong { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn--light { background: #fff; color: var(--navy); box-shadow: 0 10px 30px -10px rgba(255,255,255,.4); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(214,58,47,.8); }
.btn:hover { transform: translateY(-3px); }
.btn--red:hover { background: var(--red-2); }

.hero__badge { position: relative; justify-self: center; width: min(380px, 80vw); aspect-ratio: 1; }
.hero__badge picture { display: contents; }
.hero__badge img {
  position: absolute; inset: 0; margin: auto;
  width: 64%; height: auto; aspect-ratio: 1; object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)) drop-shadow(0 0 30px rgba(242,193,78,.15));
  animation: float 6s ease-in-out infinite;
}
.hero__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 30s linear infinite; }
.hero__ring text { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; fill: rgba(242,193,78,.85); }
@keyframes float { 0%, 100% { transform: translateY(6px) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }

/* Departure board */
.board {
  width: 100%; max-width: 1200px; margin: 56px auto 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.2));
  border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 16px 20px 20px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.board__head { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.board__clock { margin-left: auto; color: var(--gold); letter-spacing: .1em; }
.board__dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee07a; box-shadow: 0 0 10px #3ee07a; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.board__grid { display: grid; grid-template-columns: 1.1fr 1.2fr 1.4fr .9fr; gap: 18px; }
.board__cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.board__label { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.flap { display: flex; flex-wrap: nowrap; gap: 3px; font-family: var(--mono); font-weight: 700; font-size: clamp(.95rem, 1.9vw, 1.55rem); color: #fff; min-height: 1.9em; }
.flap .ch {
  position: relative; display: inline-grid; place-items: center; width: 1.12em; height: 1.6em;
  background: linear-gradient(180deg, #1c2847 0 50%, #16213d 50% 100%);
  border-radius: 4px; box-shadow: inset 0 -1px 0 rgba(255,255,255,.05), 0 2px 4px rgba(0,0,0,.3);
}
.flap .ch::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.55); }
.flap .ch.sp { background: transparent; box-shadow: none; width: .5em; }
.flap .ch.sp::after { display: none; }
.flap .ch.flip { animation: flip .14s linear; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); filter: brightness(.6); } 100% { transform: rotateX(0); } }
.flap--gold { color: var(--gold); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__badge { order: -1; width: 150px; justify-self: start; margin-bottom: -8px; }
  .board__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .flap { font-size: .82rem; } .board { padding: 14px; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--gold); color: var(--navy); overflow: hidden; padding: 16px 0; border-block: 1px solid rgba(0,0,0,.1); }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 50s linear infinite; }
.marquee__track span { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; font-style: italic; white-space: nowrap; }
.marquee__track i { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--navy); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { max-width: 1200px; margin: 0 auto; padding: 72px var(--gutter) 24px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px 56px; }
.stats__season { font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); border-top: 2px solid var(--ink); padding-top: 12px; margin-bottom: 18px; }
.stats__season.gold { color: #b8861c; }
.stats__row { display: flex; flex-wrap: wrap; gap: 28px 40px; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 5.5vw, 4.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Saison 1 ---------- */
.s1 { padding: 96px 0 120px; }
.s1__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.s1__photos { position: relative; height: clamp(480px, 44vw, 590px); }
.deck { position: absolute; inset: 0 0 48px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.card {
  --t: none; --o: 0; --z: 0;
  position: absolute; left: 50%; top: 50%; margin: 0;
  width: min(74%, 380px); aspect-ratio: 4 / 5.3;
  padding: 10px 10px 46px; background: #fff; border-radius: 18px;
  box-shadow: 0 30px 60px -25px rgba(10,20,48,.55), 0 2px 6px rgba(10,20,48,.08);
  transform: translate(-50%, -50%) var(--t); opacity: var(--o); z-index: var(--z);
  transition: transform .9s var(--ease), opacity .6s var(--ease);
  will-change: transform;
}
.card picture { display: contents; }
.card img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; background: var(--ice-2); }
.card figcaption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.05rem; color: var(--ink); }
.card[data-pos="0"] { --t: rotate(-2deg); --o: 1; --z: 5; }
.card[data-pos="1"] { --t: translate(11%, -3%) rotate(5deg) scale(.94); --o: 1; --z: 4; }
.card[data-pos="2"] { --t: translate(-12%, 2%) rotate(-8deg) scale(.89); --o: 1; --z: 3; }
.card[data-pos="3"] { --t: rotate(1deg) scale(.84); --o: 0; --z: 2; }
.card[data-pos="out"] { --t: translate(-130%, -6%) rotate(-16deg); --o: 0; --z: 6; }
.deck:hover .card[data-pos="0"] { --t: rotate(-1deg) translateY(-6px); }
.deck__next {
  position: absolute; right: 2%; top: 50%; z-index: 7; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--navy); color: #fff; box-shadow: 0 12px 24px -10px rgba(10,20,48,.6);
  transform: translateY(-50%); transition: transform .3s var(--ease), background .3s;
}
.deck__next:hover { transform: translateY(-50%) translateX(3px); background: var(--red); }
.deck__next svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.deck__dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 8px; }
.deck__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: var(--ice-2); cursor: pointer; transition: width .4s var(--ease), background .3s; }
.deck__dots button[aria-selected="true"] { width: 28px; background: var(--red); }
.stamp {
  position: absolute; left: 2%; top: 0; width: 136px; height: 136px; border-radius: 50%; pointer-events: none;
  display: grid; place-items: center; z-index: 8;
  background: radial-gradient(circle at 30% 25%, var(--navy-3), var(--navy) 70%);
  box-shadow: 0 18px 40px -12px rgba(10,20,48,.6), 0 0 0 4px var(--paper), 0 0 0 5px rgba(242,193,78,.5);
  transform: rotate(-8deg);
}
.stamp__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.stamp__ring text { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .16em; fill: var(--gold); }
.stamp__core {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-content: center; text-align: center; line-height: 1;
  border: 1px solid rgba(242,193,78,.35); color: #fff;
}
.stamp__core small { font-family: var(--mono); font-size: .56rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.stamp__core b { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 2.6rem; color: var(--gold); margin-top: 2px; }
@media (max-width: 860px) { .stamp { width: 104px; height: 104px; left: 0; top: 0; } .stamp__core { width: 62px; height: 62px; } .stamp__core b { font-size: 2.1rem; } }
.s1__text h2 em { color: var(--red); }
.s1__text > p { color: var(--ink-soft); font-size: 1.08rem; }
.mini-route { list-style: none; padding: 0; margin: 24px 0 28px; display: flex; flex-wrap: wrap; gap: 8px 0; }
.mini-route li { font-size: .82rem; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.mini-route li:not(:last-child) { margin-right: 22px; position: relative; }
.mini-route li:not(:last-child)::after { content: ""; position: absolute; right: -20px; top: 50%; width: 18px; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 4px, transparent 4px 7px); }
.video-card {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius);
  background: var(--navy); color: #fff; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(10,20,48,.7); }
.video-card small { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.video-card strong { font-family: var(--serif); font-weight: 500; font-size: 1.08rem; line-height: 1.3; display: block; }
.video-card__play { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(214,58,47,.6); animation: pulse 2.2s infinite; }
.video-card__play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.video-card__arrow { margin-left: auto; font-size: 1.4rem; transition: transform .3s var(--ease); }
.video-card:hover .video-card__arrow { transform: translateX(6px); }
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(214,58,47,0); } 100% { box-shadow: 0 0 0 0 rgba(214,58,47,0); } }
@media (max-width: 860px) {
  .s1__grid { grid-template-columns: 1fr; }
  .s1__photos { height: 470px; max-width: 460px; width: 100%; margin: 0 auto; }
}

/* ---------- Map ---------- */
.mapsec { background: var(--navy); color: #fff; padding: 100px 0 90px; position: relative; overflow: hidden; }
.mapsec h2 em { color: var(--gold); }
.mapsec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.mapsec__head h2 { margin-bottom: 0; }
.tabs { display: inline-flex; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.tabs button {
  font: 600 .92rem var(--sans); color: rgba(255,255,255,.7); background: none; border: 0; padding: 10px 16px; border-radius: 10px; cursor: pointer;
  transition: background .25s, color .25s;
}
.tabs button[aria-selected="true"] { background: var(--gold); color: var(--navy); }
.tabs button:hover:not([aria-selected="true"]) { color: #fff; }
.mapbox { position: relative; border-radius: 22px; overflow: hidden; background: #0d1a3d; border: 1px solid rgba(255,255,255,.08); aspect-ratio: 1600 / 820; }
.mapbox__loading { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: .8rem; color: rgba(255,255,255,.4); }
.map { width: 100%; height: 100%; display: block; }
.map .grat { fill: none; stroke: rgba(255,255,255,.04); stroke-width: 1; }
.map .land .c { fill: #1b2a55; stroke: none; transition: fill .6s var(--ease); }
.map .borders { fill: none; stroke: rgba(255,255,255,.12); stroke-width: .8; }
.mapbox[data-show="s1"] .in-s1, .mapbox[data-show="all"] .in-s1 { fill: #24386e; }
.mapbox[data-show="s2"] .in-s2, .mapbox[data-show="all"] .in-s2 { fill: #263c76; }
.map .sea-labels text { font: italic 500 15px var(--serif); fill: rgba(140,180,240,.45); text-anchor: middle; }
.map .country-labels text { font: 700 12px var(--mono); letter-spacing: .3em; fill: rgba(255,255,255,.22); text-anchor: middle; }
.map .seg { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); }
.map .route-s1 .seg { stroke: var(--blue); }
.map .route-s2 .seg.m-t { stroke: var(--red-2); }
.map .route-s2 .seg.m-c { stroke: var(--gold); }
.map .route-s2 .seg.m-f { stroke: #8fd0ff; }
.map .route { opacity: 0; transition: opacity .5s; pointer-events: none; }
.map .route.is-on { opacity: 1; }
.map .route.is-on .seg { animation: draw .55s var(--ease) forwards; animation-delay: calc(var(--i) * var(--step, 120ms)); }
.map .route.is-on .seg.m-f, .map .route.is-on .seg.m-c, .map .route.is-on .seg.m-a { animation-name: drawDash; }
.map .route-s1 .seg.m-a { stroke-width: 2; opacity: .75; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drawDash { 0% { stroke-dashoffset: var(--len); } 99% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; stroke-dasharray: 7 7; } }
.map .city { opacity: 0; }
.map .route.is-on .city { animation: pop .4s var(--ease) forwards; animation-delay: calc(var(--i) * var(--step, 120ms) + 200ms); }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }
.map .city circle { fill: #0d1a3d; stroke: #fff; stroke-width: 2.4; }
.map .city.major circle { fill: var(--gold); stroke: #0d1a3d; stroke-width: 2.4; }
.map .route-s1 .city.major circle { fill: var(--blue); }
.map .city text { font: 600 14px var(--sans); fill: rgba(255,255,255,.85); paint-order: stroke; stroke: #0d1a3d; stroke-width: 4px; stroke-linejoin: round; }
.map .city.major text { font-size: 17px; font-weight: 700; fill: #fff; }
.mapbox[data-show="all"] .city:not(.major) text { display: none; }
.mapbox[data-show="all"] .city:not(.major) circle { r: 3.5px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 16px; font-size: .88rem; color: rgba(255,255,255,.7); align-items: center; }
.legend i { display: inline-block; width: 28px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 8px; background: var(--sw); }
/* pastilles : traits pleins (train) ou pointillés (route, ferry, avion), couleur selon la saison affichée */
.legend { --c-train: var(--red-2); --c-road: var(--gold); }
.mapbox[data-show="s1"] ~ .legend { --c-train: var(--blue); --c-road: var(--blue); }
.legend .l-train { --sw: var(--c-train); }
.legend .l-car { --sw: repeating-linear-gradient(90deg, var(--c-road) 0 5px, transparent 5px 9px); }
.legend .l-ferry { --sw: repeating-linear-gradient(90deg, #8fd0ff 0 5px, transparent 5px 9px); }
.legend .l-plane { --sw: repeating-linear-gradient(90deg, var(--blue) 0 4px, transparent 4px 8px); height: 2px; }
/* vue « les deux » : chaque pastille montre la couleur de la saison 1 (bleu) puis de la saison 2 */
.mapbox[data-show="all"] ~ .legend .l-train { --sw: linear-gradient(90deg, var(--blue) 50%, var(--red-2) 50%); }
.mapbox[data-show="all"] ~ .legend .l-car { --sw: repeating-linear-gradient(90deg, var(--blue) 0 5px, transparent 5px 9px, var(--gold) 9px 14px, transparent 14px 18px); }
.legend__note { margin-left: auto; font-size: .78rem; color: rgba(255,255,255,.4); }
/* légende selon la carte affichée : pas de ferry en saison 1, pas d'avion en saison 2 */
.mapbox[data-show="s1"] ~ .legend .lg-ferry, .mapbox[data-show="s2"] ~ .legend .lg-plane { display: none; }
@media (max-width: 700px) {
  .mapbox { aspect-ratio: auto; height: 420px; }
  .map { width: auto; height: 100%; }
  .mapbox { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .legend__note { margin-left: 0; width: 100%; }
}

/* ---------- Saison 2 ---------- */
.s2 { padding: 110px 0 60px; background: var(--paper); }
.s2__title { font-size: clamp(2.4rem, 5.8vw, 4.8rem); }
.s2__title em { color: var(--red); }
.s2__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 46em; }
.s2__lead strong { color: var(--ink); }
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; counter-reset: act; }
.act {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px;
  overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.act::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c); transform-origin: left; transform: scaleX(.25); transition: transform .5s var(--ease); }
.act:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(10,20,48,.35); }
.act:hover::before { transform: scaleX(1); }
.act__n { font-family: var(--serif); font-size: 3.4rem; font-weight: 700; line-height: 1; color: var(--c); opacity: .9; }
.act__dates { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; color: var(--ink-soft); margin: 10px 0 8px; }
.act h3 { font-size: 1.35rem; margin-bottom: 10px; }
.act p:not(.act__dates) { font-size: .95rem; color: var(--ink-soft); }
.act__flags { font-size: 1.3rem; letter-spacing: .2em; }
.act--dark { background: var(--navy); color: #fff; border-color: transparent; }
.act--dark p:not(.act__dates) { color: rgba(255,255,255,.72); }
.act--dark .act__dates { color: var(--gold); }
@media (max-width: 980px) {
  .acts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(270px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .acts::-webkit-scrollbar { display: none; }
  .act { scroll-snap-align: start; }
}

/* Timeline */
.moments { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); margin-top: 110px; }
.moments__head { position: sticky; top: 110px; align-self: start; }
.moments__head h2 em { color: var(--red); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 36px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 4px; border-radius: 4px; background: repeating-linear-gradient(180deg, var(--ice-2) 0 10px, transparent 10px 16px); }
.timeline::after { content: ""; position: absolute; left: 9px; top: 6px; width: 4px; border-radius: 4px; height: calc((100% - 12px) * var(--tl, 0)); background: linear-gradient(180deg, var(--red), var(--gold)); }
.timeline li { position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline li::before { content: ""; position: absolute; left: -34px; top: 24px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ice-2); z-index: 1; transition: border-color .3s, background .3s, transform .3s; }
.timeline li.is-passed::before { border-color: var(--red); background: #fff; }
.timeline li.is-key::before { width: 20px; height: 20px; left: -36px; top: 22px; }
.timeline li.is-key.is-passed::before { background: var(--gold); border-color: var(--navy); }
.timeline time { font-family: var(--mono); font-weight: 700; font-size: .85rem; color: var(--red); padding-top: 3px; }
.timeline h4 { font-family: var(--sans); font-size: 1.08rem; font-weight: 700; margin-bottom: 2px; }
.timeline p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.timeline li.is-key h4 { font-family: var(--serif); font-size: 1.3rem; }
@media (max-width: 860px) { .moments { grid-template-columns: 1fr; margin-top: 80px; } .moments__head { position: static; } .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Why ---------- */
.why { padding: 90px 0 110px; background: var(--ice); }
.why h2 em { color: var(--red); }
.why__grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 16px; margin-top: 16px; }
.why__card { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); transition: transform .4s var(--ease); }
.why__card:hover { transform: translateY(-4px); }
.why__card h3 { font-size: 1.4rem; margin: 14px 0 10px; }
.why__card p { color: var(--ink-soft); margin: 0; }
.why__icon { font-size: 1.8rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--ice); }
.why__card--dark { background: var(--navy); color: #fff; border-color: transparent; background-image: radial-gradient(400px 200px at 100% 0, rgba(79,143,224,.25), transparent); }
.why__card--dark h3 { color: var(--gold); }
.why__card--dark p { color: rgba(255,255,255,.78); }
.why__card--dark .why__icon { background: rgba(255,255,255,.08); }
@media (max-width: 860px) { .why__grid { grid-template-columns: 1fr; } }

/* ---------- Follow ---------- */
.follow { position: relative; overflow: hidden; padding: 110px 0 100px; background: linear-gradient(180deg, var(--navy) 0%, #071029 100%); color: #fff; }
.follow h2 em { color: var(--gold); }
.follow__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; perspective: 1200px; }
.social {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "logo name" "logo handle" "desc desc" "cta cta"; column-gap: 18px;
  padding: 32px; border-radius: 24px; text-decoration: none; color: #fff; min-height: 300px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); transform-style: preserve-3d;
}
.social::before { content: ""; position: absolute; inset: 0; z-index: -1; transition: transform .8s var(--ease); }
.social::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.22), transparent 45%); opacity: 0; transition: opacity .3s; }
.social:hover::after { opacity: 1; }
.social:hover::before { transform: scale(1.06); }
.social--ig::before { background: radial-gradient(circle at 20% 110%, #fdd56a 0%, #f77737 25%, #e1306c 50%, #a03cc8 75%, #5b51d8 100%); }
.social--yt::before { background: radial-gradient(circle at 80% -10%, #ff5a4e 0%, #e0251b 45%, #8a0f0a 100%); }
.social:hover { box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.social__logo { grid-area: logo; width: 64px; height: 64px; fill: none; stroke: #fff; stroke-width: 1.6; align-self: center; }
.social__name { grid-area: name; font-family: var(--mono); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; align-self: end; }
.social__handle { grid-area: handle; font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; line-height: 1.1; }
.social__desc { grid-area: desc; margin-top: 24px; color: rgba(255,255,255,.9); max-width: 32em; }
.social__cta { grid-area: cta; align-self: end; justify-self: start; margin-top: 18px; padding: 12px 20px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; transition: transform .3s var(--ease); }
.social__cta span { display: inline-block; transition: transform .3s var(--ease); }
.social:hover .social__cta span { transform: translateX(5px); }
.press { margin-top: 40px; color: rgba(255,255,255,.7); max-width: 46em; }
.press a { color: var(--gold); font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; }
@media (max-width: 760px) { .follow__grid { grid-template-columns: 1fr; } .social { min-height: 0; padding: 26px; } .social__logo { width: 48px; height: 48px; } }

/* ---------- Footer ---------- */
.footer { background: #050b1d; color: rgba(255,255,255,.6); padding: 28px 0; font-size: .9rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .nav__brand { color: #fff; }
.footer p { margin: 0; }
.footer .icon-btn { color: #fff; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero__title .line { display: block; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* ---------- Japonais et chinois ---------- */
html[lang="ja"] { --serif: "Fraunces", "Noto Serif JP", "Hiragino Mincho ProN", serif; --sans: "Figtree", "Noto Sans JP", "Hiragino Sans", sans-serif; }
html[lang="zh-Hans"] { --serif: "Fraunces", "Noto Serif SC", "Songti SC", serif; --sans: "Figtree", "Noto Sans SC", "PingFang SC", sans-serif; }
html:is([lang="ja"], [lang="zh-Hans"]) body { line-height: 1.8; line-break: strict; }
html:is([lang="ja"], [lang="zh-Hans"]) :is(h1, h2, h3, h4) { line-height: 1.3; letter-spacing: .02em; }
html:is([lang="ja"], [lang="zh-Hans"]) .hero__title { font-size: clamp(2.2rem, 5vw, 4.3rem); line-height: 1.2; }
/* les idéogrammes n'ont pas d'italique : on garde la couleur d'accent sans pencher le texte */
html:is([lang="ja"], [lang="zh-Hans"]) :is(em, .hero__title .accent, .card figcaption, .marquee__track span, .video-card strong) { font-style: normal; }
html:is([lang="ja"], [lang="zh-Hans"]) .eyebrow { letter-spacing: .1em; }
html:is([lang="ja"], [lang="zh-Hans"]) .stats__season, html:is([lang="ja"], [lang="zh-Hans"]) .board__label { letter-spacing: .08em; }
.map[data-cjk] .country-labels text { letter-spacing: .15em; font-family: var(--sans); }
.map[data-cjk] .sea-labels text { font-style: normal; font-family: var(--sans); }
.map[data-cjk] .city text { font-family: var(--sans); }
/* pied de page : liens vers les autres langues */
.footer__langs { margin: 14px auto 0; font-size: .85rem; color: rgba(255,255,255,.45); }
.footer__langs a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer__langs a:hover { color: #fff; text-decoration: underline; }
