/* ============================================================================
   EMERALD DIGITAL SPORTS — système visuel de la Ligue de la Souveraineté
   ----------------------------------------------------------------------------
   Palette imposée (ordre de mission du 19/11/2026) :
     émeraude #006B45 · profond #003D2B · électrique #00FF85 · secondaire #00A86B
     or #D4AF37 · or lumineux #FFD700 · noir #06130E · blanc #FFFFFF · gris #C5D2CB
   Aucune image, aucun script, aucun style en ligne : la politique de sécurité du site
   interdit l'inline, et le site n'a pas encore de photographies officielles.
   Tout le relief est donc produit par dégradés, bordures et ombres.
   ========================================================================== */
:root {
  --ed-emeraude: #006B45;
  --ed-profond: #003D2B;
  --ed-electrique: #00FF85;
  --ed-secondaire: #00A86B;
  --ed-or: #D4AF37;
  --ed-or-clair: #FFD700;
  --ed-noir: #06130E;
  --ed-blanc: #FFFFFF;
  --ed-rouge: #EF2B2D;   /* le rouge du drapeau, celui de la passion */
  --ed-gris: #D7E3DC;   /* texte secondaire, éclairci pour la lecture */
  --ed-verre: rgba(0, 107, 69, .18);
  --ed-bord: rgba(0, 255, 133, .28);
  --ed-ombre: 0 18px 40px rgba(0, 0, 0, .45);
  --ed-rayon: 16px;
}

/* ── fond général ─────────────────────────────────────────────────────── */
body.theme-emerald {
  background:
    radial-gradient(1000px 560px at 12% -10%, rgba(0, 255, 133, .16), transparent 62%),
    radial-gradient(760px 460px at 92% 0%, rgba(212, 175, 55, .13), transparent 58%),
    radial-gradient(900px 700px at 50% 115%, rgba(0, 168, 107, .18), transparent 65%),
    #0c2b22;
  color: #f4f8f6;
  font-size: 16.5px;
  line-height: 1.62;
}
.theme-emerald a { color: inherit; }
/* `backdrop-filter` crée un contexte d'empilement : sans z-index sur l'en-tête, le panneau des
   rubriques (z-index 40, enfermé dans ce contexte) passait DERRIÈRE la section suivante, dont le
   fond vert le recouvrait. L'en-tête doit donc se placer lui-même au-dessus du contenu. */
.theme-emerald .entete { background: rgba(6, 19, 14, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ed-bord); position: relative; z-index: 60; }
.theme-emerald .entete nav a { color: var(--ed-gris); }
.theme-emerald .entete nav a:hover, .theme-emerald .entete nav a.actif { color: var(--ed-electrique); }
.theme-emerald .marque .nom { color: var(--ed-blanc); }
.theme-emerald .marque .sigle { background: linear-gradient(135deg, var(--ed-emeraude), var(--ed-secondaire));
  color: #fff; box-shadow: 0 0 18px rgba(0, 255, 133, .35); }
.theme-emerald footer { background: var(--ed-profond); border-top: 1px solid var(--ed-bord); color: var(--ed-gris); }
.theme-emerald footer a { color: var(--ed-gris); }
.theme-emerald footer a:hover { color: var(--ed-electrique); }

/* ── hero cinématographique (sans photo : lumière et géométrie) ───────── */
.hero-emerald {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--ed-bord);
  padding: 88px 24px 72px; text-align: left;
  background:
    radial-gradient(1200px 600px at 78% 18%, rgba(0, 255, 133, .22), transparent 62%),
    radial-gradient(900px 520px at 10% 92%, rgba(212, 175, 55, .16), transparent 60%),
    linear-gradient(160deg, #00251A 0%, #003D2B 45%, #06130E 100%);
}
.hero-emerald::before { /* grille numérique */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(0, 255, 133, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 133, .10) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 35%, transparent 78%);
}
.hero-emerald::after { /* ligne lumineuse au sol */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ed-electrique), var(--ed-or), transparent);
  opacity: .8;
}
.hero-contenu { position: relative; max-width: 980px; margin: 0 auto; }
/* Silhouette du Burkina Faso, en haut à droite : elle remplit le vide sans capter le regard.
   Le fond est transparent — la forme vient du masque, la couleur d'un dégradé or/émeraude. */
/* La silhouette et ses étoiles sont deux couches du même cadre : la forme est masquée (le
   masque s'applique à l'élément ET à ses enfants, d'où la couche séparée), les étoiles passent
   au-dessus sans être masquées. */
.hero-carte { position: relative; width: min(420px, 34vw); aspect-ratio: 1000 / 737;
  pointer-events: none; z-index: 0; }
/* Relief : la lumière vient du haut à gauche, l'ombre tombe en bas à droite. Le dégradé seul ne
   suffit pas — c'est le filament clair en haut et le bord sombre en bas qui font sortir la forme
   du fond. */
.hero-carte-forme {
  position: absolute; inset: 0; opacity: .34;
  background:
    radial-gradient(120% 90% at 26% 16%, rgba(255, 255, 255, .55), transparent 58%),
    radial-gradient(90% 70% at 78% 88%, rgba(0, 0, 0, .45), transparent 60%),
    linear-gradient(155deg, rgba(212, 175, 55, .95), rgba(0, 168, 107, .85) 48%, rgba(6, 19, 14, .9));
  -webkit-mask: url(/static/carte-burkina.svg) no-repeat center / contain;
  mask: url(/static/carte-burkina.svg) no-repeat center / contain;
}
.hero-carte-etoiles { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Le pays se détache du fond : une légère bascule vers la droite et une ombre portée. L'ombre est
   prise sur la forme masquée, pas sur le cadre — c'est le pays qui projette, pas la boîte. */
.hero-accueil .hero-carte { transform: perspective(1400px) rotateY(-9deg) rotateX(3deg) translateX(-26px);
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, .55)); }
.etoile { animation: scintille 3.4s ease-in-out infinite; transform-box: fill-box;
  transform-origin: center; }
.etoile path { fill: var(--ed-or-clair); }
.etoile-halo { fill: rgba(255, 215, 0, .38); }
@keyframes scintille {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50%      { opacity: 1;   transform: scale(1.2); }
}
@media (prefers-reduced-motion: reduce) { .etoile { animation: none; opacity: .9; } }
/* Le texte occupe la droite, la silhouette la gauche : les deux colonnes ne se croisent jamais.
   Le bloc est aligné à droite — titre, slogan, boutons et chiffres suivent le même bord. */
.hero-accueil .hero-contenu { max-width: 60%; margin-left: 0; margin-right: auto;
  text-align: left; position: relative; z-index: 1; }
.hero-accueil .hero-actions, .hero-accueil .faits-competition { justify-content: flex-start; }

/* Le texte est un peu plus grand sur cette page que sur les pages intérieures : c'est la seule
   vue où il occupe une colonne et doit tenir tête à la silhouette, sans écraser le reste. */
.hero-accueil .hero-titre { font-size: clamp(34px, 5.8vw, 68px); }
.hero-accueil .hero-slogan { font-size: clamp(16px, 2.1vw, 21px); max-width: 560px; }
.hero-accueil .hero-surtitre { font-size: 13px; letter-spacing: .26em; }
@media (max-width: 1000px) {
  /* Plus assez de place pour deux colonnes : on revient au texte à gauche, carte dessous. */
  .hero-accueil .hero-contenu { max-width: 100%; text-align: left; }
  .hero-accueil .hero-actions, .hero-accueil .faits-competition { justify-content: flex-start; }
  .hero-carte { position: static; width: 72vw; max-width: 420px; margin: 26px auto 0;
    display: block; }
}
.hero-surtitre { display: inline-block; font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ed-or-clair); border: 1px solid rgba(212, 175, 55, .45); border-radius: 999px;
  padding: 6px 14px; margin: 0 0 20px; background: rgba(212, 175, 55, .08); }
