/* =========================================================
   MMS — Feuille de style principale
   Ambiance : arène de nuit, or du logo, flamme de la torche
   ========================================================= */

:root {
  /* v3 — « Dossard de course » : clair, encre marine, rouge course.
     Les noms des variables sont gardés de l'ancien thème pour ne rien casser. */
  --page:     #f1f3f6;   /* fond de page (gris très clair, froid) */
  --nuit:     #ffffff;   /* champs, texte sur bouton coloré */
  --pierre:   #ffffff;   /* blocs, cartes */
  --pierre-2: #e9edf3;   /* blocs secondaires, survol */
  --joint:    #d3dae4;   /* bordures */
  --sable:    #0f1d36;   /* texte principal : encre marine */
  --sable-2:  #4f5b70;   /* texte secondaire */
  --or:       #1d3f94;   /* accent principal : bleu (liens, actifs) */
  --or-clair: #2c55bd;
  --feu:      #e0261c;   /* rouge course : actions, dossard */
  --feu-fonce:#b71c13;
  --vert:     #23784a;
  --bleu-fr:  #1d3f94;
  --rouge-fr: #e0261c;
  --medaille: #b8862b;   /* or réservé aux trophées */

  --f-titre:   "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-texte:   "Barlow", "Segoe UI", system-ui, sans-serif;
  --f-donnees: "Barlow Condensed", "Arial Narrow", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--sable);
  font-family: var(--f-texte);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--or); }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Typographie ---------- */
h1, h2, h3 {
  font-family: var(--f-titre);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 7vw, 84px); }
h2 { font-size: clamp(32px, 5vw, 58px); margin-top: 12px; }
h3 { font-size: 21px; font-weight: 800; letter-spacing: .02em; }
.eyebrow {
  font-family: var(--f-donnees);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--or);
}
.lead { font-size: 18px; color: var(--sable-2); max-width: 62ch; margin: 16px 0 0; }
.brouillon {
  display: inline-block; justify-self: start;
  font-family: var(--f-donnees); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--feu); color: var(--feu); padding: 3px 8px;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 9, 7, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--joint);
}
.bar { display: flex; align-items: center; gap: 20px; padding-block: 10px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--sable); flex-shrink: 0; }
.logo img { width: 52px; height: 52px; border-radius: 50%; }
.logo-txt {
  font-family: var(--f-titre); font-weight: 900; font-size: 17px; letter-spacing: .04em;
  line-height: 1; text-transform: uppercase; color: var(--or-clair);
}
.logo-txt small { display: block; font-family: var(--f-donnees); font-weight: 500; font-size: 11px; letter-spacing: .32em; color: var(--sable-2); margin-top: 3px; }
.tricolore { display: flex; height: 2px; }
.tricolore span { flex: 1; }
.tricolore span:nth-child(1) { background: var(--bleu-fr); }
.tricolore span:nth-child(2) { background: var(--sable); }
.tricolore span:nth-child(3) { background: var(--rouge-fr); }

.menu { margin-left: auto; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.menu a {
  display: block; padding: 8px 12px;
  font-family: var(--f-donnees); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sable-2); text-decoration: none;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.menu a:hover { color: var(--sable); }
.menu a[aria-current="page"] { color: var(--sable); border-color: var(--or); }
.menu a.live::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px;
  border-radius: 50%; background: var(--feu); vertical-align: middle; animation: pouls 1.6s infinite;
}
.menu a.acces { border: 1px solid var(--or); color: var(--or); margin-left: 8px; }
.menu a.acces[aria-current="page"], .menu a.acces:hover { background: var(--or); color: var(--nuit); }
@keyframes pouls { 50% { opacity: .25; } }

.burger {
  display: none; margin-left: auto; background: none; border: 1px solid var(--joint);
  color: var(--sable); padding: 8px 14px; font-family: var(--f-donnees); letter-spacing: .15em; font-size: 14px; cursor: pointer;
}
@media (max-width: 980px) {
  .burger { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--nuit); border-bottom: 1px solid var(--joint); }
  .menu.ouvert { display: block; }
  .menu ul { flex-direction: column; align-items: stretch; padding: 8px max(16px, env(safe-area-inset-left, 0px)) 16px; }
  .menu a { padding: 12px 4px; }
  .menu a.acces { margin: 8px 0 0; text-align: center; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: 14px 26px;
  font-family: var(--f-donnees); font-weight: 700; font-size: 16px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--or); color: var(--or); background: none; cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.btn:hover { background: var(--or); color: var(--nuit); }
.btn.feu { background: linear-gradient(180deg, var(--or-clair), var(--or)); border-color: var(--or); color: var(--nuit); }
.btn.feu:hover { box-shadow: 0 0 28px rgba(226, 87, 44, .55); }

/* ---------- Accueil : hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--joint); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px; align-items: center; padding-block: 56px 64px;
}
.hero-txt { display: grid; gap: 18px; min-width: 0; }
.hero h1 { font-size: clamp(44px, 7.5vw, 104px); line-height: .95; }
.hero h1 .or { color: var(--or); }
.hero h1 .feu { color: var(--feu); }
.devise { margin: 0; font-family: var(--f-titre); font-weight: 600; font-size: clamp(13px, 1.6vw, 17px); letter-spacing: .2em; color: var(--sable-2); }
.hero .lead { margin: 0; }
.hero-logo { position: relative; justify-self: center; width: min(100%, 460px); }
.hero-logo::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, .35), transparent 70%); filter: blur(30px);
  animation: lueur 4s ease-in-out infinite;
}
.hero-logo img { position: relative; width: 100%; border-radius: 50%; }
@keyframes lueur { 50% { opacity: .55; } }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; padding-block: 32px 48px; }
  .hero-logo { order: -1; width: min(70%, 300px); }
}

/* compte à rebours */
.compte { display: grid; gap: 8px; }
.compte-lib { font-family: var(--f-donnees); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--feu); }
.compte-cases { display: flex; gap: 8px; flex-wrap: wrap; }
.compte-cases div {
  min-width: 74px; padding: 10px 8px; text-align: center;
  background: rgba(23, 19, 14, .85); border: 1px solid var(--joint); border-top: 2px solid var(--or);
}
.compte-cases b { display: block; font-family: var(--f-titre); font-size: 32px; line-height: 1; color: var(--or-clair); font-variant-numeric: tabular-nums; }
.compte-cases span { font-family: var(--f-donnees); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--sable-2); }

/* calendrier */
.calendrier { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--joint); }
.jalon { padding: 20px; border-right: 1px solid var(--joint); display: grid; gap: 4px; position: relative; }
.jalon:last-child { border-right: 0; }
.jalon-date { font-family: var(--f-titre); font-weight: 800; font-size: 20px; color: var(--sable); }
.jalon-lib { font-family: var(--f-donnees); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--sable-2); }
.jalon.actif::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--feu); }
.jalon.actif .jalon-date { color: var(--or-clair); }
@media (max-width: 640px) {
  .calendrier { grid-template-columns: 1fr; }
  .jalon { border-right: 0; border-bottom: 1px solid var(--joint); }
  .jalon:last-child { border-bottom: 0; }
}

/* chiffres */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--joint); }
.chiffres div { padding: 26px 20px; border-right: 1px solid var(--joint); }
.chiffres div:last-child { border-right: 0; }
.chiffres b { display: block; font-family: var(--f-titre); font-weight: 900; font-size: clamp(44px, 6vw, 72px); line-height: 1; color: var(--or); font-variant-numeric: tabular-nums; }
.chiffres span { font-family: var(--f-donnees); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--sable-2); }
@media (max-width: 700px) {
  .chiffres { grid-template-columns: 1fr 1fr; }
  .chiffres div:nth-child(2) { border-right: 0; }
  .chiffres div:nth-child(-n+2) { border-bottom: 1px solid var(--joint); }
}

/* blocs */
.bloc { padding-block: 48px; }
.filet { border-top: 1px solid var(--joint); }

