/* ============================================================
   La Carte IA du Sport × Edmo — feuille de style
   Charte EDMO : Anti-Flash White, Rich Black, verts Meadow/Caribbean
   ============================================================ */

:root {
  /* Charte EDMO */
  --fond: #F1F7F6;          /* Anti-Flash White */
  --fond-2: #E2EDE9;        /* variante teintée */
  --encre: #021B14;         /* Rich Black */
  --encre-doux: #294D42;
  --vert-nuit: #032221;     /* Dark Green */
  --accent: #00DF81;        /* Caribbean Green */
  --accent-fonce: #2CC295;  /* Mountain Meadow */
  --vert-fonce: #03624C;    /* Bangladesh Green */

  /* Ramp verte (secondaires) */
  --frog: #17876D;
  --mint: #2FA98C;
  --pine: #06302B;

  /* Sémantique par service (couleur = métier).
     Palette volontairement élargie au-delà de la charte : 10 teintes
     distinctes, saturation maîtrisée pour rester élégantes sur fond clair. */
  --c-direction: #00DF81;      /* vert charte, l'ancrage */
  --c-commercial: #FF7A45;     /* orange corail */
  --c-marcom: #EC4899;         /* rose framboise */
  --c-billetterie: #F5B301;    /* ambre */
  --c-evenementiel: #0EA5E9;   /* bleu ciel */
  --c-sportif: #EF4444;        /* rouge */
  --c-juridique: #6366F1;      /* indigo */
  --c-finance: #0D9488;        /* teal */
  --c-rh: #D946EF;             /* orchidée */
  --c-formation: #A3E635;      /* citron vert */

  /* Type */
  --display: "Manrope", system-ui, sans-serif;
  --corps: "Manrope", system-ui, sans-serif;

  /* Structure */
  --rayon: 16px;
  --rayon-s: 10px;
  --pilule: 999px;
  --max: 1180px;
  --bord: 1.5px solid rgba(2, 27, 20, 0.16);
  --ombre: 0 2px 0 rgba(2, 27, 20, 0.08);
  --ombre-relief: 0 10px 24px rgba(2, 27, 20, 0.16);
}

* { box-sizing: border-box; }

/* L'attribut hidden doit toujours l'emporter, même sur un display de classe. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--corps);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.18; font-weight: 800; letter-spacing: -0.02em; padding-block: 0.09em; }
p { margin: 0; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Highlights ---- */
.hl { position: relative; white-space: nowrap; }
.hl-accent { color: var(--vert-fonce); }
.hl-marque { color: var(--encre); background: var(--accent); padding: 0 0.12em; border-radius: 6px; box-decoration-break: clone; }
.hl-mot { color: var(--accent); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 40px);
  background: var(--encre);
  color: #F1F7F6;
  border-bottom: 1px solid rgba(241, 247, 246, 0.16);
}
.wordmark {
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  text-decoration: none; letter-spacing: -0.02em; color: #F1F7F6;
}
.wordmark-x { color: var(--accent); font-weight: 800; }
.header-retour {
  font-size: 0.9rem; font-weight: 600; color: rgba(241, 247, 246, 0.82);
  text-decoration: none; margin-right: auto; margin-left: 22px;
}
.header-retour:hover { color: var(--accent); }
.header-feuille {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  background: var(--accent); color: var(--encre);
  padding: 9px 16px; border-radius: var(--pilule);
  transition: transform 0.15s ease, background 0.15s ease;
}
.header-feuille:hover { transform: translateY(-1px); background: var(--accent-fonce); }
.pastille {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px;
  padding: 0 6px; border-radius: var(--pilule);
  background: var(--encre); color: var(--accent);
  font-family: var(--display); font-weight: 800; font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Héro
   ============================================================ */
.hero {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 9vw, 110px) clamp(16px, 4vw, 40px) clamp(28px, 5vw, 56px);
  text-align: center;
}
.hero-blobs { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 47% 53% 44% 56% / 55% 48% 52% 45%; filter: blur(2px); opacity: 0.16; }
.blob-a { width: 230px; height: 230px; background: var(--frog); top: 4%; left: -60px; animation: flotte 13s ease-in-out infinite; }
.blob-b { width: 180px; height: 180px; background: var(--accent); top: 40%; right: -40px; animation: flotte 16s ease-in-out infinite reverse; }
.blob-c { width: 130px; height: 130px; background: var(--accent-fonce); bottom: -20px; left: 20%; border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%; animation: flotte 11s ease-in-out infinite; }
@keyframes flotte {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(14px, -22px) rotate(12deg); }
}

