@charset "UTF-8";
/* =============================================================
   MLM FORMATION — Design system
   Sommaire
   01. Tokens (thème clair / thème sombre)
   02. Reset & base
   03. Typographie
   04. Layout & utilitaires
   05. Boutons
   06. Badges, pills, chips
   07. Cartes
   08. Formulaires
   09. En-tête & navigation
   10. Hero
   11. Sections du site
   12. Pied de page
   13. Composants divers
   14. Animations & responsive
   ============================================================= */

/* ==== 01. TOKENS ========================================== */

:root {
  /* Couleurs de marque — identiques dans les deux thèmes */
  --marque-1: #4c51e0;
  --marque-2: #7b6cf6;
  --marque-3: #f97316;

  /* Surfaces */
  --bg:            #f6f7fc;
  --bg-motif:      #eceffa;
  --surface:       #ffffff;
  --surface-2:     #f2f4fb;
  --surface-3:     #e8ecf7;
  --surface-inv:   #10131f;

  /* Bordures */
  --bord:          #e3e7f2;
  --bord-fort:     #ccd3e6;

  /* Texte */
  --txt:           #10131f;
  --txt-2:         #454d64;
  --txt-3:         #6d7690;
  --txt-inv:       #ffffff;

  /* Primaire */
  --prim:          #4c51e0;
  --prim-fort:     #3a3fc4;
  --prim-clair:    #7b6cf6;
  --prim-doux:     #eeeffe;
  --prim-contour:  #d6d8fc;
  --prim-txt:      #ffffff;

  /* Accent */
  --acc:           #d9480f;
  --acc-doux:      #fff0e6;
  --acc-contour:   #ffd9bf;

  /* Sémantique */
  --ok:            #0e7a5f;
  --ok-doux:       #e2f6ef;
  --warn:          #a45a00;
  --warn-doux:     #fdf1dd;
  --danger:        #c62828;
  --danger-doux:   #fdeaea;
  --info:          #1666c8;
  --info-doux:     #e6f0fd;

  /* Ombres */
  --ombre-xs: 0 1px 2px rgba(16, 19, 31, .06);
  --ombre-sm: 0 2px 6px rgba(16, 19, 31, .07), 0 1px 2px rgba(16, 19, 31, .04);
  --ombre-md: 0 6px 20px rgba(16, 19, 31, .09), 0 2px 6px rgba(16, 19, 31, .05);
  --ombre-lg: 0 18px 48px rgba(16, 19, 31, .13), 0 4px 12px rgba(16, 19, 31, .06);
  --ombre-prim: 0 8px 24px rgba(76, 81, 224, .28);

  /* Rayons */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Espacements (échelle 4pt) */
  --e-1: 4px;  --e-2: 8px;  --e-3: 12px; --e-4: 16px;
  --e-5: 20px; --e-6: 24px; --e-8: 32px; --e-10: 40px;
  --e-12: 48px; --e-16: 64px; --e-20: 80px; --e-24: 96px;

  /* Typographie */
  --police-titre: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --police-texte: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --police-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Mesures
     Le site occupe toute la largeur de l'écran, plafonnée à 2560 px (QHD).
     Les blocs de texte long gardent leur propre mesure de lecture via
     .conteneur-etroit — sans quoi les paragraphes deviendraient illisibles
     sur un grand écran. */
  --conteneur: 2560px;
  --conteneur-large: 2560px;
  --conteneur-etroit: 760px;
  --entete-h: 72px;

  /* Voile posé sur l'image de fond du hero, pour que le texte reste lisible.
     Construit à partir de --bg : il suit donc le thème automatiquement. */
  --hero-voile: linear-gradient(100deg,
    color-mix(in srgb, var(--bg) 94%, transparent) 0%,
    color-mix(in srgb, var(--bg) 82%, transparent) 38%,
    color-mix(in srgb, var(--bg) 46%, transparent) 78%,
    color-mix(in srgb, var(--bg) 30%, transparent) 100%);
  --hero-voile-centre: linear-gradient(180deg,
    color-mix(in srgb, var(--bg) 74%, transparent) 0%,
    color-mix(in srgb, var(--bg) 86%, transparent) 100%);

  /* Transitions */
  --t-rapide: 140ms cubic-bezier(.4, 0, .2, 1);
  --t-base:   220ms cubic-bezier(.4, 0, .2, 1);
  --t-lente:  380ms cubic-bezier(.16, 1, .3, 1);

  /* Couches */
  --z-base: 1; --z-sticky: 40; --z-entete: 60; --z-voile: 80; --z-modal: 100; --z-toast: 120;

  color-scheme: light;
}

:root[data-theme="sombre"] {
  --bg:            #0a0c12;
  --bg-motif:      #12151f;
  --surface:       #12151e;
  --surface-2:     #191d28;
  --surface-3:     #222736;
  --surface-inv:   #f6f7fc;

  --bord:          #262c3b;
  --bord-fort:     #3a4258;

  --txt:           #edf0f7;
  --txt-2:         #b0b8cc;
  --txt-3:         #828ca4;
  --txt-inv:       #10131f;

  --prim:          #8e93ff;
  --prim-fort:     #a7abff;
  --prim-clair:    #a78bfa;
  --prim-doux:     rgba(142, 147, 255, .13);
  --prim-contour:  rgba(142, 147, 255, .3);
  --prim-txt:      #0b0d16;

  --acc:           #ff9e5e;
  --acc-doux:      rgba(255, 158, 94, .13);
  --acc-contour:   rgba(255, 158, 94, .3);

  --ok:            #4ade9f;
  --ok-doux:       rgba(74, 222, 159, .13);
  --warn:          #f7c264;
  --warn-doux:     rgba(247, 194, 100, .13);
  --danger:        #ff7b7b;
  --danger-doux:   rgba(255, 123, 123, .13);
  --info:          #6cb0ff;
  --info-doux:     rgba(108, 176, 255, .13);

  --ombre-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --ombre-sm: 0 2px 8px rgba(0, 0, 0, .45);
  --ombre-md: 0 8px 26px rgba(0, 0, 0, .5);
  --ombre-lg: 0 20px 56px rgba(0, 0, 0, .6);
  --ombre-prim: 0 8px 26px rgba(142, 147, 255, .22);

  color-scheme: dark;
}

/* ==== 02. RESET & BASE ==================================== */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--entete-h) + 16px);
}

body {
  min-height: 100dvh;
  font-family: var(--police-texte);
  font-size: 16px;
  line-height: 1.65;
  color: var(--txt);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--t-base), color var(--t-base);
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--prim); text-decoration: none; transition: color var(--t-rapide); }
a:hover { color: var(--prim-fort); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

ul, ol { padding: 0; list-style: none; }

hr { border: 0; border-top: 1px solid var(--bord); margin: var(--e-8) 0; }

::selection { background: var(--prim); color: var(--prim-txt); }

:focus-visible {
  outline: 3px solid var(--prim);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* Barre de défilement discrète */
* { scrollbar-width: thin; scrollbar-color: var(--bord-fort) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bord-fort); border-radius: var(--r-full); border: 3px solid var(--bg); }

.ico { flex: none; }

.saut-contenu {
  position: absolute; left: -9999px; top: 0; z-index: var(--z-toast);
  padding: 12px 20px; background: var(--prim); color: var(--prim-txt);
  border-radius: 0 0 var(--r-md) 0; font-weight: 600;
}
.saut-contenu:focus { left: 0; color: var(--prim-txt); }

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

/* ==== 03. TYPOGRAPHIE ===================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--police-titre);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--txt);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 1.08rem + .7vw, 1.6rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }

p { text-wrap: pretty; }
p + p { margin-top: var(--e-4); }

strong, b { font-weight: 650; color: var(--txt); }

.surtitre {
  display: inline-flex; align-items: center; gap: var(--e-2);
  font-family: var(--police-texte);
  font-size: .8rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--prim);
}

.chapo {
  font-size: clamp(1.02rem, .97rem + .28vw, 1.2rem);
  line-height: 1.7;
  color: var(--txt-2);
  max-width: 62ch;
}

.mini { font-size: .82rem; color: var(--txt-3); }
.petit { font-size: .9rem; }
.attenue { color: var(--txt-3); }
.attenue-2 { color: var(--txt-2); }
.gras { font-weight: 650; }
.centre { text-align: center; }
.nombres { font-variant-numeric: tabular-nums; }

.degrade {
  background: linear-gradient(100deg, var(--prim) 0%, var(--prim-clair) 55%, var(--acc) 130%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.souligne-doux {
  background-image: linear-gradient(transparent 62%, var(--prim-doux) 62%);
  background-repeat: no-repeat;
  padding: 0 .12em;
}

/* Contenu éditorial libre */
.prose { color: var(--txt-2); line-height: 1.75; }
.prose > * + * { margin-top: var(--e-4); }
.prose h2 { margin-top: var(--e-10); font-size: 1.55rem; }
.prose h3 { margin-top: var(--e-8); font-size: 1.22rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: var(--e-2); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  border-left: 3px solid var(--prim);
  padding: var(--e-2) 0 var(--e-2) var(--e-5);
  color: var(--txt-2); font-style: italic;
}
.prose img { border-radius: var(--r-md); margin: var(--e-6) 0; }

/* ==== 04. LAYOUT & UTILITAIRES ============================ */

.conteneur {
  width: 100%;
  max-width: var(--conteneur);
  margin-inline: auto;
  /* Marge latérale qui grandit avec l'écran : 20 px sur mobile, 64 px au-delà
     de ~2100 px, pour que le contenu ne colle jamais au bord. */
  padding-inline: clamp(20px, 3vw, 64px);
}
.conteneur-large { max-width: var(--conteneur-large); }
.conteneur-etroit { max-width: var(--conteneur-etroit); }

.section { padding-block: clamp(48px, 6vw, 88px); }
.section-sm { padding-block: clamp(32px, 4vw, 56px); }
.section-alt { background: var(--surface-2); }

.entete-section { max-width: 720px; margin-bottom: var(--e-10); }
.entete-section.centre { margin-inline: auto; text-align: center; }
.entete-section h2 { margin-block: var(--e-3) var(--e-4); }

.entete-section-ligne {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--e-6); flex-wrap: wrap; margin-bottom: var(--e-8);
}

