/* ==========================================================================
   Cyclo Club Coublevie — Maquette A « Borne de col »
   Signalétique de montagne : plaques émaillées, bornes kilométriques,
   panneaux de col, code couleur des pentes (= groupes de niveau).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* ADN du club (maillot + site historique) */
  --roi: #0645C9;        /* bleu roi : maillot, fond historique */
  --roi-fonce: #053497;
  --nuit: #032264;       /* bleu nuit : texte, plaques sombres */
  --citron: #FEF431;     /* jaune citron : capuchon des bornes départementales */

  /* Neutres de signalétique */
  --email: #FFFFFF;      /* blanc émail des plaques */
  --borne: #F1F3F0;      /* blanc borne, légèrement minéral (calcaire) */
  --bitume: #2B3038;     /* gris enrobé, texte secondaire */
  --encre: #0A1430;      /* encre de sérigraphie */
  --filet: #C9CED8;

  /* Code couleur des pentes = groupes de niveau */
  --g-vert: #1F7A3A;
  --g-bleu: #0645C9;
  --g-rouge: #C4161C;
  --g-noir: #111418;

  /* Typo */
  --f-display: "Big Shoulders", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-text: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-data: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Échelle (corps 18 px, display x6 et plus) */
  --fs-body: 1.125rem;
  --fs-small: 0.95rem;
  --fs-data: 0.82rem;
  --fs-h3: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --fs-h2: clamp(2.6rem, 1.8rem + 3.6vw, 4.6rem);
  --fs-h2xl: clamp(3.4rem, 2rem + 6vw, 7rem);
  --fs-giant: clamp(5.5rem, 2rem + 15vw, 15rem);

  /* Formes : 0 partout, sauf les plaques émaillées (rayon de signalétique) */
  --r-plate: 10px;
  --line: 3px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --maxw: 1360px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--encre);
  background: var(--email);
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--roi); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--nuit); }
abbr[title] { text-decoration: none; }
strong, b { font-weight: 700; }
.mono { font-family: var(--f-data); font-size: var(--fs-data); letter-spacing: 0; font-stretch: 87.5%; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Focus : double anneau nuit + citron, visible sur tous les fonds */
:focus-visible {
  outline: 3px solid var(--nuit);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--citron);
}
.hero :focus-visible, .vtt :focus-visible, .trips :focus-visible, .footer :focus-visible, .topline :focus-visible {
  outline-color: var(--citron);
  box-shadow: 0 0 0 6px var(--nuit);
}

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--citron); color: var(--nuit); padding: .75rem 1rem; font-weight: 700;
}
.skip:focus { top: 1rem; }

/* ---------- Composants ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7rem 1.25rem;
  font-family: var(--f-display); font-weight: 800; font-size: 1.3rem;
  text-transform: uppercase; letter-spacing: .02em; line-height: 1;
  text-decoration: none; border: var(--line) solid transparent; border-radius: 0;
  cursor: pointer;
}
.btn--lg { min-height: 60px; font-size: 1.55rem; padding: .9rem 1.6rem; }
.btn--citron { background: var(--citron); color: var(--nuit); border-color: var(--nuit); }
.btn--citron:hover { background: var(--email); color: var(--nuit); }
.btn--roi { background: var(--roi); color: #fff; }
.btn--roi:hover { background: var(--nuit); color: #fff; }
.btn--nuit { background: var(--nuit); color: #fff; }
.btn--nuit:hover { background: var(--roi); color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55em; min-height: 44px;
  font-weight: 700; color: var(--roi); text-decoration: none;
  border-bottom: 2px solid currentColor; line-height: 1.2;
}
.link-arrow::after {
  content: ""; width: .9em; height: .9em; flex: none;
  background: currentColor;
  clip-path: polygon(0 35%, 55% 35%, 55% 5%, 100% 50%, 55% 95%, 55% 65%, 0 65%);
}
.link-arrow:hover { color: var(--nuit); }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: var(--citron); }

/* Borne kilométrique : capuchon jaune (route départementale) + fût blanc */
.borne {
  display: inline-grid; grid-template-rows: 44% 1fr;
  width: 3.4rem; height: 4.4rem;
  border: var(--line) solid var(--nuit);
  border-radius: 1.7rem 1.7rem 3px 3px;
  background: var(--email); overflow: hidden; text-align: center;
  font-family: var(--f-display); color: var(--nuit); line-height: 1;
  flex: none;
}
.borne__cap {
  display: grid; place-items: end center; padding-bottom: .15rem;
  background: var(--citron); border-bottom: var(--line) solid var(--nuit);
  font-size: .78rem; font-weight: 800; letter-spacing: .06em;
}
.borne__num { display: grid; place-items: center; font-size: 1.65rem; font-weight: 900; }
.borne--dark { border-color: var(--email); }
.borne--dark .borne__cap { border-color: var(--email); }
.borne--lg { width: 4.6rem; height: 6rem; border-radius: 2.3rem 2.3rem 3px 3px; }
.borne--lg .borne__cap { font-size: 1rem; text-transform: uppercase; }
.borne--lg .borne__num { font-size: 2.6rem; }

