/* Transac' Challenge : charte tirée du logo de FGES Transaction.
   Bleu nuit, or du laurier, ivoire. Titres en Newsreader, texte en IBM Plex Sans, chiffres du bandeau en
   IBM Plex Mono. Polices hébergées par le site (licence OFL), aucune ressource tierce.
   Toute couleur passe par ces variables. Aucun dégradé, aucun halo. */

@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Couleurs du logo */
  --nuit: #1b2437;
  --nuit-2: #222d45;
  --nuit-3: #303c58;
  --nuit-profonde: #141b2b;
  --laurier: #ecc95c;
  --laurier-pale: #f6e7b4;
  --laurier-texte: #8a6716;       /* or lisible sur fond clair */

  /* Fonds et traits */
  --ivoire: #f8f6f1;
  --ivoire-2: #f1ede4;
  --papier: #fffefb;
  --trait: #e7e1d4;
  --trait-fort: #d4ccba;
  --ombre: 0 1px 2px rgba(27, 36, 55, 0.05), 0 6px 18px -10px rgba(27, 36, 55, 0.18);
  --ombre-haute: 0 2px 4px rgba(27, 36, 55, 0.06), 0 18px 40px -18px rgba(27, 36, 55, 0.35);

  /* Texte */
  --texte: #1b2437;
  --texte-2: #4b5568;
  --texte-3: #646c7b;
  --sur-nuit: #f4f1e8;
  --sur-nuit-2: #b9c1d2;
  --sur-nuit-3: #8a94aa;

  /* Sens */
  --hausse: #16794c;
  --hausse-fond: #e3f1e8;
  --hausse-vif: #4fc489;          /* sur fond nuit */
  --baisse: #b4372e;
  --baisse-fond: #f8e5e2;
  --baisse-vif: #ff8a7a;          /* sur fond nuit */

  /* Couleurs des participants (monogrammes, lignes de la course) */
  --c0: #2f5c9a; --c1: #2a8378; --c2: #7a4c93; --c3: #a8552f; --c4: #5e7f2e;
  --c5: #b04a6e; --c6: #4e6178; --c7: #8f6815; --c8: #36719a; --c9: #8a5a44;

  /* Typographie */
  --titre: "Newsreader", "Iowan Old Style", Charter, Georgia, serif;
  --texte-police: "IBM Plex Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --largeur: 1180px;
  --rayon: 14px;
  --rayon-s: 9px;
  --focus: 0 0 0 3px rgba(236, 201, 92, 0.55);
  --vite: 160ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivoire);
  color: var(--texte);
  font-family: var(--texte-police);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "tnum" 1, "lnum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
figure { margin: 0; }
a { color: inherit; text-decoration-color: var(--laurier); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--nuit); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
::selection { background: var(--laurier-pale); color: var(--nuit); }

h1, h2, h3, h4 { font-family: var(--titre); font-weight: 560; letter-spacing: -0.012em; line-height: 1.08; margin: 0 0 0.45em; color: var(--nuit); font-optical-sizing: auto; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--laurier); color: var(--nuit); padding: 10px 14px; z-index: 50; border-radius: var(--rayon-s); font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { width: min(100% - 40px, var(--largeur)); margin-inline: auto; }
.show-sm { display: none; }

/* ------------------------------------------------------------ en-tête */

.masthead { background: var(--nuit); color: var(--sur-nuit); position: relative; z-index: 5; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--sur-nuit); }
.brand img { width: 46px; height: 47px; display: block; flex: none; }
.brand-name { display: block; font-family: var(--titre); font-size: 1.5rem; font-weight: 560; letter-spacing: -0.01em; line-height: 1; color: #fff; white-space: nowrap; }
.brand-sub { display: block; margin-top: 5px; font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--laurier); font-weight: 600; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--sur-nuit-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 10px 12px; position: relative; transition: color var(--vite); }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--laurier); transform: scaleX(0); transition: transform var(--vite); }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after, .nav a:hover::after { transform: scaleX(1); }
.nav .nav-cta { margin-left: 8px; color: var(--nuit); background: var(--laurier); border-radius: 999px; padding: 8px 16px; font-weight: 600; }
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { color: var(--nuit); background: var(--laurier-pale); }

.live { display: inline-flex; align-items: center; gap: 9px; font-size: 0.8rem; color: var(--sur-nuit-2); white-space: nowrap; }
.live b { color: #fff; font-weight: 600; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sur-nuit-3); flex: none; position: relative; }
.live.is-open .live-dot { background: var(--hausse-vif); }
.live.is-open .live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--hausse-vif); opacity: 0; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.7); opacity: 0; } }