.hero > * { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 0.82rem;
  color: var(--vert-fonce); background: var(--fond);
  padding: 7px 15px; border-radius: var(--pilule); border: 1.5px solid var(--vert-fonce);
  margin-bottom: 26px;
}
.hero-titre {
  font-size: clamp(2.6rem, 8vw, 5.2rem); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 24px;
}
.hero-sub {
  max-width: 660px; margin: 0 auto 34px; font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  color: var(--encre-doux);
}
.hero-sub strong { color: var(--encre); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 800; font-size: 0.98rem;
  padding: 14px 28px; border-radius: var(--pilule);
  text-decoration: none; border: 2px solid var(--encre);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-plein { background: var(--encre); color: var(--fond); }
.btn-plein:hover { transform: translateY(-2px); box-shadow: var(--ombre-relief); }
.btn-contour { background: transparent; color: var(--encre); }
.btn-contour:hover { background: var(--encre); color: var(--fond); }
.btn-tangerine { background: var(--accent); color: var(--encre); border-color: var(--accent); }
.btn-tangerine:hover { transform: translateY(-2px); background: var(--accent-fonce); border-color: var(--accent-fonce); }
.btn-contour-clair { background: transparent; color: var(--fond); border-color: var(--fond); }
.btn-contour-clair:hover { background: var(--accent); color: var(--encre); border-color: var(--accent); }
.btn-lien {
  background: none; border: none; color: var(--encre-doux);
  font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 4px;
}
.btn-lien:hover { color: var(--vert-fonce); }

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  overflow: hidden; background: var(--encre); color: var(--fond);
  padding: 14px 0; margin: 8px 0 0;
}
.marquee-piste {
  display: inline-flex; gap: 0; white-space: nowrap;
  will-change: transform; animation: defile 42s linear infinite;
}
.marquee:hover .marquee-piste { animation-play-state: paused; }
.marquee-item {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  padding: 0 26px; display: inline-flex; align-items: center; gap: 26px;
}
.marquee-item::after { content: "◆"; color: var(--accent); font-size: 0.6rem; }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Mode d'emploi
   ============================================================ */
.mode-emploi { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 72px) clamp(16px, 4vw, 40px); }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.etape {
  background: var(--fond); border: var(--bord); border-radius: var(--rayon);
  padding: 26px 24px; position: relative;
}
.etape-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--encre);
  font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin-bottom: 16px;
}
.etape:nth-child(2) .etape-num { background: var(--accent-fonce); }
.etape:nth-child(3) .etape-num { background: var(--vert-fonce); color: var(--fond); }
.etape h3 { font-size: 1.4rem; margin-bottom: 8px; }
.etape p { color: var(--encre-doux); font-size: 0.98rem; }

/* ============================================================
   Explorer
   ============================================================ */
.explorer { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) clamp(48px, 8vw, 90px); }
#explorer-titre { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 24px; }

