/* ═══════════════════════════════════════════════════════════════════════════
   Récap vélo : style « récap annuel » (microsite plein écran, une idée par
   écran, couleurs franches, chiffres géants), puis une fin noire.
   Les écrans ont leur propre fond de couleur : ils sont identiques en mode
   clair et sombre (seule la modale « À propos » suit le thème).
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --encre: #120d1f;
  --blanc: #fffdf7;
  --rouge: #ff2b2b;
  --rose: #ff3d7f;
  --lime: #c6f432;
  --violet: #4b1fd1;
  --orange: #ff6a1a;
  --bleu: #1f6bff;
  --jaune: #ffd23f;
  --sarcelle: #00b3a1;
  --barre-h: 56px;

  /* Bouton « i » + modale (jetons du bloc commun) */
  --gf-info-trait: currentColor;
  --gf-info-2: currentColor;
  --gf-info-fond: #fffdf7;
  --gf-info-bordure: rgba(18,13,31,.12);
  --gf-info-rayon: 22px;
  --gf-info-titre: #120d1f;
  --gf-info-texte: #3b3448;
  --gf-info-lien: #c2185b;
  --gf-info-fermer: #f3efe6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --gf-info-fond: #17121f; --gf-info-bordure: rgba(255,255,255,.1);
    --gf-info-titre: #fffdf7; --gf-info-texte: #cfc8da; --gf-info-lien: #ff7aa8; --gf-info-fermer: #241d2e;
  }
}
:root[data-theme="dark"] {
  --gf-info-fond: #17121f; --gf-info-bordure: rgba(255,255,255,.1);
  --gf-info-titre: #fffdf7; --gf-info-texte: #cfc8da; --gf-info-lien: #ff7aa8; --gf-info-fermer: #241d2e;
}

* { box-sizing: border-box; }
/* Les écrans défilent dans <main>, fixe et plein écran, et non dans la page :
   sur iPhone, Safari dessine la page sous la barre d'état et sous sa barre flottante,
   et on voyait le bout de l'écran d'avant et de l'écran d'après. */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html { background: var(--encre); }
main {
  position: fixed; inset: 0; z-index: 1;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  scroll-snap-type: y mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;        /* pas de double-toucher pour zoomer : chaque toucher avance */
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--blanc);
  background: var(--encre);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.sr, .evitement:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.evitement:focus { position: fixed; top: 8px; left: 8px; z-index: 3000; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }

/* ── Barre du haut ─────────────────────────────────────────────────────── */
.barre {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--barre-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px;
  color: var(--texte-barre, var(--blanc));
  transition: color .4s ease;
}
.marque {
  flex: 1 1 0;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15px;
  color: inherit; text-decoration: none; letter-spacing: -.01em; white-space: nowrap;
}
.marque span { opacity: .6; }
/* Barre en segments, un par écran (comme des stories) : segments créés par recap.js */
.progression {
  flex: 0 1 260px; display: flex; gap: 3px; height: 4px;
}
.progression i {
  flex: 1 1 0; border-radius: 4px; overflow: hidden;
  background: color-mix(in srgb, currentColor 25%, transparent);
}
.progression i::after {
  content: ""; display: block; height: 100%; width: 100%;
  background: currentColor; border-radius: 4px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.progression i.rempli::after { transform: scaleX(1); }
.barre-droite { flex: 1 1 0; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
@media (max-width: 600px) {
  .barre { gap: 10px; padding: 8px 12px 0; }
  .barre-droite { gap: 6px; }
  /* Sur téléphone : segments sur toute la largeur, en haut de l'écran */
  .progression { position: absolute; top: 8px; left: 12px; right: 12px; height: 3px; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .progression i::after { transition: none; } }

/* Flèches ‹ › sur ordinateur : souris seulement, fenêtre assez large pour
   ne pas toucher le texte. Même trait de 1,5 px que le bouton « i ». */
.fleche-nav { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .fleche-nav {
    position: fixed; top: 50%; z-index: 90; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; padding: 0; border-radius: 50%; cursor: pointer;
    border: 1.5px solid currentColor; background: transparent;
    color: var(--texte-barre, var(--blanc));
    opacity: .7; transition: opacity .2s ease, background-color .2s ease, color .4s ease;
  }
  .fleche-nav.prec { left: 24px; }
  .fleche-nav.suiv { right: 24px; }
  .fleche-nav[hidden] { display: none; }
  .fleche-nav:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
  .fleche-nav:focus-visible { opacity: 1; outline: 2px solid currentColor; outline-offset: 3px; }
  .fleche-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
}

/* ── Écrans ────────────────────────────────────────────────────────────── */
.ecran {
  position: relative;
  height: 100%;                      /* exactement la hauteur de <main> (l'écran visible) : jamais plus,
                                        pour que deux écrans ne se chevauchent pas. Un contenu trop haut
                                        est réduit pour tenir (recap.js, « Chaque écran tient à l'écran »). */
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--barre-h) + 24px) 24px 48px;
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--fond); color: var(--texte);
}
.e-rose     { --fond: var(--rose);     --texte: var(--blanc); --accent: var(--lime); }
.e-lime     { --fond: var(--lime);     --texte: var(--encre); --accent: var(--violet); }
.e-violet   { --fond: var(--violet);   --texte: var(--blanc); --accent: var(--jaune); }
.e-orange   { --fond: var(--orange);   --texte: var(--encre); --accent: var(--blanc); }
.e-bleu     { --fond: var(--bleu);     --texte: var(--blanc); --accent: var(--lime); }
.e-jaune    { --fond: var(--jaune);    --texte: var(--encre); --accent: var(--rose); }
.e-sarcelle { --fond: var(--sarcelle); --texte: var(--encre); --accent: var(--blanc); }
.e-vert     { --fond: #0b7a4b;         --texte: var(--blanc); --accent: var(--lime); }
.e-bascule  {
  --texte: var(--blanc);
  background: linear-gradient(180deg, var(--sarcelle) 0%, #0b3a3a 38%, #000 78%); /* suit l'écran sarcelle des destinations */
}

.contenu { position: relative; z-index: 2; width: min(760px, 100%); }

.surtitre {
  margin: 0 0 14px;
  font-weight: 700; font-size: clamp(14px, 2.2vw, 18px);
  text-transform: uppercase; letter-spacing: .08em;
}
.titre-geant {
  margin: 0 0 18px;
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: clamp(38px, 10vw, 104px); line-height: .98; letter-spacing: -.035em;
  text-wrap: balance;
}
.titre-geant.petit { font-size: clamp(36px, 7.5vw, 76px); }
.titre-geant em { font-style: normal; color: var(--accent); }
.nombre-geant {
  margin: 0;
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: clamp(56px, 15vw, 168px); line-height: .9; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.etiquette {
  margin: 10px 0 22px;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: clamp(22px, 4.4vw, 40px); line-height: 1.1; letter-spacing: -.02em;
}
.sous { margin: 0 0 22px; font-size: clamp(17px, 2.6vw, 22px); line-height: 1.45; }
.sous.petit { font-size: clamp(15px, 2.1vw, 18px); opacity: .9; }
.fleche { font-size: 34px; animation: rebond 1.6s ease-in-out infinite; width: fit-content; }
@keyframes rebond { 50% { transform: translateY(10px); } }

/* Formes décoratives qui flottent */
.formes i {
  position: absolute; z-index: 1; border-radius: 50%;
  background: var(--accent); opacity: .9;
  animation: flotte 9s ease-in-out infinite;
}
.formes .f1 { width: 34vmin; height: 34vmin; right: -10vmin; top: 12%; }
.formes .f2 { width: 18vmin; height: 18vmin; left: -6vmin; bottom: 10%; border-radius: 30%; animation-duration: 11s; animation-delay: -3s; }
.formes .f3 { width: 10vmin; height: 10vmin; right: 18%; bottom: 14%; border-radius: 0; transform: rotate(45deg); animation-duration: 7s; animation-delay: -1s; }
@keyframes flotte {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-2vmin, 3vmin) rotate(18deg); }
}
.autocollant {
  position: absolute; z-index: 2; right: 7vw; bottom: 12vh;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(22px, 4vw, 36px);
  background: var(--lime); color: var(--encre);
  padding: 10px 18px; border-radius: 999px; transform: rotate(-12deg);
  animation: tourne 6s ease-in-out infinite;
}
@keyframes tourne { 50% { transform: rotate(8deg) scale(1.06); } }

/* Apparition au défilement */
.apparait { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.visible .apparait { opacity: 1; transform: none; }
.visible .apparait:nth-child(2) { transition-delay: .08s; }
.visible .apparait:nth-child(3) { transition-delay: .16s; }
.visible .apparait:nth-child(4) { transition-delay: .24s; }
.visible .apparait:nth-child(5) { transition-delay: .32s; }
.visible .apparait:nth-child(6) { transition-delay: .4s; }

/* Électriques / classiques */
.partage { max-width: 560px; }
.partage-barre { display: flex; height: 26px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--texte) 18%, transparent); }
.p-elec { width: 0; background: var(--violet); transition: width 1.2s .4s cubic-bezier(.2,.8,.2,1); }
.visible .p-elec { width: calc(var(--part) * 1%); }
.p-classique { flex: 1; background: var(--encre); }
.partage-legende { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 15px; }
.partage-legende b { font-variant-numeric: tabular-nums; }