/*
 * Grilles de cartes.
 * Le second terme du minmax borne la largeur d'une carte : sur un écran très
 * large, la place gagnée sert à afficher plus de colonnes, jamais à étirer les
 * cartes ni à les tasser d'un côté. `justify-content: center` recentre la
 * rangée quand les éléments ne remplissent pas toute la largeur.
 */
.grille { display: grid; gap: var(--e-6); justify-content: center; }
.grille-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 620px)); }
.grille-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 440px)); }
.grille-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 360px)); }

.pile { display: flex; flex-direction: column; gap: var(--e-4); }
.rangee { display: flex; align-items: center; gap: var(--e-3); flex-wrap: wrap; }
.rangee-serree { gap: var(--e-2); }

/* Saisie suivie de son bouton d'action : le champ s'étire, le bouton reste à
   côté. Sans cette règle, la largeur 100 % de .saisie renvoie le bouton à la
   ligne suivante. */
.champ > .rangee { flex-wrap: nowrap; }
.champ > .rangee > .saisie { flex: 1 1 auto; width: auto; min-width: 0; }
.champ > .rangee > .btn { flex: none; }
.entre { display: flex; align-items: center; justify-content: space-between; gap: var(--e-4); }
.pousse { margin-left: auto; }

.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--e-2); }
.mt-4 { margin-top: var(--e-4); } .mt-6 { margin-top: var(--e-6); }
.mt-8 { margin-top: var(--e-8); } .mt-10 { margin-top: var(--e-10); }
.mb-2 { margin-bottom: var(--e-2); } .mb-4 { margin-bottom: var(--e-4); }
.mb-6 { margin-bottom: var(--e-6); } .mb-8 { margin-bottom: var(--e-8); }

.masque { display: none !important; }
@media (max-width: 767px) { .masque-mobile { display: none !important; } }
@media (min-width: 768px) { .masque-bureau { display: none !important; } }

/* ==== 05. BOUTONS ========================================= */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e-2);
  min-height: 46px; padding: 11px 22px;
  font-family: var(--police-titre);
  font-size: .95rem; font-weight: 650; line-height: 1.2; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--r-full);
  cursor: pointer; text-align: center;
  transition: background-color var(--t-rapide), border-color var(--t-rapide),
              color var(--t-rapide), box-shadow var(--t-base), transform var(--t-rapide);
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

.btn-prim {
  background: var(--prim); color: var(--prim-txt); box-shadow: var(--ombre-prim);
}
.btn-prim:hover { background: var(--prim-fort); color: var(--prim-txt); box-shadow: var(--ombre-lg); }

.btn-contour {
  background: var(--surface); color: var(--txt); border-color: var(--bord-fort);
  box-shadow: var(--ombre-xs);
}
.btn-contour:hover { border-color: var(--prim); color: var(--prim); background: var(--prim-doux); }

.btn-doux { background: var(--prim-doux); color: var(--prim); border-color: var(--prim-contour); }
.btn-doux:hover { background: var(--prim); color: var(--prim-txt); border-color: var(--prim); }

.btn-fantome { background: transparent; color: var(--txt-2); }
.btn-fantome:hover { background: var(--surface-2); color: var(--txt); }

.btn-acc { background: var(--acc); color: #fff; }
:root[data-theme="sombre"] .btn-acc { color: #22150a; }
.btn-acc:hover { filter: brightness(1.08); color: inherit; }

.btn-danger { background: var(--danger-doux); color: var(--danger); border-color: transparent; }
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-sm { min-height: 38px; padding: 8px 16px; font-size: .875rem; }
.btn-xs { min-height: 32px; padding: 5px 12px; font-size: .8rem; gap: 6px; }
.btn-lg { min-height: 54px; padding: 15px 30px; font-size: 1.02rem; }
.btn-bloc { display: flex; width: 100%; }
.btn-icone { padding: 0; width: 40px; min-height: 40px; border-radius: var(--r-sm); }

.btn-lien {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 650; color: var(--prim);
}
.btn-lien .ico { transition: transform var(--t-base); }
.btn-lien:hover .ico { transform: translateX(3px); }

/* ==== 06. BADGES, PILLS, CHIPS ============================ */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px;
  font-size: .78rem; font-weight: 650; line-height: 1.5; letter-spacing: .01em;
  border-radius: var(--r-full);
  background: var(--surface-2); color: var(--txt-2);
  border: 1px solid var(--bord);
}
.badge-prim   { background: var(--prim-doux);   color: var(--prim);   border-color: var(--prim-contour); }
.badge-acc    { background: var(--acc-doux);    color: var(--acc);    border-color: var(--acc-contour); }
.badge-ok     { background: var(--ok-doux);     color: var(--ok);     border-color: transparent; }
.badge-warn   { background: var(--warn-doux);   color: var(--warn);   border-color: transparent; }
.badge-danger { background: var(--danger-doux); color: var(--danger); border-color: transparent; }
.badge-info   { background: var(--info-doux);   color: var(--info);   border-color: transparent; }
.badge-neutre { background: var(--surface-3);   color: var(--txt-2);  border-color: transparent; }

.pastille {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; flex: none;
}

.compteur {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--acc); color: #fff; border-radius: var(--r-full);
}
:root[data-theme="sombre"] .compteur { color: #22150a; }

.meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .86rem; color: var(--txt-3); font-weight: 500;
}
.meta .ico { color: var(--txt-3); }

.liste-meta { display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-4); }

/* Puces de filtre cliquables */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 7px 15px;
  font-size: .875rem; font-weight: 600;
  color: var(--txt-2); background: var(--surface);
  border: 1px solid var(--bord); border-radius: var(--r-full);
  transition: all var(--t-rapide);
}
.chip:hover { border-color: var(--prim); color: var(--prim); }
.chip.is-active {
  background: var(--prim); color: var(--prim-txt); border-color: var(--prim);
  box-shadow: var(--ombre-prim);
}
.chip.is-active:hover { color: var(--prim-txt); }
.chip-suppr { padding-right: 9px; }

/* ==== 07. CARTES ========================================== */

.carte {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--r-lg);
  box-shadow: var(--ombre-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.carte-p { padding: var(--e-6); }

a.carte, .carte-lien { display: block; color: inherit; }
a.carte:hover, .carte-interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-lg);
  border-color: var(--prim-contour);
  color: inherit;
}

/* --- Carte formation --- */
.carte-formation {
  display: flex; flex-direction: column; overflow: hidden; height: 100%;
}
.carte-formation .visuel {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, var(--prim) 0%, var(--prim-clair) 100%);
}
.carte-formation .visuel img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-lente);
}
a.carte-formation:hover .visuel img { transform: scale(1.05); }
.carte-formation .visuel-vide {
  display: grid; place-items: center; width: 100%; height: 100%;
  color: rgba(255, 255, 255, .85);
}
.carte-formation .visuel-vide .ico { width: 44px; height: 44px; }

.visuel-etiquettes {
  position: absolute; inset: auto auto 10px 10px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.visuel-etiquettes .badge {
  background: rgba(255, 255, 255, .93); color: #10131f;
  border-color: transparent; backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.etiquette-coin {
  position: absolute; top: 10px; right: 10px;
  background: var(--acc); color: #fff;
  padding: 4px 11px; font-size: .74rem; font-weight: 700;
  border-radius: var(--r-full); letter-spacing: .02em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .22);
}

.carte-formation .corps {
  display: flex; flex-direction: column; flex: 1; gap: var(--e-3);
  padding: var(--e-5);
}
/* Troncature sur 2 lignes : le rendu repose encore sur -webkit-box,
   `line-clamp` est déclaré en parallèle pour la version standardisée. */
.carte-formation h3,
.carte-formation .accroche {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.carte-formation h3 { font-size: 1.1rem; line-height: 1.32; }
.carte-formation .accroche { font-size: .9rem; color: var(--txt-3); line-height: 1.55; }
.carte-formation .pied {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--e-3); margin-top: auto; padding-top: var(--e-4);
  border-top: 1px solid var(--bord);
}
.prix-bloc { display: flex; flex-direction: column; line-height: 1.25; }
.prix-bloc .montant {
  font-family: var(--police-titre); font-size: 1.32rem; font-weight: 750;
  color: var(--txt); font-variant-numeric: tabular-nums;
}
.prix-bloc .mention { font-size: .74rem; color: var(--txt-3); }

.theme-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 650;
  color: var(--theme-couleur, var(--prim));
}
.theme-tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex: none;
}