.entrees { display: inline-flex; background: var(--fond-2); border: var(--bord); border-radius: var(--pilule); padding: 4px; margin-bottom: 22px; }
.entree {
  border: none; background: transparent; color: var(--encre-doux);
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  padding: 10px 22px; border-radius: var(--pilule); transition: all 0.15s ease;
}
.entree[aria-pressed="true"] { background: var(--encre); color: var(--fond); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-axe { margin-bottom: 24px; }
.chip {
  border: var(--bord); background: var(--fond); color: var(--encre);
  font-family: var(--corps); font-weight: 600; font-size: 0.9rem;
  padding: 8px 15px; border-radius: var(--pilule);
  transition: all 0.13s ease; display: inline-flex; align-items: center; gap: 7px;
}
.chip:hover { border-color: var(--encre); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.chip .pastille-nb { font-size: 0.78rem; opacity: 0.6; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .pastille-nb { opacity: 0.8; }
/* pastille couleur pour l'axe métier */
.chip .point { width: 10px; height: 10px; border-radius: 50%; flex: none; }

.filtres-fins {
  display: flex; flex-wrap: wrap; gap: 22px 34px; align-items: flex-start;
  padding: 20px 22px; background: var(--fond-2); border: var(--bord); border-radius: var(--rayon);
  margin-bottom: 26px;
}
.filtre-groupe { display: flex; flex-direction: column; gap: 10px; }
.filtre-label {
  font-family: var(--display); font-weight: 800; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--encre-doux);
}
.chip-s {
  border: var(--bord); background: var(--fond); color: var(--encre);
  font-weight: 600; font-size: 0.85rem; padding: 6px 13px; border-radius: var(--pilule);
  transition: all 0.13s ease;
}
.chip-s:hover { border-color: var(--encre); }
.chip-s[aria-pressed="true"] { background: var(--vert-fonce); color: #F1F7F6; border-color: var(--vert-fonce); }

.barre-resultats { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.nb-resultats { font-weight: 600; color: var(--encre-doux); }
.nb-resultats strong { color: var(--encre); font-family: var(--display); }

/* ---- Grille de cartes ---- */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }

.carte {
  --accent-carte: var(--accent);
  position: relative; text-align: left;
  background: #FBFDFC; border: var(--bord); border-radius: var(--rayon);
  padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
}
.carte::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--accent-carte, var(--accent));
}
.carte:hover { transform: translateY(-3px); box-shadow: var(--ombre-relief); border-color: var(--encre); }
.carte.est-choisi { border-color: var(--vert-fonce); box-shadow: 0 0 0 2.5px var(--vert-fonce); }

.carte-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.carte-service {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-weight: 800; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--encre-doux);
}
.carte-service .point { width: 11px; height: 11px; border-radius: 50%; background: var(--accent-carte, var(--accent)); flex: none; }

