/* VYT Racing — feuille de style unique */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --bleu: #3C40AC;
  --bleu-fonce: #272A80;
  --rose: #FB029E;
  --rose-texte: #B0006E;
  --rose-clair: #FF4DB8;
  --encre: #14152B;
  --texte: #3A3B55;
  --texte-doux: #55566F;
  --fond: #F5F5FA;
  --carte: #FFFFFF;
  --trait: #E3E3EE;
  --nuit: #0B0B17;
  --rayon: 18px;
  --titre: "Barlow Condensed", "Arial Narrow", sans-serif;
  --corps: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--corps); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--bleu); }
a:hover { color: var(--bleu-fonce); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--encre); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

/* Titres */
.surtitre { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rose-texte); }
.titre-xl, .titre-l { margin: 0; font-family: var(--titre); font-weight: 800; font-style: italic; line-height: .98; text-transform: uppercase; color: var(--bleu); }
.titre-xl { font-size: clamp(44px, 7vw, 88px); }
.titre-l { font-size: clamp(38px, 5vw, 54px); }
.titre-m { margin: 0; font-family: var(--titre); font-weight: 700; font-size: 28px; line-height: 1.1; text-transform: uppercase; }
.lead { margin: 0; font-size: 18px; color: var(--texte); max-width: 640px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-rose { background: var(--rose); color: var(--encre); }
.btn-rose:hover { background: var(--rose-clair); color: var(--encre); }
.btn-bleu { background: var(--bleu); color: #fff; }
.btn-bleu:hover { background: var(--bleu-fonce); color: #fff; }
.btn-blanc { background: #fff; color: var(--bleu); }
.btn-blanc:hover { color: var(--bleu-fonce); }
.lien-fleche { font-weight: 600; text-decoration: none; }
.lien-fleche::after { content: " →"; }
.lien-fleche:hover { text-decoration: underline; }

/* En-tête */
.entete { background: #fff; border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 5; }
.entete .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.entete .logo img { height: 32px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--encre); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--bleu); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .btn { color: #fff; padding: 10px 20px; min-height: 44px; text-decoration: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--trait); border-radius: 10px; min-width: 44px; min-height: 44px; font: inherit; font-weight: 600; color: var(--encre); padding: 8px 12px; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 4px; }
  .nav.ouvert { display: flex; }
  .nav a { padding: 12px 4px; border-top: 1px solid var(--trait); }
  .nav .btn { margin-top: 10px; border-top: 0; }
}

.vibreur { height: 12px; background: url("img/vibreur.jpg") center / cover; }

/* Héros */
.heros { position: relative; overflow: hidden; background: var(--nuit); color: #fff; }
.heros > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.heros::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,23,.9) 0%, rgba(11,11,23,.6) 45%, rgba(11,11,23,0) 80%); }
.heros .wrap { position: relative; z-index: 1; padding-top: clamp(72px, 12vw, 140px); padding-bottom: clamp(72px, 11vw, 130px); display: flex; flex-direction: column; gap: 22px; }
.heros .titre-xl { color: #fff; max-width: 820px; }
.heros .titre-xl span { color: var(--rose-clair); }
.heros .lead { color: #E8E8F4; font-size: 19px; }
.pastille { align-self: flex-start; background: rgba(255,255,255,.14); color: #fff; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

/* Cartes rendez-vous */
.rdv { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.carte { background: var(--carte); border-radius: var(--rayon); padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 2px rgba(20,21,43,.06); }
.carte p { margin: 0; }
.carte .grand { font-family: var(--titre); font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--encre); }
.carte .meta { color: var(--texte-doux); font-size: 15px; }
.carte .surtitre.bleu { color: var(--bleu); }

/* Sections */
.section { padding: 88px 0 24px; }
.section-tete { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; }
.section-tete > div { flex: 1 1 480px; display: flex; flex-direction: column; gap: 14px; }
.section-tete > p { flex: 1 1 380px; margin: 0; font-size: 17px; color: var(--texte); }
.grille-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin-top: 44px; }
.pilier { background: var(--carte); border-radius: var(--rayon); padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.pilier p { margin: 0; color: var(--texte-doux); }
.pilier svg { width: 40px; height: 40px; }

/* Bloc découverte */
.bloc-bleu { display: flex; flex-wrap: wrap; background: var(--bleu); border-radius: 24px; overflow: hidden; color: #fff; }
.bloc-bleu > img { flex: 1 1 340px; min-height: 340px; max-height: 620px; object-fit: cover; object-position: center 70%; }
.bloc-bleu > div { flex: 1 1 480px; padding: clamp(32px, 5vw, 52px); display: flex; flex-direction: column; gap: 18px; }
.bloc-bleu .surtitre { color: #FFB3E2; }
.bloc-bleu .titre-l { color: #fff; }
.bloc-bleu p, .bloc-bleu li { color: #E4E5FA; }
.bloc-bleu p { margin: 0; font-size: 17px; }
.bloc-bleu ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.dates { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.dates li { background: rgba(255,255,255,.1); border-radius: 14px; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; color: #fff; }
.dates strong { font-family: var(--titre); font-size: 22px; font-weight: 700; }
.note { font-size: 14px !important; color: #CFD0F2 !important; }

/* Pilotes */
.duo { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.duo > div { flex: 1 1 440px; display: flex; flex-direction: column; gap: 16px; }
.duo > div > p { margin: 0; font-size: 17px; color: var(--texte); }
.frise { list-style: none; margin: 8px 0 0; padding: 0; border-left: 3px solid var(--rose); }
.frise li { padding: 0 0 18px 22px; display: flex; flex-direction: column; gap: 2px; }
.frise li:last-child { padding-bottom: 0; }
.frise b { font-family: var(--titre); font-size: 22px; color: var(--bleu); }
.frise span { color: var(--texte-doux); font-size: 15px; }
.duo > .mosaique { display: grid; flex-direction: initial; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mosaique img { width: 100%; height: 230px; object-fit: cover; border-radius: var(--rayon); }
.mosaique img:first-child { grid-column: span 2; height: 300px; }

/* Valeurs */
.valeurs { position: relative; overflow: hidden; background: var(--nuit); color: #fff; margin-top: 88px; }
.valeurs > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.valeurs .wrap { position: relative; padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 36px; }
.valeurs .titre-l { color: #fff; max-width: 640px; }
.valeurs .titre-l span { color: var(--rose-clair); }
.valeurs-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; }
.valeurs-grille div { border-top: 2px solid var(--rose); padding-top: 16px; }
.valeurs-grille h3 { margin: 0 0 6px; font-family: var(--titre); font-size: 28px; text-transform: uppercase; }
.valeurs-grille p { margin: 0; color: #D6D6E6; font-size: 15px; }

/* Soutien */
.soutien .pilier { padding: 32px; }
.soutien .pilier p { flex-grow: 1; }
.soutien .pilier .btn { align-self: flex-start; }
.soutien .mise-en-avant { outline: 3px solid var(--rose); outline-offset: -3px; }
.mention { margin: 18px 0 0; font-size: 14px; color: var(--texte-doux); }

/* Partenaires */
.partenaires { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 20px; }
.partenaires > div, .partenaires > a { background: #fff; border-radius: 14px; padding: 22px; display: block; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.partenaires > a:hover { box-shadow: 0 6px 20px rgba(60, 64, 172, .15); transform: translateY(-2px); }
.partenaires em { display: block; margin-top: 10px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--bleu); }
.partenaires .logo-part { display: flex; align-items: center; justify-content: center; height: 96px; margin: -6px -6px 14px; padding: 12px; border-radius: 10px; background: #fff; border: 1px solid var(--trait); }
.partenaires .logo-part.fonce { background: var(--encre); border-color: var(--encre); }
.partenaires .logo-part img { max-height: 72px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.partenaires b { display: block; font-family: var(--titre); font-size: 26px; }
.partenaires span { font-size: 14px; color: var(--texte-doux); }
.sponsor { display: block; margin-top: 20px; background: #fff; border-radius: 14px; padding: 26px; border-left: 6px solid var(--rose, #FB029E); color: inherit; text-decoration: none; }
.sponsor:hover { box-shadow: 0 6px 20px rgba(60, 64, 172, .15); }
.sponsor b { display: block; font-family: var(--titre); font-size: 30px; }
.sponsor span { display: block; font-size: 15px; color: var(--texte-doux); }
.sponsor em { display: block; margin-top: 12px; font-style: normal; font-size: 15px; color: var(--bleu, #3C40AC); font-weight: 600; }

/* Pied de page */
.pied { background: var(--encre); color: #D6D6E6; margin-top: 88px; }
.pied a { color: #D6D6E6; }
.pied a:hover { color: #fff; }
.pied .wrap { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; padding-top: 52px; padding-bottom: 36px; }
.pied .col { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.pied .col:first-child { flex-basis: 320px; }
.pied .marque { margin: 0; font-family: var(--titre); font-size: 32px; font-weight: 800; font-style: italic; color: #fff; }
.pied .marque span { color: var(--rose-clair); }
.pied p { margin: 0; }
.pied h2 { margin: 0; font-size: 15px; color: #fff; }
.pied .bas { padding: 16px 24px 28px; text-align: center; font-size: 13px; color: #A9AAC2; }

/* Page intérieure */
.bandeau { background: var(--bleu); color: #fff; }
.bandeau .wrap { padding-top: 60px; padding-bottom: 52px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; justify-content: space-between; }
.bandeau .wrap > div { flex: 1 1 520px; display: flex; flex-direction: column; gap: 14px; }
.bandeau .surtitre { color: #FFB3E2; }
.bandeau .titre-xl { color: #fff; font-size: clamp(42px, 6vw, 72px); }
.bandeau .lead { color: #E4E5FA; }
.maj { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: #E4E5FA; margin: 0; }
.cote { display: flex; flex-direction: column; gap: 12px; }

/* Calendrier */
.classements { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.classements a { background: #fff; border-radius: 16px; padding: 22px 24px; text-decoration: none; color: var(--encre); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.classements a:hover { outline: 2px solid var(--bleu); }
.classements b { font-family: var(--titre); font-size: 24px; display: block; }
.classements small { color: var(--texte-doux); font-size: 14px; }
.tableau { position: relative; background: #fff; border-radius: var(--rayon); overflow-x: auto; margin-top: 18px; }
.tableau table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.tableau th { text-align: left; color: var(--texte-doux); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; padding: 16px 20px; border-bottom: 1px solid var(--trait); }
.tableau td { padding: 16px 20px; border-bottom: 1px solid #EEEEF5; vertical-align: top; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau .date { white-space: nowrap; font-weight: 600; }
.tableau .lieu { color: var(--texte); }
.tableau .lieu small { display: block; color: var(--texte-doux); }
.tableau .liens { text-align: right; white-space: nowrap; }
.tableau .liens a + a { margin-left: 14px; }
.tableau tr.a-venir td:first-child { box-shadow: inset 4px 0 0 var(--rose); }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.tag-sud { background: #E7E8FA; color: #2B2E8C; }
.tag-sanchez { background: #FFE3F3; color: #9A0060; }
.tag-national { background: #EDEDF2; color: var(--texte); }
.tag-evenement { background: #FFF1D6; color: #7A4B00; }
.source { margin: 16px 0 0; font-size: 14px; color: var(--texte-doux); }

/* Carnet */
.recit { max-width: 760px; }
.recit article { background: #fff; border-radius: var(--rayon); padding: 32px; margin-top: 20px; }
.recit h2 { margin: 0 0 4px; font-family: var(--titre); font-size: 30px; line-height: 1.1; }
.recit .quand { margin: 0 0 14px; font-size: 14px; color: var(--rose-texte); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.recit p { margin: 0 0 12px; color: var(--texte); }
.recit-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 18px; }
.recit-photo { margin: 0; }
.recit-photo img { display: block; width: 100%; height: auto; border-radius: 12px; }
.recit .badge { display: inline-block; background: var(--rose); color: var(--encre); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }

/* Texte légal */
.texte { max-width: 760px; background: #fff; border-radius: var(--rayon); padding: clamp(24px, 4vw, 44px); margin-top: 40px; }
.texte h2 { font-family: var(--titre); font-size: 28px; margin: 28px 0 8px; }
.texte h2:first-child { margin-top: 0; }
.texte p, .texte li { color: var(--texte); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* Formulaire HelloAsso */
.widget-ha { background: #fff; border-radius: var(--rayon); padding: clamp(8px, 2vw, 24px); margin-top: 40px; }
.widget-ha iframe { display: block; width: 100%; height: 750px; border: 0; }

/* Carnet : cartes chrono et graphique de parcours */
.recit-chronos { display: grid; gap: 12px; margin: 6px 0 18px; }
.recit-chronos img { display: block; width: 100%; height: auto; border-radius: 12px; }
.parcours { margin: 6px 0 18px; padding: 14px 10px 6px; background: var(--encre); border-radius: 12px; }
.parcours svg { display: block; width: 100%; height: auto; font-family: var(--titre); }
.parcours .p-titre { fill: #fff; font-size: 22px; font-weight: 800; font-style: italic; text-transform: uppercase; }
.parcours .p-leg { fill: #B4B6D2; font-size: 14px; }
.parcours .p-axe { fill: #B4B6D2; font-size: 15px; font-weight: 700; }
.parcours .p-grille { stroke: rgba(255,255,255,.12); stroke-width: 1; }
.parcours .p-podium { fill: rgba(251, 2, 158, .10); }
.parcours .p-ligne { fill: none; stroke: var(--rose); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.parcours .p-pt { fill: var(--bleu); stroke: #fff; stroke-width: 3; }
.parcours .p-pt.top { fill: var(--rose); }
.parcours .p-num { fill: #fff; font-size: 17px; font-weight: 800; }

/* Article à la une */
.recit h3 { margin: 22px 0 8px; font-family: var(--titre); font-size: 22px; font-style: italic; text-transform: uppercase; color: var(--bleu); }
.recit .chapeau { font-size: 18px; font-weight: 600; color: var(--encre); }
.recit-photo figcaption { margin: 6px 0 16px; font-size: 13px; color: var(--texte-doux); }
.recit-photos.trio { grid-template-columns: repeat(3, 1fr); }
.a-la-une { border-top: 6px solid var(--rose); }
.dedicace { margin: 22px 0; padding: 22px 26px; background: var(--encre); color: #fff; border-radius: 12px; border-left: 6px solid var(--rose); font-family: var(--titre); font-size: 28px; font-style: italic; font-weight: 800; line-height: 1.2; }
.dedicace span { display: block; margin-top: 8px; font-family: var(--corps); font-size: 14px; font-style: normal; font-weight: 600; color: #B4B6D2; }
.parcours .p-nom { fill: #D6D6E6; font-size: 16px; font-weight: 700; }
.parcours .p-nom.us { fill: #fff; }
.parcours .b1 { fill: #5A5D9E; } .parcours .b2 { fill: #8B8EC9; }
.parcours .b1.us { fill: var(--bleu); stroke: #fff; stroke-width: 1; } .parcours .b2.us { fill: var(--rose); }

/* ---------- Carnet : années, frise et timeline ---------- */
:root { --haut-entete: 74px; --c-victoire: #F5B800; --c-podium: var(--rose); --c-course: var(--bleu); --c-roulage: #19A88A; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.carnet.recit { max-width: 960px; padding-top: 8px; }
.carnet-chiffres { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 28px; }
.carnet-chiffres div { background: #fff; border-radius: 14px; padding: 16px 14px; text-align: center; }
.carnet-chiffres b { display: block; font-family: var(--titre); font-size: 40px; font-style: italic; font-weight: 800; line-height: 1; color: var(--bleu); }
.carnet-chiffres div:nth-child(3) b, .carnet-chiffres div:nth-child(4) b { color: var(--rose); }
.carnet-chiffres span { font-size: 13px; font-weight: 600; color: var(--texte-doux); text-transform: uppercase; letter-spacing: .05em; }

.carnet-frise { display: flex; margin-top: 18px; background: var(--encre); border-radius: 16px; padding: 22px 18px 18px; overflow-x: auto; position: relative; }
.frise-an::before { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 3px; background: linear-gradient(90deg, var(--bleu), var(--rose)); }
.frise-an:first-child::before { left: 50%; } .frise-an:last-child::before { right: 50%; }
.frise-an { flex: 1 1 0; min-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.frise-annee { font-family: var(--titre); font-size: 26px; font-style: italic; font-weight: 800; color: #fff; text-decoration: none; }
.frise-annee:hover { color: #FFB3E2; }
.frise-points { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; position: relative; z-index: 1; }
.point { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--c-course); border: 3px solid var(--encre); box-shadow: 0 0 0 2px rgba(255,255,255,.75); transition: transform .15s; }
.point:hover, .point:focus-visible { transform: scale(1.35); }
.point.type-victoire { background: var(--c-victoire); } .point.type-podium { background: var(--c-podium); } .point.type-roulage { background: var(--c-roulage); }
.frise-legende { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin: 10px 2px 0; font-size: 13px; color: var(--texte-doux); }
.frise-legende .point { width: 12px; height: 12px; border-width: 2px; border-color: #fff; box-shadow: 0 0 0 1px var(--trait); margin-right: 6px; vertical-align: -1px; }

.carnet-barre { position: sticky; top: var(--haut-entete); z-index: 4; display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; align-items: center; margin: 26px -12px 0; padding: 10px 12px; background: rgba(245,245,250,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait); }
.carnet-annees, .carnet-filtres { display: flex; gap: 6px; flex-wrap: wrap; }
.carnet-annees a { font-family: var(--titre); font-weight: 800; font-style: italic; font-size: 18px; padding: 4px 12px; border-radius: 999px; color: var(--bleu); text-decoration: none; }
.carnet-annees a:hover, .carnet-annees a.actif { background: var(--bleu); color: #fff; }
.carnet-filtres button { font: inherit; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--trait); background: #fff; color: var(--encre); cursor: pointer; }
.carnet-filtres button[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: #fff; }

.annee { scroll-margin-top: calc(var(--haut-entete) + 70px); margin-top: 34px; }
.annee-tete { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 3px solid var(--encre); padding-bottom: 6px; }
.carnet .annee-num { margin: 0; font-family: var(--titre); font-size: clamp(64px, 11vw, 112px); font-style: italic; font-weight: 800; line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--bleu); }
.annee-tete p { margin: 0; font-weight: 600; color: var(--texte-doux); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 92px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 66px; top: 22px; bottom: 0; width: 3px; background: repeating-linear-gradient(180deg, var(--encre) 0 10px, #fff 10px 20px); opacity: .25; }
.etape { position: relative; }
.etape::before { content: ""; position: absolute; left: -33px; top: 46px; width: 18px; height: 18px; border-radius: 50%; background: var(--c-course); border: 4px solid var(--fond); box-shadow: 0 0 0 2px var(--c-course); }
.etape[data-type="victoire"]::before { background: var(--c-victoire); box-shadow: 0 0 0 2px var(--c-victoire); }
.etape[data-type="podium"]::before { background: var(--c-podium); box-shadow: 0 0 0 2px var(--c-podium); }
.etape[data-type="roulage"]::before { background: var(--c-roulage); box-shadow: 0 0 0 2px var(--c-roulage); }
.etape-date { position: absolute; left: -92px; top: 26px; width: 50px; text-align: center; font-family: var(--titre); font-style: italic; line-height: 1; }
.etape-date .j { display: block; font-size: 32px; font-weight: 800; color: var(--encre); }
.etape-date .m { display: block; font-size: 15px; font-weight: 700; color: var(--rose-texte); text-transform: uppercase; }
.recit .timeline article { margin-top: 20px; scroll-margin-top: calc(var(--haut-entete) + 70px); position: relative; }
.timeline article.type-roulage { border-left: 6px solid var(--c-roulage); }
.timeline article.type-victoire { border-top: 6px solid var(--c-victoire); }
.timeline article.type-victoire .badge { background: var(--c-victoire); }
.timeline article.type-roulage .badge { background: var(--c-roulage); color: #fff; }

.timeline article.replie { max-height: 620px; overflow: hidden; }
.timeline article.replie::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(rgba(255,255,255,0), #fff 75%); pointer-events: none; }
.lire-suite { display: block; margin: 14px auto 0; font: inherit; font-weight: 700; font-size: 15px; padding: 10px 20px; border-radius: 999px; border: 0; background: var(--bleu); color: #fff; cursor: pointer; position: relative; z-index: 1; }
.timeline article.replie .lire-suite { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; }
.lire-suite:hover { background: var(--bleu-fonce); }

@media (max-width: 700px) {
  .carnet-chiffres { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .carnet-chiffres div { padding: 10px 4px; border-radius: 10px; }
  .carnet-chiffres b { font-size: 24px; }
  .carnet-chiffres div:last-child b { font-size: 17px; line-height: 1.4; }
  .carnet-chiffres span { font-size: 10px; letter-spacing: 0; }
  .carnet-frise { padding: 18px 6px 14px; }
  .frise-an { flex: 0 0 auto; min-width: 0; padding: 0 14px; }
  .frise-points { flex-wrap: nowrap; }
  .frise-annee { font-size: 22px; }
  .timeline { padding-left: 26px; }
  .timeline::before { left: 8px; }
  .etape::before { left: -26px; top: 30px; }
  .etape-date { position: static; display: flex; gap: 6px; align-items: baseline; width: auto; margin: 26px 0 -12px; text-align: left; }
  .etape-date .j { font-size: 24px; }
  .recit article { padding: 22px; }
  .recit-photos.trio { grid-template-columns: 1fr 1fr; }
  .recit-photos.trio .recit-photo:nth-child(3) { grid-column: span 2; }
  .recit-photos.trio .recit-photo:nth-child(3) img { aspect-ratio: 16 / 10; object-fit: cover; }
  .carnet-barre { margin: 20px -16px 0; padding: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) { .point { transition: none; } }
.frise-legende > span:not(.point) { display: inline-flex; align-items: center; }
.timeline article.replie { max-height: 560px; }
.timeline article.replie .recit-photo img { max-height: 240px; width: 100%; object-fit: cover; }
.timeline article.replie .recit-chronos, .timeline article.replie .parcours { display: none; }
.recit-photos.trio img { aspect-ratio: 3 / 4; object-fit: cover; }
.recit-photos img { aspect-ratio: 3 / 4; object-fit: cover; }
.recit-photos.paysage img { aspect-ratio: 16 / 10; }
.recit-photos.mixte { grid-template-columns: 1fr 2fr; align-items: center; }
.recit-photos.mixte img { aspect-ratio: auto; }
.parcours .p-pt.or { fill: var(--c-victoire); }
.timeline article.type-victoire .dedicace { border-left-color: var(--c-victoire); }
.a-la-une > .recit-photo:first-of-type img { max-height: 620px; width: 100%; object-fit: cover; }