.hero-titre { font-size: clamp(30px, 5.2vw, 60px); line-height: 1.04; margin: 0 0 14px;
  font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.hero-titre .accent { color: var(--ed-electrique); text-shadow: 0 0 26px rgba(0, 255, 133, .45); }
/* « Une passion » en rouge : le rouge du drapeau, éclairci pour rester lisible sur le vert sombre.
   Le halo reprend le rouge et non le vert, sinon le mot paraît sale à l'écran. */
.hero-titre .passion { color: var(--ed-rouge); text-shadow: 0 0 22px rgba(239, 43, 45, .35); }
.hero-slogan { font-size: clamp(15px, 2vw, 19px); color: var(--ed-gris); margin: 0 0 26px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bouton-emerald, .bouton-or {
  display: inline-block; padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.bouton-emerald { background: linear-gradient(135deg, var(--ed-secondaire), var(--ed-emeraude));
  color: #fff; box-shadow: 0 10px 26px rgba(0, 168, 107, .38); }
.bouton-emerald:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 255, 133, .38); }
.bouton-or { border: 1px solid rgba(212, 175, 55, .6); color: var(--ed-or-clair);
  background: rgba(212, 175, 55, .08); }
.bouton-or:hover { transform: translateY(-2px); background: rgba(212, 175, 55, .16); }

/* ── sections ─────────────────────────────────────────────────────────── */
.theme-emerald main { max-width: 1080px; }
.section-emerald { padding: 44px 0 8px; }
.section-emerald > h2 { font-size: clamp(20px, 2.6vw, 28px); margin: 0 0 6px; letter-spacing: -.01em; }
.section-emerald > .sous-titre { color: var(--ed-gris); font-size: 14px; margin: 0 0 18px; }
.trait-emerald { height: 3px; width: 56px; border-radius: 2px; margin: 0 0 18px;
  background: linear-gradient(90deg, var(--ed-electrique), var(--ed-or)); }

/* ── cartes ───────────────────────────────────────────────────────────── */
.grille-stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.carte-stat {
  position: relative; overflow: hidden; padding: 20px 18px; border-radius: var(--ed-rayon);
  background: linear-gradient(160deg, rgba(0, 107, 69, .55), rgba(0, 61, 43, .72));
  border: 1px solid var(--ed-bord); box-shadow: var(--ed-ombre);
  backdrop-filter: blur(8px); transition: transform .2s ease, border-color .2s ease;
}
.carte-stat::after { content: ""; position: absolute; inset: -40% -60% auto auto; width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(0, 255, 133, .28), transparent 70%); pointer-events: none; }
.carte-stat:hover { transform: translateY(-3px); border-color: rgba(0, 255, 133, .55); }
.carte-stat .valeur { font-size: 34px; font-weight: 800; line-height: 1; color: var(--ed-electrique);
  text-shadow: 0 0 22px rgba(0, 255, 133, .35); font-variant-numeric: tabular-nums; }
.carte-stat .libelle { display: block; margin-top: 8px; font-size: 12.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ed-gris); }
.carte-stat.or { background: linear-gradient(160deg, rgba(212, 175, 55, .22), rgba(0, 61, 43, .75));
  border-color: rgba(212, 175, 55, .45); }
.carte-stat.or .valeur { color: var(--ed-or-clair); text-shadow: 0 0 22px rgba(255, 215, 0, .35); }

/* Bande de chiffres d'une sélection (page des joueurs) : les mêmes panneaux que l'accueil,
   resserrés, sous un titre qui dit sur quoi ils portent. Le titre et la source restent collés
   aux panneaux : un nombre séparé de son libellé ne veut plus rien dire. */
.chiffres-selection { margin: 30px 0 10px; }
.chiffres-selection h2 { font-size: clamp(17px, 2vw, 22px); margin: 0 0 4px; letter-spacing: -.01em; }
.chiffres-selection .sous-titre { color: var(--ed-gris); font-size: 13px; margin: 0 0 14px; }
.chiffres-selection .grille-stats { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 12px; }
.chiffres-selection .carte-stat { padding: 16px 14px; }
.chiffres-selection .carte-stat .valeur { font-size: clamp(22px, 2.4vw, 28px); }
.chiffres-selection .carte-stat .libelle { font-size: 11px; margin-top: 7px; }

.grille-cartes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.carte-match, .carte-actu, .carte-joueur, .panneau-emerald {
  background: var(--ed-verre); border: 1px solid var(--ed-bord); border-radius: var(--ed-rayon);
  padding: 16px; backdrop-filter: blur(8px); box-shadow: var(--ed-ombre);
}
.carte-match { display: grid; gap: 10px; }
.carte-match .equipes { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-weight: 600; }
.carte-match .vs { color: var(--ed-or); font-size: 12px; letter-spacing: .14em; }
.carte-match .meta { color: var(--ed-gris); font-size: 12.5px; }
.carte-match .score { font-size: 26px; font-weight: 800; color: var(--ed-electrique);
  font-variant-numeric: tabular-nums; }
.carte-match:hover, .carte-actu:hover, .carte-joueur:hover { border-color: rgba(0, 255, 133, .5); }

/* ── classement ───────────────────────────────────────────────────────── */
.tableau-emerald { background: rgba(0, 61, 43, .55); border: 1px solid var(--ed-bord);
  border-radius: var(--ed-rayon); overflow: hidden; backdrop-filter: blur(8px); }
.tableau-emerald table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tableau-emerald thead th { text-align: left; font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ed-gris); padding: 12px 14px;
  border-bottom: 1px solid var(--ed-bord); }
.tableau-emerald tbody td { padding: 11px 14px; border-bottom: 1px solid rgba(0, 255, 133, .10); }
.tableau-emerald tbody tr:last-child td { border-bottom: 0; }
.tableau-emerald tbody tr:hover { background: rgba(0, 255, 133, .06); }
.tableau-emerald .rang { font-weight: 800; color: var(--ed-or-clair); width: 42px; }
.tableau-emerald tr.podium { background: linear-gradient(90deg, rgba(0, 255, 133, .12), transparent 65%); }
.tableau-emerald tr.podium .rang { color: var(--ed-electrique); }
.tableau-emerald .points { font-weight: 800; color: var(--ed-blanc); text-align: right; }

/* ── grille des régions (la carte attend un fond cartographique validé) ─ */
.regions-accueil { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.regions-accueil li a { display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ed-bord);
  background: rgba(0, 107, 69, .22); font-size: 14px; }
.regions-accueil li a:hover { border-color: rgba(0, 255, 133, .5); }
.regions-accueil strong { color: var(--ed-electrique); font-variant-numeric: tabular-nums; }
.etiquette-categorie { display: inline-block; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ed-or-clair); border: 1px solid rgba(212, 175, 55, .4);
  border-radius: 999px; padding: 2px 8px; }
.pastille-region { display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ed-bord);
  background: rgba(0, 107, 69, .22); font-size: 14px; }
.pastille-region strong { color: var(--ed-electrique); font-variant-numeric: tabular-nums; }

/* ── mouvements (désactivés si l'utilisateur le demande) ──────────────── */
@keyframes ed-apparition { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ed-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
/* Sans JavaScript, tout reste visible : l'animation est un supplément, jamais une condition
   d'affichage. Le script ajoute « anim » sur <html> ; c'est cette classe qui masque au départ. */
[data-reveal] { opacity: 1; }
html.anim [data-reveal] { opacity: 0; }
html.anim [data-reveal].visible { animation: ed-apparition .55s ease forwards; }
.hero-emerald .hero-surtitre { animation: ed-pulse 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal].visible { opacity: 1; animation: none; }
  html.anim [data-reveal] { opacity: 1; }
  .hero-emerald .hero-surtitre { animation: none; }
  .bouton-emerald:hover, .bouton-or:hover, .carte-stat:hover { transform: none; }
}

/* utilitaires (remplacent les styles en ligne, que la CSP interdit) */
.marge-haut { margin-top: 22px; }
.sans-marge { margin: 0; }
.date-actu { margin: 0 0 6px; }
.titre-actu { margin: 0 0 8px; font-size: 17px; }
.titre-actu a:hover { color: var(--ed-electrique); }