.carte-ajout {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--encre); background: var(--fond); color: var(--encre);
  font-size: 1.35rem; line-height: 1; display: grid; place-items: center;
  transition: all 0.14s ease; font-family: var(--display);
}
.carte-ajout:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.carte.est-choisi .carte-ajout { background: var(--vert-fonce); border-color: var(--vert-fonce); color: #F1F7F6; }

.carte-titre {
  font-family: var(--display); font-weight: 800; font-size: 1.14rem;
  line-height: 1.24; letter-spacing: -0.01em; padding-block: 0.09em;
}
.carte-douleur { font-size: 0.92rem; color: var(--encre-doux); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carte-pied { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tag {
  font-size: 0.74rem; font-weight: 600; padding: 4px 10px; border-radius: var(--pilule);
  border: 1.5px solid rgba(2, 27, 20, 0.2); color: var(--encre-doux);
}
.tag-faisabilite { color: var(--encre); }
.tag-facile { background: rgba(0, 223, 129, 0.28); border-color: transparent; }
.tag-moyen { background: rgba(44, 194, 149, 0.28); border-color: transparent; }
.tag-complexe { background: rgba(3, 98, 76, 0.22); border-color: transparent; }
.tag-preuve { display: inline-flex; align-items: center; gap: 5px; }
.tag-preuve::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tag-eprouve::before { background: var(--accent); }
.tag-teste::before { background: var(--accent-fonce); }
.tag-demande::before { background: var(--frog); }

.carte-lien-detail {
  position: absolute; inset: 0; z-index: 1; background: none; border: none; padding: 0;
  font-size: 0; color: transparent;
}
.carte-tete, .carte-titre, .carte-douleur, .carte-pied { position: relative; z-index: 2; pointer-events: none; }
.carte-ajout { position: relative; z-index: 3; pointer-events: auto; }

/* ---- État vide ---- */
.etat-vide {
  text-align: center; padding: 60px 24px; border: 2px dashed rgba(2, 27, 20, 0.25);
  border-radius: var(--rayon); background: var(--fond-2);
}
.etat-vide-titre { font-family: var(--display); font-weight: 800; font-size: 1.4rem; margin-bottom: 8px; }
.etat-vide p { color: var(--encre-doux); margin-bottom: 18px; }

/* ============================================================
   Feuille de route (panneau sombre)
   ============================================================ */
.feuille { padding: 0 clamp(16px, 4vw, 40px) clamp(50px, 8vw, 90px); scroll-margin-top: 80px; }
.feuille-panneau {
  max-width: var(--max); margin: 0 auto; background: var(--vert-nuit); color: var(--fond);
  border-radius: clamp(20px, 3vw, 28px); padding: clamp(30px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.feuille-panneau::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 223, 129, 0.22), transparent 70%);
  top: -120px; right: -80px; pointer-events: none;
}
.feuille-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; position: relative; z-index: 1; }
#feuille-titre { font-size: clamp(1.8rem, 4.5vw, 2.7rem); }
.feuille-compte { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.feuille-sous { color: rgba(241, 247, 246, 0.75); font-size: 1rem; margin: -6px 0 24px; max-width: 620px; position: relative; z-index: 1; }
.feuille-vide { color: rgba(241, 247, 246, 0.62); font-size: 1.05rem; padding: 18px 0 8px; position: relative; z-index: 1; }
.feuille-liste { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.fr-item {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  background: rgba(241, 247, 246, 0.06); border: 1.5px solid rgba(241, 247, 246, 0.16);
  border-radius: var(--rayon-s);
}
.fr-item-point { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.fr-item-texte { flex: 1; min-width: 0; }
.fr-item-titre { font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.3; }
.fr-item-meta { font-size: 0.8rem; color: rgba(241, 247, 246, 0.55); }
.fr-item-retirer {
  flex: none; background: none; border: 1.5px solid rgba(241, 247, 246, 0.3); color: var(--fond);
  width: 30px; height: 30px; border-radius: 50%; font-size: 1.1rem; line-height: 1;
  display: grid; place-items: center; transition: all 0.14s ease;
}
.fr-item-retirer:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); }

.feuille-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; position: relative; z-index: 1; }
.feuille-actions .btn { max-width: 100%; }
.feuille-note { font-size: 0.88rem; color: rgba(241, 247, 246, 0.62); max-width: 520px; }
.feuille-contact {
  margin-top: 30px; padding-top: 26px; border-top: 1.5px solid rgba(241, 247, 246, 0.16);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.feuille-contact p { font-family: var(--display); font-weight: 700; font-size: 1.15rem; max-width: 46ch; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 60px; text-align: center; }
.footer-signature { font-family: var(--display); font-weight: 800; font-size: 1.4rem; margin-bottom: 12px; padding-block: 0.09em; }
.footer-note { max-width: 620px; margin: 0 auto; font-size: 0.9rem; color: var(--encre-doux); }

/* ============================================================
   FAB (mobile)
   ============================================================ */
.fab {
  position: fixed; bottom: 20px; right: 20px; z-index: 200;
  display: none; align-items: center; gap: 10px;
  background: var(--accent); color: var(--encre); border: 2px solid var(--encre);
  padding: 13px 20px; border-radius: var(--pilule); box-shadow: var(--ombre-relief);
  font-family: var(--display); font-weight: 800; font-size: 0.95rem;
}
.fab .pastille-fab { background: var(--encre); color: var(--accent); }

/* ============================================================
   Fiche détail (modale)
   ============================================================ */
.voile {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center;
  background: rgba(2, 27, 20, 0.55); backdrop-filter: blur(4px);
  padding: clamp(12px, 4vw, 40px); animation: apparait 0.2s ease;
}
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }
.fiche {
  --accent-carte: var(--accent);
  position: relative; width: min(680px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--fond); border: none; border-radius: var(--rayon);
  box-shadow: 0 24px 60px rgba(2, 27, 20, 0.45);
  animation: monte 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@keyframes monte { from { transform: translateY(24px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.fiche-fermer {
  position: sticky; top: 14px; float: right; margin: 14px 14px 0 0;
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--encre);
  background: var(--fond); font-size: 1.5rem; line-height: 1; z-index: 5;
  display: grid; place-items: center; transition: all 0.14s ease;
}
.fiche-fermer:hover { background: var(--accent); border-color: var(--accent); }
.fiche-contenu { padding: clamp(24px, 5vw, 40px); padding-top: 20px; }
.fiche-bandeau { height: 7px; background: var(--accent-carte, var(--accent)); position: absolute; top: 0; left: 0; right: 0; border-radius: var(--rayon) var(--rayon) 0 0; }
.fiche-service {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--display);
  font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--encre-doux); margin-bottom: 14px;
}
.fiche-service .point { width: 12px; height: 12px; border-radius: 50%; background: var(--accent-carte, var(--accent)); }
.fiche-titre { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: 18px; letter-spacing: -0.02em; }
.fiche-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }

.fiche-bloc { margin-bottom: 22px; }
.fiche-bloc-titre {
  font-family: var(--display); font-weight: 800; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--vert-fonce); margin-bottom: 7px;
}
.fiche-douleur { font-size: 1.05rem; }
.fiche-gain {
  font-size: 1.05rem; background: rgba(0, 223, 129, 0.16);
  padding: 12px 16px; border-radius: var(--rayon-s);
}
.fiche-prompt-boite { position: relative; }
.fiche-prompt {
  background: var(--encre); color: var(--fond); border-radius: var(--rayon-s);
  padding: 18px 18px 18px; font-size: 0.92rem; line-height: 1.5; white-space: pre-wrap;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.fiche-copier-prompt {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: var(--encre); border: none;
  font-weight: 700; font-size: 0.78rem; padding: 7px 13px; border-radius: var(--pilule);
  transition: all 0.14s ease;
}
.fiche-copier-prompt:hover { background: var(--accent-fonce); }
.fiche-outils { display: flex; flex-wrap: wrap; gap: 8px; }
.outil-pill {
  font-weight: 600; font-size: 0.85rem; padding: 6px 14px; border-radius: var(--pilule);
  background: var(--fond-2); border: var(--bord);
}
.fiche-lien-calcul {
  display: inline-block; margin-top: 10px; font-size: 0.88rem; font-weight: 600;
  color: var(--encre-doux); text-decoration: underline; text-underline-offset: 3px;
}
.fiche-lien-calcul:hover { color: var(--vert-fonce); }
.fiche-prompt-note { font-size: 0.88rem; color: var(--encre-doux); margin-bottom: 10px; }
.fiche-niveau { font-size: 0.9rem; color: var(--encre-doux); margin-bottom: 0; }
.fiche-niveau-badge {
  display: inline-block; font-weight: 800; font-size: 0.8rem; color: var(--encre);
  background: rgba(0, 223, 129, 0.16); border: 1.5px solid rgba(2, 27, 20, 0.16); border-radius: var(--pilule);
  padding: 3px 11px;
}
.fiche-process {
  margin: 0; padding-left: 0; list-style: none; counter-reset: etape-process;
  display: flex; flex-direction: column; gap: 10px;
}
.fiche-process li {
  counter-increment: etape-process; position: relative; padding: 10px 14px 10px 46px;
  background: var(--fond-2); border: var(--bord); border-radius: var(--rayon-s);
  font-size: 0.95rem;
}
.fiche-process li::before {
  content: counter(etape-process); position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--encre); color: var(--accent);
  font-weight: 800; font-size: 0.8rem;
}

