/* Direction artistique sportive (brief du 2026-11-08) : chiffres très gros, orange vif, cartes nettes.
   Inspirée des apps de sport sans copier aucune marque. Palette « orange adouci » (2026-11-08) : variables plus bas. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap");

:root {
  --accent: #FF7A45;
  --accent-fonce: #E8633A;
  --accent-texte: #FFFFFF;
  --trace: #FF7A45;
  --trace-fond: rgb(255 122 69 / .20);
  --mini-fond: #FFF4EC;
  --fond: #F7F7FA;
  --carte: #FFFFFF;
  --texte: #242428;
  --doux: #6D6D78;
  --bord: #E6E6EB;
  --debutant: #2F9E44;
  --intermediaire: #E8A100;
  --confirme: #D63A2F;
  --goudron: #8A8A94;
  --piste: #D2A663;
  --sentier: #3F8F55;
  --rayon: 8px;
  --hero: linear-gradient(160deg, #1A1E24, #FF7A45);
  color-scheme: light;
}
/* Thème sombre (par défaut, sauf choix « clair » mémorisé : html[data-theme="light"]) */
:root:not([data-theme="light"]) {
    --accent: #FF7A45;
    --accent-fonce: #E8633A;
    --trace: #FF8556;
    --trace-fond: rgb(255 133 86 / .20);
    --mini-fond: rgb(255 122 69 / .08);
    --fond: #121214;
    --carte: #1E1E22;
    --texte: #F1F1F3;
    --doux: #A3A3AE;
    --bord: #2E2E34;
    color-scheme: dark;
  }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--fond);
  color: var(--texte);
  line-height: 1.45;
}
a { color: var(--accent); }
.page { max-width: 1180px; margin: 0 auto; padding: 24px 16px 48px; }
/* Texte pour lecteurs d'écran seulement. Placé en haut à gauche de son élément (left/top 0) : sans cela, un texte
   caché dans une carte du carrousel mobile se plaçait loin à droite, hors du carrousel, et élargissait la page. */
.visuellement-cache { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 1000; background: var(--carte); box-shadow: 0 1px 0 var(--bord); }
.entete-int { max-width: 1180px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 16px; }
/* Logo texte : « Singles » en Inter 800, point final orange */
.marque { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--texte); letter-spacing: -0.04em; white-space: nowrap; line-height: 1; }
.marque .point { color: var(--accent); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-lien { color: var(--texte); text-decoration: none; font-weight: 600; padding: 8px 6px; }
.nav-lien:hover { color: var(--accent); }
@media (max-width: 640px) {
  .nav-lien { display: none; }
  .marque { font-size: 1.35rem; }
}

/* ---------- Boutons ---------- */
.bouton, .bouton-secondaire, .bouton-blanc {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; border-radius: 6px; padding: 10px 16px; cursor: pointer;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap;
  transition: background-color .12s ease, border-color .12s ease;
}
.bouton { background: var(--accent); color: var(--accent-texte); }
.bouton:hover { background: var(--accent-fonce); }
.bouton-secondaire { background: transparent; color: var(--accent); border-color: var(--bord); }
.bouton-secondaire:hover { border-color: var(--accent); }
.bouton-blanc { background: #fff; color: #242428; }
.bouton-blanc:hover { background: #f1f1f3; }
.bouton-grand { padding: 14px 22px; font-size: 1.02rem; }
.bouton-plein { width: 100%; height: 48px; }
.bouton:disabled { opacity: .45; cursor: not-allowed; }
.lien { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; font-weight: 600; text-decoration: none; padding: 0; }
.lien:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  min-height: max(78vh, 520px); display: flex; align-items: flex-end; color: #fff;
  /* voile sombre plus marqué en bas à gauche, sous le titre */
  background-image: linear-gradient(to top, rgb(0 0 0 / .70) 0%, rgb(0 0 0 / .35) 45%, rgb(0 0 0 / .10) 100%),
    linear-gradient(to right, rgb(0 0 0 / .35), transparent 65%), url("img/hero.jpg"), var(--hero);
  background-size: cover; background-position: center;
}
.hero-int { max-width: 1180px; width: 100%; margin: 0 auto; padding: 48px 16px 56px; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 16px; max-width: 18ch; }
.hero-sous { font-size: clamp(1rem, 1.8vw, 1.2rem); max-width: 56ch; margin: 0 0 24px; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-chiffres { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 36px 0 0; }
.hero-chiffres div { display: flex; flex-direction: column; }
.hero-chiffres dd { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
/* Cartouche « en construction », lisible sur la photo dans les deux modes */
.cartouche {
  display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 0; padding: 8px 14px 8px 12px;
  border-radius: 999px; background: var(--cartouche-fond); color: var(--badge-texte);
  font-weight: 700; font-size: .92rem; box-shadow: 0 4px 16px rgb(0 0 0 / .18);
  font-variant-numeric: tabular-nums;
}
.direct { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--corail); flex: none; }
.direct::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--corail);
  animation: direct 1.8s ease-out infinite;
}
@keyframes direct { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .direct::after { animation: none; display: none; } }
.hero-chiffres dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; opacity: .85; margin-top: 4px; }