/* barre de la section Transac’ Challenge */
.subnav { background: var(--nuit-2); border-top: 1px solid var(--nuit-3); }
.subnav .wrap { display: flex; align-items: center; gap: 8px 22px; min-height: 48px; flex-wrap: wrap; }
.subnav-brand { font-family: var(--titre); font-size: 1.08rem; font-weight: 560; color: var(--laurier); text-decoration: none; white-space: nowrap; }
.subnav nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav nav::-webkit-scrollbar { display: none; }
.subnav nav a { color: var(--sur-nuit-2); text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.subnav nav a:hover { color: #fff; background: var(--nuit-3); }
.subnav nav a[aria-current="page"] { color: var(--nuit); background: var(--laurier); font-weight: 600; }

/* ------------------------------------------------------------ bandeau défilant */

.ticker { background: var(--nuit-profonde); color: var(--sur-nuit-2); border-top: 1px solid var(--nuit-3); overflow: hidden; font-family: var(--mono); font-size: 0.8rem; position: relative; }
.ticker-label { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 20px; background: var(--nuit-profonde); color: var(--laurier); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.7rem; border-right: 1px solid var(--nuit-3); }
.ticker-track { display: flex; width: max-content; animation: defile 70s linear infinite; padding-left: 150px; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker-item { display: flex; align-items: center; gap: 9px; padding: 10px 22px; border-right: 1px solid var(--nuit-3); white-space: nowrap; }
.ticker-item a { color: var(--sur-nuit); text-decoration: none; font-weight: 500; }
.ticker-item a:hover { color: var(--laurier); }
.ticker-rank { color: var(--sur-nuit-3); }
.ticker.is-open .ticker-label .live-dot { background: var(--hausse-vif); }
.t-up { color: var(--hausse-vif); }
.t-down { color: var(--baisse-vif); }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ bandeaux d'information */

.band { font-size: 0.9rem; border-bottom: 1px solid var(--trait); }
.band .wrap { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; }
.band-demo { background: var(--laurier-pale); color: #5c4710; }
.band-demo strong { letter-spacing: 0.02em; }
.band-info { background: var(--papier); }
.band-info .wrap::before { content: ""; width: 3px; align-self: stretch; background: var(--laurier); border-radius: 2px; }

/* ------------------------------------------------------------ structure */

main { display: block; padding-bottom: 96px; }
.section { margin-top: 72px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; border-bottom: 1px solid var(--trait-fort); padding-bottom: 12px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--texte-3); font-size: 0.92rem; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--laurier-texte); font-weight: 600; margin: 0 0 14px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--laurier); }
.more { font-weight: 600; font-size: 0.92rem; text-decoration: none; color: var(--nuit); white-space: nowrap; }
.more::after { content: " \2192"; transition: margin var(--vite); }
.more:hover::after { margin-left: 4px; }
.lead { font-size: 1.18rem; color: var(--texte-2); line-height: 1.6; max-width: 40em; }
.muted { color: var(--texte-3); }
.small { font-size: 0.875rem; }
.source { font-size: 0.82rem; color: var(--texte-3); }
.card { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 26px; }
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.up { color: var(--hausse); }
.down { color: var(--baisse); }
.flat { color: var(--texte-3); }

/* ------------------------------------------------------------ accueil : la une */

.une { padding: 56px 0 8px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.une h1 { margin-bottom: 18px; }
.une .lead { margin-bottom: 26px; }
.une-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.88rem; color: var(--texte-3); margin-bottom: 28px; }
.une-meta > span { display: inline-flex; align-items: baseline; gap: 0.3em; flex-wrap: wrap; }
.une-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 0.95rem; padding: 12px 20px; min-height: 46px; border-radius: 999px; border: 1px solid var(--nuit); background: var(--nuit); color: #fff; text-decoration: none; cursor: pointer; transition: background var(--vite), color var(--vite), transform var(--vite); }
.btn:hover { background: var(--nuit-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--nuit); border-color: var(--trait-fort); }
.btn-ghost:hover { background: var(--papier); color: var(--nuit); border-color: var(--nuit); }
.btn-gold { background: var(--laurier); border-color: var(--laurier); color: var(--nuit); }
.btn-gold:hover { background: var(--laurier-pale); color: var(--nuit); }
.btn-danger { background: transparent; color: var(--baisse); border-color: var(--baisse); }
.btn-danger:hover { background: var(--baisse); color: #fff; }
.btn-small { padding: 6px 12px; min-height: 34px; font-size: 0.84rem; }

/* le podium */
.podium-card { background: var(--nuit); color: var(--sur-nuit); border-radius: 20px; padding: 30px 28px 0; position: relative; overflow: hidden; box-shadow: var(--ombre-haute); }
.podium-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 268px; background: url("../img/embleme.svg") no-repeat center / contain; opacity: 0.07; }
.podium-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; position: relative; margin-bottom: 18px; }
.podium-title span { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--laurier); font-weight: 600; }
.podium-title small { color: var(--sur-nuit-3); font-size: 0.8rem; }
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 10px; position: relative; }
.step { text-align: center; text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; }
.step .avatar { margin-bottom: 10px; }
.step-name { font-family: var(--titre); font-size: 1.12rem; font-weight: 560; color: #fff; line-height: 1.15; max-width: 100%; overflow-wrap: anywhere; }
.step-perf { font-size: 0.86rem; margin: 3px 0 12px; font-weight: 500; }
.step-perf.up { color: var(--hausse-vif); }
.step-perf.down { color: var(--baisse-vif); }
.step-block { width: 100%; border-radius: 10px 10px 0 0; background: var(--nuit-2); border: 1px solid var(--nuit-3); border-bottom: none; display: flex; align-items: flex-start; justify-content: center; padding-top: 12px; font-family: var(--titre); font-weight: 600; font-size: 2rem; color: var(--sur-nuit-2); transition: background var(--vite); }
.step:hover .step-block { background: var(--nuit-3); }
.step-1 .step-block { height: 132px; color: var(--laurier); background: #26324d; font-size: 2.7rem; }
.step-2 .step-block { height: 96px; }
.step-3 .step-block { height: 70px; }
.step-1 .step-name { font-size: 1.32rem; }

/* chiffres clés en ligne, à la manière d'une manchette */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--nuit); border-bottom: 1px solid var(--trait-fort); margin-top: 56px; }
.stat { padding: 18px 20px 18px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--trait); }
.stat-label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--texte-3); font-weight: 600; margin: 0 0 6px; }
.stat-value { font-family: var(--titre); font-size: 2rem; font-weight: 560; line-height: 1.05; margin: 0; color: var(--nuit); }
.stat-note { font-size: 0.84rem; color: var(--texte-2); margin: 6px 0 0; }

