/* ==========================================================
   Uriel Lascombes · feuille de style
   Palette : calcaire (fond), encre (texte), ocre (accent)
   Polices : Archivo (titres, chiffres), Source Serif 4 (texte long)
   ========================================================== */

/* Polices auto-hébergées (licence SIL OFL) */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
}

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --ink: #1d1c1a;
  --ink-2: #45423d;
  --muted: #77716a;
  --line: #d9d2c4;
  --accent: #b4492a;
  --accent-ink: #8f3519;

  --gold: #c9a13b;
  --gold-2: #e8cf85;
  --silver: #9aa0a6;
  --silver-2: #d5d8dc;
  --bronze: #a8683a;
  --bronze-2: #d9a57a;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --narrow: 680px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.kicker a { text-decoration: none; }

.section-title {
  font-stretch: 80%;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

/* ---------- En-tête ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}
.brand {
  font-weight: 800;
  font-stretch: 85%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-size: 0.95rem;
}
.nav nav { display: flex; gap: clamp(0.9rem, 3vw, 2rem); }
.nav nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink-2);
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
}
.nav nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* En-tête posé sur la photo, page d'accueil */
.is-home .site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  border-bottom: 0;
  color: #fff;
  background: linear-gradient(rgba(0,0,0,0.28), rgba(0,0,0,0));
}
.is-home .site-header .brand,
.is-home .site-header nav a { color: #fff; }
.is-home .site-header nav a:hover { border-bottom-color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: min(88vh, 860px);
  min-height: 520px;
  overflow: hidden;
  background: #2a2a28;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,8,0.62) 0%, rgba(10,10,8,0.12) 42%, rgba(10,10,8,0) 60%);
}
.hero-text {
  position: absolute;
  left: 0; right: 0; bottom: clamp(28px, 7vh, 72px);
  z-index: 2;
}
.hero-text .kicker { color: rgba(255,255,255,0.85); }
.hero-name {
  margin: 0;
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.01em;
  font-size: clamp(3.4rem, 11vw, 9rem);
}

/* ---------- Intro ---------- */
.intro {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  padding-top: clamp(3rem, 8vw, 5.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
}
.intro-text {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.42;
  margin: 0;
  color: var(--ink);
}
.club-line { font-size: 0.88rem; color: var(--muted); margin: 1.4rem 0 0; }
.club-line a { color: var(--ink); }

/* Cotes : chiffre au-dessus du logo (logos dans leurs couleurs d'origine) */
.scores {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.scores li + li { border-left: 1px solid var(--line); }
.scores a, .scores .score-static {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 0.4rem 1.1rem;
  text-decoration: none;
}
.scores a:hover { background: var(--paper-2); color: var(--ink); }
.score-num {
  font-weight: 700;
  font-stretch: 80%;
  font-size: 1.75rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.scores img { height: 26px; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- Blocs génériques ---------- */
.block { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(1rem, 3vw, 2rem); }
.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--ink);
}
.more { font-size: 0.88rem; color: var(--ink-2); }

/* ---------- Médailles ---------- */
.medal { width: 28px; height: 36px; display: block; overflow: visible; }
.medal .medal-ribbon { fill: var(--accent); }
.medal text { font-family: var(--sans); font-weight: 800; font-size: 11px; fill: var(--ink); }
.medal-1 .medal-disc { fill: var(--gold); }
.medal-1 .medal-ring { fill: none; stroke: var(--gold-2); stroke-width: 1.2; }
.medal-2 .medal-disc { fill: var(--silver); }
.medal-2 .medal-ring { fill: none; stroke: var(--silver-2); stroke-width: 1.2; }
.medal-2 .medal-ribbon { fill: var(--ink-2); }
.medal-3 .medal-disc { fill: var(--bronze); }
.medal-3 .medal-ring { fill: none; stroke: var(--bronze-2); stroke-width: 1.2; }
.medal-3 .medal-ribbon { fill: var(--ink-2); }
.medal-3 text { fill: #fff; }

/* ---------- Tableau des résultats ---------- */
.results { list-style: none; margin: 0; padding: 0; }
.results li {
  display: grid;
  grid-template-columns: 44px 76px minmax(0, 1fr) 170px 72px 58px 58px 64px;
  column-gap: 14px;
  align-items: center;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.results-head {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.7rem 0 !important;
}
.results-head span { font-size: inherit; font-weight: 500; color: inherit; }
.results-head img { height: 18px; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
.r-rank { display: flex; justify-content: center; }
.rank-num {
  font-weight: 700;
  font-stretch: 80%;
  font-size: 1.05rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.rank-num sup { font-size: 0.6em; }
.r-date { font-size: 0.86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.r-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; }
.r-title { font-weight: 650; font-size: 1.02rem; }
.r-title a { text-decoration: none; }
.r-title a:hover { text-decoration: underline; }
.r-mention {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 1px 6px;
}
.r-comment {
  flex-basis: 100%;
  font-family: var(--serif);
  font-size: 0.97rem;
  color: var(--ink-2);
  line-height: 1.45;
  margin-top: 0.2rem;
}
.r-shoes { flex-basis: 100%; font-size: 0.8rem; color: var(--muted); }
.r-link {
  flex-basis: 100%;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-ink);
  margin-top: 0.15rem;
}
.r-dist, .r-time { font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.r-dist { color: var(--ink-2); }
.r-time { font-weight: 600; }
.r-score { text-align: center; font-size: 0.92rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.r-score .nil { color: var(--line); font-weight: 400; }
.r-score-logo { display: none; }
.r-scores { display: contents; }
.result.is-podium .r-title { font-weight: 700; }

.year-block + .year-block { margin-top: 3rem; }
.year-title {
  font-weight: 800;
  font-stretch: 70%;
  font-size: 2.4rem;
  margin: 0;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--ink);
}

/* ---------- Bande photos ---------- */
.photo-band {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 6px;
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
}
.photo-band figure { margin: 0; position: relative; overflow: hidden; height: clamp(260px, 36vw, 460px); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.photo-band figcaption {
  position: absolute;
  left: 12px; bottom: 10px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ---------- Cartes récits ---------- */
.recit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.2rem);
  padding-top: 1.5rem;
}
.recit-card { display: flex; flex-direction: column; text-decoration: none; }
.recit-card img, .recit-card-bib {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 0.9rem;
  background: var(--paper-2);
}
.recit-card-bib {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  border-top: 5px solid var(--accent);
}
.bib-top { display: flex; justify-content: space-between; align-items: flex-start; }
.bib-top .medal { width: 24px; height: 31px; }
.bib-top .medal text { fill: var(--ink); }
.bib-top .medal-3 text { fill: #fff; }
.bib-top .medal-2 .medal-ribbon, .bib-top .medal-3 .medal-ribbon { fill: #8a857c; }
.bib-rank { font-weight: 700; font-stretch: 80%; font-size: 1.2rem; }
.bib-rank sup { font-size: 0.6em; }
.bib-date { font-size: 0.78rem; letter-spacing: 0.1em; color: #b9b3a8; font-variant-numeric: tabular-nums; }
.bib-big {
  font-weight: 800;
  font-stretch: 65%;
  font-size: clamp(3.6rem, 7vw, 5.2rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.bib-big small { font-size: 0.32em; font-stretch: 90%; margin-left: 0.25rem; letter-spacing: 0.04em; }
.bib-sub { font-size: 0.85rem; color: #cfc9be; font-variant-numeric: tabular-nums; margin-top: 0.4rem; }
.recit-card:hover .recit-card-bib { border-top-color: var(--gold); }
.recit-card-meta { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.recit-card-title { font-weight: 700; font-stretch: 85%; font-size: 1.3rem; line-height: 1.15; margin: 0.25rem 0 0.4rem; }
.recit-card-chapo { font-family: var(--serif); color: var(--ink-2); font-size: 0.98rem; line-height: 1.45; }
.recit-card:hover .recit-card-title { color: var(--accent); }

/* ---------- Bouton ---------- */
.button {
  display: inline-block;
  flex-shrink: 0;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 1.4rem;
  border-radius: 2px;
}
.button:hover { background: var(--accent); color: #fff; }

/* ---------- Pages simples ---------- */
.page { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.page-head { margin-bottom: 1.6rem; }
.page-title {
  margin: 0;
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 0.95;
}
.lede { font-family: var(--serif); font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; margin: 0 0 2.5rem; }

/* Texte long */
.prose { font-family: var(--serif); font-size: 1.12rem; line-height: 1.65; }
.prose p { margin: 0 0 1.1em; }
.prose h2 {
  font-family: var(--sans);
  font-stretch: 80%;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 2.4em 0 0.9em;
}
.prose ul { padding-left: 1.1em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--accent); }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-photo { margin: 0; position: sticky; top: 2rem; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-photo figcaption, .recit-photo figcaption { font-size: 0.75rem; color: var(--muted); margin-top: 0.5rem; font-family: var(--sans); }
.about-text > p:first-child { margin-top: 0; }
.kv { margin: 0; font-family: var(--sans); font-size: 0.95rem; }
.kv div { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.profile-links { list-style: none !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 0.5rem; font-family: var(--sans); font-size: 0.9rem; }
.profile-links a { display: inline-block; padding: 0.4rem 0.8rem; border: 1px solid var(--line); text-decoration: none; border-radius: 2px; }
.profile-links a:hover { border-color: var(--accent); }

/* ---------- Récit ---------- */
.recit-head { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.recit-title {
  margin: 0;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  line-height: 1;
  text-transform: uppercase;
}
.recit-chapo { font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; color: var(--ink-2); margin: 1.2rem 0 0; }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 0 1rem;
  margin: 2rem 0 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.facts div { padding: 0.8rem 0 0.9rem; }
.facts dt { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); height: 16px; }
.facts dt img { height: 15px; width: auto; }
.facts dd { margin: 0.3rem 0 0; font-weight: 700; font-stretch: 80%; font-size: 1.35rem; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 0.4rem; }
.facts dd sup { font-size: 0.55em; margin-left: -0.3rem; align-self: flex-start; margin-top: 0.2em; }
.facts .medal { width: 20px; height: 26px; }
.recit-photo { margin: 2.5rem auto 0; max-width: 960px; }
.recit-photo img { width: 100%; max-height: 640px; object-fit: cover; }
.recit-body { padding-top: 2.5rem; }
.recit-gear {
  font-family: var(--sans);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 2rem;
}
.recit-gear span { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--muted); margin-right: 0.6rem; }
.recit-nav {
  display: flex;
  max-width: var(--narrow);
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--ink);
}
.recit-nav a { text-decoration: none; font-weight: 650; max-width: 48%; }
.recit-nav a span { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 0.2rem; }
.rn-next { text-align: right; margin-left: auto; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #d8d3ca; margin-top: 0; padding: 2.8rem 0 1.4rem; }
.site-footer a { color: #f4f1ea; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-bottom-line { max-width: var(--wrap); margin: 2.2rem auto 0; padding: 0 var(--gutter); }
.footer-bottom-line hr { border: 0; border-top: 1px solid #3a3834; margin: 0; }
.footer-name { font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: 0.04em; margin: 0; color: #fff; }
.footer-meta { margin: 0.3rem 0 0; font-size: 0.88rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; font-size: 0.9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 0; padding-top: 1rem; font-size: 0.78rem; color: #9a948a; }

/* ---------- Tablette ---------- */
@media (max-width: 960px) {
  .intro { grid-template-columns: 1fr; }
  .results li { grid-template-columns: 40px 64px minmax(0, 1fr) 150px 66px; }
  .results li .r-scores, .results-head > .r-score { display: none; }
  .recit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .nav { height: 56px; }
  .brand { font-size: 0.82rem; }
  .nav nav a { font-size: 0.84rem; }
  .hero { height: 78vh; min-height: 460px; }
  .scores img { height: 20px; }
  .score-num { font-size: 1.35rem; }

  .results-head { display: none !important; }
  .results li {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank date time"
      "rank name name"
      "rank dist dist"
      "rank scores scores";
    row-gap: 0.25rem;
    align-items: start;
  }
  .r-rank { grid-area: rank; justify-content: flex-start; padding-top: 2px; }
  .r-date { grid-area: date; font-size: 0.76rem; letter-spacing: 0.04em; }
  .r-name { grid-area: name; }
  .r-time { grid-area: time; text-align: right; }
  .r-dist { grid-area: dist; font-size: 0.84rem; color: var(--muted); }
  .results li .r-scores { grid-area: scores; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-top: 0.15rem; }
  .results li .r-scores > .r-score { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; }
  .r-score .nil { display: none; }
  .r-score:has(.nil) { display: none !important; }
  .r-score-logo { display: inline-block; height: 13px; width: auto; }

  .photo-band { grid-template-columns: 1fr 1fr; }
  .photo-band .pb-wide { grid-column: 1 / 3; }
  .photo-band figure { height: 240px; }
  .recit-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-photo { position: static; }
  .kv div { grid-template-columns: 100px 1fr; }
  .recit-nav { flex-direction: column; }
  .recit-nav a { max-width: 100%; }
}
.nocaps { text-transform: none; }

/* ---------- Crédits photos ---------- */
figure .credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(127,127,127,0.5); }
.credits-list { list-style: none !important; padding: 0 !important; font-family: var(--sans); font-size: 0.95rem; columns: 2; }
.credits-list li { margin: 0 0 0.4rem; }
.kv-note { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }

/* ---------- Étiquette challenge ---------- */
.tag-challenge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: var(--paper-2);
  border-radius: 3px;
  padding: 2px 7px;
  text-decoration: none;
  white-space: nowrap;
}
a.tag-challenge:hover { background: var(--ink); color: var(--paper); }
.recit-tags { margin: 1rem 0 0; }
.recit-tags .tag-challenge { font-size: 0.78rem; padding: 3px 9px; }

/* ---------- Résultat mis en avant (récits) ---------- */
.recit-result {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1.1rem 0 0;
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1;
  color: var(--ink-2);
}
.recit-result .medal { width: 40px; height: 52px; flex-shrink: 0; }
.recit-result.is-win .rr-label { color: var(--accent); }
.recit-result sup { font-size: 0.55em; text-transform: none; }
.rr-time {
  font-weight: 500;
  font-stretch: 100%;
  text-transform: none;
  font-size: 1rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  align-self: flex-end;
  margin-bottom: 0.15rem;
}

.recit-card-media { position: relative; display: block; }
.recit-card-media img { margin-bottom: 0.9rem; }
.card-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px 4px 6px;
  background: rgba(29, 28, 26, 0.86);
  color: var(--paper);
  font-weight: 700;
  font-stretch: 80%;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
}
.card-badge .medal { width: 20px; height: 26px; }
.card-badge .medal-2 .medal-ribbon, .card-badge .medal-3 .medal-ribbon { fill: #8a857c; }
.card-badge sup { font-size: 0.6em; text-transform: none; }
.card-badge.is-win { border-bottom: 3px solid var(--gold); }
.recit-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Carrousels ---------- */
.carousel {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 3 / 2;
  max-height: 78vh;
}
.car-track { position: absolute; inset: 0; }
.car-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.car-slide.is-active { opacity: 1; z-index: 1; }
.car-slide img, .car-slide picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.car-slide.is-portrait .car-img { object-fit: contain; }
.car-slide .car-bg { filter: blur(28px) brightness(0.55); transform: scale(1.15); }
.car-slide figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  right: 120px;
  z-index: 2;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.car-slide figcaption a { color: inherit; }
.car-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 0;
  border-radius: 50%;
  background: rgba(20,20,18,0.45);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  display: grid;
  place-items: center;
}
.car-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.car-prev { left: 12px; }
.car-next { right: 12px; }
.carousel:hover .car-btn, .car-btn:focus-visible { opacity: 1; }
.car-btn:hover { background: rgba(20,20,18,0.75); }
.car-dots {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.car-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.car-dots button[aria-selected="true"] { background: #fff; width: 18px; border-radius: 4px; }

/* Carrousel du haut de l'accueil */
.carousel-hero { position: absolute; inset: 0; aspect-ratio: auto; max-height: none; }
.carousel-hero .car-slide img { object-position: 60% 40%; }
.carousel-hero .car-slide figcaption { left: auto; right: var(--gutter); bottom: 14px; text-align: right; color: rgba(255,255,255,0.75); font-size: 0.7rem; }
.carousel-hero .car-dots { right: auto; left: 50%; transform: translateX(-50%); bottom: 18px; }
.carousel-hero .car-btn { display: none; }
.hero::after { z-index: 2; pointer-events: none; }
.hero-text { z-index: 3; pointer-events: none; }

/* Carrousel des récits */
.recit-media { max-width: 1000px; margin: 2.5rem auto 0; }
@media (max-width: 640px) {
  .recit-media { padding: 0; }
  .carousel-hero .car-slide figcaption { display: none; }
  .car-btn { opacity: 1; width: 34px; height: 34px; margin-top: -17px; }
  .carousel-hero .car-btn { display: none; }
}

/* ---------- Entraîneur ---------- */
.footer-coach { display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 1.1rem; }
.footer-coach span { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #9a948a; }
.footer-coach img { height: 30px; width: auto; }
.footer-coach:hover img { opacity: 0.8; }
.coach-card {
  display: flex; align-items: center; gap: 1.2rem;
  margin: 1.6rem 0 0; padding: 1rem 1.2rem;
  background: var(--ink); color: #d8d3ca; text-decoration: none;
  font-family: var(--sans); font-size: 0.92rem; border-radius: 2px;
}
.coach-card img { height: 40px; width: auto; flex-shrink: 0; }
.coach-card:hover { color: #fff; }
@media (max-width: 640px) { .coach-card { flex-direction: column; align-items: flex-start; } }

/* ---------- Presse ---------- */
.press-list, .recit-press { font-family: var(--sans); }
.recit-press { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--ink); }
.recit-press .section-title { margin-bottom: 0.4rem; }
.press-item { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.press-meta { margin: 0; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.press-media { color: var(--ink); font-weight: 700; }
.press-lock { color: var(--accent-ink); }
.press-title { margin: 0.3rem 0 0; font-weight: 700; font-stretch: 85%; font-size: 1.15rem; line-height: 1.25; }
.press-title a { text-decoration: none; }
.press-title a:hover { text-decoration: underline; }
.press-quote { margin: 0.5rem 0 0; padding-left: 0.9rem; border-left: 2px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: 0.98rem; color: var(--ink-2); }
.press-original { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--muted); }

/* ---------- Tests matériel : podium ---------- */
.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  margin: 1rem 0 3.5rem;
}
.podium-step { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.podium-2 { order: 1; } .podium-1 { order: 2; } .podium-3 { order: 3; }
.podium-visual {
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 0;
}
.podium-1 .podium-visual { aspect-ratio: 1 / 1; }
.podium-visual img, .podium-visual svg { width: 100%; height: 100%; object-fit: contain; }
.podium-name { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0.9rem 0.5rem 1rem; background: #fff; border: 1px solid var(--line); border-top: 0; }
.podium-brand { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.podium-model { font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(1.3rem, 2.8vw, 2rem); line-height: 1; margin-top: 0.2rem; }
.podium-quote { font-family: var(--serif); font-style: italic; color: var(--ink-2); margin-top: 0.5rem; font-size: 0.98rem; }
.podium-block {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--ink); color: var(--paper);
  font-weight: 800; font-stretch: 70%; font-size: 2.6rem; line-height: 1;
}
.podium-1 .podium-block { height: 130px; border-top: 5px solid var(--gold); }
.podium-2 .podium-block { height: 95px; border-top: 5px solid var(--silver); }
.podium-3 .podium-block { height: 70px; border-top: 5px solid var(--bronze); }
.podium-block .medal { width: 30px; height: 39px; }
.podium-block .medal-2 .medal-ribbon, .podium-block .medal-3 .medal-ribbon { fill: #8a857c; }
.podium-step:hover .podium-model { color: var(--accent); }
.shoe-placeholder path { fill: var(--paper-2); }
.shoe-placeholder .shoe-sole { fill: var(--line); }

.tests-all-title { padding-bottom: 0.9rem; border-bottom: 1px solid var(--ink); }
.shoe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; padding-top: 1.4rem; }
.shoe-card { display: flex; flex-direction: column; text-decoration: none; }
.shoe-card-visual { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 0.8rem; background: #fff; border: 1px solid var(--line); margin-bottom: 0.7rem; }
.shoe-card-visual img, .shoe-card-visual svg { width: 100%; height: 100%; object-fit: contain; }
.shoe-card-brand { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.shoe-card-model { font-weight: 700; font-stretch: 85%; font-size: 1.2rem; }
.shoe-card-meta { font-size: 0.82rem; color: var(--ink-2); }
.shoe-card:hover .shoe-card-model { color: var(--accent); }

/* ---------- Fiche chaussure ---------- */
.shoe-top { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; margin-top: 2rem; }
.shoe-hero { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 1.2rem; background: #fff; border: 1px solid var(--line); }
.shoe-hero img, .shoe-hero svg { width: 100%; height: 100%; object-fit: contain; }
.shoe-specs { margin: 0; font-size: 0.93rem; }
.shoe-specs div { display: grid; grid-template-columns: 130px 1fr; gap: 0.8rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.shoe-specs div:first-child { border-top: 1px solid var(--ink); }
.shoe-specs dt { color: var(--muted); }
.shoe-specs dd { margin: 0; font-weight: 600; }
.shoe-specs .nil { color: var(--muted); font-weight: 400; font-style: italic; }
.shoe-races { list-style: none !important; padding: 0 !important; font-family: var(--sans); font-size: 0.95rem; }
.shoe-races li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.sr-date { display: inline-block; width: 70px; color: var(--muted); font-variant-numeric: tabular-nums; }
.shoe-note { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); margin-top: 1.5rem; }

@media (max-width: 800px) {
  .shoe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shoe-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .podium { grid-template-columns: 1fr; gap: 1.2rem; }
  .podium-1 { order: 1; } .podium-2 { order: 2; } .podium-3 { order: 3; }
  .podium-visual, .podium-1 .podium-visual { aspect-ratio: 16 / 9; }
  .podium-1 .podium-block, .podium-2 .podium-block, .podium-3 .podium-block { height: 56px; font-size: 1.8rem; }
}
.press-original { font-style: italic; }

/* ---------- Correctifs mobile ---------- */
.about > *, .about-text { min-width: 0; }
.about-text a, .press-item, .credits-list a { overflow-wrap: anywhere; }
.nav nav a { white-space: nowrap; }
@media (max-width: 640px) {
  .nav { gap: 0.6rem; }
  .brand { font-size: 0.74rem; white-space: nowrap; letter-spacing: 0.02em; }
  .nav nav { gap: 0.75rem; }
  .nav nav a { font-size: 0.8rem; }
}
@media (max-width: 370px) {
  .brand { font-size: 0.68rem; }
  .nav nav { gap: 0.55rem; }
  .nav nav a { font-size: 0.74rem; }
}

/* ---------- En bref / objectifs ---------- */

/* ---------- Objectifs (page Résultats) ---------- */
.goals-block { margin-bottom: 3.5rem; }
.goals-sub { font-size: 0.4em; font-stretch: 90%; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); vertical-align: middle; margin-left: 0.4rem; }
.goals { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.goal { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--ink); padding: 1rem 1.1rem 1.1rem; }
.goal.is-champ { border-top-color: #10246a; }
.goal p { margin: 0; }
.goal-date { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.goal-name { font-weight: 800; font-stretch: 80%; font-size: 1.3rem; line-height: 1.1; margin-top: 0.4rem !important; }
.goal-format { font-size: 0.85rem; color: var(--ink-2); margin-top: 0.3rem !important; }
.goal-format span { color: var(--muted); }
.goal-figures { display: flex; gap: 1rem; margin-top: 0.8rem !important; font-size: 0.85rem; color: var(--muted); }
.goal-figures b { font-weight: 800; font-stretch: 75%; font-size: 1.4rem; color: var(--ink); margin-right: 0.15rem; }
.goal-link { font-size: 0.8rem; font-weight: 600; color: var(--accent-ink); margin-left: auto; }
@media (max-width: 960px) { .goals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .goals { grid-template-columns: 1fr; } }
.goal-logo { height: 130px; display: flex; align-items: center; justify-content: center; margin: 0.2rem 0 1.2rem !important; overflow: hidden; }
.goal-logo img { display: block; max-height: 130px; max-width: 92%; width: auto; height: auto; object-fit: contain; }
.goal.is-champ .goal-logo img { max-height: 64px; }
.goal-link { white-space: nowrap; }
.goal-body { margin-top: auto; }
/* objectifs : lignes alignées d'une carte à l'autre */
.goal-body { margin-top: 0; }
.goal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; }
.goal-top .goal-link { font-size: 0.78rem; margin-left: 0; }
.goal-name { min-height: 3.3em; }
.goal-format { min-height: 3.1em; }
.goal-figures { margin-top: 0.5rem !important; }
.goal { padding-bottom: 1rem; }
@media (max-width: 520px) { .goal-name, .goal-format { min-height: 0; } }

.about-story { padding-left: 1rem; border-left: 2px solid var(--accent); color: var(--ink-2); }
.intro-text { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 600px) { .intro-text { text-align: left; } }

/* ---------- Bilan par année (Résultats) ---------- */
.year-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ink);
}
.year-head .year-title { border-bottom: 0; padding-bottom: 0; line-height: 0.9; }
.year-stats { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.6rem; margin: 0; padding: 0 0 0.2rem; }
.year-stats li { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.year-stats b { font-weight: 800; font-stretch: 70%; font-size: 1.7rem; line-height: 1; letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.year-stats .medal { width: 18px; height: 24px; }
.year-stats .ys-1 b, .year-stats .ys-1 { color: #a67c1a; }
.year-stats .ys-1 { font-weight: 700; }
.year-highlights { list-style: none; margin: 0.9rem 0 0.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.year-highlights li {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.9rem 0.5rem 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
}
.year-highlights .medal { width: 22px; height: 29px; flex-shrink: 0; }
.yh-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem; font-size: 0.92rem; }
.yh-text strong { font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-ink); }
.yh-text a, .yh-text > span { font-weight: 600; text-decoration: none; }
.yh-text a:hover { text-decoration: underline; }
.yh-text em { font-style: normal; font-size: 0.75rem; color: var(--muted); }
@media (max-width: 640px) {
  .year-head { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .year-stats b { font-size: 1.4rem; }
}
.ys-short { display: none; }
@media (max-width: 640px) {
  .year-stats { gap: 0.4rem 1rem; }
  .ys-long { display: none; }
  .ys-short { display: inline; text-transform: none; }
}
@media (max-width: 640px) {
  .year-stats { gap: 0.3rem 0.75rem; flex-wrap: nowrap; }
  .year-stats li { font-size: 0.7rem; gap: 0.25rem; letter-spacing: 0.02em; }
  .year-stats b { font-size: 1.25rem; }
  .year-stats .medal { width: 14px; height: 19px; }
}

/* Poids sans semelle de propreté */
.spec-note { display: block; font-weight: 400; font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }

/* ---------- Chaussures : usage, avis, tableau ---------- */
.lede p { margin: 0 0 0.8rem; }
.lede p:last-child { margin-bottom: 0; }
.shoe-usage { font-size: 0.95rem; color: var(--ink); margin: 0.9rem 0 0; max-width: 60ch; }
.shoe-usage span { display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }

.note { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; vertical-align: middle; }
.note-seg { width: 13px; height: 7px; border-radius: 1.5px; background: var(--line); }
.note-seg.on { background: var(--accent); }
.note-num { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-left: 0.5rem; font-variant-numeric: tabular-nums; }
.note-vide { color: var(--muted); }

.shoe-pros { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.6rem 0 0.5rem; }
.pros-col h3 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.6rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--ink); }
.pros-col ul { list-style: none; margin: 0; padding: 0; }
.pros-col li { font-family: var(--sans); font-size: 0.92rem; padding: 0.4rem 0 0.4rem 1.2rem; border-bottom: 1px solid var(--line); position: relative; }
.pros-col li::before { position: absolute; left: 0; font-weight: 700; }
.pros-plus li::before { content: "+"; color: var(--accent); }
.pros-moins li::before { content: "–"; color: var(--muted); }

.shoe-table-wrap { overflow-x: auto; margin-top: 1.2rem; -webkit-overflow-scrolling: touch; }
.shoe-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 0.92rem; min-width: 640px; }
.shoe-table th, .shoe-table td { text-align: left; padding: 0.75rem 0.8rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.shoe-table thead th { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--ink); }
.shoe-table tbody th { font-weight: 700; white-space: nowrap; }
.shoe-table tbody th a { text-decoration: none; }
.shoe-table tbody th a:hover { color: var(--accent); }
.st-brand { font-weight: 400; color: var(--muted); }
.st-pod { display: inline-block; width: 22px; }
.st-pod svg { width: 15px; height: auto; vertical-align: -3px; }
.shoe-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 1.4rem; }
.shoe-table td:last-child, .shoe-table th:last-child { padding-right: 0; }
@media (max-width: 640px) {
  .shoe-pros { grid-template-columns: 1fr; gap: 1rem; }
}

.shoe-table-wrap + .shoe-note { margin-bottom: 3.5rem; }

/* Club + entraîneur (pied de page, À propos) */
.footer-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 2rem; margin-top: 1.1rem; }
.footer-partners .footer-coach { margin-top: 0; }
.footer-club img { height: 44px; }
.coach-card img, .club-card img { width: 150px; height: 52px; object-fit: contain; object-position: left center; }
.club-card + .coach-card { margin-top: 0.8rem; }
