/* =========================================================
   Cyclo Club de Coublevie · Maquette C « Carnet de brevet / affiche riso »
   Deux encres (bleu roi + jaune citron) sur papier offset.
   Rayon signature : 0. Ombres : uniquement le décalage d'encre (repérage).
   ========================================================= */

:root {
  /* Encres du club (ADN : maillot + site historique) */
  --roi: #0645C9;          /* encre 1 : bleu du maillot */
  --roi-fonce: #053497;
  --nuit: #032264;         /* texte des sous-menus historiques */
  --citron: #FEF431;       /* encre 2 : jaune du maillot */
  /* Support */
  --papier: #F2F1EC;       /* offset non couché, neutre */
  --papier-2: #E6E5DD;     /* filets, cases */
  --encre: #0B1430;        /* noir bleuté pour le texte courant */
  /* Couleurs de niveau (groupes route) */
  --g-vert: #1B7A36;
  --g-bleu: #0645C9;
  --g-rouge: #C42A1E;
  --g-noir: #121212;

  --f-affiche: "Archivo", "Arial Narrow", sans-serif;
  --f-texte: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Sometype Mono", ui-monospace, "Courier New", monospace;

  --gouttiere: clamp(1rem, 4vw, 3rem);
  --max: 88rem;
  --decal: 0.35rem;        /* décalage de repérage */
  --trait: 2px solid var(--encre);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --usure: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='u'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1 1 0 1 1 1 1 0 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23u)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: 1.125rem;      /* 18 px */
  line-height: 1.55;
  overflow-x: hidden;
}
/* grain d'impression sur toute la page */
body { position: relative; }
body::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: .16;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 100;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .18em; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 700; }
.mono { font-family: var(--f-mono); font-size: .875rem; letter-spacing: 0; line-height: 1.45; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--roi);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--citron);
}
.semaine :focus-visible, .coublevitaine :focus-visible, .pied :focus-visible, .ruban :focus-visible {
  outline-color: var(--citron);
  box-shadow: 0 0 0 6px var(--nuit);
}

.evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--citron); color: var(--nuit); padding: .75rem 1rem;
  font-weight: 700; border: var(--trait);
}
.evitement:focus { top: 1rem; }

/* ---------- Composants communs ---------- */
.titre-section {
  font-family: var(--f-affiche);
  font-stretch: 68%;
  font-weight: 850;
  font-size: clamp(2.75rem, 9vw, 6.5rem);
  line-height: .9;
  text-transform: uppercase;
  color: var(--roi);
  letter-spacing: -.01em;
  text-shadow: var(--decal) calc(var(--decal) * .7) 0 var(--citron);
}
.titre-section--clair { color: var(--papier); text-shadow: var(--decal) calc(var(--decal) * .7) 0 var(--nuit); }