/* ligues + gradins */
.arene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ligues { display: grid; gap: 2px; margin-top: 24px; }
.lg { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; background: var(--pierre); }
.lg:hover { background: var(--pierre-2); }
.lg .l { font-family: var(--f-titre); font-weight: 900; font-size: 30px; color: var(--or); text-align: center; }
.lg strong { font-family: var(--f-titre); font-size: 18px; text-transform: uppercase; }
.lg p { margin: 2px 0 0; font-size: 14px; color: var(--sable-2); }
.lg .r { font-family: var(--f-donnees); font-size: 15px; color: var(--sable-2); font-variant-numeric: tabular-nums; }
.gradins { width: 100%; max-width: 460px; height: auto; justify-self: center; }
.gradins circle.g1 { fill: var(--pierre); stroke: var(--joint); }
.gradins circle.g2 { fill: #1b1610; stroke: var(--joint); }
.gradins circle.g3 { fill: var(--pierre-2); stroke: var(--joint); }
.gradins circle.g4 { fill: var(--nuit); stroke: var(--or); stroke-width: 1.5; }
.gradins text { font-family: var(--f-titre); font-weight: 900; text-anchor: middle; }
.gradins .lA { font-size: 34px; fill: var(--or); }
.gradins .lx { font-size: 20px; fill: var(--sable-2); }
@media (max-width: 820px) { .arene { grid-template-columns: 1fr; } }

/* étapes */
.etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin-top: 28px; }
.etape { background: var(--pierre); padding: 24px 20px; display: grid; gap: 10px; align-content: start; }
.etape .n { font-family: var(--f-titre); font-size: 16px; color: var(--feu); letter-spacing: .2em; }
.etape p { margin: 0; color: var(--sable-2); font-size: 15px; }
@media (max-width: 900px) { .etapes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .etapes { grid-template-columns: 1fr; } }

/* trophées */
.trophees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.trophee { border-top: 2px solid var(--or); padding-top: 16px; display: grid; gap: 8px; }
.trophee p { margin: 0; color: var(--sable-2); }
@media (max-width: 760px) { .trophees { grid-template-columns: 1fr; } }

/* appel final */
.final { border-top: 1px solid var(--joint); background: radial-gradient(ellipse at 50% 120%, rgba(226, 87, 44, .22), transparent 60%), var(--pierre); }
.final-in { padding-block: 56px; display: flex; flex-wrap: wrap; gap: 24px; align-items: end; justify-content: space-between; }
.final h2 { max-width: 16ch; margin: 0; }

/* ---------- Pages intérieures ---------- */
.entete { padding-block: 48px 28px; border-bottom: 1px solid var(--joint); display: grid; gap: 14px; }
.entete .lead { margin: 0; }

/* règlement */
.regles { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.sommaire { position: sticky; top: 100px; align-self: start; display: grid; gap: 8px; font-family: var(--f-donnees); font-size: 15px; letter-spacing: .06em; }
.sommaire a { color: var(--sable-2); text-decoration: none; }
.sommaire a:hover { color: var(--or); }
.art { padding-block: 22px; border-bottom: 1px solid var(--joint); display: grid; gap: 10px; max-width: 70ch; scroll-margin-top: 90px; }
.art .num { font-family: var(--f-titre); font-size: 13px; letter-spacing: .25em; color: var(--feu); }
.art ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--sable-2); }
.art strong { color: var(--sable); }
.a-faire { font-size: 13px; color: var(--feu); font-family: var(--f-donnees); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 820px) {
  .regles { grid-template-columns: 1fr; }
  .sommaire { position: static; grid-template-columns: 1fr 1fr; }
}

/* participants */
.deux-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.compteur { color: var(--sable-2); font-size: 17px; font-family: var(--f-donnees); letter-spacing: .1em; }
.places { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-top: 16px; }
.place {
  aspect-ratio: 1; max-width: 100%; display: grid; place-items: center;
  font-family: var(--f-donnees); font-size: 10px; color: var(--joint); font-variant-numeric: tabular-nums;
  background: var(--pierre); clip-path: polygon(50% 0, 100% 18%, 100% 62%, 50% 100%, 0 62%, 0 18%);
  transition: background .2s, color .2s;
}
.place:hover { background: var(--or); color: var(--nuit); }
.place.prise { background: var(--or); color: var(--nuit); }
@media (max-width: 760px) { .deux-col { grid-template-columns: 1fr; } }

/* classement */
.alerte { background: rgba(226, 87, 44, .1); border: 1px solid var(--feu); padding: 12px 16px; font-size: 14px; margin-bottom: 20px; }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.puce {
  font-family: var(--f-donnees); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 14px; border: 1px solid var(--joint); color: var(--sable-2); text-decoration: none;
}
.puce:hover { border-color: var(--or); color: var(--sable); }
.puce[aria-current="true"] { border-color: var(--or); background: var(--or); color: var(--nuit); }
.sep { width: 1px; background: var(--joint); margin: 0 6px; }
.tableau { overflow-x: auto; border: 1px solid var(--joint); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-variant-numeric: tabular-nums; }
th {
  font-family: var(--f-donnees); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sable-2); text-align: left; padding: 12px 14px; background: var(--pierre); border-bottom: 1px solid var(--joint);
}
td { padding: 11px 14px; border-bottom: 1px solid var(--joint); font-family: var(--f-donnees); font-size: 17px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--pierre); }
td.rg { font-family: var(--f-titre); font-weight: 900; font-size: 20px; width: 64px; }
tr.ceinture td.rg { color: var(--or); }
.pastille {
  display: inline-block; font-family: var(--f-titre); font-weight: 800; font-size: 13px;
  min-width: 26px; height: 26px; line-height: 24px; padding: 0 4px; text-align: center;
  border: 1px solid var(--or); color: var(--or);
}
.barres { display: inline-flex; gap: 3px; vertical-align: middle; }
.barres i { width: 9px; height: 14px; background: var(--joint); }
.barres i.on { background: var(--sable); }
.barres.dp i.on { background: var(--vert); }
.legende { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--sable-2); }

/* partenaires / marathons */
.cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.carte { background: var(--pierre); padding: 26px 22px; display: grid; gap: 10px; align-content: start; }
.carte p { margin: 0; color: var(--sable-2); }
@media (max-width: 820px) { .cartes { grid-template-columns: 1fr; } }
.vide { border: 1px dashed var(--joint); padding: 36px 24px; display: grid; gap: 12px; justify-items: start; margin-top: 32px; }
.vide p { margin: 0; color: var(--sable-2); max-width: 60ch; }
.vide .mail { color: var(--sable); }
.selection { user-select: all; color: var(--or); }
.carte-zone { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.carte-zone .vide { margin-top: 0; }
.france { width: 100%; max-width: 420px; height: auto; justify-self: center; }
.france path { fill: var(--pierre); stroke: var(--joint); stroke-width: 2; }
.france text { font-family: var(--f-donnees); font-size: 13px; letter-spacing: 3px; fill: var(--sable-2); text-anchor: middle; }
@media (max-width: 820px) { .carte-zone { grid-template-columns: 1fr; } }

/* accès */
.acces-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.panneau { background: var(--pierre); border: 1px solid var(--joint); padding: 28px; display: grid; gap: 18px; align-content: start; }
.onglets { display: flex; border-bottom: 1px solid var(--joint); }
.onglets a {
  flex: 1; text-align: center; padding: 12px 6px; text-decoration: none;
  border-bottom: 2px solid transparent; color: var(--sable-2);
  font-family: var(--f-donnees); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 14px;
}
.onglets a[aria-current="true"] { color: var(--sable); border-color: var(--feu); }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-family: var(--f-donnees); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sable-2); }
input, select {
  font: inherit; font-family: var(--f-texte); font-size: 16px; text-transform: none; letter-spacing: 0;
  padding: 11px 12px; background: var(--nuit); color: var(--sable); border: 1px solid var(--joint); border-radius: 0; width: 100%;
}
input:focus, select:focus { border-color: var(--or); outline: none; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note { margin: 0; font-size: 14px; color: var(--sable-2); border-left: 2px solid var(--or); padding-left: 12px; }
.msg { margin: 0; font-size: 14px; color: var(--or-clair); }
.atouts { display: grid; gap: 20px; align-content: start; }
.atout { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.atout .i { font-family: var(--f-titre); font-size: 20px; color: var(--or); }
.atout p { margin: 4px 0 0; color: var(--sable-2); font-size: 15px; }
@media (max-width: 820px) { .acces-grille { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--joint); margin-top: 48px; }
.foot { padding-block: 28px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--sable-2); }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 40px; height: 40px; border-radius: 50%; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--sable-2); text-decoration: none; }
.foot-links a:hover { color: var(--or); }