/* faits de la compétition, dans le hero */
.faits-competition { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0;
  margin: 16px 0 0; }
.faits-competition li { display: flex; align-items: baseline; gap: 6px; padding: 8px 12px;
  border: 1px solid var(--ed-bord); border-radius: 10px; background: rgba(0, 255, 133, .06);
  font-size: 13px; color: var(--ed-gris); }
.faits-competition strong { color: var(--ed-electrique); font-size: 15px; }

/* ============================================================================
   Couche « site public » : les pages existantes basculent en thème sombre.
   On ne réécrit pas leurs gabarits : on redéfinit les composants qu'ils utilisent.
   ========================================================================== */
.theme-emerald main { color: var(--ed-blanc); }
.theme-emerald h1, .theme-emerald h2, .theme-emerald h3 { color: var(--ed-blanc); }
.theme-emerald p, .theme-emerald li, .theme-emerald dd { color: #dfe9e4; }
.theme-emerald .aide, .theme-emerald .note, .theme-emerald .meta,
.theme-emerald .sous-titre, .theme-emerald small { color: #cbd9d2; font-size: 14px; }
.theme-emerald .mention-officielle { color: var(--ed-gris); border-left-color: var(--ed-or); }
.theme-emerald strong { color: var(--ed-blanc); }

/* tableaux */
.theme-emerald .tableau { background: rgba(0, 74, 52, .62); border: 1px solid var(--ed-bord);
  border-radius: var(--ed-rayon); backdrop-filter: blur(8px); }
.theme-emerald .tableau table { color: var(--ed-gris); }
.theme-emerald .tableau thead th { color: var(--ed-gris); background: rgba(0, 107, 69, .35);
  border-bottom: 1px solid var(--ed-bord); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; }
.theme-emerald .tableau tbody td { border-bottom: 1px solid rgba(0, 255, 133, .10); }
.theme-emerald .tableau tbody tr:hover { background: rgba(0, 255, 133, .06); }
.theme-emerald .tableau td.club, .theme-emerald .tableau td.club a {
  color: #ffffff; font-weight: 600; }
.theme-emerald .tableau tbody td a { color: #d9fff0; text-decoration-color: rgba(0,255,133,.5); }
.theme-emerald .tableau tbody td a:hover { color: var(--ed-electrique); }
.theme-emerald .tableau .montant { color: var(--ed-electrique); }

/* filtres et formulaires */
.theme-emerald .filtres a { border: 1px solid var(--ed-bord); border-radius: 999px;
  padding: 5px 12px; color: var(--ed-gris); font-size: 13px; }
.theme-emerald .filtres a.actif { background: rgba(0, 255, 133, .14); color: var(--ed-electrique);
  border-color: rgba(0, 255, 133, .5); }
.theme-emerald input, .theme-emerald select, .theme-emerald textarea {
  background: rgba(0, 20, 14, .75); color: var(--ed-blanc);
  border: 1px solid var(--ed-bord); border-radius: 10px; padding: 9px 11px; }
.theme-emerald input::placeholder, .theme-emerald textarea::placeholder { color: #7f8f88; }
.theme-emerald input:focus, .theme-emerald select:focus, .theme-emerald textarea:focus {
  outline: 2px solid rgba(0, 255, 133, .45); outline-offset: 1px; }
.theme-emerald button, .theme-emerald .bouton {
  background: linear-gradient(135deg, var(--ed-secondaire), var(--ed-emeraude));
  color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 600; }
.theme-emerald button:hover, .theme-emerald .bouton:hover { filter: brightness(1.08); }

/* états */
.theme-emerald .etat { border-radius: 999px; font-size: 12px; padding: 2px 9px;
  border: 1px solid var(--ed-bord); background: rgba(0, 255, 133, .10); color: var(--ed-electrique); }
.theme-emerald .etat-preparation, .theme-emerald .etat-programme { color: var(--ed-or-clair);
  border-color: rgba(212, 175, 55, .45); background: rgba(212, 175, 55, .10); }
.theme-emerald .etat-rejetee, .theme-emerald .etat-annulee { color: #ff8f85;
  border-color: rgba(255, 143, 133, .4); background: rgba(255, 143, 133, .10); }
.theme-emerald .vide { color: var(--ed-gris); font-style: italic; }

/* blocs divers */
.theme-emerald .retour a, .theme-emerald .lien-section a { color: var(--ed-electrique); }
.theme-emerald .fil, .theme-emerald .banniere { background: rgba(0, 61, 43, .85);
  color: var(--ed-gris); border-bottom: 1px solid var(--ed-bord); }
.theme-emerald .hero-ligue, .theme-emerald .hero { background: transparent; }
.theme-emerald .grille-stats .carte-stat { text-decoration: none; }
.theme-emerald a:hover { color: var(--ed-electrique); }
.theme-emerald .pagination a { background: rgba(0, 61, 43, .6); border-color: var(--ed-bord);
  color: var(--ed-gris); }

/* chiffres et étiquettes hérités d'autres pages */
.theme-emerald .chiffre strong, .theme-emerald .chiffre-accueil strong { color: var(--ed-electrique); }
/* la pastille garde son fond clair (public.css) : l'or clair y donnait 1,25:1 */
.theme-emerald .etiquette-categorie { color: var(--ed-profond);
  border: 1px solid rgba(212, 175, 55, .4); border-radius: 999px; padding: 2px 8px; font-size: 11px; }

/* ============================================================================
   RELIEF DIAMANT — colonnes et cases taillées, éclat d'or
   ----------------------------------------------------------------------------
   Le relief est simulé par des dégradés à facettes (deux angles opposés), des ombres
   internes claire/sombre qui creusent l'arête, et une bordure d'or sur le chant supérieur.
   Aucune image : tout est gradient, donc net à toutes les tailles.
   ========================================================================== */

/* -- en-têtes de colonnes : facette supérieure, arête dorée ---------------- */
.theme-emerald .tableau thead th {
  font-size: 12.5px;
  background:
    linear-gradient(160deg, rgba(0, 255, 133, .22) 0%, rgba(0, 107, 69, .55) 42%,
                    rgba(0, 61, 43, .92) 100%);
  border-bottom: 1px solid rgba(212, 175, 55, .55);
  border-right: 1px solid rgba(0, 255, 133, .12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),      /* arête éclairée */
    inset 0 -2px 8px rgba(0, 0, 0, .45),          /* ombre de taille */
    inset -1px 0 0 rgba(0, 0, 0, .25);
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
  letter-spacing: .09em;
}
.theme-emerald .tableau thead th:first-child { border-top-left-radius: 12px; }
.theme-emerald .tableau thead th:last-child { border-top-right-radius: 12px; border-right: 0; }

/* -- cases : facette croisée + arête interne ------------------------------ */
.theme-emerald .tableau tbody td {
  position: relative;
  background:
    linear-gradient(140deg, rgba(0, 255, 133, .045) 0%, rgba(0, 62, 44, .55) 48%,
                    rgba(0, 32, 23, .68) 100%);
  color: #f6faf8;
  font-size: 15px;
  line-height: 1.45;
  border-bottom: 1px solid rgba(0, 255, 133, .10);
  border-right: 1px solid rgba(0, 0, 0, .35);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, .05),
    inset -1px -1px 0 rgba(0, 0, 0, .38);
  transition: background .22s ease, box-shadow .22s ease, transform .18s ease;
}
.theme-emerald .tableau tbody td:last-child { border-right: 0; }

/* -- éclat d'or au survol : balayage lumineux diagonal -------------------- */
.theme-emerald .tableau tbody tr { position: relative; }
.theme-emerald .tableau tbody tr:hover td {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  background:
    linear-gradient(140deg, rgba(212, 175, 55, .14) 0%, rgba(0, 168, 107, .22) 45%,
                    rgba(0, 61, 43, .55) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 215, 0, .35),
    inset 0 -1px 0 rgba(0, 0, 0, .4),
    0 6px 18px rgba(0, 0, 0, .35);
}
@keyframes ed-eclat {
  0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  35% { opacity: .55; }
  100% { transform: translateX(220%) skewX(-18deg); opacity: 0; }
}
.theme-emerald .tableau tbody tr::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, .28), transparent);
  pointer-events: none; opacity: 0;
}
.theme-emerald .tableau tbody tr:hover::after { animation: ed-eclat .85s ease-out; }

/* -- cases taillées : losange sur les cartes de chiffres ------------------ */
.theme-emerald .carte-stat {
  background:
    linear-gradient(145deg, rgba(0, 255, 133, .26) 0%, rgba(0, 133, 88, .62) 38%,
                    rgba(0, 74, 52, .92) 72%, rgba(0, 40, 29, .95) 100%);
  border: 1px solid rgba(0, 255, 133, .30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .20),
    inset 0 -3px 12px rgba(0, 0, 0, .45),
    0 14px 30px rgba(0, 0, 0, .40);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%,
                     0 100%, 0 14px);
}
.theme-emerald .carte-stat::before {  /* arête dorée en haut à gauche */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 215, 0, .55) 0%, transparent 18%);
  opacity: .55;
}
.theme-emerald .carte-stat:hover::before { opacity: 1; }
.theme-emerald .carte-stat.or {
  background:
    linear-gradient(145deg, rgba(255, 215, 0, .28) 0%, rgba(212, 175, 55, .35) 30%,
                    rgba(0, 61, 43, .92) 75%, rgba(0, 25, 18, .95) 100%);
  border-color: rgba(255, 215, 0, .55);
}