/* --- Carte thème --- */
.carte-theme {
  display: flex; flex-direction: column; gap: var(--e-3);
  padding: var(--e-6); height: 100%; overflow: hidden;
}
.carte-theme::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--theme-couleur, var(--prim));
  opacity: 0; transition: opacity var(--t-base);
}
a.carte-theme:hover::after { opacity: 1; }
.carte-theme .rond {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--theme-couleur, var(--prim)) 14%, transparent);
  color: var(--theme-couleur, var(--prim));
}
:root[data-theme="sombre"] .carte-theme .rond {
  background: color-mix(in srgb, var(--theme-couleur, var(--prim)) 22%, transparent);
}
.carte-theme h3 { font-size: 1.08rem; }
.carte-theme p { font-size: .9rem; color: var(--txt-3); }

/* --- Carte parcours --- */
.carte-parcours {
  display: flex; flex-direction: column; gap: var(--e-4);
  padding: var(--e-6); height: 100%; overflow: hidden;
}
.carte-parcours::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, var(--theme-couleur, var(--prim)), transparent);
}
.parcours-etapes { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.parcours-etape {
  display: grid; place-items: center; width: 26px; height: 26px;
  font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums;
  border-radius: 50%;
  background: var(--prim-doux); color: var(--prim);
  border: 1px solid var(--prim-contour);
}
.parcours-fleche { color: var(--txt-3); }

/* --- Carte statistique --- */
.carte-stat { padding: var(--e-5) var(--e-6); }
.carte-stat .valeur {
  font-family: var(--police-titre); font-size: 2rem; font-weight: 750;
  line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--txt);
}
.carte-stat .libelle { font-size: .85rem; color: var(--txt-3); margin-top: 2px; }

/* ==== 08. FORMULAIRES ===================================== */

.champ { display: flex; flex-direction: column; gap: 7px; }
.champ + .champ { margin-top: var(--e-5); }

.champ label, .etiquette-champ {
  font-size: .88rem; font-weight: 620; color: var(--txt);
  display: flex; align-items: center; gap: 5px;
}
.requis { color: var(--danger); font-weight: 700; }

.saisie, .zone-texte, .selecteur {
  width: 100%; min-height: 46px; padding: 11px 14px;
  font-size: .95rem; color: var(--txt);
  background: var(--surface); border: 1px solid var(--bord-fort);
  border-radius: var(--r-sm);
  transition: border-color var(--t-rapide), box-shadow var(--t-rapide), background-color var(--t-rapide);
}
.saisie::placeholder, .zone-texte::placeholder { color: var(--txt-3); opacity: .75; }
.saisie:hover, .zone-texte:hover, .selecteur:hover { border-color: var(--bord-fort); }
.saisie:focus, .zone-texte:focus, .selecteur:focus {
  outline: none; border-color: var(--prim);
  box-shadow: 0 0 0 3px var(--prim-doux);
}
.zone-texte { min-height: 120px; resize: vertical; line-height: 1.6; }

.selecteur {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236d7690' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
:root[data-theme="sombre"] .selecteur {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23828ca4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* Outils d'un domaine d'intervention, en pastilles */
.puces-outils {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.puces-outils li::before { content: none; }
.puces-outils li {
  padding: 4px 11px;
  font-size: .8rem; font-weight: 550; color: var(--txt-2);
  background: var(--surface-2); border: 1px solid var(--bord);
  border-radius: var(--r-full);
}

.aide { font-size: .8rem; color: var(--txt-3); line-height: 1.5; }
.erreur-champ {
  display: flex; align-items: flex-start; gap: 5px;
  font-size: .82rem; font-weight: 550; color: var(--danger);
}
.erreur-champ .ico { flex: none; margin-top: 1px; }

/* État d'erreur — posé par le serveur (vues) ou par la validation (app.js) */
.a-erreur .saisie,
.a-erreur .zone-texte,
.a-erreur .selecteur {
  border-color: var(--danger);
  background: var(--danger-doux);
}
.a-erreur .saisie:focus,
.a-erreur .zone-texte:focus,
.a-erreur .selecteur:focus {
  border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-doux);
}
.a-erreur > label, .a-erreur > .etiquette-champ { color: var(--danger); }

/* Blocs qui ne sont pas de simples champs : tarifs, cases à cocher, cartes */
.tarif-saisie.a-erreur { border-color: var(--danger); background: var(--danger-doux); }
.case.a-erreur, .radio.a-erreur, .choix-carte.a-erreur {
  border-radius: var(--r-sm); outline: 2px solid var(--danger); outline-offset: 4px;
}
.case.a-erreur span, .radio.a-erreur span { color: var(--danger); }

/* Récapitulatif en tête de formulaire */
.resume-erreurs {
  margin-bottom: var(--e-6); padding: var(--e-5);
  background: var(--danger-doux); border: 1px solid var(--danger);
  border-left-width: 4px; border-radius: var(--r-md);
  animation: entree-bas var(--t-base) both;
}
.resume-erreurs:focus { outline: none; }
.resume-titre {
  display: flex; align-items: center; gap: var(--e-2);
  font-family: var(--police-titre); font-weight: 700; font-size: .96rem;
  color: var(--danger); margin: 0 0 var(--e-3);
}
.resume-erreurs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.resume-erreurs li::before { content: none; }
.resume-erreurs button {
  display: block; width: 100%; text-align: left;
  padding: 7px 10px; border-radius: var(--r-xs);
  font-size: .86rem; line-height: 1.45; color: var(--txt-2);
  background: none; border: none; cursor: pointer;
  transition: background-color var(--t-rapide);
}
.resume-erreurs button:hover { background: var(--surface); }
.resume-erreurs button strong { color: var(--danger); font-weight: 650; }

.groupe-champs { display: grid; gap: var(--e-5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.groupe-champs .champ + .champ { margin-top: 0; }

fieldset { border: 0; padding: 0; }
legend { padding: 0; font-family: var(--police-titre); font-weight: 700; font-size: 1.05rem; }

.bloc-formulaire {
  padding: var(--e-6);
  background: var(--surface); border: 1px solid var(--bord);
  border-radius: var(--r-lg); box-shadow: var(--ombre-sm);
}
.bloc-formulaire + .bloc-formulaire { margin-top: var(--e-6); }
.bloc-formulaire > legend, .bloc-formulaire > .titre-bloc {
  display: flex; align-items: center; gap: var(--e-2);
  margin-bottom: var(--e-5); padding-bottom: var(--e-4);
  border-bottom: 1px solid var(--bord); width: 100%;
  font-family: var(--police-titre); font-weight: 700; font-size: 1.08rem;
}
.bloc-formulaire > .titre-bloc .ico { color: var(--prim); }

/* Cases et boutons radio */
.case, .radio {
  display: flex; align-items: flex-start; gap: var(--e-3);
  cursor: pointer; user-select: none;
}
.case input, .radio input {
  flex: none; width: 20px; height: 20px; margin-top: 1px;
  accent-color: var(--prim); cursor: pointer;
}
.case span, .radio span { font-size: .92rem; line-height: 1.5; }

/* Sélection en carte (radio/checkbox stylés) */
.choix-cartes { display: grid; gap: var(--e-3); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.choix-carte {
  position: relative; display: flex; align-items: flex-start; gap: var(--e-3);
  padding: var(--e-4); cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--bord);
  border-radius: var(--r-md);
  transition: border-color var(--t-rapide), background-color var(--t-rapide), box-shadow var(--t-rapide);
}
.choix-carte:hover { border-color: var(--prim-contour); background: var(--surface-2); }
.choix-carte input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix-carte .puce {
  flex: none; display: grid; place-items: center;
  width: 22px; height: 22px; margin-top: 1px;
  border: 2px solid var(--bord-fort); border-radius: 50%;
  transition: all var(--t-rapide);
}
.choix-carte input[type="checkbox"] ~ .puce { border-radius: var(--r-xs); }
.choix-carte .puce::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--prim-txt); transform: scale(0); transition: transform var(--t-rapide);
}
.choix-carte input[type="checkbox"] ~ .puce::after { border-radius: 2px; }
.choix-carte .texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choix-carte .texte strong { font-size: .93rem; font-weight: 650; }
.choix-carte .texte small { font-size: .8rem; color: var(--txt-3); line-height: 1.45; }
.choix-carte:has(input:checked) {
  border-color: var(--prim); background: var(--prim-doux);
  box-shadow: 0 0 0 1px var(--prim);
}
.choix-carte:has(input:checked) .puce { border-color: var(--prim); background: var(--prim); }
.choix-carte:has(input:checked) .puce::after { transform: scale(1); }
.choix-carte:has(input:focus-visible) { outline: 3px solid var(--prim); outline-offset: 2px; }

/* Interrupteur */
.interrupteur { display: inline-flex; align-items: center; gap: var(--e-3); cursor: pointer; }
.interrupteur input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interrupteur .piste {
  position: relative; flex: none; width: 44px; height: 25px;
  background: var(--bord-fort); border-radius: var(--r-full);
  transition: background-color var(--t-base);
}
.interrupteur .piste::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 19px; height: 19px; background: #fff; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform var(--t-base);
}
.interrupteur input:checked ~ .piste { background: var(--prim); }
.interrupteur input:checked ~ .piste::after { transform: translateX(19px); }
.interrupteur input:focus-visible ~ .piste { outline: 3px solid var(--prim); outline-offset: 2px; }

/* Champ fichier / image */
.champ-image { display: flex; align-items: center; gap: var(--e-4); flex-wrap: wrap; }
.apercu-image {
  width: 110px; height: 74px; flex: none;
  object-fit: cover; border-radius: var(--r-sm);
  border: 1px solid var(--bord); background: var(--surface-2);
}
.apercu-vide { display: grid; place-items: center; color: var(--txt-3); }
input[type="file"] {
  font-size: .88rem; color: var(--txt-2);
  max-width: 100%;
}
input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 14px;
  font-weight: 620; font-size: .85rem;
  background: var(--surface-2); color: var(--txt);
  border: 1px solid var(--bord-fort); border-radius: var(--r-full);
  cursor: pointer; transition: all var(--t-rapide);
}
input[type="file"]::file-selector-button:hover { background: var(--prim-doux); border-color: var(--prim); color: var(--prim); }

