/* Worldatomy — carnet de vol : ciel pâle, encre de carte, turquoise du glacier, balise ambre.
   Mise en page : photo plein cadre avec bandeau de vol, puis sections sur une colonne de 72rem. */
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/publicsans.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plexmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #f1f4f5;
  --panel: #ffffff;
  --ink: #13222c;
  --muted: #53646e;
  --line: #d3dce1;
  --glacier: #1d6f7b;
  --glacier-soft: #cfe6e8;
  --signal: #c96f12;
  --land: #e3e9ec;
  --water: #c7dfe4;
  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4.5vw, 3rem);
  --step-4: clamp(2.6rem, 7vw, 5rem);
  --radius: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1a21;
    --panel: #14232c;
    --ink: #e6edf0;
    --muted: #97a8b1;
    --line: #26363f;
    --glacier: #63c3cc;
    --glacier-soft: #18383e;
    --signal: #f0a34a;
    --land: #1a2a33;
    --water: #1d3c46;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-0)/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--glacier); text-underline-offset: 0.18em; }
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
em { font-style: italic; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-left: max(1.25rem, env(safe-area-inset-left, 0px)); padding-right: max(1.25rem, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 500 0.75rem/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); }
.section-title { font: 400 var(--step-3)/1.08 var(--display); letter-spacing: -0.01em; }
.section-title em { color: var(--glacier); }
.section-lede { color: var(--muted); max-width: 60ch; }
.mono { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.02em; }
section { padding-block: clamp(4rem, 9vw, 7rem); }