/* Titres */
.h2 {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: var(--fs-h2); line-height: .9; letter-spacing: -.005em; color: var(--nuit);
}
.h2--xl { font-size: var(--fs-h2xl); }
.h2--light { color: #fff; }
.giant {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: var(--fs-giant); line-height: .78; letter-spacing: 0; color: var(--roi);
  margin-left: -.04em;
}
.giant--citron { color: var(--citron); }

/* Tags / pastilles de groupe */
.tag {
  display: inline-block; padding: .2rem .55rem .25rem;
  font-family: var(--f-display); font-weight: 800; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .04em; line-height: 1.1;
}
.tag--route { background: var(--roi); color: #fff; }
.tag--vtt { background: var(--citron); color: var(--nuit); box-shadow: inset 0 0 0 2px var(--nuit); }
.tag--outline { box-shadow: inset 0 0 0 2px var(--nuit); color: var(--nuit); }
.groups { display: inline-flex; gap: 3px; }
.g {
  display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .25rem;
  font-family: var(--f-data); font-size: .75rem; font-weight: 600; color: #fff; line-height: 1;
}
.g--v { background: var(--g-vert); }
.g--b { background: var(--g-bleu); }
.g--r { background: var(--g-rouge); }
.g--n { background: var(--g-noir); }

/* ---------- Bandeau + en-tête ---------- */
.topline { background: var(--nuit); color: #fff; font-size: .9rem; }
.topline__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topline p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topline__member { color: var(--citron); font-weight: 700; display: none; min-height: 40px; align-items: center; }
.topline__member:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--email); border-bottom: var(--line) solid var(--nuit);
}
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }

.wordmark { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--nuit); }
.wordmark__ccc {
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem;
  background: var(--roi); color: var(--citron);
  font-family: var(--f-display); font-weight: 900; font-size: 1.75rem; letter-spacing: -.02em;
  border-radius: 6px; box-shadow: inset 0 0 0 3px var(--roi), inset 0 0 0 5px var(--citron);
}
.wordmark__txt {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: 1.12rem; line-height: .95; letter-spacing: .02em;
}

.nav-toggle {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 .9rem;
  background: var(--nuit); color: #fff; border: 0; cursor: pointer;
  font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; text-transform: uppercase;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 3px; background: currentColor; position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.nav { display: none; }
.nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--nuit); border-top: var(--line) solid var(--citron);
  max-height: calc(100vh - 72px); overflow-y: auto;
}
.nav.is-open .nav__list { padding: .5rem var(--gutter) 1.5rem; }
.nav.is-open a {
  display: flex; align-items: center; min-height: 56px;
  color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25);
  font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; text-transform: uppercase;
}
.nav.is-open a:hover { color: var(--citron); }
.nav.is-open .nav__cta a { margin-top: 1rem; border: var(--line) solid var(--citron); justify-content: center; color: var(--nuit); }
.nav.is-open .nav__member a { color: var(--citron); font-size: 1.3rem; border-bottom: 0; }

/* Sans JS : le menu reste accessible */
.no-js .nav-toggle { display: none; }
.no-js .nav { display: block; width: 100%; }
.no-js .site-header__in { flex-wrap: wrap; }
.no-js .nav__list { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding-bottom: .75rem; }

