/* =========================================================
   Team Triathlon Roquebrune — feuille de style du site public
   ========================================================= */

/* ---------- Polices (hébergées sur le site, licence OFL) ---------- */
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }

/* ---------- Variables ---------- */
:root {
  --brand: #f47621;
  --brand-hover: #ff8b3d;
  --brand-strong: #c2410c;
  --brand-soft: #fff0e5;
  --ink: #141414;
  --ink-2: #1e1e21;
  --ink-3: #2b2b2f;
  --paper: #ffffff;
  --sand: #f6f3ee;
  --line: #e8e2d9;
  --text: #1c1b1a;
  --muted: #5c5752;
  --on-dark: #f5f2ed;
  --on-dark-muted: #bdb6ad;
  --teal: #0b7373;
  --teal-deep: #062f33;
  --teal-bright: #31bdb5;
  --teal-soft: #ddf3f1;
  --gold: #e6ab33;
  --danger: #b42318;
  --success: #067647;
  /* Formats du triathlon (badges, graphique) : XS = violet (super sprint 2009-2010), S = orange du club, M = turquoise du MADROQ.
     Trio validé (daltonisme, contraste ≥ 3:1 sur fond blanc) ; texte posé dessus : encre, blanc sur le violet. */
  --format-xs: #7b61c9;
  --format-s: #e8641a;
  --format-m: #1a9a92;

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 14px;
  --radius-sm: 8px;
  --skew: -10deg;
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, .06), 0 4px 14px -6px rgba(20, 20, 20, .12);
  --shadow: 0 18px 40px -18px rgba(20, 20, 20, .35);
  --header-h: 5.5rem;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-strong); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; color: inherit; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p, ul, ol, dl { margin: 0 0 1em; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem;
  background: var(--brand); color: var(--ink); font-weight: 700; text-decoration: none; border-radius: 4px;
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }

/* ---------- Typographie de marque ---------- */
.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.005em;
}
.accent { color: var(--brand); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; }
.muted { color: var(--muted); }

/* Sur-titre précédé des trois bandes (natation, vélo, course à pied) */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  margin: 0 0 1rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-strong);
}
.eyebrow::before {
  content: ""; flex: none; width: 2.4rem; height: .55rem;
  background: linear-gradient(90deg, var(--brand) 0 26%, transparent 26% 37%, var(--brand) 37% 63%, transparent 63% 74%, var(--brand) 74%);
  transform: skewX(var(--skew));
}
.on-dark .eyebrow, .eyebrow-light { color: var(--brand); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
  color: var(--brand-strong);
}
.link-arrow .icon { width: 1.15em; height: 1.15em; transition: transform .2s ease; }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover .icon { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--brand); }
.on-dark .link-arrow:hover { color: #fff; }

.icon { width: 1.25rem; height: 1.25rem; flex: none; }

/* ---------- Boutons (parallélogrammes) ---------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: var(--ink); --btn-border: transparent;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; line-height: 1.1;
  letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
  color: var(--btn-fg); background: none; border: 0; cursor: pointer;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-bg); border: 2px solid var(--btn-border); border-radius: 3px;
  transform: skewX(var(--skew));
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { color: var(--btn-fg); }
.btn:hover::before { transform: skewX(var(--skew)) translateY(-2px); }
.btn:active::before { transform: skewX(var(--skew)); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-primary:hover { --btn-bg: var(--brand-hover); }
.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn-dark:hover { --btn-bg: var(--ink-3); }
.btn-ghost { --btn-bg: transparent; --btn-border: currentColor; --btn-fg: var(--ink); }
.btn-ghost:hover { --btn-bg: rgba(20, 20, 20, .06); }
.btn-light { --btn-bg: transparent; --btn-border: rgba(255, 255, 255, .7); --btn-fg: #fff; }
.btn-light:hover { --btn-bg: rgba(255, 255, 255, .12); --btn-border: #fff; }
.btn-teal { --btn-bg: var(--teal-bright); --btn-fg: var(--teal-deep); }
.btn-teal:hover { --btn-bg: #4fd0c8; }
.btn-sm { padding: .55rem 1.05rem; font-size: .98rem; }
.btn[aria-disabled="true"] { pointer-events: none; opacity: .55; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; color: #fff; }
/* Le flou est porté par un pseudo-élément : sur l'en-tête lui-même, il emprisonnerait le menu mobile (position: fixed). */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(20, 20, 20, .94);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
/* Logo officiel (lettres noires) : posé sur une plaque blanche inclinée, sur toute la hauteur de la barre. */
.brand { position: relative; isolation: isolate; flex: none; align-self: stretch; display: flex; align-items: center; padding: 0 1.15rem; }
.brand::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: skewX(var(--skew)); }
.brand img { display: block; width: auto; height: calc(var(--header-h) - 1.1rem); }
.logo-tt { fill: currentColor; }
.logo-r { fill: var(--brand); }
@media (max-width: 1199px) { :root { --header-h: 5rem; } }
@media (max-width: 559px) { :root { --header-h: 4.5rem; } .brand { padding-inline: .9rem; } }

