/* =========================================================
   Cyclo Club Coublevie · Maquette B « Carte topo »
   Tokens : papier froid, encre bleue du club, surligneur jaune
   ========================================================= */
:root {
  /* papier & encres */
  --papier: #F1F3F2;        /* papier de carte, gris froid légèrement minéral */
  --papier-2: #E4E9EC;      /* bande « marge de feuille » */
  --blanc: #FFFFFF;
  --encre: #032264;         /* bleu nuit du club : texte courant */
  --encre-2: #3C4762;       /* texte secondaire (7,9:1 sur papier) */
  --bleu: #0645C9;          /* bleu roi du club : courbes, liens */
  --bleu-fonce: #053497;
  --nuit: #032264;
  --jaune: #FEF431;         /* jaune citron : balisage, surligneur */
  --filet: #B9C3D1;         /* filets fins */
  /* groupes de niveau */
  --g-vert: #1D7A3B;
  --g-bleu: #0645C9;
  --g-rouge: #C22A20;
  --g-noir: #15181E;

  /* typo */
  --f-titre: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-texte: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-donnee: "Azeret Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --t-display: clamp(2.6rem, 1.4rem + 5vw, 5.6rem);
  --t-h2: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  --t-h3: clamp(1.45rem, 1.2rem + .9vw, 1.9rem);
  --t-chapo: clamp(1.15rem, 1.05rem + .45vw, 1.4rem);
  --t-corps: 1.125rem;      /* 18 px */
  --t-legende: .9375rem;    /* 15 px */
  --t-donnee: .875rem;      /* 14 px */

  --gouttiere: clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 var(--t-corps)/1.6 var(--f-texte);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--bleu); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--bleu-fonce); text-decoration-thickness: 2px; }
h1, h2, h3 { text-wrap: balance; font-family: var(--f-titre); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; }
p { margin: 0 0 1em; }
figure { margin: 0; }
.donnee { font-family: var(--f-donnee); font-size: .86em; letter-spacing: -.01em; font-feature-settings: "zero" 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }

.evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--nuit); color: var(--blanc); padding: .75rem 1rem; font-weight: 600;
}
.evitement:focus { top: 1rem; }

/* ---------- traits de légende (symboles) ---------- */
.trait { width: 2.2rem; height: .7rem; flex: none; overflow: visible; vertical-align: middle; }
.trait line, .trait path, .trait rect { fill: none; stroke-linecap: butt; }
.trait--route line { stroke: var(--encre); stroke-width: 3; }
.trait--route { filter: none; }
.trait--vtt line { stroke: var(--encre); stroke-width: 2.5; stroke-dasharray: 7 4; }
.trait--jeunes line { stroke: var(--bleu); stroke-width: 3; stroke-dasharray: 1 5; stroke-linecap: round; }
.trait--pioche { height: .9rem; }
.trait--pioche rect, .trait--pioche path { stroke: var(--encre); stroke-width: 1.4; }
.trait--voyage line, .trait--voyage path { stroke: var(--encre); stroke-width: 2.4; }

/* ---------- boutons & liens ---------- */
.bouton {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.25rem;
  background: var(--nuit); color: var(--blanc);
  font-weight: 600; text-decoration: none; letter-spacing: .005em;
  border: 2px solid var(--nuit);
  box-shadow: inset 0 -5px 0 var(--jaune);
  transition: background-color .15s, box-shadow .15s;
}
.bouton:hover { background: var(--bleu); border-color: var(--bleu); color: var(--blanc); box-shadow: inset 0 -8px 0 var(--jaune); }
.bouton--contour { background: transparent; color: var(--encre); box-shadow: none; }
.bouton--contour:hover { background: var(--encre); color: var(--blanc); box-shadow: none; }

.lien-fleche { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-weight: 600; color: var(--encre); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .1rem; }
.lien-fleche::after { content: "→"; font-family: var(--f-donnee); transition: transform .15s; }
.lien-fleche:hover { color: var(--bleu); }
.lien-fleche:hover::after { transform: translateX(3px); }

/* =========================================================
   EN-TÊTE
   ========================================================= */