@media (min-width: 1080px) {
  .topline__member { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav, .nav.is-open { display: block; position: static; background: none; border: 0; max-height: none; overflow: visible; }
  .nav__list, .nav.is-open .nav__list { display: flex; align-items: center; gap: .15rem; padding: 0; }
  .nav a, .nav.is-open a {
    display: inline-flex; align-items: center; min-height: 48px; padding: 0 .75rem;
    font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; text-transform: uppercase;
    letter-spacing: .02em; color: var(--nuit); text-decoration: none; border: 0;
  }
  .nav a:hover, .nav.is-open a:hover { color: var(--roi); box-shadow: inset 0 -4px 0 var(--citron); }
  .nav__cta { margin-left: .5rem; }
  .nav .nav__cta a, .nav.is-open .nav__cta a { margin: 0; color: var(--nuit); border: var(--line) solid var(--nuit); padding: 0 1.1rem; }
  .nav .nav__cta a:hover { box-shadow: none; }
  .nav__member { display: none; }
}

/* ---------- HERO ---------- */
.hero { background: var(--roi); color: #fff; overflow: hidden; }
.hero__grid { display: grid; gap: 2rem; padding-block: 2.25rem 3rem; }
.hero__kicker { color: var(--citron); margin-bottom: 1rem; text-transform: uppercase; }
.hero__title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3.6rem, 1rem + 12.5vw, 9.6rem); line-height: .84; letter-spacing: -.012em;
}
.hero__title span { display: block; }
.hero__l2, .hero__l3 { color: var(--citron); }
.hero__lead { margin-top: 1.5rem; max-width: 36rem; font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

.hero__visual { position: relative; }
.hero__photo { border: var(--line) solid var(--email); background: var(--nuit); }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Panneau de col cycliste */
.colsign {
  position: relative; margin: -3rem .75rem 0 auto; max-width: 23rem;
  background: var(--email); color: var(--encre);
  border-radius: var(--r-plate);
  box-shadow: inset 0 0 0 5px var(--email), inset 0 0 0 8px var(--nuit);
  padding: 1.35rem 1.4rem 1.2rem;
}
.colsign__name {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.15rem; line-height: 1; letter-spacing: .04em; color: var(--nuit);
}
.colsign__name strong { display: block; font-weight: 900; font-size: 2.9rem; letter-spacing: -.01em; }
.colsign__data { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 1.1rem; margin-top: .7rem; padding-top: .7rem; border-top: 2px solid var(--nuit); }
.colsign__data div { display: flex; flex-direction: column-reverse; }
.colsign__data dt { font-size: .82rem; color: var(--bitume); }
.colsign__data dd { font-family: var(--f-display); font-weight: 900; font-size: 2.1rem; line-height: 1; color: var(--roi); }
.colsign__data small { font-size: .6em; margin-left: .05em; }
.colsign__next { display: grid; margin-top: .8rem; padding-top: .7rem; border-top: 2px solid var(--nuit); }
.colsign__next-lbl { font-size: .85rem; color: var(--bitume); }
.colsign__next-val { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; line-height: 1.05; color: var(--nuit); }
.colsign__next-in { color: var(--g-rouge); font-weight: 600; margin-top: .15rem; }
.slope { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: .9rem; }
.slope li {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: .95rem;
  color: #fff; text-align: center; padding: .3rem 0 .35rem; letter-spacing: .04em;
}
.slope__v { background: var(--g-vert); }
.slope__b { background: var(--g-bleu); }
.slope__r { background: var(--g-rouge); }
.slope__n { background: var(--g-noir); }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 3rem; padding-block: 3.5rem 4.5rem; }
  .colsign { margin: -5.5rem 0 0 -3rem; }
}

/* ---------- CETTE SEMAINE : tableau de départs ---------- */
.week { background: var(--borne); padding-block: 3.5rem 4rem; }
.week__grid { display: grid; gap: 2rem; }
.week__head .borne { margin-bottom: 1rem; }
.week__range { margin-top: .8rem; color: var(--roi-fonce); font-weight: 600; }
.week__note { margin-top: 1rem; max-width: 30rem; color: var(--bitume); }
.week__links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-top: 1.25rem; }

.board { border-top: var(--line) solid var(--nuit); }
.board__row {
  display: grid; grid-template-columns: 4.6rem 1fr; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--filet); position: relative;
}
.board__day { display: grid; justify-items: start; align-content: start; font-family: var(--f-display); color: var(--nuit); line-height: .9; }
.board__dow { font-weight: 800; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .05em; }
.board__dnum { font-weight: 900; font-size: 3.1rem; }
.board__mon { font-weight: 700; font-size: 1rem; }
.board__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.board__title { margin-top: .4rem; font-family: var(--f-display); font-weight: 800; font-size: var(--fs-h3); line-height: 1.02; text-transform: uppercase; color: var(--nuit); }
.board__meta { margin-top: .35rem; color: var(--bitume); }
.board__via { margin-top: .35rem; font-weight: 600; }
.board__figs { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: .5rem; color: var(--bitume); }
.board__figs b { font-family: var(--f-display); font-size: 2rem; font-weight: 900; color: var(--roi); }
.board__row--feat { background: var(--email); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); border-left: 8px solid var(--g-rouge); }
.board__row.is-past { opacity: .5; }
.board__row.is-past .board__title::after { content: " · passée"; font-family: var(--f-text); font-size: .9rem; text-transform: none; font-weight: 500; }
.board__row.is-next::before {
  content: "Prochain départ"; position: absolute; right: 0; top: 1rem;
  background: var(--citron); color: var(--nuit); padding: .15rem .5rem;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: .9rem; letter-spacing: .04em;
  box-shadow: inset 0 0 0 2px var(--nuit);
}
.board__empty { padding: 1.5rem; background: var(--email); border-left: 8px solid var(--citron); font-weight: 600; }

@media (min-width: 560px) {
  .board__row { grid-template-columns: 6rem 1fr; }
  .board__dnum { font-size: 3.8rem; }
}
@media (min-width: 900px) {
  .week__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4rem; align-items: start; }
  .week__head { position: sticky; top: 100px; }
  .board__row--feat { margin-inline: 0; padding-inline: 1.25rem 1rem; }
}
@media (max-width: 559px) {
  .board__row.is-next::before { position: static; grid-column: 2; justify-self: start; order: -1; }
  .board__row.is-next { grid-template-rows: auto 1fr; }
  .board__row.is-next .board__day { grid-row: 1 / span 2; }
}

