:root {
  --ground: #FBF5F2;
  --blush: #F6E4E4;
  --petal: #E9C4CB;
  --line: #EFDFE0;
  --ink: #3F2A30;
  --ink-soft: #6E555B;
  --accent: #A8485F;
  --accent-dark: #7E3346;
  --sage: #5E7356;
  --sage-ink: #4A5E43;
  --sage-wash: #F1F4EE;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0);
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -999px; top: 8px; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; background: #2E1F24 url("assets/hero-poster.jpg?v=1") center 30% / cover no-repeat; border-radius: 32px; padding: clamp(56px, 9vw, 96px) 24px clamp(48px, 8vw, 88px); text-align: center; }
.hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
/* A warm veil keeps the names and countdowns readable over any frame of the video. */
.hero__veil { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse at 50% 42%, rgba(46, 26, 32, .38), rgba(46, 26, 32, .66) 75%),
  linear-gradient(rgba(63, 42, 48, .30), rgba(63, 42, 48, .55)); }
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero__kicker { margin: 0; font: italic 500 22px/1.2 var(--serif); color: #F3DADD; }
.hero__names { margin: 0; font: 400 clamp(60px, 11vw, 124px)/1.05 var(--script); color: #FFF8F6; text-shadow: 0 2px 24px rgba(30, 15, 20, .45); }
.hero__rule { width: 120px; height: 1px; background: #D9B48B; }
.hero__lede { margin: 0; max-width: 40ch; text-wrap: balance; font: italic 500 clamp(20px, 2.6vw, 26px)/1.35 var(--serif); color: #FFF3F1; text-shadow: 0 1px 14px rgba(30, 15, 20, .5); }

.hero__follow { margin: -4px 0 0; font: 500 15px/1.4 var(--sans); letter-spacing: .04em; color: #F3DADD; text-shadow: 0 1px 12px rgba(30, 15, 20, .5); }

/* Sound toggle */
/* Top-right corner: language switch and sound, in the same frosted glass */
.corner { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 20; display: flex; align-items: center; gap: 8px; }
.lang { display: flex; padding: 3px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px;
  background: rgba(46, 26, 32, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lang__btn { min-width: 40px; min-height: 36px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; color: #FFF8F6;
  font: 500 13px/1 var(--sans); letter-spacing: .1em; cursor: pointer; transition: background .35s, color .35s; }
.lang__btn:hover { background: rgba(255, 255, 255, .12); }
.lang__btn[aria-pressed="true"] { background: #FFF8F6; color: var(--accent-dark); cursor: default; }
.lang__btn:focus-visible { outline: 2px solid #FFF8F6; outline-offset: 2px; }

.sound { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; background: rgba(46, 26, 32, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #FFF8F6; font: 500 14px var(--sans); cursor: pointer; }
.sound:hover { background: rgba(46, 26, 32, .62); }
.sound__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sound__speaker { fill: currentColor; }
.sound[aria-pressed="false"] .sound__waves, .sound[aria-pressed="true"] .sound__off { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .sound[aria-pressed="false"] { animation: nudge 2.8s ease-in-out 1.5s infinite; }
  @keyframes nudge { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(255, 248, 246, .45); } 85% { box-shadow: 0 0 0 8px rgba(255, 248, 246, 0); } }
}
@media (max-width: 480px) { .corner { right: 10px; gap: 6px; } .sound { padding: 0 12px 0 10px; } .sound__label { font-size: 13px; } }
.hero__dates { margin: 22px 0 0; width: 100%; max-width: 820px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 72px; }

/* Countdowns */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.countdown {
  --card: rgba(52, 30, 37, .52);
  position: relative; flex: 1 1 300px; max-width: 380px; padding: 26px 20px 22px; border-radius: 28px;
  background: var(--card);
  -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 16px 40px rgba(20, 10, 14, .30), inset 0 1px 0 rgba(255, 255, 255, .08);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
/* The shimmering border lives on its own layer so the see-through card doesn't pick up its colours. */
.countdown::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--spin), var(--petal) 0deg, #E2BE93 40deg, var(--accent) 95deg, #E2BE93 150deg, var(--petal) 195deg, var(--petal) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.countdown p { margin: 0; }
.countdown__date { font: 600 30px/1.1 var(--serif); color: #FFF8F6; }
.countdown__what { font-size: 14px; color: #E6D2D5; }
.countdown__clock { margin: 16px 0 8px; }
.countdown__digits { display: flex; align-items: flex-start; justify-content: center; gap: 6px; }
.countdown__unit { min-width: 58px; display: flex; flex-direction: column; align-items: center; }
.countdown__num { display: flex; font: 500 46px/1.1 var(--serif); color: #F6C9D2; font-variant-numeric: lining-nums tabular-nums; }
.countdown__unit--s .countdown__num { color: #E9A3B4; }
.countdown__label { margin-top: 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #D8C2C6; }
.countdown__dot { width: 5px; height: 5px; margin-top: 22px; border-radius: 50%; background: #E2BE93; opacity: .85; }
.countdown__foot { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .16); font: italic 500 18px/1.3 var(--serif); color: #E6D2D5; }
.countdown__heart { flex: 0 0 15px; width: 15px; height: 15px; fill: #EFA2B3; }
.countdown__message { margin: 14px 0 8px !important; font: 400 36px/1.15 var(--script); color: #F6C9D2; }
.countdown.is-today { --card: rgba(60, 32, 41, .60); }
.countdown.is-past { --card: rgba(46, 28, 34, .42); }
.countdown.is-past .countdown__message { color: #C3D3B8; }

/* Focus: the next day stands out; hovering a card brings that one forward instead */
.countdown.is-focus,
.hero__dates:has(.countdown:hover) .countdown:hover { z-index: 1; scale: 1.05; opacity: 1; box-shadow: 0 22px 54px rgba(20, 10, 14, .42), inset 0 1px 0 rgba(255, 255, 255, .10); }
.hero__dates:has(.is-focus) .countdown:not(.is-focus),
.hero__dates:has(.countdown:hover) .countdown:not(:hover) { scale: .93; opacity: .82; box-shadow: 0 10px 26px rgba(20, 10, 14, .22); }

/* Rolling digits */
.digit { position: relative; display: inline-block; overflow: hidden; }
.digit__in { display: inline-block; }
.digit__out { position: absolute; left: 0; top: 0; visibility: hidden; }

/* Drifting petals */
.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; display: none; }
.petals span { position: absolute; top: -24px; left: var(--x); width: var(--s); height: var(--s); border-radius: 80% 0 80% 0; background: var(--c, #EBC3CB); opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .countdown { animation: rise .9s ease-out both; }
  .countdown + .countdown { animation-delay: .15s; }
  .countdown::before { animation: spin 9s linear infinite; }
  .countdown + .countdown::before { animation-delay: -4.5s; }
  .countdown { transition: scale .6s cubic-bezier(.2, .8, .2, 1), opacity .6s ease, box-shadow .6s ease; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
  @keyframes spin { to { --spin: 360deg; } }

  .digit.is-rolling .digit__out { visibility: visible; animation: roll-out .55s cubic-bezier(.4, 0, .2, 1) forwards; }
  .digit.is-rolling .digit__in { animation: roll-in .55s cubic-bezier(.2, .8, .25, 1.15) both; }
  @keyframes roll-out { to { transform: translateY(-70%); opacity: 0; filter: blur(2px); } }
  @keyframes roll-in { from { transform: translateY(70%); opacity: 0; filter: blur(2px); } }

  .countdown__heart.is-beating { animation: beat .9s ease-out; }
  @keyframes beat { 0% { transform: scale(1); } 14% { transform: scale(1.28); } 28% { transform: scale(1); } 42% { transform: scale(1.16); } 70% { transform: scale(1); } }

  .countdown.is-today .countdown__message { animation: glow 3.2s ease-in-out infinite; }
  @keyframes glow { 50% { opacity: .65; } }

  .petals { display: block; }
  .petals span { animation: fall var(--t) linear var(--d) infinite; }
  @keyframes fall {
    0% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
    10% { opacity: .85; }
    50% { transform: translate(var(--drift), 420px) rotate(260deg); }
    85% { opacity: .6; }
    100% { opacity: 0; transform: translate(0, 860px) rotate(540deg); }
  }
}
@media (max-width: 480px) {
  .countdown { padding: 24px 14px 20px; }
  .countdown__digits { gap: 3px; }
  .countdown__unit { min-width: 50px; }
  .countdown__num { font-size: 38px; }
  .countdown__dot { margin-top: 18px; }
}

/* ------------------------------------------
   Le chemin vers le oui
   ------------------------------------------ */
:root {
  /* Sky colours are set live by journey.js from the hour on screen. */
  --sky-top: #8DBBE3; --sky-mid: #CFE3F0; --sky-bot: #F6EEE6;
  --sky-ink: #3F2A30; --sky-ink-soft: #6E555B;
  --far: #9A8FA6; --lake: #A9C3D8; --near: #5E5468; --shimmer: rgba(255, 255, 255, .5);
  --stars: 0; --sun-x: 20vw; --sun-y: 40vh; --sun-o: 1; --moon-x: 80vw; --moon-y: 30vh; --moon-o: 0;
  --glass: rgba(255, 252, 250, .82); --glass-line: rgba(255, 255, 255, .7);
}
body { background: var(--sky-mid); overflow-x: hidden; }

/* Sky */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: linear-gradient(var(--sky-top), var(--sky-mid) 55%, var(--sky-bot)); }
.sky__stars { position: absolute; inset: 0 0 30% 0; opacity: var(--stars); }
.sky__stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; }
.sky__sun, .sky__moon { position: absolute; left: 0; top: 0; border-radius: 50%; translate: calc(var(--x) - 50%) calc(var(--y) - 50%); }
.sky__sun { --x: var(--sun-x); --y: var(--sun-y); width: 90px; height: 90px; opacity: var(--sun-o);
  background: radial-gradient(circle, #FFF6DC 0 34%, rgba(255, 214, 150, .55) 36%, rgba(255, 196, 140, 0) 70%); }
.sky__moon { --x: var(--moon-x); --y: var(--moon-y); width: 46px; height: 46px; opacity: var(--moon-o);
  background: radial-gradient(circle at 38% 38%, #FFFBEF, #E9E2CF 60%); box-shadow: 0 0 40px rgba(255, 250, 230, .35); }
.sky__land { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(120px, 24vh, 220px); }
.land__far { fill: var(--far); }
.land__lake { fill: var(--lake); }
.land__shimmer path { stroke: var(--shimmer); stroke-width: 2; stroke-linecap: round; fill: none; }
.land__near { fill: var(--near); }

/* Intro */
.intro { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: center;
  padding: 88px 20px 56px; text-align: center; background: #2E1F24 url("assets/hero-poster.jpg?v=1") center 30% / cover no-repeat; }
.intro__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.intro__inner { width: 100%; max-width: 820px; }
/* The video melts into the real sky behind it where Chapitre I begins. */
.intro { background: none; overflow: clip; }
.intro__video, .intro .hero__veil {
  -webkit-mask-image: linear-gradient(#000 calc(100% - 160px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 160px), transparent); }
.intro__video { background: #2E1F24 url("assets/hero-poster.jpg?v=1") center 30% / cover no-repeat; }
.intro__mono { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 18px; z-index: 3; font: 34px/1 var(--script); color: #FFF8F6; text-decoration: none;
  text-shadow: 0 1px 12px rgba(30, 15, 20, .5); }
.intro__mono:hover { color: #fff; }
/* Hero type: an elegant serif that reads at a glance, with a gold "&". */
.intro .hero__names { font: italic 600 clamp(56px, 9.5vw, 116px)/1.02 var(--serif); letter-spacing: .005em; }
.hero__amp { font: italic 500 .9em/1 var(--serif); color: #E2BE93; padding: 0 .04em; }
.intro__mono { font: italic 600 26px/1 var(--serif) !important; letter-spacing: .04em; }
.intro .countdown__date { font: italic 600 32px/1.1 var(--serif) !important; }

.intro__rings { width: 42px; height: 42px; margin-bottom: -6px; filter: drop-shadow(0 2px 8px rgba(30, 15, 20, .4)); }

/* The two stations of the voyage, linked by a dotted road */
.hero__dates { position: relative; align-items: stretch; }
.hero__dates::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; border-top: 2px dashed rgba(255, 248, 246, .5); }
.station { position: relative; flex: 1 1 300px; max-width: 380px; display: flex; padding-top: 27px; }
.station .countdown { flex: 1 1 auto; max-width: none; padding-top: 38px; }
.station__medal { position: absolute; top: 0; left: 50%; translate: -50% 0; z-index: 2; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #FFF8F6; border: 2px solid #E2BE93; color: var(--accent); box-shadow: 0 8px 22px rgba(20, 10, 14, .35); transition: background .5s, color .5s, scale .5s; }
.station__medal svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.station:has(.is-focus) .station__medal { background: var(--accent); border-color: #FFF8F6; color: #fff; scale: 1.08; }
.station:has(.is-past) .station__medal { background: #C3D3B8; border-color: #FFF8F6; color: #3E5237; }
.station__rings { position: absolute; left: 50%; top: 27px; translate: -50% -50%; z-index: 2; width: 36px; height: 36px; filter: drop-shadow(0 2px 6px rgba(20, 10, 14, .45)); }
.station__rings svg { width: 100%; height: 100%; }
.countdown__kicker { margin: 0 0 2px !important; font: 500 11px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #E2BE93; }
.countdown__date { font: 400 38px/1.15 var(--script) !important; }

.start { gap: 12px; padding: 0 24px 0 18px; position: sticky; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 3; }
.start__post { width: 24px; height: 24px; }

.start { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: #FFF8F6; color: var(--accent-dark); font: 500 16px var(--sans); letter-spacing: .02em; cursor: pointer;
  box-shadow: 0 12px 34px rgba(20, 10, 14, .35); }
.start svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.start:hover { background: #fff; }

/* Journey */
.voyage { position: relative; padding: 0 16px; }
.chapter { position: relative; max-width: 1000px; margin: 0 auto; padding: 22vh 0 10vh; }
.chapter__path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.path__base { fill: none; stroke: var(--sky-ink); stroke-opacity: .22; stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.path__drawn { fill: none; stroke-width: 4; stroke-linecap: round; }
.rings { position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; z-index: 1; pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(30, 15, 20, .3)); }

.chapter__head { position: relative; z-index: 2; text-align: center; color: var(--sky-ink); margin-bottom: 14vh; }
.chapter__num { margin: 0; font: 500 14px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--sky-ink-soft); }
.chapter__title { margin: 6px 0 0; font: 400 clamp(52px, 9vw, 96px)/1.1 var(--script); }
.chapter__date { margin: 6px 0 0; font: italic 500 clamp(20px, 2.6vw, 26px)/1.3 var(--serif); color: var(--sky-ink-soft); }
.chapter__countdown { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 7px 16px 7px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--ink-soft); font-size: 14px; line-height: 1.3; text-align: left;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 8px 22px rgba(30, 15, 20, .10); }
.chapter__countdown:empty { display: none; }
.chapter__countdown svg { flex: 0 0 16px; width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chapter__countdown b { font: italic 600 17px/1 var(--serif); color: var(--accent); }
.chapter__countdown.is-today { border-color: var(--accent); }
.chapter__countdown.is-past b { color: var(--sage); }
.chapter__anchor { display: block; width: 1px; height: 1px; margin: 28px auto 0; }

.stop { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 84px 1fr; align-items: center; column-gap: 20px; margin: 0 0 16vh; }
.stop__node { grid-column: 2; grid-row: 1; justify-self: center; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass); border: 2px solid var(--glass-line); color: var(--accent); box-shadow: 0 8px 24px rgba(30, 15, 20, .16);
  transition: background .5s, color .5s, box-shadow .5s, scale .5s; }
.stop__node svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.stop--a .stop__node { translate: -46px 0; }
.stop--b .stop__node { translate: 46px 0; }
.stop__card { grid-row: 1; padding: 22px 24px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 44px rgba(30, 15, 20, .14);
  display: flex; flex-direction: column; gap: 6px; }
.stop--a .stop__card { grid-column: 3; }
.stop--b .stop__card { grid-column: 1; }
.stop__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.stop__time { font: italic 600 26px/1.2 var(--serif); color: var(--accent); }
.stop__chip { padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, .7); color: var(--ink-soft); border: 1px solid #E6D3D5; }
.stop__title { margin: 0; font: 600 28px/1.15 var(--serif); color: var(--ink); }
.stop__place { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-soft); font-size: 15px; }
.stop__place svg { flex: 0 0 18px; margin-top: 3px; }
.stop__place a { margin-left: auto; white-space: nowrap; }
.stop__note { padding: 9px 13px; border-radius: 12px; background: rgba(241, 244, 238, .85); color: var(--sage-ink); font-size: 15px; }
.stop__note strong { font-weight: 500; }
.stop--key .stop__title { font-size: 32px; }
.stop--key .stop__node { width: 84px; height: 84px; }

.stop.is-done .stop__node { background: var(--sage); border-color: var(--sage); color: #fff; }
.stop.is-done .stop__chip { background: #EEF2EA; color: var(--sage-ink); border-color: #D5DFCD; }
.stop.is-now .stop__node { background: var(--accent); border-color: #fff; color: #fff; scale: 1.12; box-shadow: 0 0 0 8px rgba(168, 72, 95, .25), 0 10px 30px rgba(168, 72, 95, .4); }
.stop.is-now .stop__card { border: 2px solid var(--accent); }
.stop.is-now .stop__chip { background: var(--accent); color: #fff; border-color: var(--accent); }
.stop.is-next .stop__chip { color: var(--accent); border-color: var(--accent); }

.chapter__close { position: relative; z-index: 2; margin: 0 auto; max-width: 30ch; text-align: center; color: var(--sky-ink);
  font: italic 500 clamp(24px, 3.4vw, 34px)/1.35 var(--serif); text-shadow: 0 1px 18px rgba(255, 255, 255, .25); }

/* Route moments between two places */
.route { position: relative; z-index: 2; max-width: 360px; margin: 0 auto 16vh; padding: 18px 20px 16px; border-radius: 22px; text-align: center;
  background: rgba(255, 252, 250, .66); border: 1px dashed rgba(168, 72, 95, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.route__label { margin: 0; font: 500 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.route__to { margin: 2px 0 8px; font: italic 600 22px/1.25 var(--serif); color: var(--ink); }
.route svg { display: block; width: 100%; height: 86px; }
.route__line { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-dasharray: 3 7; stroke-linecap: round; }
.route__pin { fill: var(--accent); }
.route__pin--from { fill: #B9A3A8; }
.route__car { fill: var(--accent-dark); }
.route a { font-size: 15px; }

/* Between the two chapters */
.interlude { position: relative; z-index: 2; min-height: 70vh; display: grid; place-items: center; text-align: center; color: var(--sky-ink); padding: 10vh 16px; }
.interlude p { margin: 0; font: italic 500 clamp(26px, 4vw, 40px)/1.3 var(--serif); }
.interlude span { display: block; margin-top: 10px; font: 500 14px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--sky-ink-soft); }

/* Ending */
.end { position: relative; z-index: 2; padding: 16vh 16px 30vh; color: var(--sky-ink); text-align: center; }
.end__inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.end__kicker { margin: 0; font: 500 14px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--sky-ink-soft); }
.end__title { margin: 0; font: 400 clamp(40px, 7vw, 72px)/1.15 var(--script); }
.end__venues, .end__note { width: 100%; padding: 24px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--ink); text-align: left;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.end__venues h2 { margin: 0 0 8px; font: 500 32px/1.1 var(--serif); }
.end__venues ul { list-style: none; margin: 0; padding: 0; }
.end__venues li { padding: 12px 0; border-top: 1px solid rgba(63, 42, 48, .1); display: flex; flex-direction: column; gap: 2px; }
.end__venues li:first-child { border-top: 0; }
.venue__when { font-size: 14px; font-weight: 500; color: var(--sage); }
.venue__name { font: 600 22px/1.2 var(--serif); }
.venue__what { font-size: 15px; color: var(--ink-soft); }
.end__note p { margin: 0; color: var(--ink-soft); }
.end__note .end__note-title { font: 600 24px/1.2 var(--serif); color: var(--ink); margin-bottom: 4px; }
.end__note .btn { margin-top: 14px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 500; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.signoff { margin: 12px 0 0; font: 40px/1.2 var(--script); color: var(--sky-ink); }

/* Without JavaScript (and for crawlers) the programme is plain to read: no controls that can't work. */
html:not(.js) .corner, html:not(.js) .start, html:not(.js) .trail, html:not(.js) .nowpill { display: none !important; }
.stop__chip:empty { display: none; }

/* While switching language, the redrawn journey appears at once instead of fading in again. */
.is-switching .reveal, .is-switching .stop__node { transition: none !important; }

/* Before « Commencer le voyage »: only the hero, nothing to scroll past */
.is-locked .voyage, .is-locked .end, .is-locked .nowpill, .is-locked .trail { display: none !important; }

/* Floating "where are we" pill */
.nowpill { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 20; translate: -50% 0; max-width: calc(100% - 32px);
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 14px; border-radius: 999px;
  background: rgba(46, 26, 32, .82); color: #FFF8F6; text-decoration: none; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 12px 30px rgba(20, 10, 14, .35); }
.nowpill:hover { color: #fff; background: rgba(46, 26, 32, .92); }
.nowpill b { font-weight: 500; color: #F6C9D2; }
.nowpill span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nowpill i { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: #EFA2B3; }

/* Le petit chemin: a little map of the voyage */
.trail { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 21; translate: -50% 0;
  width: min(680px, calc(100% - 20px)); display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto;
  column-gap: 10px; padding: 8px 12px 8px 8px; border-radius: 22px;
  background: rgba(255, 249, 243, .94); border: 1px solid rgba(226, 190, 147, .6); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 34px rgba(30, 15, 20, .25); }
.trail__go { grid-row: 1 / 3; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 60px; padding: 8px 6px; border: 0; border-radius: 16px; background: transparent; color: var(--accent-dark);
  font: 500 12px var(--sans); letter-spacing: .04em; cursor: pointer; }
.trail__go:hover { background: rgba(168, 72, 95, .08); }
.trail__go svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: rotate .4s; }
.trail__go[aria-pressed="true"] { background: var(--accent); color: #fff; }
.trail__go[aria-pressed="true"] svg { rotate: -8deg; }
.trail__road { position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.trail__road::-webkit-scrollbar { display: none; }
.trail__inner { position: relative; height: 62px; }
.trail__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.trail__base { fill: none; stroke: #CDB8A9; stroke-width: 2; stroke-dasharray: 1.5 6; stroke-linecap: round; }
.trail__done { fill: none; stroke: url(#trail-ribbon); stroke-width: 3.5; stroke-linecap: round; }
.trail__day { position: absolute; top: 0; translate: -50% 0; font: italic 600 13px/1 var(--serif); color: var(--ink-soft); white-space: nowrap; }
.trail__stop { position: absolute; z-index: 2; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: #FFFDFB; border: 1.5px solid #E6D3D5; color: #A88C93; transition: background .35s, color .35s, border-color .35s, scale .35s; }
.trail__stop svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trail__stop:hover { border-color: var(--accent); color: var(--accent); }
.trail__stop.is-passed { background: #F6E4E4; border-color: #E9C4CB; color: var(--accent); }
.trail__stop.is-here { background: var(--accent); border-color: var(--accent); color: #fff; scale: 1.2; }
.trail__stop.is-live { box-shadow: 0 0 0 4px rgba(168, 72, 95, .25); }
.trail__rings { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -13px 0 0 -12px; pointer-events: none; z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(30, 15, 20, .25)); }
.trail__label { grid-column: 2; position: relative; margin: 2px 0 0; padding-bottom: 4px; font-size: 14px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); }
.trail__label b { font-weight: 500; color: var(--accent); }
/* A thin line fills under the place name while the voyage pauses there. */
.trail__label::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; border-radius: 2px; background: linear-gradient(90deg, #E2BE93, var(--accent)); opacity: 0; }
.trail.is-dwelling .trail__label::after { opacity: 1; animation: dwell var(--dwell, 4s) linear forwards; }
@keyframes dwell { to { width: 100%; } }
.nowpill { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 112px); min-height: 40px; font-size: 14px; }

/* Reveal as you travel */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .9s ease, translate .9s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* Focus: the step being reached stands out; the others step back.
   Only revealed elements (.is-in) dim, so the arrival fade-in still works. */
.voyage .reveal { transition: opacity .7s ease, translate .9s cubic-bezier(.2, .8, .2, 1), scale .6s cubic-bezier(.2, .8, .2, 1), filter .6s ease, box-shadow .6s ease, border-color .6s ease; }
.voyage.has-focus .stop:not(.is-focus) .stop__card.is-in,
.voyage.has-focus .route.is-in:not(.is-focus),
.voyage.has-focus .chapter__close.is-in:not(.is-focus) { opacity: .45; scale: .97; filter: saturate(.7); }
.voyage.has-focus .chapter__head.is-in:not(.is-focus),
.voyage.has-focus .interlude.is-in:not(.is-focus) { opacity: .6; }
.voyage.has-focus .stop:not(.is-focus) .stop__node { opacity: .7; }
.stop__node { transition: background .5s, color .5s, box-shadow .5s, scale .5s, opacity .5s; }
.stop.is-focus .stop__card { scale: 1.02; box-shadow: 0 0 0 2px rgba(168, 72, 95, .35), 0 24px 56px rgba(168, 72, 95, .22); }
.stop.is-focus .stop__node { scale: 1.14; box-shadow: 0 0 0 6px rgba(255, 255, 255, .45), 0 10px 28px rgba(168, 72, 95, .3); }
.stop.is-focus:not(.is-done):not(.is-now) .stop__node { background: #fff; color: var(--accent); border-color: var(--accent); }
.route.is-focus { scale: 1.02; border-style: solid; box-shadow: 0 20px 48px rgba(168, 72, 95, .18); }

@media (prefers-reduced-motion: no-preference) {
  .stop.is-focus .stop__node { animation: arrive .7s cubic-bezier(.2, .8, .2, 1.4); }
  @keyframes arrive { 0% { scale: 1; } 55% { scale: 1.26; } 100% { scale: 1.14; } }
  .sky__stars i { animation: twinkle var(--tw, 3s) ease-in-out var(--twd, 0s) infinite; }
  @keyframes twinkle { 50% { opacity: .25; } }
  .stop.is-now .stop__node { animation: halo 2.4s ease-in-out infinite; }
  @keyframes halo { 50% { box-shadow: 0 0 0 14px rgba(168, 72, 95, .12), 0 10px 30px rgba(168, 72, 95, .4); } }
  .start__arrow { animation: bob 2s ease-in-out infinite; }
  .station__rings svg { animation: travel 6s ease-in-out infinite; }
  @keyframes travel { 0%, 100% { translate: -18px 0; } 50% { translate: 18px 0; } }
  .trail__stop.is-live { animation: live 1.8s ease-in-out infinite; }
  @keyframes live { 50% { box-shadow: 0 0 0 7px rgba(168, 72, 95, .08); } }
  .trail__go:not([aria-pressed="true"]) svg { animation: beckon 3s ease-in-out 2s infinite; }
  @keyframes beckon { 0%, 80%, 100% { rotate: 0deg; } 88% { rotate: -10deg; } 94% { rotate: 6deg; } }
  @keyframes bob { 50% { translate: 0 3px; } }
  .land__shimmer path { animation: shimmer 6s ease-in-out infinite; }
  @keyframes shimmer { 50% { opacity: .3; translate: 14px 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .voyage .reveal { transition: opacity .3s ease; }
  .stop.is-focus .stop__card, .stop.is-focus .stop__node, .route.is-focus,
  .voyage.has-focus .stop:not(.is-focus) .stop__card.is-in, .voyage.has-focus .route.is-in:not(.is-focus),
  .voyage.has-focus .chapter__close.is-in:not(.is-focus) { scale: none; }
  html { scroll-behavior: auto; }
}

/* Phones: the path runs down the left, cards on the right */
@media (max-width: 720px) {
  .voyage { padding: 0 12px; }
  .chapter { padding-top: 16vh; }
  .chapter__head { margin-bottom: 10vh; }
  .stop { grid-template-columns: 60px 1fr; column-gap: 12px; margin-bottom: 11vh; }
  .stop__node { grid-column: 1; width: 56px; height: 56px; }
  .stop--key .stop__node { width: 60px; height: 60px; }
  .stop__node svg { width: 28px; height: 28px; }
  .stop--a .stop__node { translate: -2px 0; }
  .stop--b .stop__node { translate: 4px 0; }
  .stop--a .stop__card, .stop--b .stop__card { grid-column: 2; }
  .stop__card { padding: 18px; }
  .stop__title { font-size: 24px; }
  .stop--key .stop__title { font-size: 27px; }
  .route { margin: 0 0 11vh 72px; max-width: none; }

  /* The path starts in the left column, where the stops are, instead of mid-screen. */
  .chapter__anchor { margin: 24px 0 0 30px; }
  .chapter__head { padding: 0 4px; }

  /* "Itinéraire" gets its own line under the place, as a small button. */
  .stop__place { flex-wrap: wrap; }
  .stop__place span { flex: 1 1 0; min-width: 0; }
  .stop__place a { flex-basis: 100%; margin: 4px 0 0 26px; font-weight: 500; }

  .sky__land { height: clamp(90px, 15vh, 140px); }
}

/* Larger screens: the hero sits back a little and leaves room around the video. */
@media (min-width: 601px) {
  .intro { padding: 84px 24px 44px; }
  .intro__inner { gap: 10px; max-width: 760px; }
  .intro__rings { width: 34px; height: 34px; }
  .intro .hero__kicker { font-size: 19px; }
  .intro .hero__names { font-size: clamp(50px, 6.2vw, 84px); }
  .intro .hero__rule { width: 96px; }
  .intro .hero__lede { font-size: clamp(18px, 1.8vw, 22px); }
  .intro .hero__follow { font-size: 14px; }
  .intro .hero__dates { max-width: 700px; margin-top: 16px; gap: 16px 56px; }
  .intro .station { flex-basis: 280px; max-width: 320px; padding-top: 24px; }
  .intro .hero__dates::before, .intro .station__rings { top: 24px; }
  .intro .station__medal { width: 48px; height: 48px; }
  .intro .station__medal svg { width: 26px; height: 26px; }
  .intro .station .countdown { padding: 32px 16px 16px; border-radius: 24px; }
  .intro .countdown__date { font-size: 26px !important; }
  .intro .countdown__what { font-size: 13px; }
  .intro .countdown__clock { margin: 10px 0 6px; }
  .intro .countdown__unit { min-width: 50px; }
  .intro .countdown__num { font-size: 36px; }
  .intro .countdown__label { font-size: 10px; }
  .intro .countdown__dot { margin-top: 17px; }
  .intro .countdown__foot { font-size: 16px; }
  .intro .countdown__message { font-size: 30px; }
  .intro .start { margin-top: 14px; min-height: 48px; font-size: 15px; }
}

/* Phones: a compact intro so "Commencer le voyage" is on the first screen */
@media (max-width: 600px) {
  .intro { min-height: 100svh; padding: 72px 14px 24px; align-items: flex-start; }
  .intro__inner { gap: 10px; }
  .hero__kicker { font-size: 19px; }
  .hero__names { font-size: clamp(50px, 15vw, 64px); }
  .hero__lede { font-size: 19px; }
  .hero__follow { font-size: 14px; }
  .hero__dates { margin-top: 8px; gap: 26px; }
  .hero__dates { padding-left: 30px; }
  .hero__dates::before { left: 19px; right: auto; top: 30px; bottom: 30px; border-top: 0; border-left: 2px dashed rgba(255, 248, 246, .5); }
  .station { flex-basis: 100%; max-width: none; padding-top: 0; }
  .station .countdown { padding-top: 14px; }
  .station__medal { top: 14px; left: -30px; translate: none; width: 40px; height: 40px; }
  .station__medal svg { width: 22px; height: 22px; }
  .station__rings { left: 20px; top: 50%; width: 28px; height: 28px; }
  @media (prefers-reduced-motion: no-preference) { .station__rings svg { animation-name: travel-v; } }
  @keyframes travel-v { 0%, 100% { translate: 0 -8px; } 50% { translate: 0 8px; } }
  .intro .countdown__date { font-size: 27px !important; }
  .intro .hero__names { font-size: clamp(46px, 13.5vw, 60px); }
  .countdown { flex-basis: 100%; padding: 14px 12px 12px; border-radius: 22px; gap: 2px; }
  .countdown__date { font-size: 23px; }
  .countdown__what { font-size: 13px; }
  .countdown__clock { margin: 8px 0 4px; }
  .countdown__unit { min-width: 46px; }
  .countdown__num { font-size: 32px; }
  .countdown__label { font-size: 10px; }
  .countdown__dot { margin-top: 15px; }
  .countdown__foot { padding-top: 6px; font-size: 16px; }
  .countdown__message { margin: 8px 0 4px !important; font-size: 30px; }
  /* Focus still shows, but gently: the cards are stacked, so no shrinking. */
  .countdown.is-focus, .hero__dates:has(.countdown:hover) .countdown:hover { scale: 1; }
  .hero__dates:has(.is-focus) .countdown:not(.is-focus), .hero__dates:has(.countdown:hover) .countdown:not(:hover) { scale: 1; opacity: .85; }
  /* The start button stays in reach at the bottom of the screen until the intro ends. */
  .start { margin-top: 12px; }

  /* Sound: a small round button that doesn't cover the cards. */
  .sound { width: 44px; padding: 0; justify-content: center; }
  .sound__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  /* The floating "where are we" button drops the date to fit. */
  .nowpill { padding: 0 14px 0 12px; font-size: 13px; gap: 8px; }
  .trail { padding: 6px 10px 6px 6px; column-gap: 6px; border-radius: 20px; }
  .trail__go { min-width: 52px; padding: 6px 4px; font-size: 11px; }
  .trail__label { font-size: 13px; }
  .nowpill__day { display: none; }
}