/* Animations réduites si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   v0.3 — Espace coureur, back-office, formulaires
   ========================================================= */
.flash { margin: 18px 0 0; padding: 12px 16px; border: 1px solid var(--or); background: rgba(217, 164, 65, .1); color: var(--sable); font-size: 15px; }
.flash.ko { border-color: var(--feu); background: rgba(226, 87, 44, .12); }
.erreurs { margin: 0; padding: 12px 16px 12px 32px; border: 1px solid var(--feu); background: rgba(226, 87, 44, .1); font-size: 14px; display: grid; gap: 4px; }
button[disabled] { opacity: .45; cursor: not-allowed; }
small { color: var(--sable-2); font-size: 13px; }
.or { color: var(--or); }

/* mot de passe + bouton œil */
.mdp { display: flex; }
.mdp input { flex: 1; min-width: 0; }
.oeil { background: var(--pierre-2); border: 1px solid var(--joint); border-left: 0; color: var(--sable-2); padding: 0 14px; cursor: pointer; font-family: var(--f-donnees); letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.oeil:hover { color: var(--or); }
label.case { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-family: var(--f-texte); font-size: 15px; color: var(--sable); }
label.case input { width: 18px; height: 18px; accent-color: var(--or); }

/* en-tête de l'espace */
.ligne-infos { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; color: var(--sable-2); font-family: var(--f-donnees); font-size: 16px; letter-spacing: .04em; }
.ligne-infos strong { color: var(--sable); }
.etat { display: inline-block; font-family: var(--f-donnees); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--joint); color: var(--sable-2); }
.etat.ok { border-color: var(--vert); color: var(--vert); }
.etat.attente { border-color: var(--or); color: var(--or); }
.etat.ko { border-color: var(--feu); color: var(--feu); }
.temps-cumule { margin: 18px 0 0; font-family: var(--f-donnees); font-size: 18px; color: var(--sable-2); }
.temps-cumule strong { color: var(--or-clair); font-family: var(--f-titre); }