/* ---------- ROUTE ---------- */
.route { padding-block: 4rem; background: var(--email); }
.route__grid { display: grid; gap: 2.5rem; }
.route__intro .borne { margin-bottom: 1rem; }
.route__lead { margin-top: 1.25rem; max-width: 34rem; font-size: 1.2rem; }
.route__photo img { width: 100%; aspect-ratio: 735 / 391; object-fit: cover; }

.months { margin-top: 2rem; max-width: 34rem; }
.months__title { font-weight: 700; margin-bottom: .5rem; }
.months__list { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; }
.months__list li {
  display: grid; place-items: center; height: 2.6rem;
  font-family: var(--f-display); font-weight: 800; font-size: 1.15rem;
}
.m-am { background: var(--citron); color: var(--nuit); }
.m-pm { background: var(--roi); color: #fff; }
.m-none { background: var(--borne); color: var(--bitume); }
.months__list li.is-now { outline: var(--line) solid var(--nuit); outline-offset: 2px; position: relative; z-index: 1; }
.months__legend { display: flex; align-items: center; gap: .4rem 1rem; margin-top: .6rem; color: var(--bitume); flex-wrap: wrap; }
.lg { display: inline-block; width: .9rem; height: .9rem; margin-right: -.6rem; vertical-align: middle; }
.lg--am { background: var(--citron); box-shadow: inset 0 0 0 1px var(--nuit); }
.lg--pm { background: var(--roi); }
.months__legend .lg { margin-right: .3rem; }

/* Sélecteur de niveau (signature) */
.levels {
  background: var(--borne); padding: 1.5rem var(--gutter) 2rem;
  margin-inline: calc(var(--gutter) * -1);
  display: grid; gap: 1.5rem;
}
.levels__title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: var(--fs-h3); color: var(--nuit); line-height: 1; }
.levels__hint { color: var(--bitume); margin-top: -.9rem; }
.levels__chart { position: relative; }
.ruler {
  position: relative; height: 1.6rem; margin-left: var(--lbl-w); margin-right: var(--km-w);
  border-bottom: 2px solid var(--nuit); color: var(--bitume);
}
.ruler span { position: absolute; left: calc(var(--at) * 100%); bottom: .3rem; transform: translateX(-50%); font-size: .7rem; white-space: nowrap; }
.ruler span:first-child { transform: none; }
.ruler span:last-child { transform: translateX(-100%); }
.levels__chart { --lbl-w: 4.4rem; --km-w: 4.4rem; }
.levels__rows { display: grid; gap: 4px; margin-top: 6px; }
.lvl {
  display: grid; grid-template-columns: var(--lbl-w) 1fr var(--km-w); align-items: center;
  min-height: 52px; padding: 0; border: 0; background: var(--email); cursor: pointer;
  font: inherit; color: var(--nuit); text-align: left;
  box-shadow: inset 0 0 0 2px transparent;
}
.lvl__name { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; padding-left: .7rem; }
.lvl__track {
  position: relative; height: 100%; min-height: 52px;
  background-image: linear-gradient(90deg, var(--filet) 1px, transparent 1px);
  background-size: calc(100% / 15) 100%;
}
.lvl__bar {
  position: absolute; top: 12px; bottom: 12px;
  left: calc(var(--from) / 150 * 100%); width: calc((var(--to) - var(--from)) / 150 * 100%);
  background: var(--c); opacity: .35;
  transition: opacity .2s ease, top .2s ease, bottom .2s ease;
}
.lvl__km { padding-left: .6rem; color: var(--bitume); }
.lvl--v { --c: var(--g-vert); }
.lvl--b { --c: var(--g-bleu); }
.lvl--r { --c: var(--g-rouge); }
.lvl--n { --c: var(--g-noir); }
.lvl:hover .lvl__bar { opacity: .6; }
.lvl[aria-selected="true"] { box-shadow: inset 0 0 0 3px var(--c); }
.lvl[aria-selected="true"] .lvl__bar { opacity: 1; top: 8px; bottom: 8px; }
.lvl[aria-selected="true"] .lvl__name { color: var(--c); }
.lvl[aria-selected="true"] .lvl__km { color: var(--encre); font-weight: 600; }