/* Paires et grilles de chiffres */
.duo, .grille-stats { display: grid; gap: 14px; }
.duo { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
.grille-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.duo > div, .grille-stats > div {
  padding: 16px 18px; border-radius: 20px;
  background: color-mix(in srgb, var(--texte) 12%, transparent);
}
.duo b, .grille-stats b {
  display: block; font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: clamp(22px, 4vw, 34px); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.duo span, .grille-stats span { font-size: 14px; line-height: 1.35; display: block; margin-top: 4px; }
@media (max-width: 600px) {
  .grille-stats { grid-template-columns: 1fr; gap: 8px; }
  .grille-stats > div { padding: 10px 14px; display: flex; align-items: baseline; gap: 10px; }
  .grille-stats span { margin-top: 0; }
}

/* Jours de la semaine */
.jours { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 8px; height: 190px; max-width: 560px; }
.jours li { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; font-size: 13px; }
.jours .j-barre {
  width: 100%; border-radius: 10px 10px 4px 4px;
  background: color-mix(in srgb, var(--texte) 35%, transparent);
  height: 0; transition: height 1s cubic-bezier(.2,.8,.2,1);
}
.visible .jours .j-barre { height: calc((var(--v) - 10) * 22px); }
.jours .top .j-barre { background: var(--lime); }
.jours b { font-size: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .jours b { font-size: 10px; } }

/* Palmarès des stations */
.palmares { list-style: none; margin: 0; padding: 0; max-width: 560px; }
.palmares li {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0; border-bottom: 2px solid color-mix(in srgb, var(--texte) 18%, transparent);
  font-weight: 600; font-size: clamp(15px, 2.4vw, 19px);
}
.palmares li span {
  flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--encre); color: var(--jaune); font-family: 'Poppins', sans-serif;
}
.palmares li:first-child span { background: var(--rose); color: var(--blanc); }
.palmares b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* Barres horizontales */
.barres { list-style: none; margin: 0 0 20px; padding: 0; max-width: 600px; }
.barres li {
  position: relative; display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 16px; margin-bottom: 8px; border-radius: 14px; overflow: hidden;
  font-weight: 600; background: color-mix(in srgb, var(--texte) 10%, transparent);
}
.barres li::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 0; z-index: 0;
  background: color-mix(in srgb, var(--blanc) 70%, transparent);
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
}
.visible .barres li::before { width: calc(var(--v) * 1%); }
.barres li > * { position: relative; z-index: 1; }