.site-nav ul { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.site-nav a:not(.btn) {
  position: relative; display: block; padding: .55rem .75rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: #e7e3dd;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .2rem; height: 3px;
  background: var(--brand); transform: scaleX(0) skewX(var(--skew)); transform-origin: left;
  transition: transform .25s ease;
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: #fff; }
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current]::after { transform: scaleX(1) skewX(var(--skew)); }
.nav-cta { margin-left: .75rem; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 2.9rem; height: 2.9rem; padding: 0;
  color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; cursor: pointer;
}
.nav-toggle .icon { width: 1.5rem; height: 1.5rem; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* Menu complet à partir de 1200 px (libellé « Résultats Triathlon RCM »), menu déroulant en dessous. */
@media (max-width: 1199px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    padding: 1.5rem var(--gutter) 2.5rem;
    background: var(--ink); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-.75rem);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .nav-open { overflow: hidden; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.btn) { padding: .9rem 0; font-size: 1.7rem; font-style: italic; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .site-nav a:not(.btn)::after { left: 0; right: auto; width: 3rem; bottom: .55rem; }
  .nav-cta { margin: 1.75rem 0 0; }
  .nav-cta .btn { width: 100%; padding: 1rem; font-size: 1.15rem; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2.5rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head h2 { margin: 0; }
.section-head p { margin: .6rem 0 0; max-width: 40rem; color: var(--muted); }
.on-dark .section-head p { color: var(--on-dark-muted); }
.section-title { font-size: clamp(2.1rem, 5vw, 3.4rem); }

/* ---------- Accueil : triptyque T·T·R (une lettre du logo par discipline) ---------- */
/* Survol ou passage automatique : le panneau s'ouvre, l'athlète avance et les séances apparaissent (js/home.js). */
.tri { position: relative; isolation: isolate; background: var(--ink); color: #fff; }
.tri-panels {
  --gap: 5px;
  --h: clamp(500px, calc(100svh - var(--header-h) - 9.5rem), 860px);
  --s: calc(var(--h) * .1763); /* décalage horizontal d'une coupe inclinée à -10° */
  display: flex; height: var(--h); overflow: hidden;
}
.tri-panel {
  position: relative; isolation: isolate; display: block; flex: 1 1 0; min-width: 0;
  margin-left: calc(var(--gap) - var(--s));
  clip-path: polygon(var(--s) 0, 100% 0, calc(100% - var(--s)) 100%, 0 100%);
  color: #fff; text-decoration: none; overflow: hidden; cursor: pointer;
  transition: flex-grow .9s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.tri-panel:first-child { margin-left: 0; clip-path: polygon(0 0, 100% 0, calc(100% - var(--s)) 100%, 0 100%); }
.tri-panel:last-child { clip-path: polygon(var(--s) 0, 100% 0, 100% 100%, 0 100%); }
.tri-panel:hover { color: #fff; }
.tri-panel:focus-visible { outline: none; }
.tri-panel.is-active { flex-grow: 2.15; }
.tri-inner { position: absolute; inset: 0; overflow: hidden; animation: tri-up 1.1s var(--ease) calc(.1s + var(--i) * .12s) both; }
.is-swim .tri-inner { background: radial-gradient(120% 70% at 30% 0%, #1b8f99 0%, transparent 62%), linear-gradient(180deg, #0d5f6b 0%, #0a4853 48%, #06323a 100%); }
.is-bike .tri-inner { background: radial-gradient(90% 60% at 70% 18%, #3b3b42 0%, transparent 70%), linear-gradient(180deg, #252529, #111113); }
.is-run .tri-inner { background: radial-gradient(100% 70% at 62% 8%, #ffa866 0%, transparent 62%), linear-gradient(180deg, #f6873a, #d9560f); }

.tri-letter {
  position: absolute; z-index: 1; left: 16%; top: -.07em;
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: calc(var(--h) * 1.12); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .2);
  translate: calc(var(--mx, 0) * -26px) calc(var(--my, 0) * -14px); transform-origin: 30% 40%;
  user-select: none; pointer-events: none;
  animation: tri-letter 1.3s var(--ease-out) calc(.45s + var(--i) * .12s) both;
  transition: translate .6s var(--ease-out), color .7s ease, -webkit-text-stroke-color .7s ease;
}
.tri-panel.is-active .tri-letter { color: rgba(255, 255, 255, .07); -webkit-text-stroke-color: rgba(255, 255, 255, .5); }
.is-run .tri-letter { -webkit-text-stroke-color: rgba(20, 20, 20, .25); }
.is-run.is-active .tri-letter { color: rgba(20, 20, 20, .1); -webkit-text-stroke-color: rgba(20, 20, 20, .55); }

.tri-athlete {
  position: absolute; z-index: 3; left: 50%; bottom: 0;
  transform: translateX(-50%); transform-origin: 50% 100%;
  translate: calc(var(--mx, 0) * 14px) calc(var(--my, 0) * 8px);
  transition: translate .6s var(--ease-out), scale .9s var(--ease), filter .6s ease;
  pointer-events: none;
}
.tri-athlete img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 28px rgba(0, 0, 0, .38)); }
.is-swim .tri-athlete { height: 46%; aspect-ratio: 1345 / 567; bottom: 6%; }
.is-bike .tri-athlete { height: 76%; aspect-ratio: 366 / 596; bottom: 5%; left: 55%; }
.is-run .tri-athlete { height: 88%; aspect-ratio: 287 / 847; bottom: -1%; left: 57%; }
.tri-panel.is-active .tri-athlete { scale: 1.07; }
.tri.has-active .tri-panel:not(.is-active) .tri-athlete { filter: saturate(.3) brightness(.62); }
.is-swim .tri-athlete img { animation: tri-rise 1.5s var(--ease-out) .85s both, tri-sway 3.2s ease-in-out 2.4s infinite alternate; }
.is-bike .tri-athlete img { animation: tri-ride-in 1.3s var(--ease-out) 1s both, tri-bob 2.2s ease-in-out 2.3s infinite alternate; }
.is-run .tri-athlete img { animation: tri-run-in 1.3s var(--ease-out) 1.15s both, tri-stride .36s ease-in-out 2.5s infinite alternate; }

/* Natation : houle */
.wave {
  position: absolute; left: 0; bottom: 0; width: calc(100% + 480px);
  background-repeat: repeat-x, no-repeat; background-size: 480px 38px, 100% calc(100% - 37px); background-position: 0 0, 0 37px;
  animation: tri-swell var(--d, 9s) linear infinite; pointer-events: none;
}
.wave-back { z-index: 2; height: 52%; --d: 15s; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 38' preserveAspectRatio='none'%3E%3Cpath d='M0 19C60 4 180 4 240 19S420 34 480 19V38H0Z' fill='%23137c86'/%3E%3C/svg%3E"), linear-gradient(#137c86, #137c86); }
.wave-mid { z-index: 2; height: 38%; --d: 11s; animation-direction: reverse; opacity: .7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 38' preserveAspectRatio='none'%3E%3Cpath d='M0 22C80 8 160 8 240 22S400 36 480 22V38H0Z' fill='%230b6670'/%3E%3C/svg%3E"), linear-gradient(#0b6670, #0b6670); }
.wave-front { z-index: 4; height: 21%; --d: 7s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 38' preserveAspectRatio='none'%3E%3Cpath d='M0 20C60 6 180 6 240 20S420 34 480 20V38H0Z' fill='%23074550'/%3E%3Cpath d='M0 20C60 6 180 6 240 20S420 34 480 20' fill='none' stroke='%2331bdb5' stroke-width='2' stroke-opacity='.7'/%3E%3C/svg%3E"), linear-gradient(#074550, #06323a); }
.glints { position: absolute; z-index: 2; inset: 40% 0 30%; pointer-events: none; }
.glints i { position: absolute; left: var(--x); top: var(--y); width: 18px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .8); opacity: 0; animation: tri-glint 3.4s ease-in-out var(--delay) infinite; }

/* Vélo : traînées de vitesse et relief */
.streaks { position: absolute; z-index: 1; inset: -30%; transform: rotate(-32deg); pointer-events: none; }
.streaks i { position: absolute; left: 0; top: var(--t); width: var(--w); height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); animation: tri-streak var(--d) linear var(--delay) infinite; }
.streaks i.o { height: 3px; background: linear-gradient(90deg, transparent, rgba(244, 118, 33, .85), transparent); }
.ridge { position: absolute; z-index: 1; left: 0; bottom: 0; width: 100%; height: 36%; color: #0c0c0e; opacity: .9; }
.ridge-far { height: 48%; color: #1b1b1f; }

/* Course à pied : piste */
.track { position: absolute; z-index: 1; left: 0; bottom: 0; width: 100%; height: 34%; }
.track-bar { position: absolute; z-index: 1; left: -10%; right: -10%; bottom: 34%; height: 3px; background: rgba(255, 255, 255, .55); animation: tri-approach 1.5s cubic-bezier(.55, 0, 1, .45) var(--delay) infinite; }

/* Légendes et séances */
.tri-caption { position: absolute; z-index: 5; left: clamp(1.1rem, 2.4vw, 2rem); right: 1rem; bottom: clamp(1rem, 2.4vw, 1.75rem); }
.tri-index {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .35rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .16em; text-transform: uppercase;
  animation: tri-fade-up .6s var(--ease-out) calc(1.1s + var(--i) * .12s) both;
}
.tri-index b { font-style: italic; font-weight: 800; font-size: 1.1rem; color: var(--brand); }
.is-run .tri-index { color: var(--ink); }
.is-run .tri-index b { color: #fff; }
.tri-verb {
  display: block; overflow: hidden; padding-right: .2em;
  font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: clamp(3rem, 6.3vw, 6.8rem); line-height: .9; letter-spacing: -.005em;
  text-shadow: 0 6px 32px rgba(0, 0, 0, .35);
}
.tri-verb span { display: inline-block; animation: tri-slide-up .9s var(--ease-out) calc(.75s + var(--i) * .14s + var(--c) * .035s) both; }
.tri-details {
  position: absolute; z-index: 5; top: clamp(1rem, 2.4vw, 1.6rem); right: clamp(1.1rem, 2.4vw, 2rem);
  width: min(19rem, 70%); padding: .9rem 1.1rem .8rem; text-align: right;
  background: rgba(12, 12, 14, .58); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-right: 4px solid var(--brand); border-radius: 3px;
  opacity: 0; transform: translateY(-10px); transition: opacity .35s ease, transform .35s ease; pointer-events: none;
}
.tri-panel.is-active .tri-details { opacity: 1; transform: none; transition: opacity .6s ease .35s, transform .7s var(--ease-out) .35s; }
.tri-details p { margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 700; font-size: .92rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.tri-details ul { margin: 0 0 .7rem; padding: 0; list-style: none; font-size: .95rem; line-height: 1.4; }
.tri-details li { padding: .45rem 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.tri-details strong { display: block; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase; }
.tri-note { display: block; margin-top: .15rem; font-size: .85rem; color: var(--on-dark-muted); }
.tri-more { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.tri-more .icon { width: 1.1em; height: 1.1em; }
.tri-progress { position: absolute; z-index: 6; left: 0; bottom: 0; width: calc(100% - var(--s)); height: 4px; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.is-run .tri-progress { background: var(--ink); }
.tri.is-auto .tri-panel.is-active .tri-progress { animation: tri-fill var(--auto, 3.6s) linear forwards; }
.tri-panel:focus-visible .tri-progress { transform: none; height: 6px; background: #fff; }

/* Bandeau sous le triptyque */
.tri-bar-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem 2.5rem; min-height: 9.5rem; padding: 1.25rem 0; }
.tri-title { margin: 0; font-size: clamp(2.5rem, 4.8vw, 4.2rem); color: var(--brand); white-space: nowrap; }
.tri-title .line { display: block; overflow: hidden; }
.tri-title .line > span { display: block; animation: tri-slide-up 1s var(--ease-out) 1.35s both; }
.tri-lead { margin: 0; max-width: 34rem; font-size: 1.05rem; color: var(--on-dark-muted); animation: tri-fade-in .9s ease 1.6s both; }
.tri-bar .actions { animation: tri-fade-in .9s ease 1.6s both; }

/* Étiquette qui suit la souris */
.cursor-tag {
  position: fixed; left: 0; top: 0; z-index: 60; margin: 18px 0 0 18px; padding: .45rem .9rem .45rem .8rem;
  display: inline-flex; align-items: center; gap: .4rem; pointer-events: none;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); opacity: 0; transition: opacity .2s ease;
}
.cursor-tag::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; border-radius: 2px; transform: skewX(var(--skew)); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); }
.cursor-tag.is-visible { opacity: 1; }
.cursor-tag .icon { width: 1.05em; height: 1.05em; }

@keyframes tri-up { from { transform: translateY(101%); } }
@keyframes tri-letter { from { opacity: 0; transform: scale(1.25); } }
@keyframes tri-fade-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes tri-fade-in { from { opacity: 0; } }
@keyframes tri-slide-up { from { transform: translateY(105%); } }
@keyframes tri-rise { from { opacity: 0; transform: translateY(55%); } }
@keyframes tri-ride-in { from { opacity: 0; transform: translate(75%, -30%) scale(.75) rotate(6deg); } }
@keyframes tri-run-in { from { opacity: 0; transform: translateY(16%) scale(.8); } }
@keyframes tri-sway { to { translate: 0 3%; } }
@keyframes tri-bob { to { translate: -1.5% 1.2%; rotate: -1.2deg; } }
@keyframes tri-stride { to { translate: 0 -1.1%; } }
@keyframes tri-swell { from { transform: translateX(-480px); } to { transform: translateX(0); } }
@keyframes tri-glint { 0%, 100% { opacity: 0; transform: scaleX(.3); } 50% { opacity: .85; transform: scaleX(1); } }
@keyframes tri-streak { from { transform: translateX(-110%); } to { transform: translateX(380%); } }
@keyframes tri-approach { from { transform: translateY(0) scaleX(.25); opacity: 0; } 15% { opacity: .8; } to { transform: translateY(calc(var(--h) * .34)) scaleX(1.2); opacity: .2; } }
@keyframes tri-fill { to { transform: scaleX(1); } }

/* Petits écrans : panneaux empilés, 1er appui = ouvrir, 2e appui = planning */
@media (max-width: 760px) {
  .tri-panels { --s: 0px; --gap: 0px; --h: calc(100svh - var(--header-h) - 15rem); flex-direction: column; height: auto; }
  .tri-panel { flex: none; height: calc(max(420px, var(--h)) / 3); margin: -14px 0 0; clip-path: polygon(0 18px, 100% 0, 100% calc(100% - 18px), 0 100%); transition: height .8s var(--ease); }
  .tri-panel:first-child { margin-top: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), 0 100%); }
  .tri-panel:last-child { clip-path: polygon(0 18px, 100% 0, 100% 100%, 0 100%); }
  .tri-panel.is-active { height: calc(max(420px, var(--h)) * .6); }
  .tri-letter { left: 34%; top: -.05em; font-size: 15rem; }
  .tri-verb { font-size: 3.1rem; }
  .tri-caption { bottom: 1.3rem; }
  .is-swim .tri-athlete { height: 52%; left: 62%; bottom: 8%; }
  .is-bike .tri-athlete { height: 104%; left: 72%; bottom: -14%; }
  .is-run .tri-athlete { height: 122%; left: 76%; bottom: -30%; }
  .tri-details { left: 1.1rem; right: auto; top: 1.8rem; width: 58%; padding: .6rem .8rem; text-align: left; }
  .tri-details ul { margin: 0; font-size: .85rem; }
  .tri-details li { padding: 0; border: 0; }
  .tri-details li:nth-child(n+2), .tri-details p, .tri-details .tri-more, .tri-note { display: none; }
  .tri-progress { width: 100%; }
  .tri-bar-inner { grid-template-columns: 1fr; gap: .8rem; padding: 1.6rem 0 2rem; }
  .tri-title { font-size: 2.7rem; }
}

/* ---------- Accueil : bandeau défilant ---------- */
.ticker { position: relative; z-index: 2; overflow: hidden; margin: .6rem 0 -1.4rem; padding: 1rem 0; background: var(--brand); color: var(--ink); transform: skewY(-1.6deg); }
.ticker-track { display: flex; align-items: center; gap: 2rem; width: max-content; will-change: transform; }
.ticker-track span { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.7rem); line-height: 1; text-transform: uppercase; white-space: nowrap; }
.ticker-track span.out { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.ticker-track i { flex: none; width: 2.8rem; height: .75rem; background: linear-gradient(90deg, var(--ink) 0 26%, transparent 26% 37%, var(--ink) 37% 63%, transparent 63% 74%, var(--ink) 74%); transform: skewX(var(--skew)); }

/* ---------- Accueil : chiffres ---------- */
.figures { padding: calc(var(--section) + 1.4rem) 0 var(--section); background: var(--sand); }
.figures-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.figure-num { display: block; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(3.6rem, 7vw, 5.6rem); line-height: .9; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.figure-num small { margin-left: .1em; font-size: .45em; color: var(--brand-strong); }
.figure-num small.sup { vertical-align: .95em; }
.figure-bar {
  display: block; width: 4.6rem; height: .55rem; margin: .9rem 0 .8rem;
  background: linear-gradient(90deg, var(--brand) 0 26%, transparent 26% 37%, var(--brand) 37% 63%, transparent 63% 74%, var(--brand) 74%);
  transform: skewX(var(--skew)); transform-origin: left;
}
.js .figure-bar { transform: skewX(var(--skew)) scaleX(0); transition: transform .9s var(--ease-out) .3s; }
.js .is-in .figure-bar { transform: skewX(var(--skew)) scaleX(1); }
.figure-label { max-width: 15rem; margin: 0; font-size: .95rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Apparition au défilement (classe « js » posée par js/home.js) */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 1s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.meta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.meta-list li { display: flex; align-items: flex-start; gap: .6rem; line-height: 1.4; }
.meta-list .icon { width: 1.1rem; height: 1.1rem; margin-top: .15rem; color: var(--brand); }

/* ---------- Accueil : MADROQ et profil du parcours vélo ---------- */
.home-madroq { padding: var(--section) 0; background: radial-gradient(80% 70% at 85% 20%, #0b4a50 0%, var(--teal-deep) 60%); color: #fff; }
.home-madroq-grid { display: grid; gap: 2.5rem 3.5rem; align-items: center; }
@media (min-width: 980px) { .home-madroq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.home-madroq .madroq-date { margin-bottom: 1.6rem; }
.profile { margin: 0; padding: 1.4rem 1.4rem 1rem; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); }
.profile-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; }
.profile-head strong { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.profile-readout { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.profile-readout [data-km] { color: var(--teal-bright); }
.profile-place { min-height: 1.4em; margin: .2rem 0 .4rem; text-align: right; font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.profile svg { width: 100%; height: auto; overflow: visible; cursor: crosshair; touch-action: pan-y; }
.profile-axis { font-family: var(--font-body); font-size: 13px; font-weight: 600; fill: #86b3ae; }
.profile-peak { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 19px; fill: var(--gold); }
.profile-legend { display: flex; justify-content: space-between; gap: 1rem; margin-top: .4rem; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9cc7c3; }
.profile-note { margin: .6rem 0 0; font-size: .82rem; color: #86b3ae; }
@media (max-width: 600px) { .profile-axis, .profile-peak { display: none; } }
.profile-note a { color: inherit; }
.profile-note a:hover { color: #fff; }
.home-legs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); margin-top: 2.6rem; }
.home-leg { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; background: rgba(255, 255, 255, .04); border-left: 4px solid var(--teal-bright); }
.home-leg .icon { width: 2rem; height: 2rem; color: var(--teal-bright); }
.home-leg:nth-child(2) { border-color: var(--gold); }
.home-leg:nth-child(2) .icon { color: var(--gold); }
.home-leg b { display: block; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.9rem; line-height: 1; }
.home-leg span { font-size: .9rem; color: #bcd9d6; }

/* ---------- Accueil : rejoindre le club ---------- */
.join { position: relative; isolation: isolate; overflow: hidden; padding: var(--section) 0 0; background: var(--ink); color: var(--on-dark); }
.join-ttr {
  position: absolute; z-index: -1; top: 8%; left: 0; white-space: nowrap; will-change: transform;
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(10rem, 28vw, 26rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .07);
}
.join-ttr em { font-style: inherit; -webkit-text-stroke-color: rgba(244, 118, 33, .25); }
.join-grid { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 960px) { .join-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.join-copy { padding-bottom: var(--section); }
.join-copy p { max-width: 32rem; color: var(--on-dark-muted); }
.join-copy .section-title { color: #fff; }
.join-visual { position: relative; align-self: end; }
.join-visual::before { content: ""; position: absolute; z-index: 0; left: 12%; right: -30%; top: 22%; bottom: 0; background: linear-gradient(140deg, var(--brand), #ff9b52); transform: skewX(var(--skew)); }
.join-visual img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .35)); }

/* Mouvement réduit : pas d'intro, d'ondulation ni de défilement automatique */
@media (prefers-reduced-motion: reduce) {
  .tri-inner, .tri-letter, .tri-index, .tri-verb span, .tri-title .line > span, .tri-lead, .tri-bar .actions,
  .tri-athlete img, .wave, .glints i, .streaks i, .track-bar { animation: none !important; }
  .tri-panel, .tri-athlete { transition-duration: .2s; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .figure-bar { transform: skewX(var(--skew)); transition: none; }
}

.madroq-kicker { margin: 0 0 .4rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.madroq-wordmark { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(4rem, 13vw, 8.5rem); line-height: .82; letter-spacing: .03em; color: #fff; }
.madroq-wordmark span { color: var(--teal-bright); }
.madroq-sub { margin: .9rem 0 1.4rem; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: .14em; text-transform: uppercase; color: #d7ecea; }
.status-chip {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; padding: .35rem .8rem;
  font-size: .9rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--teal-deep); background: var(--gold); border-radius: 999px;
}
.status-chip::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }

/* ---------- Cartes (actualités) ---------- */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card:focus-within { box-shadow: 0 0 0 3px var(--brand), var(--shadow); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-placeholder {
  display: grid; place-items: center; height: 100%;
  background:
    repeating-linear-gradient(110deg, transparent 0 46px, rgba(244, 118, 33, .9) 46px 62px, transparent 62px 78px, rgba(244, 118, 33, .55) 78px 88px, transparent 88px 140px),
    var(--ink);
}
.card-placeholder svg { width: 42%; color: #fff; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .4)); }
.card-placeholder.is-madroq { background: repeating-linear-gradient(110deg, transparent 0 46px, rgba(49, 189, 181, .75) 46px 62px, transparent 62px 78px, rgba(230, 171, 51, .7) 78px 88px, transparent 88px 140px), var(--teal-deep); }
.card-placeholder .placeholder-word { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.2rem); letter-spacing: .03em; color: #fff; text-shadow: 0 4px 18px rgba(0, 0, 0, .45); }
.card-body { display: flex; flex: 1; flex-direction: column; gap: .65rem; padding: 1.3rem 1.4rem 1.6rem; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; font-size: .85rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.card-title { margin: 0; font-size: 1.55rem; line-height: 1.08; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-excerpt { margin: 0; color: var(--muted); }
.card-more { margin-top: auto; padding-top: .3rem; }
.tag {
  display: inline-block; padding: .18rem .6rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--brand-strong); background: var(--brand-soft);
}
.tag-madroq { color: var(--teal); background: var(--teal-soft); }

/* ---------- Mosaïque d'albums (accueil) ---------- */
.mosaic { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 10.5rem; }
.mosaic > :first-child { grid-column: span 2; grid-row: span 2; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 13.5rem; }
}
.tile { position: relative; isolation: isolate; overflow: hidden; display: block; border-radius: var(--radius-sm); background: var(--ink-2); color: #fff; text-decoration: none; }
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(20, 20, 20, .85)); }
.tile:hover { color: #fff; }
.tile:hover img { transform: scale(1.05); }
.tile-label { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; font-family: var(--font-display); line-height: 1.05; }
.tile-label strong { display: block; font-style: italic; font-weight: 800; font-size: 1.45rem; text-transform: uppercase; }
.tile-label span { font-size: .9rem; color: #ddd6cd; }
.mosaic > :first-child .tile-label strong { font-size: clamp(1.6rem, 3vw, 2.4rem); }

/* ---------- Club : présentation ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-reverse > :first-child { order: 2; }
}
.framed { position: relative; }
.framed::before { content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; z-index: 0; border: 3px solid var(--brand); border-radius: var(--radius); }
.framed img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 700px) { .framed::before { inset: .7rem -.5rem -.7rem .7rem; } }
.values { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.value { padding: 1.6rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border-top: 4px solid var(--brand); }
.value-num { display: block; margin-bottom: .4rem; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--brand); }
.value h3 { margin-bottom: .4rem; }
.value p { margin: 0; color: var(--muted); }
/* Chiffres de la page Histoire : 4 cartes, en 2 × 2 puis sur une ligne, jamais une carte seule. */
@media (min-width: 560px) { .values-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .values-figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Planning des entraînements ---------- */
.schedule { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.schedule-row {
  display: grid; gap: .35rem 1.5rem; align-items: center;
  padding: 1.1rem 1.3rem; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--brand);
}
.schedule-day { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
.schedule-what { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.schedule-what .icon { width: 1.6rem; height: 1.6rem; color: var(--brand-strong); }
.schedule-time { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.schedule-place { color: var(--muted); font-size: .98rem; line-height: 1.4; }
.schedule-place small { display: block; color: var(--brand-strong); font-weight: 600; font-size: .88rem; }
@media (min-width: 860px) {
  .schedule-row { grid-template-columns: 8.5rem 13rem 11rem 1fr; }
}
/* Encadrement de la natation, sous le planning : la photo prend la hauteur du texte sur grand écran. */
.coach { display: grid; margin-top: clamp(1.75rem, 4vw, 2.5rem); overflow: hidden; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border-top: 4px solid var(--brand); }
.coach-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.coach-body { padding: clamp(1.4rem, 3vw, 2.2rem); }
.coach-body .eyebrow { margin-bottom: .7rem; }
.coach-name { margin: 0 0 .9rem; font-size: clamp(2rem, 4vw, 2.7rem); }
.coach-body p:not(.eyebrow) { max-width: 46rem; }
.coach-intro { font-weight: 600; }
.coach-bio { color: var(--muted); }
.coach-body .btn { margin-top: .4rem; }
@media (min-width: 760px) {
  .coach { grid-template-columns: minmax(15rem, 21rem) 1fr; }
  .coach-photo { position: relative; min-height: 20rem; }
  .coach-photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}

/* ---------- Adhésion ---------- */
.membership { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .membership { grid-template-columns: .9fr 1.1fr; } }
.price-card { position: relative; overflow: hidden; padding: 2rem clamp(2rem, 8vw, 6.5rem) 2rem 2rem; color: #fff; background: var(--ink); border-radius: var(--radius); }
.price-card::after { content: ""; position: absolute; right: -2.5rem; top: -1rem; bottom: -1rem; width: 7rem; background: repeating-linear-gradient(90deg, var(--brand) 0 1.4rem, transparent 1.4rem 2.3rem); transform: skewX(var(--skew)); opacity: .9; }
.price-label { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.price { display: block; margin: .3rem 0 1.2rem; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(3.5rem, 8vw, 5rem); line-height: 1; }
.checklist { position: relative; z-index: 1; display: grid; gap: .6rem; margin: 0 0 1.6rem; padding: 0; list-style: none; max-width: 26rem; }
.checklist li { position: relative; padding-left: 1.9rem; line-height: 1.45; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 1.1rem; height: .62rem; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }
.steps { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 1.3rem 1.4rem 1.3rem 4.6rem; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); counter-increment: step; }
.step::before { content: counter(step); position: absolute; left: 1.3rem; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 2.8rem; line-height: 1; color: var(--brand); }
.step h3 { margin: 0 0 .25rem; font-size: 1.3rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); background: #fff; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
.table thead th { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--ink); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; white-space: nowrap; }

/* ---------- Bureau ---------- */
.people { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin: 0; padding: 0; list-style: none; }
.person { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.avatar {
  display: grid; place-items: center; flex: none; width: 3.2rem; height: 3.2rem;
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.25rem;
  color: var(--ink); background: var(--brand); clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}
.person strong { display: block; line-height: 1.2; }
.person span { color: var(--muted); font-size: .95rem; }

/* ---------- Bandeau d'appel ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--brand); color: var(--ink); }
.cta-band::before { content: ""; position: absolute; z-index: -1; right: -3rem; top: -2rem; bottom: -2rem; width: min(40vw, 26rem); background: repeating-linear-gradient(90deg, rgba(20, 20, 20, .14) 0 2rem, transparent 2rem 3.2rem); transform: skewX(var(--skew)); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-band h2 { margin: 0 0 .4rem; font-size: clamp(2rem, 4.6vw, 3.3rem); }
.cta-band p { margin: 0; max-width: 38rem; font-weight: 500; }

/* ---------- En-tête des pages intérieures ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 9vw, 6.5rem);
  color: #fff; background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5vw), 0 100%);
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; right: clamp(-3rem, -2vw, -1rem); top: 0; bottom: 0; width: clamp(6rem, 14vw, 10rem);
  background: linear-gradient(90deg, var(--brand) 0 22%, transparent 22% 39%, var(--brand) 39% 61%, transparent 61% 78%, var(--brand) 78%);
  transform: skewX(var(--skew)); opacity: .95;
}
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 20, 20, .92) 20%, rgba(20, 20, 20, .45)); }
.page-hero h1, .page-hero-title { margin: 0 0 1rem; font-size: clamp(2.9rem, 8vw, 5.6rem); max-width: 16ch; }
.page-hero .lead { max-width: 40rem; margin: 0; color: var(--on-dark-muted); padding-right: 4rem; }
.page-hero .eyebrow a { color: inherit; text-decoration: none; }
.page-hero .eyebrow a:hover { color: #fff; }
.page-hero .card-meta { margin: 0; color: var(--on-dark-muted); }
.page-hero.is-madroq { background: var(--teal-deep); }
.page-hero.is-madroq::after { background: linear-gradient(90deg, var(--teal-bright) 0 22%, transparent 22% 39%, var(--gold) 39% 61%, transparent 61% 78%, var(--teal-bright) 78%); }
.page-hero .madroq-sub { margin: 1.1rem 0 .5rem; }
.madroq-date { color: #d7ecea; }

/* ---------- Histoire ---------- */
.timeline { position: relative; display: grid; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 1.05rem; top: .5rem; bottom: .5rem; width: 4px; background: linear-gradient(var(--brand), var(--brand) 70%, transparent); border-radius: 2px; }
.timeline-item { position: relative; padding-left: 3.6rem; }
.timeline-item::before { content: ""; position: absolute; left: .2rem; top: .55rem; width: 1.7rem; height: 1.1rem; background: var(--brand); transform: skewX(var(--skew)); box-shadow: 0 0 0 5px var(--paper); }
.section-sand .timeline-item::before { box-shadow: 0 0 0 5px var(--sand); }
.timeline-year { display: block; margin-bottom: .35rem; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; color: var(--brand-strong); }
.timeline-card { padding: 1.4rem 1.5rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.timeline-card h2, .timeline-card h3 { margin-bottom: .45rem; font-size: 1.5rem; }
.timeline-card p:last-child { margin-bottom: 0; }
.timeline-card img { width: 100%; margin-top: 1rem; border-radius: var(--radius-sm); aspect-ratio: 16 / 9; object-fit: cover; }
.timeline-card img.poster { width: auto; height: min(30rem, 70vh); max-width: 100%; margin-inline: auto; aspect-ratio: auto; object-fit: contain; box-shadow: var(--shadow); }
.timeline-card .source { margin-top: .7rem; font-size: .88rem; color: var(--muted); }
@media (min-width: 900px) {
  .timeline::before { left: 50%; transform: translateX(-50%); }
  .timeline-item { width: 50%; padding: 0 3.5rem 0 0; }
  .timeline-item:nth-child(even) { margin-left: 50%; padding: 0 0 0 3.5rem; }
  .timeline-item::before { left: auto; right: -.85rem; }
  .timeline-item:nth-child(even)::before { right: auto; left: -.85rem; }
  .timeline-item:nth-child(odd) .timeline-year { text-align: right; }
}

/* ---------- Page MADROQ ---------- */
.theme-madroq .page-hero { background: var(--teal-deep); }
.theme-madroq .page-hero::after { background: linear-gradient(90deg, var(--teal-bright) 0 22%, transparent 22% 39%, var(--gold) 39% 61%, transparent 61% 78%, var(--teal-bright) 78%); }
.theme-madroq .page-hero-bg::after { background: linear-gradient(90deg, rgba(6, 47, 51, .95) 25%, rgba(6, 47, 51, .5)); }
/* Aperçu d'une édition depuis l'espace bénévoles */
.preview-bar { padding: .7rem 0; color: var(--ink); background: var(--gold); }
.preview-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; }
.preview-bar p { margin: 0; }
.theme-madroq .eyebrow { color: var(--teal); }
.theme-madroq .eyebrow::before { background: linear-gradient(90deg, var(--teal-bright) 0 26%, transparent 26% 37%, var(--gold) 37% 63%, transparent 63% 74%, var(--teal-bright) 74%); }
.theme-madroq .on-dark .eyebrow, .theme-madroq .page-hero .eyebrow { color: var(--gold); }
.madroq-hero-title { display: block; margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(4.2rem, 15vw, 10rem); line-height: .8; letter-spacing: .03em; }
.madroq-hero-title span { color: var(--teal-bright); }
.edition-panel {
  display: grid; gap: 1.5rem; margin-top: calc(-1 * clamp(3rem, 7vw, 4.5rem)); position: relative; z-index: 2;
  padding: clamp(1.4rem, 3vw, 2rem); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 5px solid var(--teal-bright);
}
@media (min-width: 860px) { .edition-panel { grid-template-columns: 1fr auto; align-items: center; } }
.edition-panel h2 { margin: 0 0 .3rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.edition-panel p { margin: 0; color: var(--muted); }
.programme { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.programme li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px dashed #c9d9d7; }
.programme time { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.3rem; color: var(--teal); }
.courses { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.course { display: flex; flex-direction: column; gap: .6rem; padding: 1.6rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border-top: 5px solid var(--teal-bright); }
.course > .icon { width: 2.4rem; height: 2.4rem; color: var(--teal); }
.theme-madroq .link-arrow { color: var(--teal); }
.theme-madroq .on-dark .link-arrow, .theme-madroq .cta-band .link-arrow { color: inherit; }
.course h3 { margin: 0; font-size: 1.3rem; letter-spacing: .08em; text-transform: uppercase; }
.course-distance { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 3rem; line-height: 1; }
.course-elevation { font-weight: 700; color: var(--teal); }
.course p { margin: 0; color: var(--muted); }
.course .links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: auto; padding-top: .6rem; }
.info-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.info { padding: 1.3rem 1.4rem; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.info h3 { margin: 0 0 .4rem; font-size: 1.25rem; }
.info p { margin: 0; color: var(--muted); font-size: .98rem; }
.docs { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.doc { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); }
.doc:hover { color: var(--ink); box-shadow: var(--shadow); }
.doc .icon { width: 1.8rem; height: 1.8rem; color: var(--teal); }
.doc strong { display: block; }
.doc small { color: var(--muted); }
.doc .icon:last-child { margin-left: auto; width: 1.3rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem;
  font-size: .92rem; font-weight: 600; text-decoration: none;
  color: var(--ink); background: var(--sand); border: 1px solid var(--line); border-radius: 999px;
}
.chip .icon { width: 1rem; height: 1rem; }
.chip:hover { color: var(--ink); background: var(--brand-soft); border-color: var(--brand); }
.theme-madroq .chip:hover { background: var(--teal-soft); border-color: var(--teal-bright); }
.chip[aria-current="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }

/* ---------- Résultats ---------- */
.format-badge {
  position: relative; isolation: isolate; display: inline-grid; place-items: center; flex: none;
  min-width: 1.75em; height: 1.45em; padding: 0 .3em;
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1rem; line-height: 1; letter-spacing: 0;
  color: var(--ink);
}
.format-badge::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--format-s); border-radius: 2px; transform: skewX(var(--skew)); }
.format-badge.format-m::before { background: var(--format-m); }
.format-badge.format-xs::before { background: var(--format-xs); }
.format-badge.format-l::before { background: var(--ink-3); }
.format-badge.format-xs, .format-badge.format-l { color: #fff; }

.results-finder {
  position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.3rem;
  margin-top: calc(-1 * clamp(3rem, 7vw, 4.5rem)); padding: clamp(1.2rem, 3vw, 1.8rem);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 5px solid var(--brand);
}
.finder-label { display: block; margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 700; font-size: .92rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.search-field { position: relative; }
.search-field .icon { position: absolute; left: 1rem; top: 50%; width: 1.35rem; height: 1.35rem; transform: translateY(-50%); color: var(--brand-strong); pointer-events: none; }
.search-field .input { padding: .9rem 1rem .9rem 3rem; font-size: 1.15rem; border-width: 2px; }
.search-hint { margin: .45rem 0 0; font-size: .9rem; color: var(--muted); }
.year-chips, .race-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.year-chip {
  display: block; padding: .35rem .75rem; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; line-height: 1.2;
  color: var(--ink); text-decoration: none; background: var(--sand); border: 1px solid var(--line); border-radius: 6px;
}
.year-chip:hover { color: var(--ink); border-color: var(--brand); background: var(--brand-soft); }
.year-chip[aria-current] { color: #fff; background: var(--ink); border-color: var(--ink); }
.race-tabs { gap: .6rem; }
.race-tab {
  display: flex; align-items: center; gap: .7rem; height: 100%; padding: .65rem 1rem .65rem .8rem;
  color: var(--ink); text-decoration: none; background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.race-tab span { line-height: 1.2; }
.race-tab strong { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: .02em; }
.race-tab small { margin-left: auto; padding-left: .6rem; font-size: .82rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.race-tab:hover { color: var(--ink); border-color: var(--brand); }
.race-tab[aria-current] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--sand); }
@media (max-width: 700px) {
  .year-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -.2rem; padding: 0 .2rem .4rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .year-chips li { scroll-snap-align: start; }
  .race-tabs { flex-direction: column; }
}

.results-section { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.race-head { margin-bottom: 1.5rem; }
.race-head .eyebrow { margin-bottom: .6rem; }
.eyebrow sup { margin-left: -.6em; text-transform: none; letter-spacing: 0; }
.race-title { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; margin: 0 0 .7rem; font-size: clamp(2rem, 5vw, 3.2rem); }
.race-title .format-badge { font-size: .8em; }
.race-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: 0; color: var(--muted); font-weight: 500; }
.race-meta span, .race-meta a { display: inline-flex; align-items: center; gap: .45rem; }
.race-meta .icon { width: 1.1rem; height: 1.1rem; color: var(--brand-strong); }
.race-stats { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.25rem), 1fr)); margin: 0 0 1.5rem; }
.race-stats > div { padding: 1rem 1.2rem; background: var(--sand); border-radius: var(--radius-sm); border-left: 4px solid var(--brand); }
.race-stats dt { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.race-stats dd { margin: .15rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; line-height: 1.1; color: var(--ink); }
.race-stats small { display: block; margin-top: .15rem; font-size: .85rem; color: var(--muted); }

.podiums { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-bottom: 2rem; }
.podium { padding: 1.1rem 1.2rem .6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.podium h3 { margin: 0 0 .5rem; font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.podium ol, .podium ul { margin: 0; padding: 0; list-style: none; }
.podium li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.podium li:first-child { border-top: 0; }
.podium-who { min-width: 0; line-height: 1.25; }
.podium-who a { font-weight: 700; color: var(--ink); text-decoration: none; }
.podium-who a:hover { text-decoration: underline; }
.podium-who small { display: block; overflow: hidden; font-size: .82rem; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.podium-time { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.medal { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; font-family: var(--font-display); font-style: italic; font-weight: 800; color: var(--ink); background: var(--sand); border-radius: 50%; }
.medal-1 { background: #f2c14e; }
.medal-2 { background: #d5d3cf; }
.medal-3 { background: #e0a878; }
.best-label { min-width: 4.6rem; font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

.results-toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem 1.2rem; margin-bottom: 1rem; padding: .9rem 1rem;
  background: var(--sand); border-radius: var(--radius-sm);
}
.segmented { display: inline-flex; overflow: hidden; background: #fff; border: 1.5px solid #cfc8bd; border-radius: 8px; }
.segmented button { padding: .55rem .95rem; font: inherit; font-size: .95rem; font-weight: 600; color: var(--text); background: none; border: 0; border-left: 1px solid var(--line); cursor: pointer; }
.segmented button:first-child { border-left: 0; }
.segmented button:hover { background: var(--brand-soft); }
.segmented button[aria-pressed="true"] { color: #fff; background: var(--ink); }
.toolbar-field { display: grid; gap: .25rem; font-size: .85rem; font-weight: 700; color: var(--muted); }
.toolbar-field .select { padding: .5rem .7rem; font-size: .95rem; font-weight: 500; }
.toolbar-club .select { max-width: 17rem; }
.toolbar-check { padding-bottom: .55rem; font-size: .95rem; }
.results-count { margin: 0 0 .55rem auto; font-weight: 700; color: var(--muted); }

/* Résultats de la recherche, sous le champ */
.search-results { margin-top: -.4rem; padding: 0 1.2rem; background: var(--sand); border-left: 5px solid var(--brand); border-radius: var(--radius-sm); }
.search-group { padding: 1rem 0 1.1rem; }
.search-group + .search-group { border-top: 1px solid var(--line); }
.search-group h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .7rem; margin: 0 0 .65rem; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.search-group h3 small { font-family: var(--font-body); font-size: .85rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.search-count { margin-left: auto; color: var(--ink); }
.search-none { margin: 0; color: var(--muted); }
.search-hits { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.search-hit {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .45rem .9rem .45rem .3rem;
  color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.search-hit:hover { color: var(--ink); border-color: var(--brand); background: var(--brand-soft); }
.search-hit .rank, .search-hit .rank-status { justify-self: center; }
.search-hit .podium-who strong { font-weight: 700; }
.hit-status { font-size: .85rem; font-weight: 600; color: var(--muted); }
.search-more { margin-top: .7rem; padding: 0; font: inherit; font-weight: 700; color: var(--brand-strong); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.search-more:hover { color: var(--ink); }
.people-list { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.people-list > li { display: grid; gap: .35rem; }
.people-list strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .02em; }
.participations { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.participation {
  display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .65rem .3rem .45rem;
  font-size: .9rem; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px;
}
.participation:hover { color: var(--ink); border-color: var(--brand); background: var(--brand-soft); }
.participation .format-badge { font-size: .8rem; }
.participation b { font-weight: 700; }
.participation[aria-current] { border-color: var(--ink); }

.results-table-wrap { position: relative; }
.results-table { width: 100%; border-collapse: collapse; font-size: .97rem; background: #fff; }
.results-table caption { caption-side: top; }
.results-table thead th {
  position: sticky; top: var(--header-h); z-index: 3; padding: .7rem .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .07em; text-transform: uppercase; text-align: left; white-space: nowrap;
  color: #fff; background: var(--ink);
}
.results-table thead th:first-child { border-top-left-radius: var(--radius-sm); }
.results-table thead th:last-child { border-top-right-radius: var(--radius-sm); }
.results-table th button { display: inline-flex; align-items: center; gap: .3rem; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.results-table th button::after { content: ""; width: .55rem; height: .55rem; opacity: .35; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg) scale(.8); }
.results-table th[aria-sort="ascending"] button::after { opacity: 1; transform: translateY(2px) rotate(-135deg) scale(.8); }
.results-table th[aria-sort="descending"] button::after { opacity: 1; }
.results-table th.col-split, .results-table th.col-total { text-align: right; }
.results-table td { padding: .55rem .6rem; vertical-align: middle; border-bottom: 1px solid var(--line); }
.results-table tbody tr { transition: background-color .15s ease; }
.results-table tbody tr:hover { background: var(--brand-soft); cursor: pointer; }
.results-table tr.is-unranked { color: var(--muted); }
.results-table tr.is-target { animation: row-flash 2.4s ease; }
@keyframes row-flash { 0%, 35% { background: #ffe1c7; } 100% { background: transparent; } }
.col-rank { width: 3.4rem; text-align: center; }
.rank { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .3rem; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.1rem; border-radius: 999px; }
.rank-1 { background: #f2c14e; }
.rank-2 { background: #d5d3cf; }
.rank-3 { background: #e0a878; }
.rank-status { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.col-name { min-width: 12rem; }
.result-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.result-name:hover { color: var(--brand-strong); text-decoration: underline; }
.result-sub { display: block; font-size: .84rem; line-height: 1.3; color: var(--muted); }
.col-cat { white-space: nowrap; font-weight: 600; }
.col-cat small, .col-split small, .col-total small { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
.sex-mark { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; margin-left: .3rem; font-size: .72rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; vertical-align: .05em; }
.col-split, .col-total { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.col-total strong { font-family: var(--font-display); font-size: 1.12rem; }
.results-empty { margin: 0; padding: 2rem 1rem; text-align: center; font-weight: 600; color: var(--muted); background: #fff; border-bottom: 1px solid var(--line); }
.results-table tbody tr.is-off-page { display: none; }
.results-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin-top: 1.2rem; }
.results-pager[hidden] { display: none; }
.results-pager .pager { margin: 0; }
.pager-status { margin: 0; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .results-pager { flex-direction: column-reverse; }
  .results-pager .pager { gap: .35rem; }
  .results-pager .pager > * { min-width: 2.5rem; padding: 0 .55rem; }
}
@media (max-width: 1080px) {
  .results-table .col-t1, .results-table .col-t2 { display: none; }
}
@media (max-width: 760px) {
  .results-table .col-split, .results-table .col-cat { display: none; }
  .results-table { font-size: .95rem; }
  .col-name { min-width: 0; }
  .results-count { width: 100%; margin: 0; }
}

/* Fiche d'un participant */
.result-dialog { width: min(100% - 1.5rem, 42rem); max-height: min(92vh, 52rem); padding: 0; color: var(--text); background: #fff; border: 0; border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); }
.result-dialog::backdrop { background: rgba(20, 20, 20, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.4rem 1.1rem; color: #fff; background: var(--ink); border-bottom: 4px solid var(--brand); }
.dialog-head .eyebrow { margin: 0 0 .35rem; font-size: .82rem; color: var(--brand); }
.dialog-head h2 { margin: 0; font-size: clamp(1.7rem, 5vw, 2.2rem); }
.dialog-head p { margin: .3rem 0 0; color: var(--on-dark-muted); font-size: .95rem; }
.dialog-close { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; padding: 0; color: #fff; background: rgba(255, 255, 255, .1); border: 0; border-radius: 50%; cursor: pointer; }
.dialog-close:hover { color: var(--ink); background: var(--brand); }
.dialog-body { padding: 1.3rem 1.4rem 1.6rem; }
.dialog-body h3 { margin: 1.6rem 0 .7rem; font-size: 1.15rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dialog-ranks { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); margin: 0; }
.dialog-ranks div { padding: .7rem .9rem; background: var(--sand); border-radius: var(--radius-sm); }
.dialog-ranks dt { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dialog-ranks dd { margin: .1rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
.dialog-ranks dd small { font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--muted); }
.split-list { display: grid; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.split-row { display: grid; grid-template-columns: 6.2rem 4.6rem 1fr; align-items: center; gap: .8rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.split-row:last-child { border-bottom: 0; }
.split-name { font-weight: 700; }
.split-time { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-align: right; font-variant-numeric: tabular-nums; }
.split-bar { display: grid; gap: .2rem; font-size: .82rem; color: var(--muted); }
.split-track { height: .5rem; overflow: hidden; background: var(--sand); border-radius: 999px; }
.split-fill { display: block; height: 100%; background: var(--format-s); border-radius: 999px; }
.is-format-m .split-fill { background: var(--format-m); }
.split-row.is-total .split-time { font-size: 1.35rem; }
.history { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.history a { display: grid; grid-template-columns: auto 3.2rem 1fr auto; align-items: center; gap: .7rem; padding: .55rem .8rem; color: var(--ink); text-decoration: none; background: var(--sand); border: 1px solid transparent; border-radius: var(--radius-sm); }
.history a:hover { color: var(--ink); border-color: var(--brand); }
.history a[aria-current] { background: #fff; border-color: var(--line); }
.history-year { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.2rem; }
.history-rank { font-size: .92rem; }
.history-rank small { color: var(--muted); }
.history .podium-time { font-size: 1.05rem; }
.dialog-note { margin: .8rem 0 0; font-size: .85rem; color: var(--muted); }

/* L'épreuve en chiffres */
.results-overview { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 1000px) {
  .results-overview { grid-template-columns: 1.5fr 1fr; }
  .results-overview .chart-card { grid-row: span 2; }
}
.chart-card, .records-card { margin: 0; padding: clamp(1.1rem, 3vw, 1.6rem); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.chart-card figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem; margin-bottom: 1.2rem; }
.chart-card h3, .records-card h3 { margin: 0; font-size: 1.45rem; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.chart-legend li { display: inline-flex; align-items: center; gap: .45rem; }
.swatch { width: .8rem; height: .8rem; border-radius: 2px; }
.swatch-xs { background: var(--format-xs); }
.swatch-s { background: var(--format-s); }
.swatch-m { background: var(--format-m); }
.bar-chart { position: relative; height: 15.5rem; margin: 0 0 2rem 2.4rem; }
.bar-grid { position: absolute; inset: 0; }
.grid-line { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid #ebe7e0; }
.grid-line.is-base { border-color: #c9c2b6; }
.grid-label { position: absolute; right: calc(100% + .5rem); top: 0; transform: translateY(-50%); font-size: .75rem; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.bars { position: absolute; inset: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0; padding: 0; list-style: none; }
.bar-col { position: relative; display: flex; justify-content: center; }
.bar-stack { position: relative; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; width: 100%; height: 100%; text-decoration: none; }
.bar-stack::after { content: ""; position: absolute; inset: 0 8%; border-radius: 6px; transition: background-color .15s ease; }
.bar-stack:hover::after, .bar-stack:focus-visible::after { background: rgba(20, 20, 20, .05); }
.bar-seg { position: relative; z-index: 1; display: block; width: min(24px, 64%); background: var(--format-s); }
.bar-seg.seg-xs { background: var(--format-xs); }
.bar-seg.seg-m { background: var(--format-m); }
.bar-stack > .bar-seg:last-child { border-radius: 4px 4px 0 0; }
.bar-stack:hover .bar-seg, .bar-stack:focus-visible .bar-seg { filter: brightness(1.08) saturate(1.1); }
.bar-year { position: absolute; top: calc(100% + .45rem); left: 50%; transform: translateX(-50%); font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-stack[aria-current] + .bar-year { color: var(--ink); font-weight: 800; }
.chart-tooltip { position: absolute; z-index: 5; min-width: 9.5rem; padding: .6rem .75rem; white-space: nowrap; font-size: .85rem; line-height: 1.35; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); }
.chart-tooltip strong { display: block; margin-bottom: .2rem; font-family: var(--font-display); font-size: 1.05rem; }
.chart-tooltip .tip-row { display: flex; align-items: center; gap: .45rem; }
.chart-tooltip .tip-row b { min-width: 2rem; font-size: .95rem; font-variant-numeric: tabular-nums; }
.chart-tooltip .tip-key { width: .8rem; height: 2px; background: currentColor; }
.chart-data { margin-top: .5rem; }
.chart-data summary { font-weight: 600; color: var(--brand-strong); cursor: pointer; }
.chart-data .table { margin-top: .8rem; font-size: .95rem; }
.chart-data .table th, .chart-data .table td { padding: .45rem .8rem; }
.records-card .muted { margin: .35rem 0 1rem; font-size: .9rem; }
.record + .record { margin-top: 1rem; }
.record-head { display: flex; align-items: center; gap: .55rem; margin: 0 0 .35rem; font-weight: 700; }
.record ol { margin: 0; padding: 0; list-style: none; }
.record li { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: .7rem; padding: .3rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.record li a { color: var(--ink); text-decoration: none; }
.record li a:hover { text-decoration: underline; }
.record li.is-best a { font-weight: 700; }
.record-year { font-size: .85rem; color: var(--muted); }
.regulars { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.regulars li { display: grid; grid-template-columns: 2.6rem 1fr; align-items: center; gap: .7rem; }
.regular-count { display: grid; place-items: center; height: 2.6rem; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.45rem; color: var(--ink); background: var(--brand-soft); border-radius: 8px; }
.regular-who a { font-weight: 700; color: var(--ink); text-decoration: none; }
.regular-who a:hover { text-decoration: underline; }
.regular-who small { display: block; font-size: .8rem; color: var(--muted); }

/* ---------- Albums et galerie ---------- */
.year-block + .year-block { margin-top: 3rem; }
.year-title { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 2.2rem; }
.year-title::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.albums-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.album-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.album-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); }
.album-cover { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.album-card:hover .album-cover img { transform: scale(1.05); }
.album-body { padding: 1rem 1.2rem 1.2rem; }
.album-body strong { display: block; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; }
.album-body span { display: flex; align-items: center; gap: .4rem; margin-top: .3rem; color: var(--muted); font-size: .93rem; }
.album-body .icon { width: 1rem; height: 1rem; }
.gallery { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); }
.gallery a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--ink-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .2s; }
.gallery a:hover img { transform: scale(1.05); }
.album-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.album-intro p { margin: 0; color: var(--muted); max-width: 46rem; }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto 1fr auto; background: rgba(12, 12, 12, .96); color: #fff; }
.lightbox[hidden] { display: none; }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; }
/* Cellule unique de taille définie : sans elle, max-height: 100% de l'image ne se résout pas
   et une photo plus haute que la fenêtre déborde (retour testeur, fenêtre 1358 × 644). */
.lightbox-stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; padding: 0 3.5rem; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox-caption { min-height: 3.2rem; padding: .8rem 1.25rem 1.2rem; text-align: center; color: #d8d2ca; }
.lightbox button { display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; color: #fff; background: rgba(255, 255, 255, .1); border: 0; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: var(--brand); color: var(--ink); }
.lightbox .icon { width: 1.6rem; height: 1.6rem; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: .5rem; }
.lightbox-next { right: .5rem; }
@media (max-width: 600px) { .lightbox-stage { padding: 0 .5rem; } .lightbox-prev, .lightbox-next { top: auto; bottom: -3.6rem; transform: none; } }

/* ---------- Partenaires ---------- */
.partners-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); margin: 0; padding: 0; list-style: none; }
.partner {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  height: 100%; min-height: 8.5rem; padding: 1.2rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
a.partner:hover { color: var(--ink); border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.partner img { max-width: 100%; max-height: 4.4rem; width: auto; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .25s ease, opacity .25s ease; }
.partner:hover img { filter: none; opacity: 1; }
.partner-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; }
.partner small { color: var(--muted); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- Article ---------- */
.article-header { margin-bottom: 1.5rem; }
.article-media { margin: 0 0 2rem; overflow: hidden; border-radius: var(--radius); }
.article-media img { width: 100%; }
.prose { font-size: 1.12rem; }
.prose p, .prose ul { margin-bottom: 1.1em; }
.prose ul { padding-left: 1.3rem; }
.prose li + li { margin-top: .3em; }
.prose a { font-weight: 600; }
.prose h2 { margin-top: 2rem; font-size: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.link-card {
  display: flex; align-items: center; gap: 1rem; margin: 2rem 0; padding: 1.1rem 1.3rem;
  background: var(--sand); border-left: 5px solid var(--brand); border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none;
}
.link-card:hover { color: var(--ink); background: var(--brand-soft); }
.link-card strong { display: block; font-family: var(--font-display); font-size: 1.3rem; }
.link-card small { color: var(--muted); }
.link-card .icon { margin-left: auto; width: 1.5rem; height: 1.5rem; color: var(--brand-strong); }

/* ---------- Filtres et pagination ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.social-follow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin-bottom: 2.5rem; padding: 1.4rem 1.6rem; background: var(--sand); border-left: 5px solid var(--brand); border-radius: var(--radius);
}
.social-follow-title { margin: 0 0 .3rem; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.social-follow p { max-width: 44rem; margin: 0; color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 3rem; }
.pager > a, .pager > span, .pager > button { display: grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 .8rem; font: inherit; font-weight: 700; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.pager > button { cursor: pointer; }
.pager a:hover, .pager button:hover:not(:disabled) { border-color: var(--brand); }
.pager [aria-current] { color: #fff; background: var(--ink); border-color: var(--ink); }
.pager button:disabled { opacity: .4; cursor: default; }
.pager > .pager-gap { min-width: 1.5rem; padding: 0; color: var(--muted); background: none; border: 0; }

/* ---------- Formulaires ---------- */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.35fr 1fr; } }
.form-card { padding: clamp(1.4rem, 3vw, 2.2rem); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.form { display: grid; gap: 1.2rem; }
.form-row { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label, .field .label { font-weight: 700; font-size: .98rem; }
.field .hint { font-size: .9rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: .8rem .95rem;
  font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1.5px solid #cfc8bd; border-radius: 6px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 10rem; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(244, 118, 33, .25); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field-error { margin: 0; font-size: .9rem; font-weight: 600; color: var(--danger); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1.5rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-weight: 600; }
.notice-success { color: var(--success); background: #e7f6ee; border: 1px solid #a9dfc1; }
.notice-error { color: var(--danger); background: #fdecea; border: 1px solid #f5b5ae; }
.small-print { font-size: .9rem; color: var(--muted); }
.info-stack { display: grid; gap: 1rem; }
.info-card { padding: 1.4rem 1.5rem; background: var(--sand); border-radius: var(--radius); }
.info-card h2 { font-size: 1.5rem; margin-bottom: .7rem; }
.info-card .meta-list .icon { color: var(--brand-strong); }
.info-card-dark { color: var(--on-dark); background: var(--ink); }
.info-card-dark a { color: var(--brand); }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; padding: clamp(3rem, 7vw, 4.5rem) 0 1.5rem; color: var(--on-dark-muted); background: var(--ink); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr; } }
.footer-brand p { max-width: 24rem; }
.footer-title { margin-bottom: 1rem; font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer-links { columns: 2; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: grid; gap: .8rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.footer-contact li { display: flex; gap: .7rem; line-height: 1.45; }
.footer-contact .icon { margin-top: .15rem; color: var(--brand); }
.site-footer .btn { color: var(--ink); text-decoration: none; }
.social-link { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; }
.social-link .icon { width: 2.2rem; height: 2.2rem; padding: .45rem; color: var(--ink); background: var(--brand); border-radius: 50%; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.4rem; font-size: .9rem; border-top: 1px solid rgba(255, 255, 255, .09); }
.footer-bottom p { margin: 0; }

/* ---------- Page d'erreur ---------- */
.error-page { padding: clamp(4rem, 12vw, 8rem) 0; text-align: center; }
.error-code { display: block; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(6rem, 22vw, 12rem); line-height: .85; color: var(--brand); }
.error-page .actions { justify-content: center; margin-top: 2rem; }
/* ---------- Utilitaires ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  .page-hero { color: #000; background: none; clip-path: none; }
  .results-finder, .results-toolbar, .results-pager, .results-overview, .result-dialog { display: none !important; }
  .results-table tbody tr.is-off-page { display: table-row; }
  .results-table thead th { position: static; color: #000; background: none; border-bottom: 2px solid #000; }
  .results-table tbody tr { break-inside: avoid; }
}