/* ---------- Sections de l'accueil ---------- */
.section { margin-top: 48px; }
.titre-section { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.titre-section .aide { font-weight: 400; font-size: .9rem; }
.titre-page { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; }
.benefices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; margin-top: 8px; }
.benefices article { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 0 20px 20px; overflow: hidden; }
.benefice-photo { display: block; width: calc(100% + 40px); margin: 0 -20px 16px; height: 170px; object-fit: cover; }
.benefices h3 { margin: 10px 0 6px; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; }
.benefices p { margin: 0; color: var(--doux); }
.icone { width: 30px; height: 30px; color: var(--accent); }
.alpins { color: var(--doux); margin: 16px 2px 0; font-size: .95rem; }
.centre { text-align: center; margin: 20px 0 0; }
.etapes-bloc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: stretch; }
@media (max-width: 820px) { .etapes-bloc { grid-template-columns: 1fr; } }
.etapes-photo { width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: var(--rayon); }
.etapes-bloc .etapes { grid-template-columns: 1fr; }
.etapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.etapes li { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 18px 20px; font-weight: 600; display: flex; gap: 14px; align-items: flex-start; }
.etapes span { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-texte); display: grid; place-items: center; font-weight: 800; }
.bandeau-email {
  margin-top: 48px; padding: 28px; border-radius: var(--rayon); background: var(--texte); color: var(--fond);
  display: grid; grid-template-columns: 1fr minmax(min(360px, 100%), 1fr); gap: 20px; align-items: center;
}
@media (max-width: 820px) { .bandeau-email { grid-template-columns: 1fr; } }
.bandeau-email h2 { margin: 0 0 6px; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.bandeau-email p { margin: 0; opacity: .8; }
.form-email { display: flex; flex-wrap: wrap; gap: 10px; }
.form-email input { flex: 1 1 200px; min-width: 0; height: 48px; font: inherit; padding: 0 14px; border-radius: 6px; border: 1px solid transparent; background: var(--fond); color: var(--texte); }
.form-email input:focus { outline: none; border-color: var(--accent); }
.form-email .bouton { height: 48px; }
.message-email { flex-basis: 100%; margin: 0; font-size: .9rem; min-height: 1.2em; }

/* ---------- Filtres ---------- */
.filtres {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 14px 22px;
  align-items: start; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 16px;
}
.filtres label { display: flex; flex-direction: column; gap: 6px; font-size: .74rem; color: var(--doux); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.filtres output { color: var(--texte); font-weight: 800; text-transform: none; letter-spacing: 0; font-size: .95rem; font-variant-numeric: tabular-nums; }
.filtres select, .filtres input[type=range] { width: 100%; accent-color: var(--accent); }
.filtres select { font: inherit; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .95rem; padding: 8px; border-radius: 6px; border: 1px solid var(--bord); background: var(--fond); color: var(--texte); }
.niveaux { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.niveaux legend { font-size: .74rem; color: var(--doux); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: 6px; }
.niveaux label { flex-direction: row; align-items: center; color: var(--texte); text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 400; }
.niveaux input { accent-color: var(--accent); }
.compteur { color: var(--doux); margin: 18px 2px 10px; font-size: .9rem; }

/* ---------- Étiquettes ---------- */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 16px; }
.etiquette {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit;
  background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 0 0 16px;
  overflow: hidden; transition: box-shadow .12s ease;
}
.etiquette > :not(.mini-cadre) { margin-left: 16px; margin-right: 16px; }
.etiquette:hover, .etiquette:focus-visible { box-shadow: 0 6px 20px rgb(0 0 0 / .08); outline: none; }
.etiquette:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.etiquette h3 { margin: 0; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; }
.mini-cadre { background: var(--mini-fond); color: var(--trace); }
.mini { display: block; width: 100%; height: 110px; }
.mini .depart { fill: #fff; stroke: var(--trace); stroke-width: 3; }
.puces { display: flex; flex-wrap: wrap; gap: 6px; }
.puce { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; background: var(--fond); color: var(--doux); white-space: nowrap; text-transform: uppercase; letter-spacing: .03em; }
.puce.niveau { color: #fff; }
.puce.debutant { background: var(--debutant); }
.puce.intermediaire { background: var(--intermediaire); }
.puce.confirme { background: var(--confirme); }
.chiffres, .bandeau { display: grid; gap: 8px; margin: 0; }
.chiffres { grid-template-columns: 1fr 1fr 1.5fr; }
.chiffres div, .bandeau div { display: flex; flex-direction: column; min-width: 0; }
.chiffres dt, .bandeau dt { font-size: .68rem; color: var(--doux); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.chiffres dd, .bandeau dd { margin: 0; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chiffres dd { font-size: 1.3rem; }
.chiffres dd.temps { font-size: .98rem; padding-top: 3px; }
dd small { font-size: .7em; color: var(--doux); font-weight: 600; margin-left: 2px; letter-spacing: 0; }
dd.temps small { margin: 0 2px; }
.barre { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--bord); }
.barre span { display: block; height: 100%; }
.goudron { background: var(--goudron); }
.piste { background: var(--piste); }
.sentier { background: var(--sentier); }
.legende-barre { font-size: .72rem; color: var(--doux); display: flex; gap: 4px 8px; flex-wrap: wrap; margin: 2px 0 8px; }
.legende-barre i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.vide { color: var(--doux); padding: 32px 0; }

/* ---------- Fiche ---------- */
.retour { display: inline-block; margin: 0 0 14px; font-weight: 600; text-decoration: none; }
.fiche-tete { margin-bottom: 14px; }
.fiche-tete h1 { margin: 8px 0 0; font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.bandeau {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 16px; margin-bottom: 16px;
}
.bandeau dd { font-size: clamp(1.4rem, 4vw, 2rem); }
.bandeau dd.temps { font-size: clamp(1.1rem, 3vw, 1.5rem); }
.fiche-grille { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.colonne { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 820px) { .fiche-grille { grid-template-columns: 1fr; } }
.bloc { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 16px; }
.bloc h2 { margin: 0 0 10px; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--doux); }
.bloc p { margin: 0 0 8px; }
#carte { height: 440px; border-radius: 6px; }
@media (max-width: 820px) { #carte { height: 320px; } }
.profil { position: relative; height: 210px; }
.telecharger { width: 100%; margin: 8px 0; height: 48px; }
.aide { color: var(--doux); font-size: .86rem; margin: 0; }
.avertissement { background: #FFF4D6; color: #6B4E00; padding: 10px 12px; border-radius: 6px; font-size: .88rem; margin: 0; }

/* ---------- Page de connexion ---------- */
body.page-connexion .entete { display: none; }
.connexion-page { display: grid; grid-template-columns: 55fr 45fr; min-height: 100vh; }
.connexion-photo {
  position: relative; display: flex; align-items: flex-end;
  background-image: url("img/connexion.jpg"), var(--hero); background-size: cover; background-position: center;
}
.connexion-legende {
  margin: 0; width: 100%; padding: 80px 32px 28px; color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em;
  background: linear-gradient(transparent, rgb(0 0 0 / .65));
}
.connexion-legende small { display: block; margin-top: 6px; font-size: .74rem; font-weight: 400; opacity: .85; letter-spacing: 0; }
.connexion-legende a { color: #fff; }
.connexion-cote { background: var(--carte); display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.connexion-form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.connexion-form .marque { margin-bottom: 12px; }
.connexion-form .retour { margin: 0; }
.connexion-form h1 { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.connexion-form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.connexion-form input[type=email], .connexion-form input[type=password] {
  height: 48px; font: inherit; font-weight: 400; padding: 0 14px; border-radius: 6px;
  border: 1px solid var(--bord); background: var(--fond); color: var(--texte);
}
.connexion-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--trace-fond); }
.connexion-form .oubli { align-self: flex-end; font-size: .8rem; font-weight: 400; margin-top: -6px; color: var(--doux); text-decoration: none; opacity: .85; }
.connexion-form .oubli:hover, .connexion-form .oubli:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; opacity: 1; }
.connexion-form label.case { flex-direction: row; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.connexion-form .case input { accent-color: var(--accent); margin-top: 3px; }
.bascule { margin: 6px 0 0; text-align: center; color: var(--doux); font-size: .92rem; }
@media (max-width: 820px) {
  .connexion-page { grid-template-columns: 1fr; min-height: 0; }
  .connexion-photo { min-height: 180px; }
  .connexion-legende { padding: 40px 16px 14px; font-size: 1.05rem; }
  .connexion-cote { padding: 28px 16px 40px; }
}

/* ---------- Météo ---------- */
#suggestions:empty { display: none; }
.suggestions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.suggestion { display: flex; flex-direction: column; gap: 6px; padding: 16px; text-decoration: none; color: inherit;
  background: var(--carte); border: 1px solid var(--bord); border-top: 4px solid var(--accent); border-radius: var(--rayon); }
.suggestion .puce { align-self: flex-start; }
.suggestion strong { font-size: 1.05rem; font-weight: 800; }
.suggestion:hover { box-shadow: 0 6px 20px rgb(0 0 0 / .08); }
.meteo-ligne { font-size: .84rem; }
.vide-sugg { border-top-color: var(--bord); color: var(--doux); }
.vide-sugg p { margin: 0; font-size: .9rem; }
.champ-date { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--doux); margin-bottom: 10px; }
.champ-date input { font: inherit; color: var(--texte); background: var(--fond); border: 1px solid var(--bord); border-radius: 6px; padding: 8px; }
.verdict { padding: 8px 10px; border-radius: 6px; font-size: .88rem; margin: 0 0 10px; }
.verdict.bon { background: rgb(47 158 68 / .14); }
.verdict.moyen { background: rgb(232 161 0 / .18); }
.verdict.deconseille { background: rgb(214 58 47 / .16); }
.tableau-meteo { width: 100%; border-collapse: collapse; font-size: .82rem; margin-bottom: 8px; }
.tableau-meteo th, .tableau-meteo td { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--bord); vertical-align: top; }
.tableau-meteo thead th { color: var(--doux); font-weight: 600; }
.tableau-meteo tbody th { text-align: left; font-weight: 700; }
.tableau-meteo th span, .tableau-meteo td span { display: block; color: var(--doux); font-weight: 400; font-size: .74rem; }
.tableau-meteo .ico { font-size: 1.1rem; color: inherit; }
.tableau-meteo b { font-size: .95rem; }
.source { margin-top: 4px; font-size: .76rem; }

/* ---------- Pied de page ---------- */
.pied { max-width: 1180px; margin: 0 auto; padding: 24px 16px 40px; color: var(--doux); font-size: .82rem; }
.pied-marque { display: block; margin-top: 8px; font-weight: 700; color: var(--texte); }

/* ---------- Crédits photos ---------- */
.credits { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.credits li { display: flex; gap: 14px; align-items: center; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 10px; font-size: .9rem; }
.credits img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; flex: none; }
@media (max-width: 520px) { .credits li { flex-direction: column; align-items: flex-start; } .credits img { width: 100%; height: 140px; } }

/* ---------- Pain « Pourquoi Singles » ---------- */
.pain {
  margin-top: 48px; padding: clamp(28px, 5vw, 56px); border-radius: var(--rayon); color: #F1F1F3;
  background: radial-gradient(120% 90% at 100% 0%, rgb(255 122 69 / .18), transparent 55%), var(--ardoise);
  border: 1px solid #2E2E34;
}
.pain-sur { margin: 0 0 14px; color: var(--rose); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.pain-accroche { margin: 0 0 36px; max-width: 26ch; font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.pain-accroche span { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pain-raisons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 980px) { .pain-raisons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pain-raisons { grid-template-columns: 1fr; gap: 22px; } }
.pain-raisons li { border-top: 2px solid transparent; border-image: var(--degrade) 1; padding-top: 14px; }
.pain-num { display: block; width: fit-content; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.pain-raisons h3 { margin: 10px 0 6px; font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; }
.pain-raisons p { margin: 0; color: #B9B9C4; font-size: .95rem; }

/* =====================================================================
   Refonte de l'accueil (2026-11-08) : bandes pleine largeur clair / sombre,
   cartes de parcours homogènes, micro-animations sobres.
   ===================================================================== */
:root { --accent-texte: #1B1B1F; }   /* texte sombre sur orange : contraste suffisant (AA) */

/* Boutons */
.bouton { color: var(--accent-texte); transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.bouton:hover { box-shadow: 0 6px 18px rgb(255 122 69 / .30); }
.bouton:active { transform: translateY(1px); }
.bouton:focus-visible, .bouton-secondaire:focus-visible, .bouton-blanc:focus-visible, .lien:focus-visible, .nav-lien:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
.bouton-grand { min-height: 48px; padding: 14px 26px; }

/* Hero */
.hero { min-height: max(84vh, 560px); }
.hero-int { padding-bottom: 64px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); max-width: 640px; letter-spacing: -0.035em; margin-bottom: 18px; }
.hero-sous { max-width: 560px; font-size: clamp(1.02rem, 1.6vw, 1.2rem); margin-bottom: 26px; }
.hero-accroche { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-weight: 700; font-size: 1.05rem; }
.hero-accroche::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--degrade); flex: none; }
.hero-mini { margin: 12px 0 0; font-size: .86rem; opacity: .85; letter-spacing: .01em; }
.hero-chiffres { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .22); max-width: 760px; }

/* Bandes */
.bande { padding: clamp(56px, 8vw, 104px) 0; }
.bande-int { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .bande-int { padding: 0 16px; } }
.bande-claire { background: var(--fond); }
.bande-surface { background: var(--carte); border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); }
.bande-sombre {
  color: #F1F1F3;
  background: radial-gradient(90% 120% at 100% 0%, rgb(255 122 69 / .16), transparent 55%), var(--ardoise);
}
/* Thème sombre (par défaut, sauf choix « clair » mémorisé : html[data-theme="light"]) */
:root:not([data-theme="light"]) .bande-sombre { background: radial-gradient(90% 120% at 100% 0%, rgb(255 122 69 / .14), transparent 55%), var(--ardoise-2); }
.bande .benefices, .bande .section { margin-top: 0; }
.titre-section { font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -0.025em; margin-bottom: 24px; }
.alpins { margin-top: 24px; }

/* Pain et email : dans une bande sombre pleine largeur, sans cadre */
.bande-sombre .pain { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.bande-sombre .bandeau-email { margin: 0; padding: 0; background: none; color: #F1F1F3; }
.bande-sombre .bandeau-email h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.bande-sombre .form-email input { background: #F7F7FA; color: #242428; border-color: transparent; }

/* Suite du run du jour */
.suite-run { display: flex; margin-top: 44px; }
@media (max-width: 640px) { .suite-run { margin-top: 28px; } }

/* Comment ça marche, sur fond surface */
.bande-surface .etapes li { background: var(--fond); }

/* Cartes de parcours homogènes */
.grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .grille-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grille-3 { grid-template-columns: 1fr; } }
.etiquette { transition: transform .18s ease, box-shadow .18s ease; }
.etiquette:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgb(0 0 0 / .10); }
.mini { height: auto; aspect-ratio: 16 / 10; }
.etiquette h3 {
  font-size: 1.125rem; line-height: 1.3; min-height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.chiffres dd { font-size: 1.45rem; }
.etiquette .meteo-ligne { margin: 0 16px; padding-top: 12px; border-top: 1px solid var(--bord); font-size: .84rem; color: var(--doux); }
.suggestion.vide-sugg {
  display: flex; flex-direction: column; gap: 10px; justify-content: center; min-height: 200px; padding: 20px;
  background: var(--carte); border: 1px dashed var(--bord); border-radius: var(--rayon);
}

/* Apparitions au défilement */
.apparition { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.apparition.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .apparition { opacity: 1; transform: none; transition: none; }
  .etiquette, .bouton { transition: none; }
  .etiquette:hover, .bouton:active { transform: none; }
}

/* ---------- Catalogue (2026-11-08) ---------- */
.filtres select, .filtres input[type=range] { min-height: 44px; }
.resultats-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 18px 2px 12px; }
.resultats-tete .compteur { margin: 0; font-weight: 700; color: var(--texte); }
.vide { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

/* ---------- Fiche parcours (2026-11-08) ---------- */
.fiche-lieu { margin: 6px 0 0; color: var(--doux); font-weight: 600; }
.temps-aide { margin: -6px 2px 16px; }
.carte-bloc { position: relative; padding: 0; overflow: hidden; margin-bottom: 16px; }
.carte-bloc #carte { height: 480px; border-radius: 0; }
@media (max-width: 820px) { .carte-bloc #carte { height: 320px; } }
.recentrer { position: absolute; z-index: 500; right: 12px; bottom: 28px; min-height: 44px; background: var(--carte); }
.carte-bloc + .bloc { margin-bottom: 16px; }
.terrain-resume { font-size: 1rem; }
.itineraires { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.itineraires a { min-height: 44px; font-size: .9rem; }
.proches { margin-top: 48px; }

/* =====================================================================
   Accueil : hero, étapes et cartes (2026-11-08)
   ===================================================================== */
/* Hero : titre très gros, un seul bouton fort, chiffres discrets sur une ligne */
.hero { min-height: max(88vh, 600px); align-items: center; }
.hero-int { padding-top: 96px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(2.6rem, 7.2vw, 5.6rem); max-width: 14ch; line-height: .98; letter-spacing: -0.045em; margin-bottom: 24px; }
.hero-sous { max-width: 540px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); opacity: .9; margin-bottom: 32px; }
.hero-accroche { margin-bottom: 18px; }
.hero-actions .bouton-grand { min-height: 56px; padding: 16px 34px; font-size: 1.1rem; box-shadow: 0 10px 30px rgb(255 122 69 / .35); }
.hero-mini { margin-top: 14px; }
.hero-chiffres {
  display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 56px; padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / .18); max-width: 720px;
}
.hero-chiffres div { flex-direction: row; align-items: baseline; gap: 6px; }
.hero-chiffres dd { font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.01em; }
.hero-chiffres dt { margin: 0; font-size: .74rem; letter-spacing: .06em; opacity: .75; }
.cartouche { margin-top: 14px; padding: 5px 11px 5px 9px; gap: 8px; font-size: .78rem; box-shadow: none; }
.cartouche .direct { width: 7px; height: 7px; }
@media (max-width: 640px) {
  .hero-int { padding-top: 64px; padding-bottom: 48px; }
  .hero-chiffres { gap: 4px 16px; margin-top: 40px; }
  .hero-actions .bouton-grand { width: 100%; }
}

/* Une seule section de 3 étapes illustrées */
.sur-titre { margin: 0 0 8px; color: var(--accent); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.etapes-cartes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .etapes-cartes { grid-template-columns: 1fr; } }
.etapes-cartes li { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; }
.etapes-cartes img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.etape-texte { position: relative; padding: 28px 22px 22px; }
.etape-num {
  position: absolute; top: -26px; left: 20px; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-texte);
  font-size: 1.5rem; font-weight: 800; box-shadow: 0 0 0 4px var(--carte);
}
.etape-texte h3 { margin: 8px 0 6px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.015em; }
.etape-texte p { margin: 0 0 10px; }
.etape-plus { color: var(--doux); font-size: .92rem; }
.etape-plus strong { color: var(--texte); }

/* Bande email sur photo */
.bande-photo {
  background: linear-gradient(rgb(10 10 12 / .78), rgb(10 10 12 / .86)), url("img/meteo.jpg") center / cover, #121214;
}

/* Cartes de parcours : tracé orange sur fond Plan IGN atténué */
.mini-cadre { position: relative; overflow: hidden; background: var(--mini-fond); }
.mini-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) contrast(.9) brightness(1.05); opacity: .55; }
.mini-cadre .mini { position: relative; }
/* Thème sombre (par défaut, sauf choix « clair » mémorisé : html[data-theme="light"]) */
:root:not([data-theme="light"]) .mini-fond { filter: grayscale(.4) brightness(.45) contrast(1.1); opacity: .9; }

/* =====================================================================
   Palette « orange adouci » (2026-11-08) : l'orange vif disparaît.
   - Corail #FF7A45 : seulement les boutons et les éléments actifs (avec texte sombre, contraste 6,6:1).
   - Dégradé corail → rose (#FF7A45 → #FF9A8B) : grands numéros et titres d'accent.
   - Ardoise #111418 / #1A1E24 : fonds sombres.
   - Nuances claires du corail : badges, survols. Liens sur fond clair en corail foncé #B8471F (5:1, AA).
   ===================================================================== */
:root {
  --corail: #FF7A45;
  --corail-fonce: #E8633A;
  --rose: #FF9A8B;
  --degrade: linear-gradient(100deg, #FF7A45 0%, #FF9A8B 100%);
  --corail-clair: #FFE8DF;
  --corail-pale: #FFF3EE;
  --lien: #B8471F;
  --badge-texte: #A33D18;
  --cartouche-fond: rgb(255 241 234 / .95);
  --ardoise: #111418;
  --ardoise-2: #1A1E24;

  --accent: var(--corail);
  --accent-fonce: var(--corail-fonce);
  --accent-texte: #1B1B1F;
  --trace: #FF7A45;
  --trace-fond: rgb(255 122 69 / .20);
  --mini-fond: var(--corail-pale);
  --debutant: #217A33;
  --intermediaire: #F2B33D;
  --confirme: #C92A2A;
  --hero: linear-gradient(160deg, #1A1E24, #FF7A45);
}
/* Thème sombre (par défaut, sauf choix « clair » mémorisé : html[data-theme="light"]) */
:root:not([data-theme="light"]) {
    --fond: #111418;
    --carte: #1A1E24;
    --bord: #2A3039;
    --texte: #E9ECEF;
    --doux: #9AA3AE;
    --lien: #FF9A7A;
    --badge-texte: #FFB39A;
    --corail-clair: rgb(255 122 69 / .16);
    --mini-fond: rgb(255 122 69 / .08);
    --accent: var(--corail);
    --accent-fonce: var(--corail-fonce);
    --trace: #FF8556;
    --trace-fond: rgb(255 133 86 / .20);
  }

/* Texte d'accent : liens et petits titres en corail lisible (AA) */
a { color: var(--lien); }
.lien, .retour, .nav-lien:hover { color: var(--lien); }
.bouton-secondaire { color: var(--lien); }
.bouton-secondaire:hover { background: var(--corail-clair); border-color: var(--corail); }
.sur-titre { color: var(--lien); }
.bouton:focus-visible, .bouton-secondaire:focus-visible, .bouton-blanc:focus-visible, .lien:focus-visible,
.nav-lien:focus-visible, .etiquette:focus-visible, a:focus-visible { outline: 3px solid var(--lien); outline-offset: 3px; }
.filtres input[type=range], .filtres input[type=checkbox], .niveaux input, .connexion-form .case input { accent-color: var(--corail-fonce); }

/* Logo : point en dégradé corail → rose */
.marque .point { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Badges : niveaux lisibles, autres badges en corail clair */
.puce { background: var(--corail-clair); color: var(--badge-texte); }
.puce.niveau { color: #fff; }
.puce.intermediaire { color: #1B1B1F; }

/* Survols et cartes */
.etiquette:hover { border-color: var(--corail-clair); box-shadow: 0 10px 28px rgb(255 122 69 / .14); }
.mini-cadre { color: var(--trace); }

/* Numéros d'étapes en dégradé */
.etape-num { background: var(--degrade); color: #1B1B1F; }
.etapes span { background: var(--degrade); color: #1B1B1F; }

/* Fonds sombres en ardoise (aussi en mode clair pour les bandes sombres) */
.pain { border-color: var(--ardoise-2); }
.bande-photo { background: linear-gradient(rgb(17 20 24 / .80), rgb(17 20 24 / .88)), url("img/meteo.jpg") center / cover, var(--ardoise); }
/* Thème sombre (par défaut, sauf choix « clair » mémorisé : html[data-theme="light"]) */
:root:not([data-theme="light"]) .entete { background: var(--ardoise-2); }
:root:not([data-theme="light"]) .bande-photo { background: linear-gradient(rgb(26 30 36 / .82), rgb(26 30 36 / .9)), url("img/meteo.jpg") center / cover, var(--ardoise-2); }

/* Cartouche unique du hero, discrète */
.cartouche { margin-top: 28px; }
/* La cartouche est posée sur la photo du hero : mêmes couleurs en clair et en sombre (5,9:1) */
.cartouche { background: rgb(255 241 234 / .95); color: #A33D18; }

/* Hero (2026-11-08) : H1 = « Sortez de vos habitudes… », sous-titre court, vignette « X parcours accessibles » */
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 17ch; line-height: 1.02; }
.hero-sous { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; max-width: 32ch; opacity: .95; margin-bottom: 30px; }
.vignette { margin-top: 26px; }
.point-vignette { width: 8px; height: 8px; border-radius: 50%; background: var(--degrade); flex: none; }

/* Bandeau photo de la connexion : chiffres en parcours, sans légende de crédit (crédits en pied de page) */
.connexion-chiffres {
  margin: 0; width: 100%; padding: 96px 32px 32px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px;
  background: linear-gradient(transparent, rgb(17 20 24 / .78));
}
.connexion-chiffres div { display: flex; flex-direction: column; }
.connexion-chiffres dd {
  margin: 0; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; width: fit-content;
  background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.connexion-chiffres dt { margin-top: 6px; color: #fff; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
@media (max-width: 820px) {
  .connexion-chiffres { padding: 48px 16px 16px; gap: 12px 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .connexion-chiffres dd { font-size: 1.35rem; }
  .connexion-chiffres dt { font-size: .62rem; letter-spacing: .04em; }
}

/* =====================================================================
   Accueil : nouvelle structure (2026-11-08)
   1 hero · 2 pain · 3 run du jour · 4 bénéfice chiffré · 5 accès parcours · 6 témoignages · 7 newsletter
   ===================================================================== */
/* 1. Hero : H1 sur 2 larges lignes à 1280 px, dessous du bouton resserré, vignette plus visible */
.hero {
  min-height: max(80vh, 560px);
  background-image:
    linear-gradient(to bottom, transparent 58%, rgb(17 20 24 / .55) 80%, #111418 100%),
    linear-gradient(to right, rgb(0 0 0 / .45), transparent 70%),
    url("img/hero.jpg"), var(--hero);
}
.hero-int { padding-top: 88px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(2.3rem, 4.5vw, 3.75rem); max-width: 1000px; line-height: 1.04; margin-bottom: 18px; }
.hero-sous { margin-bottom: 28px; }
.hero-mini { margin: 12px 0 0; font-size: .92rem; opacity: .9; }
.vignette {
  margin-top: 20px; padding: 10px 18px 10px 14px; gap: 10px;
  font-size: 1rem; font-weight: 800; letter-spacing: -0.005em;
  box-shadow: 0 8px 24px rgb(0 0 0 / .25);
}
.point-vignette { width: 10px; height: 10px; }

/* 2. Pain : prolonge le dégradé du hero sur le même fond ardoise */
.bande-pain { background: #111418; color: #F1F1F3; padding-top: clamp(40px, 6vw, 72px); }
.bande-pain .pain { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }

/* 3. Run du jour : séparé du pain par son propre fond */
/* Thème sombre (par défaut, sauf choix « clair » mémorisé : html[data-theme="light"]) */
:root:not([data-theme="light"]) .bande-run { background: var(--ardoise-2); }

/* 4. Bénéfice chiffré */
.benefice .titre-section { max-width: 22ch; }
.benefice-chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 8px 0 14px; }
@media (max-width: 900px) { .benefice-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.benefice-chiffres div { display: flex; flex-direction: column; padding: 22px 20px; border-radius: var(--rayon); background: var(--fond); border: 1px solid var(--bord); }
.benefice-chiffres dd {
  margin: 0; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; line-height: 1; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums; width: fit-content;
  background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.benefice-chiffres dt { margin-top: 8px; color: var(--doux); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* 5. Accès aux parcours : grand bloc */
.cta-parcours {
  text-align: center; padding: clamp(40px, 7vw, 80px) 24px; border-radius: 16px;
  background: var(--degrade); color: #1B1B1F;
}
.cta-parcours h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.035em; }
.cta-parcours p { margin: 0 auto 28px; max-width: 46ch; font-size: 1.05rem; color: #2A1A14; }
.cta-parcours .bouton { background: #111418; color: #FFFFFF; min-height: 56px; padding: 16px 34px; font-size: 1.1rem; }
.cta-parcours .bouton:hover { background: #1A1E24; box-shadow: 0 10px 28px rgb(17 20 24 / .3); }
.cta-parcours .bouton:focus-visible { outline-color: #111418; }

/* 6. Témoignages (affichés seulement s'il y en a) */
.temoignages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.temoignage { margin: 0; padding: 24px; background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon); }
.temoignage blockquote { margin: 0 0 14px; font-size: 1.05rem; line-height: 1.55; }
.temoignage figcaption { color: var(--doux); font-size: .9rem; }

/* 7. Newsletter « Restez informés » : centrée, aérée */
.bande-newsletter {
  padding: clamp(72px, 10vw, 128px) 0; color: #F1F1F3;
  background: linear-gradient(rgb(17 20 24 / .78), rgb(17 20 24 / .9)), url("img/meteo.jpg") center / cover, #111418;
}
.newsletter { max-width: 620px; margin: 0 auto; text-align: center; }
.newsletter h2 { margin: 0 0 12px; font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -0.035em; }
.newsletter > p { margin: 0 auto 32px; max-width: 44ch; font-size: 1.05rem; opacity: .85; }
.newsletter .form-email { justify-content: center; gap: 12px; }
.newsletter .form-email input { flex: 1 1 260px; height: 54px; border-radius: 10px; background: #F7F7FA; color: #242428; padding: 0 18px; }
.newsletter .form-email .bouton { height: 54px; border-radius: 10px; padding: 0 26px; }
.newsletter .message-email { text-align: center; }

/* Pied de page élégant et aéré */
.pied { max-width: none; padding: 0; background: var(--carte); border-top: 1px solid var(--bord); color: var(--doux); font-size: .88rem; }
.pied-int { max-width: 1200px; margin: 0 auto; padding: 56px 24px 32px; }
@media (max-width: 640px) { .pied-int { padding: 40px 16px 28px; } }
.pied-haut { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding-bottom: 28px; border-bottom: 1px solid var(--bord); }
.pied-marque-bloc .marque { font-size: 1.5rem; }
.pied-marque-bloc p { margin: 8px 0 0; color: var(--doux); }
.pied-liens { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.pied-liens a { color: var(--texte); font-weight: 600; text-decoration: none; }
.pied-liens a:hover { color: var(--lien); }
.pied-mentions { margin: 24px 0 0; max-width: 90ch; line-height: 1.6; }
.pied-bas { margin: 16px 0 0; font-weight: 700; color: var(--texte); }

/* Témoignages : mot du fondateur (grande citation, photo ronde ou initiale) */
.temoignages { grid-template-columns: 1fr; }
.temoignage figcaption { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.temoignage-qui { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: var(--texte); }
.temoignage-qui strong { font-size: 1.05rem; }
.avatar {
  position: relative; flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  background: var(--degrade); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--corail-clair);
}
.avatar-initiale { font-size: 2rem; font-weight: 800; color: #1B1B1F; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.temoignage-fondateur {
  display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 32px 48px; align-items: start;
  padding: clamp(28px, 5vw, 56px); border-radius: 16px; background: var(--fond);
}
.temoignage-fondateur figcaption { flex-direction: column; align-items: flex-start; margin: 0; }
.temoignage-fondateur .avatar { width: 128px; height: 128px; }
.temoignage-fondateur .avatar-initiale { font-size: 3.4rem; }
.temoignage-fondateur blockquote {
  margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.55; font-weight: 500; letter-spacing: -0.005em;
  position: relative; padding-left: 0;
}
.temoignage-fondateur blockquote::before {
  content: "“"; display: block; height: .55em; margin-bottom: 8px; font-size: 4.5rem; line-height: 1; font-weight: 800;
  background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.puce-fondateur { background: var(--degrade); color: #1B1B1F; }
@media (max-width: 820px) {
  .temoignage-fondateur { grid-template-columns: 1fr; gap: 20px; }
  .temoignage-fondateur figcaption { flex-direction: row; align-items: center; }
  .temoignage-fondateur .avatar { width: 88px; height: 88px; }
  .temoignage-fondateur .avatar-initiale { font-size: 2.4rem; }
}

/* Témoignages : écran partagé, comme la page de connexion (photo à gauche, citation à droite) */
.bande-temoignages { background: var(--carte); border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); }
.temoignage-ecran { display: grid; grid-template-columns: 55fr 45fr; min-height: 640px; }
.temoignage-photo { position: relative; background: var(--hero); min-height: 100%; overflow: hidden; }
.temoignage-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bande-temoignages.sans-photo .temoignage-ecran { grid-template-columns: 1fr; }
.bande-temoignages.sans-photo .temoignage-photo { display: none; }
.temoignage-cote { display: flex; align-items: center; padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px); }
.temoignage-contenu { max-width: 520px; }
.temoignage-contenu .titre-section { margin-bottom: 20px; }
.temoignage-citation { margin: 0; }
.temoignage-citation blockquote {
  margin: 0 0 24px; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.6; font-weight: 500; letter-spacing: -0.005em;
}
.temoignage-citation blockquote::before {
  content: "“"; display: block; height: .5em; margin-bottom: 10px; font-size: 4.5rem; line-height: 1; font-weight: 800;
  background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.temoignage-citation figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; border-top: 2px solid transparent; border-image: var(--degrade) 1; }
.temoignage-citation figcaption strong { font-size: 1.05rem; }
.temoignage-citation figcaption span { color: var(--doux); font-size: .92rem; }
.temoignage-citation.secondaire { margin-top: 40px; }
.temoignage-citation.secondaire blockquote { font-size: 1.05rem; }
@media (max-width: 820px) {
  .temoignage-ecran { grid-template-columns: 1fr; min-height: 0; }
  .temoignage-photo { height: 380px; min-height: 0; }
  .temoignage-cote { padding: 32px 16px 48px; }
}

/* =====================================================================
   Rythme vertical de l'accueil (2026-11-08) : un seul espacement de section,
   96 px sur ordinateur, 64 px sur mobile (clamp entre les deux).
   ===================================================================== */
:root { --espace-section: clamp(64px, 7.5vw, 96px); }
.bande { padding: var(--espace-section) 0; }
.bande-pain { padding: calc(var(--espace-section) * .75) 0 var(--espace-section); } /* le haut prolonge le dégradé du hero */
.bande-newsletter { padding: var(--espace-section) 0; }

/* Témoignages : bloc centré avec marges, photo arrondie qui ne touche aucun bord */
.bande-temoignages { padding: var(--espace-section) 0; background: var(--carte); }
.temoignage-ecran {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  grid-template-columns: 55fr 45fr; gap: clamp(32px, 4vw, 56px); min-height: 0; align-items: stretch;
}
.temoignage-photo { min-height: 560px; border-radius: 16px; box-shadow: 0 16px 40px rgb(0 0 0 / .14); }
.temoignage-photo img { border-radius: 16px; }
.temoignage-cote { padding: 24px 0; }
@media (max-width: 820px) {
  .temoignage-ecran { grid-template-columns: 1fr; padding: 0 16px; gap: 28px; }
  .temoignage-photo { height: 360px; min-height: 0; border-radius: 12px; }
  .temoignage-photo img { border-radius: 12px; }
  .temoignage-cote { padding: 0; }
}

/* =====================================================================
   Section « Chaque jour, plus de parcours » : chiffres animés (2026-11-08)
   ===================================================================== */
.benefice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
@media (max-width: 980px) { .benefice { grid-template-columns: 1fr; } }
.benefice .titre-section { max-width: 18ch; margin-top: 10px; }
.benefice-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 20px; }
.benefice-chiffres dd { font-variant-numeric: tabular-nums; min-width: 4ch; }

/* Indicateur de production */
.direct-prod {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--corail-clair); color: var(--badge-texte); font-size: .82rem; line-height: 1.35;
}
.direct-prod strong { font-weight: 800; }

/* Frise des 7 derniers jours */
.frise { margin: 4px 0 14px; padding: 16px 18px; border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--fond); }
.frise-titre { margin: 0 0 10px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); }
.frise ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 96px; align-items: end; }
.frise li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.frise-barre { width: 100%; max-width: 28px; height: var(--h); min-height: 4px; border-radius: 4px 4px 2px 2px; background: var(--degrade); }
.frise-nb { font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--texte); min-height: 1em; }
.frise-jour { font-size: .7rem; color: var(--doux); text-transform: capitalize; }

/* Carte stylisée sombre avec les tracés qui se dessinent */
.benefice-carte {
  position: relative; min-height: 420px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 40%, #1F252D, #111418 70%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06), 0 16px 40px rgb(0 0 0 / .14);
}
.benefice-carte svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.benefice-carte .grille { fill: none; stroke: rgb(255 255 255 / .05); stroke-width: 1; }
.benefice-carte .niveau { fill: none; stroke: rgb(255 255 255 / .07); stroke-width: 1.2; }
.trace-anime {
  fill: none; stroke: #FF7A45; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .95;
  filter: drop-shadow(0 0 4px rgb(255 122 69 / .55));
  animation-name: trace-dessin; animation-timing-function: ease-in-out; animation-iteration-count: infinite;
}
@keyframes trace-dessin {
  0% { stroke-dashoffset: 1; opacity: .95; }
  18% { stroke-dashoffset: 0; opacity: .95; }
  85% { stroke-dashoffset: 0; opacity: .55; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@media (max-width: 980px) { .benefice-carte { min-height: 320px; } }
@media (prefers-reduced-motion: reduce) {
  .trace-anime { animation: none; stroke-dashoffset: 0; opacity: .85; }
}

.benefice-carte .trace-fond { fill: none; stroke: rgb(255 122 69 / .28); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
@media (prefers-reduced-motion: reduce) { .benefice-carte .trace-fond { stroke: rgb(255 122 69 / .75); } }

.frise-barre.vide { background: var(--bord); }  /* jour sans création */

/* =====================================================================
   Menus déroulants (2026-11-08) : flèche SVG à 16 px du bord, texte jamais sous la flèche.
   Même rendu en clair et en sombre (la couleur de la flèche suit le thème).
   Les !important passent devant les anciens raccourcis « background: » des filtres.
   ===================================================================== */
:root { --fleche-select: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236D6D78' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* Thème sombre (par défaut, sauf choix « clair » mémorisé : html[data-theme="light"]) */
:root:not([data-theme="light"]) { --fleche-select: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23C2C9D1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 44px !important;
  background-image: var(--fleche-select) !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 12px 8px !important;
  text-overflow: ellipsis; cursor: pointer;
}
select:focus-visible { outline: 3px solid var(--lien); outline-offset: 2px; }
select::-ms-expand { display: none; }

/* Titres : lignes équilibrées (complète les espaces insécables après les petits mots) */
h2, h3, .hero-sous, .pain-accroche { text-wrap: balance; }

/* Raisons 01 à 04 : chaque raison occupe 4 rangées partagées (trait, numéro, titre, texte),
   donc les titres et les textes démarrent sur la même ligne dans toutes les colonnes. */
.pain-raisons { grid-template-rows: auto; row-gap: 0; }
.pain-raisons li { display: grid; grid-template-rows: subgrid; grid-row: span 3; align-content: start; }
.pain-raisons h3 { align-self: start; margin: 10px 0 6px; }
.pain-raisons p { align-self: start; }
@supports not (grid-template-rows: subgrid) {
  .pain-raisons li { display: block; }
  .pain-raisons h3 { min-height: 2.6em; }
}
@media (max-width: 980px) { .pain-raisons { row-gap: 28px; } }
@media (max-width: 640px) {
  .pain-raisons li { display: block; }
  .pain-raisons h3 { min-height: 0; }
}

/* Derniers parcours : phrase d'introduction plus visible, marge avant les cartes */
.derniers-intro { margin: 0 0 28px; font-size: 1.125rem; line-height: 1.5; color: var(--texte); }
.derniers-intro strong { color: var(--lien); font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .derniers-intro { margin-bottom: 24px; } }

/* Titre bénéfice : « Chaque jour, plus de parcours » / « sur la plateforme » sur ordinateur.
   Pas de largeur max (le bloc du titre prend toute la colonne), coupure naturelle sans balance. */
.benefice .titre-section { max-width: none; text-wrap: wrap; }

/* Fiche : météo en pleine largeur, même style que « Sentier et route » */
.meteo-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.meteo-tete h2 { margin: 0; }
.meteo .champ-date { flex-direction: row; align-items: center; gap: 8px; margin: 0; }
.meteo .champ-date input { min-height: 40px; }
.meteo-resume { margin: 0 0 12px; font-size: 1.05rem; line-height: 1.5; }
.meteo-resume b { font-weight: 800; font-variant-numeric: tabular-nums; }
.verdict-mot.bon { color: var(--debutant); }
.verdict-mot.moyen { color: #9A6700; }
.verdict-mot.deconseille { color: var(--confirme); }
/* Thème sombre (par défaut, sauf choix « clair » mémorisé : html[data-theme="light"]) */
:root:not([data-theme="light"]) .verdict-mot.bon { color: #6FD38A; }
:root:not([data-theme="light"]) .verdict-mot.moyen { color: #F2B33D; }
:root:not([data-theme="light"]) .verdict-mot.deconseille { color: #FF8A80; }
.tableau-defile { overflow-x: auto; }
.meteo .tableau-meteo { min-width: 420px; }
.meteo .source { margin-top: 10px; }
@media (max-width: 640px) {
  .meteo .h-sup { display: none; }
  .meteo .tableau-meteo { min-width: 0; }
}

/* Hero : sous-titre en deux lignes sur ordinateur (« … parcours de » / « trail des Hautes-Alpes. ») */
.hero-sous { max-width: none; }
@media (min-width: 641px) { .hero-sous .ligne { display: block; } }

/* =====================================================================
   Bloc « Trouvez votre prochaine boucle » : écran partagé sombre avec vidéo verticale (2026-11-08)
   ===================================================================== */
.cta-parcours {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 72px); align-items: center;
  text-align: left; padding: clamp(32px, 5vw, 64px); border-radius: 20px;
  background: radial-gradient(80% 90% at 85% 50%, rgb(255 122 69 / .14), transparent 60%), #111418;
  border: 1px solid #2A3039; color: #F1F1F3;
}
.cta-parcours .sur-titre { color: #FF9A7A; }
.cta-parcours h2 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.035em; color: #FFFFFF; line-height: 1.05; }
.cta-parcours .cta-texte > p:not(.sur-titre):not(.cta-compteur) { margin: 0 0 28px; max-width: 40ch; font-size: 1.08rem; color: #C2C9D1; }
.cta-parcours .bouton { background: var(--corail); color: #1B1B1F; min-height: 56px; padding: 16px 32px; font-size: 1.08rem; }
.cta-parcours .bouton:hover { background: var(--corail-fonce); box-shadow: 0 10px 28px rgb(255 122 69 / .35); }
.cta-parcours .bouton:focus-visible { outline-color: #FF9A7A; }
.cta-compteur { margin: 18px 0 0; color: #9AA3AE; font-size: .95rem; }
.cta-compteur strong { color: #FF9A7A; font-weight: 800; font-variant-numeric: tabular-nums; }
.cta-video { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cta-cadre {
  width: clamp(220px, 22vw, 300px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #1A1E24;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 0 48px rgb(255 122 69 / .28), 0 24px 48px rgb(0 0 0 / .45);
}
.cta-cadre video { display: block; width: 100%; height: 100%; object-fit: cover; }
.cta-video figcaption { font-size: .74rem; color: #9AA3AE; }
@media (max-width: 760px) {
  .cta-parcours { grid-template-columns: 1fr; text-align: left; }
  .cta-cadre { width: min(100%, 260px); }
}
/* Annule les anciens réglages du bloc (texte centré, couleur sombre sur aplat orange) */
.cta-parcours .cta-texte p { margin-left: 0; margin-right: 0; text-align: left; }
.cta-parcours .sur-titre { margin: 0 0 12px; }
.cta-parcours .cta-compteur { margin: 18px 0 0; color: #9AA3AE; max-width: none; font-size: .95rem; }
.cta-cadre { background: #1A1E24 url("videos/cta-poster.jpg") center / cover no-repeat; }

/* =====================================================================
   Bloc vidéo enrichi (2026-11-08) : « Chaussez vos [marque] », puces filtres, mini-chiffres
   ===================================================================== */
.chaussez { margin: 0 0 16px; font-size: 1.05rem; font-weight: 700; color: #C2C9D1; display: flex; align-items: center; }
.chaussez > span[aria-hidden] { display: inline-flex; align-items: center; gap: 10px; }
.pastille-marque {
  display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px; box-sizing: border-box;
  border-radius: 999px; background: #FFFFFF; color: #111418; font-weight: 800; letter-spacing: -0.01em;
  overflow: hidden; white-space: nowrap; transition: width .35s ease; box-shadow: 0 6px 18px rgb(255 122 69 / .25);
}
.pastille-texte { display: inline-block; transition: transform .26s ease, opacity .26s ease; }
.pastille-texte.sort { transform: translateY(-110%); opacity: 0; }
.pastille-texte.entre { transform: translateY(110%); opacity: 0; transition: none; }

.puces-filtres { list-style: none; margin: -12px 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.puces-filtres a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid #3A414C; color: #E9ECEF; font-size: .9rem; font-weight: 600; text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.puces-filtres a:hover { border-color: var(--corail); color: #FF9A7A; background: rgb(255 122 69 / .08); }
.puces-filtres a:focus-visible { outline: 3px solid #FF9A7A; outline-offset: 2px; }

.cta-chiffres { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 22px 0 0; }
.cta-chiffres div { display: flex; align-items: baseline; gap: 6px; }
.cta-chiffres dd { margin: 0; font-size: 1.35rem; font-weight: 800; color: #FF9A7A; font-variant-numeric: tabular-nums; }
.cta-chiffres dt { color: #9AA3AE; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .pastille-marque, .pastille-texte { transition: none; } }

/* Hero (test « Chaussez vos ») : H1 avec la pastille de marque à la taille du titre */
.hero-titre-marque { display: block; }
.hero-titre-marque > span[aria-hidden] { display: inline-flex; align-items: center; flex-wrap: nowrap; gap: .28em; white-space: nowrap; }
.pastille-hero {
  height: 1.12em; padding: 0 .32em; border-radius: .22em; font-size: 1em; line-height: 1;
  box-shadow: 0 10px 30px rgb(0 0 0 / .25); vertical-align: middle;
}
.pastille-hero .pastille-texte { font-weight: 800; letter-spacing: -0.04em; }
.hero-h2 { margin: 0 0 16px; font-size: clamp(1.35rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; color: #FFFFFF; max-width: 26ch; text-wrap: balance; }
.hero-sous { margin-bottom: 10px; }
.hero-catalogue { margin: 0 0 26px; font-size: 1.05rem; opacity: .92; }
.hero-catalogue strong { color: #FF9A7A; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .hero-titre-marque { font-size: clamp(2.2rem, 11vw, 2.8rem); }
}
/* Téléphone : la pastille passe sous « Chaussez vos » (la plus longue marque, La Sportiva, tient alors en largeur) */
@media (max-width: 640px) {
  .hero-titre-marque > span[aria-hidden] { flex-wrap: wrap; white-space: normal; row-gap: .12em; }
  .pastille-hero { flex-basis: auto; }
}
@media (max-width: 640px) { .chaussez-mots { flex-basis: 100%; } }

/* Hero : bloc texte centré verticalement, plus d'air entre titres, texte et bouton */
.hero { align-items: center; }
.hero-int { padding-top: clamp(96px, 12vh, 140px); padding-bottom: clamp(96px, 14vh, 160px); }
.hero-titre-marque { margin-bottom: 22px; }
.hero-h2 { margin-bottom: 22px; }
.hero-catalogue { margin-bottom: 36px; }
@media (max-width: 640px) {
  .hero-int { padding-top: 72px; padding-bottom: 120px; }
  .hero-titre-marque { margin-bottom: 16px; }
  .hero-h2 { margin-bottom: 18px; }
  .hero-catalogue { margin-bottom: 28px; }
}
.hero h1.hero-titre-marque { margin-bottom: 28px; }
.hero .hero-h2 { margin-bottom: 24px; }
@media (max-width: 640px) { .hero h1.hero-titre-marque { margin-bottom: 18px; } .hero .hero-h2 { margin-bottom: 18px; } }
/* Ordre du hero : titre, sous-titre, bouton, puis les deux textes */
.hero .hero-h2 { margin-bottom: 28px; }
.hero .hero-actions { margin-bottom: 28px; }
.hero .hero-sous { margin-bottom: 8px; }
.hero .hero-catalogue { margin-bottom: 0; }
@media (max-width: 640px) { .hero .hero-h2 { margin-bottom: 22px; } .hero .hero-actions { margin-bottom: 22px; } }

/* Hero : phrase « clés en main » et infographie 3 étapes sous le bouton */
.hero-cles { margin: 0 0 28px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); opacity: .95; max-width: 46ch; }
.hero-cles strong { color: #FF9A7A; font-weight: 800; font-variant-numeric: tabular-nums; }
.hero .hero-actions { margin-bottom: 32px; }
.hero-etapes {
  list-style: none; margin: 0; padding: 12px 18px; display: inline-flex; align-items: center; gap: 0;
  border-radius: 999px; background: rgb(17 20 24 / .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgb(255 255 255 / .12); counter-reset: etape;
}
.hero-etapes li { display: flex; align-items: center; gap: 10px; color: #FFFFFF; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.hero-etapes li + li::before {
  content: ""; width: 40px; height: 0; margin: 0 14px; border-top: 2px dashed rgb(255 122 69 / .85);
}
.etape-icone {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid #FF7A45; color: #FF9A7A; background: rgb(255 122 69 / .12);
}
.etape-icone svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .hero-etapes { display: flex; flex-direction: column; align-items: flex-start; border-radius: 16px; padding: 14px 16px; gap: 0; }
  .hero-etapes li { white-space: normal; }
  .hero-etapes li + li::before { display: none; }
  .hero-etapes li + li { margin-top: 0; position: relative; padding-top: 14px; }
  .hero-etapes li + li::after {
    content: ""; position: absolute; left: 16px; top: 0; height: 14px; border-left: 2px dashed rgb(255 122 69 / .85);
  }
}

/* Hero : contenu descendu dans le tiers bas de la photo (+100 px sur ordinateur, +60 px sur téléphone).
   Marge du bas réglée pour que le coureur de la photo reste visible sous le bandeau des 3 étapes. */
.hero-int { padding-top: clamp(246px, 30vh, 300px); padding-bottom: 220px; }
@media (max-width: 640px) { .hero-int { padding-top: 164px; padding-bottom: 240px; } }

/* Logos de marque dans la pastille : hauteur alignée sur le texte du titre, largeur bornée */
.pastille-texte { display: inline-flex; align-items: center; }
.logo-marque { display: block; height: .62em; width: auto; max-width: 4.6em; object-fit: contain; }

/* Fil d'Ariane des pages parcours : ← Accueil / Parcours / nom du parcours */
.fil { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 18px; font-size: .95rem; min-width: 0; }
.fil a { text-decoration: none; font-weight: 600; color: var(--texte); transition: color .15s, background-color .15s; }
.fil a:hover, .fil a:focus-visible { color: #FF7A45; }
.fil-accueil { display: inline-flex; align-items: center; gap: 4px; }
.fil-fleche { width: 16px; height: 16px; flex: none; transition: transform .15s; }
.fil-accueil:hover .fil-fleche { transform: translateX(-2px); }
.fil-sep, .fil-courant { color: var(--doux); }
.fil-courant { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.fil a[aria-current="page"] { color: var(--doux); font-weight: 500; }
.fil a[aria-current="page"]:hover { color: #FF7A45; }
@media (max-width: 640px) {
  .fil { margin-bottom: 14px; flex-wrap: nowrap; }
  .fil .fil-accueil {
    padding: 8px 14px 8px 10px; border-radius: 999px; background: #FF7A45; color: #111418;
    font-weight: 700; box-shadow: 0 2px 8px rgb(255 122 69 / .3);
  }
  .fil .fil-accueil:hover, .fil .fil-accueil:focus-visible { background: #E8633A; color: #111418; }
  .fil-fin { display: none; }
}

/* Pastille « Production en direct » aérée : marge interne plus large, point détaché du texte */
.direct-prod { gap: 12px; padding: 14px 24px; border-radius: 24px; line-height: 1.5; max-width: 100%; }
@media (max-width: 640px) { .direct-prod { padding: 12px 18px; align-items: flex-start; } .direct-prod .direct { margin-top: 6px; } }

/* Hero : les 3 étapes reliées par un petit sentier en pointillés (pictos fins, sans fond ni pilule) */
.hero-chemin { display: inline-flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.hero-chemin li {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  color: #FFFFFF; font-size: .95rem; font-weight: 500; letter-spacing: .01em; text-shadow: 0 1px 10px rgb(0 0 0 / .45);
}
.chemin-ico {
  width: 20px; height: 20px; flex: none; fill: none; stroke: #FF9A8B; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 6px rgb(0 0 0 / .4));
}
.chemin-ico circle { fill: #FF9A8B; stroke: none; }
.chemin-lien {
  width: 64px; height: 16px; margin: 0 14px; flex: none; fill: none;
  stroke: rgb(255 255 255 / .55); stroke-width: 1.2; stroke-dasharray: 2 4; stroke-linecap: round;
}
@media (max-width: 640px) {
  .hero-chemin { flex-wrap: nowrap; }
  .hero-chemin li { font-size: .84rem; gap: 6px; }
  .chemin-ico { width: 17px; height: 17px; }
  .chemin-lien { width: 22px; margin: 0 5px; }
}

/* Hero : H2 fusionné (plus de phrase « X parcours clés en main ») ; espacements rééquilibrés */
.hero .hero-h2 { max-width: 34ch; margin-bottom: 36px; }
.hero .hero-actions { margin-bottom: 30px; }
@media (max-width: 640px) {
  .hero .hero-h2 { margin-bottom: 26px; }
  .hero .hero-actions { margin-bottom: 22px; }
}

/* Suggestions du jour : mention météo sous le titre */
.suggestions-meteo { margin: -8px 0 20px; }

/* Accueil : 6 derniers parcours ajoutés — grille 3 x 2 sur ordinateur, défilement horizontal sur téléphone */
@media (max-width: 640px) {
  .grille-ajouts {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 -16px; padding: 4px 16px 14px; scroll-padding: 0 16px; scrollbar-width: thin;
  }
  .grille-ajouts > * { scroll-snap-align: start; }
}

/* Jonction hero / section suivante : la section du dessous recouvre les 2 derniers pixels du hero,
   où la photo (herbe orangée) dépassait du voile sombre et formait un fin trait clair. */
.hero { margin-bottom: -2px; }

/* Connexion / inscription (Supabase) */
.champs-inscription { display: flex; flex-direction: column; gap: 14px; }
.champs-inscription[hidden] { display: none; }
.connexion-form input[type=text], .connexion-form select {
  font: inherit; padding: 11px 12px; border: 1px solid var(--bord); border-radius: 8px; background: var(--carte); color: var(--texte);
}
.message-connexion { margin: 0; min-height: 1.4em; font-size: .9rem; color: var(--doux); }
.message-connexion.erreur { color: #C0392B; }

/* FAQ de l'accueil : accordéon natif (details / summary), accessible au clavier */
.faq { max-width: 820px; }
.faq-liste { border-top: 1px solid var(--bord); }
.faq details { border-bottom: 1px solid var(--bord); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 2px; font-weight: 700; font-size: 1.05rem; color: var(--texte);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.4rem; font-weight: 400; line-height: 1; color: #FF7A45; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: #FF7A45; }
.faq summary:focus-visible { outline: 2px solid #FF7A45; outline-offset: 2px; border-radius: 4px; }
.faq details p { margin: 0 0 18px; max-width: 68ch; color: var(--doux); line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }


/* Page « Importer un GPX » */
.tutos-intro { max-width: 70ch; margin: 0 0 20px; color: var(--doux); line-height: 1.6; }
.tutos-sommaire { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.tutos-sommaire button {
  font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--bord); background: var(--carte); color: var(--texte); transition: border-color .15s, color .15s;
}
.tutos-sommaire button:hover, .tutos-sommaire button:focus-visible { border-color: #FF7A45; color: #FF7A45; }
.tutos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .tutos { grid-template-columns: 1fr; } }
.tuto { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 22px 24px; scroll-margin-top: 90px; }
.tuto h2 { margin: 0 0 12px; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.015em; }
.tuto p { margin: 0 0 10px; line-height: 1.55; }
.tuto .aide { margin: 10px 0 0; }
.tuto ol { margin: 0; padding: 0; list-style: none; counter-reset: etape; display: flex; flex-direction: column; gap: 10px; }
.tuto ol li { counter-increment: etape; position: relative; padding-left: 34px; line-height: 1.55; }
.tuto ol li::before {
  content: counter(etape); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: #FF7A45; border: 1.5px solid #FF7A45;
}

/* Espace membre « Mon compte » */
.compte-bonjour { margin: -6px 0 24px; font-size: 1.05rem; font-weight: 700; }
.compte-bloc { margin-bottom: 24px; }
.compte-bloc h2 { margin: 0 0 16px; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.015em; }
.compte-chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
@media (max-width: 760px) { .compte-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.compte-chiffres div { background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 14px 16px; }
.compte-chiffres dt { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); }
.compte-chiffres dd { margin: 6px 0 0; font-size: 1.8rem; font-weight: 800; color: #FF7A45; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.compte-chiffres dd small { font-size: .9rem; font-weight: 700; margin-left: 3px; color: var(--doux); }
.compte-lieux { margin: 14px 0 0; }
.compte-suggestions { margin: 8px 0 32px; }
.suggestion-raison { margin: 10px 0 0; }
.compte-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
@media (max-width: 860px) { .compte-colonnes { grid-template-columns: 1fr; } }
.historique, .demandes { list-style: none; margin: 0; padding: 0; }
.historique li, .demandes li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--bord);
}
.historique li:first-child, .demandes li:first-child { border-top: 0; padding-top: 0; }
.historique-date { flex-basis: 100%; font-size: .8rem; color: var(--doux); }
.historique-gpx { margin-left: auto; background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.demandes li > div { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.statut { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--bord); color: var(--doux); white-space: nowrap; }
.statut-en_cours { color: #FF7A45; border-color: #FF7A45; }
.statut-faite { color: #2E9E5B; border-color: #2E9E5B; }
.compte-profil { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
@media (max-width: 760px) { .compte-profil { grid-template-columns: 1fr; } }
.compte-profil label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.compte-profil input, .compte-profil select {
  font: inherit; padding: 10px 12px; border: 1px solid var(--bord); border-radius: 8px; background: var(--carte); color: var(--texte);
}
.compte-profil-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.compte-profil-actions p { margin: 0; }
.compte-sortie { margin: 8px 0 0; }

/* Demande de parcours sur mesure (accueil et catalogue vide) */
.demande { max-width: 900px; }
.demande-intro { margin: -8px 0 22px; color: var(--doux); max-width: 60ch; }
.demande-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } /* 2 colonnes : distance et dénivelé côte à côte */
@media (max-width: 760px) { .demande-form { grid-template-columns: 1fr; } }
.demande-large { grid-column: 1 / -1; }
.demande-form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.demande-form input, .demande-form select, .demande-form textarea {
  font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid var(--bord); border-radius: 8px; background: var(--carte); color: var(--texte);
}
.demande-form textarea { resize: vertical; min-height: 84px; }
.demande-form input:focus, .demande-form select:focus, .demande-form textarea:focus { outline: none; border-color: #FF7A45; box-shadow: 0 0 0 3px rgb(255 122 69 / .2); }
.demande-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.demande-message { margin: 0; font-weight: 600; }
.demande-message.erreur { color: #E5533D; }
.demande-vide { margin-top: 40px; text-align: left; }

/* Page /admin (pilotage) */
.page-admin .admin { max-width: 1180px; margin: 0 auto; padding: 32px 16px 64px; }
.admin-periode { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 24px; border: 1px solid var(--bord); border-radius: 999px; background: var(--carte); }
.admin-periode button { font: inherit; font-size: .9rem; font-weight: 600; padding: 6px 14px; border: 0; border-radius: 999px; background: none; color: var(--doux); cursor: pointer; }
.admin-periode button[aria-pressed="true"] { background: #FF7A45; color: #111418; }
.admin-bloc { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 22px 24px; margin-bottom: 20px; }
.admin-bloc h2 { margin: 0 0 16px; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.015em; }
.admin-bloc > .aide { margin: -8px 0 14px; }
.admin-tuiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.admin-tuiles-1 { grid-template-columns: minmax(0, 1fr); max-width: 280px; }
@media (max-width: 860px) { .admin-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.admin-tuile { background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 14px 16px; }
.admin-tuile dt { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); }
.admin-tuile dd { margin: 6px 0 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--texte); }
.admin-tuile .aide { margin: 4px 0 0; font-size: .8rem; }
.admin-graphes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .admin-graphes { grid-template-columns: 1fr; } }
.admin-graphes figure { margin: 0; min-width: 0; }
.admin-graphes figcaption { font-size: .9rem; font-weight: 700; margin-bottom: 8px; }
.admin-graphe { position: relative; height: 200px; }
.admin-donnees { margin-top: 8px; font-size: .85rem; }
.admin-donnees summary { cursor: pointer; color: var(--doux); }
.admin-donnees table { margin-top: 8px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.admin-donnees th, .admin-donnees td { text-align: left; padding: 3px 14px 3px 0; border-bottom: 1px solid var(--bord); }
.admin-deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
@media (max-width: 860px) { .admin-deux { grid-template-columns: 1fr; } }
.admin-barres, .admin-entonnoir { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.admin-barres li, .admin-entonnoir li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 4.5rem; align-items: center; gap: 12px; font-size: .9rem; }
.admin-barres-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-barres-piste { height: 12px; border-radius: 4px; background: var(--fond); overflow: hidden; }
.admin-barres-piste span { display: block; height: 100%; border-radius: 0 4px 4px 0; background: #FF7A45; }
.admin-barres-n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.admin-barres-n small { font-weight: 500; color: var(--doux); margin-left: 4px; }
.admin-table-defile { overflow-x: auto; }
.admin-demandes { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-demandes th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--bord); }
.admin-demandes td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--bord); vertical-align: top; }
.admin-demandes select, .admin-demandes input { font: inherit; padding: 6px 8px; border: 1px solid var(--bord); border-radius: 6px; background: var(--carte); color: var(--texte); max-width: 13rem; }
.admin-entonnoir li { grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) 7rem; }
.admin-barres-n small { white-space: nowrap; }

/* Carte des tracés : noms des localisations (discrets, halo sombre pour ne pas gêner la lecture des tracés) */
.benefice-carte .lieu {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-anchor: middle;
  fill: rgb(233 236 239 / .52); stroke: rgb(17 20 24 / .85); stroke-width: 3px; stroke-linejoin: round; paint-order: stroke;
  pointer-events: none;
}
.benefice-carte .lieu-repere { font-size: 13.75px; font-weight: 800; letter-spacing: .14em; fill: rgb(241 241 243 / .9); }
.benefice-carte .lieux-petit { display: none; }
.benefice-carte .lieux-petit .lieu { font-size: 19px; stroke-width: 4.5px; }
.benefice-carte .lieux-petit .lieu-repere { font-size: 23.75px; }
@media (max-width: 640px) {
  .benefice-carte .lieux-grand { display: none; }
  .benefice-carte .lieux-petit { display: inline; }
}

/* Filtres alignés en haut de leur cellule ; le bouton « Effacer les filtres » reste en bas comme avant */
.filtres button[type=reset] { align-self: end; }
.benefice-carte .lieu-decor { font-weight: 500; fill: rgb(233 236 239 / .3); }

/* Home : marges du formulaire de demande alignées sur les autres sections (les champs et le bouton
   ne dépassent plus la largeur du conteneur sur mobile) */
.demande-form > * { min-width: 0; }
.demande-form input, .demande-form select, .demande-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
@media (max-width: 760px) {
  .demande-form { grid-template-columns: minmax(0, 1fr); }
  .demande-actions .bouton { width: 100%; white-space: normal; }
}
/* Point final du titre « Chaussez vos [marque]. » */
.h1-point { margin-left: -.2em; } /* annule presque l’espacement .28em entre les éléments du titre */

/* Titre production sur mobile : deux lignes « Chaque jour, plus de parcours » / « sur la plateforme. » */
@media (max-width: 640px) {
  .benefice .titre-ligne { display: block; white-space: nowrap; }
  .benefice .titre-section { font-size: min(1.6rem, 7.4vw); }
}

/* Vignettes : fond sombre quadrillé (comme la carte des tracés) tant que le Plan IGN n'est pas chargé, ou s'il échoue */
.mini-cadre {
  background-color: #111418;
  background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.mini-fond:not(.charge) { visibility: hidden; }

/* Dernière ligne du pied de page : « Singles - powered by trailers », petite, grise, centrée */
.pied .pied-bas { margin: 20px 0 0; font-size: .78rem; font-weight: 400; color: var(--doux); text-align: center; opacity: .8; }
.pied-admin .pied-int { padding-top: 4px; }
.pied-admin .pied-bas { margin: 0; }

/* Logo Singles (piste B) : même encombrement que l'ancien logo texte */
.marque { display: inline-flex; align-items: center; }
.marque picture { display: block; }
.marque-logo { display: block; height: 1.15em; width: auto; }
.compte-lien-demande { margin: 14px 0 0; font-size: .92rem; }
#demande-accueil { scroll-margin-top: 80px; }

/* Mon compte : accès aux tableaux de bord, visible seulement pour un profil admin */
.compte-admin { margin: -8px 0 16px; }
.compte-admin .bouton-secondaire { font-size: .88rem; padding: 6px 14px; }

/* Assistant de chat : bulle en bas à droite et panneau « Une question ? » */
.chat-bulle {
  position: fixed; right: 20px; bottom: 20px; z-index: 1100; width: 56px; height: 56px; border-radius: 50%;
  border: 0; background: #FF7A45; color: #111418; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 20px rgb(0 0 0 / .35); transition: transform .15s, background-color .15s;
}
.chat-bulle:hover { background: #E8633A; transform: translateY(-2px); }
.chat-bulle:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.chat-bulle svg { width: 26px; height: 26px; fill: currentColor; }
.chat-panneau {
  position: fixed; right: 20px; bottom: 88px; z-index: 1100; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: #111418; color: #E9ECEF; border: 1px solid #2A2F37; border-radius: 14px;
  box-shadow: 0 16px 48px rgb(0 0 0 / .45); overflow: hidden;
}
.chat-panneau[hidden] { display: none; }
.chat-tete { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #2A2F37; }
.chat-tete h2 { margin: 0; font-family: "Archivo Black", Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 1.1rem; letter-spacing: .01em; color: #FFFFFF; }
.chat-fermer { background: none; border: 0; color: #C9CED6; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.chat-fermer:hover, .chat-fermer:focus-visible { color: #FF7A45; }
.chat-fil { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: .92rem; line-height: 1.5; max-width: 88%; overflow-wrap: anywhere; }
.chat-assistant { background: #1A1E24; border: 1px solid #2A2F37; align-self: flex-start; }
.chat-utilisateur { background: #FF7A45; color: #111418; align-self: flex-end; font-weight: 500; }
.chat-info { align-self: stretch; max-width: none; background: none; padding: 2px 0; color: #A3A3AE; font-size: .86rem; }
.chat-attente { color: #A3A3AE; }
.chat-msg a { color: #FF9A7A; font-weight: 600; }
.chat-saisie { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid #2A2F37; }
.chat-saisie textarea {
  flex: 1; resize: none; font: inherit; font-size: .92rem; padding: 10px 12px; border-radius: 10px; min-height: 42px; max-height: 120px;
  border: 1px solid #2A2F37; background: #1A1E24; color: #E9ECEF;
}
.chat-saisie textarea:focus { outline: none; border-color: #FF7A45; box-shadow: 0 0 0 3px rgb(255 122 69 / .2); }
.chat-saisie .bouton { padding: 10px 14px; min-height: 42px; }
.chat-pied { display: flex; justify-content: space-between; margin: 0; padding: 0 14px 10px; }
.chat-lien { background: none; border: 0; padding: 4px 2px; font: inherit; font-size: .8rem; color: #A3A3AE; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.chat-lien:hover, .chat-lien:focus-visible { color: #FF7A45; }
.chat-form-message { display: flex; flex-direction: column; gap: 8px; }
.chat-form-message label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: #C9CED6; }
.chat-form-message textarea, .chat-form-message input {
  font: inherit; font-size: .9rem; padding: 8px 10px; border-radius: 8px; border: 1px solid #2A2F37; background: #1A1E24; color: #E9ECEF;
}
.chat-form-message .bouton { align-self: flex-start; padding: 8px 14px; }
.chat-message-etat { font-size: .82rem; }
@media (max-width: 640px) {
  .chat-bulle { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .chat-panneau { right: 0; bottom: 0; width: 100vw; height: 100dvh; max-height: none; border-radius: 0; border: 0; }
  body.chat-ouvert .chat-bulle { display: none; }
}
@media (prefers-reduced-motion: reduce) { .chat-bulle { transition: none; } .chat-bulle:hover { transform: none; } }

/* Assistant de chat : avatar de Geoffrey (bulle, en-tête, réponses) */
.chat-bulle { padding: 0; overflow: hidden; border: 2px solid #FF7A45; background: #111418; }
.chat-bulle:hover { background: #111418; border-color: #E8633A; }
.chat-bulle-avatar { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chat-avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid #2A2F37; }
.chat-avatar-tete { width: 36px; height: 36px; border: 2px solid #FF7A45; }
.chat-tete-titre { display: flex; align-items: center; gap: 10px; }
.chat-ligne { display: flex; align-items: flex-end; gap: 8px; align-self: flex-start; max-width: 92%; }
.chat-ligne .chat-msg { max-width: none; }

/* ---------- Choix du thème (sombre par défaut, clair au choix) ---------- */
.logo-theme-clair { display: none !important; }
:root[data-theme="light"] .logo-theme-sombre { display: none !important; }
:root[data-theme="light"] .logo-theme-clair { display: block !important; }
.nav { display: flex; align-items: center; gap: 10px; }
.theme-bascule {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1px solid var(--bord); color: var(--texte); transition: border-color .15s, color .15s;
}
.theme-bascule:hover, .theme-bascule:focus-visible { border-color: #FF7A45; color: #FF7A45; }
.theme-bascule svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-bascule .icone-lune { display: none; fill: currentColor; stroke: none; }
:root[data-theme="light"] .theme-bascule .icone-soleil { display: none; }
:root[data-theme="light"] .theme-bascule .icone-lune { display: block; }

/* Thème clair : zones sombres en dur rendues claires (hero, bandeau « Marre de vous demander… », chat).
   La carte des tracés et le bloc « Trouvez votre prochaine sortie » restent des cartes sombres volontaires. */
:root[data-theme="light"] .hero {
  background-image:
    linear-gradient(to bottom, transparent 66%, rgb(247 247 250 / .55) 86%, #F7F7FA 100%),
    linear-gradient(to right, rgb(0 0 0 / .45), transparent 70%),
    url("img/hero.jpg"), var(--hero);
}
:root[data-theme="light"] .bande-pain, :root[data-theme="light"] .bande-pain .pain { background: var(--fond); color: var(--texte); }
:root[data-theme="light"] .pain-raisons p { color: var(--doux); }
:root[data-theme="light"] .chat-panneau { background: #FFFFFF; color: #242428; border-color: #E6E6EB; box-shadow: 0 16px 48px rgb(17 20 24 / .18); }
:root[data-theme="light"] .chat-tete, :root[data-theme="light"] .chat-saisie { border-color: #E6E6EB; }
:root[data-theme="light"] .chat-tete h2 { color: #111418; }
:root[data-theme="light"] .chat-fermer { color: #6D6D78; }
:root[data-theme="light"] .chat-assistant { background: #F4F4F7; border-color: #E6E6EB; color: #242428; }
:root[data-theme="light"] .chat-msg a { color: #B8471F; }
:root[data-theme="light"] .chat-info, :root[data-theme="light"] .chat-attente, :root[data-theme="light"] .chat-lien { color: #6D6D78; }
:root[data-theme="light"] .chat-saisie textarea, :root[data-theme="light"] .chat-form-message textarea, :root[data-theme="light"] .chat-form-message input {
  background: #FFFFFF; color: #242428; border-color: #D9D9E0;
}
:root[data-theme="light"] .chat-form-message label { color: #4A4A55; }
:root[data-theme="light"] .chat-avatar { border-color: #E6E6EB; }
:root[data-theme="light"] .chat-bulle { background: #FFFFFF; }

/* ---------- Corrections mobile (audit 360 / 390 / 430 / 768 px) ---------- */
/* 1. Photo des pages connexion et inscription : bandeau proportionné, sentier et sommet visibles */
@media (max-width: 820px) {
  .connexion-photo { width: 100%; min-height: 0; aspect-ratio: 16 / 10; max-height: 280px; background-position: center 44%; }
}
/* 2. Champs à 16 px au moins : évite le zoom automatique d'iOS (téléphones et tablettes) */
@media (max-width: 1024px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]):not([type=button]), select, textarea { font-size: 16px !important; }
}
/* 3 et 4. Titre de la section production et pastille « Production en direct » : tiennent dans l'écran à 360 px */
@media (max-width: 380px) {
  .benefice .titre-section { font-size: 6.3vw; }
}
.benefice-texte { min-width: 0; }
.direct-prod { box-sizing: border-box; max-width: 100%; white-space: normal; }
/* 5. Cibles tactiles de 44 px au moins sur mobile */
@media (max-width: 820px) {
  .leaflet-touch .leaflet-control-zoom a, .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }
  .connexion-form .oubli { display: inline-flex; align-items: center; min-height: 44px; margin-top: -12px; padding: 0 2px; }
  .pied-liens a { display: inline-flex; align-items: center; min-height: 44px; }
  .niveaux label, .connexion-form label.case { min-height: 44px; align-items: center; }
  .connexion-form .case input { margin-top: 0; }
  .tutos-sommaire button { min-height: 44px; }
}
/* 6. Libellés des filtres du catalogue : 13 px au moins */
.filtres label, .niveaux legend { font-size: 13px; }

/* Pied de page : lien Instagram (couleur du texte du pied, orange au survol ; zone tactile de 44 px) */
.pied-liens .pied-instagram { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -11px 0; color: var(--texte); transition: color .15s; }
.pied-liens .pied-instagram:hover, .pied-liens .pied-instagram:focus-visible { color: #FF7A45; }
.pied-instagram svg { display: block; }
@media (max-width: 820px) { .pied-liens .pied-instagram { margin: 0; } }

/* Témoignage : citation plus sobre (taille, graisse, interligne, largeur de ligne) et révélée mot à mot au défilement */
.temoignage-citation blockquote {
  margin: 0 0 24px; max-width: 36ch; font-size: clamp(1.18rem, 0.9rem + 1.1vw, 1.5rem); font-weight: 400;
  line-height: 1.5; letter-spacing: -0.005em; color: var(--texte);
}
.temoignage-citation blockquote::before { font-size: 2.6rem; height: .45em; margin-bottom: 14px; opacity: .6; }
.temoignage-citation.secondaire blockquote { font-size: 1.05rem; }
.temoignage-citation .mot { opacity: .2; transition: opacity .35s ease; }
.temoignage-citation .mot.lu { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .temoignage-citation .mot { opacity: 1; transition: none; } }

/* Niveau de sentier (T1 à T6) : badge discret à côté du niveau, explication dans la fiche */
.puce.puce-sentier { background: transparent; color: var(--texte); border: 1px solid var(--bord); padding: 2px 7px; font-variant-numeric: tabular-nums; }
.sentier-niveau { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; line-height: 1.5; }
.sentier-niveau .puce { flex: none; margin-top: 2px; }
.sentier-niveau .aide { display: block; margin-top: 2px; }

/* ---------- Page Carte (#/carte, site/carte.js) ---------- */
body.page-carte .pied { display: none; }
.carte-app { position: relative; display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - var(--entete-h, 64px)); height: calc(100dvh - var(--entete-h, 64px)); min-height: 420px; }
.carte-zone { position: relative; min-width: 0; }
#carte-globale { position: absolute; inset: 0; z-index: 0; }
.carte-app .leaflet-container { background: var(--fond); font: inherit; }
/* Fond IGN un peu adouci (moins saturé, un peu assombri en thème sombre) */
.carte-app .leaflet-tile-pane { filter: saturate(.7) contrast(.96); }
:root:not([data-theme="light"]) .carte-app .leaflet-tile-pane { filter: saturate(.55) brightness(.8) contrast(1.05); }
.carte-app .leaflet-control-zoom { border: 0; box-shadow: 0 2px 10px rgb(0 0 0 / .25); border-radius: 12px; overflow: hidden; }
.carte-app .leaflet-control-zoom a { background: var(--carte); color: var(--texte); border-color: var(--bord); width: 38px; height: 38px; line-height: 38px; }
.carte-app .leaflet-control-attribution { background: color-mix(in srgb, var(--carte) 80%, transparent); color: var(--doux); }
.carte-app .leaflet-control-attribution a { color: var(--doux); }

/* Liste à gauche */
.carte-liste { position: relative; z-index: 2; display: flex; flex-direction: column; min-height: 0; background: var(--carte); border-right: 1px solid var(--bord); }
.tiroir-poignee { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; border: 0; border-bottom: 1px solid var(--bord); background: transparent; color: var(--texte); font: inherit; padding: 16px 18px 14px; text-align: left; cursor: default; }
.tiroir-barre { display: none; }
.carte-liste-compte { font-size: .95rem; color: var(--doux); }
.carte-liste-compte strong { color: var(--texte); font-size: 1.15rem; font-weight: 800; }
.carte-liste-corps { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.carte-carte {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 12px 16px; border-radius: 12px; text-decoration: none; color: inherit;
  background: var(--fond); border: 1px solid var(--bord); border-left: 4px solid var(--niveau-c, var(--accent)); transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.carte-carte.niveau-debutant { --niveau-c: var(--debutant); }
.carte-carte.niveau-intermediaire { --niveau-c: var(--intermediaire); }
.carte-carte.niveau-confirme { --niveau-c: var(--confirme); }
.carte-carte:hover, .carte-carte.actif { border-color: var(--accent); border-left-color: var(--niveau-c); box-shadow: 0 4px 16px rgb(0 0 0 / .14); }
.carte-carte:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.carte-carte-tete { display: flex; gap: 6px; margin-bottom: 2px; }
.carte-carte-nom { font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.carte-carte-lieu { color: var(--doux); font-size: .88rem; }
.carte-carte-chiffres { font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.carte-liste-vide { color: var(--doux); padding: 8px 6px; margin: 0; }

/* Filtres en pilules flottantes */
.carte-filtres { position: absolute; z-index: 600; top: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.pilule-bloc { position: relative; pointer-events: auto; }
.pilule {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; pointer-events: auto;
  border: 1px solid var(--bord); background: var(--carte); color: var(--texte); font: inherit; font-size: .9rem; font-weight: 600;
  box-shadow: 0 2px 10px rgb(0 0 0 / .18); cursor: pointer; white-space: nowrap;
}
.pilule svg { width: 12px; height: 12px; transition: transform .15s ease; }
.pilule[aria-expanded="true"] svg { transform: rotate(180deg); }
.pilule:hover { border-color: var(--accent); }
.pilule.active { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }
.pilule:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pilule-effacer { color: var(--accent); }
.pilule-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; max-width: min(320px, calc(100vw - 32px));
  background: var(--carte); color: var(--texte); border: 1px solid var(--bord); border-radius: 14px; padding: 12px; box-shadow: 0 10px 30px rgb(0 0 0 / .28);
}
.pilule-menu[hidden] { display: none; }
.choix-liste { display: flex; flex-direction: column; gap: 6px; }
.choix { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--bord); cursor: pointer; font-size: .92rem; min-height: 40px; }
.choix:hover { border-color: var(--accent); }
.choix:has(input:checked) { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 55%, var(--bord)); }
.choix input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.choix .puce { flex: none; }
.pilule-aide { margin: 10px 2px 0; font-size: .8rem; color: var(--doux); }
.double-curseur { padding: 4px 4px 8px; }
.double-valeur { margin: 0 0 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.double-rail { position: relative; height: 24px; }
.double-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 4px; background: var(--bord); }
.double-plein { position: absolute; top: 10px; height: 4px; border-radius: 4px; background: var(--accent); }
.double-rail input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 24px; }
.double-rail input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 1px 4px rgb(0 0 0 / .3); cursor: pointer; }
.double-rail input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); cursor: pointer; }
.double-rail input::-moz-range-track { background: none; }
.double-rail input:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Étiquettes sur la carte */
.etq-carte { background: none; border: 0; }
.etq {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 4px 10px 4px 7px; border-radius: 999px; background: var(--carte); color: var(--texte); border: 1px solid var(--bord);
  font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 2px 8px rgb(0 0 0 / .25); cursor: pointer;
  transition: transform .12s ease, background-color .12s ease;
}
.etq-points { display: inline-flex; }
.etq-points .etq-point + .etq-point { margin-left: -4px; }
.etq-point { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--carte); flex: none; }
.etq-point.debutant { background: var(--debutant); }
.etq-point.intermediaire { background: var(--intermediaire); }
.etq-point.confirme { background: var(--confirme); }
.etq-groupe { padding: 5px 12px; border: 2px solid var(--accent); font-size: .82rem; }
.etq-carte:hover .etq, .etq-carte.actif .etq { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); color: #1B1B1F; border-color: var(--accent); z-index: 1; }
.etq-carte.actif { z-index: 1000 !important; }
.etq-carte:focus { outline: none; }
.etq-carte:focus-visible .etq { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Aperçu flottant */
.carte-apercu {
  position: absolute; z-index: 650; left: 0; top: 0; width: 300px; max-width: calc(100% - 16px);
  background: var(--carte); color: var(--texte); border: 1px solid var(--bord); border-radius: 16px; box-shadow: 0 10px 30px rgb(0 0 0 / .3);
  padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; line-height: 1.4; --fleche: 50%;
}
.carte-apercu[hidden] { display: none; }
.carte-apercu:not(.selection) { cursor: pointer; }
/* Petite flèche pointée sur l'étiquette (côté selon la place choisie) */
.apercu-fleche { position: absolute; width: 14px; height: 14px; background: var(--carte); border: 1px solid var(--bord); transform: rotate(45deg); }
.place-dessus .apercu-fleche { bottom: -8px; left: calc(var(--fleche) - 7px); border-top: 0; border-left: 0; }
.place-dessous .apercu-fleche { top: -8px; left: calc(var(--fleche) - 7px); border-bottom: 0; border-right: 0; }
.place-droite .apercu-fleche { left: -8px; top: calc(var(--fleche) - 7px); border-top: 0; border-right: 0; }
.place-gauche .apercu-fleche { right: -8px; top: calc(var(--fleche) - 7px); border-bottom: 0; border-left: 0; }
.carte-apercu h2 { margin: 4px 0 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; padding-right: 30px; }
.apercu-lieu { margin: 0 !important; color: var(--doux); font-size: .88rem; }
.apercu-chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 6px 0; }
.apercu-chiffres dt { font-size: .68rem; color: var(--doux); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.apercu-chiffres dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.apercu-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.carte-apercu .bouton { color: var(--accent-texte); min-height: 40px; padding: 0 16px; }
.apercu-nav { display: inline-flex; align-items: center; gap: 2px; font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; border: 1px solid var(--bord); border-radius: 999px; padding: 2px; }
.apercu-nav span { padding: 0 4px; white-space: nowrap; }
.apercu-nav button, .apercu-fermer { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--texte); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.apercu-nav button:hover, .apercu-fermer:hover, .apercu-nav button:focus-visible, .apercu-fermer:focus-visible { background: var(--fond); }
.apercu-nav button:focus-visible, .apercu-fermer:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.apercu-fermer { position: absolute; top: 8px; right: 8px; color: var(--doux); }
/* Mobile : carte en bas de l'écran, au-dessus du tiroir ; cibles de 44 px pour le doigt ; glissement horizontal */
.carte-apercu.mobile { left: 10px !important; right: 10px; top: auto !important; bottom: 84px; width: auto; max-width: none; touch-action: pan-y; }
.carte-apercu.mobile .apercu-fleche { display: none; }
.carte-apercu.mobile .apercu-nav button, .carte-apercu.mobile .apercu-fermer { width: 44px; height: 44px; font-size: 1.5rem; }
.carte-apercu.mobile .bouton { min-height: 44px; }
.carte-apercu.mobile .apercu-chiffres { grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 6px 10px; }
.carte-apercu.mobile .apercu-chiffres dd { white-space: nowrap; font-size: .92rem; }

/* Mobile : carte plein écran, liste dans un tiroir à tirer vers le haut */
@media (max-width: 820px) {
  .carte-app { display: block; overflow: hidden; }
  .carte-zone { position: absolute; inset: 0; }
  .carte-liste {
    position: absolute; left: 0; right: 0; bottom: 0; height: 72%; border-right: 0; border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 24px rgb(0 0 0 / .25); transform: translateY(calc(100% - 72px)); transition: transform .25s ease; z-index: 700;
  }
  .carte-liste.ouvert { transform: translateY(0); }
  .carte-liste.tire { transition: none; }
  .tiroir-poignee { align-items: center; padding: 10px 16px 14px; cursor: grab; touch-action: none; border-bottom-color: transparent; }
  .carte-liste.ouvert .tiroir-poignee { border-bottom-color: var(--bord); }
  .tiroir-barre { display: block; width: 44px; height: 5px; border-radius: 5px; background: var(--bord); }
  .tiroir-poignee:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
  .carte-filtres { top: 10px; left: 10px; right: 10px; gap: 6px; }
  .pilule { min-height: 36px; padding: 0 12px; font-size: .85rem; }
  .carte-app .leaflet-bottom { bottom: 72px; }
  body.page-carte .chat-bulle { bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .carte-liste, .etq, .carte-carte, .pilule svg { transition: none; }
}

/* ---------- Avis des traileurs (fiche parcours, site/avis.js) ---------- */
.fiche-avis-resume {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--bord); background: var(--carte); color: var(--texte); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.fiche-avis-resume[hidden] { display: none; }
.fiche-avis-resume:hover { border-color: var(--accent); }
.fiche-avis-resume:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.avis-moyenne { font-weight: 800; }
.etoile-seule, .etoiles .pleine { color: #F5B301; }
.avis-sep { color: var(--doux); }
.avis-bloc { margin-top: 16px; }
.avis-entete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.avis-entete h2 { margin: 0; }
.avis-resume { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 1rem; }
.avis-liste { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; }
.avis-item { padding: 16px 0; border-top: 1px solid var(--bord); }
.avis-item:first-child { border-top: 0; padding-top: 4px; }
.avis-item.avis-perso { background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 10px; padding: 14px; margin: 6px 0; border-top: 0; }
.avis-tete { display: flex; align-items: center; gap: 10px; }
.avis-tete > div { display: flex; flex-direction: column; line-height: 1.25; }
.avis-tete .etoiles { margin-left: auto; }
.avis-pastille { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--degrade); color: #1B1B1F; font-weight: 800; }
.avis-date { color: var(--doux); font-size: .85rem; }
.etoiles { display: inline-flex; gap: 1px; font-size: 1rem; color: var(--bord); letter-spacing: 0; }
.avis-texte { margin: 10px 0 0; line-height: 1.55; overflow-wrap: anywhere; }
.avis-statut { display: inline-block; margin: 10px 0 0; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--fond); color: var(--doux); border: 1px dashed var(--bord); }
.avis-refuse { color: var(--confirme); }
.avis-invitation { margin: 4px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--fond); border: 1px solid var(--bord); }
.avis-form { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 1px solid var(--bord); }
.avis-form h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.avis-note { border: 0; margin: 0; padding: 0; }
.avis-note legend { font-weight: 600; margin-bottom: 4px; }
/* Étoiles : allumées jusqu'à la note survolée ou choisie (classe « allumee » posée par site/avis.js) */
.avis-etoiles-choix { display: inline-flex; }
.avis-etoiles-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.avis-etoiles-choix label { font-size: 1.9rem; line-height: 1; padding: 4px 3px; color: var(--bord); cursor: pointer; transition: color .1s ease, transform .1s ease; }
.avis-etoiles-choix label.allumee { color: #F5B301; }
.avis-etoiles-choix label:hover { transform: scale(1.1); }
.avis-etoiles-choix input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 1px; border-radius: 6px; }
.avis-sans-note { margin-left: 8px; font-size: .88rem; }
.avis-champ { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.avis-champ textarea { font: inherit; font-weight: 400; padding: 12px; border-radius: 10px; border: 1px solid var(--bord); background: var(--fond); color: var(--texte); resize: vertical; min-height: 110px; }
.avis-champ textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.avis-compteur { align-self: flex-end; font-weight: 400; }
.avis-piege { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.avis-envoi { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.avis-message { margin: 0; font-weight: 600; }
.avis-form > .aide { margin: 0; }
@media (max-width: 640px) {
  .avis-tete { flex-wrap: wrap; }
  .avis-tete .etoiles { margin-left: 46px; width: 100%; }
  .avis-envoi .bouton { width: 100%; }
}

/* ---------- Admin : onglets et modération des avis ---------- */
.admin-onglets { display: flex; gap: 4px; border-bottom: 1px solid var(--bord); margin: 0 0 20px; overflow-x: auto; }
.admin-onglets [role="tab"] {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  background: transparent; color: var(--doux); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.admin-onglets [role="tab"][aria-selected="true"] { color: var(--texte); border-bottom-color: var(--accent); }
.admin-onglets [role="tab"]:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 6px; }
.admin-compteur { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-texte); font-size: .78rem; display: inline-grid; place-items: center; }
.admin-compteur[hidden] { display: none; }
.admin-avis { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.admin-avis-item { padding: 14px 16px; border: 1px solid var(--bord); border-left: 4px solid var(--bord); border-radius: 10px; background: var(--fond); }
.admin-avis-item.statut-en_attente { border-left-color: var(--accent); }
.admin-avis-item.statut-publie { border-left-color: var(--debutant); }
.admin-avis-item.statut-refuse { border-left-color: var(--confirme); opacity: .8; }
.admin-avis-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.admin-avis-statut { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 4px; background: var(--carte); border: 1px solid var(--bord); }
.statut-en_attente .admin-avis-statut { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); }
.admin-avis-note { color: #F5B301; letter-spacing: 1px; }
.admin-avis-note span { color: var(--bord); }
.admin-avis-parcours { margin: 6px 0 0; font-size: .92rem; }
.admin-avis-texte { margin: 8px 0 12px; line-height: 1.5; overflow-wrap: anywhere; }
.admin-avis-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-supprimer { color: var(--confirme); }
@media (max-width: 820px) { body.page-carte:has(.carte-apercu:not([hidden])) .chat-bulle { display: none; } }
.admin-avis-seule { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 4px; color: #1B1B1F; background: #F5B301; }
/* Note seule (sans commentaire) : pas de bloc de texte, l'en-tête suffit */
.avis-item:not(:has(.avis-texte)) { padding-bottom: 12px; }

/* ---------- Tarifs (#/tarifs, page hors menu) ---------- */
.tarifs-intro { max-width: 62ch; color: var(--doux); margin: 0 0 28px; line-height: 1.55; }
.tarifs-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.tarif {
  display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; border-radius: 14px;
  background: var(--carte); border: 1px solid var(--bord);
}
.tarif-median { border-color: color-mix(in srgb, var(--accent) 55%, var(--bord)); }
.tarif h2 { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.tarif-prix { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.tarif-gpx { margin: 0; font-weight: 700; color: var(--accent); }
.tarif ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tarif li { position: relative; padding-left: 22px; line-height: 1.45; }
.tarif li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.tarif-mention { margin: 4px 0 0; font-size: .85rem; }
.tarif-action { margin-top: auto; padding-top: 14px; }
.tarif-action .bouton, .tarif-action .bouton-secondaire { width: 100%; justify-content: center; text-align: center; min-height: 44px; }
.tarif-action button[disabled] { cursor: not-allowed; opacity: .75; }
.tarifs-note { margin-top: 22px; }
@media (max-width: 900px) { .tarifs-grille { grid-template-columns: 1fr; max-width: 520px; } }

/* Téléchargement refusé (quota ou accès suspendu) */
.telechargement-refus { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--confirme); color: var(--texte); background: color-mix(in srgb, var(--confirme) 12%, transparent); font-size: .92rem; }

/* Admin : plans et accès */
.admin-plan select { font: inherit; font-size: .88rem; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--bord); background: var(--fond); color: var(--texte); }
.admin-suspendu { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 4px; background: var(--confirme); color: #fff; margin-right: 6px; }
.admin-alertes { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.admin-alertes li { padding: 10px 12px; border-radius: 8px; border-left: 4px solid var(--confirme); background: var(--fond); }

/* Tarifs : sélecteur Mensuel / Annuel, unité, équivalence */
.tarifs-mode { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 20px; border: 1px solid var(--bord); border-radius: 999px; background: var(--carte); }
.tarifs-mode button { font: inherit; font-size: .92rem; font-weight: 700; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--doux); cursor: pointer; }
.tarifs-mode button[aria-pressed="true"] { background: var(--accent); color: var(--accent-texte); }
.tarifs-mode button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tarif-unite { font-size: .95rem; font-weight: 600; color: var(--doux); margin-left: 2px; letter-spacing: 0; }
.tarif-equivalence { margin: -4px 0 0; font-size: .9rem; color: var(--doux); font-style: italic; }
.tarif-remarque { margin: -6px 0 0; font-size: .82rem; color: var(--doux); }

/* ---------- Mobile : écran fixé (aucun défilement ni zoom latéral involontaire) ---------- */
/* Cause du débordement (iPhone, accueil) : dans le carrousel « Les derniers parcours ajoutés », le texte caché des
   badges T1/T2 (.visuellement-cache, en position absolue) prenait pour repère un parent HORS du carrousel ; il
   s'échappait du défilement horizontal et poussait la page jusqu'à 1 604 px (le téléphone dézoomait la page).
   Correction : un repère (position: relative) sur le badge, la carte et chaque zone qui défile horizontalement. */
.puce-sentier, .etiquette, .grille-ajouts, .tableau-defile, .admin-table-defile, .admin-onglets, .carte-liste-corps { position: relative; }
html, body { overflow-x: clip; overscroll-behavior-x: none; }
/* Glissement vertical et zoom à deux doigts (accessibilité) permis ; glissement horizontal de la page bloqué.
   Les zones qui défilent en largeur (carrousel, tableaux) et la carte Leaflet gardent leurs propres gestes. */
body { touch-action: pan-y pinch-zoom; }
.grille-ajouts, .tableau-defile, .admin-table-defile, .admin-onglets { touch-action: pan-x pan-y pinch-zoom; }
@media (max-width: 820px) {
  /* 16 px minimum : iOS ne zoome plus automatiquement en touchant un champ */
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
}

/* ---------- Menu burger (≤ 640 px) ---------- */
.burger { display: none; }
.menu-mobile[hidden] { display: none; }
@media (max-width: 640px) {
  .entete .nav > .theme-bascule, .entete .nav > .bouton { display: none; }
  .burger {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 10px;
    border: 1px solid var(--bord); background: transparent; color: var(--texte); cursor: pointer;
  }
  .burger svg, .menu-mobile-fermer svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .burger:focus-visible, .menu-mobile-fermer:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
  body.menu-ouvert { overflow: hidden; }
  .menu-mobile { position: fixed; inset: 0; z-index: 3000; }
  .menu-mobile-fond { position: absolute; inset: 0; background: rgb(0 0 0 / .5); }
  .menu-mobile-panneau {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); display: flex; flex-direction: column; gap: 8px;
    padding: max(12px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); background: var(--carte); color: var(--texte);
    border-left: 1px solid var(--bord); box-shadow: -10px 0 30px rgb(0 0 0 / .3); overflow-y: auto;
    transform: translateX(100%); transition: transform .22s ease;
  }
  .menu-mobile.ouvert .menu-mobile-panneau { transform: none; }
  .menu-mobile-tete { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--bord); margin-bottom: 6px; }
  .menu-mobile-titre { font-weight: 800; font-size: 1.05rem; }
  .menu-mobile-fermer { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--texte); cursor: pointer; }
  .menu-mobile-liens { display: flex; flex-direction: column; }
  .menu-mobile-liens a { display: flex; align-items: center; min-height: 52px; padding: 0 8px; border-radius: 10px; color: var(--texte); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
  .menu-mobile-liens a:hover, .menu-mobile-liens a:focus-visible { background: var(--fond); outline: none; color: var(--accent); }
  .menu-mobile-liens a.menu-compte { margin-top: 10px; justify-content: center; background: var(--accent); color: var(--accent-texte); }
  .menu-theme {
    display: flex; align-items: center; gap: 10px; width: 100%; height: auto; min-height: 48px; margin-top: auto; padding: 0 12px;
    border: 1px solid var(--bord); border-radius: 10px; background: transparent; color: var(--texte); font: inherit; font-weight: 600; cursor: pointer;
  }
  .menu-theme svg { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .menu-mobile-panneau { transition: none; } }

/* ---------- Carte : recherche texte (au-dessus du compteur ; sur mobile, sous la poignée du tiroir) ---------- */
.carte-recherche { position: relative; margin: 14px 14px 0; display: flex; align-items: center; }
.carte-recherche input {
  width: 100%; min-height: 44px; padding: 0 40px 0 38px; border-radius: 12px; border: 1px solid var(--bord);
  background: var(--fond); color: var(--texte); font: inherit; font-size: .95rem; -webkit-appearance: none; appearance: none;
}
.carte-recherche input::placeholder { color: var(--doux); }
.carte-recherche input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.carte-recherche input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.carte-recherche-loupe { position: absolute; left: 12px; width: 18px; height: 18px; fill: none; stroke: var(--doux); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.carte-recherche-vider {
  position: absolute; right: 4px; display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; color: var(--doux); cursor: pointer;
}
.carte-recherche-vider[hidden] { display: none; }
.carte-recherche-vider svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.carte-recherche-vider:hover, .carte-recherche-vider:focus-visible { background: var(--carte); color: var(--texte); outline: none; }
@media (max-width: 820px) {
  .carte-liste { display: flex; flex-direction: column; }
  .tiroir-poignee { order: -1; }
  .carte-recherche { margin: 0 14px 10px; }
  .carte-recherche input { font-size: 16px; min-height: 46px; }
}

/* ---------- Avis : encart pour les visiteurs non connectés ---------- */
.avis-invite {
  margin-top: 8px; padding: 20px; border-radius: 14px; text-align: center;
  background: color-mix(in srgb, var(--accent) 8%, var(--fond)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--bord));
}
.avis-invite h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.avis-invite p { margin: 0 auto 10px; max-width: 46ch; color: var(--doux); line-height: 1.5; }
.avis-etoiles-apercu { display: inline-flex; gap: 2px; margin: 2px 0 12px; font-size: 1.8rem; line-height: 1; color: var(--bord); text-decoration: none; border-radius: 8px; padding: 2px 6px; }
.avis-etoiles-apercu:hover span, .avis-etoiles-apercu:focus-visible span { color: color-mix(in srgb, #F5B301 45%, var(--bord)); }
.avis-etoiles-apercu:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.avis-invite-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; }
.avis-invite-actions .bouton { min-height: 44px; }
.avis-invite-actions .lien { font-weight: 700; }
@media (max-width: 640px) {
  .avis-invite { padding: 18px 14px; }
  .avis-invite-actions { flex-direction: column; }
  .avis-invite-actions .bouton { width: 100%; justify-content: center; }
}

/* ---------- Chat : téléphone (plein écran), tablette, ordinateur ---------- */
.chat-bulle { bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px)); }
@media (max-width: 640px) {
  .chat-bulle { bottom: max(16px, calc(env(safe-area-inset-bottom) + 10px)); }
  /* Plein écran ; la hauteur suit la zone visible quand le clavier est ouvert (site/chat.js, visualViewport) */
  .chat-panneau { top: 0; left: 0; right: 0; bottom: auto; width: 100%; height: 100vh; height: 100dvh; }
  .chat-tete { padding-top: max(14px, env(safe-area-inset-top)); }
  .chat-pied { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .chat-fermer { min-width: 44px; min-height: 44px; }
  .chat-saisie .bouton { min-height: 46px; }
  body.chat-ouvert { overflow: hidden; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .chat-panneau { width: min(420px, calc(100vw - 40px)); height: min(620px, calc(100dvh - 120px)); }
}