/* le fil */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--trait); align-items: start; }
.feed li:last-child { border-bottom: none; }
.feed-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ivoire-2); color: var(--texte-2); }
.feed-icon svg { width: 18px; height: 18px; }
.feed-or .feed-icon { background: var(--laurier-pale); color: var(--laurier-texte); }
.feed-hausse .feed-icon { background: var(--hausse-fond); color: var(--hausse); }
.feed-baisse .feed-icon { background: var(--baisse-fond); color: var(--baisse); }
.feed-text { margin: 0; font-size: 0.98rem; line-height: 1.45; padding-top: 7px; }
.feed-text a { font-weight: 600; text-decoration: none; }
.feed-text a:hover { text-decoration: underline; }
.feed-when { display: block; font-size: 0.78rem; color: var(--texte-3); margin-top: 2px; }

/* la course */
.race-card { padding: 22px 20px 12px; }
.race { width: 100%; height: auto; display: block; }
.race-grid { stroke: var(--trait); stroke-width: 1; }
.race-axis { fill: var(--texte-3); font-size: 11px; font-family: var(--texte-police); }
.race-series { transition: opacity var(--vite); }
.race-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; opacity: 0.55; }
.race-top .race-line { stroke-width: 3; opacity: 0.95; }
.race-lead .race-line { stroke-width: 4; opacity: 1; }
.race-end { stroke: var(--papier); stroke-width: 2.4; }
.race-name text { font-size: 12.5px; font-family: var(--texte-police); font-weight: 600; }
.race-name:hover text { text-decoration: underline; }
.race.is-focus .race-series { opacity: 0.16; }
.race.is-focus .race-series.is-on { opacity: 1; }
.race.is-focus .race-series.is-on .race-line { stroke-width: 4; }
.race.is-focus .race-name { opacity: 0.35; }
.race.is-focus .race-name.is-on { opacity: 1; }
.c0 { --c: var(--c0); } .c1 { --c: var(--c1); } .c2 { --c: var(--c2); } .c3 { --c: var(--c3); } .c4 { --c: var(--c4); }
.c5 { --c: var(--c5); } .c6 { --c: var(--c6); } .c7 { --c: var(--c7); } .c8 { --c: var(--c8); } .c9 { --c: var(--c9); }
.race-series .race-line { stroke: var(--c); }
.race-series .race-end { fill: var(--c); }
.race-name text { fill: var(--c); }

.grid-home { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.follow { margin-top: 40px; }
.follow-list { display: grid; gap: 8px; }
.follow-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon-s); text-decoration: none; color: var(--nuit); transition: border-color var(--vite); }
.follow-item:hover { border-color: var(--laurier); }
.follow-rank { font-family: var(--titre); font-size: 1.35rem; font-weight: 600; text-align: center; }
.follow-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.follow-meta { text-align: right; font-size: 0.86rem; font-weight: 600; }
.follow-meta small { display: block; font-weight: 500; color: var(--texte-3); font-size: 0.76rem; }
.podium-wait { padding-bottom: 30px; }
.podium-wait .lead { color: var(--sur-nuit-2); margin: 0; position: relative; }
.ord { font-size: 0.42em; vertical-align: 0.95em; margin-left: 0.02em; font-weight: 600; letter-spacing: 0; }
.profile-rank .ord { font-size: 0.3em; vertical-align: 1.75em; }
.stat-value.up { color: var(--hausse); }
.stat-value.down { color: var(--baisse); }
.stat-note a { text-decoration: none; font-weight: 600; color: var(--nuit); }
.stat-note a:hover { text-decoration: underline; }
.board--compact .board-row { grid-template-columns: 58px 50px minmax(0, 1fr) 98px 90px 44px; }

