/* Marchethon Lausanne — nouveau design (mobile d'abord, web app).
   Couleurs : rouge Marchethon + bleu Léman. Titres : Archivo (largeur variable). Texte : Atkinson Hyperlegible Next.
   Thème : système par défaut ; html[data-theme="light|dark"] force un thème. */

@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --red: #D9142B; --red-ink: #FFFFFF; --lake: #1C5D86; --green: #6FA318;
  --paper: #F3F5F7; --card: #FFFFFF; --plate: #FFFFFF; --ink: #141A21; --muted: #56616F; --line: #DCE2E8; --soft: #E8EDF2;
  --glow: rgba(217, 20, 43, .14); --shadow: 0 10px 24px -14px rgba(10, 20, 30, .35);
  --logo-light: block; --logo-dark: none; --halo: rgba(225, 8, 28, .22); --halo-mark: #FFFFFF; --logo-ink: #1A161A; --logo-red: #E2001A;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --tabbar-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red: #FF4557; --red-ink: #16070A; --lake: #72B6E2; --green: #9BD53A;
    --paper: #0E1318; --card: #171E26; --plate: #F4F6F8; --ink: #EEF2F6; --muted: #A0ACBA; --line: #27323D; --soft: #1F2831;
    --glow: rgba(255, 69, 87, .18); --shadow: 0 10px 24px -14px rgba(0, 0, 0, .7);
    --logo-light: none; --logo-dark: block; --halo: rgba(255, 50, 70, .30); --halo-mark: #07090C; --logo-ink: #FFFFFF; --logo-red: #FF3B4E; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --red: #FF4557; --red-ink: #16070A; --lake: #72B6E2; --green: #9BD53A;
  --paper: #0E1318; --card: #171E26; --plate: #F4F6F8; --ink: #EEF2F6; --muted: #A0ACBA; --line: #27323D; --soft: #1F2831;
  --glow: rgba(255, 69, 87, .18); --shadow: 0 10px 24px -14px rgba(0, 0, 0, .7);
  --logo-light: none; --logo-dark: block; --halo: rgba(255, 50, 70, .30); --halo-mark: #07090C; --logo-ink: #FFFFFF; --logo-red: #FF3B4E; color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@view-transition { navigation: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
img { max-width: 100%; height: auto; }
a { color: var(--lake); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { text-wrap: balance; }
p { margin: 0 0 .8em; }
strong { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lake); outline-offset: 2px; border-radius: 6px; }
.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; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }
.logo-light { display: var(--logo-light) !important; }
.logo-dark { display: var(--logo-dark) !important; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); container-type: inline-size; }
.wrap--text { max-width: 780px; }
.stack-xl > * + * { margin-top: 48px; }
.stack-l > * + * { margin-top: 24px; }
@media (min-width: 900px) { .stack-xl > * + * { margin-top: 72px; } }