.bouton {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 3rem; padding: .8rem 1.4rem;
  font-family: var(--f-affiche); font-stretch: 100%; font-weight: 750;
  font-size: 1.0625rem; text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none; border: 2px solid var(--encre);
  transition: transform .15s ease, box-shadow .15s ease;
}
.bouton--encre { background: var(--roi); color: #fff; border-color: var(--roi); box-shadow: var(--decal) var(--decal) 0 var(--citron), var(--decal) var(--decal) 0 2px var(--encre); }
.bouton--encre:hover { transform: translate(calc(var(--decal) * .5), calc(var(--decal) * .5)); box-shadow: calc(var(--decal) * .5) calc(var(--decal) * .5) 0 var(--citron), calc(var(--decal) * .5) calc(var(--decal) * .5) 0 2px var(--encre); }
.bouton--citron { background: var(--citron); color: var(--nuit); border-color: var(--citron); box-shadow: var(--decal) var(--decal) 0 var(--roi); }
.bouton--citron:hover { transform: translate(calc(var(--decal) * .5), calc(var(--decal) * .5)); box-shadow: calc(var(--decal) * .5) calc(var(--decal) * .5) 0 var(--roi); }
.bouton--trait { background: transparent; color: var(--roi); border-color: var(--roi); }
.bouton--trait:hover { background: var(--citron); }

.lien-fleche {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem;
  font-weight: 700; color: var(--roi); text-decoration: underline;
}
.lien-fleche::after { content: "→"; font-family: var(--f-mono); transition: transform .15s ease; }
.lien-fleche:hover::after { transform: translateX(.25rem); }
.lien-fleche--clair { color: var(--citron); }

.legende { font-family: var(--f-mono); font-size: .8125rem; line-height: 1.4; margin-top: .6rem; color: var(--encre); }
.legende span { display: block; opacity: .75; }
.legende--claire { color: var(--papier); }

.controle {
  display: inline-block; padding: .15rem .5rem;
  border: 1.5px dashed currentColor; color: var(--roi);
  margin-bottom: .75rem;
}

/* Tampons : encre usée (masque de bruit), légère rotation */
.tampon {
  display: inline-block;
  font-family: var(--f-affiche); font-stretch: 80%; font-weight: 800;
  text-transform: uppercase; line-height: 1.05; text-align: center;
  color: var(--roi); border: 3px solid currentColor;
  padding: .35rem .7rem;
  transform: rotate(-6deg);
  -webkit-mask-image: var(--usure); mask-image: var(--usure);
  -webkit-mask-size: 160px; mask-size: 160px;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.tampon--rect { outline: 1.5px solid currentColor; outline-offset: 3px; }
.tampon--rond {
  width: 7.5rem; height: 7.5rem; border-radius: 50%;
  display: grid; place-content: center; font-size: .8rem;
  outline: 1.5px solid currentColor; outline-offset: 4px;
}
.tampon--rond b { font-size: 1.15rem; font-stretch: 100%; }

/* ---------- Ruban ---------- */
.ruban { background: var(--nuit); color: var(--papier); }
.ruban__in {
  max-width: var(--max); margin: 0 auto; padding: .45rem var(--gouttiere);
  display: flex; flex-wrap: wrap; gap: .25rem 1.25rem;
  font-family: var(--f-mono); font-size: .8125rem;
}
.ruban__in span:not(:last-child)::after { content: "·"; margin-left: 1.25rem; opacity: .6; }
.ruban a { color: var(--citron); }
.ruban__next { margin-left: auto; }
@media (max-width: 40rem) {
  .ruban__in span:nth-child(2) { display: none; }
  .ruban__in span:first-child::after { display: none; }
}

/* ---------- En-tête ---------- */
.entete { position: relative; z-index: 50; border-bottom: var(--trait); background: var(--papier); }
.entete__in {
  max-width: var(--max); margin: 0 auto; padding: .75rem var(--gouttiere);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.marque { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--roi); }
.marque__tampon {
  display: grid; place-items: center; line-height: .85;
  padding: .3rem .45rem .25rem; border: 3px solid var(--roi);
  outline: 1.5px solid var(--roi); outline-offset: 2px;
  transform: rotate(-3deg);
  background: var(--citron);
}
.marque__ccc { font-family: var(--f-affiche); font-stretch: 125%; font-weight: 900; font-size: 1.6rem; letter-spacing: -.02em; }
.marque__depuis { font-family: var(--f-mono); font-size: .625rem; font-weight: 700; color: var(--nuit); }
.marque__nom { font-family: var(--f-affiche); font-stretch: 70%; font-weight: 800; text-transform: uppercase; font-size: 1.05rem; line-height: .95; color: var(--nuit); }

.nav-bouton {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 2.75rem; min-width: 2.75rem; padding: .4rem .9rem;
  background: var(--roi); color: #fff; border: 0; font: inherit; font-weight: 700; cursor: pointer;
}
.nav-bouton__lignes, .nav-bouton__lignes::before, .nav-bouton__lignes::after {
  display: block; width: 1.2rem; height: 2px; background: currentColor; position: relative; transition: transform .2s ease;
}
.nav-bouton__lignes::before, .nav-bouton__lignes::after { content: ""; position: absolute; left: 0; }
.nav-bouton__lignes::before { top: -6px; }
.nav-bouton__lignes::after { top: 6px; }
.nav-bouton[aria-expanded="true"] .nav-bouton__lignes { background: transparent; }
.nav-bouton[aria-expanded="true"] .nav-bouton__lignes::before { transform: translateY(6px) rotate(45deg); }
.nav-bouton[aria-expanded="true"] .nav-bouton__lignes::after { transform: translateY(-6px) rotate(-45deg); }

.nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--roi); color: #fff;
  border-bottom: 4px solid var(--citron);
  display: none;
}
.nav.est-ouverte { display: block; }
.nav__liste { padding: .5rem var(--gouttiere) 1.25rem; }
.nav__liste a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid rgb(255 255 255 / .25);
  font-family: var(--f-affiche); font-stretch: 75%; font-weight: 750; font-size: 1.6rem;
  text-transform: uppercase; text-decoration: none;
}
.nav__liste a:hover { color: var(--citron); }
.nav__adherer a { color: var(--citron); }
.nav__cle { font-family: var(--f-mono); font-size: .75rem; font-weight: 400; text-transform: none; opacity: .85; }

@media (min-width: 64rem) {
  .nav-bouton { display: none; }
  .nav { position: static; display: block; background: none; color: var(--encre); border: 0; }
  .nav__liste { display: flex; align-items: center; gap: .15rem; padding: 0; }
  .nav__liste a {
    font-size: 1rem; font-stretch: 85%; padding: .55rem .7rem; border: 0; min-height: 2.75rem; align-items: center;
  }
  .nav__liste a:hover { color: var(--roi); text-decoration: underline; text-decoration-color: var(--citron); text-decoration-thickness: .35em; text-underline-offset: -.1em; text-decoration-skip-ink: none; }
  .nav__adherer a { background: var(--citron); color: var(--nuit); margin-left: .5rem; box-shadow: 3px 3px 0 var(--roi); }
  .nav__adherer a:hover { color: var(--nuit); text-decoration: none; }
  .nav__espace a { border: 2px solid var(--roi); color: var(--roi); margin-left: .5rem; flex-direction: column; gap: 0; line-height: 1; padding: .4rem .7rem; align-items: flex-start; justify-content: center; }
  .nav__cle { color: var(--encre); font-size: .6875rem; }
}