.entete { position: sticky; top: 0; z-index: 50; background: var(--papier); border-bottom: 1px solid var(--encre); }
.entete__in { max-width: var(--max); margin: 0 auto; padding: .6rem var(--gouttiere); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marque { display: inline-flex; align-items: center; gap: .6rem; color: var(--encre); text-decoration: none; min-height: 44px; }
.marque:hover { color: var(--encre); }
.marque__signe { width: 2.6rem; height: 2.6rem; color: var(--bleu); flex: none; }
.marque__texte { display: flex; flex-direction: column; line-height: 1; }
.marque__cyclo { font: 700 .78rem/1 var(--f-texte); letter-spacing: .02em; }
.marque__lieu { font: italic 500 1.55rem/1 var(--f-titre); margin-top: .1rem; }

.menu-bouton {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .4rem .9rem;
  background: none; border: 1.5px solid var(--encre); color: var(--encre);
  font: 600 1rem var(--f-texte); cursor: pointer;
}
.menu-bouton__traits { width: 1.2rem; height: .7rem; border-top: 1.5px solid; border-bottom: 1.5px solid; position: relative; }
.menu-bouton__traits::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid; transform: translateY(-50%); }
.menu-bouton[aria-expanded="true"] { background: var(--encre); color: var(--blanc); }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { display: flex; align-items: center; min-height: 44px; color: var(--encre); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--bleu); text-decoration: underline; }
.nav__adherer { font-weight: 700 !important; }
.nav__adherer { background: linear-gradient(transparent 58%, var(--jaune) 58% 90%, transparent 90%); }

/* menu mobile ouvert */
.nav.est-ouvert {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--papier); border-bottom: 1px solid var(--encre);
  padding: .5rem var(--gouttiere) 1.25rem;
}
.nav.est-ouvert li { border-top: 1px solid var(--filet); }
.nav.est-ouvert a { font-size: 1.25rem; font-family: var(--f-titre); padding: .35rem 0; }
.nav.est-ouvert .nav__espace { font-family: var(--f-texte); font-size: 1rem; font-weight: 600; }

@media (min-width: 64em) {
  .menu-bouton { display: none; }
  .nav { display: block; }
  .nav ul { display: flex; align-items: center; gap: clamp(.8rem, 1.6vw, 1.75rem); }
  .nav a { font-size: .98rem; }
  .nav__espace { border: 1.5px solid var(--encre); padding: 0 .85rem; font-weight: 600 !important; }
  .nav__espace:hover { background: var(--encre); color: var(--blanc) !important; text-decoration: none !important; }
}

/* =========================================================
   PLANCHE (hero carte)
   ========================================================= */
.planche {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3.5rem) var(--gouttiere) clamp(2.5rem, 5vw, 4.5rem);
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
}
.cote { font: 400 var(--t-donnee) var(--f-donnee); color: var(--encre-2); margin-bottom: 1.25rem; }
.planche h1 { font-size: var(--t-display); font-weight: 400; line-height: .98; letter-spacing: -.025em; font-variation-settings: "opsz" 72; max-width: 11ch; }
.planche h1 em { color: var(--bleu); font-weight: 400; }
.chapo { font-size: var(--t-chapo); line-height: 1.45; max-width: 34ch; margin: 1.5rem 0 1.75rem; color: var(--encre); }

.legende-cle { margin: 0 0 2rem; border-top: 1px solid var(--encre); max-width: 26rem; }
.legende-cle > div { display: grid; grid-template-columns: 8.5rem 1fr; align-items: baseline; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--filet); }
.legende-cle dt { font-weight: 700; display: flex; align-items: center; gap: .6rem; }
.legende-cle dd { margin: 0; font-family: var(--f-donnee); font-size: var(--t-donnee); }

.planche__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-bottom: 2rem; }
.effectif { font-size: var(--t-legende); color: var(--encre-2); margin: 0; }
.effectif .donnee { color: var(--encre); font-weight: 600; font-size: 1.05rem; }
.effectif__src { font-style: italic; font-family: var(--f-titre); font-size: 1.05rem; }