/* listes de résultats / marathons */
.liste-res { display: grid; gap: 2px; margin-top: 16px; }
.res { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--pierre); flex-wrap: wrap; }
.res > div:first-child { display: grid; gap: 3px; min-width: 0; }
.res span { font-size: 14px; color: var(--sable-2); }
.res .motif { color: var(--feu); }
.res-droite { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.res-droite b { font-family: var(--f-donnees); font-size: 18px; font-variant-numeric: tabular-nums; }
.res.masque { opacity: .5; }
.lien-btn { background: none; border: 0; padding: 0; color: var(--or); cursor: pointer; font: inherit; font-size: 14px; text-decoration: underline; }
.lien-btn.rouge, .btn.rouge { color: var(--feu); border-color: var(--feu); }
.btn.mini { padding: 7px 14px; font-size: 13px; }
td.actions { display: grid; gap: 8px; min-width: 210px; }
td small { display: inline-block; margin-top: 2px; }
.refus { display: flex; gap: 6px; }
.refus input { padding: 6px 8px; font-size: 13px; }
.filtres.sous { margin-top: -6px; }
.filtres.sous .puce { font-size: 12px; padding: 6px 10px; }
.panneau h3 { margin-bottom: 4px; }

/* offre partenaires */
.offre { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; margin-top: 32px; padding: 32px 28px; background: var(--pierre); border-top: 2px solid var(--or); }
.offre h2 { margin-top: 10px; }
.offre ul { margin: 0; padding-left: 20px; display: grid; gap: 12px; color: var(--sable-2); }
.offre strong { color: var(--sable); }
@media (max-width: 760px) { .offre { grid-template-columns: 1fr; } }

/* =========================================================
   v0.4 — Page partenaires et formulaires de demande
   ========================================================= */
.lead.une-ligne { max-width: none; }
@media (min-width: 1000px) { .lead.une-ligne { white-space: nowrap; } }
.cartes.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .cartes.deux { grid-template-columns: 1fr; } }
.offre + .offre { margin-top: 2px; }
.offre-corps { display: grid; gap: 22px; justify-items: start; }
textarea { font: inherit; font-family: var(--f-texte); font-size: 16px; text-transform: none; letter-spacing: 0; padding: 11px 12px; background: var(--nuit); color: var(--sable); border: 1px solid var(--joint); border-radius: 0; width: 100%; resize: vertical; }
textarea:focus { border-color: var(--or); outline: none; }
fieldset.choix { border: 1px solid var(--joint); padding: 12px 14px; margin: 0; display: grid; gap: 10px; }
fieldset.choix legend { font-family: var(--f-donnees); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sable-2); padding: 0 6px; }
.panneau form h3 { margin-top: 6px; font-size: 18px; color: var(--or); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.atouts .mail { margin: 0; color: var(--sable-2); }
.demande .etat { justify-self: start; }
.demande .message { margin: 6px 0 0; padding: 10px 12px; background: var(--nuit); color: var(--sable); white-space: pre-wrap; font-size: 14px; }
.entete .eyebrow a { color: inherit; }

/* v0.4.1 — blocs Organisateurs / Partenaires : titre au-dessus du texte (corrige le chevauchement) */
.offre { grid-template-columns: 1fr; gap: 20px; }
.offre > div { min-width: 0; }
.offre h2 { font-size: clamp(30px, 4.5vw, 52px); overflow-wrap: anywhere; }
.offre ul { max-width: 80ch; }

/* v0.4.2 — blocs Organisateurs / Partenaires : texte pleine largeur, fond éclairci de 5 % */
.offre { background: #231f1a; }
.offre ul { max-width: none; }

/* v0.4.2 — blocs Organisateurs / Partenaires : pleine largeur, fond éclairci de 5 %, titres réduits d'1/4 */
.offre { background: color-mix(in srgb, var(--pierre) 95%, #ffffff); }
.offre ul { max-width: none; }
.offre h2 { font-size: clamp(23px, 3.4vw, 39px); }

/* =========================================================
   v0.5 — Titres de pages réduits d'1/3 + page Les marathons
   ========================================================= */
.entete h1 { font-size: clamp(27px, 4.7vw, 56px); }
.entete { padding-block: 36px 22px; }

.calendrier-marathons { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.cal-gauche { min-width: 0; }
.cal-droite { position: sticky; top: 96px; display: grid; gap: 10px; }
.table-marathons { min-width: 820px; }
.table-marathons td { font-size: 15px; padding: 10px 12px; }
.table-marathons th { padding: 11px 12px; white-space: nowrap; }
.table-marathons td.nom { font-family: var(--f-texte); font-weight: 600; }
.table-marathons td.nb { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-marathons tr.sur-carte { cursor: pointer; }
.table-marathons .ligne-vide { text-align: center; color: var(--sable-2); padding: 36px 16px; font-family: var(--f-texte); }
.table-marathons .btn.mini { white-space: nowrap; }

.carte-france { position: relative; height: 520px; max-height: 70vh; background: var(--pierre); border: 1px solid var(--joint); z-index: 0; }
.cal-droite { position: sticky; }
.cal-droite { isolation: isolate; }
.carte-vide { position: absolute; top: 46%; left: 0; right: 0; margin: 0; text-align: center; pointer-events: none; z-index: 2;
  font-family: var(--f-donnees); letter-spacing: .24em; text-transform: uppercase; font-size: 13px; color: var(--sable-2); }
.carte-leg .pt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.pt.or { background: var(--or); } .pt.feu { background: var(--feu); }
.rouge-txt { color: var(--feu); }
@media (max-width: 980px) {
  .calendrier-marathons { grid-template-columns: 1fr; }
  .cal-droite { position: static; }
  .carte-france { height: 380px; }
}

/* Fenêtres de la carte aux couleurs du site */
.leaflet-container { font-family: var(--f-texte); background: var(--pierre); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--pierre-2); color: var(--sable); border: 1px solid var(--joint); border-radius: 0; }
.leaflet-popup-content { margin: 12px 14px; font-size: 14px; line-height: 1.5; }
.leaflet-popup-content a { color: var(--or); }
.leaflet-container a.leaflet-popup-close-button { color: var(--sable-2); }
.leaflet-control-attribution { background: rgba(11, 9, 7, .75) !important; color: var(--sable-2); }
.leaflet-control-attribution a { color: var(--sable-2); }
.leaflet-bar a { background: var(--pierre-2); color: var(--sable); border-color: var(--joint); }
.leaflet-bar a:hover { background: var(--pierre); color: var(--or); }

/* Admin : réglages avancés repliables */
details.avance { border: 1px solid var(--joint); padding: 10px 14px; }
details.avance summary { cursor: pointer; font-family: var(--f-donnees); letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: var(--sable-2); }
details.avance[open] { display: grid; gap: 10px; }

/* v0.5.1 — fond Plan IGN passé en version sombre (ambiance arène) */
.carte-france .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.8) contrast(.95) saturate(.35); }

/* =========================================================
   v0.6 — Fanions des participants, fiche d'identité, choix du dossard
   ========================================================= */
.compteurs-pionniers { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--joint); }
.compteurs-pionniers div { padding: 18px 20px; border-right: 1px solid var(--joint); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.compteurs-pionniers div:last-child { border-right: 0; }
.compteurs-pionniers b { font-family: var(--f-titre); font-size: clamp(28px, 4vw, 42px); color: var(--or); line-height: 1; font-variant-numeric: tabular-nums; }
.compteurs-pionniers span { font-family: var(--f-donnees); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--sable-2); }
@media (max-width: 700px) {
  .compteurs-pionniers { grid-template-columns: 1fr 1fr; }
  .compteurs-pionniers div:nth-child(2) { border-right: 0; }
  .compteurs-pionniers div:nth-child(-n+2) { border-bottom: 1px solid var(--joint); }
}

.bloc:has(.arene-fanions) { position: relative; }
.arene-fanions { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 1100px) { .arene-fanions { grid-template-columns: repeat(14, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .arene-fanions { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; } }
@media (max-width: 440px)  { .arene-fanions { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

.fanion {
  position: relative; aspect-ratio: 1 / 1.18; max-width: 100%; padding: 0; border: 0; margin: 0;
  display: grid; place-items: center; overflow: hidden;
  clip-path: polygon(50% 0, 100% 14%, 100% 64%, 50% 100%, 0 64%, 0 14%);
  background: var(--pierre); color: var(--joint); font: inherit;
}
.fanion .no { position: absolute; left: 0; right: 0; bottom: 22%; text-align: center; font-family: var(--f-donnees); font-size: 10px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.fanion.libre { background: var(--pierre); }
.fanion.libre .no { position: static; color: #4a3d2b; }
.fanion.pris { cursor: pointer; background: var(--or); transition: transform .15s ease, filter .15s ease; }
.fanion.pris.f { background: var(--feu); }
.fanion.pris img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: cover;
  clip-path: polygon(50% 0, 100% 14%, 100% 64%, 50% 100%, 0 64%, 0 14%); }
.fanion.pris .ini { font-family: var(--f-titre); font-weight: 900; font-size: clamp(16px, 2vw, 24px); color: var(--nuit); margin-bottom: 18%; }
.fanion.pris .no { color: var(--sable); background: rgba(11, 9, 7, .7); bottom: 18%; padding: 1px 0; font-size: 9px; }
.fanion.pris:hover, .fanion.pris:focus-visible { transform: scale(1.12); filter: brightness(1.12); z-index: 2; outline: none; }
.fanion.pris { animation: allumage .6s ease both; }
@keyframes allumage { from { filter: brightness(2.2); } to { filter: none; } }

.fiche-id {
  position: absolute; z-index: 20; width: 270px; display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center;
  padding: 14px; background: var(--pierre-2); border: 1px solid var(--or); box-shadow: 0 10px 34px rgba(0, 0, 0, .6);
  pointer-events: none;
}
.fiche-photo { width: 84px; height: 84px; display: grid; place-items: center; background: var(--or); color: var(--nuit);
  font-family: var(--f-titre); font-weight: 900; font-size: 34px; overflow: hidden;
  clip-path: polygon(50% 0, 100% 14%, 100% 64%, 50% 100%, 0 64%, 0 14%); }
.fiche-photo img { width: 100%; height: 100%; object-fit: cover; }
.fiche-txt { display: grid; gap: 2px; min-width: 0; }
.fiche-txt strong { font-family: var(--f-titre); font-size: 20px; line-height: 1.1; text-transform: uppercase; }
.fiche-txt span { font-size: 14px; color: var(--sable-2); }
.fiche-txt .eyebrow { font-size: 11px; }
.fiche-txt .fiche-rang { color: var(--or-clair); font-family: var(--f-donnees); font-weight: 600; letter-spacing: .06em; margin-top: 4px; }

/* Mon espace : carte d'identité + formulaires */
.profil-pionnier { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; border-bottom: 1px solid var(--joint); }
.carte-id { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; padding: 20px; background: var(--pierre); border-top: 2px solid var(--or); }
.carte-id-photo { width: 140px; height: 165px; display: grid; place-items: center; background: var(--or); overflow: hidden;
  clip-path: polygon(50% 0, 100% 14%, 100% 64%, 50% 100%, 0 64%, 0 14%); }
.carte-id-photo img { width: 100%; height: 100%; object-fit: cover; }
.carte-id-photo span { font-family: var(--f-titre); font-weight: 900; font-size: 56px; color: var(--nuit); margin-bottom: 18%; }
.carte-id-txt { display: grid; gap: 4px; min-width: 0; }
.carte-id-txt strong { font-family: var(--f-titre); font-size: 26px; text-transform: uppercase; }
.carte-id-txt span { color: var(--sable-2); }
.profil-forms { display: grid; gap: 14px; }
.ligne-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
@media (max-width: 820px) { .profil-pionnier { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .carte-id { grid-template-columns: 96px 1fr; } .carte-id-photo { width: 96px; height: 113px; } .ligne-form { grid-template-columns: 1fr; } }

.grille-dossards { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; margin-top: 20px; }
@media (max-width: 1100px) { .grille-dossards { grid-template-columns: repeat(14, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .grille-dossards { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.grille-dossards .num { display: block; text-transform: none; letter-spacing: 0; }
.grille-dossards .num input { position: absolute; opacity: 0; pointer-events: none; }
.grille-dossards .num span { display: block; text-align: center; padding: 9px 0; border: 1px solid var(--joint); background: var(--pierre);
  font-family: var(--f-donnees); font-weight: 600; font-size: 14px; color: var(--sable); font-variant-numeric: tabular-nums; cursor: pointer; }
.grille-dossards .num:hover span { border-color: var(--or); color: var(--or); }
.grille-dossards .num input:checked + span { background: var(--or); border-color: var(--or); color: var(--nuit); }
.grille-dossards .num input:focus-visible + span { outline: 2px solid var(--or); outline-offset: 2px; }
.grille-dossards .num.pris span { background: transparent; color: #4a3d2b; border-style: dashed; cursor: not-allowed; text-decoration: line-through; }
.dossard-valider { display: grid; gap: 14px; justify-items: start; margin-top: 22px; }
.dossard-choisi { margin: 0; font-family: var(--f-donnees); font-size: 18px; color: var(--sable-2); }
.dossard-choisi strong { font-family: var(--f-titre); color: var(--or-clair); font-size: 24px; }

/* =========================================================
   v0.7 — Accroche d'accueil + pré-inscription
   ========================================================= */
.hero h1.accroche { font-size: clamp(38px, 6.4vw, 88px); line-height: 1; }
.hero h1.accroche .doigt {
  display: inline-block; font-size: .9em; line-height: 1; vertical-align: -.08em;
  transform-origin: 60% 80%; animation: pointe 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(226, 87, 44, .55));
}
@keyframes pointe { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.18) translateY(-2px); } }
.file-attente { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--pierre); border-top: 2px solid var(--feu); }
.file-attente b { font-family: var(--f-titre); font-size: 46px; line-height: 1; color: var(--or); font-variant-numeric: tabular-nums; }
.file-attente span { font-family: var(--f-donnees); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--sable-2); }
.barre-export { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 14px; }

/* =========================================================
   v0.7.1 — Hero réorganisé
   ========================================================= */
.hero-in { display: grid; grid-template-columns: 1fr; gap: 26px; padding-block: 48px 56px; }
.hero-tete { display: grid; grid-template-columns: minmax(0, 1fr) clamp(150px, 24vw, 330px); gap: 32px; align-items: stretch; }
.hero-txt { display: grid; gap: 16px; align-content: center; min-width: 0; }
/* Accroche à la taille des autres titres de l'accueil */
.hero h1.accroche { font-size: clamp(32px, 5vw, 58px); line-height: 1.02; }
/* Logo : remplit la hauteur du bloc texte, sans déborder */
.hero-logo { position: relative; width: 100%; height: 100%; min-height: 150px; justify-self: stretch; }
.hero-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.hero-logo::before { inset: 12%; }
.hero .lead { margin: 0; max-width: none; font-size: 19px; line-height: 1.6; }
.hero .lead strong { color: var(--sable); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 28px; }
.hero-actions .ctas { margin: 0; }
@media (max-width: 760px) {
  .hero-tete { grid-template-columns: minmax(0, 1fr) 110px; gap: 16px; }
  .hero-logo { min-height: 110px; }
}

/* Étape I : ce que comprend l'inscription */
.inclus { display: grid; gap: 8px; margin-top: 4px; }
.inclus > span { font-family: var(--f-donnees); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--or); }
.inclus ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--sable-2); font-size: 15px; }
.inclus ul li::marker { color: var(--or); }
.inclus .ceinture-txt { margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--joint); font-size: 15px; color: var(--sable-2); }
.inclus .ceinture-txt strong { color: var(--or-clair); font-family: var(--f-titre); letter-spacing: .02em; }
/* v0.7.1 — logo rond, calé sur la hauteur du bloc texte */
.hero-logo { order: 0; display: flex; justify-content: flex-end; align-items: center; width: 100%; height: auto; min-height: 0; }
.hero-logo img { position: static; height: 100%; max-height: 330px; width: auto; max-width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; }
.hero-logo::before { inset: 6% 0 6% auto; aspect-ratio: 1 / 1; height: 88%; width: auto; }
@media (max-width: 860px) {
  .hero-tete { grid-template-columns: 1fr; gap: 18px; }
  .hero-logo { order: -1; justify-content: flex-start; width: auto; height: 120px; }
  .hero-logo::before { inset: 0 auto 0 0; height: 100%; }
}
/* le logo ne dicte plus la hauteur : il épouse celle du texte */
.hero-logo { position: relative; display: block; }
.hero-logo img { position: absolute; top: 0; bottom: 0; right: 0; height: 100%; max-height: none; width: auto; }
.hero-logo::before { top: 6%; bottom: 6%; right: 0; left: auto; height: auto; }
@media (max-width: 860px) {
  .hero-logo { height: 120px; }
  .hero-logo img { left: 0; right: auto; }
  .hero-logo::before { left: 0; right: auto; top: 0; bottom: 0; }
}
.inclus .ceinture-txt strong { white-space: nowrap; }

/* =========================================================
   v0.8 — Pré-inscription : compte à rebours à droite du titre
   ========================================================= */
.entete-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 32px; }
.entete-titre { display: grid; gap: 14px; min-width: 0; }
.feu-txt { color: var(--feu); font-weight: 600; }

/* v0.9 — bouton Accès bloqué (visible, non cliquable) */
.menu span.acces.bloque {
  display: block; padding: 8px 12px; margin-left: 8px; border: 1px solid var(--joint); color: var(--sable-2);
  font-family: var(--f-donnees); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
  opacity: .55; cursor: not-allowed; user-select: none;
}
@media (max-width: 980px) { .menu span.acces.bloque { margin: 8px 0 0; text-align: center; } }
.etapes-install { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--sable-2); } .etapes-install strong { color: var(--sable); } code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; color: var(--or-clair); word-break: break-all; }

/* =========================================================
   v1.1 — Menu de gestion admin
   ========================================================= */
.menu-admin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-top: 28px; }
.menu-admin a {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: var(--pierre); text-decoration: none;
  color: var(--sable-2); font-family: var(--f-titre); font-weight: 800; font-size: clamp(16px, 2vw, 22px); text-transform: uppercase;
  border-top: 2px solid transparent; transition: background .2s, color .2s;
}
.menu-admin a:hover { background: var(--pierre-2); color: var(--sable); }
.menu-admin a[aria-current="page"] { color: var(--sable); border-top-color: var(--or); background: var(--pierre-2); }
.menu-admin .n { font-family: var(--f-donnees); font-size: 14px; color: var(--or); border: 1px solid var(--or); width: 28px; height: 28px; display: grid; place-items: center; flex-shrink: 0; }
.menu-admin .badge { margin-left: auto; background: var(--feu); color: var(--nuit); font-family: var(--f-donnees); font-weight: 700; font-size: 13px; min-width: 24px; height: 24px; padding: 0 6px; display: grid; place-items: center; border-radius: 12px; }
@media (max-width: 640px) { .menu-admin { grid-template-columns: 1fr; } }
.alerte-txt { color: var(--feu) !important; }
.visuel-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.recherche-admin { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.recherche-admin input[type=search] { flex: 1; min-width: 220px; }
.table-admin { min-width: 1100px; }
.table-admin td { font-size: 15px; padding: 9px 11px; font-family: var(--f-texte); }
.table-admin td.nb { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-admin th { white-space: nowrap; padding: 10px 11px; }
.table-admin .etat { white-space: nowrap; }

/* =========================================================
   v1.2 — Organisateurs, décisions, liens d'inscription
   ========================================================= */
.bandeau-invit { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px;
  padding: 14px 18px; margin-bottom: 16px; background: var(--pierre); border-left: 2px solid var(--or); }
.bandeau-invit > div { display: grid; gap: 2px; }
.bandeau-invit span { font-size: 14px; color: var(--sable-2); }
.duo-btn { display: flex; gap: 6px; }
.fiche-demande { background: var(--pierre); border-top: 2px solid var(--or); padding: 22px 24px; margin-bottom: 18px; display: grid; gap: 14px; }
.fiche-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.fiche-tete h3 { margin-top: 6px; }
.fiche-demande dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.fiche-demande dt { font-family: var(--f-donnees); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--sable-2); }
.fiche-demande dd { margin: 0; }
.fiche-demande .message { margin: 0; padding: 12px 14px; background: var(--nuit); white-space: pre-wrap; }
tr.ligne-active td { background: var(--pierre-2); }
input[readonly] { opacity: .7; cursor: not-allowed; }
@media (max-width: 560px) { .fiche-demande dl { grid-template-columns: 1fr; } }
/* tableaux admin plus compacts : les actions restent visibles */
.table-admin { min-width: 0; }
.table-admin td.actions { min-width: 150px; gap: 6px; }
.table-admin td.actions .btn.mini { padding: 6px 12px; }
.table-admin small { white-space: nowrap; }

/* =========================================================
   v1.3 — Admin : stats réduites de moitié, icônes, tableau + carte
   ========================================================= */
.chiffres-admin div { padding: 13px 18px; }
.chiffres-admin b { font-size: clamp(22px, 3vw, 36px); }
.chiffres-admin span { font-size: 12px; }
.menu-admin { margin-top: 18px; }
.menu-admin a { padding: 11px 16px; font-size: clamp(14px, 1.5vw, 17px); gap: 10px; }
.menu-admin .n { width: 22px; height: 22px; font-size: 12px; }
.menu-admin .badge { min-width: 20px; height: 20px; font-size: 12px; }

/* Boutons icônes */
td.icos { white-space: nowrap; }
td.icos .f-ico, td.icos > a.ico { display: inline-block; vertical-align: middle; margin: 0 2px; }
.ico {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; cursor: pointer;
  background: var(--nuit); border: 1px solid var(--joint); color: var(--sable-2); text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.ico:hover { border-color: var(--or); color: var(--or); }
.ico-ok { color: var(--vert); border-color: rgba(127, 168, 106, .45); }
.ico-ok:hover { background: var(--vert); color: var(--nuit); border-color: var(--vert); }
.ico-ko { color: var(--feu); border-color: rgba(226, 87, 44, .45); }
.ico-ko:hover { background: var(--feu); color: var(--nuit); border-color: var(--feu); }
.ico-gris:hover { border-color: var(--feu); color: var(--feu); }
.ico-leg { margin-top: 12px; }
.ico-leg span { display: inline-flex; align-items: center; gap: 6px; }
.ico-leg svg { width: 15px; height: 15px; }

/* Tableau à gauche, carte à droite */
.tableau-carte { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tc-gauche { min-width: 0; }
.tc-droite { position: sticky; top: 96px; }
.carte-admin-zone { position: relative; display: grid; gap: 8px; isolation: isolate; }
.carte-admin-zone .carte-france { height: 480px; }
.pt.vert { background: var(--vert); } .pt.gris { background: #8a7d66; }
tr.masque td { opacity: .55; }
.form-marathon { margin-bottom: 22px; max-width: 760px; }
@media (max-width: 1000px) { .tableau-carte { grid-template-columns: 1fr; } .tc-droite { position: static; } .carte-admin-zone .carte-france { height: 360px; } }
td.icos { white-space: normal; min-width: 112px; }
td.icos .f-ico, td.icos > a.ico { margin: 2px 1px; }
.ico { width: 30px; height: 30px; }
.tableau-carte .table-admin th:last-child { min-width: 112px; }
/* tableau + carte : colonnes resserrées pour que les icônes tiennent */
.tableau-carte { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.tableau-carte .table-admin th { padding: 9px 8px; font-size: 11px; letter-spacing: .08em; }
.tableau-carte .table-admin td { padding: 9px 8px; font-size: 14px; }
.tableau-carte .table-admin .etat { padding: 3px 7px; font-size: 11px; letter-spacing: .1em; }
.tableau-carte td.icos { min-width: 104px; }

/* v1.4 — visuels des trophées */
.trophee-visuel { margin: 10px 0 0; height: 300px; display: grid; place-items: center; background: var(--pierre); border: 1px solid var(--joint); overflow: hidden; }
.trophee-visuel img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.trophee:hover .trophee-visuel img { transform: scale(1.04); }
@media (max-width: 760px) { .trophee-visuel { height: 240px; } }
.trophee-visuel { position: relative; display: block; }
.trophee-visuel img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.trophees { align-items: stretch; }
.trophee { display: flex; flex-direction: column; }
.trophee .trophee-visuel { margin-top: auto; }
.trophee p { margin-bottom: 10px; }

/* v1.4.1 — carte éclaircie : couleurs claires du Plan IGN, légèrement teintées « parchemin » */
.carte-france .leaflet-tile-pane { filter: sepia(.25) saturate(.85) brightness(.97); }
.carte-vide { color: #5a4a33; text-shadow: 0 0 6px rgba(255, 255, 255, .8); }
.renvoi { margin-top: 26px; }

/* v1.6 — bouton de déconnexion admin */
.session-admin { display: grid; gap: 6px; justify-items: end; text-align: right; }
.session-admin .btn { display: inline-flex; align-items: center; gap: 8px; }
.session-admin svg { width: 16px; height: 16px; }
#minuteur-admin { font-variant-numeric: tabular-nums; font-weight: 600; }
@media (max-width: 640px) { .session-admin { justify-items: start; text-align: left; } }

/* =========================================================
   v1.8 — liens verrouillés, FAQ, contact, RGPD
   ========================================================= */
.menu span.lien-bloque {
  display: block; padding: 8px 12px; color: var(--sable-2); opacity: .45; cursor: not-allowed; user-select: none;
  font-family: var(--f-donnees); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
}
.foot-links .lien-bloque { opacity: .45; cursor: not-allowed; }
.faq { display: grid; gap: 10px; max-width: 80ch; }
.faq h2 { font-family: var(--f-titre); font-size: 20px; color: var(--or); margin: 26px 0 4px; letter-spacing: .08em; }
.faq details { border: 1px solid var(--joint); background: rgba(255,255,255,.02); }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--sable); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--or); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 16px; color: var(--sable-2); line-height: 1.6; }
.faq details strong { color: var(--sable); }
.rgpd { max-width: 80ch; }
.rgpd h2 { font-family: var(--f-titre); font-size: 20px; color: var(--or); margin: 30px 0 10px; letter-spacing: .06em; }
.rgpd p, .rgpd li { color: var(--sable-2); line-height: 1.6; }
.rgpd strong { color: var(--sable); }
.rgpd .tableau table td { vertical-align: top; }
/* Menu à 7-9 entrées : plus compact sur écran moyen, pas de retour à la ligne */
.menu a, .menu span.lien-bloque { white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1400px) {
  .menu a, .menu span.lien-bloque { padding: 8px 8px; letter-spacing: .07em; font-size: 14px; }
  .menu a.acces, .menu span.acces.bloque { margin-left: 4px; }
  .logo-txt { font-size: .9em; }
}
@media (max-width: 980px) { .menu span.lien-bloque { padding: 12px 4px; } }

/* =========================================================
   v1.9 — MODE CAMPAGNE (accueil, marathons, partenaires simplifiés)
   ========================================================= */
.regles-cles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--joint); background: rgba(11, 9, 7, .55); }
.regles-cles .rc { padding: 22px 24px; display: grid; gap: 4px; align-content: start; }
.regles-cles .rc + .rc { border-left: 1px solid var(--joint); }
.regles-cles b { font-family: var(--f-titre); font-size: clamp(40px, 5vw, 60px); line-height: 1; color: var(--or); }
.regles-cles .rc-lib { font-family: var(--f-donnees); font-weight: 600; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--sable); }
.regles-cles p { margin: 4px 0 0; color: var(--sable-2); }
.rc-devise { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; }
.rc-devise p { margin: 0; font-family: var(--f-titre); font-size: clamp(22px, 2.6vw, 32px); color: var(--sable); }
.lien-plus { font-family: var(--f-donnees); font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--or); text-decoration: none; border-bottom: 1px solid var(--or); padding-bottom: 2px; }
.lien-plus:hover { color: var(--sable); border-color: var(--sable); }
.appel { border: 1px solid var(--joint); background: radial-gradient(ellipse at 50% 130%, rgba(226, 87, 44, .18), transparent 60%), var(--pierre); padding: clamp(28px, 5vw, 56px); display: grid; gap: 28px; justify-items: start; }
.appel-txt { margin: 0; font-family: var(--f-titre); font-size: clamp(22px, 3vw, 36px); line-height: 1.3; color: var(--sable); max-width: 32ch; }
.appel-txt .or { color: var(--or); }
@media (max-width: 760px) {
  .regles-cles { grid-template-columns: 1fr; }
  .regles-cles .rc + .rc { border-left: 0; border-top: 1px solid var(--joint); }
}