/* Anneaux d'accessibilité */
.anneaux { display: flex; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.anneaux > div {
  --deg: calc(var(--v) * 3.6deg);
  width: 112px; height: 112px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background:
    radial-gradient(closest-side, var(--fond) 78%, transparent 80%),
    conic-gradient(var(--lime) var(--deg), color-mix(in srgb, var(--texte) 20%, transparent) 0);
}
.anneaux b { font-size: 17px; font-variant-numeric: tabular-nums; }
.anneaux span { font-size: 10.5px; line-height: 1.2; padding: 0 14px; }
@media (max-width: 600px) {
  .anneaux { gap: 10px; flex-wrap: nowrap; }
  .anneaux > div { width: 98px; height: 98px; }
  .anneaux b { font-size: 15px; }
  .anneaux span { font-size: 9.5px; padding: 0 10px; }
}

/* 141 → 157 */
.evolution {
  margin: 0; display: flex; align-items: baseline; gap: .25em; flex-wrap: wrap;
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: clamp(56px, 14vw, 150px); line-height: 1; letter-spacing: -.04em;
}
.evolution span { opacity: .45; }
.ecran-fin .evolution { font-size: clamp(48px, 9vw, 104px); flex-wrap: nowrap; white-space: nowrap; }
.evolution i { font-style: normal; font-size: .6em; }

/* ── « Mais… » : à l'arrivée, l'écran sarcelle vire au rouge et au noir ── */
.e-bascule::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(150,0,0,.55) 0%, rgba(60,0,0,.85) 40%, #000 78%),
    #000;
  opacity: 0;
}
.e-bascule.visible::before { animation: assombrir 1.2s ease-in .2s forwards; }
@keyframes assombrir {          /* comme des lumières qui lâchent */
  0% { opacity: 0; }
  18% { opacity: .55; }
  22% { opacity: .15; }
  30% { opacity: .75; }
  34% { opacity: .35; }
  42% { opacity: .85; }
  46% { opacity: .6; }
  100% { opacity: 1; }
}
.e-bascule .titre-geant { transition: color .6s ease .9s; }
.e-bascule.visible .titre-geant { color: var(--rouge); }
.e-bascule .sous { transition: color .6s ease 1s; }
.e-bascule.visible .sous { color: #d9c9c9; }

/* ── Essence : pompe et compteur qui roule ─────────────────────────────── */
.contenu-essence { display: flex; flex-direction: column; align-items: flex-start; }
.pompe { position: relative; display: flex; align-items: flex-start; margin: 4px 0 6px; color: #120d1f; }
.pompe-corps {
  position: relative; z-index: 1;
  width: min(440px, 82vw); padding: 16px 18px 20px;
  background: var(--lime); border-radius: 26px 26px 10px 10px;
  box-shadow: inset 0 -10px 0 rgba(0,0,0,.12);
}
.pompe-haut {
  margin: 0 0 12px; text-align: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .25em; text-transform: uppercase;
}
.pompe-ecran {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 14px 12px; border-radius: 12px;
  background: #0d0a12; color: #ffb020;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.08), inset 0 0 22px rgba(255,176,32,.12);
}
.pompe-ecran + .pompe-ecran { margin-top: 8px; }
.pompe-lib { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #a8892f; }
.pompe-ecran-km { flex-direction: row; justify-content: space-between; align-items: baseline; }
.pompe-ecran-km span:last-child { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.odometre {
  display: flex; align-items: center;
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: clamp(38px, 10.5vw, 68px); line-height: 1; height: 1em;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(255,176,32,.55);
  overflow: hidden; white-space: nowrap;
}
.odo-case { display: inline-block; height: 1em; overflow: hidden; width: .64em; text-align: center; }
.odo-esp { display: inline-block; width: .22em; }
.odo-bande { display: flex; flex-direction: column; transform: translateY(0); }
.odo-bande span { display: block; height: 1em; line-height: 1; }
.visible .odo-bande {
  transform: translateY(calc(var(--cible) * -1em));
  transition: transform var(--duree, 2s) cubic-bezier(.15,.75,.2,1) .35s;
}
.pompe-grille { display: flex; gap: 8px; margin-top: 14px; }
.pompe-grille i { flex: 1; height: 26px; border-radius: 6px; background: rgba(0,0,0,.14); }
.pompe-pistolet { width: 64px; height: 128px; margin-left: -6px; margin-top: 40px; color: #120d1f; flex-shrink: 0; }
@media (max-width: 480px) { .pompe-pistolet { width: 44px; height: 92px; margin-top: 30px; } .pompe-corps { width: 78vw; } }

/* Gouttes d'essence qui deviennent des feuilles en tombant */
.gouttes { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.gouttes i { position: absolute; left: var(--x); top: -40px; width: 22px; height: 22px; animation: chute-goutte var(--t) linear var(--d) infinite; }
.gouttes i::before, .gouttes i::after { content: ""; position: absolute; inset: 0; }
.gouttes i::before {   /* goutte d'essence */
  background: #ffb020; border-radius: 0 50% 50% 50%; transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(255,176,32,.5);
  animation: goutte-sort var(--t) linear var(--d) infinite;
}
.gouttes i::after {    /* feuille */
  background: var(--lime); border-radius: 0 70% 0 70%;
  opacity: 0; animation: feuille-entre var(--t) linear var(--d) infinite;
}
@keyframes chute-goutte {
  0% { transform: translate(0, 0) rotate(0); }
  45% { transform: translate(0, 48vh) rotate(0); }
  100% { transform: translate(40px, 112vh) rotate(260deg); }
}
@keyframes goutte-sort { 0%, 40% { opacity: .85; } 50%, 100% { opacity: 0; } }
@keyframes feuille-entre { 0%, 40% { opacity: 0; transform: scale(.4); } 52% { opacity: .9; transform: scale(1.15); } 60%, 100% { opacity: .9; transform: scale(1); } }

/* BIXI qui filent de gauche à droite (écran « Tout ce beau monde ») */
.bixis { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.bixis > svg:not([width]) {
  position: absolute; left: 0; top: var(--y);
  width: var(--w); height: calc(var(--w) / 2);
  color: var(--encre); opacity: .32;
  transform: translateX(calc(-1 * var(--w)));
  animation: bixi-file var(--t) linear var(--d) infinite;
}
.bixis > svg.b { color: var(--blanc); opacity: .55; }
@keyframes bixi-file {
  0%   { transform: translateX(calc(-1 * var(--w))) translateY(0); }
  25%  { transform: translateX(calc(25vw - var(--w))) translateY(-2px); }
  50%  { transform: translateX(calc(50vw - var(--w))) translateY(0); }
  75%  { transform: translateX(calc(75vw - var(--w))) translateY(-2px); }
  100% { transform: translateX(100vw) translateY(0); }
}

/* Piste cyclable et deux cyclistes (écran « Ensemble, nous avons roulé ») */
.a-piste { --piste-h: clamp(130px, 27vh, 230px); padding-bottom: calc(var(--piste-h) + 16px); }
.piste { position: absolute; left: 0; right: 0; bottom: 0; height: var(--piste-h); z-index: 1; pointer-events: none; overflow: hidden; }
.piste-sol {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: #24107a;
  border-top: 7px solid #8f78ff;                /* bordure de béton */
  box-shadow: inset 0 3px 0 rgba(255,253,247,.75), inset 0 -3px 0 rgba(255,253,247,.75);
}
.piste-sol::before {                            /* ligne jaune pointillée au centre */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px;
  background: repeating-linear-gradient(90deg, var(--jaune) 0 36px, transparent 36px 72px);
  background-size: 72px 4px;
  animation: piste-file .45s linear infinite;
}
@keyframes piste-file { to { background-position: -72px 0; } }
.cycliste { position: absolute; height: auto; overflow: visible; animation: derive 10s ease-in-out infinite; }
.c-b { width: clamp(118px, 19vmin, 200px); left: 30%; bottom: 36%; animation-delay: -5s; }
.c-a { width: clamp(132px, 22vmin, 228px); left: 44%; bottom: 4%; }
@keyframes derive {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(3vw, -1px); }
  50% { transform: translate(5vw, 0); }
  75% { transform: translate(1vw, -1px); }
}
@media (max-width: 600px) { .c-b { left: 8%; } .c-a { left: 32%; } }

/* Petite station BIXI (écran des transactions) */
.borne-bixi {
  position: absolute; z-index: 1; right: 6vw; bottom: 0;
  width: clamp(220px, 40vmin, 420px); height: auto; pointer-events: none;
}
@media (max-width: 600px) {
  .a-borne { padding-bottom: calc(clamp(220px, 40vmin, 420px) * .56 + 16px); }
  .borne-bixi { right: 4vw; }
}

/* Rangée de triplex en brique brune (écran « Et on reste dans le coin ») */
.a-plex { --plex-h: clamp(120px, 26vh, 240px); padding-bottom: calc(var(--plex-h) + 16px); }
.plex {
  position: absolute; z-index: 1; bottom: 0; left: 50%;
  height: var(--plex-h); width: auto; max-width: none;
  transform: translateX(-50%); pointer-events: none;
}

/* Logo du métro qui flotte derrière « Notre station n° 1 » */
.logo-metro {
  position: absolute; z-index: 1; right: 9vw; bottom: 9vh;
  width: clamp(64px, 13vmin, 130px); height: auto;
  transform: rotate(-8deg); filter: drop-shadow(0 6px 0 rgba(18,13,31,.18)); border-radius: 12%;
  animation: flotte-metro 8s ease-in-out infinite;
}
@keyframes flotte-metro {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-2.5vmin) rotate(6deg); }
}

/* ── Fin noire ─────────────────────────────────────────────────────────── */
.fin { position: relative; background: #000; color: #f4f1ea; }
#chute {
  position: sticky; top: 0; display: block;
  width: 100%; height: var(--h, 100svh);   /* --h : hauteur de <main>, écrite par recap.js */
  margin-bottom: calc(-1 * var(--h, 100svh));
  z-index: 1; pointer-events: none;
}
.vignette {
  position: sticky; top: 0; height: var(--h, 100svh); margin-bottom: calc(-1 * var(--h, 100svh));
  z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(120,0,0,.35) 100%);
  animation: pouls 3.2s ease-in-out infinite;
}
@keyframes pouls { 50% { opacity: .55; } }
.ecran-fin { --fond: transparent; --texte: #f4f1ea; background: transparent; z-index: 2; padding-bottom: 18vh; }
.ecran-fin .contenu { text-shadow: 0 2px 18px #000, 0 0 2px #000; }
.rouge { color: var(--rouge); }
.titre-geant .glitch { color: var(--rouge); white-space: nowrap; }
.pastille {
  display: inline-block; vertical-align: middle;
  font-family: 'Inter', sans-serif; font-size: .55em; font-weight: 800;
  padding: 4px 12px; border-radius: 999px; background: var(--rouge); color: #fff; text-shadow: none;
}
.note { margin: 18px 0 0; font-size: 13.5px; line-height: 1.5; color: #a8a1b3; max-width: 640px; }
.avant-apres { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.avant-apres > div { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.avant-apres span { display: block; font-size: 13px; color: #b9b2c4; }
.avant-apres b { font-family: 'Poppins', sans-serif; font-size: clamp(26px, 5vw, 40px); }
.avant-apres .coupe { border-color: var(--rouge); background: rgba(255,43,43,.12); }
.avant-apres .coupe b { color: var(--rouge); }
.citation {
  margin: 0 0 18px; padding: 0 0 0 18px; border-left: 4px solid var(--rouge);
  font-size: clamp(20px, 3.4vw, 30px); line-height: 1.35; font-weight: 500;
}
.citation del { color: var(--rouge); text-decoration-thickness: 3px; }
.tarifs { list-style: none; margin: 0; padding: 0; max-width: 600px; }
.tarifs li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 15px;
}
.tarifs s { color: #8f889b; font-variant-numeric: tabular-nums; }
.tarifs b { color: var(--rouge); font-variant-numeric: tabular-nums; font-size: 17px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.bouton {
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  padding: 14px 24px; border-radius: 999px; border: 2px solid var(--rouge);
  background: var(--rouge); color: #fff;
}
.bouton.secondaire { background: transparent; color: #f4f1ea; border-color: rgba(255,255,255,.4); }
.bouton:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Glitch du texte */
.glitch { position: relative; display: inline-block; }
.visible .glitch::before, .visible .glitch::after,
.visible.glitch::before, .visible.glitch::after {
  content: attr(data-texte); position: absolute; inset: 0; pointer-events: none;
}
.visible .glitch::before, .visible.glitch::before { color: #0ff; transform: translate(-2px, 0); clip-path: inset(0 0 60% 0); animation: glitch-a 2.4s steps(2) infinite; mix-blend-mode: screen; }
.visible .glitch::after, .visible.glitch::after { color: #f0f; transform: translate(2px, 0); clip-path: inset(55% 0 0 0); animation: glitch-b 1.9s steps(2) infinite; mix-blend-mode: screen; }
@keyframes glitch-a { 0%, 86% { transform: translate(0); opacity: 0; } 88% { transform: translate(-6px, 2px); opacity: 1; } 92% { transform: translate(4px, -2px); opacity: 1; } 94%, 100% { transform: translate(0); opacity: 0; } }
@keyframes glitch-b { 0%, 80% { transform: translate(0); opacity: 0; } 84% { transform: translate(6px, -1px); opacity: 1; } 90% { transform: translate(-5px, 2px); opacity: 1; } 92%, 100% { transform: translate(0); opacity: 0; } }

/* Secousse à l'impact */
.secousse .ecran-fin .contenu { animation: secousse .22s linear; }
@keyframes secousse {
  20% { transform: translate(-4px, 2px); } 40% { transform: translate(3px, -3px); }
  60% { transform: translate(-2px, 3px); } 80% { transform: translate(2px, -1px); }
}

.pied {
  position: relative; z-index: 2;
  padding: 28px 24px 40px; text-align: center;
  font-size: 12.5px; line-height: 1.6; color: #8f889b;
  background: #000;
  scroll-snap-align: end;
}
.pied p { margin: 0 0 4px; }
.pied a { color: #d7d1e0; }

/* Barre sur fond foncé ou pâle : couleur réglée par recap.js */
body.fond-pale { --texte-barre: var(--encre); }

/* Mouvement réduit : pas d'animations décoratives */
@media (prefers-reduced-motion: reduce) {
  main { scroll-behavior: auto; }
  .apparait { opacity: 1; transform: none; transition: none; }
  .formes i, .autocollant, .fleche, .defiler span, .vignette, .logo-metro { animation: none; }
  .visible .glitch::before, .visible .glitch::after, .visible.glitch::before, .visible.glitch::after { display: none; }
  .p-elec, .jours .j-barre, .barres li::before { transition: none; }
  .secousse .ecran-fin .contenu { animation: none; }
  .gouttes, .bixis { display: none; }
  .piste-sol::before, .cycliste { animation: none; }
  .e-bascule.visible::before { animation: none; opacity: 1; transition: opacity 1s; }
  .visible .odo-bande { transition: none; }
}

/* Photo et nom en haut de la modale « À propos », liés à gabfortin.com */
.apropos-auteur {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  text-decoration: none !important; color: var(--gf-info-titre);
}
.apropos-auteur img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--rose); }
.apropos-auteur b { display: block; font-family: 'Poppins', sans-serif; font-size: 1.05rem; line-height: 1.2; }
.apropos-auteur small { display: block; font-size: .8rem; color: var(--gf-info-lien); font-weight: 600; }
.apropos-entete { color: var(--gf-info-titre); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; padding-right: 40px; }
.apropos-entete .apropos-auteur { margin: 0; }
/* Texte « Me soutenir » visible aussi sur mobile (don.js le cache sous 760 px pour la barre) */
.apropos-entete .gf-don-btn { width: auto; height: 32px; padding: 0 13px 0 11px; }
.apropos-entete .gf-don-texte { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; }
.apropos-auteur:hover b { text-decoration: underline; }
.apropos-auteur:focus-visible { outline: 2px solid var(--gf-info-lien); outline-offset: 4px; border-radius: 999px; }

/* ── Bouton « i » + modale « À propos » ──────────────────────────────────────
   Version sobre (novembre 2026), la même que sur les cartes
   (MAP-DESIGN-SYSTEM.md) : cercle à contour de 1,5 px, fond transparent, sans
   dégradé, ombre, pulsation ni grossissement ; teinte légère au survol.
   Bloc identique dans tous les sites hors cartes ; seules les variables
   --gf-info-* (définies juste au-dessus) changent d'un site à l'autre.
   --gf-info-trait : couleur du contour et du « i » (repli : --gf-info-2) ;
   la faire suivre le mode sombre. Script : apropos.js. */
.gf-info-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  padding: 0;
  border: 1.5px solid currentColor;   /* même épaisseur que « Me soutenir » (don.js) */
  background: transparent;
  color: var(--gf-info-trait, var(--gf-info-2)); cursor: pointer;
  transition: background-color .2s ease;
}
.gf-info-btn svg { width: 16px; height: 16px; }
.gf-info-btn:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.gf-info-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.gf-info-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,16,13,.45);
  -webkit-backdrop-filter: blur(8px) saturate(140%); backdrop-filter: blur(8px) saturate(140%);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility 0s .25s;
}
.gf-info-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s ease, visibility 0s; }
.gf-info-panel {
  position: relative; width: min(480px, 100%); max-height: min(84vh, 680px); overflow-y: auto;
  background: var(--gf-info-fond);
  border: 1px solid var(--gf-info-bordure); border-radius: var(--gf-info-rayon);
  box-shadow: 0 24px 60px -16px rgba(0,0,0,.35);
  padding: 30px 26px 26px; text-align: left;
  transform: scale(.94) translateY(8px); opacity: 0;
  transition: transform .28s cubic-bezier(.22,.68,0,1), opacity .28s cubic-bezier(.22,.68,0,1);
}
.gf-info-overlay.open .gf-info-panel { transform: none; opacity: 1; }
.gf-info-panel h2 {
  display: block; margin: 0 0 12px; padding-right: 36px;
  font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; color: var(--gf-info-titre);
}
.gf-info-panel h2::before, .gf-info-panel h2::after { content: none; display: none; }
.gf-info-panel p, .gf-info-panel li { font-size: .88rem; line-height: 1.6; color: var(--gf-info-texte); }
.gf-info-panel p { margin: 0 0 14px; }
.gf-info-panel p:last-child { margin-bottom: 0; }
.gf-info-panel ul { margin: 0 0 14px; padding-left: 20px; }
.gf-info-panel li + li { margin-top: 4px; }
.gf-info-panel a { color: var(--gf-info-lien); font-weight: 600; text-decoration: none; }
.gf-info-panel a:hover { text-decoration: underline; }
.gf-info-panel strong { color: var(--gf-info-titre); }
.gf-info-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--gf-info-bordure); background: var(--gf-info-fermer);
  color: var(--gf-info-titre); cursor: pointer; font: inherit; font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s ease;
}
.gf-info-close:hover { transform: scale(1.08); }
@media (max-width: 760px) {
  .gf-info-btn { width: 28px; height: 28px; }
  .gf-info-btn svg { width: 14px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .gf-info-btn, .gf-info-panel { transition: none; }
  .gf-info-panel { transform: none; }
}
@media print { .gf-info-btn, .gf-info-overlay { display: none !important; } }

/* ── Dernière page : carte verte « Devenez membre » ─────────────────────── */
.e-membre { z-index: 3; --fond: #0b7a4b; --texte: var(--blanc); --accent: var(--lime); }
.e-membre .contenu { display: flex; justify-content: center; }
.carte-membre {
  width: min(560px, 100%);
  padding: clamp(28px, 5vw, 44px);
  border-radius: 28px;
  background: #11965d;
  border: 2px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  text-align: left;
}
.carte-photo {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--lime); display: block; margin-bottom: 22px;
}
.carte-titre {
  margin: 0 0 14px;
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: clamp(26px, 4.6vw, 40px); line-height: 1.12;
}
.carte-texte { margin: 0 0 28px; font-size: clamp(17px, 2.4vw, 21px); line-height: 1.45; }
.bouton-membre {
  display: inline-block; text-decoration: none;
  background: var(--lime); border-color: var(--lime); color: var(--encre);
}
.bouton-membre:hover { background: #d8ff5a; border-color: #d8ff5a; }
.carte-appel {
  margin: 0 0 14px;
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: clamp(19px, 2.8vw, 24px); line-height: 1.25; color: var(--lime);
}
.actions-membre { align-items: center; }
.bouton-soutenir, .bouton-petit { font-size: 14px; padding: 9px 16px; }
.bouton-soutenir {
  display: inline-block; text-decoration: none;
  background: transparent; border-color: var(--lime); color: var(--lime);
}
.bouton-soutenir:hover { background: rgba(198,244,50,.15); }
.bouton-partager { background: var(--rose); border-color: var(--rose); color: var(--encre); }
.bouton-partager:hover { background: #ff6b9c; border-color: #ff6b9c; }
.carte-membre #partage-retour { margin: 12px 0 0; }
.carte-membre #partage-retour:empty { display: none; }

/* « Qu'est-ce qu'on peut faire ? » + indice de défilement, à la fin des coupes */
.question {
  margin: 8px 0 0;
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: clamp(24px, 4.4vw, 42px); line-height: 1.1; letter-spacing: -.02em;
}
.defiler { margin-top: 30px; font-size: 15px; opacity: .75; }
.defiler span { display: inline-block; animation: rebond 1.6s ease-in-out infinite; }

/* Sources, tout à la fin */
.e-sources { z-index: 3; --fond: #000; --texte: #f4f1ea; }
.liste-sources { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.7; opacity: .9; }
.liste-sources a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.liste-sources a:hover { color: var(--rouge); }

/* ══ Récap des compteurs 2026 (compteurs.html) ═════════════════════════════ */
/* Palmarès avec un détail sous le nom (arrondissement, météo, nombre de compteurs) */
.podium .p-nom { margin: 0; min-width: 0; line-height: 1.2; }
.podium .p-nom small { display: block; margin-top: 2px; font-weight: 500; font-size: .78em; opacity: .75; }
.podium li:first-child { font-size: clamp(17px, 2.8vw, 23px); }
.podium > li > b { white-space: nowrap; }
/* Note sur un écran en couleur : couleur du texte de l'écran */
.note.note-claire { color: inherit; opacity: .75; }
/* Passages par mois : le mois record en lime */
.mois { display: flex; align-items: flex-end; gap: 6px; height: 160px; max-width: 560px; margin: 0; }
.mois div { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.mois i { display: block; width: 100%; height: 0; min-height: 3px; border-radius: 6px 6px 2px 2px; background: currentColor; opacity: .45; transition: height 1.1s cubic-bezier(.2,.8,.2,1); }
.visible .mois i { height: var(--h); }
.mois .record i { opacity: 1; background: var(--lime); }
.mois span { font-size: 13px; font-weight: 700; }
/* Réseau cyclable : 300 M$ contre 15 M$ (largeur proportionnelle au montant) */
.coupes-barres { display: grid; gap: 12px; max-width: 600px; margin: 0 0 4px; }
.coupes-barre { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 12px; font-size: 14px; }
.coupes-barre span { color: #b9b2c4; }
.coupes-barre b {
  display: flex; align-items: center; justify-content: flex-end;
  width: var(--l); min-width: 64px; height: 38px; padding: 0 10px; border-radius: 6px;
  background: rgba(244,241,234,.85); color: #000; text-shadow: none;
  font-family: 'Poppins', sans-serif; font-size: 16px; white-space: nowrap;
}
.coupes-barre.coupe b { background: var(--rouge); }
.coupes-zero { margin: 18px 0 0; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(20px, 3.6vw, 30px); }
.coupes-zero strong { color: var(--rouge); }
.citation strong { color: var(--rouge); }
.citation.petite { font-size: clamp(16px, 2.4vw, 21px); }
.citation.petite del { color: #a8a1b3; text-decoration-color: var(--rouge); }
@media (max-width: 520px) { .coupes-barre { grid-template-columns: 1fr; gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .mois i { transition: none; } }

/* ══ Écran de choix (index.html) : BIXI ou compteurs ══════════════════════ */
.e-choix { --fond: var(--rose); --texte: var(--blanc); --accent: var(--lime); }
.choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 680px; margin-top: 8px; }
.choix a {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 22px 20px; border-radius: 24px; text-decoration: none;
  border: 3px solid var(--encre); box-shadow: 0 6px 0 var(--encre);
  transition: transform .15s ease, box-shadow .15s ease;
}
.choix a:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--encre); }
.choix a:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--encre); }
.choix a:focus-visible { outline: 3px solid var(--blanc); outline-offset: 4px; }
.choix .c-bixi { background: var(--lime); color: var(--encre); }
.choix .c-compteurs { background: var(--violet); color: var(--blanc); }
.choix b { font-family: 'Poppins', sans-serif; font-size: clamp(30px, 5vw, 44px); line-height: 1; letter-spacing: -.03em; }
.choix span { font-size: 15px; line-height: 1.35; opacity: .85; }
.choix i { font-style: normal; font-weight: 700; margin-top: 10px; }
@media (max-width: 560px) { .choix { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .choix a { transition: none; } .choix a:hover { transform: none; } }
/* Date dans le texte d'une case (hiver) : reste dans la phrase */
.duo span span { display: inline; margin: 0; font-size: inherit; }

/* Écran des arrondissements (compteurs.html) : gratte-ciel du centre-ville à gauche,
   triplex du Plateau à droite, posés sur le même trottoir */
.a-ville { --ville-h: clamp(150px, 30vh, 280px); padding-bottom: calc(var(--ville-h) + 16px); }
.ville {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: var(--ville-h);
  display: grid; grid-template-columns: 1fr 1fr; pointer-events: none;
}
.ville > div { position: relative; overflow: hidden; }
.ville img { position: absolute; bottom: 0; width: auto; max-width: none; }
.ville-gauche img { right: 0; height: 100%; }       /* les tours se serrent vers le centre */
.ville-droite img { left: 0; height: 45%; }         /* triplex à l'échelle des tours */
@media (max-width: 600px) {
  .a-ville { --ville-h: clamp(130px, 25vh, 200px); }
  .ville { grid-template-columns: 3fr 2fr; }
  .ville-gauche img { right: auto; left: -40px; }   /* Place Ville Marie, 1000 De La Gauchetière, 1250 René-Lévesque */
}

/* Écran de l'hiver (compteurs.html) : flocons, neige au sol, deux cyclistes du récap BIXI */
.a-neige { --neige-h: clamp(130px, 27vh, 230px); padding-bottom: calc(var(--neige-h) + 16px); }
.flocons { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.flocons i {
  position: absolute; left: var(--x); top: -12px; width: var(--s); height: var(--s);
  border-radius: 50%; background: #fff; opacity: .9; box-shadow: 0 0 4px rgba(255,255,255,.8);
  animation: flocon var(--t) linear var(--d) infinite;
}
@keyframes flocon {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(var(--v), 52vh); }
  100% { transform: translate(0, 106vh); }
}
.neige { position: absolute; left: 0; right: 0; bottom: 0; height: var(--neige-h); z-index: 1; pointer-events: none; overflow: hidden; }
.neige-congere { position: absolute; left: 0; bottom: calc(62% - 2px); width: 100%; height: 26px; display: block; }
.neige-sol {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: linear-gradient(#f4fbff, #dceef8);
}
/* Traces de pneus qui défilent derrière chaque vélo */
.trace {
  position: absolute; left: 0; height: 3px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(90,130,160,.35) 0 22px, rgba(90,130,160,.18) 22px 30px);
  background-size: 30px 3px; animation: trace-file .45s linear infinite;
}
@keyframes trace-file { to { background-position: -30px 0; } }
.t-b { bottom: 37%; width: 36%; }
.t-a { bottom: 5%; width: 50%; }
.rouleur { position: absolute; animation: derive 10s ease-in-out infinite; }
.rouleur .cycliste { position: static; display: block; width: 100%; animation: none; }
.r-b { width: clamp(118px, 19vmin, 200px); left: 30%; bottom: 36%; animation-delay: -5s; }
.r-a { width: clamp(132px, 22vmin, 228px); left: 44%; bottom: 4%; }
/* Poudreuse soulevée par la roue arrière */
.poudre { position: absolute; left: 2%; bottom: 2%; width: 14%; height: 14%; }
.poudre::before, .poudre::after {
  content: ""; position: absolute; bottom: 0; width: 9px; height: 9px; border-radius: 50%; background: #fff;
  animation: poudre .7s ease-out infinite;
}
.poudre::after { width: 6px; height: 6px; animation-delay: -.35s; }
@keyframes poudre {
  0%   { transform: translate(0, 0) scale(1); opacity: .95; }
  100% { transform: translate(-28px, -14px) scale(.3); opacity: 0; }
}
@media (max-width: 600px) { .r-b { left: 8%; } .r-a { left: 32%; } .t-b { width: 12%; } .t-a { width: 36%; } }
@media (prefers-reduced-motion: reduce) {
  .flocons i, .trace, .rouleur, .poudre::before, .poudre::after { animation: none; }
  .flocons i { top: auto; bottom: calc(var(--x) * .6 + 20%); }
}

/* Écran des compteurs les plus achalandés (compteurs.html) : le Vieux-Port, le fleuve et la Biosphère */
.a-port { --port-h: clamp(150px, 30vh, 280px); padding-bottom: calc(var(--port-h) + 16px); }
.port { position: absolute; z-index: 1; left: 0; bottom: 0; width: 100%; height: var(--port-h); pointer-events: none; }
/* Téléphone : on garde la tour de l'Horloge, la grande roue et la Biosphère (x 200 à 960 sur 1200) */
@media (max-width: 600px) {
  .a-port { padding-bottom: calc(31.6vw + 16px); }
  .port { width: 158%; left: -26%; height: 31.6vw; }
}

/* Écran du total (compteurs.html) : piste cyclable pleine de cyclistes et compteur qui enregistre */
.a-compteur { --pc-h: clamp(170px, 32vh, 290px); padding-bottom: calc(var(--pc-h) + 16px); }
.piste-compteur { position: absolute; left: 0; right: 0; bottom: 0; height: var(--pc-h); z-index: 1; pointer-events: none; overflow: hidden; }
.pc-sol {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  background: #1d5c3f;
  border-top: 6px solid #9fd8b4;
  box-shadow: inset 0 3px 0 rgba(255,253,247,.8), inset 0 -3px 0 rgba(255,253,247,.8);
}
.pc-sol::before {                       /* ligne blanche pointillée : deux voies dans le même sens */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px;
  background: repeating-linear-gradient(90deg, var(--blanc) 0 36px, transparent 36px 72px);
}
/* Boucle de détection dans la chaussée, une par voie ; elle s'allume au passage */
.boucle {
  position: absolute; left: 58%; width: clamp(54px, 7vw, 90px); height: 30%;
  border: 3px dashed rgba(255,253,247,.55); border-radius: 8px; transform: translateX(-50%);
  transition: border-color .1s ease, box-shadow .1s ease;
}
.b-haut { top: 12%; }
.b-bas { bottom: 10%; }
.boucle.detecte { border-color: #7cf7b4; box-shadow: 0 0 14px #7cf7b4, inset 0 0 10px rgba(124,247,180,.6); transition: none; }
/* Totem d'affichage, comme les écrans des compteurs de la Ville */
.totem { position: absolute; left: calc(58% + clamp(40px, 5vw, 64px)); bottom: calc(60% - 4px); display: flex; flex-direction: column; align-items: center; }
.totem-ecran {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: clamp(96px, 11vw, 140px); padding: 6px 12px; border-radius: 10px;
  background: #0b1610; border: 3px solid #120d1f; box-shadow: 0 4px 0 rgba(18,13,31,.35);
}
.totem-lib { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9fd8b4; }
.totem-nombre {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(24px, 3.4vw, 38px); line-height: 1;
  color: #7cf7b4; text-shadow: 0 0 10px rgba(124,247,180,.7); font-variant-numeric: tabular-nums;
}
.totem-nombre.tic { animation: totem-tic .25s ease-out; }
@keyframes totem-tic { from { transform: scale(1.18); } to { transform: none; } }
.totem-pied { width: 10px; height: clamp(8px, 2vh, 20px); background: #120d1f; }
/* Cyclistes : placés par js/recap.js ; flot continu de gauche à droite sur les deux voies */
.pc-cycliste { position: absolute; left: 0; width: clamp(78px, 11vmin, 124px); height: auto; overflow: visible; will-change: transform; }
.pc-cycliste.voie-haut { bottom: 34%; width: clamp(70px, 10vmin, 112px); }
.pc-cycliste.voie-bas { bottom: 1%; width: clamp(88px, 12.5vmin, 140px); }
@media (max-width: 600px) {
  .boucle { left: 50%; }
  .totem { left: calc(50% + 34px); }
}
/* Jours de la semaine (écran des journées) : mêmes barres que les mois, plus basses */
.mois.semaine { height: 110px; max-width: 420px; margin-bottom: 30px; }
.e-orange .mois .record i { background: var(--blanc); }
/* Étiquette sous la barre, hors de la colonne : la hauteur de la barre reste proportionnelle
   à sa valeur (sinon les grandes barres sont tassées à la même hauteur) */
.mois { margin-bottom: 30px; }
.mois div { position: relative; }
.mois i { flex-shrink: 0; }
.mois span { position: absolute; top: 100%; margin-top: 6px; }
/* Bouton « Partager le récap » sur l'écran des sources */
.actions-sources { margin-top: 26px; }
.e-sources .partage-retour { margin: 12px 0 0; }
.e-sources .partage-retour:empty { display: none; }
/* Carte de choix pas encore offerte (récap BIXI « À venir ») : grisée, pas cliquable */
.choix .a-venir {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 22px 20px; border-radius: 24px;
  background: #d9d4cc; color: #6f6878;
  border: 3px solid #8f889b; box-shadow: none; cursor: default;
}
.choix .a-venir i {
  align-self: flex-start; padding: 3px 10px; border-radius: 999px;
  background: #8f889b; color: #fffdf7; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
}

/* Carte « Deviens membre » : Deviens membre, puis Partager le récap, puis
   « me soutenir » en simple lien (moins important) */
.actions-membre .bouton { text-align: center; }
.carte-soutenir { margin: 18px 0 0; font-size: 15px; color: rgba(255,253,247,.85); }
.carte-soutenir a { color: var(--lime); font-weight: 700; text-underline-offset: 3px; }
.carte-soutenir a:hover { color: #d8ff5a; }
.carte-soutenir a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
/* Téléphone : carte resserrée pour tenir à l'écran, boutons sur toute la largeur */
@media (max-width: 600px) {
  .e-membre { padding: calc(var(--barre-h) + 8px) 16px 20px; }
  .carte-membre { padding: 22px 20px; border-radius: 24px; }
  .carte-photo { width: 64px; height: 64px; margin-bottom: 14px; }
  .carte-titre { font-size: 24px; margin-bottom: 10px; }
  .carte-texte { font-size: 16px; margin-bottom: 18px; }
  .carte-appel { font-size: 18px; margin-bottom: 12px; }
  .actions-membre { flex-direction: column; align-items: stretch; gap: 10px; }
  .actions-membre .bouton { padding: 13px 20px; }
  .carte-soutenir { margin-top: 14px; }
}

/* Photo et lien Instagram en haut de la carte « Deviens membre » */
.carte-entete { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.carte-entete .carte-photo { margin-bottom: 0; }
.carte-instagram {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 9px; border-radius: 999px;
  border: 1.5px solid rgba(255,253,247,.55); color: var(--blanc);
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.carte-instagram svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.carte-instagram svg .point { fill: currentColor; stroke: none; }
.carte-instagram:hover { background: rgba(255,253,247,.12); }
.carte-instagram:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) {
  .carte-entete { gap: 12px; margin-bottom: 14px; }
  .carte-instagram { font-size: 13px; padding: 6px 12px 6px 8px; }
}

/* Écrans noirs de la fin : un peu moins de marge du bas sur téléphone (le contenu tient mieux) */
@media (max-width: 600px) { .ecran-fin { padding-bottom: 12vh; } }
/* Les écrans noirs sont dans <section class="fin"> (hauteur automatique) : « 100 % » n'y
   vaut rien, on leur donne directement la hauteur de <main> (--h, écrite par recap.js) */
.ecran-fin { height: var(--h, 100svh); }