/* ---------- la carte ---------- */
.carte { min-width: 0; }
.carte__cadre {
  position: relative;
  border: 2px solid var(--encre);
  outline: 1px solid var(--encre); outline-offset: 5px;
  margin: 6px;
  background: #EEF1F1;
  aspect-ratio: 820 / 700;
}
.carte__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.carte__estompage { opacity: .55; }
.carte__grille path { stroke: var(--encre); stroke-width: 1.2; fill: none; opacity: .55; }

.carte__noms text { fill: var(--encre); font-family: var(--f-titre); }
.t-massif { font-size: 30px; font-style: italic; letter-spacing: .32em; text-transform: uppercase; fill: var(--bleu-fonce) !important; opacity: .8; }
.t-region { font-size: 26px; font-style: italic; letter-spacing: .4em; text-transform: uppercase; opacity: .7; }
.t-eau { font-size: 24px; font-style: italic; fill: var(--bleu) !important; }
.t-lieu-dit { font-size: 20px; font-style: italic; opacity: .85; }
.t-sommet path { fill: var(--encre); }
.t-sommet text { font-size: 22px; font-style: italic; }
.t-sommet .t-cote { font-family: var(--f-donnee) !important; font-size: 16px; font-style: normal; }
.t-ville { font-size: 30px; font-weight: 600; }
.t-village { font-size: 21px; font-style: italic;
  paint-order: stroke; stroke: #EEF1F1; stroke-width: 5px; stroke-linejoin: round; }
.t-commune { font-family: var(--f-titre); font-size: 34px; font-weight: 600; fill: var(--encre);
  paint-order: stroke; stroke: #EEF1F1; stroke-width: 6px; stroke-linejoin: round; }
.t-depart { font-family: var(--f-donnee); font-size: 16px; fill: var(--encre);
  paint-order: stroke; stroke: #EEF1F1; stroke-width: 5px; }

.itineraire path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.itineraire__surligne { stroke: var(--jaune); stroke-width: 16; opacity: .95; }
.itineraire__encre { stroke: var(--nuit); stroke-width: 3.2; }

.depart__anneau { fill: var(--blanc); stroke: var(--nuit); stroke-width: 3; }
.depart__point { fill: var(--nuit); }

.curseur-carte { transition: transform .08s linear; }
.curseur-carte__halo { fill: none; stroke: var(--bleu); stroke-width: 2.5; }
.curseur-carte__point { fill: var(--bleu); stroke: var(--blanc); stroke-width: 2.5; }

.rose circle { fill: none; stroke: var(--encre); stroke-width: 1; opacity: .6; }
.rose path { fill: var(--encre); }
.rose__nord { fill: var(--encre); }
.rose text, .echelle text { font-family: var(--f-donnee); font-size: 18px; fill: var(--encre); }
.echelle__plein { fill: var(--encre); }
.echelle__vide { fill: #EEF1F1; stroke: var(--encre); stroke-width: 1.2; }

.cadre-coord span { position: absolute; font: 400 .7rem/1 var(--f-donnee); color: var(--encre); background: var(--papier); padding: 0 .3rem; white-space: nowrap; }
.cadre-coord--n span { top: -1.05rem; transform: translateX(-50%); }
.cadre-coord--o span { left: -.4rem; transform: translate(-100%, -50%) rotate(0deg); display: none; }

/* ---------- profil altimétrique ---------- */
.profil { margin: 1.5rem 6px 0; }
.profil__entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; margin-bottom: .5rem; }
.profil__titre { margin: 0; font-family: var(--f-titre); font-size: 1.3rem; }
.profil__titre .donnee { font-size: .8rem; margin-left: .5rem; color: var(--encre-2); }
.profil__lecture { margin: 0; font-size: 1rem; min-height: 1.6em; }
.profil__lecture .donnee { background: var(--jaune); padding: .1rem .35rem; color: var(--nuit); }
.profil__lecture em { font-family: var(--f-titre); font-size: 1.1rem; margin-left: .25rem; }

.profil__zone { position: relative; height: 120px; border-bottom: 1.5px solid var(--encre); border-left: 1px solid var(--filet); cursor: crosshair; touch-action: pan-y; }
.profil__zone:focus-visible { outline-offset: 6px; }
.profil__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.profil__grille line { stroke: var(--filet); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.profil__aire { fill: var(--bleu); fill-opacity: .14; }
.profil__ligne { fill: none; stroke: var(--encre); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.profil__axe { position: absolute; right: 0; transform: translateY(-110%); font: .7rem/1 var(--f-donnee); color: var(--encre-2); background: color-mix(in srgb, var(--papier) 80%, transparent); padding: 0 .2rem; }
.profil__reperes { position: absolute; inset: 0; pointer-events: none; }
.profil__repere { position: absolute; bottom: 0; width: 0; border-left: 1px solid var(--encre); opacity: .5; }
.profil__repere-nom { position: absolute; top: calc(100% + .35rem); left: 0; transform: translateX(-50%); font: italic .82rem/1.1 var(--f-titre); color: var(--encre); white-space: nowrap; }
.profil__repere:nth-child(3n+2) .profil__repere-nom { top: calc(100% + 1.45rem); }
.profil__repere:nth-child(3n) .profil__repere-nom { top: calc(100% + 2.55rem); }
.profil__curseur { position: absolute; top: 0; bottom: -1px; left: 0; width: 0; border-left: 2px solid var(--bleu); pointer-events: none; }
.profil__curseur span { position: absolute; left: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--bleu); border: 2px solid var(--blanc); transform: translateY(-50%); }
.profil__aide { margin: 4.3rem 0 0; font-size: .875rem; color: var(--encre-2); }

.carte__legende { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--filet); font-size: .82rem; line-height: 1.5; color: var(--encre-2); display: grid; gap: .35rem; }
.carte__legende strong { color: var(--encre); }

/* desktop : texte à gauche, carte à droite qui déborde */
@media (min-width: 64em) {
  .planche { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .planche__texte { position: sticky; top: 6.5rem; padding-top: 1rem; }
  .carte__cadre { aspect-ratio: 1400 / 1147; }
  .cadre-coord--o span { display: block; }
  .carte__legende { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* =========================================================
   CETTE SEMAINE
   ========================================================= */
.semaine {
  background: var(--papier-2);
  border-top: 1px solid var(--encre); border-bottom: 1px solid var(--encre);
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--gouttiere);
  display: grid; gap: 2rem;
}
.semaine > * { max-width: var(--max); }
.semaine h2 { font-size: var(--t-h2); }
.semaine__periode { margin: .75rem 0 1rem; color: var(--encre); font-size: .95rem; }
.semaine__periode::before { content: ""; display: inline-block; width: 1.5rem; height: .5rem; background: var(--jaune); margin-right: .5rem; border: 1px solid var(--encre); vertical-align: middle; }
.semaine__note { color: var(--encre-2); max-width: 46ch; font-size: 1rem; }

.horaire { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--encre); }
.horaire__jour { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--filet); }
.horaire__date { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; line-height: 1; }
.horaire__j, .horaire__m { font: 500 .8rem/1.2 var(--f-donnee); text-transform: lowercase; color: var(--encre-2); }
.horaire__n { margin: .2rem 0 .1rem; font: 400 2.8rem/.85 var(--f-titre); font-variation-settings: "opsz" 72; }
.horaire__sorties { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.sortie { display: grid; grid-template-columns: auto 1fr; gap: .1rem .75rem; align-items: baseline; padding-left: 2.8rem; position: relative; }
.sortie::before { content: ""; position: absolute; left: 0; top: .72em; width: 2.1rem; border-top: 3px solid var(--encre); }
.sortie--vtt::before { border-top-style: dashed; }
.sortie--jeunes::before { border-top: 3px dotted var(--bleu); }
.sortie--evenement::before { border-top: 9px solid var(--jaune); top: .45em; outline: 1px solid var(--encre); }
.sortie__type { font-weight: 700; }
.sortie__quand { font: .875rem var(--f-donnee); }
.sortie__detail { grid-column: 1 / -1; color: var(--encre-2); font-size: 1rem; }
.horaire__vide { padding: 1.1rem 0; border-bottom: 1px solid var(--filet); color: var(--encre-2); font-style: italic; }
.semaine__liens { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }

@media (min-width: 48em) {
  .sortie { grid-template-columns: 6rem 8.5rem 1fr; }
  .sortie__detail { grid-column: auto; }
}
@media (min-width: 64em) {
  .semaine { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(2rem, 5vw, 5rem); justify-content: center; }
  .semaine__tete { grid-row: span 2; }
  .semaine__liens { grid-column: 2; }
  .horaire__jour { grid-template-columns: 7rem 1fr; }
}
@media (min-width: 90em) { .semaine { padding-inline: calc((100vw - var(--max)) / 2 + var(--gouttiere)); } }

/* =========================================================
   PRATIQUES (légende)
   ========================================================= */
.pratiques { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 6.5rem) var(--gouttiere) clamp(2rem, 4vw, 3rem); }
.pratiques__tete { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.pratiques__tete h2 { font-size: var(--t-h2); max-width: 18ch; }
.pratiques__tete h2 em { color: var(--bleu); }
.pratiques__tete p { max-width: 44ch; font-size: var(--t-chapo); line-height: 1.45; margin: 0; color: var(--encre-2); }
@media (min-width: 64em) {
  .pratiques__tete { grid-template-columns: 7fr 5fr; align-items: end; gap: 3rem; }
}

.pratique { margin-bottom: clamp(3.5rem, 8vw, 7rem); }
.pratique h3 { font-size: var(--t-h3); display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.pratique h3 .trait { width: 2.6rem; }
.pratique__photo figcaption, .rejoindre__photo figcaption, .coublevitaine__photo figcaption, .carnet__photo figcaption {
  font: italic 400 .98rem/1.35 var(--f-titre); color: var(--encre-2); margin-top: .5rem; padding-left: .75rem; border-left: 2px solid var(--jaune);
}
.pratique img { width: 100%; object-fit: cover; }

/* Route : grande photo + texte + vignette décalée */
.pratique--route { display: grid; gap: 1.5rem; }
.pratique--route .pratique__photo img { aspect-ratio: 4 / 3; }
.pratique__vignette { display: none; }
@media (min-width: 64em) {
  .pratique--route { grid-template-columns: repeat(12, 1fr); column-gap: 2rem; align-items: start; }
  .pratique--route .pratique__photo { grid-column: 1 / 7; grid-row: 1 / 3; }
  .pratique--route .pratique__texte { grid-column: 8 / 13; grid-row: 1; }
  .pratique__vignette { display: block; grid-column: 8 / 12; grid-row: 2; margin-top: 1rem; }
  .pratique__vignette img { aspect-ratio: 7 / 4; }
}

/* graphique des niveaux */
.niveaux { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--encre); }
.niveaux figcaption { font-weight: 700; font-size: .95rem; margin-bottom: 1.6rem; }
.niveaux__axe { position: relative; height: 1rem; margin: 0 0 .4rem 4.5rem; border-bottom: 1px solid var(--filet); }
.niveaux__axe span { position: absolute; top: -.9rem; transform: translateX(-50%); font: .72rem var(--f-donnee); color: var(--encre-2); white-space: nowrap; }
.niveaux__axe span:last-child { transform: translateX(-100%); }
.niveaux__liste { list-style: none; margin: 0; padding: 0; }
.niveau { display: grid; grid-template-columns: 4.5rem 1fr; align-items: center; padding: .35rem 0; }
.niveau__nom { font-weight: 700; font-size: .95rem; }
.niveau__barre { position: relative; height: 10px; }
.niveau__barre::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--de); right: calc(100% - var(--a)); background: var(--c); }
.niveau__barre::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dotted var(--filet); z-index: -1; }
.niveau__val { grid-column: 2; font: .8rem/1.4 var(--f-donnee); color: var(--encre-2); margin-top: .2rem; }
.niveau--vert { --c: var(--g-vert); }
.niveau--bleu { --c: var(--g-bleu); }
.niveau--rouge { --c: var(--g-rouge); }
.niveau--noir { --c: var(--g-noir); }

/* VTT */
.pratique--vtt { display: grid; gap: 1.5rem; }
.fiche { margin: 1.5rem 0 0; border-top: 1px solid var(--encre); }
.fiche > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--filet); }
.fiche dt { font-weight: 700; font-size: .95rem; }
.fiche dd { margin: 0; font-size: 1rem; }
@media (min-width: 64em) {
  .pratique--vtt { grid-template-columns: repeat(12, 1fr); column-gap: 2rem; align-items: center; }
  .pratique--vtt .pratique__texte { grid-column: 2 / 7; grid-row: 1; }
  .pratique--vtt .pratique__photo { grid-column: 7 / 13; grid-row: 1; margin-right: calc(-1 * var(--gouttiere)); }
  .pratique--vtt .pratique__photo img { aspect-ratio: 16 / 10; }
}