/* ---------- Affiche (hero) ---------- */
.affiche { max-width: var(--max); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.5rem) var(--gouttiere) 0; }
.affiche__grille { display: grid; gap: 2.5rem; }
.affiche__titre { font-family: var(--f-affiche); color: var(--roi); text-transform: uppercase; font-weight: 900; }
.affiche__club {
  display: block; font-family: var(--f-mono); font-weight: 700; text-transform: none;
  font-size: .9375rem; color: var(--encre); margin-bottom: 1rem;
  padding-left: 2.6rem; position: relative;
}
.affiche__club::before { content: ""; position: absolute; left: 0; top: 50%; width: 2rem; border-top: 2px solid var(--encre); }
.affiche__l1, .affiche__l2, .affiche__l3 { display: block; line-height: .82; }
.affiche__l1 { font-stretch: 125%; font-size: clamp(2.9rem, 13.5vw, 7.4rem); white-space: nowrap; letter-spacing: -.035em; }
.affiche__l2 { font-stretch: 62%; font-size: clamp(3.6rem, 18.5vw, 9.6rem); white-space: nowrap; letter-spacing: -.01em; margin-top: .06em; }
.affiche__l3 { font-stretch: 100%; font-size: clamp(2.9rem, 14vw, 7.4rem); white-space: nowrap; letter-spacing: -.03em; margin-top: .06em; }
/* surimpression : le jaune passe sous le bleu, décalé, en multiply */
.surimpression { position: relative; display: inline-block; z-index: 0; }
.surimpression::before {
  content: ""; position: absolute; z-index: -1;
  left: -.08em; right: -.12em; top: .12em; bottom: -.02em;
  background: var(--citron);
  transform: rotate(-1.2deg) translate(.06em, .04em);
}
.affiche__titre .affiche__l1, .affiche__titre .affiche__l2 { text-shadow: .045em .035em 0 var(--citron); }

.affiche__chapo { max-width: 34rem; margin-top: 1.75rem; font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.5; }
.affiche__chapo strong { background: linear-gradient(transparent 58%, var(--citron) 58%); }
.affiche__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 1.75rem; }

.affiche__photo { position: relative; margin: 0 .5rem 2.5rem 0; }
.collage { position: relative; transform: rotate(1.6deg); border: 6px solid #fff; outline: 2px solid var(--encre); box-shadow: 10px 10px 0 var(--roi); background: #fff; }
.collage img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.scotch { position: absolute; width: 6.5rem; height: 1.6rem; background: var(--citron); opacity: .85; mix-blend-mode: multiply; z-index: 2; }
.scotch--a { top: -.8rem; left: 12%; transform: rotate(-8deg); }
.scotch--b { bottom: -.7rem; right: 8%; transform: rotate(6deg); }
.affiche__photo .legende { transform: rotate(1.6deg); margin-top: 1rem; max-width: calc(100% - clamp(9.5rem, 34vw, 13.5rem) - 1rem); }

.dossard {
  position: absolute; right: -.25rem; bottom: -1.5rem; z-index: 3;
  width: clamp(9.5rem, 34vw, 13.5rem);
  background: #fff; color: var(--encre); border: 2px solid var(--encre);
  padding: 1.1rem .8rem .7rem; text-align: center;
  transform: rotate(-4deg);
  box-shadow: 6px 6px 0 var(--citron);
  /* 4 trous d'épingle */
  background-image:
    radial-gradient(circle at 10px 10px, var(--papier-2) 3.5px, var(--encre) 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 10px) 10px, var(--papier-2) 3.5px, var(--encre) 4px, transparent 5px),
    radial-gradient(circle at 10px calc(100% - 10px), var(--papier-2) 3.5px, var(--encre) 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), var(--papier-2) 3.5px, var(--encre) 4px, transparent 5px);
}
.dossard__haut, .dossard__bas { display: block; font-family: var(--f-mono); font-size: .6875rem; font-weight: 700; text-transform: uppercase; }
.dossard__haut { background: var(--roi); color: #fff; margin: 0 .5rem; padding: .1rem 0; }
.dossard__num { display: block; font-family: var(--f-affiche); font-stretch: 62%; font-weight: 900; font-size: clamp(3.2rem, 11vw, 4.6rem); line-height: .95; color: var(--encre); letter-spacing: -.02em; }
.affiche__tampon { position: absolute; top: -1.5rem; right: 1rem; z-index: 3; transform: rotate(-14deg); background: transparent; }

/* Carte de pointage A/B/C */
.pointage {
  display: grid; margin-top: 3.5rem;
  border: var(--trait); background: #fff;
  position: relative;
}
.pointage::before {
  content: "Carte de pointage"; position: absolute; top: -.8rem; left: 1rem;
  background: var(--encre); color: var(--papier); font-family: var(--f-mono); font-size: .75rem; padding: .1rem .5rem;
}
.pointage__case { position: relative; padding: 1.5rem 1.25rem 1.4rem 4.25rem; border-bottom: 2px dashed var(--encre); }
.pointage__case:last-child { border-bottom: 0; }
.pointage__n {
  position: absolute; left: 1rem; top: 1.4rem; width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center; border: 2px solid var(--roi); color: var(--roi);
  font-family: var(--f-mono); font-weight: 700;
}
.pointage__q { font-family: var(--f-affiche); font-stretch: 110%; font-weight: 850; text-transform: uppercase; font-size: 1.5rem; color: var(--roi); line-height: 1; margin-bottom: .45rem; }
.pointage p { font-size: 1.0625rem; }

@media (min-width: 52rem) {
  .pointage { grid-template-columns: repeat(3, 1fr); }
  .pointage__case { border-bottom: 0; border-right: 2px dashed var(--encre); }
  .pointage__case:last-child { border-right: 0; }
}
@media (min-width: 64rem) {
  .affiche__grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 3rem; }
  .affiche__photo { margin-bottom: 1rem; }
}