/* accueil de l'association */
.hero-asso { background: var(--nuit); color: var(--sur-nuit); border-top: 1px solid var(--nuit-3); overflow: hidden; }
.hero-asso-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 72px 0 80px; }
.hero-asso h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 20px; }
.hero-asso .lead { color: var(--sur-nuit-2); margin-bottom: 30px; }
.kicker-sombre { color: var(--laurier); }
.hero-asso-logo { display: flex; justify-content: center; }
.hero-asso-logo img { width: min(100%, 300px); height: auto; }
.btn-clair { background: transparent; color: var(--sur-nuit); border-color: var(--nuit-3); }
.btn-clair:hover { background: var(--nuit-2); color: #fff; }
.cta-band .btn-clair { color: var(--sur-nuit); }
.grid-teaser { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: start; }
.teaser { padding: 30px; }
.teaser-meta { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--laurier-texte); font-weight: 600; margin: 0 0 12px; }
.teaser-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
.teaser p { color: var(--texte-2); }
.activity { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; transition: border-color var(--vite), transform var(--vite); }
a.activity:hover { border-color: var(--laurier); transform: translateY(-2px); }
.activity h3 { margin-bottom: 4px; }
.activity p { color: var(--texte-2); flex: 1; }

/* ------------------------------------------------------------ monogrammes */

.avatar { --size: 36px; width: var(--size); height: var(--size); border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: var(--c, var(--c6)); color: #fff; font-weight: 600; font-size: calc(var(--size) * 0.38); letter-spacing: 0.02em; font-family: var(--texte-police); }
.avatar-lg { --size: 64px; }
.avatar-xl { --size: 88px; font-size: 1.9rem; }
.podium .avatar { --size: 54px; box-shadow: 0 0 0 3px var(--nuit), 0 0 0 4px var(--nuit-3); }
.podium .step-1 .avatar { --size: 66px; box-shadow: 0 0 0 3px var(--nuit), 0 0 0 5px var(--laurier); }

/* ------------------------------------------------------------ le classement */

.board-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.segmented { display: inline-flex; background: var(--ivoire-2); border-radius: 999px; padding: 4px; gap: 2px; }
.segmented a, .segmented button { border: none; background: transparent; font: inherit; font-size: 0.9rem; font-weight: 500; color: var(--texte-2); padding: 7px 16px; border-radius: 999px; text-decoration: none; cursor: pointer; }
.segmented [aria-current="page"], .segmented [aria-pressed="true"] { background: var(--papier); color: var(--nuit); box-shadow: 0 1px 3px rgba(27, 36, 55, 0.15); font-weight: 600; }
.search { position: relative; display: flex; gap: 8px; }
.search input[type="search"] { min-width: 15em; padding-left: 40px; }
.search svg { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--texte-3); pointer-events: none; }

input[type="search"], input[type="text"], input[type="password"], input[type="date"], input[type="time"], input[type="file"], textarea, select {
  font: inherit; color: var(--texte); background: var(--papier); border: 1px solid var(--trait-fort); border-radius: var(--rayon-s); padding: 10px 13px; min-height: 44px; max-width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--nuit); box-shadow: var(--focus); }
textarea { width: 100%; min-height: 100px; resize: vertical; }