/* =========================================================
   v2.0 — Pré-inscription : tableau des 3 marathons
   ========================================================= */
.trois-m { border: 1px solid var(--joint); padding: 16px 18px 18px; margin: 4px 0; display: grid; gap: 12px; }
.trois-m legend { padding: 0 6px; font-family: var(--f-donnees); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: var(--sable); }
.oui-non { display: flex; gap: 24px; }
.table-m { display: grid; gap: 8px; }
.table-m[hidden] { display: none; }
.tm-tete, .tm-ligne { display: grid; grid-template-columns: 150px minmax(0, 1fr) 110px; gap: 8px; }
.tm-tete span { font-family: var(--f-donnees); font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: var(--sable-2); }
.tm-ligne label { margin: 0; }
.tm-lib { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pas-assez { margin: 0; padding: 14px 16px; border-left: 3px solid var(--feu); background: rgba(226, 87, 44, .1); color: var(--sable); font-weight: 500; }
.pas-assez[hidden] { display: none; }
button[disabled].btn { opacity: .4; cursor: not-allowed; }
.m-decl { display: inline-block; white-space: nowrap; text-align: left; }
@media (max-width: 640px) {
  .tm-tete { display: none; }
  .tm-ligne { grid-template-columns: 1fr 1fr; padding-top: 8px; border-top: 1px solid var(--joint); }
  .tm-ligne label:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .tm-lib { position: static; width: auto; height: auto; clip: auto; font-size: 12px; }
}
/* v2.2 — avantages organisateurs : puces plus visibles */
.offre-corps ul.avantages { gap: 12px; }
.offre-corps ul.avantages li::marker { color: var(--or); }
/* v2.3 — page Marathons (campagne) : appel à gauche, carte indicative à droite */
.appel-carte { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px 48px; }
.appel-gauche { display: grid; gap: 28px; justify-items: start; }
.appel-droite { width: 100%; display: grid; gap: 10px; }
.carte-campagne { height: 420px; }
.pt.pointille { background: rgba(217, 164, 65, .25); border: 2px dashed var(--or); width: 12px; height: 12px; }
.leaflet-tooltip { background: var(--pierre-2); color: var(--sable); border: 1px solid var(--joint); border-radius: 0; box-shadow: none; }
@media (max-width: 980px) { .appel-carte { grid-template-columns: 1fr; } .carte-campagne { height: 340px; } }
/* v2.7 — compteur de pré-inscrits sur l'accueil (4e case) */
.regles-cles.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.regles-cles .rc-compteur b { color: var(--feu); }
@media (max-width: 1100px) { .regles-cles.quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); } .regles-cles.quatre .rc:nth-child(3) { border-left: 0; } .regles-cles.quatre .rc:nth-child(n+3) { border-top: 1px solid var(--joint); } }
@media (max-width: 760px) { .regles-cles.quatre { grid-template-columns: 1fr; } }