/* ---------- Cette semaine ---------- */
.semaine {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  background: var(--roi); color: #fff;
  position: relative;
}
/* bord perforé façon souche de carnet */
.semaine::before {
  content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px;
  background: radial-gradient(circle at 10px 10px, var(--roi) 6px, transparent 6.5px) 0 0 / 20px 20px repeat-x;
}
.semaine__in { max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gouttiere); display: grid; gap: 2.5rem; }
.semaine__num { color: var(--citron); margin-bottom: 1rem; }
.semaine__intro { max-width: 30rem; margin-top: 1.25rem; }
.carte-compteur {
  display: inline-block; margin-top: 1.25rem; padding: .4rem .7rem;
  border: 1.5px dashed var(--citron); color: var(--citron); font-size: .9375rem;
}

.cases { display: grid; gap: 1rem; }
.case {
  position: relative; background: var(--papier); color: var(--encre);
  padding: 1.1rem 1.1rem 1.2rem; display: grid; gap: .55rem; align-content: start;
  border: 2px solid var(--nuit);
  box-shadow: var(--decal) var(--decal) 0 var(--nuit);
}
.case__jour { display: flex; align-items: baseline; gap: .45rem; font-family: var(--f-affiche); text-transform: uppercase; color: var(--roi); line-height: .9; }
.case__j { font-stretch: 100%; font-weight: 700; font-size: 1.15rem; }
.case__d { font-stretch: 62%; font-weight: 900; font-size: 3.6rem; letter-spacing: -.02em; }
.case__type { font-family: var(--f-mono); font-weight: 700; font-size: .875rem; text-transform: uppercase; border-top: 1.5px solid var(--encre); padding-top: .4rem; }
.case__titre { font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.case__info { font-size: 1rem; line-height: 1.4; }
.case--passee { background: transparent; color: #fff; border-style: dashed; border-color: rgb(255 255 255 / .6); box-shadow: none; }
.case--passee .case__jour { color: #fff; }
.case--passee .case__type { border-color: rgb(255 255 255 / .6); }

.groupes { display: flex; flex-wrap: wrap; gap: .35rem; }
.g { font-family: var(--f-mono); font-size: .75rem; font-weight: 700; padding: .1rem .4rem; color: #fff; text-transform: uppercase; }
.g--vert { background: var(--g-vert); } .g--bleu { background: var(--g-bleu); } .g--rouge { background: var(--g-rouge); } .g--noir { background: var(--g-noir); }

.pointer {
  justify-self: start; margin-top: .35rem;
  min-height: 2.75rem; padding: .55rem 1rem;
  font-family: var(--f-affiche); font-stretch: 90%; font-weight: 800; text-transform: uppercase; font-size: 1rem;
  background: var(--citron); color: var(--nuit);
  border: 2px solid var(--nuit); cursor: pointer;
  box-shadow: 3px 3px 0 var(--nuit);
}
.pointer:hover { background: #fff; }
.pointer:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--nuit); }
.pointer[aria-pressed="true"] { background: transparent; color: var(--roi); border-style: dashed; box-shadow: none; font-size: .875rem; }

/* le tampon apposé par le JS */
.case .tampon-pose {
  position: absolute; right: .3rem; top: 4.1rem; z-index: 2;
  font-size: 1.2rem; padding: .3rem .6rem;
  color: var(--roi);
  transform: rotate(var(--rot, -8deg));
}
.case .tampon-pose small { display: block; font-family: var(--f-mono); font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
.tampon-pose.est-frappe { animation: frappe .38s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes frappe {
  0% { opacity: 0; transform: rotate(var(--rot, -8deg)) scale(1.9); }
  60% { opacity: 1; transform: rotate(var(--rot, -8deg)) scale(.94); }
  100% { opacity: 1; transform: rotate(var(--rot, -8deg)) scale(1); }
}
.case.est-pointee { animation: secousse .3s ease .12s; }
@keyframes secousse { 0%,100% { translate: 0 0; } 40% { translate: 0 3px; } }

.ensuite {
  background: var(--citron); color: var(--nuit);
  padding: 1.5rem 1.25rem; border: 2px solid var(--nuit);
  transform: rotate(-.6deg);
}
.ensuite__titre { font-family: var(--f-affiche); font-stretch: 120%; font-weight: 900; text-transform: uppercase; font-size: 1.6rem; line-height: 1; margin-bottom: 1rem; }
.ensuite__liste > div { display: grid; gap: .15rem; padding: .7rem 0; border-top: 1.5px solid var(--nuit); }
.ensuite__liste dt { font-weight: 700; }
.ensuite__liste dd { font-size: 1rem; line-height: 1.4; }
.ensuite__via { display: block; font-family: var(--f-mono); font-size: .8125rem; margin-top: .2rem; }
.ensuite__liens { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; font-weight: 700; }
.ensuite__liens a { min-height: 2.75rem; display: inline-flex; align-items: center; }
.note-maquette { color: #fff; opacity: .9; font-size: .75rem; max-width: 40rem; }

@media (min-width: 40rem) {
  .cases { grid-template-columns: repeat(2, 1fr); }
  .ensuite__liste > div { grid-template-columns: 7.5rem 1fr; gap: 1rem; }
}
@media (min-width: 64rem) {
  .semaine__in { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 3rem; row-gap: 2rem; }
  .semaine__tete { grid-row: span 2; }
  .cases { grid-template-columns: .7fr 1fr 1fr 1fr; }
  .ensuite { margin-left: 18%; }
  .note-maquette { grid-column: 2; }
}

/* ---------- Pratiques ---------- */
.pratiques { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 8vw, 7rem) var(--gouttiere) clamp(3rem, 6vw, 5rem); }
.pratiques__tete { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.pratiques__chapo { max-width: 36rem; font-size: 1.1875rem; }
@media (min-width: 64rem) {
  .pratiques__tete { grid-template-columns: 1fr 1fr; align-items: end; }
}

.pratique__titre {
  font-family: var(--f-affiche); font-stretch: 125%; font-weight: 900;
  text-transform: uppercase; font-size: clamp(2.6rem, 8vw, 5rem); line-height: .85;
  color: var(--roi); letter-spacing: -.03em;
}
.pratique__lead { margin-top: 1rem; max-width: 34rem; }
.pratique__data { margin-top: 1rem; display: inline-block; background: var(--nuit); color: var(--citron); padding: .25rem .55rem; }
.pratique__sous { font-family: var(--f-mono); font-weight: 700; margin-top: .4rem; }
.pratique .lien-fleche { margin-top: 1rem; }

/* Route */
.pratique--route { display: grid; gap: 1.75rem; padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: var(--trait); }
.pratique__photo { position: relative; }
.pratique__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 2px solid var(--encre); }
.pratique__photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--citron); transform: translate(.7rem, .7rem);
}
@media (min-width: 64rem) {
  .pratique--route { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3.5rem; align-items: start; }
  .pratique--route .pratique__photo { margin-left: calc(var(--gouttiere) * -1); }
}

/* Échelle des groupes (données réelles) */
.echelle { margin-top: 1.5rem; border: 2px solid var(--encre); background: #fff; padding: 1rem 1rem .8rem; }
.echelle__leg { font-family: var(--f-mono); font-size: .8125rem; font-weight: 700; margin-bottom: .75rem; }
.echelle__barres { display: grid; gap: .5rem; }
.barre { display: grid; grid-template-columns: 4rem 1fr; column-gap: .6rem; align-items: center; }
.barre__nom { grid-row: span 2; font-family: var(--f-affiche); font-stretch: 80%; font-weight: 800; text-transform: uppercase; font-size: 1rem; color: var(--c); }
.barre--noir .barre__nom { color: var(--g-noir); }
.barre__piste { position: relative; height: .85rem; background: repeating-linear-gradient(90deg, var(--papier-2) 0 6px, transparent 6px 9px); }
.barre__piste::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: calc(var(--a) / 150 * 100%); width: calc((var(--b) - var(--a)) / 150 * 100%);
  background: var(--c);
}
.barre__km { font-family: var(--f-mono); font-size: .75rem; line-height: 1.3; padding-top: .15rem; }
.barre--vert { --c: var(--g-vert); } .barre--bleu { --c: var(--g-bleu); } .barre--rouge { --c: var(--g-rouge); } .barre--noir { --c: var(--g-noir); }
.echelle__axe { margin-left: 4.6rem; display: flex; justify-content: space-between; border-top: 1.5px solid var(--encre); margin-top: .6rem; padding-top: .25rem; font-size: .75rem; }

/* VTT + Team J */
.duo { display: grid; gap: 0; }
.pratique--vtt, .pratique--teamj { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.pratique--vtt { border-bottom: var(--trait); }
.pratique__img { margin-top: 1.25rem; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 2px solid var(--encre); }
.fiche { margin-top: 1.25rem; border-top: 2px solid var(--encre); }
.fiche li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--encre); }
.fiche li span:last-child { font-weight: 700; text-align: right; }

.pioche { margin-top: 2rem; display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; align-items: start; padding: 1rem; border: 2px dashed var(--roi); }
.pioche img { width: 7rem; aspect-ratio: 1; object-fit: cover; }
.pioche__titre { font-family: var(--f-affiche); font-stretch: 90%; font-weight: 850; text-transform: uppercase; color: var(--roi); font-size: 1.25rem; line-height: 1; margin-bottom: .35rem; }
.pioche p { font-size: 1rem; line-height: 1.45; }
.pioche .lien-fleche { margin-top: .25rem; }

.pratique--teamj {
  background: var(--citron); color: var(--nuit);
  margin: 0 calc(var(--gouttiere) * -1); padding-left: var(--gouttiere); padding-right: var(--gouttiere);
}
.pratique--teamj .pratique__titre, .pratique--teamj .controle { color: var(--nuit); }
.pratique--teamj .pratique__img { border-color: var(--nuit); mix-blend-mode: multiply; }
.pratique__stamp-ligne { margin-top: 1.25rem; }
.pratique__stamp-ligne .tampon { font-size: 1.15rem; color: var(--roi); transform: rotate(-4deg); }
.appel-parents { margin-top: 1.25rem; padding: .9rem 1rem; background: var(--nuit); color: #fff; font-size: 1rem; }
.appel-parents b { color: var(--citron); }
.pratique--teamj .lien-fleche { color: var(--nuit); }

@media (min-width: 64rem) {
  .duo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-bottom: var(--trait); }
  .pratique--vtt { padding-right: 3rem; border-bottom: 0; border-right: var(--trait); }
  .pratique--teamj { margin: 0 calc(var(--gouttiere) * -1) 0 0; padding-left: 2.5rem; transform: rotate(.4deg); box-shadow: -8px 8px 0 var(--roi); margin-top: -1.5rem; margin-bottom: 2rem; }
  .pratique--vtt .pratique__img { width: 78%; }
  .pratique--vtt .fiche { width: 78%; }
}

/* Voyages */
.pratique--voyages { display: grid; gap: 2rem; padding-top: clamp(3rem, 6vw, 5rem); }
.etiquettes { display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin-top: 1.5rem; }
.etiquettes li {
  position: relative; font-family: var(--f-mono); font-weight: 700; font-size: .875rem;
  padding: .35rem .7rem .35rem 1.4rem; background: #fff; border: 1.5px solid var(--encre);
  clip-path: polygon(.7rem 0, 100% 0, 100% 100%, .7rem 100%, 0 50%);
}
.etiquettes li::before { content: ""; position: absolute; left: .55rem; top: 50%; width: .35rem; height: .35rem; margin-top: -.175rem; border-radius: 50%; border: 1.5px solid var(--encre); }
.etiquettes li:nth-child(3n+1) { background: var(--citron); }
.etiquettes li:nth-child(4n+2) { transform: rotate(-2deg); }
.etiquettes li:nth-child(5n) { transform: rotate(1.5deg); }
.voyages__photo img { width: 100%; border: 6px solid #fff; outline: 2px solid var(--encre); transform: rotate(-1.4deg); }
@media (min-width: 64rem) {
  .pratique--voyages { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; align-items: center; }
}

/* ---------- Coublevitaine ---------- */
.coublevitaine { background: var(--nuit); color: #fff; position: relative; overflow: hidden; }
.coublevitaine::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgb(254 244 49 / .14) 1.2px, transparent 1.4px);
  background-size: 14px 14px; pointer-events: none;
}
.coublevitaine__in {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gouttiere);
  display: grid; gap: 2.5rem;
}
.coub__dossard {
  position: relative; background: #fff; color: var(--encre);
  padding: 2.25rem 1.25rem 1.5rem; border: 3px solid var(--citron);
  background-image:
    radial-gradient(circle at 14px 14px, var(--nuit) 5px, transparent 5.5px),
    radial-gradient(circle at calc(100% - 14px) 14px, var(--nuit) 5px, transparent 5.5px),
    radial-gradient(circle at 14px calc(100% - 14px), var(--nuit) 5px, transparent 5.5px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), var(--nuit) 5px, transparent 5.5px);
}
.coub__edition { color: var(--roi); font-weight: 700; }
.coub__titre {
  font-family: var(--f-affiche); font-stretch: 70%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.6rem, 10vw, 5.5rem); line-height: .85; color: var(--roi); margin-top: .5rem;
  text-shadow: .04em .03em 0 var(--citron);
}
.coub__date { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .8rem; margin-top: 1rem; font-family: var(--f-affiche); color: var(--encre); text-transform: uppercase; }
.coub__jour { font-stretch: 110%; font-weight: 800; font-size: 1.4rem; }
.coub__date time { font-stretch: 62%; font-weight: 900; font-size: clamp(4.5rem, 21vw, 10rem); line-height: .8; letter-spacing: -.03em; color: var(--encre); }
.coub__lieu { margin-top: 1.25rem; max-width: 36rem; font-size: 1.0625rem; }
.coub__tampon { position: static; margin-top: 1.25rem; color: var(--g-rouge); font-size: .95rem; transform: rotate(-5deg); }
.coub__tampon small { font-family: var(--f-mono); font-size: .7rem; }