@media (prefers-reduced-motion: reduce) {
  .theme-emerald .tableau tbody tr:hover::after { animation: none; opacity: .25; }
  .theme-emerald .tableau tbody td { transition: none; }
}

/* ============================================================================
   FOND DIGITAL ANIMÉ — « digital motion design »
   ----------------------------------------------------------------------------
   Quatre couches, toutes en transform/opacity (accélérées par le GPU), aucune image,
   aucun script : grille numérique qui défile, deux halos émeraude/or qui dérivent,
   et un balayage lumineux périodique. Le tout derrière le contenu (z-index -1),
   inerte au pointeur, et figé si l'utilisateur demande moins d'animation.
   ========================================================================== */
.fond-digital { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fond-digital::before {  /* grille numérique qui défile lentement */
  content: ""; position: absolute; inset: -20%;
  background-image:
    linear-gradient(rgba(0, 255, 133, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 133, .07) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 80%);
  animation: ed-grille 46s linear infinite;
  will-change: transform;
}
.fond-digital::after {  /* balayage lumineux périodique */
  content: ""; position: absolute; top: -40%; left: -30%; width: 60%; height: 180%;
  background: linear-gradient(100deg, transparent 0%, rgba(0, 255, 133, .05) 45%,
              rgba(255, 215, 0, .045) 55%, transparent 100%);
  animation: ed-balayage 18s ease-in-out infinite;
  will-change: transform, opacity;
}
.fond-digital .orbe { position: absolute; border-radius: 50%; filter: blur(70px);
  opacity: .55; will-change: transform; }
.fond-digital .orbe-emeraude {
  width: 46vw; height: 46vw; left: -10vw; top: -12vw;
  background: radial-gradient(circle, rgba(0, 255, 133, .30), transparent 68%);
  animation: ed-derive-a 34s ease-in-out infinite alternate;
}
.fond-digital .orbe-or {
  width: 34vw; height: 34vw; right: -8vw; bottom: -10vw;
  background: radial-gradient(circle, rgba(212, 175, 55, .22), transparent 70%);
  animation: ed-derive-b 42s ease-in-out infinite alternate;
}
@keyframes ed-grille { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-56px, -56px, 0); } }
@keyframes ed-balayage {
  0% { transform: translate3d(-20%, 0, 0) rotate(8deg); opacity: 0; }
  12% { opacity: .9; }
  50% { transform: translate3d(120%, 0, 0) rotate(8deg); opacity: .5; }
  100% { transform: translate3d(220%, 0, 0) rotate(8deg); opacity: 0; }
}
@keyframes ed-derive-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8vw, 6vh, 0) scale(1.12); }
}
@keyframes ed-derive-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(-7vw, -5vh, 0) scale(0.95); }
}
@media (max-width: 760px) {
  .fond-digital .orbe-emeraude { width: 80vw; height: 80vw; opacity: .40; filter: blur(36px); }
  .fond-digital .orbe-or { width: 60vw; height: 60vw; opacity: .35; filter: blur(30px); }
  .fond-digital::before { background-size: 40px 40px; }
}
/* Téléphones modestes : le flou de 70 px sur deux grands halos coûte cher en GPU.
   On le réduit et on ralentit la grille plutôt que de supprimer l'effet. */
@media (prefers-reduced-motion: reduce) {
  .fond-digital::before, .fond-digital::after,
  .fond-digital .orbe { animation: none; }
  .fond-digital::after { opacity: 0; }
}


/* ============================================================================
   ÉCLAIRS — lumière qui traverse le fond par intermittence
   Trois halos brefs et une lame diagonale. Impulsion courte (120 ms), puis silence :
   un éclair permanent deviendrait un stroboscope et fatiguerait la lecture.
   ========================================================================== */
.fond-digital .eclair {
  position: absolute; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(230, 255, 245, .85) 0%, rgba(0, 255, 133, .45) 35%,
              transparent 70%);
  filter: blur(28px); mix-blend-mode: screen;
}
.fond-digital .eclair-1 { width: 26vw; height: 26vw; left: 18%; top: 8%;
  animation: ed-eclair 11s ease-out infinite; }
.fond-digital .eclair-2 { width: 18vw; height: 18vw; right: 12%; top: 32%;
  animation: ed-eclair 17s ease-out 3s infinite; }
.fond-digital .eclair-3 { width: 22vw; height: 22vw; left: 42%; bottom: 6%;
  animation: ed-eclair 23s ease-out 7s infinite; }
.fond-digital .lame {
  position: absolute; top: -10%; left: 8%; width: 2px; height: 130%; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .95) 45%,
              rgba(0, 255, 133, .8) 70%, transparent);
  box-shadow: 0 0 22px rgba(0, 255, 133, .8);
  transform: rotate(12deg); animation: ed-lame 17s ease-out 3s infinite;
}
@keyframes ed-eclair {
  0%, 92%, 100% { opacity: 0; transform: scale(.85); }
  93% { opacity: .85; transform: scale(1.05); }
  94.5% { opacity: .25; }
  96% { opacity: .7; transform: scale(1.12); }
  98% { opacity: 0; }
}
@keyframes ed-lame {
  0%, 91%, 100% { opacity: 0; }
  92% { opacity: .9; }
  93% { opacity: .15; }
  94% { opacity: .65; }
  96% { opacity: 0; }
}
@media (max-width: 760px) {
  .fond-digital .eclair-2, .fond-digital .lame { display: none; }  /* on garde deux éclairs */
  .fond-digital .eclair { filter: blur(18px); }
}
@media (prefers-reduced-motion: reduce) {
  .fond-digital .eclair, .fond-digital .lame { animation: none; opacity: 0; }
}

/* ============================================================================
   COMPOSANTS HÉRITÉS À FOND BLANC — corrigés pour le thème sombre
   ----------------------------------------------------------------------------
   Les pages écrites avant la charte utilisaient des cartes blanches avec texte
   sombre. Sur fond sombre, le texte devenait clair sur blanc : invisible. On ne
   touche pas à leurs gabarits, on reprend leur fond et leurs bordures.
   ========================================================================== */