.lvlcard {
  --c: var(--g-vert);
  position: relative; background: var(--c); color: #fff;
  border-radius: var(--r-plate);
  box-shadow: inset 0 0 0 5px var(--c), inset 0 0 0 8px #fff;
  padding: 1.4rem 1.5rem 1.5rem;
}
.lvlcard[data-current="b"] { --c: var(--g-bleu); }
.lvlcard[data-current="r"] { --c: var(--g-rouge); }
.lvlcard[data-current="n"] { --c: var(--g-noir); }
.lvlcard__name { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; letter-spacing: .03em; }
.lvlcard__km { font-family: var(--f-display); font-weight: 900; font-size: clamp(4rem, 3rem + 4vw, 6rem); line-height: .85; margin-top: .3rem; }
.lvlcard__km small { font-size: .35em; margin-left: .2em; font-weight: 800; }
.lvlcard__pace { margin-top: .8rem; font-size: 1.2rem; font-weight: 600; max-width: 22rem; }
.lvlcard__agenda { margin-top: .9rem; padding-top: .7rem; border-top: 2px solid rgba(255,255,255,.55); }
.levels__noscript { font-weight: 600; }
@media (max-width: 559px) {
  .ruler span:nth-child(4) { display: none; }
  .lvl__name { font-size: 1.1rem; padding-left: .5rem; }
}

@media (min-width: 900px) {
  .route { padding-block: 5.5rem; }
  .route__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 4rem; row-gap: 3.5rem; }
  .route__photo { margin-right: calc(var(--gutter) * -1); align-self: start; margin-top: 4rem; }
  .levels {
    grid-column: 1 / -1; margin-inline: 0; padding: 2.25rem 2.5rem 2.5rem;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: 3rem; align-items: start;
  }
  .levels__title, .levels__hint { grid-column: 1; }
  .levels__chart { grid-column: 1; }
  .lvlcard { grid-column: 2; grid-row: 1 / span 3; }
  .levels__chart { --lbl-w: 6rem; --km-w: 5.5rem; }
  .ruler span { font-size: .78rem; }
}
@media (min-width: 1440px) {
  .route__photo { margin-right: calc((100vw - var(--maxw)) / -2 - var(--gutter)); }
}

/* ---------- VTT ---------- */
.vtt { background: var(--nuit); color: #fff; }
.vtt__grid { display: grid; max-width: calc(var(--maxw) + (100vw - var(--maxw)) / 2); }
.vtt__photo img { width: 100%; height: 100%; aspect-ratio: 603 / 320; object-fit: cover; }
.vtt__text { padding: 2.5rem var(--gutter) 3.5rem; }
.vtt__text .borne { margin-bottom: 1rem; }
.vtt__when { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); line-height: .95; margin: 1.25rem 0 1rem; }
.vtt__text > p:not(.vtt__when):not(.vtt__paces) { max-width: 34rem; color: #E6EBF7; }
.vtt__routes { display: grid; gap: 2px; margin-top: 1.75rem; max-width: 30rem; }
.vtt__routes div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .8rem 1rem; background: var(--roi); }
.vtt__routes div:first-child { background: var(--email); color: var(--nuit); }
.vtt__routes dt { font-weight: 700; }
.vtt__routes dd { font-size: 1rem; font-weight: 600; white-space: nowrap; }
.vtt__paces { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.vtt__paces span { padding: .25rem .6rem; box-shadow: inset 0 0 0 2px rgba(255,255,255,.8); font-weight: 600; font-size: .95rem; }
.vtt__paces .vtt__vae { background: var(--citron); color: var(--nuit); box-shadow: none; }

@media (min-width: 900px) {
  .vtt__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: stretch; }
  .vtt__photo img { aspect-ratio: auto; min-height: 100%; }
  .vtt__text { padding: 4.5rem var(--gutter) 4.5rem 3.5rem; }
}

/* ---------- TEAM J + LA PIOCHE ---------- */
.young { background: var(--borne); padding-block: 4rem; }
.young__grid { display: grid; gap: 3.5rem; }
.teamj .borne { margin-bottom: 1rem; }
.teamj__sub { margin-top: .8rem; font-size: 1.2rem; max-width: 30rem; }
.teamj__photo { margin-top: 1.5rem; border: var(--line) solid var(--nuit); }
.teamj__photo img { width: 100%; aspect-ratio: 479 / 270; object-fit: cover; }
.teamj__list { margin-top: 1.5rem; border-top: var(--line) solid var(--nuit); }
.teamj__list li { padding: .6rem 0 .6rem 1.6rem; border-bottom: 1px solid var(--filet); position: relative; }
.teamj__list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .7rem; height: .7rem; background: var(--roi); }
.callout { margin: 1.5rem 0 1rem; padding: 1rem 1.2rem; background: var(--citron); color: var(--nuit); border-left: 8px solid var(--nuit); }