.engagement { border: 2px solid var(--citron); padding: 1.25rem; }
.engagement__titre { font-family: var(--f-affiche); font-stretch: 115%; font-weight: 850; text-transform: uppercase; font-size: 1.35rem; line-height: 1; color: var(--citron); margin-bottom: .9rem; }
.engagement__table { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: .9375rem; }
.engagement__table thead th { text-align: left; font-weight: 400; font-size: .75rem; color: var(--citron); padding: 0 .4rem .4rem 0; border-bottom: 1.5px solid var(--citron); }
.engagement__table td { padding: .4rem .4rem .4rem 0; border-bottom: 1px dashed rgb(255 255 255 / .35); }
.engagement__table td:nth-child(2), .engagement__table td:nth-child(3), .engagement__table thead th:nth-child(n+2) { text-align: right; }
.engagement__table td:first-child { color: var(--citron); font-weight: 700; width: 3rem; }
.eng-groupe th { text-align: left; padding: .9rem 0 .25rem; font-family: var(--f-affiche); font-stretch: 90%; font-weight: 800; text-transform: uppercase; font-size: 1.05rem; }
.eng-groupe th span { font-family: var(--f-mono); font-weight: 400; text-transform: none; font-size: .75rem; margin-left: .4rem; color: var(--citron); }
.engagement__tarifs { margin-top: 1rem; color: #fff; }

.coub__photo img { width: 100%; border: 6px solid var(--citron); transform: rotate(1.8deg); }
.coub__photo .legende { margin-top: 1rem; }
.coub__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; }