/* Team J + La Pioche */
.duo { display: grid; gap: 0; margin-bottom: clamp(3.5rem, 8vw, 7rem); border-top: 2px solid var(--encre); }
.duo .pratique { margin: 0; padding: 2rem 0; }
.duo .pratique__photo { margin-bottom: 1.25rem; }
.pratique--jeunes .pratique__photo img { aspect-ratio: 16 / 9; }
.pratique--pioche .pratique__photo img { aspect-ratio: 5 / 3; }
.appel { background: var(--blanc); border-left: 6px solid var(--jaune); padding: .85rem 1rem; font-size: 1rem; }
.mention { color: var(--encre-2); font-size: .82rem; margin: 0; }
.pratique--pioche { border-top: 1px solid var(--filet); }
.pratique--pioche h3 em { color: var(--bleu); }
@media (min-width: 64em) {
  .duo { grid-template-columns: 7fr 4fr; column-gap: 0; }
  .pratique--jeunes { padding-right: 3rem !important; border-right: 1px solid var(--filet); }
  .pratique--pioche { border-top: 0; padding-left: 3rem !important; padding-top: 5rem !important; }
}

/* Voyages */
.pratique--voyages { display: grid; gap: 1.5rem; }
.toponymes { font: italic 400 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1.5 var(--f-titre); color: var(--bleu-fonce); margin-top: 1.25rem; }
@media (min-width: 64em) {
  .pratique--voyages { grid-template-columns: repeat(12, 1fr); column-gap: 2rem; align-items: end; }
  .pratique--voyages .pratique__photo { grid-column: 1 / 6; margin-left: calc(-1 * var(--gouttiere)); }
  .pratique--voyages .pratique__texte { grid-column: 6 / 12; }
}