.pioche { background: var(--email); align-self: start; border-top: 10px solid var(--citron); }
.pioche__photo img { width: 100%; aspect-ratio: 450 / 268; object-fit: cover; }
.pioche__body { padding: 1.5rem 1.4rem 1.75rem; }
.pioche__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: .95; color: var(--nuit); margin-bottom: .75rem; }
.pioche__title span { display: block; font-size: 2.2em; font-weight: 900; color: var(--roi); }
.price-plate {
  display: inline-flex; align-items: baseline; gap: .3rem; margin: 1.1rem 0 .75rem;
  background: var(--nuit); color: #fff; padding: .35rem 1rem .45rem;
  border-radius: var(--r-plate); box-shadow: inset 0 0 0 3px var(--nuit), inset 0 0 0 5px #fff;
  font-family: var(--f-display);
}
.price-plate__n { font-size: 2.8rem; font-weight: 900; line-height: 1; }
.price-plate__u { font-size: 1.2rem; font-weight: 800; text-transform: uppercase; }

@media (min-width: 900px) {
  .young { padding-block: 5.5rem; }
  .young__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 5rem; }
  .teamj { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2rem; align-content: start; }
  .teamj > .borne, .teamj > .h2, .teamj__sub { grid-column: 1 / -1; }
  .teamj__photo { grid-column: 1 / -1; }
  .teamj__list { grid-column: 1; }
  .teamj__aside { grid-column: 2; margin-top: 1.5rem; }
  .teamj__aside .callout { margin-top: 0; }
  .pioche { margin-top: 9rem; }
}

/* ---------- VOYAGES ---------- */
.trips { background: var(--roi); color: #fff; padding-block: 4rem; overflow: hidden; }
.trips__grid { display: grid; gap: 2.5rem; }
.trips__text .borne { margin-bottom: 1rem; }
.trips__lead { margin: 1.1rem 0 .8rem; font-size: 1.25rem; font-weight: 600; max-width: 32rem; }
.trips__text > p:not(.trips__lead) { max-width: 32rem; }
.trips__photo { margin-top: 2rem; border: var(--line) solid #fff; max-width: 34rem; }

.signpost { position: relative; padding: 0 0 1rem; }
.signpost::before { /* le poteau */
  content: ""; position: absolute; left: 50%; top: -1rem; bottom: -4rem; width: 14px; transform: translateX(-50%);
  background: var(--email); box-shadow: inset 0 0 0 3px var(--nuit);
}
.signpost__list { position: relative; display: grid; gap: .5rem; }
.arrow {
  --tip: 1.4rem;
  width: max-content; max-width: 92%; min-width: 55%;
  padding: .45rem calc(var(--tip) + .9rem) .5rem 1rem;
  background: var(--email); color: var(--nuit);
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem); line-height: 1; letter-spacing: .01em;
}
.arrow--r { justify-self: center; clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%); transform: translateX(22%); }
.arrow--l { justify-self: center; padding: .45rem 1rem .5rem calc(var(--tip) + .9rem); text-align: right; clip-path: polygon(var(--tip) 0, 100% 0, 100% 100%, var(--tip) 100%, 0 50%); transform: translateX(-22%); }
.arrow:nth-child(3n) { background: var(--citron); }
.arrow:nth-child(5n) { background: var(--nuit); color: #fff; }

@media (min-width: 900px) {
  .trips { padding-block: 5.5rem; }
  .trips__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; align-items: start; }
  .signpost { padding-top: 2rem; }
}

/* ---------- COUBLEVITAINE ---------- */
.cvt { background: var(--citron); color: var(--nuit); padding-block: 4rem; }
.cvt__grid { display: grid; gap: 2.5rem; }
.cvt__title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3.2rem, 1rem + 10vw, 9rem); line-height: .82; letter-spacing: -.015em;
}
.cvt__date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .6rem; margin-top: .8rem; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; line-height: .9; }
.cvt__d { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.2rem); color: var(--roi); }
.cvt__y { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.2rem); -webkit-text-stroke: 2px var(--nuit); color: transparent; }
.cvt__count { display: inline-block; margin-top: 1rem; background: var(--nuit); color: var(--citron); padding: .3rem .7rem; font-weight: 600; font-size: 1rem; }
.cvt__lead { font-size: 1.2rem; max-width: 36rem; }
.cvt__facts { margin-top: 1.25rem; border-top: var(--line) solid var(--nuit); }
.cvt__facts li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid rgba(3,34,100,.35); }
.cvt__facts b { font-size: .9rem; font-weight: 600; padding-top: .15rem; }