input[type="color"] {
  width: 46px; height: 46px; padding: 3px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--bord-fort); border-radius: var(--r-sm);
}

.barre-actions {
  display: flex; align-items: center; gap: var(--e-3); flex-wrap: wrap;
  margin-top: var(--e-6); padding-top: var(--e-5);
  border-top: 1px solid var(--bord);
}

/* ==== 09. EN-TÊTE & NAVIGATION ============================ */

.entete {
  position: sticky; top: 0; z-index: var(--z-entete);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base), background-color var(--t-base);
}
.entete.est-defile { border-bottom-color: var(--bord); box-shadow: var(--ombre-sm); }

.entete-inner {
  display: flex; align-items: center; gap: var(--e-5);
  height: var(--entete-h);
}

.logo { display: flex; align-items: center; gap: 11px; flex: none; color: var(--txt); }
.logo:hover { color: var(--txt); }

/* Emblème détouré : lisible tel quel sur fond clair comme sur fond sombre.
   La hauteur est posée en ligne par le partiel, la largeur suit le ratio. */
.logo-embleme {
  width: auto; flex: none;
  transition: transform var(--t-base);
}
a.logo:hover .logo-embleme { transform: scale(1.04); }

/* Repli si le fichier de l'emblème est absent */
.logo-marque {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  font-family: var(--police-titre); font-weight: 800; font-size: .95rem; letter-spacing: -.03em;
  color: #fff; border-radius: 12px;
  background: linear-gradient(135deg, var(--marque-1), var(--marque-2) 60%, var(--marque-3));
  box-shadow: var(--ombre-prim);
}
.logo-texte { display: flex; flex-direction: column; line-height: 1.15; }
.logo-texte strong {
  font-family: var(--police-titre); font-size: 1.06rem; font-weight: 750; letter-spacing: -.02em;
}
.logo-texte small { font-size: .68rem; color: var(--txt-3); letter-spacing: .07em; text-transform: uppercase; }

.nav-principale { display: flex; align-items: center; gap: 2px; }
.nav-lien {
  position: relative; display: flex; align-items: center; gap: 5px;
  padding: 9px 13px; border-radius: var(--r-sm);
  font-size: .93rem; font-weight: 600; color: var(--txt-2); white-space: nowrap;
  transition: color var(--t-rapide), background-color var(--t-rapide);
}
.nav-lien:hover { color: var(--txt); background: var(--surface-2); }
.nav-lien.is-active { color: var(--prim); }
.nav-lien.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; background: var(--prim); border-radius: 2px;
}

/* Menu déroulant des thèmes */
.nav-groupe { position: relative; }
.nav-groupe > .nav-lien .ico { transition: transform var(--t-base); }
.nav-groupe.est-ouvert > .nav-lien .ico { transform: rotate(180deg); }

.menu-deroulant {
  position: absolute; top: calc(100% + 10px); left: 50%;
  min-width: 560px; padding: var(--e-4);
  background: var(--surface); border: 1px solid var(--bord);
  border-radius: var(--r-lg); box-shadow: var(--ombre-lg);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
}
.nav-groupe.est-ouvert .menu-deroulant { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.menu-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.menu-item {
  display: flex; align-items: flex-start; gap: var(--e-3);
  padding: 11px 12px; border-radius: var(--r-sm); color: var(--txt);
  transition: background-color var(--t-rapide);
}
.menu-item:hover { background: var(--surface-2); color: var(--txt); }
.menu-item .rond {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: var(--r-xs);
  background: color-mix(in srgb, var(--theme-couleur, var(--prim)) 14%, transparent);
  color: var(--theme-couleur, var(--prim));
}
:root[data-theme="sombre"] .menu-item .rond {
  background: color-mix(in srgb, var(--theme-couleur, var(--prim)) 22%, transparent);
}
.menu-item .texte { min-width: 0; }
.menu-item strong { display: block; font-size: .9rem; font-weight: 650; }
.menu-item small { display: block; font-size: .78rem; color: var(--txt-3); }
.menu-pied {
  margin-top: var(--e-3); padding-top: var(--e-3);
  border-top: 1px solid var(--bord); display: flex; justify-content: space-between; gap: var(--e-3);
}

.actions-entete { display: flex; align-items: center; gap: var(--e-2); margin-left: auto; }

.btn-theme, .btn-recherche, .btn-burger {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  color: var(--txt-2); background: transparent;
  border: 1px solid transparent; border-radius: var(--r-sm);
  transition: all var(--t-rapide);
}
.btn-theme:hover, .btn-recherche:hover, .btn-burger:hover {
  background: var(--surface-2); color: var(--txt); border-color: var(--bord);
}
.btn-theme .ico-soleil { display: none; }
:root[data-theme="sombre"] .btn-theme .ico-soleil { display: block; }
:root[data-theme="sombre"] .btn-theme .ico-lune { display: none; }

/* Menu mobile */
.voile {
  position: fixed; inset: 0; z-index: var(--z-voile);
  background: rgba(8, 10, 18, .55); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity var(--t-base), visibility var(--t-base);
}
.voile.est-ouvert { opacity: 1; visibility: visible; }

/* --- Modale de confirmation ---------------------------------------------
   Remplace window.confirm(), qui affiche une boîte du navigateur au lieu de
   l'interface du site. Le balisage est produit par app.js : aucune vue n'a à
   la déclarer. */
.modale {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: center;
  padding: var(--e-5);
  opacity: 0;
  transition: opacity var(--t-base);
}
.modale[hidden] { display: none; }
.modale.est-ouvert { opacity: 1; }

.modale-fond {
  position: absolute; inset: 0;
  background: rgba(8, 10, 18, .58);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}

.modale-boite {
  position: relative;
  width: min(470px, 100%);
  padding: var(--e-6);
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--r-lg);
  box-shadow: var(--ombre-lg);
  transform: translateY(10px) scale(.985);
  transition: transform var(--t-lente);
}
.modale.est-ouvert .modale-boite { transform: none; }

.modale-icone {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: var(--e-4);
  border-radius: var(--r-md);
  background: var(--danger-doux); color: var(--danger);
}
.modale h2 {
  font-size: 1.12rem; line-height: 1.35; margin: 0 0 var(--e-2);
}
.modale p {
  font-size: .93rem; line-height: 1.6; color: var(--txt-2); margin: 0;
}
.modale-actions {
  display: flex; gap: var(--e-3); justify-content: flex-end; flex-wrap: wrap;
  margin-top: var(--e-6);
}

/* Empêche le défilement de l'arrière-plan pendant que la modale est ouverte */
body.modale-ouverte { overflow: hidden; }

@media (max-width: 479px) {
  .modale-actions { flex-direction: column-reverse; }
  .modale-actions .btn { width: 100%; justify-content: center; }
}

.menu-mobile {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-modal);
  width: min(400px, 88vw);
  display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--bord);
  box-shadow: var(--ombre-lg);
  transform: translateX(100%);
  transition: transform var(--t-lente);
  overflow-y: auto; overscroll-behavior: contain;
}
.menu-mobile.est-ouvert { transform: translateX(0); }
.menu-mobile-entete {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--e-4) var(--e-5); border-bottom: 1px solid var(--bord);
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.menu-mobile-corps { padding: var(--e-5); display: flex; flex-direction: column; gap: var(--e-2); }
.menu-mobile-lien {
  display: flex; align-items: center; gap: var(--e-3);
  min-height: 50px; padding: 12px 14px; border-radius: var(--r-md);
  font-size: 1rem; font-weight: 620; color: var(--txt);
}
.menu-mobile-lien:hover { background: var(--surface-2); color: var(--txt); }
.menu-mobile-lien.is-active { background: var(--prim-doux); color: var(--prim); }
.menu-mobile-titre {
  margin: var(--e-4) 0 var(--e-1); padding-left: 14px;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--txt-3);
}