.fiche-conseil { font-size: 0.95rem; color: var(--encre-doux); font-style: italic; display: flex; gap: 10px; }
.fiche-conseil::before { content: "→"; color: var(--vert-fonce); font-style: normal; font-weight: 800; }
.fiche-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: var(--bord); }
.fiche-skill-note { font-size: 0.88rem; color: var(--encre-doux); margin-top: 14px; }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  z-index: 600; background: var(--encre); color: var(--fond);
  padding: 13px 22px; border-radius: var(--pilule); font-weight: 600; font-size: 0.95rem;
  opacity: 0; pointer-events: none; transition: all 0.25s ease; box-shadow: var(--ombre-relief);
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 820px) {
  .etapes { grid-template-columns: 1fr; }
  .header-feuille { display: none; }
  .header-retour { display: none; }
  .fab { display: inline-flex; }
  .feuille { scroll-margin-top: 20px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .grille { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .filtres-fins { flex-direction: column; gap: 18px; }
  .fiche-cta { flex-direction: column; }
  .fiche-cta .btn { width: 100%; }
}

/* ============================================================
   Accessibilité — focus & reduced motion
   ============================================================ */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.carte:focus-within { border-color: var(--encre); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .marquee-piste { animation: none; transform: none; }
  .blob { animation: none; }
}

/* ============================================================
   Curseur croix de repérage — injecté par app.js (synchronisé
   depuis la carte source), non repris dans la charte Edmo.
   Sans ces règles il resterait dans le flux et créerait un
   grand espace blanc sous le footer.
   ============================================================ */
.curseur { display: none; }
body.curseur-actif, body.curseur-actif * { cursor: auto; }