/* ---------- Typographie ---------- */
.kicker, .eyebrow { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 8px; }
.kicker { color: var(--red); }
.eyebrow { color: var(--muted); }
.title { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(27px, 4.4vw, 44px); line-height: 1.05; letter-spacing: -.01em; margin: 0 0 12px; }
.display { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: min(96px, 24cqi); line-height: .82; letter-spacing: -.04em; color: var(--red); margin: 8px 0 4px; display: flex; align-items: flex-start; gap: 4px; text-transform: uppercase; }
.display sup { font-size: .32em; letter-spacing: 0; margin-top: .3em; }
.display--fit { font-stretch: 80%; font-size: min(88px, 15.5cqi); }
.lead { font-size: 18px; color: var(--muted); max-width: 62ch; margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.fine { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.prose { max-width: 68ch; }
.prose h3 { font-size: 17px; margin: 1.2em 0 .3em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .25em 0; }
.prose blockquote { margin: 1em 0; padding: 12px 16px; border-left: 4px solid var(--red); background: var(--soft); border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: 12px; }
.prose > :last-child { margin-bottom: 0; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 16px;
  background: var(--red); color: var(--red-ink); font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; transition: transform .12s ease, filter .12s ease; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--soft { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.btn--small { min-height: 42px; padding: 0 14px; font-size: 15px; border-radius: 12px; }
.btn--block { display: flex; width: 100%; }
.iconbtn { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; font: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.actions .btn { flex: 1 1 200px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; background: var(--soft); }
.pill--hot { background: var(--red); color: var(--red-ink); }

/* ---------- En-tête ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); }
.appbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 15; background: color-mix(in oklab, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent); }
.appbar__in { max-width: 1272px; margin: 0 auto; padding: 10px var(--gutter-r) 10px var(--gutter); display: flex; align-items: center; gap: 12px; container-type: inline-size; }
.brand { display: flex; align-items: flex-end; gap: 8px; text-decoration: none; min-height: 44px; min-width: 0; }
.brand img, .brand__logo { height: 36px; width: auto; align-self: center; flex: none; }
.brand__ink { fill: var(--logo-ink); } .brand__red { fill: var(--logo-red); }
.brand__city { font-family: var(--display); font-weight: 700; font-stretch: 110%; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--red); padding-bottom: 9px; }
.topnav { display: none; }
.appbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.countdown-chip { font-family: var(--display); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.countdown-chip--live { background: var(--red); color: var(--red-ink); }
.topnav__cta { display: none; }
@container (max-width: 380px) { .brand__city { display: none; } .brand img, .brand__logo { height: 30px; } }
@container (max-width: 330px) { .countdown-chip { display: none; } }
.searchbtn__label, .searchbtn__key { display: none; }
/* Ordinateur et tablette en largeur : en-tête sur deux lignes, tout le menu visible, pas de barre d'onglets. */
@media (min-width: 900px) {
  .appbar__in { flex-wrap: wrap; row-gap: 0; padding-top: 12px; padding-bottom: 0; }
  .brand img, .brand__logo { height: 46px; }
  .appbar__actions { gap: 10px; }
  .searchbtn { width: auto; min-width: 280px; border-radius: 999px; padding: 0 8px 0 14px; justify-content: start; grid-auto-flow: column; grid-template-columns: auto 1fr auto; gap: 10px; color: var(--muted); }
  .searchbtn svg { color: var(--ink); }
  .searchbtn__label { display: block; font-size: 15px; text-align: left; }
  .searchbtn__key { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); font: 600 13px var(--body); color: var(--muted); }
  .topnav { order: 3; flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 0 4px; margin: 10px calc(-1 * 10px) 0; padding: 0; }
  .topnav a { position: relative; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 10px 12px; white-space: nowrap; }
  .topnav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
  .topnav a:hover::after { background: var(--line); }
  .topnav a[aria-current="page"] { color: var(--red); }
  .topnav a[aria-current="page"]::after { background: var(--red); }
  .topnav__cta { display: inline-flex; }
  .tabbar { display: none; }
  body { padding-bottom: 0; }
}
@media (min-width: 900px) and (max-width: 1099px) { .topnav { gap: 0; } .topnav a { font-size: 13.5px; padding-left: 5px; padding-right: 5px; } .topnav a::after { left: 5px; right: 5px; } .brand__city { display: none; } .searchbtn { min-width: 220px; } }
@media (min-width: 1100px) and (max-width: 1299px) { .topnav { gap: 0; } .topnav a { padding-left: 8px; padding-right: 8px; } .topnav a::after { left: 8px; right: 8px; } }
@media (min-width: 1300px) { .topnav { gap: 0 8px; } }

/* ---------- Barre d'onglets (téléphone) ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
  background: color-mix(in oklab, var(--card) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabbar__item { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 54px; font-size: 11px; font-weight: 700; color: var(--muted); text-decoration: none; border-radius: 12px; }
.tabbar__icon { display: grid; place-items: center; height: 30px; }
.tabbar__icon svg { width: 24px; height: 24px; }
.tabbar__item[aria-current="page"] { color: var(--red); }
.tabbar__item--cta { color: var(--red); }
.tabbar__item--cta .tabbar__icon { width: 50px; border-radius: 15px; background: var(--red); color: var(--red-ink); }
.tabbar__item--cta .tabbar__icon svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ---------- Héros ---------- */
.hero { padding: 18px 0 22px; }
.hero--home { padding-bottom: 32px; }
@media (min-width: 900px) { .hero { padding: 48px 0 36px; } }
.hero { position: relative; }
.hero::before { content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 420px; background: radial-gradient(520px 360px at 100% 0%, var(--halo), transparent 72%); pointer-events: none; }
@media (min-width: 1000px) { .hero { margin-bottom: 16px; } .hero:not(.hero--home)::before { height: 760px; background: radial-gradient(900px 620px at 90% 0%, var(--halo), transparent 72%); } .hero .title { font-size: 52px; } .hero .lead { font-size: 19px; } }
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--red); text-decoration: none; }
.lakeline { display: block; width: 100%; max-width: 560px; height: 20px; margin: 14px 0 0; fill: none; stroke: var(--lake); stroke-width: 2; }
.unified-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; background: var(--plate); color: #1C2430; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px 6px 8px; font-size: 13px; font-weight: 700; text-decoration: none; min-height: 40px; }
.unified-chip img { height: 22px; width: auto; }
.countdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; max-width: 480px; }
.countdown div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 4px 8px; text-align: center; }
.countdown b { display: block; font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero--home .actions { max-width: 560px; }
.hero__grid { display: grid; gap: 20px; }
.hero__grid > * { min-width: 0; }
.hero__main { container-type: inline-size; }
.hero__side { display: grid; gap: 12px; align-content: start; }
.hero__side .countdown, .hero__side .now-card, .hero__side .finder-teaser { margin: 0; max-width: none; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.facts div { background: var(--card); padding: 12px 14px; min-width: 0; }
.facts dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; line-height: 1.3; }
@media (min-width: 1000px) {
  .hero--home { padding: 56px 0 48px; }
  .hero--home::before { content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 900px; background: radial-gradient(1000px 700px at 85% 0%, var(--halo), transparent 72%); pointer-events: none; }
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(340px, .85fr); gap: 56px; align-items: end; }
  .hero--home .display { font-size: min(168px, 30cqi); }
  .hero--home .display--fit { font-size: min(132px, 15.5cqi); }
  .hero--home .title { font-size: 56px; }
  .hero__side { background: color-mix(in srgb, var(--card) 28%, transparent); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 28px; padding: 18px; box-shadow: var(--shadow); }
  .hero__side .countdown div { background: color-mix(in srgb, var(--card) 45%, transparent); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
  .hero__side .facts { background: transparent; border-color: color-mix(in srgb, var(--line) 80%, transparent); }
  .hero__side .facts div { background: color-mix(in srgb, var(--card) 45%, transparent); box-shadow: 0 0 0 .5px color-mix(in srgb, var(--line) 80%, transparent); }
  .hero__side .countdown b { font-size: 44px; }
}
.duo { display: grid; gap: 48px; }
.duo > * { min-width: 0; }
@media (min-width: 1000px) { .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; } .duo .unified-block { grid-template-columns: 1fr; } .duo .unified-block__tag { grid-column: auto; } }