/* --- en-tête plein cadre */
.hero { position: relative; min-height: min(92vh, 60rem); display: grid; grid-template-rows: auto 1fr auto; color: #fff; isolation: isolate; overflow: hidden; background: #13222c; }
/* la photo passe sous le menu et le texte : sans z-index, un élément positionné se peint par-dessus et capte les clics */
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-img { object-fit: cover; object-position: 50% 60%; }
/* extraits de vols : sur la photo, en fondu quand la lecture a démarré */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.hero-video.is-on { opacity: 1; }
.hero-pause { position: absolute; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 1; padding: 0.35rem 0.8rem; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 999px; color: rgba(255, 255, 255, 0.9); background: rgba(10, 22, 30, 0.35); backdrop-filter: blur(4px); font: 600 0.75rem/1.2 var(--sans); cursor: pointer; }
.hero-pause:hover { background: #fff; color: #13222c; }
.hero-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nav, .hero-copy, .page-head-copy { position: relative; z-index: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 18, 24, 0.72) 0%, rgba(8, 18, 24, 0.45) 35%, rgba(8, 18, 24, 0) 65%), linear-gradient(180deg, rgba(8, 18, 24, 0.55) 0%, rgba(8, 18, 24, 0) 25%, rgba(8, 18, 24, 0) 60%, rgba(8, 18, 24, 0.6) 100%); }
@media (max-width: 40rem) { .hero::after { background: linear-gradient(180deg, rgba(8, 18, 24, 0.55) 0%, rgba(8, 18, 24, 0.2) 25%, rgba(8, 18, 24, 0.55) 55%, rgba(8, 18, 24, 0.85) 100%); } }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-top: max(1.25rem, env(safe-area-inset-top, 0px)); }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font: 500 1.35rem/1 var(--display); color: inherit; text-decoration: none; letter-spacing: 0.01em; }
/* le globe du logo, sans les lettres (docs/chaine/sources/logo.html?v=c&nofond&nonom) */
.brand-mark { width: 2.6rem; height: 2.6rem; margin-block: -0.5rem; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: rgba(255, 255, 255, 0.86); text-decoration: none; font-size: var(--step--1); }
.nav ul a:hover { color: #fff; text-decoration: underline; }
.hero-copy { align-self: end; padding-bottom: clamp(2rem, 6vw, 4rem); display: grid; gap: 1.1rem; justify-items: start; }
.hero-copy .eyebrow { color: #f6c27a; }
.hero h1 { font: 400 var(--step-4)/1 var(--display); letter-spacing: -0.02em; max-width: 14ch; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.hero h1 em { color: #bfe6ea; }
.lede { font-size: var(--step-1); line-height: 1.45; max-width: 38ch; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4); }
.cta { display: inline-block; margin-top: 0.4rem; padding: 0.7rem 1.15rem; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 999px; color: #fff; text-decoration: none; font-size: var(--step--1); font-weight: 600; background: rgba(10, 22, 30, 0.35); backdrop-filter: blur(4px); }
.cta:hover { background: #fff; color: #13222c; }
@media (max-width: 40rem) { .nav ul { gap: 0.25rem 1rem; } }

/* --- principe */
.intro { display: grid; gap: 2rem; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.intro-lead { font: 400 var(--step-2)/1.3 var(--display); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 1rem; row-gap: 0.3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font: 500 0.85rem/1.6 var(--mono); color: var(--signal); }
.steps h3 { font: 600 var(--step-0)/1.4 var(--sans); }
.steps p { color: var(--muted); }
@media (max-width: 48rem) { .intro-grid { grid-template-columns: 1fr; } }

/* --- le Rhône */
.rhone { background: var(--panel); border-block: 1px solid var(--line); }
.rhone > .wrap { display: grid; gap: 1.5rem; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0.5rem 0 0; }
.facts div { border-top: 2px solid var(--ink); padding-top: 0.6rem; }
.facts dt { font: 500 0.72rem/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0.2rem 0 0; font: 400 var(--step-2)/1.1 var(--display); font-variant-numeric: tabular-nums; }
@media (max-width: 36rem) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rhone-note { color: var(--muted); max-width: 62ch; }
.rhone-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-top: 1rem; }
@media (max-width: 52rem) { .rhone-grid { grid-template-columns: 1fr; } }
.map-fig { margin: 0; display: grid; gap: 0.5rem; }
.map-fig figcaption { font-size: 0.75rem; color: var(--muted); }
.rmap { width: 100%; height: auto; display: block; background: var(--water); border-radius: var(--radius); }
.rmap-land { fill: var(--land); stroke: var(--muted); stroke-opacity: 0.45; stroke-width: 0.7; stroke-linejoin: round; }
.rmap-lake { fill: var(--water); stroke: none; }
.rmap-river { fill: none; stroke: var(--water); stroke-width: 1.2; stroke-linecap: round; }
.rmap-stage { fill: none; stroke: var(--glacier); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: stroke-width 0.2s, stroke 0.2s, opacity 0.2s; }
.rmap-cut { fill: var(--panel); stroke: var(--ink); stroke-width: 1.2; }
.rmap-city { fill: var(--ink); }
.rmap-label { font: 400 11px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--land); stroke-width: 3px; stroke-linejoin: round; }
.rmap-region { font: 500 10px var(--mono); letter-spacing: 0.18em; fill: var(--muted); }
.rmap-water { font: italic 400 13px var(--display); letter-spacing: 0.02em; fill: var(--glacier); }
.rmap-num circle { fill: var(--panel); stroke: var(--glacier); stroke-width: 1.4; transition: fill 0.2s; }
.rmap-num text { font: 500 10px var(--mono); fill: var(--ink); }
.rmap.has-focus .rmap-stage { opacity: 0.35; }
.rmap.has-focus .rmap-stage.is-on { opacity: 1; stroke: var(--signal); stroke-width: 5; }
.rmap .rmap-num.is-on circle { fill: var(--signal); stroke: var(--signal); }
.rmap .rmap-num.is-on text { fill: #fff; }
.stages { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.stages li { display: grid; grid-template-columns: 2rem 7rem minmax(0, 1fr) auto; gap: 0.25rem 0.9rem; align-items: baseline; padding: 0.8rem 0.4rem; border-bottom: 1px solid var(--line); cursor: default; transition: background 0.15s; }
.stages li:hover, .stages li.is-on { background: var(--glacier-soft); }
.st-n { font: 400 var(--step-1)/1 var(--display); color: var(--glacier); }
.st-km, .st-t { font: 400 0.8rem/1.4 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.st-what { font-size: 0.95rem; }
.st-s { font: 500 0.68rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.55rem; white-space: nowrap; }
.st-s.on { color: var(--signal); border-color: currentColor; }
@media (max-width: 36rem) {
  .stages li { grid-template-columns: 2rem minmax(0, 1fr) auto; }
  .st-km { grid-column: 2; grid-row: 1; }
  .st-t { display: none; }
  .st-what { grid-column: 2 / -1; }
  .st-s { grid-column: 3; grid-row: 1; }
}
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 48rem) { .strip { grid-template-columns: 1fr; } }
.strip figure { margin: 0; display: grid; gap: 0.55rem; }
.strip img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.strip figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1rem; font-size: 0.9rem; }
.strip figcaption .mono { color: var(--muted); }

/* --- guide */
.guide-card { display: grid; gap: 1.1rem; max-width: 46rem; padding-left: clamp(1rem, 4vw, 2.5rem); border-left: 2px solid var(--signal); }
.guide blockquote { margin: 0; font: italic 400 var(--step-2)/1.3 var(--display); color: var(--glacier); }
.guide p { max-width: 62ch; }
.guide .aside { font-size: var(--step--1); color: var(--muted); }

/* --- visites */
.visites { background: var(--panel); border-block: 1px solid var(--line); }
.visites > .wrap { display: grid; gap: 1.2rem; }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 1.25rem; margin-top: 1.2rem; }
.visit { display: grid; gap: 0.9rem; align-content: start; }
.visit-big { grid-row: span 2; }
.visit img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.visit-big img { aspect-ratio: 4 / 3; }
.visit-body { display: grid; gap: 0.4rem; }
.visit h3 { font: 400 var(--step-1)/1.25 var(--display); }
.visit p { color: var(--muted); font-size: 0.95rem; }
.visit .meta { color: var(--signal); }
.visit-text { border-top: 2px solid var(--ink); padding-top: 1rem; }
@media (max-width: 48rem) { .visit-grid { grid-template-columns: 1fr; } .visit-big { grid-row: auto; } .visit-big img { aspect-ratio: 16 / 9; } }

/* --- routes */
.routes { display: grid; gap: 1.2rem; }
.routes-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.routes-grid > div { display: grid; gap: 0.9rem; }
.routes-fig { margin: 0; display: grid; gap: 0.55rem; }
.routes-fig img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.routes-fig figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1rem; font-size: 0.9rem; }
.routes-fig figcaption .mono { color: var(--muted); }
@media (max-width: 52rem) { .routes-grid { grid-template-columns: 1fr; } .routes-grid > div { order: -1; } }

/* --- courses (texte à gauche, photo à droite, un seul lecteur) */
.courses { background: var(--panel); border-block: 1px solid var(--line); }
.courses > .wrap { display: grid; gap: 1.2rem; }
.courses-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.players.solo { grid-template-columns: minmax(0, 52rem); }
@media (max-width: 52rem) { .courses-grid { grid-template-columns: 1fr; } }

/* --- fabrication */
.fabrication { background: #13222c; color: #e6edf0; }
.fabrication .section-title { color: #fff; }
.fab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2rem; }
@media (max-width: 52rem) { .fab-grid { grid-template-columns: 1fr; } }
.fab-grid div { border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 1rem; display: grid; gap: 0.5rem; align-content: start; }
.fab-grid h3 { font: 500 0.78rem/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #f6c27a; }
.fab-grid p { color: #b8c6cd; font-size: 0.95rem; }
@media (prefers-color-scheme: dark) { .fabrication { background: #0a141a; border-top: 1px solid var(--line); } }

/* --- pied de page */
.footer { padding-block: 3rem calc(3rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; }
@media (max-width: 48rem) { .footer-grid { grid-template-columns: 1fr; } }
.brand-foot { margin: -1rem 0 0.25rem -0.4rem; }
.logo-foot { display: block; width: 11rem; height: auto; }
.credits { display: grid; gap: 0.7rem; }
.credits h2 { font: 500 0.72rem/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }

/* --- page Patrimoine mondial */
:root { --t-c: #2f5d8a; --t-n: #2e8a5b; --t-m: #c96f12; --muted-fill: #b9c6cd; --bad: #b3261e; }
@media (prefers-color-scheme: dark) { :root { --t-c: #7fb2e5; --t-n: #6cc59a; --t-m: #f0a34a; --muted-fill: #3a4b55; --bad: #ff8a80; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-head { position: relative; isolation: isolate; overflow: hidden; background: #13222c; color: #fff; padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.page-head picture, .page-head-img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.page-head-img { object-fit: cover; object-position: 50% 55%; }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 18, 24, 0.82) 0%, rgba(8, 18, 24, 0.55) 45%, rgba(8, 18, 24, 0.15) 80%), linear-gradient(180deg, rgba(8, 18, 24, 0.5) 0%, rgba(8, 18, 24, 0) 30%); }
@media (max-width: 40rem) { .page-head::after { background: linear-gradient(180deg, rgba(8, 18, 24, 0.6) 0%, rgba(8, 18, 24, 0.7) 100%); } }
.page-head-credit { position: absolute; right: max(1.25rem, env(safe-area-inset-right, 0px)); bottom: 0.7rem; z-index: 1; font: 400 0.7rem/1.3 var(--mono); letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.7); text-align: right; }
@media (max-width: 40rem) { .page-head-credit { display: none; } }
.nav ul a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: #f0a34a; text-decoration-thickness: 2px; }
.page-head-copy { display: grid; gap: 1rem; margin-top: clamp(2.5rem, 7vw, 4.5rem); }
.page-head-copy .eyebrow { color: #f6c27a; }
.page-head h1 { font: 400 var(--step-3)/1.05 var(--display); letter-spacing: -0.015em; max-width: 20ch; }
.page-head h1 em { color: #bfe6ea; }
.page-head .lede { max-width: 58ch; font-size: var(--step-0); text-shadow: none; color: #c9d5db; }
.u-main { display: grid; gap: 1.25rem; padding-block: 2rem 4rem; }
.u-filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; position: sticky; top: 0; z-index: 3; padding-block: 0.75rem; background: var(--bg); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--panel); }
.seg button { font: inherit; font-size: var(--step--1); color: var(--muted); background: none; border: 0; padding: 0.4rem 0.85rem; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg button:focus-visible, .chip:focus-visible, .u-table th button:focus-visible, .u-input:focus-visible, .u-select select:focus-visible, .u-hit:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.u-select select { font: inherit; font-size: var(--step--1); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.85rem; max-width: 100%; }
.u-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 1rem; padding-block: 0.5rem; }
.u-tile { display: grid; gap: 0.25rem; align-content: start; border-top: 2px solid var(--ink); padding-top: 0.7rem; }
.u-tile .k { font: 500 0.72rem/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.u-tile .v { font: 400 var(--step-3)/1 var(--display); font-variant-numeric: tabular-nums; }
.u-tile .n { font-size: 0.82rem; color: var(--muted); }
.u-main .u-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.5rem); display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.u-card h2 { font: 400 var(--step-1)/1.25 var(--display); }
.u-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1rem; }
.u-note { font-size: 0.85rem; color: var(--muted); max-width: 70ch; }
.u-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 1.25rem; }
.u-chart { position: relative; min-height: 280px; }
.u-chart.small { min-height: 220px; }
.u-chart svg { display: block; overflow: visible; }
.u-map { min-height: 0; aspect-ratio: 360 / 142; }
.u-map svg { overflow: hidden; }
.u-table td.type { white-space: nowrap; }
.u-tick { font: 400 11px var(--sans); fill: var(--muted); font-variant-numeric: tabular-nums; }
.u-val { font: 500 11px var(--sans); fill: var(--ink); font-variant-numeric: tabular-nums; }
.u-cat { font: 400 12px var(--sans); fill: var(--ink); }
.u-gridline { stroke: var(--line); stroke-width: 1; }
.u-axis { stroke: var(--muted); stroke-width: 1; }
.u-fill-C { fill: var(--t-c); }
.u-fill-N { fill: var(--t-n); }
.u-fill-M { fill: var(--t-m); }
.u-fill-main { fill: var(--glacier); }
.u-fill-muted { fill: var(--muted-fill); }
.u-bg-C { background: var(--t-c); }
.u-bg-N { background: var(--t-n); }
.u-bg-M { background: var(--t-m); }
.u-bar.is-muted rect { fill: var(--muted-fill); }
.u-hit { fill: transparent; cursor: pointer; }
.u-hit:hover { fill: var(--glacier-soft); fill-opacity: 0.35; }
.u-line { fill: none; stroke: var(--glacier); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.u-area { fill: var(--glacier); fill-opacity: 0.12; }
.u-land { fill: var(--land); stroke: var(--line); stroke-width: 0.25; }
.u-dot { fill-opacity: 0.85; stroke: var(--panel); stroke-width: 0.25; }
.u-dot.is-muted { fill: var(--muted-fill); fill-opacity: 0.55; stroke: none; }
.u-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: 0.82rem; color: var(--muted); }
.u-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.u-sw { display: inline-block; width: 0.65rem; height: 0.65rem; border-radius: 2px; margin-right: 0.4rem; vertical-align: -0.05em; }
.u-legend .u-sw { margin-right: 0; }
.u-tip { position: fixed; z-index: 10; pointer-events: none; max-width: 18rem; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); padding: 0.45rem 0.65rem; font-size: 0.8rem; display: grid; gap: 0.1rem; }
.u-tip[hidden] { display: none; }
.u-tip .d { color: var(--muted); font-size: 0.75rem; }
.u-tip .b { font-weight: 600; }
.u-picked { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; }
.u-year { font: 400 var(--step-2)/1.1 var(--display); }
.chip { font: inherit; font-size: 0.8rem; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.7rem; cursor: pointer; }
.chip:hover { color: var(--ink); border-color: var(--muted); }
.chip[hidden] { display: none; }
.u-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.u-input { font: inherit; font-size: var(--step--1); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.45rem 0.7rem; width: min(100%, 20rem); }
.u-scroll { max-height: 32rem; overflow: auto; border-top: 1px solid var(--line); }
.u-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.u-table th { position: sticky; top: 0; background: var(--panel); text-align: left; font-weight: 600; color: var(--muted); padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.u-table th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.u-table td { padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.u-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-table td.mono { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.u-table a { color: var(--ink); text-decoration-color: var(--line); }
.u-table a:hover { color: var(--glacier); text-decoration-color: currentColor; }
.u-table .bad { color: var(--bad); font-weight: 600; }
@media (max-width: 40rem) { .u-table .hide-n { display: none; } }
.u-sources { font-size: 0.8rem; color: var(--muted); max-width: 80ch; }
.u-history { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4rem); padding-block: 1.5rem 2.5rem; border-bottom: 1px solid var(--line); }
@media (max-width: 52rem) { .u-history { grid-template-columns: 1fr; } }
.u-history-intro { display: grid; gap: 0.9rem; align-content: start; }
.u-history h2 { font: 400 var(--step-2)/1.15 var(--display); }
.u-history h3 { font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); margin-top: 0.4rem; }
.u-history-intro > p { max-width: 60ch; }
.u-how { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.45rem; font-size: 0.95rem; }
.u-how li::marker { font-family: var(--mono); color: var(--signal); }
.u-timeline { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.u-timeline::before { content: ""; position: absolute; left: 3.15rem; top: 0.5rem; bottom: 0.5rem; width: 1px; background: var(--line); }
.u-timeline li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1.4rem; padding-block: 0.55rem; position: relative; }
.u-timeline li::before { content: ""; position: absolute; left: calc(3.15rem - 4px); top: 1.05rem; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--glacier); box-sizing: border-box; }
.u-timeline li:last-child::before { background: var(--signal); border-color: var(--signal); }
.u-timeline .y { font: 500 0.85rem/1.6 var(--mono); color: var(--glacier); font-variant-numeric: tabular-nums; padding-top: 0.15rem; }
.u-timeline p { font-size: 0.93rem; line-height: 1.55; }
.u-delist { grid-column: 1 / -1; display: grid; gap: 1.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.u-delist-intro { display: grid; gap: 0.7rem; max-width: 72ch; }
.u-delist-intro p { font-size: 0.95rem; }
.u-delist-cases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.u-delist-cases li { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--bad); border-radius: var(--radius); padding: 1rem 1.1rem; display: grid; gap: 0.45rem; align-content: start; }
.u-delist-year { font: 500 0.85rem/1 var(--mono); color: var(--bad); font-variant-numeric: tabular-nums; }
.u-delist-cases h4 { margin: 0; font: 400 var(--step-1)/1.25 var(--display); }
.u-delist-cases h4 span { display: block; font: 400 0.8rem/1.4 var(--sans); color: var(--muted); margin-top: 0.15rem; }
.u-delist-cases li > p:last-child { font-size: 0.9rem; color: var(--muted); }
.u-delist-foot { max-width: 80ch; }

/* ---- 27 octobre 2026 : trois séries, lecteurs YouTube, cartes supplémentaires ---- */
.chaine-note { margin-top: 1.75rem; color: var(--muted); max-width: 62ch; }
.rmap-trace { fill: none; stroke: var(--glacier); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; opacity: 0.6; }
.rmap-visit circle { fill: var(--signal); stroke: var(--panel); stroke-width: 1.5; }
.rmap-pass { font-style: italic; fill: var(--muted); }
.player { margin-top: 1.75rem; max-width: 52rem; border: 1px dashed var(--line); border-radius: var(--radius); display: grid; place-items: center; text-align: center; padding: 1.4rem 1rem; color: var(--muted); }
.player p { margin: 0; line-height: 1.6; }
.player .mono { color: var(--signal); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.player.is-live { border: 0; padding: 0; display: block; overflow: hidden; aspect-ratio: 16 / 9; }
.player iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.visit-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.2rem; }
.map-fig.small { max-width: 36rem; margin-top: 2rem; }
@media (max-width: 48rem) {
  .visit-grid3 { grid-template-columns: minmax(0, 1fr); }
}
.to-top { grid-column: 1 / -1; justify-self: stretch; margin-top: 2.5rem; text-align: right; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.to-top a { color: var(--muted); text-decoration: none; padding: 0.4rem 0; }
.to-top a:hover, .to-top a:focus-visible { color: var(--signal); }

/* Compteur de kilomètres du haut de page (7 novembre 2026) : total des vidéos publiées, recalculé par
   python -m msfsdiscovery.compteur ; défilement dans main.js. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.odo { display: grid; gap: 0.3rem; margin-top: 0.2rem; }
.odo-num { display: flex; align-items: baseline; font: 500 clamp(2.2rem, 5.5vw, 3.4rem)/1 var(--mono); color: #f6c27a; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }
.odo-val { display: inline-block; text-align: right; }
.odo-unit { margin-left: 0.35em; font-size: 0.42em; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9); }
.odo-label { font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.88); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.odo-num::after { content: ""; align-self: center; width: 0.5rem; height: 0.5rem; margin-left: 0.6rem; border-radius: 50%; background: #f6c27a; box-shadow: 0 0 0 0 rgba(246, 194, 122, 0.6); animation: odo-pulse 2.4s ease-out infinite; }
@keyframes odo-pulse { 0% { box-shadow: 0 0 0 0 rgba(246, 194, 122, 0.6); } 70%, 100% { box-shadow: 0 0 0 0.7rem rgba(246, 194, 122, 0); } }
@media (prefers-reduced-motion: reduce) { .odo-num::after { animation: none; } }

/* Plusieurs lecteurs côte à côte (Transfăgărășan, 7 novembre 2026) */
.players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.75rem; }
.players .player { margin-top: 0; max-width: none; }
.player-fig { margin: 0; display: grid; gap: 0.55rem; }
.player-fig figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1rem; font-size: 0.9rem; }
.player-fig figcaption .mono { color: var(--muted); }
@media (max-width: 52rem) { .players { grid-template-columns: 1fr; } }