/* Barre de recherche superposée */
.recherche-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: flex; justify-content: center; padding-top: 12vh;
  background: rgba(8, 10, 18, .6); backdrop-filter: blur(5px);
  opacity: 0; visibility: hidden; transition: opacity var(--t-base), visibility var(--t-base);
}
.recherche-overlay.est-ouvert { opacity: 1; visibility: visible; }
.recherche-boite {
  width: min(660px, 92vw); height: fit-content;
  background: var(--surface); border: 1px solid var(--bord);
  border-radius: var(--r-lg); box-shadow: var(--ombre-lg);
  overflow: hidden; transform: translateY(-14px);
  transition: transform var(--t-lente);
}
.recherche-overlay.est-ouvert .recherche-boite { transform: translateY(0); }
.recherche-boite form { display: flex; align-items: center; gap: var(--e-3); padding: var(--e-4) var(--e-5); }
.recherche-boite input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  font-size: 1.06rem; padding: 8px 0;
}
.recherche-boite input:focus { outline: none; }
.recherche-resultats { border-top: 1px solid var(--bord); max-height: 52vh; overflow-y: auto; }
.recherche-resultat {
  display: flex; align-items: center; gap: var(--e-3);
  padding: 12px var(--e-5); color: var(--txt);
  border-bottom: 1px solid var(--bord);
}
.recherche-resultat:last-child { border-bottom: 0; }
.recherche-resultat:hover, .recherche-resultat.est-survole { background: var(--surface-2); color: var(--txt); }
.recherche-resultat .texte { flex: 1; min-width: 0; }
.recherche-resultat strong { display: block; font-size: .95rem; font-weight: 620; }
.recherche-resultat small { font-size: .8rem; color: var(--txt-3); }
.recherche-pied {
  display: flex; align-items: center; justify-content: space-between; gap: var(--e-3);
  padding: 10px var(--e-5); border-top: 1px solid var(--bord);
  background: var(--surface-2); font-size: .8rem; color: var(--txt-3);
}
kbd {
  display: inline-block; padding: 2px 6px; font-family: var(--police-mono); font-size: .72rem;
  background: var(--surface); border: 1px solid var(--bord-fort);
  border-bottom-width: 2px; border-radius: var(--r-xs); color: var(--txt-2);
}

/* ==== 10. HERO ============================================ */

/*
 * Hero d'accueil — l'image occupe tout le fond, sur toute la largeur de
 * l'écran. La section n'est pas dans un conteneur : elle déborde donc
 * naturellement jusqu'aux bords, seul le texte reste dans la mesure.
 * Le voile (--hero-voile) garantit la lisibilité du texte quelle que soit la
 * photo, et suit le thème clair / sombre puisqu'il est bâti sur --bg.
 */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center;
  padding-block: clamp(56px, 7vw, 104px);
  background: var(--bg);
}
.hero.a-fond { min-height: clamp(460px, 46vw, 720px); }

/* --- Couche de fond : image, vidéo, ou plusieurs qui se succèdent ---------
   Anciennement un background-image sur la section. Devenue une pile
   d'éléments réels : une vidéo ne peut pas être un background, et un
   fondu enchaîné suppose deux couches simultanées. */
.hero-fond {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0;
  transition: opacity var(--t-lente);
}
.hero-media.est-actif { opacity: 1; }

/* Sans JavaScript, aucune classe n'est posée : le premier média doit rester
   visible et les suivants masqués. */
.hero-fond:not([data-pret]) .hero-media:first-child { opacity: 1; }

/* Le voile de lisibilité, posé au-dessus des médias */
.hero-voile {
  position: absolute; inset: 0;
  background: var(--hero-voile);
}
.hero.centre .hero-voile { background: var(--hero-voile-centre); }

/* --- Commandes du carrousel --- */
.hero-commandes {
  position: absolute; z-index: 2; bottom: var(--e-5); right: clamp(20px, 3vw, 64px);
  display: flex; align-items: center; gap: var(--e-3);
  padding: 6px 10px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--bord); border-radius: var(--r-full);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.hero-commandes[hidden] { display: none; }

.hero-lecture {
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; color: var(--txt-2); background: transparent; border: 0;
  cursor: pointer;
}
.hero-lecture:hover { background: var(--surface-3); color: var(--txt); }
.ico-pause {
  display: block; width: 10px; height: 12px;
  border-left: 3px solid currentColor; border-right: 3px solid currentColor;
}
.hero-lecture.est-pause .ico-pause {
  width: 0; height: 0; border: 0;
  border-left: 11px solid currentColor;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  margin-left: 3px;
}

.hero-puces { display: flex; align-items: center; gap: 7px; }
.hero-puce {
  width: 9px; height: 9px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--bord-fort);
  transition: background-color var(--t-rapide), width var(--t-rapide);
}
.hero-puce:hover { background: var(--txt-3); }
.hero-puce.est-actif { background: var(--prim); width: 22px; border-radius: var(--r-full); }

/* Décor de repli : uniquement quand aucun fond n'est renseigné */
.hero:not(.a-fond)::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 130%;
  background:
    radial-gradient(58% 52% at 18% 12%, color-mix(in srgb, var(--prim) 20%, transparent) 0%, transparent 62%),
    radial-gradient(48% 46% at 88% 8%, color-mix(in srgb, var(--acc) 16%, transparent) 0%, transparent 60%);
  pointer-events: none;
}
.hero:not(.a-fond)::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--bg-motif) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-motif) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, transparent 78%);
          mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, transparent 78%);
  opacity: .55; pointer-events: none;
}
.hero > .conteneur { position: relative; z-index: 1; }

/* Le texte garde sa mesure de lecture même si le fond fait 2560 px */
.hero-contenu { max-width: 720px; }
.hero.centre .hero-contenu { max-width: 820px; margin-inline: auto; text-align: center; }
.hero.centre .hero-actions, .hero.centre .hero-preuves, .hero.centre .liste-meta {
  justify-content: center;
}

.hero h1 { margin-block: var(--e-4) var(--e-5); }
.hero .chapo { font-size: clamp(1.05rem, 1rem + .35vw, 1.24rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--e-3); margin-top: var(--e-8); }
.hero-preuves {
  display: flex; flex-wrap: wrap; gap: var(--e-4) var(--e-8);
  margin-top: var(--e-10); padding-top: var(--e-6);
  border-top: 1px solid var(--bord);
}
.hero-preuve { display: flex; flex-direction: column; }
.hero-preuve .valeur {
  font-family: var(--police-titre); font-size: 1.55rem; font-weight: 750;
  line-height: 1.15; font-variant-numeric: tabular-nums;
}
.hero-preuve .libelle { font-size: .82rem; color: var(--txt-3); }

/*
 * Variante « portrait » — la photo d'une personne se présente à côté du texte,
 * jamais en fond : un visage recadré en pleine largeur et recouvert de texte ne
 * fonctionne pas. Utilisée par la page « Qui suis-je ».
 */
.hero-portrait {
  display: grid; gap: clamp(32px, 5vw, 64px); align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  /* Deux colonnes côte à côte ne se lisent plus au-delà de ~1400 px : ce bloc
     est borné et centré, même si le reste du site occupe toute la largeur. */
  width: 100%; max-width: 1400px; margin-inline: auto;
}
.hero-portrait .hero-contenu { max-width: 640px; }
.hero-portrait-visuel { position: relative; }
.hero-portrait-visuel img {
  width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover;
  border-radius: var(--r-xl); border: 1px solid var(--bord);
  box-shadow: var(--ombre-lg);
}
.hero-portrait-vide {
  display: grid; place-items: center; aspect-ratio: 4 / 3.4;
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, var(--prim) 0%, var(--prim-clair) 55%, var(--acc) 130%);
  color: #fff; box-shadow: var(--ombre-lg);
}
.hero-portrait-vide .ico { width: 84px; height: 84px; opacity: .9; }

/* Argument mis en avant sous les boutons du hero */
.hero-argument {
  display: inline-flex; align-items: center; gap: var(--e-3);
  margin-top: var(--e-6); padding: var(--e-3) var(--e-5);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--bord);
  border-radius: var(--r-md); box-shadow: var(--ombre-sm);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  max-width: 420px;
}
.hero.centre .hero-argument { margin-inline: auto; }
.hero-argument .rond {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: var(--r-sm); background: var(--ok-doux); color: var(--ok);
}

/*
 * Hero compact des pages intérieures — même principe : si la page a une
 * image, elle occupe tout le fond sur la largeur de l'écran.
 */
.hero-page {
  position: relative; overflow: hidden;
  padding-block: clamp(40px, 5vw, 68px);
  background: var(--surface-2);
  border-bottom: 1px solid var(--bord);
}
.hero-page {
  position: relative; overflow: hidden; isolation: isolate;
}
.hero-page.a-fond {
  min-height: clamp(240px, 24vw, 400px);
  display: flex; align-items: center;
}
.hero-page:not(.a-fond)::before {
  content: ""; position: absolute; inset: -50% -10% auto -10%; height: 160%;
  background: radial-gradient(50% 50% at 20% 20%, color-mix(in srgb, var(--prim) 13%, transparent), transparent 65%);
  pointer-events: none;
}
.hero-page > .conteneur { position: relative; }
.hero-page h1 { margin-block: var(--e-3) var(--e-4); }
.hero-page .chapo { max-width: 68ch; }

/* Fil d'ariane */
.ariane {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: .84rem; color: var(--txt-3);
}
.ariane a { color: var(--txt-3); }
.ariane a:hover { color: var(--prim); }
.ariane .sep { opacity: .5; }
.ariane [aria-current] { color: var(--txt-2); font-weight: 600; }

/* ==== 11. SECTIONS DU SITE ================================ */