/* =========================================================
   COUBLEVITAINE (planche en bleu nuit)
   ========================================================= */
.coublevitaine {
  background: var(--nuit); color: var(--blanc);
  padding: clamp(3rem, 7vw, 6.5rem) var(--gouttiere);
  position: relative; overflow: hidden;
  /* courbes de niveau en filigrane */
  background-image: url("img/relief-courbes.svg");
  background-size: 1400px auto; background-position: 70% 40%; background-repeat: no-repeat;
  background-blend-mode: soft-light;
}
.coublevitaine__in { max-width: var(--max); margin: 0 auto; display: grid; gap: 2.5rem; position: relative; }
.coublevitaine a { color: var(--jaune); }
.coublevitaine :focus-visible { outline-color: var(--jaune); }
.coublevitaine__surtitre { font: italic 1.25rem var(--f-titre); margin: 0 0 .5rem; color: #C9D6F2; }
.coublevitaine h2 { font-size: clamp(2.8rem, 1.5rem + 5.5vw, 6.2rem); font-weight: 400; letter-spacing: -.03em; line-height: .95; }
.coublevitaine__date { margin: 1rem 0 1.5rem; }
.coublevitaine__date time { display: inline-block; font: 500 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.2 var(--f-donnee); background: var(--jaune); color: var(--nuit); padding: .3rem .7rem; letter-spacing: -.02em; }
.coublevitaine__chapo { font-size: var(--t-chapo); line-height: 1.5; max-width: 40ch; color: #E9EEF9; }

.tableau-parcours { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tableau-parcours caption { text-align: left; font: italic 1.1rem var(--f-titre); color: #C9D6F2; padding-bottom: .75rem; }
.tableau-parcours th, .tableau-parcours td { text-align: left; padding: .5rem .5rem .5rem 0; border-bottom: 1px solid rgba(255,255,255,.22); font-weight: 400; }
.tableau-parcours thead th { font: 500 .78rem var(--f-donnee); color: #C9D6F2; border-bottom: 1.5px solid var(--blanc); }
.tableau-parcours tbody th { font-weight: 700; }
.tableau-parcours td { font-family: var(--f-donnee); font-size: .9rem; white-space: nowrap; }
.tableau-parcours tr.tp-vtt th::after { content: ""; }
.tableau-parcours tbody tr:first-child th, .tableau-parcours tr.tp-vtt:nth-child(5) th, .tableau-parcours tr.tp-gravel th { color: var(--jaune); }
.tableau-parcours tr.tp-route:not(:first-child) th, .tableau-parcours tr.tp-vtt:not(:nth-child(5)) th { color: transparent; }
.tableau-parcours tr.tp-vtt:nth-child(5) td, .tableau-parcours tr.tp-vtt:nth-child(5) th, .tableau-parcours tr.tp-gravel td, .tableau-parcours tr.tp-gravel th { border-top: 1.5px solid rgba(255,255,255,.6); }
.jauge { display: inline-block; vertical-align: middle; width: calc(var(--v) * 3px); height: 6px; background: var(--jaune); margin-right: .5rem; }
.tableau-note { font-size: .9rem; color: #C9D6F2; margin-top: .75rem; }

.coublevitaine__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.coublevitaine__photo figcaption { color: #C9D6F2 !important; }
.coublevitaine__infos { margin: 0; border-top: 1.5px solid var(--blanc); }
.coublevitaine__infos > div { padding: .65rem 0; border-bottom: 1px solid rgba(255,255,255,.22); display: grid; gap: .1rem; }
.coublevitaine__infos dt { font: 500 .78rem var(--f-donnee); color: #C9D6F2; }
.coublevitaine__infos dd { margin: 0; }

@media (min-width: 64em) {
  .coublevitaine__in { grid-template-columns: repeat(12, 1fr); column-gap: 2rem; row-gap: 3rem; }
  .coublevitaine__tete { grid-column: 1 / 7; }
  .coublevitaine__parcours { grid-column: 8 / 13; grid-row: 1; }
  .coublevitaine__photo { grid-column: 8 / 13; grid-row: 2; }
  .coublevitaine__photo img { aspect-ratio: 16 / 10; }
  .coublevitaine__infos { grid-column: 1 / 6; grid-row: 2; align-self: start; margin-top: .25rem; }
}

/* =========================================================
   REJOINDRE
   ========================================================= */
.rejoindre { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 6.5rem) var(--gouttiere); display: grid; gap: 2.5rem; }
.rejoindre h2 { font-size: var(--t-h2); max-width: 14ch; margin-bottom: 2rem; }
.rejoindre h2 em { color: var(--bleu); }
.rejoindre__photo img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }

.etapes { list-style: none; margin: 0; padding: 0 0 0 2.25rem; position: relative; }
.etapes::before { content: ""; position: absolute; left: .55rem; top: .6rem; bottom: 2rem; border-left: 10px solid var(--jaune); }
.etapes::after { content: ""; position: absolute; left: .55rem; top: .6rem; bottom: 2rem; margin-left: 3.5px; border-left: 3px solid var(--nuit); }
.etape { position: relative; padding-bottom: 2.5rem; }
.etape::before { content: ""; position: absolute; left: -2.25rem; top: .25rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--blanc); border: 3px solid var(--nuit); z-index: 1; margin-left: -.05rem; }
.etape__borne { margin: 0 0 .25rem; font-size: .8rem; color: var(--encre-2); }
.etape h3 { font-size: var(--t-h3); margin-bottom: .6rem; }
.etape p { max-width: 48ch; }
.etape__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.25rem; }
@media (min-width: 64em) {
  .rejoindre { grid-template-columns: 5fr 6fr; column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .etapes { margin-top: 1rem; }
}

/* =========================================================
   CARNET (actus)
   ========================================================= */
.carnet { max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) var(--gouttiere) clamp(3rem, 6vw, 5rem); border-top: 2px solid var(--encre); display: grid; gap: 2rem; }
.carnet h2 { font-size: var(--t-h2); }
.carnet__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.carnet__item { padding: 1.1rem 0; border-bottom: 1px solid var(--filet); }
.carnet__item h3 { font-size: 1.45rem; margin: .3rem 0 .4rem; }
.carnet__item p:last-child { margin: 0; color: var(--encre-2); font-size: 1rem; }
.carnet__date { margin: 0; font-size: .85rem; }
.carnet__item--fort .carnet__date time { background: var(--jaune); padding: .1rem .35rem; }
.carnet__item--fort h3 { font-size: 2rem; }
.carnet__photo img { width: 100%; }
@media (min-width: 64em) {
  .carnet { grid-template-columns: 3fr 5fr 3fr; column-gap: 3rem; align-items: start; }
  .carnet__liste { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .carnet__item--fort { grid-column: 1 / -1; }
  .carnet__photo { margin-top: .5rem; }
}

/* espace adhérents */
.espace { background: var(--blanc); border-top: 1px solid var(--encre); padding: 2.5rem var(--gouttiere); display: grid; gap: 1rem; align-items: center; }
.espace h2 { font-size: 1.9rem; }
.espace p { margin: 0; color: var(--encre-2); max-width: 52ch; }
.espace .bouton { justify-self: start; }
@media (min-width: 64em) {
  .espace { grid-template-columns: auto 1fr auto; column-gap: 3rem; padding-inline: max(var(--gouttiere), calc((100vw - var(--max)) / 2 + var(--gouttiere))); }
}

/* =========================================================
   PIED : CARTOUCHE
   ========================================================= */
.pied { background: var(--papier-2); border-top: 2px solid var(--encre); font-size: 1rem; }
.pied__in { max-width: var(--max); margin: 0 auto; padding: 3rem var(--gouttiere) 2rem; display: grid; gap: 2rem; }
.cartouche { border: 2px solid var(--encre); outline: 1px solid var(--encre); outline-offset: 4px; margin: 5px; padding: 1.25rem; background: var(--papier); }
.cartouche__nom { font: 500 1.6rem/1.1 var(--f-titre); margin-bottom: .75rem; }
.cartouche__nom em { color: var(--bleu); }
.cartouche p:last-child { margin: 0; font-family: var(--f-donnee); font-size: .8rem; line-height: 1.7; }
.pied address { font-style: normal; display: grid; gap: 1rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { padding: .2rem 0; }
.pied a { color: var(--encre); }
.pied a:hover { color: var(--bleu); }
.pied__bas { max-width: var(--max); margin: 0 auto; padding: 1rem var(--gouttiere) 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--filet); }
.pied__bas p { margin: 0; color: var(--encre-2); }
.pied__echelle { width: 220px; height: 26px; color: var(--encre); overflow: visible; }
.pied__echelle text { font: 11px var(--f-donnee); fill: var(--encre); }
@media (min-width: 48em) { .pied__in { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .pied__in { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* =========================================================
   MOUVEMENT
   ========================================================= */
.js .itineraire path { stroke-dasharray: var(--longueur); stroke-dashoffset: var(--longueur); }
.js .est-trace .itineraire path { transition: stroke-dashoffset 2.6s cubic-bezier(.45,.05,.3,1); stroke-dashoffset: 0; }
.js .est-trace .itineraire__surligne { transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
  .js .itineraire path { stroke-dasharray: none; stroke-dashoffset: 0; }
}

@media print {
  .entete, .menu-bouton, .profil__aide { display: none; }
  body { background: #fff; }
}

/* carte recadrée sur mobile : toponymes agrandis */
.carte--zoom .t-village { font-size: 30px; }
.carte--zoom .t-sommet text { font-size: 30px; }
.carte--zoom .t-sommet .t-cote { font-size: 22px; }
.carte--zoom .t-commune { font-size: 44px; }
.carte--zoom .t-depart { font-size: 22px; }
.carte--zoom .t-massif { font-size: 36px; }
.carte--zoom .t-eau, .carte--zoom .t-lieu-dit { font-size: 28px; }
.carte--zoom .rose, .carte--zoom .echelle { display: none; }

@media (max-width: 47.99em) {
  .profil__repere-nom { display: none; }
  .profil__aide { margin-top: 1rem; }
  .jauge { width: calc(var(--v) * 2px); }
  .tableau-parcours td { font-size: .82rem; }
}