.theme-emerald .tuile,
.theme-emerald .carte-competition,
.theme-emerald .carte-organisation,
.theme-emerald .confirmation,
.theme-emerald .form-contact,
.theme-emerald .galerie-carte,
.theme-emerald .liste-mission li,
.theme-emerald .effectifs li,
.theme-emerald .partenaires-accueil li,
.theme-emerald .regions-accueil li,
.theme-emerald .pv-feuille,
.theme-emerald .pv-vide,
.theme-emerald .recu-feuille {
  background: rgba(0, 74, 52, .62);
  border-color: var(--ed-bord);
  color: #f4f8f6;
  backdrop-filter: blur(8px);
}
.theme-emerald .tuile strong,
.theme-emerald .carte-competition strong,
.theme-emerald .carte-organisation h3,
.theme-emerald .galerie-carte h3 { color: #ffffff; }
.theme-emerald .tuile span,
.theme-emerald .carte-competition .meta,
.theme-emerald .carte-organisation p,
.theme-emerald .galerie-carte p { color: #dbe7e1; }

/* les pastilles de comptage étaient beiges avec un texte blanc */
.theme-emerald .compte {
  background: rgba(0, 255, 133, .18);
  border: 1px solid rgba(0, 255, 133, .35);
  color: #eafff5;
  font-weight: 600;
}

/* les étiquettes d'état : texte vert sur fond vert translucide, peu lisible */
.theme-emerald .etat {
  color: #eafff5;
  background: rgba(0, 168, 107, .30);
  border: 1px solid rgba(0, 255, 133, .45);
  font-weight: 600;
}
.theme-emerald .etat-en_cours, .theme-emerald .etat-validee, .theme-emerald .etat-joue, .theme-emerald .etat-payee {
  color: #06130e; background: var(--ed-electrique); border-color: var(--ed-electrique); font-weight: 700;
}
.theme-emerald .etat-preparation, .theme-emerald .etat-programme, .theme-emerald .etat-saisie {
  color: #1a1205; background: var(--ed-or-clair); border-color: var(--ed-or-clair); font-weight: 700;
}
.theme-emerald .etat-rejetee, .theme-emerald .etat-annulee, .theme-emerald .etat-refusee {
  color: #fff1ef; background: rgba(179, 38, 30, .85); border-color: #ff8f85; font-weight: 700;
}

/* onglets de filtre : l'actif doit se voir, l'inactif rester lisible */
.theme-emerald .filtres a { color: #dbe7e1; }
.theme-emerald .filtres a.actif { background: var(--ed-secondaire); color: #04140f; font-weight: 700;
  border-color: var(--ed-electrique); }

/* Listes de cartes (compétitions, clubs, actualités) : fond blanc à l'origine */
.theme-emerald .liste-cartes a {
  background: rgba(0, 74, 52, .62);
  border: 1px solid var(--ed-bord);
  border-left: 4px solid var(--ed-secondaire);
  border-radius: 14px;
  color: #f4f8f6;
  backdrop-filter: blur(8px);
  transition: border-color .2s ease, transform .18s ease, box-shadow .2s ease;
}
.theme-emerald .liste-cartes a:hover {
  border-left-color: var(--ed-or-clair);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .35);
}
.theme-emerald .liste-cartes a strong { color: #ffffff; }
.theme-emerald .liste-cartes a .meta,
.theme-emerald .liste-cartes a span:not(.etat):not(.etiquette-categorie) { color: #d7e3dc; }

/* Menus regroupés du portail : <details> natif, donc accessibles au clavier et sans script. */
.entete nav .menu-groupe { position: relative; }
.entete nav .menu-groupe > summary { cursor: pointer; list-style: none; white-space: nowrap;
  color: var(--ed-gris); padding: 4px 2px; }
.entete nav .menu-groupe > summary::-webkit-details-marker { display: none; }
.entete nav .menu-groupe > summary::after { content: " ▾"; font-size: 10px; opacity: .7; }
.entete nav .menu-groupe > summary.actif, .entete nav .menu-groupe[open] > summary { color: var(--ed-electrique); }
.entete nav .menu-panneau { position: absolute; top: 100%; left: 0; z-index: 40; min-width: 210px;
  display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 12px;
  background: rgba(0, 40, 29, .97); border: 1px solid rgba(0, 255, 133, .28);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .5); backdrop-filter: blur(10px); }
.entete nav .menu-panneau a { padding: 7px 9px; border-radius: 8px; color: #dfe9e4; }
.entete nav .menu-panneau a:hover { background: rgba(0, 255, 133, .12); color: var(--ed-electrique); }
@media (max-width: 760px) {
  .entete nav .menu-panneau { position: static; box-shadow: none; border: 0; background: transparent;
    padding: 2px 0 6px 12px; }
}

/* ============================================================================
   TYPOGRAPHIE DORÉE SUR VERT
   ----------------------------------------------------------------------------
   Le blanc sur vert profond perdait en lisibilité sur les facettes. On passe le texte
   des cases, des titres et des valeurs en or, qui tranche sur l'émeraude.
   Contrastes : or clair #F2D27A sur #003D2B = 10,9:1 ; or #E8C15C sur #004A34 = 8,4:1.
   ========================================================================== */
.theme-emerald h1, .theme-emerald h2, .theme-emerald h3, .theme-emerald h4 {
  color: #f4d78a; text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
}
.theme-emerald .tableau thead th { color: #f6d98d; }
.theme-emerald .tableau tbody td { color: #efd9a6; }
.theme-emerald .tableau td.club, .theme-emerald .tableau td.club a,
.theme-emerald .tableau tbody td a { color: #ffe9ae; font-weight: 600; }
.theme-emerald .tableau tbody td .montant,
.theme-emerald .tableau .points { color: var(--ed-or-clair); }
.theme-emerald .carte-stat .valeur, .theme-emerald .chiffre strong { color: #ffe9ae; }
.theme-emerald .carte-stat .libelle { color: #e6cf9a; }
.theme-emerald .liste-cartes a strong { color: #ffe9ae; }
/* les pastilles d'état et d'étiquette gardent leurs propres couleurs : le sable sur le vert
   électrique d'un badge « En cours » tombait à 1,11:1 */
.theme-emerald .liste-cartes a .meta,
.theme-emerald .liste-cartes a span:not(.etat):not(.etiquette-categorie) { color: #e2d3ac; }
.theme-emerald .hero-slogan, .theme-emerald .sous-titre { color: #e9dcc0; }

/* Cases de la page « Les équipes » : dans une rangée, toutes les cases s'arrêtent à la même
   ligne. Le nom était en ligne avec la ville quand celle-ci était courte, et passait dessous
   quand elle était longue : les cases d'une même rangée finissaient à des hauteurs différentes,
   en escalier. On empile donc nom puis ville, et la case prend toute la hauteur de sa rangée. */
.liste-cartes.cartes-clubs li { display: flex; }
.liste-cartes.cartes-clubs a {
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  line-height: 1.25;
}

/* ============================================================================
   RUBRIQUES EN CASES, CHACUNE EN RELIEF
   ----------------------------------------------------------------------------
   Chaque entrée du menu devient une case taillée : facette claire en haut à gauche,
   ombre en bas à droite, arête dorée.Le survol accentue l'arête, l'entrée active
   s'allume en or.
   ========================================================================== */
.entete nav > a, .entete nav > details > summary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 12px;
  color: #f0dcae;
  background:
    linear-gradient(145deg, rgba(0, 255, 133, .16) 0%, rgba(0, 107, 69, .45) 42%,
                    rgba(0, 45, 32, .85) 100%);
  border: 1px solid rgba(212, 175, 55, .35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -2px 6px rgba(0, 0, 0, .40),
    0 4px 12px rgba(0, 0, 0, .30);
  transition: transform .16s ease, box-shadow .18s ease, border-color .18s ease, color .16s ease;
}
.entete nav > a:hover, .entete nav > details > summary:hover {
  transform: translateY(-2px); color: #fff3cf;
  border-color: rgba(255, 215, 0, .65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -2px 8px rgba(0, 0, 0, .45),
    0 10px 22px rgba(0, 0, 0, .40);
}
.entete nav > a.actif, .entete nav > details > summary.actif {
  color: #06130e;
  background: linear-gradient(145deg, #ffe066 0%, var(--ed-or) 45%, #a8842a 100%);
  border-color: #ffe9a3; text-shadow: none; font-weight: 700;
}
.entete nav > details[open] > summary {
  color: #06130e; background: linear-gradient(145deg, #ffe066, var(--ed-or));
  border-color: #ffe9a3; font-weight: 700;
}
.entete nav .nav-espace {
  border-color: rgba(0, 255, 133, .55);
  background: linear-gradient(145deg, rgba(0, 255, 133, .28), rgba(0, 61, 43, .9));
  color: #eafff5; font-weight: 600;
}
@media (max-width: 760px) {
  .entete nav > a, .entete nav > details > summary { padding: 8px 12px; }
}

/* ============================================================================
   CONSTELLATION — 17 étoiles dorées reliées par des éclairs à deux pôles
   ----------------------------------------------------------------------------
   Représentation SYMBOLIQUE : les étoiles sont disposées en arc, sans coordonnées
   géographiques. Nous ne dessinons pas de frontières : aucune géométrie officielle des
   17 régions n'est publiée à ce jour. Dès qu'un fond cartographique validé sera fourni,
   il remplacera cette constellation.
   ========================================================================== */
.constellation { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .38;
  pointer-events: none; }
.lien-eclair { stroke: rgba(255, 215, 0, .28); stroke-width: 1; stroke-dasharray: 4 10;
  animation: ed-courant 9s linear infinite; }
.etoile-or { fill: #ffe066; filter: drop-shadow(0 0 6px rgba(255, 215, 0, .9));
  animation: ed-scintille 4.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.etoile-or.e0 { animation-delay: 0s; } .etoile-or.e1 { animation-delay: .7s; }
.etoile-or.e2 { animation-delay: 1.4s; } .etoile-or.e3 { animation-delay: 2.1s; }
.etoile-or.e4 { animation-delay: 2.8s; } .etoile-or.e5 { animation-delay: 3.5s; }
.pole-or { fill: #ffffff; filter: drop-shadow(0 0 10px rgba(255, 215, 0, 1)); opacity: .9; }
@keyframes ed-scintille {
  0%, 100% { opacity: .35; transform: scale(.8); }
  45% { opacity: 1; transform: scale(1.25); }
  60% { opacity: .8; transform: scale(1); }
}
@keyframes ed-courant { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -140; } }
@media (max-width: 760px) {
  .constellation { opacity: .28; }
  .lien-eclair { stroke-width: .8; }
}
@media (prefers-reduced-motion: reduce) {
  .etoile-or, .lien-eclair { animation: none; }
  .etoile-or { opacity: .8; }
}

/* Les tableaux des hubs utilisent .tableau-emerald : même texte doré que les autres tables. */
.theme-emerald .tableau-emerald tbody td { color: #efd9a6; }
.theme-emerald .tableau-emerald thead th { color: #f6d98d; }
.theme-emerald .tableau-emerald td.club,
.theme-emerald .tableau-emerald td.club a { color: #ffe9ae; font-weight: 600; }
.theme-emerald .tableau-emerald .points,
.theme-emerald .tableau-emerald .rang { color: var(--ed-or-clair); }
.theme-emerald .panneau-emerald, .theme-emerald .panneau-emerald p { color: #efd9a6; }
.theme-emerald .panneau-emerald h3 { color: #f4d78a; }

.champ-piege { position: absolute; left: -9999px; }

.groupe-niveaux { margin: 26px 0 10px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  color: #e6cf9a; }
.dossier-technique { border: 1px solid rgba(212, 175, 55, .45); border-radius: 12px; padding: 14px;
  display: grid; gap: 10px; background: rgba(212, 175, 55, .06); }
.dossier-technique legend { padding: 0 8px; color: #ffe9ae; font-size: 13.5px; }

.bouton-petit { display: inline-block; margin-top: 10px; padding: 8px 14px; font-size: 13.5px;
  border-radius: 10px; font-weight: 600; }
.offre-choisie { background: rgba(212, 175, 55, .14); border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 10px; padding: 10px 12px; }

/* ============================================================================
   ACCORDÉONS — une page de partenariat courte
   Chaque bloc est replié par défaut ; le sommaire donne la carte du contenu en trois lignes.
   <details> natif : aucun JavaScript, accessible au clavier.
   ========================================================================== */
.sommaire-partenaires { display: grid; gap: 10px; margin: 26px 0 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
/* accès rapide en bas de page : un filet doré le sépare du contenu */
.sommaire-partenaires { border-top: 1px solid rgba(212, 175, 55, .35); padding-top: 18px; }
.sommaire-partenaires a { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  min-height: 84px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(0, 255, 133, .3);
  color: #efd9a6; font-size: 13.5px; line-height: 1.25;
  background: linear-gradient(145deg, rgba(0, 255, 133, .12), rgba(0, 61, 43, .85)); text-align: left; }
.sommaire-partenaires a:hover { border-color: var(--ed-or-clair); color: #fff3cf; }
.sommaire-partenaires strong { color: var(--ed-or-clair); font-size: 18px; line-height: 1;
  margin-top: 2px; }
.accordeon { border: 1px solid rgba(0, 255, 133, .22); border-radius: 14px; margin: 0 0 12px;
  background: rgba(0, 74, 52, .38); overflow: hidden; }
.accordeon > summary, .accordeon-imbrique > summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 15px 18px; font-weight: 600; color: #f4d78a;
  background: linear-gradient(145deg, rgba(0, 255, 133, .10), rgba(0, 45, 32, .75));
}
.accordeon > summary::-webkit-details-marker, .accordeon-imbrique > summary::-webkit-details-marker { display: none; }
.accordeon > summary::after, .accordeon-imbrique > summary::after { content: "▾"; color: var(--ed-or-clair); font-size: 12px; }
.accordeon[open] > summary::after, .accordeon-imbrique[open] > summary::after { content: "▴"; }
.accordeon > summary:hover { color: #fff3cf; }
.accordeon-compte { font-size: 12.5px; font-weight: 500; color: #cbd9d2; }
.accordeon-corps { padding: 14px 18px 20px; }
.accordeon-imbrique { border: 1px solid rgba(212, 175, 55, .28); border-radius: 12px; margin: 12px 0;
  background: rgba(0, 45, 32, .45); overflow: hidden; }
.accordeon-imbrique > summary { padding: 12px 14px; font-size: 14.5px; }
@media (max-width: 760px) {
  .accordeon > summary { padding: 13px 14px; font-size: 14.5px; }
  .accordeon-corps { padding: 12px 12px 16px; }
  .sommaire-partenaires { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sommaire-partenaires a { min-height: 72px; font-size: 12.5px; padding: 9px 11px; }
}

/* ============================================================================
   RUBRIQUE ACTIVE EN ROUGE
   ----------------------------------------------------------------------------
   Demande du promoteur : la rubrique sur laquelle on a cliqué s'écrit en rouge, plus en vert
   électrique. Le fond reste sombre (rouge sur or serait illisible) ; c'est le texte et l'arête
   qui portent le rouge. Contraste mesuré : #FF8A7A sur #003D2B = 5,4:1.
   ========================================================================== */
/* la règle générique du thème (.theme-emerald … a.actif) est plus spécifique : on l'égale ici */
.theme-emerald .entete nav a.actif,
.theme-emerald .entete nav details > summary.actif,
.theme-emerald .entete nav .menu-groupe[open] > summary {
  color: #ff8a7a;
  background: linear-gradient(145deg, rgba(179, 38, 30, .28) 0%, rgba(80, 20, 16, .55) 45%,
                              rgba(0, 45, 32, .85) 100%);
  border-color: rgba(255, 138, 122, .65);
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
}
.theme-emerald .entete nav a.actif::after,
.theme-emerald .entete nav details > summary.actif::after { color: #ff8a7a; }
.theme-emerald .entete nav a.actif:hover,
.theme-emerald .entete nav details > summary.actif:hover {
  color: #ffb3a6; border-color: rgba(255, 138, 122, .9); }

/* ── Accueil : un bandeau d'annonces en haut, deux carrés en dessous ─────────────
   Le bandeau défile lentement ; il s'arrête au survol et reste immobile pour qui a
   demandé moins d'animation. Aucun montant, aucune clause : uniquement des annonces
   publiées et les qualités de partenaires. */
/* Trois bandes horizontales, dans cet ordre et sans mélange :
   1. la publicité (annonces et partenaires), sur toute la largeur ;
   2. le texte et la silhouette, côte à côte ;
   3. le reste de la page, sous la section.
   Chaque bande est séparée par un filet : la séparation se voit, elle ne se devine pas. */
.hero-accueil { padding: 20px 20px 0; }
/* Le caisson publicitaire : une seule boîte pleine largeur, en haut. C'est le seul bloc de la
   page qui a un cadre — les autres bandes s'en passent, sinon tout se dispute le regard. */
.hero-bandeau { max-width: 1040px; margin: 0 auto; border: 1px solid var(--ed-or);
  border-radius: 16px; background: linear-gradient(100deg, rgba(212, 175, 55, .10),
  rgba(0, 0, 0, .38) 45%); overflow: hidden; min-height: 112px;
  display: flex; align-items: center; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.hero-ruban { display: flex; width: max-content; animation: ruban 42s linear infinite; }
.hero-bandeau:hover .hero-ruban { animation-play-state: paused; }
.hero-ruban-contenu { display: flex; align-items: center; gap: 22px; padding: 12px 20px;
  white-space: nowrap; font-size: 14px; color: var(--ed-gris); }
.hero-ruban-contenu a { color: var(--ed-blanc); text-decoration: none; }
.hero-ruban-contenu a:hover { color: var(--ed-electrique); }
.ruban-titre { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 800;
  color: #06130e; background: var(--ed-or-clair); padding: 5px 11px; border-radius: 999px; }
.ruban-partenaire strong { color: var(--ed-or-clair); font-weight: 700; }
.ruban-sep { color: var(--ed-electrique); opacity: .7; }
@keyframes ruban { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hero-ruban { animation: none; } }

.hero-duo { display: grid; grid-template-columns: 1fr 1.24fr; gap: 34px; max-width: 1180px;
  margin: 0 auto; padding-bottom: 22px; border-bottom: 1px solid var(--ed-bord);
  position: relative; z-index: 1; }
/* Les deux cellules du milieu ne sont pas des colonnes : ni cadre, ni fond, un simple
   intervalle. Le texte et la silhouette flottent sur le fond de la page, comme une bande. */
.hero-col { border: 0; background: transparent; padding: 6px 0;
  min-height: 200px; display: flex; flex-direction: column; justify-content: center; }
.hero-col-carte { align-items: center; justify-content: flex-start; }
.hero-accueil .hero-contenu { max-width: 100%; margin: 0; text-align: left; position: relative; z-index: 1; }
.hero-accueil .hero-titre { font-size: clamp(19px, 2.7vw, 36px); line-height: 1.2; }
@media (min-width: 1000px) { .hero-accueil .hero-phrase { white-space: nowrap; } }
/* Le nom de la Ligue occupe sa propre ligne, sous la phrase — un cran plus petit, en blanc, pour
   qu'il se lise comme la signature de la phrase et non comme une deuxième accroche. */
.hero-accueil .hero-nom { display: block; margin-top: .14em; font-size: .72em;
  font-weight: 700; letter-spacing: -.01em; color: var(--ed-blanc); }
.hero-accueil .hero-slogan { font-size: clamp(15px, 1.5vw, 18px); max-width: 100%; }
.hero-accueil .hero-carte { position: static; width: 100%; max-width: 580px; margin: 0 auto; }
@media (max-width: 900px) {
  .hero-duo { grid-template-columns: 1fr; gap: 18px; }
  .hero-col { min-height: 0; padding: 22px; }
  .hero-accueil .hero-titre { font-size: clamp(26px, 7vw, 38px); }
  .hero-accueil .hero-carte { width: 86%; margin: 22px auto 0; }
}

/* Le ballon du bandeau : il sépare les textes en roulant sur lui-même. Une rotation lente,
   coupée pour qui a demandé moins d'animation — un bandeau qui tourne en permanence fatigue. */
.ruban-ballon { width: 36px; height: 36px; flex: 0 0 auto; animation: ballon-tourne 4.2s linear infinite; }
@keyframes ballon-tourne { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ruban-ballon { animation: none; } }

/* Réservé au grand format publicitaire : la zone reste vide tant que le visuel n'est pas fourni.
   Une trame discrète dit qu'elle est intentionnelle — un vide sans repère ressemble à un bug. */
.hero-emplacement { max-width: 1180px; margin: 18px auto 22px; min-height: clamp(240px, 30vw, 380px);
  position: relative; z-index: 0;
  border: 1px dashed rgba(212, 175, 55, .5); border-radius: 16px;
  background: rgba(212, 175, 55, .04); display: grid; place-items: center; }
.hero-emplacement span { font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(215, 227, 220, .45); }

/* Décalage du scintillement, une règle par étoile : aucun style en ligne, la politique
   de sécurité de la page interdit les attributs style. */
.hero-carte-etoiles > g:nth-of-type(1) .etoile { animation-delay: 0.0s; }
.hero-carte-etoiles > g:nth-of-type(2) .etoile { animation-delay: 0.23s; }
.hero-carte-etoiles > g:nth-of-type(3) .etoile { animation-delay: 0.46s; }
.hero-carte-etoiles > g:nth-of-type(4) .etoile { animation-delay: 0.69s; }
.hero-carte-etoiles > g:nth-of-type(5) .etoile { animation-delay: 0.92s; }
.hero-carte-etoiles > g:nth-of-type(6) .etoile { animation-delay: 1.15s; }
.hero-carte-etoiles > g:nth-of-type(7) .etoile { animation-delay: 1.38s; }
.hero-carte-etoiles > g:nth-of-type(8) .etoile { animation-delay: 1.61s; }
.hero-carte-etoiles > g:nth-of-type(9) .etoile { animation-delay: 1.84s; }
.hero-carte-etoiles > g:nth-of-type(10) .etoile { animation-delay: 2.07s; }
.hero-carte-etoiles > g:nth-of-type(11) .etoile { animation-delay: 2.3s; }
.hero-carte-etoiles > g:nth-of-type(12) .etoile { animation-delay: 2.53s; }
.hero-carte-etoiles > g:nth-of-type(13) .etoile { animation-delay: 2.76s; }
.hero-carte-etoiles > g:nth-of-type(14) .etoile { animation-delay: 2.99s; }
.hero-carte-etoiles > g:nth-of-type(15) .etoile { animation-delay: 3.22s; }
.hero-carte-etoiles > g:nth-of-type(16) .etoile { animation-delay: 3.45s; }
.hero-carte-etoiles > g:nth-of-type(17) .etoile { animation-delay: 3.68s; }

/* ============================================================================
   PAGES LÉGALES — conditions d'utilisation et politique de confidentialité
   ----------------------------------------------------------------------------
   Texte long : la largeur est bornée à 74 caractères pour que l'œil ne perde pas
   la ligne, et les titres de section portent un filet d'or qui marque la coupure
   sans ajouter de carte. Aucun style en ligne : la politique de sécurité du site
   l'interdit, et le test des pages légales le vérifie.
   ========================================================================== */
.page-legale { max-width: 74ch; padding-bottom: 26px; }
.page-legale h1 { margin-bottom: 4px; }
.page-legale .maj {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ed-gris);
  opacity: .85;
}
.page-legale section { margin: 26px 0 0; }
.page-legale h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(212, 175, 55, .28);
  color: #ffe9ae;
}
.page-legale h3 { font-size: 16px; margin: 18px 0 4px; color: #ffffff; }
.page-legale p { margin: 0 0 10px; }
.page-legale ul { margin: 8px 0 12px; padding-left: 1.15em; display: grid; gap: 6px; }
.page-legale li { line-height: 1.55; }
.page-legale a { color: var(--ed-electrique); text-decoration: underline; text-underline-offset: 2px; }
.page-legale a:hover { color: var(--ed-or-clair); }
.page-legale strong { color: #ffffff; }
@media (max-width: 640px) {
  .page-legale h2 { font-size: 18px; }
  .page-legale { font-size: 15.5px; }
}

/* ============================================================================
   PAGE STATISTIQUES — cinq rubriques, chacune avec sa base de calcul
   ----------------------------------------------------------------------------
   Le sommaire est une barre d'ancres : la page est longue et le lecteur doit
   pouvoir sauter directement à la rubrique qui l'intéresse. Chaque rubrique
   s'ouvre sur un filet d'or et se ferme sur sa source, en petit : un chiffre
   détaché de sa base de calcul n'est plus vérifiable.
   ========================================================================== */
.choix-saison { margin: -6px 0 18px; font-size: 13.5px; color: var(--ed-gris); }
.choix-saison a { color: var(--ed-gris); text-decoration: none; padding: 2px 6px; border-radius: 6px; }
.choix-saison a:hover, .choix-saison a.actif { color: var(--ed-noir); background: var(--ed-electrique); }

.sommaire-stats {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px;
  padding: 10px 12px; border: 1px solid var(--ed-bord); border-radius: 999px;
  background: var(--ed-verre);
}
.sommaire-stats a {
  font-size: 13px; letter-spacing: .04em; text-decoration: none; color: var(--ed-gris);
  padding: 4px 10px; border-radius: 999px; border: 1px solid transparent;
}
.sommaire-stats a:hover { color: #ffffff; border-color: rgba(0, 255, 133, .45); }

.rubrique-stats { margin: 0 0 44px; scroll-margin-top: 90px; }
.rubrique-stats h2 {
  font-size: clamp(19px, 2.2vw, 24px); margin: 0 0 12px; padding-top: 14px;
  border-top: 1px solid rgba(212, 175, 55, .32); color: #ffe9ae;
}
.rubrique-stats h3 { font-size: 16px; margin: 22px 0 8px; color: #ffffff; }
.rubrique-stats .source { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ed-gris); opacity: .9; }

/* forme récente : trois pastilles, vert / gris / rouge du drapeau */
.puces-forme { display: flex; gap: 4px; }
.puces-forme span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px; font-size: 12px; font-weight: 700;
}
.forme-v { background: rgba(0, 255, 133, .22); color: #7dffbe; border: 1px solid rgba(0, 255, 133, .55); }
.forme-n { background: rgba(197, 210, 203, .16); color: var(--ed-gris); border: 1px solid rgba(197, 210, 203, .4); }
.forme-d { background: rgba(239, 43, 45, .2); color: #ff9a9b; border: 1px solid rgba(239, 43, 45, .5); }

/* fair-play : une ligne par club, le club à gauche, le détail en petit */
.liste-fair-play { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.liste-fair-play li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline;
  padding: 8px 12px; border-radius: 10px; background: var(--ed-verre);
  border: 1px solid rgba(0, 255, 133, .16); font-size: 14px;
}
.liste-fair-play .valeur { font-weight: 700; color: var(--ed-electrique); font-variant-numeric: tabular-nums; }
.liste-fair-play .detail { font-size: 12px; color: var(--ed-gris); }

/* profil des licenciés : six panneaux resserrés, puis trois répartitions */
.chiffres-licencies { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 22px; }
.repartitions { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.repartition h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--ed-gris); }
.ligne-part {
  display: grid; grid-template-columns: minmax(92px, 1fr) 2fr auto; gap: 10px; align-items: center;
  margin: 0 0 6px; font-size: 13.5px;
}
.ligne-part .valeur { font-variant-numeric: tabular-nums; color: #ffffff; }
.ligne-part meter { width: 100%; height: 8px; }
.ligne-part meter::-webkit-meter-bar { background: rgba(255, 255, 255, .1); border: none; border-radius: 99px; }
.ligne-part meter::-webkit-meter-optimum-value { background: linear-gradient(90deg, var(--ed-emeraude), var(--ed-electrique)); border-radius: 99px; }
.ligne-part meter::-moz-meter-bar { background: linear-gradient(90deg, var(--ed-emeraude), var(--ed-electrique)); border-radius: 99px; }

@media (max-width: 640px) {
  .sommaire-stats { border-radius: 14px; }
  .rubrique-stats { margin-bottom: 34px; }
  .liste-fair-play li { grid-template-columns: 1fr auto; }
  .liste-fair-play .detail { grid-column: 1 / -1; }
}

/* Un tableau de six colonnes ne tient pas sur 390 px : il défile dans sa carte plutôt que de
   pousser la page. Le défilement vit sur le conteneur, pas sur la page. */
.rubrique-stats .tableau { overflow-x: auto; }
.rubrique-stats .tableau table { min-width: 420px; }


/* ============================================================================
   EMBLÈMES DES ÉQUIPES
   ----------------------------------------------------------------------------
   Les vingt emblèmes viennent de l'affiche officielle de la Ligue, découpés un par un
   sur fond transparent. Un emblème transparent posé directement sur le vert de la carte
   disparaîtrait pour ceux qui portent du blanc : on les reçoit donc sur une pastille
   ivoire, de taille fixe, cerclée d'un liseré clair — la pastille est le socle, l'emblème
   la médaille. Toutes les pastilles ont le même diamètre, quel que soit le format du
   logo : la grille reste alignée.
   ========================================================================== */
.logo-club {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 50%;
  padding: 10px;
  background: radial-gradient(circle at 34% 26%, #ffffff 0%, #f4f5f1 58%, #e3e6de 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .85),
    inset 0 -3px 6px rgba(0, 0, 0, .07),
    0 4px 12px rgba(0, 0, 0, .30);
}

/* Cases de la page « Les équipes » : emblème centré, nom et région centrés dessous. */
.liste-cartes.cartes-clubs a {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 7px;
  padding: 18px 14px 16px;
}
.liste-cartes.cartes-clubs a .logo-club { margin-bottom: 4px; }
.liste-cartes.cartes-clubs a strong { line-height: 1.3; }

/* Fiche du club : la pastille accompagne le nom, sans écraser le titre. */
.logo-club-fiche { width: 112px; height: 112px; padding: 14px; margin-bottom: 12px; }
.fiche-club h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.fiche-club h1 .logo-club-fiche { margin-bottom: 0; }
.club-sigle {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .08em;
  padding: 3px 9px;
  border-radius: 999px;
  color: #0d2b1a;
  background: #e9dcc0;
}

@media (max-width: 560px) {
  .logo-club { width: 62px; height: 62px; padding: 8px; }
  .logo-club-fiche { width: 88px; height: 88px; padding: 11px; }
}

/* ----------------------------------------------------------------------------
   FILTRE DES JOUEURS
   Trois listes déroulantes et un bouton, plutôt que des rangées de liens : la
   page « Les joueurs » en comptait plus de quarante, et l'on ne voyait plus la
   liste qu'ils filtraient.
   -------------------------------------------------------------------------- */
.filtres-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 16px;
  margin: 14px 0 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(201, 162, 74, .28);
  border-radius: 10px;
}
.filtres-form .champ { display: flex; flex-direction: column; gap: 5px; min-width: 180px; flex: 1 1 180px; }
.filtres-form .champ span { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #cbb887; }
.filtres-form select {
  width: 100%;
  padding: 9px 10px;
  font: inherit;
  color: #0c2b22;
  background: #f4f5f1;
  border: 1px solid rgba(11, 40, 32, .25);
  border-radius: 7px;
}
.filtres-form .bouton-emerald { flex: 0 0 auto; }
.filtres-form .lien-reinit { align-self: center; color: #cbb887; font-size: .86rem; }