@media (min-width: 64rem) {
  .coublevitaine__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 3.5rem; row-gap: 3rem; align-items: start; }
  .coub__dossard {
    grid-column: 1 / -1; transform: rotate(-.8deg);
    padding: 2.75rem 3rem 2.25rem;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 3rem; align-items: end;
  }
  .coub__edition, .coub__titre, .coub__lieu { grid-column: 1; }
  .coub__date { grid-column: 2; grid-row: 1 / span 3; flex-direction: column; align-items: flex-end; margin: 0; }
  .coub__titre { font-size: clamp(3rem, 6.5vw, 6.5rem); }
  .coub__tampon { position: absolute; margin: 0; top: 1.25rem; right: 1.75rem; transform: rotate(9deg); }
  .coub__photo { grid-column: 1; grid-row: 2; margin-top: .5rem; }
  .engagement { grid-column: 2; grid-row: 2; }
  .coub__actions { grid-column: 1 / -1; }
}

/* ---------- Bandeau ---------- */
.bandeau { position: relative; }
.bandeau img { width: 100%; height: clamp(18rem, 50vw, 34rem); object-fit: cover; object-position: 50% 60%; }
.bandeau__txt {
  position: absolute; left: var(--gouttiere); bottom: clamp(1rem, 4vw, 3rem);
  display: flex; flex-direction: column; align-items: flex-start; gap: .2rem;
  font-family: var(--f-affiche); text-transform: uppercase; font-weight: 900;
  font-size: clamp(1.9rem, 6.5vw, 5rem); line-height: .9;
}
.bandeau__txt span { background: var(--roi); color: var(--citron); padding: .1em .25em .05em; box-shadow: var(--decal) var(--decal) 0 var(--nuit); }
.bandeau__txt span:first-child { font-stretch: 62%; }
.bandeau__txt span:last-child { font-stretch: 125%; background: var(--citron); color: var(--roi); margin-left: 8vw; }