/* Message manifeste de l'accueil */
.manifeste {
  position: relative; overflow: hidden;
  padding: clamp(40px, 5vw, 68px);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--prim) 0%, var(--prim-clair) 62%, #a855f7 120%);
  color: #fff; box-shadow: var(--ombre-lg);
  text-align: center;
}
.manifeste::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 85% 15%, rgba(255, 255, 255, .22), transparent 60%);
}
.manifeste > * { position: relative; }
.manifeste .surtitre { color: rgba(255, 255, 255, .82); }
.manifeste h2 {
  color: #fff; margin-block: var(--e-4) var(--e-5);
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
}
.manifeste p { color: rgba(255, 255, 255, .9); max-width: 62ch; margin-inline: auto; font-size: 1.08rem; }
.manifeste .btn-contour {
  background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
}
.manifeste .btn-contour:hover { background: #fff; color: var(--prim); border-color: #fff; }
.manifeste .btn-prim { background: #fff; color: var(--prim); box-shadow: 0 8px 30px rgba(0, 0, 0, .2); }
.manifeste .btn-prim:hover { background: #fff; color: var(--prim-fort); }

.manifeste-points {
  display: grid; gap: var(--e-5); grid-template-columns: repeat(auto-fit, minmax(210px, 330px));
  justify-content: center;
  margin-top: var(--e-10); padding-top: var(--e-8);
  border-top: 1px solid rgba(255, 255, 255, .22); text-align: left;
}
.manifeste-point { display: flex; gap: var(--e-3); align-items: flex-start; }
.manifeste-point .ico { color: #fff; opacity: .9; margin-top: 2px; }
.manifeste-point strong { display: block; color: #fff; font-size: .98rem; }
.manifeste-point span { font-size: .87rem; color: rgba(255, 255, 255, .8); line-height: 1.5; }

/* Bloc atouts */
.atout { display: flex; flex-direction: column; gap: var(--e-3); }
.atout .rond {
  display: grid; place-items: center; width: 50px; height: 50px;
  border-radius: var(--r-md); background: var(--prim-doux); color: var(--prim);
}
.atout h3 { font-size: 1.06rem; }
.atout p { font-size: .93rem; color: var(--txt-3); }

/* Étapes numérotées */
.etapes { counter-reset: etape; display: grid; gap: var(--e-6); }
.etape { position: relative; padding-left: 58px; counter-increment: etape; }
.etape::before {
  content: counter(etape); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 40px; height: 40px;
  font-family: var(--police-titre); font-weight: 750; font-size: 1rem;
  background: var(--prim-doux); color: var(--prim);
  border: 1px solid var(--prim-contour); border-radius: var(--r-sm);
}
.etape h3 { font-size: 1.06rem; margin-bottom: 4px; }
.etape p { font-size: .93rem; color: var(--txt-3); }

/* Frise du parcours (page parcours) */
.frise { position: relative; display: grid; gap: var(--e-5); }
.frise::before {
  content: ""; position: absolute; left: 21px; top: 30px; bottom: 30px;
  width: 2px; background: linear-gradient(var(--prim-contour), var(--bord));
}
.frise-etape {
  position: relative; display: grid; gap: var(--e-4);
  grid-template-columns: 44px 1fr; align-items: start;
}
.frise-numero {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px;
  font-family: var(--police-titre); font-weight: 750; font-size: .98rem;
  font-variant-numeric: tabular-nums;
  background: var(--surface); color: var(--prim);
  border: 2px solid var(--prim); border-radius: 50%;
  box-shadow: 0 0 0 5px var(--bg);
}
.frise-etape.est-facultative .frise-numero { border-color: var(--bord-fort); color: var(--txt-3); }
.frise-carte {
  padding: var(--e-5); background: var(--surface);
  border: 1px solid var(--bord); border-radius: var(--r-md);
  box-shadow: var(--ombre-xs);
  transition: box-shadow var(--t-base), border-color var(--t-base), transform var(--t-base);
}
a.frise-carte:hover { border-color: var(--prim-contour); box-shadow: var(--ombre-md); transform: translateX(3px); }
.frise-carte h3 { font-size: 1.05rem; }

/* Grille tarifaire dégressive */
.tarifs-grille {
  display: grid; gap: var(--e-3);
  grid-template-columns: repeat(auto-fit, minmax(112px, 200px));
}
.tarif-palier {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: var(--e-4) var(--e-3); text-align: center;
  background: var(--surface); border: 1.5px solid var(--bord);
  border-radius: var(--r-md);
  transition: all var(--t-rapide);
}
.tarif-palier .nb {
  font-size: .78rem; font-weight: 650; color: var(--txt-3);
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.tarif-palier .prix {
  font-family: var(--police-titre); font-size: 1.28rem; font-weight: 750;
  color: var(--txt); font-variant-numeric: tabular-nums; line-height: 1.25;
}
.tarif-palier .par { font-size: .7rem; color: var(--txt-3); }
.tarif-palier .remise {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  padding: 2px 8px; font-size: .68rem; font-weight: 700; white-space: nowrap;
  background: var(--ok); color: #fff; border-radius: var(--r-full);
}
:root[data-theme="sombre"] .tarif-palier .remise { color: #06231a; }
.tarif-palier.est-choisi {
  border-color: var(--prim); background: var(--prim-doux);
  box-shadow: 0 0 0 1px var(--prim);
}
.tarif-palier.est-choisi .prix { color: var(--prim); }

/* Page produit : contenu + colonne latérale */
.grille-produit {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(32px, 4vw, 56px);
}
@media (max-width: 991px) {
  .grille-produit { grid-template-columns: 1fr; }
  .grille-produit > aside { order: -1; }
}

/* Bloc récapitulatif collant (page formation & inscription) */
.aside-collant { position: sticky; top: calc(var(--entete-h) + 20px); }
@media (max-width: 991px) { .aside-collant { position: static; } }

.recap { padding: var(--e-6); }
.recap-ligne {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--e-4);
  padding-block: 9px; font-size: .92rem;
}
.recap-ligne + .recap-ligne { border-top: 1px solid var(--bord); }
.recap-ligne dt { color: var(--txt-3); }
.recap-ligne dd { font-weight: 620; text-align: right; font-variant-numeric: tabular-nums; }
.recap-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--e-4);
  margin-top: var(--e-4); padding-top: var(--e-4);
  border-top: 2px solid var(--bord);
}
.recap-total dt { font-family: var(--police-titre); font-weight: 700; font-size: 1rem; }
.recap-total dd {
  font-family: var(--police-titre); font-size: 1.6rem; font-weight: 750;
  color: var(--prim); font-variant-numeric: tabular-nums;
}

/* Sessions à venir */
.liste-sessions { display: grid; gap: var(--e-3); }
.session-item {
  display: flex; align-items: center; gap: var(--e-4);
  padding: var(--e-4); cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--bord);
  border-radius: var(--r-md); transition: all var(--t-rapide);
}
.session-item:hover { border-color: var(--prim-contour); background: var(--surface-2); }
.session-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.session-item:has(input:checked) { border-color: var(--prim); background: var(--prim-doux); box-shadow: 0 0 0 1px var(--prim); }
.session-item.est-complete { opacity: .55; cursor: not-allowed; }
.session-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 56px; height: 60px; flex: none;
  background: var(--prim-doux); color: var(--prim);
  border-radius: var(--r-sm); line-height: 1.1;
}
.session-date .jour { font-family: var(--police-titre); font-size: 1.35rem; font-weight: 750; }
.session-date .mois { font-size: .68rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.session-infos { flex: 1; min-width: 0; }
.session-infos strong { display: block; font-size: .95rem; font-weight: 620; }

/* Accordéon (programme, FAQ) */
.accordeon { border: 1px solid var(--bord); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.accordeon + .accordeon { margin-top: var(--e-3); }
.accordeon summary {
  display: flex; align-items: center; gap: var(--e-3);
  padding: var(--e-4) var(--e-5); cursor: pointer; list-style: none;
  font-family: var(--police-titre); font-weight: 650; font-size: 1rem;
  transition: background-color var(--t-rapide);
}
.accordeon summary::-webkit-details-marker { display: none; }
.accordeon summary:hover { background: var(--surface-2); }
.accordeon summary .fleche { margin-left: auto; color: var(--txt-3); transition: transform var(--t-base); }
.accordeon[open] summary .fleche { transform: rotate(180deg); }
.accordeon[open] summary { border-bottom: 1px solid var(--bord); }
.accordeon-corps { padding: var(--e-5); color: var(--txt-2); }
.accordeon-num {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none;
  font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--prim-doux); color: var(--prim); border-radius: var(--r-xs);
}

/* Liste à puces cochées */
.liste-check { display: grid; gap: var(--e-3); }
.liste-check li { display: flex; align-items: flex-start; gap: var(--e-3); line-height: 1.6; }
.liste-check .ico { flex: none; margin-top: 3px; color: var(--ok); }
.liste-puces li { display: flex; align-items: flex-start; gap: var(--e-3); line-height: 1.6; }
.liste-puces li::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px;
  background: var(--prim); border-radius: 50%;
}
.liste-puces li + li { margin-top: var(--e-2); }

/* Témoignage */
.temoignage { display: flex; flex-direction: column; gap: var(--e-4); padding: var(--e-6); height: 100%; }
.etoiles { display: flex; gap: 2px; color: var(--acc); }
.temoignage blockquote { font-size: .97rem; line-height: 1.7; color: var(--txt-2); flex: 1; }
.temoignage-auteur { display: flex; align-items: center; gap: var(--e-3); }
.avatar {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  font-family: var(--police-titre); font-weight: 700; font-size: .9rem;
  background: var(--prim-doux); color: var(--prim);
  border-radius: 50%; object-fit: cover; overflow: hidden;
}
.avatar-lg { width: 64px; height: 64px; font-size: 1.2rem; }

/* Vidéos */
.carte-video { overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.video-vignette { position: relative; aspect-ratio: 16 / 9; background: var(--surface-3); overflow: hidden; }
.video-vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-lente); }
.carte-video:hover .video-vignette img { transform: scale(1.05); }
.video-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, .45));
  color: #fff; transition: background-color var(--t-base);
}
.video-play .ico { width: 54px; height: 54px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5)); transition: transform var(--t-base); }
.carte-video:hover .video-play .ico { transform: scale(1.1); }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Bandeau d'appel à l'action */
.cta-bandeau {
  display: grid; gap: var(--e-6); align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface); border: 1px solid var(--bord);
  border-radius: var(--r-xl); box-shadow: var(--ombre-md);
}
.cta-bandeau h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem); }