.board { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.board-row { display: grid; grid-template-columns: 64px 54px minmax(0, 1fr) 104px 92px 96px 106px 44px; align-items: center; min-height: 62px; padding: 0 10px 0 0; border-bottom: 1px solid var(--trait); position: relative; transition: background var(--vite); }
.board-row:last-child { border-bottom: none; }
.board-head { min-height: 44px; background: var(--ivoire); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-3); font-weight: 600; }
.board-head button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.board-head button:focus-visible { box-shadow: var(--focus); border-radius: 4px; }
.board-head button[aria-sort="ascending"]::after { content: "\2191"; color: var(--laurier-texte); }
.board-head button[aria-sort="descending"]::after { content: "\2193"; color: var(--laurier-texte); }
.board-body .board-row:hover { background: var(--ivoire); }
.cell { padding: 0 10px; min-width: 0; }
.cell-num { text-align: right; font-variant-numeric: tabular-nums; }
.board-head .cell-num { text-align: right; justify-content: flex-end; }
.cell-rank { font-family: var(--titre); font-size: 1.55rem; font-weight: 600; color: var(--nuit); padding-left: 22px; line-height: 1; }
.cell-rank small { display: block; font-family: var(--texte-police); font-size: 0.62rem; font-weight: 500; color: var(--texte-3); letter-spacing: 0.04em; margin-top: 2px; }
.board-row.top-1::before, .board-row.top-2::before, .board-row.top-3::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 3px 3px 0; background: var(--laurier); }
.board-row.top-2::before { background: #b8bfcc; }
.board-row.top-3::before { background: #c08a5a; }
.who { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--nuit); min-width: 0; }
.who-text { min-width: 0; }
.who-name { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who:hover .who-name { text-decoration: underline; text-decoration-color: var(--laurier); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.who-badge { display: block; font-size: 0.74rem; font-weight: 500; color: var(--laurier-texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.perf { font-weight: 600; }
.perf.up { color: var(--hausse); }
.perf.down { color: var(--baisse); }
.chip { display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px; font-size: 0.85rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.chip.up { background: var(--hausse-fond); color: var(--hausse); }
.chip.down { background: var(--baisse-fond); color: var(--baisse); }
.chip.flat { color: var(--texte-3); }
.move { font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.move svg { width: 9px; height: 9px; }
.move-new { font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--laurier-texte); font-weight: 700; }
.gap { color: var(--texte-2); font-size: 0.9rem; }
.gap-lead { color: var(--laurier-texte); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.trend { display: flex; justify-content: center; }
.spark { display: block; overflow: visible; }
.spark-line { fill: none; stroke: var(--texte-3); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.spark-up .spark-line { stroke: var(--hausse); }
.spark-down .spark-line { stroke: var(--baisse); }
.spark-dot { fill: var(--texte-3); }
.spark-up .spark-dot { fill: var(--hausse); }
.spark-down .spark-dot { fill: var(--baisse); }
.fav { border: none; background: transparent; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--trait-fort); transition: color var(--vite), background var(--vite); }
.fav svg { width: 18px; height: 18px; }
.fav:hover { color: var(--laurier-texte); background: var(--ivoire-2); }
.fav[aria-pressed="true"] { color: var(--laurier); }
.fav[aria-pressed="true"] svg path { fill: currentColor; }
.board-row.is-fav { background: #fffaea; }
.board-row.is-fav .cell-rank { color: var(--laurier-texte); }
.board-row.flash-up { animation: flash-up 1.8s ease-out; }
.board-row.flash-down { animation: flash-down 1.8s ease-out; }
@keyframes flash-up { 0% { background: var(--hausse-fond); } 100% { background: transparent; } }
@keyframes flash-down { 0% { background: var(--baisse-fond); } 100% { background: transparent; } }
.board-empty { padding: 48px 24px; text-align: center; color: var(--texte-2); }
.board-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 0.84rem; color: var(--texte-3); }
.follow-empty { color: var(--texte-3); font-size: 0.92rem; padding: 18px 0 4px; }

/* ------------------------------------------------------------ fiche participant */

.profile { background: var(--nuit); color: var(--sur-nuit); }
.profile .wrap { padding: 40px 0 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.crumbs { font-size: 0.86rem; color: var(--sur-nuit-3); margin-bottom: 22px; }
.crumbs a { color: var(--sur-nuit-2); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.profile-id { display: flex; gap: 22px; align-items: center; }
.profile h1 { color: #fff; margin: 0 0 8px; font-size: clamp(2.2rem, 4.6vw, 3.4rem); overflow-wrap: anywhere; }
.profile-sub { color: var(--sur-nuit-2); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 600; color: var(--nuit); background: var(--laurier); padding: 5px 12px; border-radius: 999px; }
.badge svg { width: 14px; height: 14px; }
.badge-ghost { background: transparent; color: var(--laurier); border: 1px solid var(--laurier); }
.profile-rank { text-align: right; }
.profile-rank strong { display: block; font-family: var(--titre); font-size: clamp(4rem, 9vw, 6.4rem); font-weight: 600; line-height: 0.9; color: var(--laurier); }
.profile-rank span { color: var(--sur-nuit-2); font-size: 0.95rem; }
.profile-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.profile-actions .btn { white-space: nowrap; }
.profile-actions .btn svg { width: 16px; height: 16px; }
.profile-actions .btn-ghost { color: var(--sur-nuit); border-color: var(--nuit-3); }
.profile-actions .btn-ghost:hover { background: var(--nuit-2); color: #fff; }
.profile-actions .btn-ghost[aria-pressed="true"] { color: var(--nuit); background: var(--laurier); border-color: var(--laurier); }

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre-haute); margin-top: -36px; position: relative; }
.figure { padding: 20px 22px; }
.figure + .figure { border-left: 1px solid var(--trait); }
.figure-label { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--texte-3); font-weight: 600; margin: 0 0 6px; }
.figure-value { font-family: var(--titre); font-size: 1.9rem; font-weight: 560; line-height: 1.05; margin: 0; }
.figure-note { font-size: 0.82rem; color: var(--texte-2); margin: 6px 0 0; }

.chart-card { padding: 22px 22px 14px; }
.chart-card h3 { font-family: var(--texte-police); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--texte-3); font-weight: 600; margin: 0 0 14px; }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
.chart-grid { stroke: var(--trait); stroke-width: 1; }
.chart-base { stroke: var(--trait-fort); stroke-width: 1.4; stroke-dasharray: 4 4; }
.chart-label { fill: var(--texte-3); font-size: 11px; font-family: var(--texte-police); }
.chart-line { fill: none; stroke: var(--nuit); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: var(--laurier); opacity: 0.16; }
.chart-dot { fill: var(--laurier); stroke: var(--nuit); stroke-width: 2.4; }
.chart-cursor { stroke: var(--nuit); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.chart-cursor-dot { fill: var(--nuit); stroke: var(--papier); stroke-width: 2; opacity: 0; }
.chart.is-hover .chart-cursor, .chart.is-hover .chart-cursor-dot { opacity: 1; }
.chart-tip { position: absolute; left: 0; top: 0; pointer-events: none; background: var(--nuit); color: #fff; font-size: 0.8rem; padding: 6px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity 90ms; }
.chart-tip b { color: var(--laurier); font-weight: 600; margin-right: 6px; }
.chart-tip.is-on { opacity: 1; }

.moments { list-style: none; margin: 0; padding: 0; }
.moments.card { padding: 4px 22px; }
.moments li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--trait); }
.moments li:last-child { border-bottom: none; }
.moments span { color: var(--texte-2); }
.moments strong { font-weight: 600; text-align: right; }
.moments small { display: block; color: var(--texte-3); font-weight: 400; font-size: 0.78rem; }
.neighbours .board-row { grid-template-columns: 42px minmax(0, 1fr) 88px 80px; min-height: 56px; padding-right: 4px; font-size: 0.93rem; }
.neighbours .avatar { --size: 32px; }
.neighbours .board-row.is-self { background: #fffaea; }
.neighbours .cell-rank { font-size: 1.25rem; padding-left: 18px; }

details.history summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; align-items: center; gap: 10px; color: var(--nuit); }
details.history summary::-webkit-details-marker { display: none; }
details.history summary::before { content: "+"; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--trait-fort); display: grid; place-items: center; font-weight: 500; }
details.history[open] summary::before { content: "\2212"; }

table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
caption { text-align: left; padding: 0 0 10px; color: var(--texte-3); font-size: 0.85rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--trait); white-space: nowrap; }
thead th { font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--texte-3); font-weight: 600; background: var(--ivoire); }
td.num, th.num { text-align: right; }
.table-wrap { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); overflow-x: auto; box-shadow: var(--ombre); }
.table-wrap table tbody tr:last-child td { border-bottom: none; }

/* ------------------------------------------------------------ pages de texte */

.page-head { padding: 56px 0 8px; max-width: 46em; }
.prose { max-width: 44em; }
.prose h2 { margin-top: 1.7em; font-size: 1.7rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--laurier-texte); }
.note { border-left: 3px solid var(--laurier); background: var(--papier); padding: 14px 18px; border-radius: 0 var(--rayon-s) var(--rayon-s) 0; margin: 1.2em 0; }
.todo { color: #5c4710; background: var(--laurier-pale); padding: 1px 7px; border-radius: 5px; font-size: 0.9em; }
dl.facts { display: grid; grid-template-columns: minmax(9em, max-content) 1fr; gap: 12px 26px; margin: 0; }
dl.facts dt { color: var(--texte-3); font-size: 0.9rem; }
dl.facts dd { margin: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: etape; }
.steps li { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 26px; counter-increment: etape; box-shadow: var(--ombre); }
.steps li::before { content: counter(etape); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--nuit); color: var(--laurier); font-family: var(--titre); font-weight: 600; font-size: 1.3rem; margin-bottom: 16px; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--texte-2); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--titre); font-size: 1.2rem; font-weight: 560; color: var(--nuit); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--texte-police); color: var(--laurier-texte); font-weight: 600; transition: transform var(--vite); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--texte-2); margin: 0 0 18px; max-width: 42em; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--trait); }
.timeline li { position: relative; padding: 0 0 20px 30px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--ivoire); border: 2px solid var(--nuit); }
.timeline li.past::before { background: var(--nuit); }
.timeline li.next::before { background: var(--laurier); border-color: var(--laurier); }
.timeline time { display: block; font-size: 0.8rem; color: var(--texte-3); font-weight: 600; letter-spacing: 0.04em; }