/* ---------- Rejoindre ---------- */
.rejoindre { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 8vw, 7rem) var(--gouttiere); display: grid; gap: 2.5rem; }
.rejoindre__chapo { margin-top: 1.25rem; font-size: 1.1875rem; max-width: 26rem; }
.etapes { display: grid; gap: 0; border: var(--trait); background: #fff; align-self: start; }
.etape { position: relative; padding: 1.4rem 1.25rem 1.4rem 5rem; border-bottom: 2px dashed var(--encre); }
.etape:last-child { border-bottom: 0; }
.etape__case {
  position: absolute; left: 1.1rem; top: 1.25rem; width: 2.8rem; height: 2.8rem;
  display: grid; place-items: center; background: var(--roi); color: var(--citron);
  font-family: var(--f-affiche); font-stretch: 62%; font-weight: 900; font-size: 2rem;
}
.etape__titre { font-family: var(--f-affiche); font-stretch: 100%; font-weight: 850; text-transform: uppercase; font-size: 1.35rem; line-height: 1.05; color: var(--roi); margin-bottom: .4rem; }
.etape p { font-size: 1.0625rem; }
.rejoindre__photo img { width: 100%; border: 2px solid var(--encre); box-shadow: 10px 10px 0 var(--citron); }
.rejoindre__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
@media (min-width: 64rem) {
  .rejoindre { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 4rem; }
  .rejoindre__tete { grid-row: 1; }
  .etapes { grid-column: 2; grid-row: 1 / span 2; }
  .rejoindre__photo { grid-column: 1; grid-row: 2; transform: rotate(-1.5deg); }
  .rejoindre__actions { grid-column: 2; }
}

/* ---------- Vie du club ---------- */
.vie { max-width: var(--max); margin: 0 auto; padding: 0 var(--gouttiere) clamp(4rem, 8vw, 7rem); display: grid; gap: 2rem; border-top: var(--trait); padding-top: clamp(3rem, 6vw, 5rem); }
.convocation {
  position: relative; background: var(--roi); color: #fff; padding: 1.75rem 1.5rem;
  box-shadow: var(--decal) var(--decal) 0 var(--citron);
}
.convocation__type { color: var(--citron); font-weight: 700; }
.convocation__titre { font-family: var(--f-affiche); font-stretch: 75%; font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: .9; margin: .4rem 0 .6rem; }
.convocation__date { font-family: var(--f-mono); font-weight: 700; font-size: 1.0625rem; background: var(--citron); color: var(--nuit); display: inline-block; padding: .2rem .5rem; margin-bottom: 1rem; }
.convocation p:last-of-type { max-width: 30rem; }
.convocation__tampon { position: absolute; right: 1rem; top: 1rem; color: var(--citron); mix-blend-mode: normal; transform: rotate(8deg); font-size: 1.1rem; }

.actu { border: var(--trait); padding: 1.5rem; background: #fff; }
.actu__date { color: var(--roi); font-weight: 700; }
.actu__titre { font-family: var(--f-affiche); font-stretch: 85%; font-weight: 850; text-transform: uppercase; font-size: 1.6rem; line-height: 1; color: var(--roi); margin: .4rem 0 .6rem; }
.actu p:last-child { font-size: 1.0625rem; }

.archive figure img { border: 6px solid #fff; outline: 2px solid var(--encre); transform: rotate(-2deg); }
.archive__titre { font-family: var(--f-affiche); font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 1.6rem; color: var(--roi); margin: 1.5rem 0 .5rem; }
.frise li { display: grid; grid-template-columns: 3.2rem 1fr; gap: .5rem; padding: .35rem 0; border-top: 1px dashed var(--encre); }
.frise b { color: var(--roi); }

@media (min-width: 52rem) {
  .vie { grid-template-columns: 1fr 1fr; }
  .vie > .titre-section { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .vie { grid-template-columns: 5fr 3fr 4fr; align-items: start; column-gap: 2.5rem; }
  .actu { margin-top: 3rem; }
}

/* ---------- Pied ---------- */
.pied { background: var(--roi); color: #fff; position: relative; overflow: hidden; }
.pied__in { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) var(--gouttiere) 2rem; display: grid; gap: 2.5rem; position: relative; z-index: 1; }
.pied__marque { font-family: var(--f-affiche); font-stretch: 80%; font-weight: 900; text-transform: uppercase; font-size: 1.8rem; line-height: 1; color: var(--citron); margin-bottom: .75rem; }
.pied address { font-style: normal; margin-bottom: 1rem; }
.pied__nav a { display: inline-flex; align-items: center; min-height: 2.75rem; word-break: break-word; }
.pied__nav a:hover { color: var(--citron); }
.pied__titre { font-family: var(--f-mono); font-size: .875rem; margin-bottom: .75rem; }
.logos { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.logos li { background: #fff; padding: .5rem; display: grid; place-items: center; height: 5.5rem; }
.logos img { max-height: 4.5rem; width: auto; }
.pied__geant {
  font-family: var(--f-affiche); font-stretch: 125%; font-weight: 900;
  font-size: clamp(8rem, 38vw, 30rem); line-height: .75; letter-spacing: -.05em;
  color: var(--roi-fonce); margin: 0 0 -.12em -.04em; user-select: none;
  -webkit-text-stroke: 2px rgb(254 244 49 / .55);
}
@media (min-width: 52rem) {
  .pied__in { grid-template-columns: 1.1fr 1fr 1fr; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* garde-fou : les éléments inclinés ne créent pas de défilement horizontal */
main, .pied { overflow-x: clip; }