/* Encadré d'information */
.encadre {
  display: flex; gap: var(--e-4); align-items: flex-start;
  padding: var(--e-5); border-radius: var(--r-md);
  background: var(--info-doux); border: 1px solid transparent;
  color: var(--txt-2); font-size: .92rem; line-height: 1.6;
}
.encadre .ico { flex: none; margin-top: 2px; color: var(--info); }
.encadre strong { display: block; margin-bottom: 3px; color: var(--txt); }
.encadre-ok { background: var(--ok-doux); }        .encadre-ok .ico { color: var(--ok); }
.encadre-warn { background: var(--warn-doux); }    .encadre-warn .ico { color: var(--warn); }
.encadre-prim { background: var(--prim-doux); }    .encadre-prim .ico { color: var(--prim); }

/* Messages flash */
.flashs {
  position: fixed; top: calc(var(--entete-h) + 12px); right: 16px; z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: var(--e-2); max-width: min(420px, calc(100vw - 32px));
}
.flash {
  display: flex; align-items: flex-start; gap: var(--e-3);
  padding: var(--e-4) var(--e-5);
  background: var(--surface); border: 1px solid var(--bord);
  border-left: 4px solid var(--prim);
  border-radius: var(--r-md); box-shadow: var(--ombre-lg);
  font-size: .92rem; line-height: 1.5;
  animation: entree-droite var(--t-lente) both;
}
.flash-succes { border-left-color: var(--ok); }   .flash-succes .ico { color: var(--ok); }
.flash-erreur { border-left-color: var(--danger); } .flash-erreur .ico { color: var(--danger); }
.flash-info { border-left-color: var(--info); }   .flash-info .ico { color: var(--info); }
.flash-attention { border-left-color: var(--warn); } .flash-attention .ico { color: var(--warn); }
.flash .fermer { margin-left: auto; color: var(--txt-3); flex: none; }
.flash .fermer:hover { color: var(--txt); }

/* État vide */
.etat-vide {
  display: flex; flex-direction: column; align-items: center; gap: var(--e-4);
  padding: clamp(40px, 6vw, 72px) var(--e-6); text-align: center;
  background: var(--surface); border: 1px dashed var(--bord-fort);
  border-radius: var(--r-lg);
}
.etat-vide .rond {
  display: grid; place-items: center; width: 64px; height: 64px;
  background: var(--surface-2); color: var(--txt-3); border-radius: 50%;
}
.etat-vide h3 { font-size: 1.15rem; }
.etat-vide p { color: var(--txt-3); max-width: 46ch; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: var(--e-10); }
.pagination a, .pagination span {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
  font-size: .92rem; font-weight: 620; color: var(--txt-2);
  background: var(--surface); border: 1px solid var(--bord);
  border-radius: var(--r-sm); transition: all var(--t-rapide);
}
.pagination a:hover { border-color: var(--prim); color: var(--prim); }
.pagination .is-active { background: var(--prim); color: var(--prim-txt); border-color: var(--prim); }
.pagination .points { border: 0; background: transparent; }

/* Barre de filtres */
.barre-filtres {
  display: flex; align-items: center; gap: var(--e-3); flex-wrap: wrap;
  padding: var(--e-4) var(--e-5);
  background: var(--surface); border: 1px solid var(--bord);
  border-radius: var(--r-lg); box-shadow: var(--ombre-sm);
}
.champ-recherche { position: relative; flex: 1; min-width: 220px; }
.champ-recherche .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--txt-3); pointer-events: none; }
.champ-recherche .saisie { padding-left: 42px; }

.panneau-filtres {
  display: grid; gap: var(--e-4);
  padding: var(--e-5); margin-top: var(--e-3);
  background: var(--surface-2); border: 1px solid var(--bord);
  border-radius: var(--r-lg);
}
.filtres-groupe { display: flex; flex-direction: column; gap: var(--e-2); }
.filtres-groupe > span {
  font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--txt-3);
}
.filtres-choix { display: flex; flex-wrap: wrap; gap: var(--e-2); }

/* Tableau générique */
.tableau-conteneur {
  overflow-x: auto; border: 1px solid var(--bord);
  border-radius: var(--r-lg); background: var(--surface);
}
table.tableau { width: 100%; border-collapse: collapse; min-width: 620px; }
.tableau th, .tableau td { padding: 13px var(--e-4); text-align: left; vertical-align: middle; }
.tableau thead th {
  font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--txt-3); background: var(--surface-2);
  border-bottom: 1px solid var(--bord); white-space: nowrap;
}
.tableau tbody tr { border-bottom: 1px solid var(--bord); transition: background-color var(--t-rapide); }
.tableau tbody tr:last-child { border-bottom: 0; }
.tableau tbody tr:hover { background: var(--surface-2); }
.tableau td { font-size: .92rem; }
.tableau .col-actions { text-align: right; white-space: nowrap; }
.tableau .col-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ==== 12. PIED DE PAGE ==================================== */

.pied {
  margin-top: var(--e-16);
  background: var(--surface); border-top: 1px solid var(--bord);
}
.pied-haut {
  display: grid; gap: var(--e-10);
  grid-template-columns: minmax(240px, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  padding-block: clamp(40px, 5vw, 64px);
}
.pied-marque { max-width: 340px; }
.pied-marque p { margin-top: var(--e-4); font-size: .92rem; color: var(--txt-3); }
.pied-colonne h4 {
  margin-bottom: var(--e-4); font-size: .78rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--txt-3);
}
.pied-colonne ul { display: grid; gap: 10px; }
.pied-colonne a { font-size: .92rem; color: var(--txt-2); }
.pied-colonne a:hover { color: var(--prim); }

.reseaux { display: flex; gap: var(--e-2); margin-top: var(--e-5); }
.reseau {
  display: grid; place-items: center; width: 42px; height: 42px;
  color: var(--txt-2); background: var(--surface-2);
  border: 1px solid var(--bord); border-radius: var(--r-sm);
  transition: all var(--t-rapide);
}
.reseau:hover { background: var(--prim); color: var(--prim-txt); border-color: var(--prim); transform: translateY(-2px); }
.reseau.est-youtube:hover { background: #ff0033; border-color: #ff0033; color: #fff; }
.reseau.est-linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }

.pied-bas {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--e-4); flex-wrap: wrap;
  padding-block: var(--e-5); border-top: 1px solid var(--bord);
  font-size: .85rem; color: var(--txt-3);
}
.pied-bas nav { display: flex; gap: var(--e-4); flex-wrap: wrap; }
.pied-bas a { color: var(--txt-3); }
.pied-bas a:hover { color: var(--prim); }

/* ==== 13. COMPOSANTS DIVERS =============================== */

/* Barre de progression / niveau de compétence */
.jauge { height: 8px; background: var(--surface-3); border-radius: var(--r-full); overflow: hidden; }
.jauge > span {
  display: block; height: 100%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--prim), var(--prim-clair));
}

/* Onglets */
.onglets {
  display: flex; gap: 4px; padding: 4px; overflow-x: auto;
  background: var(--surface-2); border: 1px solid var(--bord);
  border-radius: var(--r-full); width: fit-content; max-width: 100%;
}
.onglet {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 18px; white-space: nowrap;
  font-size: .9rem; font-weight: 620; color: var(--txt-2);
  border-radius: var(--r-full); transition: all var(--t-rapide);
}
.onglet:hover { color: var(--txt); }
.onglet.is-active { background: var(--surface); color: var(--prim); box-shadow: var(--ombre-xs); }

/* Ancre latérale de la page formation */
.sommaire-ancres { display: grid; gap: 2px; }
.sommaire-ancres a {
  display: flex; align-items: center; gap: var(--e-2);
  padding: 8px 12px; border-radius: var(--r-sm);
  font-size: .89rem; font-weight: 600; color: var(--txt-2);
  border-left: 2px solid transparent;
}
.sommaire-ancres a:hover { background: var(--surface-2); color: var(--txt); }
.sommaire-ancres a.is-active { color: var(--prim); border-left-color: var(--prim); background: var(--prim-doux); }

/* Étiquette de section ancrée */
.bloc-ancre { scroll-margin-top: calc(var(--entete-h) + 24px); }
.bloc-ancre + .bloc-ancre { margin-top: var(--e-12); }
.titre-ancre {
  display: flex; align-items: center; gap: var(--e-3);
  margin-bottom: var(--e-5); padding-bottom: var(--e-3);
  border-bottom: 1px solid var(--bord);
}
.titre-ancre .ico { color: var(--prim); }

/* Ruban de logos / références */
.bandeau-defile {
  display: flex; gap: var(--e-10); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.bandeau-defile > div { display: flex; gap: var(--e-10); animation: defile 34s linear infinite; }
@media (prefers-reduced-motion: reduce) { .bandeau-defile > div { animation: none; } }

/* Barre d'action collante mobile */
.barre-mobile {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  display: none; align-items: center; gap: var(--e-3);
  padding: var(--e-3) var(--e-4);
  padding-bottom: max(var(--e-3), env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--bord);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .08);
}