.profiles { background: var(--email); padding: 1.5rem var(--gutter) 1.75rem; margin-inline: calc(var(--gutter) * -1); }
.profiles__title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: var(--fs-h3); line-height: 1; }
.profiles__legend { margin-top: .5rem; font-size: var(--fs-small); color: var(--bitume); line-height: 1.9; }
.profiles__legend .g { min-width: 1.3rem; height: 1.3rem; font-size: .68rem; margin-right: .15rem; }
.profiles__src { margin-top: 1rem; color: var(--bitume); }
.ptable { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.ptable th, .ptable td { padding: .45rem .4rem; text-align: left; font-weight: 400; vertical-align: middle; }
.ptable thead th { font-size: .8rem; color: var(--bitume); border-bottom: 2px solid var(--nuit); padding-top: 0; }
.ptable thead th:nth-child(3), .ptable td:nth-child(3) { text-align: right; white-space: nowrap; }
.ptable thead th:last-child, .ptable td:last-child { text-align: right; width: 3rem; }
.ptable tbody th[scope="row"] { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; white-space: nowrap; }
.ptable__grp th { padding-top: 1rem; font-family: var(--f-display); font-weight: 900; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--roi); border-bottom: 1px solid var(--filet); }
.ptable td:nth-child(2) { width: 100%; }
.ptable td:nth-child(2) { position: relative; }
.pbar { display: block; height: .75rem; width: calc(var(--km) / 128 * 100%); background: var(--nuit); margin-bottom: .15rem; }
.ptable tbody tr:not(.ptable__grp) { border-bottom: 1px solid var(--borne); }

.cvt__side { display: grid; gap: 1.25rem; align-content: start; }
.cvt__poster { border: var(--line) solid var(--nuit); background: var(--email); max-width: 22rem; }
.cvt__poster figcaption { padding: .35rem .6rem; border-top: var(--line) solid var(--nuit); }
.tarifs { background: var(--nuit); color: #fff; padding: 1.2rem 1.25rem; border-radius: var(--r-plate); box-shadow: inset 0 0 0 4px var(--nuit), inset 0 0 0 6px var(--citron); }
.tarifs__title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.5rem; color: var(--citron); }
.tarifs dl div { display: grid; gap: .1rem; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.3); }
.tarifs dl div:last-child { border-bottom: 0; }
.tarifs dt { font-weight: 600; }
.tarifs dd { font-size: .95rem; }
.tarifs small { font-size: .85em; opacity: .9; }
.cvt__ravito { border: var(--line) solid var(--nuit); max-width: 22rem; }
.cvt__ravito img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (min-width: 900px) {
  .cvt { padding-block: 5.5rem; }
  .cvt__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 4rem; row-gap: 3rem; }
  .cvt__head { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 2rem; align-items: end; }
  .cvt__title { grid-column: 1 / -1; }
  .cvt__count { justify-self: start; align-self: end; margin-bottom: .3rem; }
  .cvt__intro { grid-column: 1; }
  .profiles { grid-column: 1; margin-inline: 0; padding: 2rem 2.25rem; }
  .cvt__side { grid-column: 2; grid-row: 2 / span 3; }
}

/* ---------- LE CLUB ---------- */
.club { background: var(--email); padding-block: 4rem; border-top: 10px solid var(--nuit); }
.club__grid { display: grid; gap: 2.5rem; }
.club__text .borne { margin-bottom: 1rem; }
.club__lead { margin: 1.25rem 0 .9rem; font-size: 1.2rem; max-width: 34rem; }
.club__text > p:not(.club__lead) { max-width: 34rem; color: var(--bitume); }

.climb { border-bottom: var(--line) solid var(--nuit); }
.climb__cap { font-weight: 700; margin-bottom: 1rem; }
.climb__bars { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: 6px; height: 16rem; }
.climb__bars li { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; }
.climb__bars li::before {
  content: ""; order: 2; display: block; height: calc(var(--v) / 230 * 72%);
  background: var(--roi);
  clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%);
}
.climb__bars li.is-now::before { background: var(--nuit); }
.climb__n { order: 1; font-family: var(--f-display); font-weight: 900; font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); line-height: 1; color: var(--nuit); margin-bottom: .2rem; }
.climb__y { order: 3; position: absolute; bottom: -1.7rem; left: 0; color: var(--bitume); }
.climb { padding-bottom: 0; margin-bottom: 1.8rem; }
.club__photo { border: var(--line) solid var(--nuit); max-width: 26rem; }
.club__photo img { width: 100%; aspect-ratio: 399 / 218; object-fit: cover; }

@media (min-width: 900px) {
  .club { padding-block: 5.5rem; }
  .club__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 5rem; align-items: start; }
  .climb { grid-column: 2; grid-row: 1 / span 2; margin-top: 2rem; }
  .club__photo { grid-column: 1; }
}

/* ---------- REJOINDRE ---------- */
.join { background: var(--borne); padding-block: 4rem; }
.join__head { max-width: 46rem; }
.join__lead { margin-top: 1rem; font-size: 1.25rem; }
.road { position: relative; display: grid; gap: 2.5rem; margin-top: 3rem; padding-left: 1.5rem; }
.road::before { /* la route, avec sa ligne médiane */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
  background: var(--nuit);
  background-image: linear-gradient(var(--citron) 50%, transparent 50%);
  background-size: 4px 28px; background-repeat: repeat-y; background-position: center;
}
.road__step { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; align-items: start; align-content: start; }
.road__step .borne { grid-row: 1 / span 3; }
.road__step h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: var(--fs-h3); line-height: 1; color: var(--nuit); padding-top: .4rem; }
.road__step p { margin: .5rem 0 .75rem; max-width: 26rem; }
.road__step .link-arrow, .road__step .btn { justify-self: start; }