.cta-band { margin-top: 80px; background: var(--nuit); color: var(--sur-nuit); border-radius: 22px; padding: 44px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: 24px; bottom: -70px; width: 220px; height: 227px; background: url("../img/embleme.svg") no-repeat center / contain; opacity: 0.08; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: var(--sur-nuit-2); margin: 0; max-width: 36em; }
.cta-band .btn { position: relative; z-index: 1; }

.assoc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center; }
.assoc-logo { background: var(--nuit); border-radius: 20px; padding: 26px 30px 22px; text-align: center; width: 270px; }
.assoc-logo img { width: 170px; height: 176px; display: block; margin: 0 auto; }
.assoc-logo .rule { display: flex; gap: 70px; justify-content: center; margin: 4px 0 14px; }
.assoc-logo .rule span { width: 70px; height: 3px; background: var(--laurier); }
.assoc-logo strong { display: block; font-family: var(--titre); color: #fff; font-weight: 500; font-size: 1.28rem; letter-spacing: 0.14em; }

/* ------------------------------------------------------------ formulaires et alertes */

.form { display: grid; gap: 16px; max-width: 520px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 0.92rem; }
.field .hint { font-size: 0.82rem; color: var(--texte-3); font-weight: 400; }
fieldset.field { border: none; padding: 0; margin: 0; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.check { display: flex; gap: 8px; align-items: center; font-size: 0.88rem; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.link-button { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.alert { border-radius: var(--rayon-s); padding: 13px 16px; border: 1px solid var(--trait-fort); background: var(--papier); margin-bottom: 18px; }
.alert-error { border-color: var(--baisse); color: var(--baisse); background: var(--baisse-fond); }
.alert-ok { border-color: var(--hausse); color: var(--hausse); background: var(--hausse-fond); }
.alert-warn { border-color: var(--laurier); background: var(--laurier-pale); color: #5c4710; }
.alert ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--texte); }
code, .mono { font-family: var(--mono); font-size: 0.86em; background: var(--ivoire-2); padding: 1px 6px; border-radius: 5px; }

/* ------------------------------------------------------------ administration */

.admin-bar { background: var(--nuit-profonde); color: var(--sur-nuit); border-top: 1px solid var(--nuit-3); }
.admin-bar .wrap { display: flex; gap: 8px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 50px; }
.admin-bar nav { display: flex; gap: 2px; flex-wrap: wrap; }
.admin-bar a { color: var(--sur-nuit-2); text-decoration: none; padding: 7px 11px; border-radius: 7px; font-size: 0.88rem; }
.admin-bar a:hover, .admin-bar a[aria-current="page"] { color: #fff; background: var(--nuit-2); }
.admin-bar .who-admin { font-size: 0.84rem; display: flex; gap: 12px; align-items: center; color: var(--laurier); }
.admin-bar .link-button { color: var(--sur-nuit-2); font-size: 0.84rem; }
.admin-main { padding-top: 40px; }
.status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.status-list li { display: flex; gap: 10px; align-items: baseline; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; background: var(--texte-3); }
.dot-ok { background: var(--hausse); }
.dot-warn { background: var(--laurier); }
.dot-bad { background: var(--baisse); }
.pill { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--trait-fort); color: var(--texte-2); }
.pill-ok { border-color: var(--hausse); color: var(--hausse); }
.pill-off { border-color: var(--baisse); color: var(--baisse); }
.auth-card { max-width: 460px; margin: 40px auto 0; }
/* Administration par sections : accueil, comptes et droits, activation d'un compte */
.card-link { display: block; color: inherit; text-decoration: none; transition: border-color var(--vite), box-shadow var(--vite); }
.card-link:hover, .card-link:focus-visible { border-color: var(--laurier); box-shadow: var(--ombre-haute); }
.card-link h2 { margin: 2px 0 14px; }
.pill-warn { border-color: var(--laurier); color: var(--laurier-texte); background: var(--laurier-pale); }
.pill-gold { border-color: var(--nuit); color: var(--nuit); background: var(--laurier-pale); }
.form-wide { max-width: 760px; }
.field-label { font-weight: 600; font-size: 0.92rem; }
.rights { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.rights legend { font-family: var(--titre); font-size: 1.2rem; font-weight: 560; margin-bottom: 6px; }
.rights-section { border-top: 1px solid var(--trait); padding-top: 14px; display: grid; gap: 10px; }
.rights-title { font-weight: 600; margin: 0; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; cursor: pointer; }
.choice input { margin-top: 4px; flex: none; }
.choice .hint { display: block; font-size: 0.83rem; color: var(--texte-3); font-weight: 400; margin-top: 2px; }
.levels { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.levels dt { font-weight: 600; }
.levels dd { margin: 0; color: var(--texte-2); }
.activation-card { max-width: 640px; margin: 30px auto 0; }
fieldset.activation-step { border: 1px solid var(--trait); border-radius: var(--rayon-s); padding: 16px 18px; display: grid; gap: 8px; margin: 0; }
.activation-step legend { font-weight: 600; padding: 0 6px; }
.qr { width: 220px; max-width: 100%; background: #fff; padding: 10px; border: 1px solid var(--trait); border-radius: var(--rayon-s); }
.qr svg { display: block; width: 100%; height: auto; }
.secret { word-spacing: 4px; letter-spacing: 0.06em; }
.copy-field { width: 100%; font-family: var(--mono); font-size: 0.86rem; }
@media (max-width: 760px) { .levels { grid-template-columns: 1fr; } .levels dd { margin-bottom: 6px; } }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 18px 20px; }
.kpi-label { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-3); font-weight: 600; margin: 0 0 6px; }
.kpi-value { font-family: var(--titre); font-size: 2rem; font-weight: 560; margin: 0; line-height: 1.1; }
.kpi-note { font-size: 0.82rem; color: var(--texte-2); margin: 4px 0 0; }

/* ------------------------------------------------------------ pied de page */

.site-footer { background: var(--nuit); color: var(--sur-nuit-2); padding: 56px 0 30px; font-size: 0.9rem; }
.site-footer .wrap { display: grid; gap: 32px; grid-template-columns: 1.6fr 1fr 1fr; }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-brand img { width: 64px; height: 66px; flex: none; }
.footer-brand strong { display: block; font-family: var(--titre); color: #fff; font-size: 1.25rem; font-weight: 560; margin-bottom: 6px; }
.footer-brand p { margin: 0; max-width: 30em; }
.site-footer h2 { font-family: var(--texte-police); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--laurier); margin: 0 0 14px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--sur-nuit); text-decoration: none; }
.site-footer a:hover { color: var(--laurier); }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid var(--nuit-3); padding-top: 18px; font-size: 0.8rem; color: var(--sur-nuit-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------ petits écrans */

@media (max-width: 980px) {
  .une { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; }
  .hero-asso-inner { grid-template-columns: 1fr; padding: 48px 0 56px; }
  .hero-asso-logo { display: none; }
  .grid-teaser { grid-template-columns: 1fr; }
  .grid-home { grid-template-columns: 1fr; gap: 56px; }
  .board-row { grid-template-columns: 54px 46px minmax(0, 1fr) 96px 84px 44px; }
  .col-gap, .col-trend { display: none; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 1080px) {
  .masthead .wrap { flex-wrap: wrap; min-height: 0; padding: 14px 0 0; gap: 10px 20px; }
  .masthead .live { margin-left: auto; }
  .nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-left: -12px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
}

@media (max-width: 760px) {
  .brand img { width: 40px; height: 41px; }
  .brand-name { font-size: 1.3rem; }
  .nav a { padding: 10px 10px 12px; font-size: 0.92rem; }
  .nav .nav-cta { padding: 6px 14px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--trait); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure:nth-child(3) { border-left: none; }
  .figure:nth-child(n + 3) { border-top: 1px solid var(--trait); }
  .grid-2, .grid-3, .steps { grid-template-columns: 1fr; }
  .profile .wrap { grid-template-columns: 1fr; gap: 20px; }
  .profile-rank { text-align: left; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .profile-actions { justify-content: flex-start; }
  .cta-band { grid-template-columns: 1fr; padding: 30px; }
  .assoc { grid-template-columns: 1fr; }
  .assoc-logo { margin: 0 auto; }
}

@media (max-width: 420px) {
  .nav a { padding: 10px 7px 12px; font-size: 0.86rem; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .wrap { width: min(100% - 32px, var(--largeur)); }
  .section { margin-top: 56px; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .board-row, .board--compact .board-row { grid-template-columns: 44px minmax(0, 1fr) 84px 36px; min-height: 64px; padding-right: 4px; }
  .col-move, .col-day { display: none; }
  .cell { padding: 0 6px; }
  .cell-rank { padding-left: 14px; font-size: 1.3rem; }
  .who { gap: 9px; }
  .avatar { --size: 32px; }
  .podium-card { padding: 22px 14px 0; }
  .podium .avatar { --size: 44px; }
  .podium .step-1 .avatar { --size: 54px; }
  .step-name { font-size: 0.9rem; }
  .step-1 .step-name { font-size: 1.02rem; }
  .race-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .race { min-width: 640px; }
  .board-head { letter-spacing: 0.08em; }
  .board-head button[aria-sort]::after { display: none; }
  .step-1 .step-block { height: 104px; font-size: 2.2rem; }
  .step-2 .step-block { height: 76px; }
  .step-3 .step-block { height: 56px; }
  .neighbours .board-row { grid-template-columns: 44px minmax(0, 1fr) 84px; }
  .neighbours .col-day { display: none; }
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 12px; }
  .search, .search input[type="search"] { min-width: 0; width: 100%; }
  .board-tools { flex-direction: column; align-items: stretch; }
  .profile-id { gap: 16px; }
  .avatar-xl { --size: 64px; font-size: 1.4rem; }
}
.who-sub { display: none; }
@media (max-width: 560px) { .who-sub { display: block; font-size: 0.76rem; font-weight: 500; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ticker { overflow-x: auto; }
}

@media print {
  .masthead nav, .ticker, .site-footer, .band, .board-tools, .admin-bar, .fav { display: none; }
  body { background: #fff; }
  .card, .board { box-shadow: none; }
}