/* ==== 14. ANIMATIONS & RESPONSIVE ========================= */

@keyframes entree-droite {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes entree-bas {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes defile {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
@keyframes pulsation {
  0%, 100% { opacity: 1; }
  50%      { opacity: .45; }
}

.apparait { animation: entree-bas var(--t-lente) both; }
.apparait-1 { animation-delay: .06s; }
.apparait-2 { animation-delay: .12s; }
.apparait-3 { animation-delay: .18s; }
.apparait-4 { animation-delay: .24s; }

.squelette {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: pulsation 1.4s ease-in-out infinite;
  border-radius: var(--r-sm);
}

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

/* --- Points de rupture --- */

@media (max-width: 1100px) {
  .hero-portrait { grid-template-columns: 1fr; }
  .hero-portrait-visuel { max-width: 560px; }
  .cta-bandeau { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  .nav-principale, .actions-entete .btn-cta { display: none; }
  .menu-deroulant { display: none; }
}

@media (min-width: 992px) {
  .btn-burger { display: none; }
}

@media (max-width: 767px) {
  :root { --entete-h: 64px; }
  .conteneur { padding-inline: var(--e-4); }
  .section { padding-block: 44px; }
  .hero-preuves { gap: var(--e-4) var(--e-6); }
  .hero-argument { max-width: none; width: 100%; }
  /* Sur un écran étroit, l'image tient mal en fond derrière un texte long :
     le voile devient vertical et nettement plus opaque. */
  .hero-voile, .hero.centre .hero-voile {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 88%, transparent) 0%,
      color-mix(in srgb, var(--bg) 94%, transparent) 100%);
  }
  .hero.a-fond { min-height: 0; }
  .hero-commandes { right: 50%; transform: translateX(50%); bottom: var(--e-4); }
  .grille-3, .grille-4 { grid-template-columns: 1fr; }
  .groupe-champs { grid-template-columns: 1fr; }
  .pied-haut { grid-template-columns: 1fr 1fr; gap: var(--e-8); }
  .pied-marque { grid-column: 1 / -1; }
  .flashs { top: auto; bottom: 12px; left: 12px; right: 12px; max-width: none; }
  .barre-mobile { display: flex; }
  body.a-barre-mobile { padding-bottom: 78px; }
  .manifeste-points { text-align: center; }
  .manifeste-point { flex-direction: column; align-items: center; gap: var(--e-2); }
  .tarifs-grille { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
  .recherche-overlay { padding-top: 6vh; }
}

@media (max-width: 479px) {
  .pied-haut { grid-template-columns: 1fr; }
  .btn-lg { min-height: 48px; padding: 13px 22px; font-size: .95rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .logo-texte small { display: none; }
}

@media print {
  .entete, .pied, .barre-mobile, .flashs, .hero-actions, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .carte { box-shadow: none; border: 1px solid #ccc; }
}

/* =============================================================
   15. Ressources — fiches pratiques
   ============================================================= */

/* Texte à gauche, sommaire à droite. La colonne de texte est bornée en
   caractères et non en pixels : c'est la longueur de ligne qui fatigue l'œil,
   pas la largeur de l'écran. Au-delà de ~75 signes on perd le début de la
   ligne suivante en revenant à la marge. */
/* La mesure de l'article est définie une seule fois et partagée par la zone de
   lecture et par tout ce qui la suit — encart de formation, suggestions. Sans
   ce partage, les blocs de fin prenaient la largeur du conteneur (2 560 px au
   maximum) pendant que le texte restait à ~1 050 px : le bloc de conversion
   débordait de plus du double, et commençait bien à gauche de la première
   lettre du texte. */
.article-colonnes,
.article-suite {
  --l-texte: 72ch;
  --l-aside: 280px;
  max-width: calc(var(--l-texte) + var(--l-aside) + var(--e-10));
  margin-inline: auto;
}

.article-colonnes {
  display: grid;
  gap: var(--e-10);
  align-items: start;
  grid-template-columns: minmax(0, 1fr) var(--l-aside);
}
@media (max-width: 1100px) {
  .article-colonnes { grid-template-columns: minmax(0, 1fr); }
  /* Le sommaire passe avant le texte : replié en bas de page, personne ne le
     voit, et il devient une liste de liens morts sous l'article. */
  .article-aside { order: -1; }
}

.article-aside { position: sticky; top: calc(var(--entete-h) + var(--e-5)); }
@media (max-width: 1100px) { .article-aside { position: static; } }

/* ---- Corps rédigé : styles appliqués aux balises produites par
        TexteEnrichi, qui ne pose aucune classe. ---- */
.article-corps { font-size: 1.02rem; line-height: 1.75; color: var(--txt-2); }
.article-corps > * + * { margin-top: var(--e-5); }

.article-corps h2 {
  margin-top: var(--e-10);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.25;
  color: var(--txt);
  /* Décalage d'ancrage : sans lui, un clic sur le sommaire cache le titre
     derrière l'en-tête collant. */
  scroll-margin-top: calc(var(--entete-h) + var(--e-5));
}
.article-corps h3 {
  margin-top: var(--e-8);
  font-size: 1.12rem;
  color: var(--txt);
  scroll-margin-top: calc(var(--entete-h) + var(--e-5));
}
.article-corps h2:first-child, .article-corps h3:first-child { margin-top: 0; }

/* La feuille remet `list-style: none` sur toutes les listes (ligne 205) :
   dans un article, les puces et la numérotation portent du sens et doivent
   être rétablies explicitement. `display: grid` supprimerait les marqueurs,
   d'où l'espacement obtenu par une marge plutôt que par `gap`. */
.article-corps ul { list-style: disc; }
.article-corps ol { list-style: decimal; }
.article-corps ul, .article-corps ol { padding-left: var(--e-6); }
.article-corps li + li { margin-top: var(--e-2); }
.article-corps li::marker { color: var(--theme-couleur, var(--prim)); font-weight: 700; }

.article-corps a { color: var(--prim); text-decoration: underline; text-underline-offset: 3px; }
.article-corps a:hover { text-decoration-thickness: 2px; }

.article-corps strong { color: var(--txt); font-weight: 650; }

.article-corps blockquote {
  margin: var(--e-6) 0;
  padding: var(--e-4) var(--e-5);
  border-left: 3px solid var(--theme-couleur, var(--prim));
  background: var(--surface-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.02rem;
}
.article-corps blockquote p { margin: 0; }

.article-corps code {
  padding: 2px 6px;
  font-family: var(--police-mono);
  font-size: .88em;
  background: var(--surface-2);
  border: 1px solid var(--bord);
  border-radius: var(--r-sm);
  overflow-wrap: anywhere;
}
.article-corps pre {
  padding: var(--e-4);
  background: var(--surface-2);
  border: 1px solid var(--bord);
  border-radius: var(--r-md);
  /* Un extrait de code ne se coupe pas : il défile dans son propre cadre,
     sinon c'est la page entière qui déborde horizontalement. */
  overflow-x: auto;
}
.article-corps pre code { padding: 0; background: none; border: 0; font-size: .86rem; line-height: 1.6; }

.article-corps hr { margin: var(--e-8) 0; border: 0; border-top: 1px solid var(--bord); }

.article-figure { margin: var(--e-6) 0; }
.article-figure img { width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--bord); }
.article-figure figcaption {
  margin-top: var(--e-2);
  font-size: .84rem;
  color: var(--txt-3);
  text-align: center;
}

.article-couverture img {
  width: 100%; height: auto; max-height: 420px; object-fit: cover;
  border-radius: var(--r-lg); border: 1px solid var(--bord);
}

/* ---- Encart de conversion en fin de fiche ---- */
.encart-formation {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--r-lg);
  box-shadow: var(--ombre-md);
}
.encart-formation:not(:has(.encart-visuel)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 800px) { .encart-formation { grid-template-columns: minmax(0, 1fr); } }

.encart-visuel { position: relative; min-height: 200px; background: var(--surface-2); }
.encart-visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.encart-corps { padding: var(--e-6) var(--e-6); border-top: 3px solid var(--theme-couleur, var(--prim)); }
@media (min-width: 801px) { .encart-corps { border-top: 0; border-left: 3px solid var(--theme-couleur, var(--prim)); } }
.encart-corps h2 { margin: var(--e-2) 0 var(--e-3); font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.encart-corps .accroche { color: var(--txt-2); }

.encart-pied {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--e-4); justify-content: space-between;
  padding-top: var(--e-5); border-top: 1px solid var(--bord);
}

/* ---- Repli quand aucune formation n'est rattachée ---- */
.bandeau-conversion {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--e-5);
  padding: var(--e-6) var(--e-6);
  background: var(--prim-doux);
  border: 1px solid var(--bord);
  border-radius: var(--r-lg);
}
.bandeau-conversion h2 { margin: 0 0 var(--e-2); font-size: 1.25rem; }
.bandeau-conversion p { margin: 0; color: var(--txt-2); max-width: 62ch; }

/* La carte d'une fiche n'a pas de prix : son pied ne porte qu'un lien, on le
   pousse en bas pour que toutes les cartes d'une rangée s'alignent. */
.carte-article .pied { justify-content: flex-end; }