/* =========================================================
   v3 — DESIGN CLAIR « DOSSARD DE COURSE »
   Cette couche corrige tout ce qui supposait un fond noir.
   ========================================================= */
body { background: var(--page); color: var(--sable); font-size: 17px; }
a { color: var(--or); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--or-clair); outline-offset: 2px; }

/* Plus de petites capitales espacées partout : texte normal, lisible */
body *:not(.garde-maj) { text-transform: none !important; letter-spacing: normal !important; }

/* Titres : condensés, sportifs, en minuscules */
h1, h2, h3 { font-family: var(--f-titre); color: var(--sable); line-height: .98; }
h1 { font-weight: 900; font-size: clamp(48px, 7.4vw, 96px); }
h2 { font-weight: 800; font-size: clamp(34px, 4.6vw, 56px); }
h3 { font-weight: 800; font-size: 24px; }
.eyebrow { font-family: var(--f-texte); font-size: 16px; font-weight: 600; color: var(--feu); }
.lead { color: var(--sable-2); font-size: 19px; }
.brouillon { font-family: var(--f-texte); font-size: 14px; border-radius: 4px; }

/* En-tête blanc */
.site-header { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--joint); }
.logo-txt { color: var(--sable); font-size: 22px; font-weight: 900; }
.logo-txt small { font-family: var(--f-texte); font-size: 13px; font-weight: 500; color: var(--sable-2); margin-top: 1px; }
.logo img { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--joint); }
.tricolore { height: 4px; }
.tricolore span:nth-child(2) { background: #fff; }
.menu a, .menu span.lien-bloque, .menu span.acces.bloque { font-family: var(--f-texte); font-size: 16px; font-weight: 600; color: var(--sable-2); }
.menu a[aria-current="page"] { color: var(--sable); border-color: var(--feu); }
.menu a.acces { border: 2px solid var(--sable); color: var(--sable); border-radius: 6px; }
.menu a.acces:hover, .menu a.acces[aria-current="page"] { background: var(--sable); color: #fff; }
.menu span.lien-bloque, .menu span.acces.bloque { opacity: .4; }
.menu span.acces.bloque { border: 2px solid var(--joint); border-radius: 6px; }
.burger { font-family: var(--f-texte); font-weight: 600; border-radius: 6px; color: var(--sable); }
@media (max-width: 980px) { .menu { background: #fff; box-shadow: 0 12px 24px rgba(15, 29, 54, .08); } }

/* Boutons : rouge plein pour l'action principale, contour marine sinon */
.btn { font-family: var(--f-texte); font-weight: 700; font-size: 17px; border: 2px solid var(--sable); color: var(--sable); border-radius: 6px; padding: 13px 24px; }
.btn:hover { background: var(--sable); color: #fff; }
.btn.feu { background: var(--feu); border-color: var(--feu); color: #fff; }
.btn.feu:hover { background: var(--feu-fonce); border-color: var(--feu-fonce); box-shadow: none; }
.btn.mini { font-size: 14px; padding: 7px 14px; border-width: 1px; }
.lien-btn.rouge, .btn.rouge { color: var(--feu); border-color: var(--feu); }

/* Blocs et surfaces */
.entete { border-bottom: 0; padding-block: 52px 8px; }
.filet { border-top: 0; }
.bloc { padding-block: 40px; }
.tableau, .panneau, .offre, .appel, .faq details, .carte, .regles-cles, .etape, .lg, .fiche-demande, .liste-res .res {
  background: #fff; border: 1px solid var(--joint); border-radius: 10px; }
.tableau { overflow-x: auto; }
.panneau { padding: clamp(20px, 3vw, 32px); }
.offre { border-top: 4px solid var(--feu); }
.appel { background: #fff; }
.final { background: var(--sable); border-top: 0; }
.final h2 { color: #fff; }
.alerte, .erreurs, .flash.ko, .pas-assez { background: #fdecea; border-color: #f2b8b3; border-radius: 8px; color: var(--sable); }
.flash { background: #e8eefb; border-color: #b9c7ec; border-radius: 8px; }
.note { color: var(--sable-2); }

/* Formulaires */
input, select, textarea { background: #fff !important; color: var(--sable) !important; border: 1px solid #c3ccd8 !important; border-radius: 6px !important; }
input:focus, select:focus, textarea:focus { border-color: var(--or) !important; outline: 2px solid rgba(29, 63, 148, .18); }
label { font-family: var(--f-texte); font-weight: 600; font-size: 15px; color: var(--sable); }
.case { font-weight: 500; }
.trois-m { border-radius: 8px; background: #f7f9fc; }
.trois-m legend { font-family: var(--f-texte); font-size: 16px; font-weight: 700; }

/* Tableaux */
th { font-family: var(--f-texte); font-size: 14px; font-weight: 700; color: var(--sable-2); background: #f7f9fc; }
td { border-color: var(--joint); }
.puce { font-family: var(--f-texte); font-size: 15px; border-radius: 999px; color: var(--sable); background: #fff; }
.puce[aria-current="true"] { background: var(--sable); border-color: var(--sable); color: #fff; }
.pastille { border-radius: 4px; }

/* Compte à rebours */
.compte-lib { font-family: var(--f-texte); font-weight: 600; font-size: 15px; color: var(--feu); }
.compte-cases div { background: #fff; border: 1px solid var(--joint); border-top: 3px solid var(--feu); border-radius: 8px; }
.compte-cases b { color: var(--sable); font-weight: 800; font-size: 36px; }
.compte-cases span { font-family: var(--f-texte); font-size: 13px; }

/* Accueil complet (hors campagne) */
.hero { border-bottom: 1px solid var(--joint); background: #fff; }
.hero canvas, .hero-logo::before { display: none; }
.devise { font-family: var(--f-texte); color: var(--sable-2); }
.chiffres, .calendrier { border-color: var(--joint); background: #fff; }
.chiffres b { color: var(--sable); }
.jalon.actif .jalon-date { color: var(--feu); }
.gradins circle.g2 { fill: #f4f6f9; }
.trophee { border-top-color: var(--medaille); }

/* Pages intérieures */
.art .num { font-family: var(--f-texte); font-weight: 700; font-size: 14px; }
.sommaire { font-family: var(--f-texte); }
.sommaire a:hover { color: var(--feu); }
.atout .i { color: var(--feu); font-family: var(--f-titre); font-weight: 800; }
.file-attente { background: #fff; border: 1px solid var(--joint); border-left: 4px solid var(--feu); border-radius: 10px; }
.file-attente b { color: var(--feu); }

/* Cartes Leaflet sur fond clair */
.carte-france .leaflet-tile-pane { filter: saturate(.55); }
.carte-france { border-radius: 10px; overflow: hidden; }
.leaflet-container { background: #e9edf3; }
.leaflet-control-attribution { background: rgba(255, 255, 255, .85) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #fff; color: var(--sable); border: 1px solid var(--joint); border-radius: 8px; }
.leaflet-bar a { background: #fff; color: var(--sable); }

/* Participants / dossards */
.fanion.libre .no, .grille-dossards .num.pris span { color: var(--sable-2); }
.carte-id { box-shadow: 0 14px 34px rgba(15, 29, 54, .16); background: #fff; border-color: var(--joint); border-radius: 10px; }
.fiche-photo, .carte-id-photo { background: var(--pierre-2); }
.fiche-photo, .carte-id-photo span, .fanion.pris .ini { color: var(--sable); }

/* Admin */
.menu-admin a, .menu-admin button { font-family: var(--f-texte); }
.ico { background: #fff; }
.pt.gris { background: #9aa4b2; }

/* Pied de page */
.site-footer { background: #fff; border-top: 1px solid var(--joint); }

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

/* ---------- v3 · Accueil campagne : la « une » et le dossard ---------- */
.une { background: #fff; border-bottom: 1px solid var(--joint); overflow: hidden; }
.une-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(36px, 6vw, 72px); }
.une-txt { display: grid; gap: 20px; justify-items: start; min-width: 0; }
.une-saison { margin: 0; font-weight: 600; color: var(--feu); }
.une h1 { font-size: clamp(52px, 7.6vw, 104px); max-width: 11ch; }
.une-lead { margin: 0; font-size: 19px; color: var(--sable-2); max-width: 46ch; }
.une-devise { margin: 0; font-family: var(--f-titre); font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); color: var(--sable); }
.compte-une { margin-top: 6px; }
.compte-une .compte-cases div { min-width: 66px; padding: 8px 6px; }
.compte-une .compte-cases b { font-size: 30px; }

/* Le dossard : feuille blanche, bande rouge, 4 trous d'épingle, grand numéro */
.dossard {
  position: relative; justify-self: center; width: min(100%, 440px); aspect-ratio: 4 / 3.35;
  background: #fff; border: 1px solid #cfd6e0; border-radius: 14px;
  box-shadow: 0 1px 0 #e3e8ef, 0 22px 40px -18px rgba(15, 29, 54, .35);
  transform: rotate(-2.5deg); display: grid; grid-template-rows: auto 1fr auto auto; overflow: hidden;
}
.trou { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--page); box-shadow: inset 0 1px 2px rgba(15, 29, 54, .35); z-index: 2; }
.t1 { top: 12px; left: 12px; } .t2 { top: 12px; right: 12px; } .t3 { bottom: 12px; left: 12px; } .t4 { bottom: 12px; right: 12px; }
.ds-bande { background: var(--feu); color: #fff; display: flex; align-items: center; gap: 12px; padding: 14px 34px; }
.ds-bande img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; }
.ds-bande span { font-family: var(--f-titre); font-weight: 800; font-size: 19px; text-transform: uppercase; letter-spacing: .03em; line-height: 1; }
.ds-bande .ds-saison { margin-left: auto; font-size: 16px; opacity: .9; }
.ds-num { display: grid; place-items: center; font-family: var(--f-titre); font-weight: 900; font-size: clamp(120px, 15vw, 190px); line-height: .8; color: var(--sable); font-variant-numeric: tabular-nums; }
.ds-pied { display: flex; justify-content: center; gap: 28px; padding: 0 20px 14px; font-weight: 600; color: var(--sable-2); }
.ds-pied b { font-family: var(--f-titre); font-size: 24px; color: var(--sable); margin-right: 4px; }
.ds-talon { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 34px 16px; border-top: 2px dashed #c3ccd8; background: #f7f9fc; font-weight: 600; color: var(--sable-2); }
.ds-talon b { font-family: var(--f-titre); font-weight: 900; font-size: 34px; color: var(--feu); line-height: 1; }

/* Les quatre chiffres */
.faits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fait { background: #fff; border: 1px solid var(--joint); border-radius: 10px; padding: 22px 22px 20px; display: grid; gap: 6px; align-content: start; }
.fait b { font-family: var(--f-titre); font-weight: 900; font-size: 64px; line-height: .9; color: var(--sable); }
.fait h3 { font-family: var(--f-texte); font-size: 18px; font-weight: 700; }
.fait p { margin: 0; color: var(--sable-2); font-size: 16px; }
.fait-compteur { border-color: #f2b8b3; }
.fait-compteur b { color: var(--feu); }
.faits-suite { margin: 18px 0 0; font-weight: 600; }
@media (max-width: 980px) { .faits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .une-in { grid-template-columns: 1fr; }
  .dossard { width: min(100%, 380px); transform: rotate(-1.5deg); }
}
@media (max-width: 520px) { .faits { grid-template-columns: 1fr; } .une h1 { font-size: 50px; } }
.ds-bande .ds-saison { white-space: nowrap; }
@media (max-width: 520px) {
  .ds-bande { padding: 12px 28px; gap: 10px; }
  .ds-bande img { width: 32px; height: 32px; }
  .ds-bande span { font-size: 15px; }
  .ds-bande .ds-saison { font-size: 13px; }
}
/* Phrases d'appel (Marathons / Partenaires) : une seule couleur, plus sobre */
.appel-txt { font-family: var(--f-titre); font-weight: 800; color: var(--sable); }
.appel-txt .or, .appel-txt .feu-txt { color: inherit; }
/* Participants : fiche au survol (claire) et pastilles de légende */
.fiche-id { background: #fff; border: 1px solid var(--joint); border-radius: 10px; box-shadow: 0 14px 34px rgba(15, 29, 54, .18); }
.fiche-id[hidden] { display: none; }
.fiche-txt .fiche-rang { color: var(--or); }
.legende .pt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.fanion.libre { background: #fff; box-shadow: inset 0 0 0 1px var(--joint); }
.fanion.pris .no { color: #fff; }
/* Pied de page toujours en bas, même sur une page courte */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.site-footer { margin-top: 0; }

/* =========================================================
   v3.1 — Teintes un peu plus sombres (≈ 10 %) : moins « blanc »
   Le dossard de l'accueil et les champs de formulaire restent blancs pour ressortir.
   ========================================================= */
:root {
  --page:     #dfe4eb;   /* fond de page */
  --carte:    #f2f4f7;   /* cartes, blocs, en-tête, pied de page */
  --pierre:   #f2f4f7;
  --pierre-2: #e2e7ee;
  --joint:    #c5cdd9;
}
.site-header { background: rgba(236, 239, 244, .97); }
.site-footer, .une, .hero, .chiffres, .calendrier { background: #eceff4; }
.tableau, .panneau, .offre, .appel, .faq details, .carte, .regles-cles, .etape, .lg, .fiche-demande, .liste-res .res,
.fait, .compte-cases div, .puce, .file-attente, .fiche-id, .carte-id, .fanion.libre, .ico { background: var(--carte); }
.puce[aria-current="true"] { background: var(--sable); }
th, .trois-m, .ds-talon { background: #e6eaf0; }
@media (max-width: 980px) { .menu { background: #eceff4; } }
.leaflet-container { background: #dde2e9; }
.dossard { border-color: #bcc5d2; }
.trou { background: #eceff4; }