.join__more { display: grid; gap: 2rem; margin-top: 3.5rem; }
.join__photo { border: var(--line) solid var(--nuit); background: var(--email); }
.join__photo img { width: 100%; aspect-ratio: 669 / 398; object-fit: cover; }
.join__photo figcaption { padding: .55rem .8rem; font-size: var(--fs-small); border-top: var(--line) solid var(--nuit); }
.join__links { border-top: var(--line) solid var(--nuit); align-self: start; }
.join__links a {
  display: grid; gap: .1rem; padding: .9rem 2.5rem .9rem 0; position: relative;
  border-bottom: 1px solid var(--filet); text-decoration: none; color: var(--nuit);
}
.join__links a::after {
  content: ""; position: absolute; right: .25rem; top: 50%; width: 1.4rem; height: 1rem; transform: translateY(-50%);
  background: var(--roi); clip-path: polygon(0 30%, 60% 30%, 60% 0, 100% 50%, 60% 100%, 60% 70%, 0 70%);
}
.join__links b { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.4rem; line-height: 1; }
.join__links span { color: var(--bitume); }
.join__links a:hover b { color: var(--roi); }

@media (min-width: 900px) {
  .join { padding-block: 5.5rem; }
  .road { grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 2.5rem 0 0; }
  .road::before {
    left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 14px;
    background-image: linear-gradient(90deg, var(--citron) 50%, transparent 50%);
    background-size: 28px 4px; background-repeat: repeat-x;
  }
  .road__step { grid-template-columns: 1fr; }
  .road__step .borne { grid-row: auto; margin-top: -4.6rem; margin-bottom: 1rem; }
  .join__more { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; }
}

/* ---------- ACTUS ---------- */
.news { background: var(--email); padding-block: 4rem; }
.news__grid { display: grid; gap: 2rem; }
.news__list { display: grid; gap: 1rem; }
.notice {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  padding: 1.1rem; border: var(--line) solid var(--nuit);
}
.notice h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; line-height: 1; color: var(--nuit); margin-bottom: .35rem; }
.notice__date { display: flex; align-items: center; gap: .3rem; background: var(--nuit); color: #fff; padding: .4rem .6rem; font-family: var(--f-display); line-height: .9; }
.notice__d { font-size: 2.6rem; font-weight: 900; }
.notice__m { font-size: .95rem; font-weight: 800; text-transform: uppercase; }
.notice--ag { background: var(--roi); color: #fff; border-color: var(--roi); }
.notice--ag h3 { color: var(--citron); }
.notice--ag .notice__date { background: var(--citron); color: var(--nuit); }
.notice__count { display: inline-block; margin-top: .6rem; padding: .15rem .5rem; background: var(--email); color: var(--nuit); font-weight: 600; }
.news__upd { color: var(--bitume); }

@media (min-width: 900px) {
  .news__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 4rem; }
  .news__list { grid-template-columns: 1fr 1.3fr 1fr; }
  .notice { grid-template-columns: 1fr; }
  .notice__date { justify-self: start; }
  .news__upd { grid-column: 2; }
}

/* ---------- FOOTER ---------- */
.footer { background: var(--nuit); color: #fff; padding-top: 3.5rem; }
.footer a { color: #fff; }
.footer a:hover { color: var(--citron); }
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
.wordmark--foot { color: #fff; }
.wordmark--foot .wordmark__ccc { box-shadow: inset 0 0 0 3px var(--roi), inset 0 0 0 5px var(--citron); }
.footer address { font-style: normal; margin-top: 1.25rem; line-height: 1.5; }
.footer__ids { margin-top: 1rem; color: #C8D2EA; line-height: 1.8; }
.footer__h { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .04em; color: var(--citron); margin: 0 0 .5rem; }
.footer__col ul + .footer__h { margin-top: 1.75rem; }
.footer__col li a { display: inline-flex; align-items: center; min-height: 40px; overflow-wrap: anywhere; }
.footer__inst { margin-bottom: 1.5rem; font-weight: 600; }
.partners { display: flex; flex-wrap: wrap; gap: .35rem; }
.partners li { padding: .2rem .5rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); font-size: .88rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem; border-top: 1px solid rgba(255,255,255,.25); font-size: .9rem; color: #C8D2EA; }
.footer__bottom a { color: #C8D2EA; }

@media (min-width: 900px) {
  .footer__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 6fr); gap: 3rem; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* ---------- Impression ---------- */
@media print {
  .topline, .nav, .nav-toggle, .hero__actions, .levels__chart { display: none; }
  .hero, .vtt, .trips, .cvt, .footer { background: #fff !important; color: #000 !important; }
}
