/* =====================================================================
   MSH-AFRIQUE — Thème v2 (chargé après style.css et responsive.css)
   1. En-tête : logo toujours visible, menu compact à 7 entrées
   2. Menu mobile (jusqu'à 1199 px)
   3. Rafraîchissement visuel des pages publiques
   4. Espaces Participant / Adhérent
   ===================================================================== */

:root {
  --radius: 18px;
  --shadow: 0 20px 44px -30px rgba(11, 60, 122, .55);
  --shadow-lg: 0 34px 70px -34px rgba(8, 33, 63, .55);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------------------------------------------------------------------
   1. EN-TÊTE
   --------------------------------------------------------------------- */
.hdr-v2 > .container {
  max-width: 1320px; gap: 18px; padding-top: 10px; padding-bottom: 10px;
  display: flex; align-items: center; flex-wrap: nowrap;
}

/* Le logo ne rétrécit JAMAIS (c'était la cause du logo invisible) */
.hdr-v2 .brand {
  flex: 0 0 auto; overflow: visible; min-width: auto; gap: 11px;
}
.hdr-v2 .brand img {
  height: var(--logo-h, 58px); width: auto; max-width: 190px; object-fit: contain; flex-shrink: 0;
  transition: height .3s var(--ease);
}
.hdr-v2.scrolled .brand img { height: calc(var(--logo-h, 58px) * .82); }
.hdr-v2 .brand-text { overflow: visible; min-width: 0; }
.hdr-v2 .brand-text strong { font-size: 19px; white-space: nowrap; overflow: visible; }
.hdr-v2 .brand-text span { max-width: 22ch; white-space: normal; line-height: 1.25; font-size: 9.5px; }

/* Navigation : centrée, sans icônes au premier niveau (gain de place) */
.hdr-v2 .nav { margin: 0 auto; gap: 0; flex: 0 1 auto; min-width: 0; }
.hdr-v2 .nav-item > a { padding: 10px 11px; font-size: 14px; gap: 5px; color: #34465d; }
.hdr-v2 .nav-item > a .nav-ico { display: none; }
.hdr-v2 .nav-item.is-active > a { color: var(--primary); }
.hdr-v2 .nav-item.is-active > a::after { transform: scaleX(1); }
.hdr-v2 .nav-item.is-highlight > a { background: var(--secondary); color: #fff; }
.hdr-v2 .nav-mobile-head, .hdr-v2 .nav-mobile-langs { display: none; }

/* Sous-menus : plus aérés, deux colonnes si plus de 6 liens */
.hdr-v2 .submenu { min-width: 290px; padding: 12px; border-radius: 18px; }
.hdr-v2 .submenu-wide { min-width: 540px; }
.hdr-v2 .submenu-wide .submenu-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; }
.hdr-v2 .submenu a .sm-ico {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: #f1f5fb; font-size: 15px; transition: background .2s, transform .2s;
}
.hdr-v2 .submenu a:hover .sm-ico { background: #fff; transform: scale(1.06); box-shadow: 0 6px 14px -8px rgba(11, 60, 122, .5); }
.hdr-v2 .nav-item:nth-last-of-type(-n+3) .submenu { left: auto; right: 0; }
.hdr-v2 .nav-item:nth-last-of-type(-n+3) .submenu-arrow { left: auto; right: 26px; }

/* Boutons à droite */
.hdr-v2 .header-cta { flex: 0 0 auto; margin-inline-start: 0; gap: 8px; }
.hdr-v2 .hdr-btn { padding: 9px 15px; }
.hdr-v2 .hb-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

/* Paliers intermédiaires : on garde le logo, on allège le reste */
@media (max-width: 1340px) {
  .hdr-v2 .brand-text span { display: none; }
  .hdr-v2 .nav-item > a { padding: 10px 9px; font-size: 13.6px; }
}
@media (max-width: 1520px) {
  /* « Espace membre » reste accessible dans la barre supérieure : icône seule ici */
  .hdr-v2 .hdr-member .hb-txt { display: none; }
  .hdr-v2 .hdr-member { padding: 0; width: 42px; height: 42px; justify-content: center; }
}
@media (max-width: 1290px) and (min-width: 1200px) {
  .hdr-v2 .brand-text { display: none; }
}

/* ---------------------------------------------------------------------
   2. MENU MOBILE / TABLETTE (≤ 1199 px)
   --------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .hdr-v2 > .container { justify-content: space-between; }
  .hdr-v2 .brand-text span { display: none; }
  .hdr-v2 .burger { display: flex; }
  .hdr-v2 .header-cta .hdr-member .hb-txt { display: none; }

  .hdr-v2 .nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; margin: 0;
    width: min(380px, 100%); height: 100dvh; display: flex; flex-direction: column; align-items: stretch; gap: 3px;
    padding: 18px 16px calc(28px + env(safe-area-inset-bottom)); background: #fff;
    box-shadow: -18px 0 46px -24px rgba(8, 33, 63, .8); overflow-y: auto; overflow-x: hidden;
    overscroll-behavior: contain; z-index: 999; transform: translateX(100%); visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s;
  }
  [dir="rtl"] .hdr-v2 .nav { right: auto; left: 0; transform: translateX(-100%); }
  .hdr-v2 .nav.open { transform: translateX(0); visibility: visible; }
  body.nav-open { overflow: hidden; touch-action: none; }

  .hdr-v2 .nav-mobile-head {
    display: flex; align-items: center; gap: 10px; padding: 4px 6px 16px; margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }
  .hdr-v2 .nav-mobile-head img { height: 44px; width: auto; }
  .hdr-v2 .nav-mobile-head strong { color: var(--primary); font-size: 17px; }

  .hdr-v2 .nav-item { width: 100%; position: relative; }
  .hdr-v2 .nav-item > a {
    width: 100%; justify-content: flex-start; white-space: normal; padding: 13px 52px 13px 14px;
    font-size: 15px; border-radius: 12px;
  }
  .hdr-v2 .nav-item > a .nav-ico { display: inline-flex; font-size: 16px; opacity: 1; }
  .hdr-v2 .nav-item > a .caret, .hdr-v2 .nav-item > a::after { display: none; }
  .hdr-v2 .sub-toggle {
    display: grid; place-items: center; position: absolute; top: 5px; right: 4px; width: 40px; height: 40px;
    background: #f2f6fb; border: 0; border-radius: 11px; font-size: 14px; color: var(--primary); cursor: pointer; transition: .25s;
  }
  .hdr-v2 .nav-item.open .sub-toggle { transform: rotate(180deg); background: var(--primary); color: #fff; }
  .hdr-v2 .submenu, .hdr-v2 .submenu-wide {
    position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; min-width: 0;
    border: 0; border-inline-start: 2px solid var(--line); border-radius: 0; margin: 2px 0 8px 14px; padding: 0 0 0 6px;
  }
  .hdr-v2 .submenu-wide .submenu-links { display: block; }
  .hdr-v2 .submenu-arrow, .hdr-v2 .submenu-head { display: none; }
  .hdr-v2 .nav-item.open .submenu { display: block; animation: fadeUp .3s both; }
  .hdr-v2 .nav-item.has-sub:hover .submenu { display: none; }
  .hdr-v2 .nav-item.has-sub.open:hover .submenu { display: block; }
  .hdr-v2 .submenu a { white-space: normal; padding: 8px 10px; }
  .hdr-v2 .submenu a .sm-ico { width: 28px; height: 28px; }

  .hdr-v2 .nav-mobile-actions { display: grid; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
  .hdr-v2 .nav-mobile-langs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 6px; }
  .hdr-v2 .nav-mobile-langs a {
    padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: #4a5b70;
  }
  .hdr-v2 .nav-mobile-langs a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

  .nav-overlay {
    position: fixed; inset: 0; width: 100vw; height: 100dvh; background: rgba(6, 20, 38, .55);
    backdrop-filter: blur(2px); z-index: 998; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav-overlay.show { opacity: 1; visibility: visible; }
}
@media (max-width: 560px) {
  .hdr-v2 .brand img { height: min(var(--logo-h, 58px), 46px); }
  .hdr-v2 .brand-text strong { font-size: 16px; }
  .hdr-v2 .hdr-donate .hb-txt { display: none; }
  .hdr-v2 .hdr-donate { padding: 9px 11px; }
  .topbar-info span:nth-child(2) { display: none; }
}
@media (max-width: 380px) {
  .hdr-v2 .brand-text { display: none; }
}

/* ---------------------------------------------------------------------
   3. PAGES PUBLIQUES — rafraîchissement visuel
   --------------------------------------------------------------------- */
.topbar { font-size: 12.8px; }
.topbar .container { max-width: 1320px; }

.page-hero { padding: 88px 0 80px; }
.page-hero::after {
  background:
    radial-gradient(1200px 400px at 85% 120%, color-mix(in srgb, var(--secondary) 45%, transparent), transparent 60%),
    linear-gradient(100deg, rgba(6, 26, 51, .96) 0%, rgba(8, 33, 63, .78) 55%, rgba(8, 33, 63, .55) 100%);
}
.page-hero h1 { font-size: clamp(28px, 4.4vw, 44px); letter-spacing: -.03em; max-width: 880px; }
.page-hero p { font-size: 16.5px; }
.page-hero .breadcrumb { font-size: 12.5px; letter-spacing: .04em; color: #a9c0dd; margin-bottom: 12px; }
.page-hero .breadcrumb a { color: #fff; opacity: .85; }
.page-hero .breadcrumb a:hover { color: var(--accent); opacity: 1; }

.section { padding: 84px 0; }
.title { letter-spacing: -.03em; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

.card { border-radius: var(--radius); border-color: #e9eef5; }
.card-img { height: 205px; }
.card-body { padding: 22px 22px 24px; }
.card-body h3 { font-size: 18.5px; line-height: 1.3; }
.box { border-radius: var(--radius); border-color: #e9eef5; box-shadow: 0 1px 0 rgba(15, 37, 64, .02); }
.form-card { border-radius: 22px; padding: 34px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"],
input[type="date"], input[type="url"], select, textarea {
  border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}

.cta { background: linear-gradient(120deg, var(--dark), color-mix(in srgb, var(--primary) 70%, #000)); position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 65%);
}
.cta .container { position: relative; }

.footer { background: linear-gradient(180deg, #08213f, #061a33); }
.footer-brand img { height: 60px; }
.footer .social a { transition: .2s; }

/* Valeurs, impacts (pages À propos / Don) */
.value-card { border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s; }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.impact-card { border-left: 4px solid var(--accent); }

/* Liste d'avantages avec puces colorées */
.check-list { display: grid; gap: 9px; font-size: 14px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li::before {
  content: "✓"; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 900; background: rgba(255, 255, 255, .22); color: #fff; margin-top: 1px;
}
.box:not(.box-green):not(.box-dark) .check-list li::before { background: color-mix(in srgb, var(--secondary) 14%, #fff); color: var(--secondary); }

/* Animation d'apparition douce des sections */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------
   4. ESPACES MEMBRES : Participant (bleu) / Adhérent (vert & or)
   --------------------------------------------------------------------- */
.space-hero { padding: 46px 0 40px; position: relative; overflow: hidden; color: #fff; }
.space-hero::before {
  content: ""; position: absolute; width: 480px; height: 480px; right: -120px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%);
}
.space-hero .container { position: relative; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.space-participant .space-hero { background: linear-gradient(120deg, #0a2f5f, var(--primary)); }
.space-adherent .space-hero { background: linear-gradient(120deg, #064a33, var(--secondary) 70%, #0f9b6b); }
.space-hero .sh-avatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .55); }
.space-hero h1 { color: #fff; font-size: clamp(22px, 3vw, 30px); }
.space-hero p { color: rgba(255, 255, 255, .82); margin-top: 4px; font-size: 14.5px; }
.space-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px;
}
.space-participant .space-badge { background: rgba(255, 255, 255, .16); color: #fff; }
.space-adherent .space-badge { background: var(--accent); color: #2a1d02; }
.space-hero .sh-actions { margin-inline-start: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.space .dash-side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; font-weight: 600; font-size: 14px; color: #44566c; }
.space .dash-side nav a:hover { background: #f3f6fb; }
.space-participant .dash-side nav a.active { background: color-mix(in srgb, var(--primary) 10%, #fff); color: var(--primary); }
.space-adherent .dash-side nav a.active { background: color-mix(in srgb, var(--secondary) 12%, #fff); color: var(--secondary); }
.space .nav-sep { font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #93a3b8; padding: 14px 12px 4px; }

.progress-bar { height: 8px; border-radius: 99px; background: #eaf0f7; overflow: hidden; }
.progress-bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--secondary), var(--accent)); }

.step-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.step-track span {
  font-size: 11px; font-weight: 700; text-align: center; padding: 6px 4px; border-radius: 8px;
  background: #f1f5fa; color: #8796aa;
}
.step-track span.done { background: color-mix(in srgb, var(--secondary) 14%, #fff); color: var(--secondary); }
.step-track span.now { background: var(--accent); color: #2a1d02; }

.training-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.training-row:last-child { border-bottom: 0; }
.training-row img { width: 92px; height: 68px; object-fit: cover; border-radius: 12px; }
.training-row h3 { font-size: 15.5px; }
@media (max-width: 640px) {
  .training-row { grid-template-columns: 64px 1fr; }
  .training-row img { width: 64px; height: 52px; }
  .training-row > :last-child { grid-column: 1 / -1; }
  .step-track { grid-template-columns: repeat(2, 1fr); }
}

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-grid a {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; border: 1px solid var(--line);
  background: #fff; font-weight: 700; font-size: 13.5px; color: var(--heading); transition: .25s var(--ease);
}
.quick-grid a span { font-size: 22px; }
.quick-grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
@media (max-width: 900px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }

.member-card.big { padding: 26px; border-radius: 22px; }
.member-card.big .mc-name { font-size: 22px; }

/* Liens de sous-menu : icône et texte sur une ligne */
.hdr-v2 .submenu a { display: flex; flex-direction: row; align-items: center; gap: 11px; padding: 8px 12px; }
@media (max-width: 400px) and (min-width: 340px) {
  .hdr-v2 .brand-text { display: block; }
  .hdr-v2 .brand-text strong { font-size: 15px; }
}
/* Menu mobile ouvert : l'en-tête passe au-dessus du voile sombre (sinon le panneau est masqué) */
body.nav-open .header { z-index: 1001; backdrop-filter: none; }

/* ---------------------------------------------------------------------
   5. SALLE LIVE INTÉGRÉE
   --------------------------------------------------------------------- */
body.live-room-page .topbar, body.live-room-page .ticker { display: none; }
body.live-room-page .footer { display: none; }
.live-room { background: #0b1220; min-height: calc(100dvh - 80px); display: flex; flex-direction: column; }
.lr-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 18px; background: #0f1a2e; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff;
}
.lr-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lr-title strong { display: block; font-size: 15.5px; color: #fff; }
.lr-title span:not(.live-badge):not(.lb-dot) { display: block; font-size: 12.5px; color: #9fb2cc; }
.lr-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lr-actions .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
.btn-outline-danger { background: transparent; color: #ff8a8a; border: 1px solid rgba(255,120,120,.5); }
.btn-outline-danger:hover { background: #e03131; color: #fff; }
.lr-note { display: none; padding: 12px 18px; background: #fff8e8; color: #6b4b05; font-size: 13.5px; }
.lr-note.show { display: block; }
.lr-warn { padding: 8px 18px; background: #7a2e0e; color: #ffe2cf; font-size: 12.5px; }
.lr-stage { flex: 1; min-height: 520px; height: calc(100dvh - 150px); position: relative; }
.lr-stage iframe { border: 0; display: block; }
.lr-loading { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #c8d5e8; gap: 14px; padding: 20px; }
.spinner { width: 46px; height: 46px; margin: 0 auto; border-radius: 50%; border: 4px solid rgba(255,255,255,.15); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .lr-stage { height: calc(100dvh - 190px); min-height: 420px; } }

/* Cartes de session Live (espace membre) */
.live-card { border-radius: 18px; border: 1px solid var(--line); background: #fff; padding: 18px; display: grid; gap: 8px; position: relative; overflow: hidden; }
.live-card.is-open { border-color: #f1b0b0; box-shadow: 0 0 0 4px rgba(224,49,49,.08); }
.live-card h3 { font-size: 17px; }
.live-card .lc-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------------
   6. FORMATION À LA UNE (accueil) & PAGE FORMATION
   --------------------------------------------------------------------- */
.spotlight { background: linear-gradient(120deg, #071d3a, var(--primary) 60%, color-mix(in srgb, var(--primary) 60%, var(--secondary))); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.spotlight::before { content: ""; position: absolute; width: 620px; height: 620px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 65%); }
.sp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; position: relative; }
.sp-badge { display: inline-block; background: var(--accent); color: #2a1d02; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.spotlight h2 { color: #fff; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.15; margin-top: 14px; letter-spacing: -.02em; }
.sp-lead { color: #d3e0f1; margin-top: 12px; font-size: 15.5px; line-height: 1.65; }
.sp-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.sp-actions .btn { padding: 14px 24px; font-size: 15px; }
.sp-cons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; font-size: 13px; color: #b9cbe3; }
.sp-cons b { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; }
.sp-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sp-h { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 18px; backdrop-filter: blur(4px); transition: .3s; }
.sp-h:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); }
.sp-h span { font-size: 26px; }
.sp-h p { color: #fff; font-weight: 700; font-size: 14.5px; margin-top: 8px; line-height: 1.4; }
@media (max-width: 900px) { .sp-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 480px) { .sp-highlights { grid-template-columns: 1fr; } .spotlight { padding: 48px 0; } }

.hl-strip { background: #fff; border-bottom: 1px solid var(--line); padding: 22px 0; }
.hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.hl-item { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg-soft); }
.hl-item span { font-size: 22px; }
.hl-item b { font-size: 13.5px; color: var(--heading); line-height: 1.35; }
.cons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.cons-item { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.cons-item img { width: 56px; height: 56px; object-fit: contain; }
.cons-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); font-size: 20px; flex-shrink: 0; }
.cons-item b { display: block; color: var(--heading); font-size: 14.5px; }
.cons-item span { display: block; font-size: 12.3px; color: var(--muted); line-height: 1.35; }
.cert-notice { border-left: 4px solid var(--accent); background: #fffaf0; }
.cert-notice p { font-size: 14px; }

/* ---------------------------------------------------------------------
   7. PARTENAIRES : grands logos bien visibles
   --------------------------------------------------------------------- */
.partners-v2 { padding: 64px 0; background: #fff; border-top: 1px solid var(--line); }
.pv2-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.pv2-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 160px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.pv2-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pv2-card img { max-height: 110px; max-width: 100%; width: auto; object-fit: contain; }
.pv2-mono {
  display: grid; place-items: center; min-width: 140px; height: 104px; padding: 0 20px; border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--secondary)));
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.25);
}
.pv2-mono b { color: #fff; font-size: 24px; letter-spacing: .04em; font-weight: 900; text-align: center; line-height: 1.1; }
.pv2-name { font-size: 13px; font-weight: 700; color: var(--heading); text-align: center; line-height: 1.35; }
.pv2-big .pv2-card { min-height: 210px; }
.pv2-big .pv2-card img { max-height: 140px; }
@media (max-width: 560px) { .pv2-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .pv2-card { min-height: 130px; padding: 14px; } .pv2-mono b { font-size: 18px; } .pv2-mono { min-width: 0; width: 100%; height: 84px; } }

/* ---------------------------------------------------------------------
   8. ANNUAIRE : grandes photos de profil
   --------------------------------------------------------------------- */
.dir-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important; gap: 20px !important; }
.member-tile { padding: 26px 20px 22px; border-radius: 22px; }
.member-tile::before { height: 92px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 85%, #000), var(--secondary)); opacity: .95; }
.mt-photo-wrap {
  width: 148px; height: 148px; margin: 4px auto 14px; border-radius: 50%; padding: 5px; position: relative; z-index: 2;
  background: conic-gradient(from 210deg, var(--accent), var(--secondary), var(--primary), var(--accent));
  box-shadow: 0 18px 34px -18px rgba(8,33,63,.8); transition: transform .35s var(--ease);
}
.member-tile:hover .mt-photo-wrap { transform: scale(1.04) rotate(-2deg); }
.member-tile .mt-photo-wrap .mt-photo { width: 100%; height: 100%; margin: 0; border: 4px solid #fff; box-shadow: none; }
.member-tile .mt-flag { background: #fff; border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; font-size: 20px; box-shadow: 0 6px 14px -8px rgba(0,0,0,.5); }
.member-tile h3 { font-size: 17.5px; margin-top: 2px; }

/* ---------------------------------------------------------------------
   9. CONTACT
   --------------------------------------------------------------------- */
.contact-hero { padding-bottom: 120px; }
.contact-quick { margin-top: -78px; position: relative; z-index: 3; }
.cq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cq-card {
  background: #fff; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 24px 50px -30px rgba(8,33,63,.6); border: 1px solid #e9eef5; transition: transform .3s var(--ease);
}
.cq-card:hover { transform: translateY(-5px); }
.cq-ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; margin-bottom: 10px;
  background: color-mix(in srgb, var(--c) 14%, #fff); }
.cq-card b { color: var(--heading); font-size: 16px; }
.cq-card span:not(.cq-ico) { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.cq-card .cq-go { color: var(--primary) !important; font-weight: 800; margin-top: 6px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.subject-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.subject-chips label { cursor: pointer; }
.subject-chips input { position: absolute; opacity: 0; pointer-events: none; }
.subject-chips span { display: inline-block; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 13.4px; font-weight: 700; color: #4a5b70; transition: .2s; }
.subject-chips input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.subject-chips input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); }
.hours-list { display: grid; gap: 8px; }
.hours-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.hours-list b { color: var(--heading); }
.quick-links { display: grid; gap: 6px; }
.quick-links a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--heading); transition: .2s; }
.quick-links a:hover { background: var(--bg-soft); color: var(--primary); transform: translateX(3px); }
.social-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.social-chips a { padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 13px; font-weight: 700; }
.social-chips a:hover { background: var(--accent); color: #2a1d02; }
.contact-map iframe { display: block; width: 100%; height: 420px; border: 0; filter: saturate(.9); }
.pv2-mono.long b { font-size: 15px; letter-spacing: 0; }
.cons-item .cons-ico { display: grid; place-items: center; font-size: 20px; }

/* ---------------------------------------------------------------------
   10. PAIEMENTS (module / tranches) & MOT DE PASSE OUBLIÉ
   --------------------------------------------------------------------- */
.auth-ico { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 12px; display: grid; place-items: center; font-size: 30px; background: color-mix(in srgb, var(--primary) 10%, #fff); }
.pay-info { background: var(--bg-soft); border: 1px dashed color-mix(in srgb, var(--primary) 35%, #fff); border-radius: 14px; padding: 14px 16px; font-size: 14px; }
.pay-info p { margin-top: 4px; }
.pay-open { border-left: 4px solid var(--accent); }
.pay-open.is-verif { border-left-color: #3b82f6; }
.pay-reg .pr-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pay-reg .pr-head img { width: 72px; height: 54px; object-fit: cover; border-radius: 10px; }
.pay-reg h3 { font-size: 16px; }
.pr-amounts { text-align: right; font-size: 13px; color: var(--muted); display: grid; }
.pr-amounts b { color: var(--heading); font-size: 15px; }
.mod-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 14px; }
.mod-track div { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 12px; background: #f1f5fa; font-size: 13px; font-weight: 700; color: #8796aa; }
.mod-track div span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 12px; }
.mod-track div.done { background: color-mix(in srgb, var(--secondary) 13%, #fff); color: var(--secondary); }
.mod-track div.done span { background: var(--secondary); color: #fff; }
.pr-form { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pay-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-choices label { cursor: pointer; }
.pay-choices input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.pay-choices label > span { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line); font-size: 13px; color: var(--muted); min-width: 150px; transition: .2s; }
.pay-choices label > span b { color: var(--heading); font-size: 14.5px; }
.pay-choices input[type=radio]:checked + span { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, #fff); box-shadow: 0 8px 20px -14px var(--primary); }
.pay-choices .pc-free input[type=number] { margin-top: 6px; padding: 7px 10px; font-size: 13px; width: 150px; }
.pr-done { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--secondary) 10%, #fff); color: var(--secondary); font-weight: 700; font-size: 14px; }
.pr-done a { color: var(--primary); margin-left: 6px; }
.pay-choices label > span em { font-style: normal; font-size: 11px; color: var(--secondary); font-weight: 700; }
.pr-alert { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.55; }
.pr-alert.warn { background: #fff6e5; color: #7a4b02; border: 1px solid #f3d9a4; }
.pr-alert a { color: var(--primary); font-weight: 800; }

/* Téléphone avec indicatif */
.phone-field { display: grid; grid-template-columns: minmax(118px, 42%) 1fr; gap: 8px; }
.phone-field .dial-select { padding-left: 10px; padding-right: 26px; text-overflow: ellipsis; }
.field-tip { background: #f3f8ff; border: 1px solid #dbe8fb; border-radius: 10px; padding: 9px 12px; font-size: 12.8px; }
@media (max-width: 480px) { .phone-field { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   11. MA FORMATION : bibliothèque verrouillée / déverrouillée
   --------------------------------------------------------------------- */
.course-head { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.course-head img { width: 150px; height: 100px; object-fit: cover; border-radius: 14px; flex-shrink: 0; }
.course-head h2 { font-size: 20px; margin-top: 4px; line-height: 1.3; }
.pay-summary { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.pay-summary > div:not(.ps-bar) { display: flex; flex-direction: column; }
.pay-summary span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.pay-summary b { font-size: 19px; color: var(--heading); }
.ps-bar small { font-size: 12px; color: var(--muted); }
.dl-box { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.lib-module { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 24px 0 12px; color: var(--heading); }
.lib-module span { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg-soft); padding: 3px 10px; border-radius: 99px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.lib-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; outline: none; }
.lib-card:hover, .lib-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); }
.lc-thumb { position: relative; height: 140px; background: #0f1a2e center / cover no-repeat; }
.lc-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,20,38,.05), rgba(6,20,38,.55)); }
.lib-card.is-locked .lc-thumb { filter: grayscale(.55) brightness(.75); }
.lc-kind, .lc-free, .lc-dur { position: absolute; z-index: 2; font-size: 11.5px; font-weight: 800; border-radius: 99px; padding: 4px 9px; }
.lc-kind { top: 10px; left: 10px; background: rgba(255,255,255,.9); }
.lc-free { top: 10px; right: 10px; background: var(--accent); color: #2a1d02; }
.lc-dur { bottom: 10px; right: 10px; background: rgba(0,0,0,.65); color: #fff; }
.lc-lock, .lc-play { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; }
.lc-lock { background: rgba(255,255,255,.95); box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); animation: lockPulse 2.4s ease-in-out infinite; }
.lc-play { background: rgba(255,255,255,.92); color: var(--primary); font-size: 20px; padding-left: 4px; transition: .25s; }
.lib-card:hover .lc-play { background: var(--accent); color: #2a1d02; transform: translate(-50%, -50%) scale(1.08); }
@keyframes lockPulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.08); } }
.lc-body { padding: 13px 14px 15px; display: grid; gap: 6px; }
.lc-body b { font-size: 14.5px; color: var(--heading); line-height: 1.35; }
.lc-body p { font-size: 12.8px; color: var(--muted); }

.player-modal, .unlock-modal { position: fixed; inset: 0; z-index: 3000; background: rgba(4,12,24,.78); display: flex; align-items: center; justify-content: center; padding: 18px; backdrop-filter: blur(3px); }
.player-modal[hidden], .unlock-modal[hidden] { display: none; }
.pm-box { width: min(1000px, 100%); background: #0b1220; border-radius: 16px; overflow: hidden; }
.pm-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; color: #fff; }
.pm-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 16px; cursor: pointer; flex-shrink: 0; }
.pm-stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.pm-stage iframe, .pm-stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.um-box { position: relative; width: min(500px, 100%); background: #fff; border-radius: 24px; padding: 34px 28px 26px; text-align: center; animation: fadeUp .35s both; overflow: hidden; }
.um-box::before { content: ""; position: absolute; inset: 0 0 auto; height: 120px; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.um-x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.um-lock { position: relative; z-index: 1; width: 92px; height: 92px; margin: 28px auto 12px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 16px 34px -16px rgba(8,33,63,.7); }
.um-lock span { font-size: 40px; animation: lockShake 2.8s ease-in-out infinite; }
@keyframes lockShake { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-12deg); } 88% { transform: rotate(10deg); } 92% { transform: rotate(-6deg); } }
.um-box h3 { font-size: 21px; color: var(--heading); }
.um-msg { font-size: 14.5px; line-height: 1.65; color: #44566c; margin-top: 10px; }
.um-amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 10px; }
.um-amounts div { background: var(--bg-soft); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.um-amounts b { font-size: 18px; color: var(--heading); }
.um-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 16px 0 10px; }

/* Notifications et cloche */
.sh-bell { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); font-size: 18px; }
.sh-bell span { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; border-radius: 99px; background: #e03131; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.notif-list { display: grid; gap: 8px; }
.notif { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.notif.unread { background: #f3f8ff; border-color: #cfe0f7; }
.notif .ni { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 18px; box-shadow: 0 4px 10px -6px rgba(0,0,0,.3); }
.notif .nt b { display: block; color: var(--heading); font-size: 14px; }
.notif .nt small { color: var(--muted); font-size: 12.5px; }
.notif .nd { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* Cartes Live (statut clair) */
.live-card .lc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lc-state { font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 99px; }
.lc-state.lc-a_venir { background: #eef4ff; color: #1d4ed8; }
.lc-state.lc-ouvert { background: #fde8e8; color: #c81e1e; }
.lc-state.lc-termine { background: #eef1f5; color: #6b7a8e; }
.live-card.is-compact h3 { font-size: 15.5px; }
.live-card .countdown { margin: 4px 0; }

/* ---------------------------------------------------------------------
   12. TABLETTE (641 → 1199 px)
   --------------------------------------------------------------------- */
@media (max-width: 1199px) and (min-width: 641px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .section { padding: 64px 0; }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split > aside { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
  .split > aside > .mt-3 { margin-top: 0; }
  .card-img { height: 190px; }
  .page-hero { padding: 64px 0 58px; }
  .sp-highlights { grid-template-columns: repeat(3, 1fr); }
  .cq-grid { grid-template-columns: repeat(2, 1fr); }
  .pv2-grid { grid-template-columns: repeat(3, 1fr); }
  .dir-grid { grid-template-columns: repeat(3, 1fr) !important; }

  /* Espace participant : barre latérale transformée en bandeau horizontal */
  .dash { grid-template-columns: 1fr; gap: 18px; }
  .space .dash-side { position: static; display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; padding: 14px; }
  .space .dash-side > nav { margin-top: 0 !important; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
  .space .dash-side > nav a { padding: 8px 12px; font-size: 13px; border: 1px solid var(--line); border-radius: 99px; }
  .space .dash-side > nav .nav-sep { display: none; }
  .space .dash-side > .box:not(:first-child) { grid-column: 1 / -1; margin-top: 0 !important; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .pay-summary { grid-template-columns: repeat(3, 1fr); }
  .pay-summary .ps-bar { grid-column: 1 / -1; }
  .pay-summary > .btn, .pay-summary > .badge { grid-column: 1 / -1; justify-self: start; }
  .lib-grid { grid-template-columns: repeat(2, 1fr); }
  .live-dash-grid { grid-template-columns: repeat(2, 1fr); }
  .training-row { grid-template-columns: 110px 1fr auto; }
  .space-hero .sh-actions { margin-inline-start: 0; width: 100%; }
}
@media (max-width: 900px) and (min-width: 641px) {
  .space .dash-side { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .dir-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .pay-summary { grid-template-columns: 1fr 1fr; }
  .pay-summary .ps-bar, .pay-summary > .btn, .pay-summary > .badge { grid-column: 1 / -1; }
  .course-head { flex-direction: column; align-items: flex-start; }
  .course-head img { width: 100%; height: 150px; }
  .lib-grid { grid-template-columns: 1fr; }
  .space .dash-side > nav { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .space .dash-side > nav a { white-space: nowrap; flex-shrink: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; }
  .space .dash-side > nav .nav-sep { display: none; }
  .notif { grid-template-columns: 36px 1fr; }
  .notif .nd { grid-column: 2; }
}
@media (max-width: 1199px) {
  .space .dash-side > .box:not(:first-child) { display: none; }   /* l'appel « Devenir adhérent » reste dans l'en-tête */
}
.form-grid > .form-group:has(.phone-field) { grid-column: 1 / -1; }
.form-grid > .form-group:has(.phone-field) .phone-field { grid-template-columns: minmax(150px, 260px) 1fr; }
@media (max-width: 480px) { .form-grid > .form-group:has(.phone-field) .phone-field { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   13. VERSEMENTS (version simple)
   --------------------------------------------------------------------- */
.pay-howto ol { margin: 10px 0 0 18px; list-style: decimal; display: grid; gap: 6px; font-size: 14px; color: #44566c; }
.slots { display: grid; gap: 8px; }
.slot { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.slot-main b { display: block; color: var(--heading); font-size: 14.5px; }
.slot-main small, .slot-state small { color: var(--muted); font-size: 12px; }
.slot-amount { font-weight: 800; color: var(--primary); font-size: 15px; }
.slot-amount input { max-width: 150px; padding: 8px 10px; }
.slot-state span { font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 99px; display: inline-block; }
.slot-action { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.slot.st-paid { background: #f1faf5; border-color: #cfe9da; }
.slot.st-paid .slot-state span { background: #dff3e8; color: #127347; }
.slot.st-wait { background: #fff9ec; border-color: #f2dfaf; }
.slot.st-wait .slot-state span { background: #fdecc0; color: #8a5a00; }
.slot.st-todo .slot-state span { background: #eef3fa; color: #46607f; }
.slot.st-off { opacity: .45; }
.slot.slot-full { border-style: dashed; border-width: 1.5px; }
.slot.slot-full.st-todo { border-color: color-mix(in srgb, var(--secondary) 45%, #fff); }
@media (max-width: 700px) {
  .slot { grid-template-columns: 1fr auto; }
  .slot-main { grid-column: 1; grid-row: 1; } .slot-amount { grid-column: 2; grid-row: 1; text-align: right; }
  .slot-state { grid-column: 1; grid-row: 2; } .slot-action { grid-column: 2; grid-row: 2; }
}

/* YouTube Live diffusé dans le site */
.yt-live { display: grid; grid-template-columns: 1fr 360px; gap: 0; flex: 1; min-height: 0; background: #0b1220; }
.yt-player { position: relative; background: #000; min-height: 280px; }
.yt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-chat { display: flex; flex-direction: column; background: #fff; border-left: 1px solid #1f2a3d; min-height: 420px; }
.yt-chat-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 800; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.yt-chat-head a { font-size: 12px; color: var(--primary); font-weight: 700; }
.yt-chat iframe { flex: 1; width: 100%; border: 0; min-height: 360px; }
.yt-chat-note { font-size: 11.5px; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--line); }
@media (max-width: 1024px) {
  .yt-live { grid-template-columns: 1fr; }
  .yt-player { aspect-ratio: 16 / 9; min-height: 0; }
  .yt-chat { border-left: 0; min-height: 460px; }
}
@media (min-width: 1025px) { .yt-live { height: calc(100dvh - 150px); } }

/* ---------------------------------------------------------------------
   14. CRÉER UN COMPTE PARTICIPANT
   --------------------------------------------------------------------- */
.hdr-v2 .hdr-signup { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.hdr-v2 .hdr-signup:hover { background: color-mix(in srgb, var(--secondary) 85%, #000); color: #fff; }
.topbar .tb-signup { color: var(--accent) !important; font-weight: 800; }
@media (max-width: 1290px) and (min-width: 1200px) { .hdr-v2 .hdr-signup .hb-txt { display: none; } .hdr-v2 .hdr-signup { padding: 0; width: 42px; height: 42px; justify-content: center; } }
@media (max-width: 560px) { .hdr-v2 .hdr-signup .hb-txt { display: none; } .hdr-v2 .hdr-signup { padding: 9px 11px; } }
.signup-band { padding: 46px 0; background: linear-gradient(120deg, #f2f8f4, #eef4fb); border-bottom: 1px solid var(--line); }
.signup-band .container { display: grid; grid-template-columns: 1.2fr 1.3fr auto; gap: 28px; align-items: center; }
.signup-band h2 { font-size: clamp(21px, 2.6vw, 28px); margin-top: 6px; letter-spacing: -.02em; }
.signup-band p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.sb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sb-steps div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--heading); }
.sb-steps b { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 14px; }
.sb-actions { display: grid; gap: 8px; }
@media (max-width: 1080px) { .signup-band .container { grid-template-columns: 1fr; } .sb-actions { grid-template-columns: auto auto; justify-content: start; } }
@media (max-width: 560px) { .sb-steps { grid-template-columns: 1fr; } .sb-actions { grid-template-columns: 1fr; } }
.signup-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.signup-steps div { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); font-size: 12.8px; font-weight: 700; color: var(--muted); }
.signup-steps div.on { background: color-mix(in srgb, var(--primary) 10%, #fff); color: var(--primary); }
.signup-steps b { width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex-shrink: 0; }
.signup-steps .on b { background: var(--primary); color: #fff; }
@media (max-width: 560px) { .signup-steps { grid-template-columns: 1fr; } }
.signup-cta { text-align: center; display: grid; gap: 8px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); }
.signup-cta small a { color: var(--secondary); font-weight: 700; }
.mini-training { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--heading); }
.mini-training img { width: 64px; height: 46px; object-fit: cover; border-radius: 8px; }
/* Visiteur non connecté : « S'inscrire » prend la place du texte « Faire un don » (le bouton de don flottant reste visible) */
@media (max-width: 1560px) {
  .hdr-v2 .header-cta.is-guest .hdr-donate .hb-txt { display: none; }
  .hdr-v2 .header-cta.is-guest .hdr-donate { padding: 0; width: 42px; height: 42px; justify-content: center; }
}
.lc-module { display: inline-block; background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; vertical-align: middle; margin-right: 4px; }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important; }
.meet-card { text-align: center; }
.meet-code { background: linear-gradient(135deg, #f1faf5, #eef4fb); border: 1px dashed color-mix(in srgb, var(--secondary) 50%, #fff); border-radius: 18px; padding: 18px; }
.meet-code span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; }
.meet-code b { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 38px; letter-spacing: .2em; color: var(--primary); margin: 4px 0; }
.meet-code p { font-size: 14px; color: #44566c; margin-bottom: 8px; }
.meet-steps { text-align: left; margin-left: 20px; list-style: decimal; display: grid; gap: 6px; font-size: 14px; color: #44566c; }

/* Le cours : vidéo + support lisibles en ligne */
.course-main { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.course-main > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.cm-title { font-weight: 800; color: var(--heading); font-size: 14.5px; margin-bottom: 10px; }
.cm-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.cm-frame iframe, .cm-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cm-locked { aspect-ratio: 16 / 9; border-radius: 12px; background: linear-gradient(135deg, #0f1a2e, #24364f); color: #dbe6f4; display: grid; place-content: center; text-align: center; gap: 8px; padding: 16px; cursor: pointer; }
.cm-doc .cm-locked { aspect-ratio: auto; min-height: 160px; }
.cm-locked span { font-size: 34px; }
.cm-locked p { font-size: 13.5px; }
.cm-doc-card { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; }
.cm-doc-card .btn { grid-column: span 1; }
.cm-doc-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--bg-soft); display: grid; place-items: center; font-size: 26px; }
.cm-doc-card b { display: block; color: var(--heading); font-size: 14.5px; }
.cm-doc-card small { color: var(--muted); font-size: 12px; }
.doc-box { width: min(1100px, 100%); background: #fff; }
.doc-box .pm-head { color: var(--heading); border-bottom: 1px solid var(--line); }
.doc-box .pm-close { background: var(--bg-soft); color: var(--heading); }
.doc-stage { height: min(80vh, 900px); }
.doc-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) { .course-main { grid-template-columns: 1fr; } .doc-stage { height: 75vh; } }
.cm-doc-card .btn-ghost { justify-self: start; }

/* ---------------------------------------------------------------------
   15. COMPTE À REBOURS J-x · INSCRIPTION EN UN CLIC
   --------------------------------------------------------------------- */
.cd-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 900; letter-spacing: .04em; white-space: nowrap; vertical-align: middle; }
.cd-badge .cd-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.cd-far { background: #eef3fa; color: #3b5b85; }
.cd-far .cd-dot { display: none; }
.cd-soon, .cd-today { background: #e03131; color: #fff; box-shadow: 0 0 0 0 rgba(224,49,49,.55); animation: cdPulse 1.2s ease-in-out infinite; }
.cd-today { background: #b91c1c; }
.cd-soon .cd-dot, .cd-today .cd-dot { animation: cdBlink 1s steps(2, start) infinite; }
.cd-live { background: #0e8a5f; color: #fff; }
@keyframes cdPulse { 0% { box-shadow: 0 0 0 0 rgba(224,49,49,.55); } 70% { box-shadow: 0 0 0 9px rgba(224,49,49,0); } 100% { box-shadow: 0 0 0 0 rgba(224,49,49,0); } }
@keyframes cdBlink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .cd-soon, .cd-today, .cd-soon .cd-dot, .cd-today .cd-dot { animation: none; } }
.card-img .cd-badge.on-img { position: absolute; left: 12px; bottom: 12px; z-index: 3; }
.signup-training { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; }
.signup-training img { width: 110px; height: 76px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.signup-training span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.signup-training b { display: block; color: var(--heading); font-size: 15.5px; line-height: 1.3; margin: 2px 0 6px; }
.signup-training small { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pw-field { position: relative; }
.pw-field input { padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font-size: 18px; cursor: pointer; padding: 6px; }
.announce-box { border: 0; background: linear-gradient(120deg, #0a2f5f, var(--primary) 70%, color-mix(in srgb, var(--primary) 60%, var(--secondary))); color: #fff; }
.announce-box h2 { color: #fff; font-size: 21px; margin-top: 6px; }
.announce-box .help { color: #c9d8ec; }
.ab-tag { display: inline-block; background: var(--accent); color: #2a1d02; font-size: 11.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.ab-list { display: grid; gap: 10px; margin-top: 14px; }
.ab-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 10px; }
.ab-item img { width: 96px; height: 68px; object-fit: cover; border-radius: 12px; }
.ab-item b { display: block; color: #fff; font-size: 15px; line-height: 1.3; margin: 4px 0; }
.ab-item small { color: #c9d8ec; font-size: 12.5px; }
.ab-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ab-top .help { color: #c9d8ec; font-size: 12px; }
.ab-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.ab-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.announce-box .cd-far { background: rgba(255,255,255,.16); color: #fff; }
@media (max-width: 700px) { .ab-item { grid-template-columns: 72px 1fr; } .ab-item img { width: 72px; height: 54px; } .ab-actions { grid-column: 1 / -1; flex-direction: row; } .ab-actions .btn { flex: 1; } }
.profile-box summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; font-weight: 800; color: var(--heading); }
.profile-box summary::-webkit-details-marker { display: none; }
.pb-bar { height: 8px; border-radius: 9px; background: #eaf0f7; overflow: hidden; }
.pb-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--secondary), var(--accent)); }
@media (max-width: 640px) { .profile-box summary { grid-template-columns: 1fr; } }
.enroll-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.enroll-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* Modules de la formation (espace participant) */
.mod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mod-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.mod-card.is-open { border-color: color-mix(in srgb, var(--secondary) 35%, #fff); box-shadow: 0 14px 30px -26px var(--secondary); }
.mod-card.is-locked { background: #fafbfd; }
.mod-head { display: flex; gap: 12px; align-items: center; }
.mod-head > div { flex: 1; display: grid; }
.mod-head b { color: var(--heading); font-size: 16px; }
.mod-head span:not(.mod-num):not(.mod-state) { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.mod-num { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-weight: 900; font-size: 18px; flex-shrink: 0; background: var(--secondary); color: #fff; }
.is-locked .mod-num { background: #e6ebf2; color: #5b6b80; font-size: 17px; }
.mod-state { font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: #e9f7ef; color: #127347; white-space: nowrap; }
.is-locked .mod-state { background: #fdecc0; color: #8a5a00; }
.mod-desc { font-size: 13.5px; color: #44566c; }
.mod-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
.mi-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; font-size: 17px; }
.mi-txt b { display: block; font-size: 13.8px; color: var(--heading); }
.mi-txt small { font-size: 11.8px; color: var(--muted); }
.mi-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.is-locked .mod-item { opacity: .78; }
@media (max-width: 900px) { .mod-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .mod-item { grid-template-columns: 34px 1fr; } .mi-act { grid-column: 1 / -1; justify-content: flex-start; } }

/* ---------------------------------------------------------------------
   16. « MA FORMATION » — présentation professionnelle
   --------------------------------------------------------------------- */
.usd, .usd-pill { font-weight: 700; color: var(--muted); white-space: nowrap; }
.usd { font-size: .78em; }
.usd-pill { display: inline-block; margin-left: 8px; font-size: 12px; background: #eef4ff; color: #3b5b85; padding: 3px 9px; border-radius: 99px; vertical-align: middle; }
.course-hero { position: relative; border-radius: 24px; overflow: hidden; background: #0b2447 var(--hero) center / cover no-repeat; color: #fff; min-height: 300px; display: flex; align-items: flex-end; box-shadow: 0 30px 60px -40px rgba(8,33,63,.9); }
.ch-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,22,46,.95) 0%, rgba(8,33,63,.86) 55%, rgba(8,33,63,.55) 100%); }
.ch-content { position: relative; padding: 28px; width: 100%; display: grid; gap: 12px; }
.ch-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ch-tag { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: 5px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 800; }
.ch-tag-ok { background: #0e8a5f; border-color: #0e8a5f; }
.course-hero h1 { color: #fff; font-size: clamp(21px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.02em; max-width: 820px; }
.ch-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #cbd9ec; }
.ch-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ch-step { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 7px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #d6e2f2; font-size: 13px; font-weight: 700; transition: .2s; }
.ch-step span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 12px; font-weight: 900; }
.ch-step.done { background: rgba(14,138,95,.35); border-color: rgba(52,211,153,.6); color: #fff; }
.ch-step.done span { background: #10b981; color: #fff; }
.ch-step:hover { transform: translateY(-2px); background: rgba(255,255,255,.2); }
.ch-cert.done span { background: var(--accent); }
.ch-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.ch-actions .btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.course-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-bottom: 14px; }
.cs-tile { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; gap: 12px; align-items: flex-start; transition: transform .25s var(--ease), box-shadow .25s; }
.cs-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cs-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: var(--bg-soft); flex-shrink: 0; }
.cs-tile small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.cs-tile b { display: block; font-size: 19px; color: var(--heading); margin-top: 2px; }
.cs-tile em, .cs-tile a { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }
.cs-tile a { color: var(--secondary); font-weight: 800; }
.cs-paid .cs-ico { background: #e3f6ec; } .cs-paid b { color: var(--secondary); }
.cs-rest .cs-ico { background: #fff1e0; } .cs-rest b { color: #c2410c; }
.cs-cert .cs-ico { background: #f1f3f8; }
.cs-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-radius: 9px; background: #e8eef6; overflow: hidden; }
.cs-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--secondary), var(--accent)); transition: width 1s var(--ease); }
.section-title h2 { font-size: 20px; }
.section-title p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
@media (max-width: 1100px) { .course-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .course-stats { grid-template-columns: 1fr; } .ch-content { padding: 20px; } .course-hero { min-height: 0; } }
.cs-tile b { white-space: nowrap; font-size: clamp(15px, 1.5vw, 19px); }

/* ---------------------------------------------------------------------
   17. ÉVALUER MES CONNAISSANCES (QCM)
   --------------------------------------------------------------------- */
.eval-hero { border-radius: 22px; padding: 26px; color: #fff; background: linear-gradient(120deg, #0a2f5f, var(--primary) 60%, color-mix(in srgb, var(--primary) 50%, var(--secondary))); }
.eval-hero h2 { color: #fff; font-size: 23px; margin: 6px 0; }
.eval-hero p { color: #cfdcef; max-width: 760px; font-size: 14px; }
.eval-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.eval-card.is-locked { background: #fafbfd; }
.eval-card h3 { font-size: 17px; margin: 8px 0 4px; color: var(--heading); }
.ec-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ec-tag { font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--bg-soft); color: #3b5b85; }
.ec-best { margin-top: 8px; font-size: 13.5px; }
.ec-actions { display: grid; gap: 8px; }
.ec-days { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 860px) { .eval-card { grid-template-columns: 1fr; } }
.quiz-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.quiz-head h2 { font-size: 21px; margin-top: 4px; }
.quiz-bar { position: sticky; top: 8px; z-index: 50; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.96); border: 1px solid var(--line); box-shadow: 0 16px 34px -26px rgba(8,33,63,.8); backdrop-filter: blur(6px); }
.qb-item small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.qb-item b { font-size: 18px; color: var(--heading); }
.qb-ok b { color: var(--secondary); } .qb-ko b { color: #c81e1e; }
.qb-progress { flex: 1; min-width: 120px; height: 8px; border-radius: 9px; background: #e8eef6; overflow: hidden; }
.qb-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--secondary), var(--accent)); transition: width .3s; }
.quiz-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.quiz-nav a { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; color: var(--heading); }
.quiz-nav a span { font-size: 11px; color: var(--muted); margin-left: 4px; }
.quiz-day { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 26px 0 12px; color: var(--primary); scroll-margin-top: 110px; }
.quiz-day span { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg-soft); padding: 3px 10px; border-radius: 99px; }
.qq { border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 0 0 12px; background: #fff; transition: border-color .2s, box-shadow .2s; scroll-margin-top: 110px; }
.qq legend { display: flex; gap: 8px; align-items: center; padding: 0 6px; }
.qq-num { width: 30px; height: 30px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.qq-sec { font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.qq-text { font-weight: 700; color: var(--heading); font-size: 15px; margin: 4px 0 10px; }
.qq-opts { display: grid; gap: 8px; }
.qq-opt { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: .15s; }
.qq-opt:hover { border-color: color-mix(in srgb, var(--primary) 40%, #fff); background: #f8fbff; }
.qq-opt input { position: absolute; opacity: 0; pointer-events: none; }
.qo-l { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #c7d3e2; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #51627a; }
.qo-t { font-size: 14px; color: #2c3e55; }
.qq-opt:has(input:checked) { border-color: var(--primary); background: #eef4ff; }
.qq-opt:has(input:checked) .qo-l { background: var(--primary); border-color: var(--primary); color: #fff; }
.qq-opt.is-good { border-color: #10b981 !important; background: #e9f9f1 !important; }
.qq-opt.is-good .qo-l { background: #10b981; border-color: #10b981; color: #fff; }
.qq-opt.is-bad { border-color: #ef4444 !important; background: #fdecec !important; }
.qq-opt.is-bad .qo-l { background: #ef4444; border-color: #ef4444; color: #fff; }
.qq.ok { border-color: #a7e3c8; } .qq.ko { border-color: #f5b5b5; }
.qq-opt:has(input:disabled) { cursor: default; }
.qq-fb { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #f6f8fc; font-size: 13.5px; color: #3c4e66; animation: fadeUp .3s both; }
.qq.ok .qq-fb { background: #effaf4; } .qq.ko .qq-fb { background: #fff3f3; }
.quiz-end { text-align: center; padding: 22px; border: 2px dashed var(--line); border-radius: 18px; margin-top: 18px; display: grid; gap: 12px; justify-items: center; }
.mod-quiz { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: linear-gradient(120deg, #fff7e6, #fff); border: 1px solid #f3dfae; color: var(--heading); }
.mod-quiz span { font-size: 20px; text-align: center; }
.mod-quiz b { display: block; font-size: 13.8px; } .mod-quiz small { font-size: 11.8px; color: var(--muted); }
.mod-quiz em { font-style: normal; font-weight: 800; font-size: 12.5px; color: var(--primary); }
.mod-quiz.locked { opacity: .75; }
@media (max-width: 560px) { .quiz-bar { gap: 10px; } .qb-submit { width: 100%; } }
.qq-opt.is-bad .qo-l { background: #ef4444 !important; border-color: #ef4444 !important; color: #fff !important; }
.qq-opt.is-good .qo-l { background: #10b981 !important; border-color: #10b981 !important; color: #fff !important; }

/* ---------------------------------------------------------------------
   18. MOBILE : organigramme et programmes de l'accueil en 2 colonnes
   --------------------------------------------------------------------- */
@media (max-width: 640px) {
  /* Représentants pays */
  .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .country-card { border-radius: 16px; }
  .cc-head { padding: 12px 8px 30px; }
  .cc-flag { font-size: 26px; }
  .cc-country { font-size: 12.5px; margin-top: 4px; }
  .cc-photo { width: 64px !important; height: 64px !important; margin-top: -32px !important; border-width: 3px !important; }
  .cc-body { padding: 8px 8px 12px; }
  .cc-name { font-size: 12.8px; line-height: 1.25; }
  .cc-role { font-size: 9.5px; letter-spacing: .04em; }
  .cc-city { font-size: 11.5px; margin-top: 4px; }
  .cc-actions { margin-top: 8px; gap: 5px; }
  .cc-actions .btn { padding: 6px 9px; font-size: 11px; }

  /* Bureau exécutif */
  .exec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .exec-card { border-radius: 16px; }
  .ec-top { flex-direction: column; text-align: center; gap: 8px; padding: 12px 10px 8px; }
  .ec-photo { width: 64px; height: 64px; border-radius: 14px; }
  .ec-ident b { font-size: 13px; }
  .ec-role { font-size: 9.5px; letter-spacing: .04em; }
  .ec-country { font-size: 11.5px; justify-content: center; }
  .ec-body { padding: 0 10px 12px; }
  .ec-bio { font-size: 11.8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ec-contact { gap: 5px; justify-content: center; }
  .ec-contact a { font-size: 11px; padding: 5px 8px; }
  .ec-social { justify-content: center; }

  /* Programmes (accueil) */
  .programs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .programs-grid .card { border-radius: 16px; }
  .programs-grid .card-img { height: 105px; }
  .programs-grid .card-body { padding: 10px 11px 12px; }
  .programs-grid .card-body > div:first-child { font-size: 19px !important; }
  .programs-grid h3 { font-size: 13.5px; line-height: 1.25; margin-top: 4px; }
  .programs-grid p { font-size: 11.8px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .programs-grid .card-link { font-size: 12px; }
}
@media (max-width: 340px) {
  .country-grid, .exec-grid, .programs-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .ec-contact a { word-break: break-all; text-align: center; max-width: 100%; }
  .ec-country { flex-direction: column; gap: 2px; }
}

/* ---------------------------------------------------------------------
   19. ESPACE PARTICIPANT — téléphone et tablette
   --------------------------------------------------------------------- */
@media (max-width: 900px) {
  /* Texte juste en face de la photo */
  .space-hero { padding: 26px 0 24px; }
  .space-hero .container { display: grid !important; grid-template-columns: 64px 1fr; gap: 10px 14px; align-items: center; }
  .space-hero .sh-avatar { width: 64px; height: 64px; grid-column: 1; grid-row: 1; align-self: start; margin-top: 4px; }
  .space-hero .container > div:not(.sh-actions) { grid-column: 2; grid-row: 1; min-width: 0; }
  .space-hero .space-badge { font-size: 10.5px; padding: 5px 10px; }
  .space-hero h1 { font-size: 21px; margin-top: 6px; line-height: 1.2; }
  .space-hero p { font-size: 13px; line-height: 1.45; }
  .space-hero .sh-actions { grid-column: 1 / -1; margin: 6px 0 0 !important; width: 100%; justify-content: flex-start; }

  /* Menu de l'espace : tous les liens visibles, sans défilement caché */
  .space .dash-side > nav { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; overflow: visible !important; padding-bottom: 0 !important; }
  .space .dash-side > nav a { white-space: normal !important; flex-shrink: 1 !important; display: flex; align-items: center; gap: 8px; min-height: 46px;
    padding: 9px 12px !important; border: 1px solid var(--line) !important; border-radius: 14px !important; font-size: 13.5px !important; line-height: 1.25; background: #fff; }
  .space .dash-side > nav a.active { background: color-mix(in srgb, var(--primary) 9%, #fff); border-color: color-mix(in srgb, var(--primary) 35%, #fff) !important; }
  .space .dash-side > nav .nav-sep { display: none !important; }

  /* Tuiles chiffrées : 2 par ligne ; la dernière, si elle est seule, prend toute la largeur */
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
  .kpi-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kpi b { font-size: clamp(20px, 6vw, 28px); }
}
@media (min-width: 601px) and (max-width: 900px) {
  .space .dash-side > nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .space .dash-side > nav { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .space-hero .sh-actions { flex-wrap: nowrap; gap: 8px; align-items: center; }
  .space-hero .sh-actions .btn { padding: 9px 12px; font-size: 12.5px; white-space: nowrap; }
}
@media (max-width: 340px) { .space-hero .sh-actions { flex-wrap: wrap; } }
@media (max-width: 900px) { .kpi b { white-space: nowrap; font-size: clamp(18px, 5.4vw, 26px) !important; } }