.finder-teaser { display: grid; gap: 10px; margin-top: 20px; max-width: 560px; background: var(--ink); color: var(--paper); border-radius: 20px; padding: 16px 18px; text-decoration: none; }
.finder-teaser b { display: block; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 21px; line-height: 1.1; }
.finder-teaser small { opacity: .78; font-size: 14px; }
.finder-teaser__runners { display: flex; gap: 4px; justify-self: start; background: #fff; border-radius: 12px; padding: 4px 8px; }
.finder-teaser__runners img { height: 34px; width: auto; mix-blend-mode: multiply; }

.now-card { background: var(--ink); color: var(--paper); border-radius: 20px; padding: 18px; margin-top: 14px; max-width: 560px; }
.now-card--page { margin: 0 0 16px; }
.now-card__label { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; opacity: .75; margin: 0; }
.now-card__time { font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 64px; line-height: .95; color: var(--red); margin: 4px 0; font-variant-numeric: tabular-nums; }
.now-card__what { font-weight: 700; margin: 0; }

/* ---------- Réponses rapides ---------- */
.quick { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter-r) 4px var(--gutter); scrollbar-width: none; }
.quick button { flex: 0 0 auto; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 10px 16px; min-height: 44px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.quick button[aria-pressed="true"] { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 3px var(--glow); }
/* Desktop : toujours sur une ligne ; les pastilles se resserrent selon la largeur de la colonne (défilement en dernier recours) */
@media (min-width: 900px) {
  .quick { flex-wrap: nowrap; gap: 6px; margin: -4px; padding: 4px; container-type: inline-size; }
  .quick button { flex: 1 0 auto; padding: 8px clamp(8px, 2cqi, 16px); font-size: clamp(13px, 2.6cqi, 15px); white-space: nowrap; }
}
.answer { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; max-width: 640px; }
.answer b { display: block; font-size: 13px; color: var(--red); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.answer a { font-weight: 700; }

/* ---------- Label Unified ---------- */
.unified-block { position: relative; overflow: hidden; background: var(--plate); color: #1C2430; border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: grid; gap: 14px; }
.unified-block::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(122, 181, 29, .22), transparent 70%); pointer-events: none; }
.unified-block img { width: min(300px, 80%); height: auto; display: block; }
.unified-block p { margin: 0; color: #3A4655; max-width: 70ch; }
.unified-block a { color: #1C5D86; font-weight: 700; }
.unified-block__tag { font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #4E7F0E !important; }
@media (min-width: 900px) { .unified-block { grid-template-columns: 320px minmax(0, 1fr); align-items: center; padding: 32px; } .unified-block__tag { grid-column: 1 / -1; } }

/* ---------- Blocs ---------- */
.split { display: grid; gap: 20px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; } }
.split > * { min-width: 0; }
.checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.checks li::before { content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.breath { background: var(--ink); color: var(--paper); border-radius: 24px; padding: 22px; }
.breath__title { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 24px; line-height: 1.15; margin: 0 0 6px; }
.breath p { opacity: .9; }
.breath a { color: var(--red); font-weight: 800; text-decoration: none; }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
@media (min-width: 700px) { .figs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.figs div { background: var(--card); padding: 16px 8px; text-align: center; }
.figs b { display: block; font-family: var(--display); font-stretch: 85%; font-weight: 850; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.figs small { font-size: 13px; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; min-width: 0; }
@media (min-width: 900px) { .card { padding: 24px; } }
.card__title { font-family: var(--display); font-stretch: 105%; font-weight: 800; font-size: 20px; line-height: 1.2; margin: 0 0 10px; }
.card > p:last-child { margin-bottom: 0; }
.card--accent { border-color: var(--red); box-shadow: 0 0 0 4px var(--glow); }
.card--center { text-align: center; }
.card--center p { margin-left: auto; margin-right: auto; }
.note { background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.grid2 { display: grid; gap: 12px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.banner { background: var(--red); color: var(--red-ink); border-radius: 16px; padding: 14px 18px; font-weight: 700; margin: 0; }
.empty { color: var(--muted); text-align: center; padding: 18px; border: 1px dashed var(--line); border-radius: 14px; }
.notice { border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; font-weight: 600; }
.notice--success { background: color-mix(in oklab, var(--green) 18%, var(--card)); border: 1px solid var(--green); }
.notice--error { background: color-mix(in oklab, var(--red) 12%, var(--card)); border: 1px solid var(--red); }

/* ---------- Actualités ---------- */
.news-list { display: grid; gap: 10px; margin-bottom: 14px; }
@media (min-width: 900px) { .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.news { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; color: var(--ink); text-decoration: none; }
.news:hover { border-color: var(--red); }
.news__date { background: var(--red); color: var(--red-ink); border-radius: 12px; text-align: center; padding: 8px 0; font-family: var(--display); font-weight: 800; line-height: 1.05; display: grid; }
.news__date b { font-size: 24px; font-stretch: 80%; }
.news__date small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.news__text strong { display: block; font-size: 17px; line-height: 1.3; }
.news__text span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }

/* ---------- Logos ---------- */
.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
@media (min-width: 700px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.logos--small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 700px) { .logos--small { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.logo-tile { background: var(--plate); border: 1px solid var(--line); border-radius: 16px; height: 92px; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: hidden; padding: 12px; color: #1C2430; text-decoration: none; font-weight: 700; text-align: center; }
.logos--small .logo-tile { height: 76px; padding: 8px; }
.logo-tile img { display: block; width: 100%; height: 100%; object-fit: contain; }
a.logo-tile:hover { border-color: var(--red); }
.tier__head { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--display); font-stretch: 105%; font-weight: 800; font-size: 18px; }
.stars { color: var(--red); letter-spacing: 2px; font-size: 18px; }

/* ---------- Dossard ---------- */
.bib { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.bib::before, .bib::after { content: ""; position: absolute; top: 46px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.bib::before { left: 10px; } .bib::after { right: 10px; }
.bib__band { display: flex; justify-content: space-between; gap: 8px; background: var(--red); color: var(--red-ink); padding: 8px 14px; font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.bib__core { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: end; gap: 10px; padding: 12px 26px 8px; }
.bib__code { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 76px; line-height: .85; font-variant-numeric: tabular-nums; }
.bib__pic { width: 56px; height: 52px; background: #fff; border-radius: 10px; display: grid; place-items: center; align-self: center; }
.bib__pic img { max-width: 46px; max-height: 44px; mix-blend-mode: multiply; }
.bib__who { text-align: right; font-size: 13px; color: var(--muted); min-width: 0; }
.bib__who strong { display: block; color: var(--ink); font-size: 16px; }
.bib__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px dashed var(--line); }
.bib__facts div { padding: 10px 12px; border-right: 1px dashed var(--line); }
.bib__facts div:last-child { border-right: 0; }
.bib__facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bib__facts dd { margin: 0; font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.bib__foot { display: grid; gap: 2px; margin: 0; padding: 10px 14px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.bib__foot b { color: var(--ink); }
/* Couleurs de la catégorie (admin › Course) : fond du dossard et couleur du numéro, pour s'orienter sur place */
.bib__colors { padding: 10px 12px 12px; border-top: 1px dashed var(--line); }
.bib__colors-title { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bib__swatch { margin: 0; border-radius: 10px; padding: 10px 12px; text-align: center; background: var(--soft); color: var(--ink); border: 1.5px solid #000;
  font-family: var(--display); font-stretch: 80%; font-weight: 900; font-size: 30px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bib__swatch { border-color: #fff; } }
:root[data-theme="dark"] .bib__swatch { border-color: #fff; }
.bib__acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; }

/* ---------- Trouve ta course ---------- */
.finder { scroll-margin-top: 80px; }
.finder__grid { display: grid; gap: 18px; margin-top: 8px; }
@media (min-width: 900px) { .finder__grid { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 32px; align-items: start; } .finder__grid > :first-child { position: sticky; top: 130px; } }
@media (min-width: 1200px) { .finder__results { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .finder__results > [data-empty] { grid-column: 1 / -1; } }
.finder__grid > * { min-width: 0; }
.step { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.step legend, .step__legend { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; margin: 0 0 8px; padding: 0; }
.step i, .step__legend i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 13px; font-family: var(--display); font-weight: 800; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt { position: relative; border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 10px 12px; min-height: 62px; cursor: pointer; display: grid; align-content: center; gap: 1px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { font-weight: 700; }
.opt small { color: var(--muted); font-size: 13px; }
.opt:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 3px var(--glow); }
.opt:has(input:focus-visible) { outline: 3px solid var(--lake); outline-offset: 2px; }
.finder__results { display: grid; gap: 14px; }
.finder__hint { margin: 0; padding: 22px 18px; border: 2px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; grid-column: 1 / -1; }
@keyframes bib-flash { from { box-shadow: 0 0 0 6px var(--glow), var(--shadow); } to { box-shadow: 0 0 0 0 transparent, var(--shadow); } }
.bib--flash { animation: bib-flash 1.6s ease-out; }
.cat .tl { font-style: normal; color: var(--red); font-weight: 700; }

/* ---------- Parcours et catégories ---------- */
.routes { display: grid; gap: 12px; margin-top: 8px; }
@media (min-width: 900px) { .routes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.route { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.route--featured { border-color: var(--red); }
.route__km { font-family: var(--display); font-stretch: 65%; font-weight: 900; font-size: 56px; line-height: .85; color: var(--red); min-width: 70px; text-align: center; }
.route__km small { display: block; font-size: 15px; font-stretch: 100%; color: var(--muted); font-weight: 700; }
.route h3 { font-size: 17px; margin: 4px 0 4px; }
.route__stats { margin: 0 0 6px; font-size: 15px; color: var(--muted); }
.route__stats b { color: var(--ink); }
.route__times { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.route__price { display: grid; gap: 8px; margin: 0 0 12px; }
.price-box { display: grid; gap: 2px; background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.price-box__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.price-box b { font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 22px; line-height: 1.15; }
.price-box small { font-size: 14px; color: var(--muted); line-height: 1.4; }
.price-box small strong { color: var(--ink); }
.price-box__twint { display: flex; align-items: center; gap: 6px; color: var(--ink) !important; font-weight: 700; }
.twint { height: 18px; width: auto; vertical-align: middle; }
.twint--text { display: inline-block; height: auto; background: #000; color: #fff; font: 800 11px/1 var(--body); letter-spacing: .06em; padding: 4px 6px; border-radius: 5px; }
.route__closing { padding-left: 1.1em; margin: 0 0 12px; color: var(--muted); }
.cats { display: grid; gap: 6px; margin-top: 8px; }
@media (min-width: 900px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.cat { display: grid; grid-template-columns: 44px 60px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px 8px 8px; color: var(--ink); text-decoration: none; }
.cat:hover { border-color: var(--red); }
.cat img { width: 44px; height: 40px; object-fit: contain; background: #fff; border-radius: 8px; }
.cat b { font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 24px; }
.cat span { font-size: 14px; color: var(--muted); }
.cat time { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-variant-numeric: tabular-nums; }
.map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); aspect-ratio: 4 / 3; max-width: 100%; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Inscription ---------- */
.softtiming { min-height: 60px; margin: 12px 0; }
.prices { padding-top: 6px; padding-bottom: 6px; }
.price { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.price:first-child { border-top: 0; }
.price__km { font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 32px; color: var(--red); min-width: 64px; }
.price__note { font-size: 14px; color: var(--muted); }
.price b { font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 22px; white-space: nowrap; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: var(--red-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.steps span { color: var(--muted); font-size: 15px; }

/* ---------- Pages de texte ---------- */
.page__cards { display: grid; gap: 12px; }
@media (min-width: 900px) { .page__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .page__card--lead { grid-column: 1 / -1; } }
.page__card { scroll-margin-top: 80px; }
.page__card--lead { background: transparent; border: 0; padding: 0; }
.page__card--lead .prose { font-size: 18px; }
/* Listes dont chaque ligne commence par une heure ou un chiffre en gras (programme, tarifs) : en frise. */
.page__card .prose ul:has(> li > strong:first-child) { list-style: none; padding: 0; position: relative; display: grid; gap: 2px; }
.page__card .prose ul:has(> li > strong:first-child) > li { display: grid; grid-template-columns: fit-content(10em) minmax(0, 1fr); column-gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); margin: 0; }
.page__card .prose ul:has(> li > strong:first-child) > li > strong:first-child { min-width: 64px; }
.page__card .prose ul:has(> li > strong:first-child) > li:first-child { border-top: 0; }
.page__card .prose ul > li > strong:first-child { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 19px; color: var(--red); font-variant-numeric: tabular-nums; line-height: 1.3; }
.page--histoire .page__card .card__title, .page--la-maladie .page__card .card__title { color: var(--ink); }

/* ---------- Bénévoles ---------- */
.volunteer { margin-top: 16px; scroll-margin-top: 80px; }
.form { display: grid; gap: 14px; max-width: 760px; }
.slots { border: 0; padding: 0; margin: 0; }
.slots legend { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; padding: 0; }
.slot { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.slot input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red); }
.slot time { display: block; font-family: var(--display); font-stretch: 85%; font-weight: 800; font-variant-numeric: tabular-nums; }
.form__grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 4px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field textarea { font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--lake); outline: none; box-shadow: 0 0 0 3px color-mix(in oklab, var(--lake) 25%, transparent); }
.field--error input { border-color: var(--red); }
.field__error { color: var(--red); font-size: 14px; margin: 0; font-weight: 600; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Photos ---------- */
.albums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .albums { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.album { position: relative; display: block; aspect-ratio: 1 / 1; max-width: 100%; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, var(--red), #7A0B18); color: #fff; text-decoration: none; }
.album img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.album:hover img { transform: scale(1.04); }
.album__label { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); display: grid; }
.album__label b { font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 34px; line-height: .95; }
.album__label small { font-size: 13px; opacity: .9; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
@media (min-width: 760px) { .photos { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; } }
.photos__item { display: block; aspect-ratio: 1 / 1; max-width: 100%; overflow: hidden; border-radius: 8px; background: var(--soft); }
.photos__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; font-weight: 600; }
.lightbox { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .94); display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.lightbox__close { top: calc(14px + env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); }
.lightbox__nav--prev { left: max(10px, env(safe-area-inset-left, 0px)); top: 50%; }
.lightbox__nav--next { right: max(10px, env(safe-area-inset-right, 0px)); top: 50%; }

/* ---------- Menu Plus ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 96px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; color: var(--ink); text-decoration: none; }
.tile b { font-size: 16px; hyphens: auto; overflow-wrap: break-word; }
.tile small { color: var(--muted); font-size: 13px; }
.tile--hl { background: var(--red); color: var(--red-ink); border-color: var(--red); }
.tile--hl small { color: inherit; opacity: .85; }

/* ---------- Recherche ---------- */
.search { width: min(640px, 100%); max-width: 100%; height: min(640px, 100dvh); max-height: 100dvh; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter-r) 14px var(--gutter); border: 0; background: var(--paper); color: var(--ink); }
@media (min-width: 700px) { .search { margin-top: 80px; height: auto; max-height: 70vh; border-radius: 20px; padding: 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); } }
.search::backdrop { background: rgba(10, 15, 20, .5); backdrop-filter: blur(4px); }
.search__bar { display: flex; gap: 8px; align-items: center; }
.search__bar input { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.search__hits { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.search__hits a { display: grid; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.search__hits a:hover, .search__hits a:focus-visible { border-color: var(--red); }
.search__hits small { color: var(--muted); font-size: 14px; }

/* ---------- Pied de page ---------- */
.footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--card); }
.footer__in { max-width: 1240px; margin: 0 auto; padding: 28px max(22px, env(safe-area-inset-right, 0px)) 28px max(22px, env(safe-area-inset-left, 0px)); display: grid; gap: 22px; }
@media (min-width: 900px) { .footer__in { grid-template-columns: 1fr 1.2fr 1.4fr; align-items: start; padding-top: 40px; padding-bottom: 40px; } .footer__contact { grid-column: 1 / -1; } }
.footer__brand p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.footer .brand img, .footer .brand__logo { height: 30px; }
.unified-badge { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--plate); color: #3A4655; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; text-decoration: none; font-size: 13px; line-height: 1.4; }
.unified-badge img { width: 120px; height: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer__links a { color: var(--ink); font-weight: 600; text-decoration: none; padding: 6px 0; min-height: 36px; display: inline-flex; align-items: center; }
.footer__links a:hover { color: var(--red); }
.footer__admin { color: var(--muted) !important; }
.footer__contact { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Aperçu (admin) ---------- */
.preview-bar { position: sticky; top: 0; z-index: 30; background: #FFF4C2; color: #3A2E00; padding: 10px 16px; font-weight: 600; text-align: center; }
.preview-bar button { margin-left: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .twint--text { box-shadow: 0 0 0 1px #fff; } }
:root[data-theme="dark"] .twint--text { box-shadow: 0 0 0 1px #fff; }

/* ---------- Pages « à lire » : règlement, histoire, mucoviscidose ---------- */

.page--rich .page__card { position: relative; overflow: hidden; border-top: 5px solid var(--tone, var(--red)); }
.page--rich .page__card--t0 { --tone: #e1081c; --tone-soft: rgba(225, 8, 28, .08); }
.page--rich .page__card--t1 { --tone: #0e7a9a; --tone-soft: rgba(14, 122, 154, .1); }
.page--rich .page__card--t2 { --tone: #6FA318; --tone-soft: rgba(111, 163, 24, .12); }
.page--rich .page__card--t3 { --tone: #141A21; --tone-soft: rgba(20, 26, 33, .07); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page--rich .page__card--t3 { --tone: #EEF2F6; --tone-soft: rgba(238, 242, 246, .08); } }
:root[data-theme="dark"] .page--rich .page__card--t3 { --tone: #EEF2F6; --tone-soft: rgba(238, 242, 246, .08); }
.page--rich .page__card .card__title { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.page--rich .page__card { background: linear-gradient(180deg, var(--tone-soft), transparent 140px), var(--card); }
.page__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tone); color: #fff; }
.page__icon svg { width: 22px; height: 22px; }
.page--rich .page__card--t3 .page__icon { color: var(--card); }
.page--rich .prose strong { color: var(--tone, var(--ink)); }
.page--rich .page__card--t3 .prose strong { color: var(--ink); }

/* Histoire : frise */
.page--histoire .page__cards { grid-template-columns: 1fr; max-width: 860px; position: relative; padding-left: 92px; gap: 20px; }
.page--histoire .page__cards::before { content: ""; position: absolute; left: 38px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: linear-gradient(#e1081c, #0e7a9a, #6FA318); }
.page--histoire .page__card { overflow: visible; }
.page__year { position: absolute; left: -92px; top: 18px; width: 80px; text-align: center; font-family: var(--display); font-stretch: 80%; font-weight: 900; font-size: 22px; color: #fff; background: var(--tone); border-radius: 12px; padding: 8px 0; box-shadow: 0 0 0 5px var(--paper); }
@media (max-width: 600px) {
  .page--histoire .page__cards { padding-left: 0; }
  .page--histoire .page__cards::before { display: none; }
  .page__year { position: static; display: inline-block; width: auto; padding: 4px 12px; margin-bottom: 10px; box-shadow: none; }
}

/* Mucoviscidose : chiffres clés et symptômes */
@media (min-width: 900px) { .page--la-maladie .page__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .page--la-maladie .page__card:first-child { grid-column: 1 / -1; } }
.page--la-maladie .page__card .prose ul:has(> li > strong) { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.page--la-maladie .page__card .prose ul:has(> li > strong) > li { display: block; margin: 0; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--soft); color: var(--muted); font-size: 15px; line-height: 1.4; }
.page--la-maladie .page__card .prose ul:has(> li > strong) > li:nth-child(odd) { background: rgba(225, 8, 28, .08); }
.page--la-maladie .page__card .prose ul:has(> li > strong) > li:nth-child(even) { background: rgba(14, 122, 154, .1); }
.page--la-maladie .page__card .prose ul > li > strong { display: block; font-family: var(--display); font-stretch: 85%; font-weight: 900; font-size: 26px; line-height: 1.1; margin: 2px 0; color: #e1081c; }
.page--la-maladie .page__card .prose ul > li:nth-child(even) > strong { color: #0e7a9a; }

/* Symbole Marchethon dans le halo des titres de page (effet découpé) */
.hero::after { content: ""; position: absolute; z-index: -1; top: 8px; right: 8px; width: 96px; aspect-ratio: 71 / 70; background: var(--halo-mark); -webkit-mask: url("../img/marchethon-symbole.svg") center / contain no-repeat; mask: url("../img/marchethon-symbole.svg") center / contain no-repeat; pointer-events: none; }
@media (min-width: 1000px) {
  .hero::after { top: 28px; right: max(32px, calc((100% - 1240px) / 2 + 24px)); width: 220px; }
  .hero--home::after { top: 36px; width: 340px; right: max(24px, calc((100% - 1240px) / 2)); }
}
@media (max-width: 999px) { .hero--home::after { top: 34px; width: 110px; } }
/* Tourniquet : le symbole grandit depuis son centre en tournant à gauche, puis ralentit ~2 s (le vent tombe) */
@media (prefers-reduced-motion: no-preference) {
  .hero::after { transform-origin: 50% 50%; animation: tourniquet-grandit 1.2s cubic-bezier(.2, .7, .3, 1) .15s both, tourniquet-tourne 3.2s cubic-bezier(.12, .55, .25, 1) .15s both; }
}
@keyframes tourniquet-grandit { from { scale: 0; } to { scale: 1; } }
@keyframes tourniquet-tourne { from { rotate: 0deg; } to { rotate: -1080deg; } }
/* Pages « association et cause » : halo turquoise */
.theme-lake { --halo: rgba(14, 122, 154, .24); --accent: #0E7A9A; }
.theme-lake .hero .kicker { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-lake { --halo: rgba(40, 175, 215, .30); --accent: #4CC3E3; } }
:root[data-theme="dark"] .theme-lake { --halo: rgba(40, 175, 215, .30); --accent: #4CC3E3; }

/* Fin des inscriptions sur place (programme, prochain départ) */
.closing { display: block; color: var(--red); font-weight: 700; font-size: .92em; }
.answer .closing { display: inline; }
.page__card .prose li > .closing { grid-column: 2; margin-top: 2px; }
.now-card__closing { margin: 6px 0 0; font-weight: 800; color: var(--red); }

/* ---------- Classements ---------- */
.rhead { font-family: var(--display); font-stretch: 105%; font-weight: 800; font-size: 22px; line-height: 1.2; margin: 0 0 12px; }
.rsearch { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-width: 560px; margin-top: 14px; }
.rsearch input, .rtools input { width: 100%; min-height: 46px; padding: 0 14px; font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; }
.rsearch .btn { min-height: 46px; }
.rchips { display: flex; gap: 8px; overflow-x: auto; margin: 12px calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter-r) 4px var(--gutter); scrollbar-width: none; }
.rchip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer; font-variant-numeric: tabular-nums; }
.rchip small { font-weight: 500; font-size: 13px; color: var(--muted); }
.rchip[aria-pressed="true"], .rchip[aria-current="page"] { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 3px var(--glow); }

/* Cartes des courses : un dossard par course */
.rcards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.rcard { position: relative; display: grid; overflow: hidden; background: var(--bib-bg, var(--ink)); color: var(--bib-num, var(--paper)); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; box-shadow: var(--shadow); }
.rcard:hover { transform: translateY(-1px); }
.rcard::before, .rcard::after { content: ""; position: absolute; top: 44px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }
.rcard::before { left: 10px; } .rcard::after { right: 10px; }
.rcard__band { display: flex; justify-content: space-between; gap: 8px; padding: 9px 14px; border-bottom: 1px dashed color-mix(in srgb, currentColor 40%, transparent); font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.rcard__km { padding: 10px 30px 2px; font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 84px; line-height: .95; font-variant-numeric: tabular-nums; }
.rcard__km small { margin-left: 4px; font-size: 30px; font-weight: 800; }
.rcard__foot { padding: 0 30px 14px; font-size: 14px; }
.rcard__foot b { font-family: var(--display); font-size: 16px; font-weight: 800; }

/* En-tête d'une course */
.hero--race { padding-bottom: 8px; }
.rback { margin: 0 0 8px; }
.rback a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.rplate { position: relative; overflow: hidden; max-width: 640px; background: var(--bib-bg, var(--ink)); color: var(--bib-num, var(--paper)); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.rplate::before, .rplate::after { content: ""; position: absolute; top: 48px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }
.rplate::before { left: 12px; } .rplate::after { right: 12px; }
.rplate__band { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 10px 16px; border-bottom: 1px dashed color-mix(in srgb, currentColor 40%, transparent); font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.rplate__core { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 4px 16px; padding: 14px 34px 8px; }
.rplate__km { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 104px; line-height: .86; font-variant-numeric: tabular-nums; }
.rplate__km small { margin-left: 4px; font-size: 36px; font-weight: 800; }
.rplate__title { margin: 0 0 6px; font-family: var(--display); font-stretch: 105%; font-weight: 800; font-size: 26px; line-height: 1.1; }
.rplate__facts { display: flex; margin: 0; border-top: 1px dashed color-mix(in srgb, currentColor 40%, transparent); }
.rplate__facts div { flex: 1 1 0; padding: 10px 16px; }
.rplate__facts div + div { border-left: 1px dashed color-mix(in srgb, currentColor 40%, transparent); }
.rplate__facts dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.rplate__facts dd { margin: 0; font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; }
.rnote { margin: 0; padding: 12px 16px; background: var(--soft); border-radius: 14px; color: var(--ink); }

/* Podiums */
.rpods { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.rpod { padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.rpod__title { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: 18px; }
.rpod__title small { font-family: var(--body); font-weight: 500; font-size: 14px; color: var(--muted); }
.rpod__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rpod__list a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; color: inherit; text-decoration: none; }
.rmedal { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-family: var(--display); font-weight: 800; font-size: 14px; color: #1a1a1a; }
.rmedal--1 { background: #F2C230; } .rmedal--2 { background: #C9D0D6; } .rmedal--3 { background: #DD9A5B; }
.rpod__name { font-weight: 700; overflow-wrap: anywhere; line-height: 1.25; }
.rpod__time { font-family: var(--display); font-stretch: 85%; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Liste */
.rtools { position: sticky; top: 56px; z-index: 5; display: grid; gap: 0; margin: 0 calc(-1 * var(--gutter-r)) 10px calc(-1 * var(--gutter)); padding: 8px var(--gutter-r) 6px var(--gutter); background: color-mix(in oklab, var(--paper) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rtools .rchips { margin-top: 8px; }
.rcount { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.rcount:empty { display: none; }
.rlist { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.rlist > li + li { border-top: 1px solid var(--line); }
.rlist + .rhead { margin-top: 28px; }
.rrow { display: grid; grid-template-columns: 34px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; min-height: 60px; scroll-margin-top: 190px; content-visibility: auto; contain-intrinsic-size: auto 60px; }
.rrow:target { background: var(--glow); }
.rrow--link { color: inherit; text-decoration: none; }
.rlist--plain .rrow { grid-template-columns: auto minmax(0, 1fr) auto; }
.rrow__rank { font-family: var(--display); font-stretch: 75%; font-weight: 900; font-size: 24px; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
.rrow__who { min-width: 0; line-height: 1.25; }
.rrow__who b { display: block; font-weight: 700; overflow-wrap: anywhere; }
.rrow__who small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.rrow__time { display: grid; justify-items: end; font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 17px; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rrow__time small { font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--muted); }
/* L'écart est mesuré sur le meilleur temps de la course : sans objet dans une seule catégorie. */
.is-filtered-cat .rrow__time small { display: none; }
.rrow__time--status { font-family: var(--body); font-weight: 700; font-size: 13px; color: var(--muted); }

/* Petit dossard : les couleurs de la catégorie, deux trous d'épingle */
.rbib { position: relative; display: inline-block; min-width: 54px; padding: 7px 8px 5px; border: 1px solid var(--line); border-radius: 6px; background: var(--bib-bg, var(--soft)); color: var(--bib-num, var(--ink)); font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 18px; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
.rbib::before, .rbib::after { content: ""; position: absolute; top: 2.5px; width: 3px; height: 3px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25); }
.rbib::before { left: 3px; } .rbib::after { right: 3px; }

@media (min-width: 900px) {
  .rtools { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 0 14px; align-items: center; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; top: 104px; }
  .rtools .rchips { margin: 0; padding: 2px 0 4px; flex-wrap: wrap; overflow: visible; }
  .rrow { grid-template-columns: 52px 72px minmax(0, 1fr) auto; gap: 14px; padding: 10px 18px; }
  .rlist--plain .rrow { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .rrow__rank { font-size: 28px; }
  .rrow__who { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
  .rrow__who small { margin-top: 0; text-align: right; font-size: 14px; }
  .rrow--link { padding: 10px 18px; }
}

/* Classements : colonne de remerciement aux participants plaisir */
.rlayout { display: grid; gap: 24px; }
.rlayout > * { min-width: 0; }
@media (min-width: 1000px) { .rlayout--aside { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; } .rlayout--aside .rthanks { position: sticky; top: 130px; } }
.rthanks { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.rthanks::after { content: ""; position: absolute; right: -50px; top: -50px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, var(--halo), transparent 70%); pointer-events: none; }
.rthanks__kicker { margin: 0; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.rthanks__count { margin: 6px 0 4px; font-family: var(--display); font-stretch: 65%; font-weight: 900; font-size: 84px; line-height: .9; font-variant-numeric: tabular-nums; }
.rthanks__count small { display: block; margin-top: 4px; font-family: var(--body); font-stretch: 100%; font-weight: 700; font-size: 16px; opacity: .8; }
.rthanks__detail { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 10px 0 0; padding: 0; }
.rthanks__detail li { padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 14%, transparent); font-size: 14px; }
.rthanks__title { margin: 18px 0 6px; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 24px; }
.rthanks__text { opacity: .92; }
.rthanks__text p:last-child { margin-bottom: 0; }
.rthanks__text a { color: inherit; }
