*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
html { scroll-padding-top: calc(var(--header-h, 0px) + 16px); }
body{
      margin:0;
      font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, 'Helvetica Neue', Arial;
      color:var(--text);
      background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 55%, var(--bg-3) 100%);
      display:flex; flex-direction:column; min-height:100vh;
      padding-top: var(--header-h, 0px);
      overflow-x: hidden;
    }
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.bg-orb.o1 { width: 520px; height: 520px; top: -120px; left: -120px;
      background: radial-gradient(circle, rgba(108,92,231,.55), transparent 70%);
      animation: orbDrift1 26s ease-in-out infinite alternate; }
.bg-orb.o2 { width: 460px; height: 460px; top: 30%; right: -180px;
      background: radial-gradient(circle, rgba(142,68,173,.55), transparent 70%);
      animation: orbDrift2 32s ease-in-out infinite alternate; }
.bg-orb.o3 { width: 380px; height: 380px; bottom: -100px; left: 35%;
      background: radial-gradient(circle, rgba(167,139,250,.42), transparent 70%);
      animation: orbDrift3 38s ease-in-out infinite alternate; }
@keyframes orbDrift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(80px, 60px) scale(1.1); } }
@keyframes orbDrift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-60px, 40px) scale(1.08); } }
@keyframes orbDrift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(40px, -50px) scale(1.05); } }
.home-page { position: relative; z-index: 1; padding: calc(var(--bp-header-offset) + 8px) 0 4.5rem; flex: 1 0 auto; }
.home-shell { width: min(calc(100% - 2rem), 1080px); margin: 0 auto; }
.home-section { position: relative; margin-bottom: 2.5rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } *{ animation: none !important; } }
.hero-section { padding-top: 0; margin-bottom: 3rem; }
.hero-panel {
      position: relative;
      display: grid;
      grid-template-columns: 1.25fr 0.95fr;
      gap: 2rem;
      align-items: stretch;
      padding: clamp(1.6rem, 2.4vw, 2.4rem);
      border: 1px solid var(--bp-border);
      border-radius: var(--bp-radius-xl);
      background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
      box-shadow: var(--bp-shadow), inset 0 1px 0 rgba(255,255,255,.05);
      overflow: hidden; isolation: isolate;
    }
.hero-panel::before {
      content: ""; position: absolute; inset: 0; z-index: -1;
      background:
        radial-gradient(720px 420px at 8% -10%, rgba(108,92,231,.22), transparent 60%),
        radial-gradient(540px 320px at 110% 120%, rgba(142,68,173,.22), transparent 60%);
    }
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero-badge {
      display: inline-flex; align-items: center; gap: .5rem; width: fit-content;
      padding: .45rem .85rem;
      border: 1px solid rgba(142,68,173,.35);
      border-radius: 999px;
      background: rgba(255,255,255,.06);
      color: var(--muted);
      font-size: .76rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
    }
.hero-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
      background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.hero-title .grad {
      background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
      -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    }
.hero-text {
      max-width: 60ch;
      margin: 0 0 1.4rem;
      color: var(--muted);
      font-size: 1.04rem;
      line-height: 1.65;
    }
.hero-meta {
      display: flex; flex-wrap: wrap; gap: .5rem 1.2rem;
      color: var(--muted); font-size: .85rem;
      margin-bottom: 1.4rem;
    }
.hero-meta strong { color: var(--text); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.8rem; }
.bp-btn, .bp-btn-secondary {
      display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
      min-height: 50px; padding: .9rem 1.3rem;
      border-radius: 14px;
      border: 1px solid rgba(142,68,173,.35);
      font-weight: 700; text-decoration: none; cursor: pointer;
      background: rgba(255,255,255,.06); color: inherit;
      transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
    }
.bp-btn {
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      color: #fff; border: none;
      box-shadow: 0 10px 30px rgba(108,92,231,.35);
    }
.bp-btn-secondary { background: rgba(255,255,255,.06); color: var(--text); }
.bp-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(108,92,231,.45); }
.bp-btn-secondary:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); border-color: var(--bp-border-strong); }
.bp-btn svg, .bp-btn-secondary svg { width: 18px; height: 18px; }
.hero-trust {
      display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; align-items: center;
      padding-top: 1.2rem;
      border-top: 1px dashed rgba(142,68,173,.22);
    }
.hero-trust__item { display: flex; flex-direction: column; gap: .15rem; }
.hero-trust__num {
      font-size: 1.4rem; font-weight: 900;
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
      line-height: 1;
    }
.hero-trust__lbl { color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.hero-visual {
      position: relative; min-height: 100%;
      display: flex; flex-direction: column; gap: 1rem;
    }
.visual-main-card {
      position: relative; flex: 1 1 auto;
      padding: 1.4rem;
      border: 1px solid rgba(142,68,173,.32);
      border-radius: var(--bp-radius-lg);
      background:
        radial-gradient(700px 400px at 10% -10%, rgba(108,92,231,.18), transparent 60%),
        radial-gradient(500px 300px at 110% 120%, rgba(142,68,173,.18), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
      box-shadow: 0 10px 28px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
      overflow: hidden;
      display: flex; flex-direction: column;
    }
.visual-kicker {
      color: var(--muted);
      font-size: .72rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
    }
.visual-title {
      margin: .85rem 0 .55rem;
      font-size: 1.15rem; line-height: 1.3; font-weight: 800;
      color: #fff;
    }
.visual-text { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.section-card {
      padding: clamp(1.6rem, 3vw, 2.2rem);
      border: 1px solid var(--bp-border);
      border-radius: var(--bp-radius-xl);
      background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.012));
      box-shadow: var(--bp-shadow), inset 0 1px 0 rgba(255,255,255,.05);
    }
.section-head {
      display: flex; justify-content: space-between; align-items: end; gap: 1rem;
      margin-bottom: 1.6rem; flex-wrap: wrap;
    }
.section-badge {
      display: inline-flex; align-items: center; gap: .5rem; width: fit-content;
      padding: .45rem .85rem;
      border: 1px solid rgba(142,68,173,.35);
      border-radius: 999px;
      background: rgba(255,255,255,.06);
      color: var(--muted);
      font-size: .72rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
    }
.section-title {
      margin: .8rem 0 .45rem;
      font-size: clamp(1.5rem, 2.6vw, 2rem);
      line-height: 1.18;
      font-weight: 900;
      letter-spacing: -0.022em;
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    }
.section-text { max-width: 68ch; margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.65; }
.toc-link::before {
      content: ""; position: absolute; inset: 0;
      background: radial-gradient(320px 180px at 100% 0%, rgba(108,92,231,.22), transparent 60%);
      opacity: 0; transition: opacity .25s ease; pointer-events: none;
    }
.toc-link:hover { transform: translateY(-3px); border-color: rgba(142,68,173,.55); background: rgba(255,255,255,.05); box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.toc-link:hover::before { opacity: 1; }
.toc-link__head { display: flex; align-items: center; justify-content: space-between; }
.chapter { scroll-margin-top: calc(var(--header-h, 100px) + 16px); }
.chapter__head {
      display: flex; gap: 1rem; align-items: center;
      margin-bottom: .9rem;
    }
.chapter__num {
      flex: 0 0 auto;
      width: 44px; height: 44px;
      display: inline-flex; align-items: center; justify-content: center;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      color: #fff; font-weight: 900; font-size: 1rem; letter-spacing: -.02em;
      box-shadow: 0 8px 22px rgba(108,92,231,.35);
    }
.chapter__title {
      margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 800;
      color: #fff; letter-spacing: -.015em;
    }
.chapter__body { color: var(--text); line-height: 1.72; font-size: 1rem; }
.chapter__body p { margin: 0 0 .9rem; color: #d6dae6; }
.chapter__body strong { color: #fff; font-weight: 700; }
.callout {
      display: flex; gap: .9rem; align-items: flex-start;
      margin: 1rem 0;
      padding: .95rem 1.1rem;
      border: 1px dashed rgba(142,68,173,.5);
      border-radius: 14px;
      background: rgba(142,68,173,.07);
      color: #dcdff1;
      font-size: .94rem; line-height: 1.6;
    }
.callout__icon {
      flex: 0 0 auto;
      width: 30px; height: 30px;
      display: inline-flex; align-items: center; justify-content: center;
      border-radius: 8px;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      color: #fff;
    }
.callout__icon svg { width: 16px; height: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mini-card:hover { transform: translateY(-3px); border-color: rgba(142,68,173,.5); background: rgba(255,255,255,.05); }
.mini-card__tag {
      display: inline-block; width: fit-content;
      padding: .2rem .65rem;
      border: 1px solid rgba(142,68,173,.35);
      border-radius: 999px;
      background: rgba(255,255,255,.05);
      color: var(--muted);
      font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
    }
.tags-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.tag-pill {
      padding: .35rem .8rem;
      border-radius: 999px;
      border: 1px solid rgba(142,68,173,.35);
      background: rgba(255,255,255,.04);
      color: var(--muted); font-size: .78rem; font-weight: 600;
    }
.author-card {
      display: flex; gap: .9rem; align-items: center;
      margin-top: 1.6rem;
      padding: 1rem 1.2rem;
      border: 1px solid rgba(142,68,173,.3);
      border-radius: var(--bp-radius-md);
      background: rgba(255,255,255,.03);
    }
.author-card img { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(142,68,173,.4); }
.author-card strong { display: block; color: #fff; font-size: .98rem; }
.author-card span { color: var(--muted); font-size: .85rem; }
.final-cta {
      text-align: center;
      padding: clamp(2rem, 4vw, 3rem);
      position: relative; overflow: hidden;
    }
.final-cta::before {
      content: ""; position: absolute; inset: 0; pointer-events: none;
      background:
        radial-gradient(600px 300px at 20% 0%, rgba(108,92,231,.22), transparent 60%),
        radial-gradient(500px 250px at 90% 100%, rgba(142,68,173,.22), transparent 60%);
    }
.final-cta__text {
      max-width: 60ch; margin: 0 auto 1.4rem;
      color: var(--muted); font-size: 1rem; line-height: 1.6;
      position: relative;
    }
.final-cta__actions {
      display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center;
      position: relative;
    }
/* ============================================================
   MOBILE APP-STYLE — version téléphone (≤ 768px)
   ============================================================
   Le desktop n'est JAMAIS modifié.
   Architecture mobile pour les 12 cours flash :
     1. Hero compact (sans visuel droit, stats inline)
     2. Sections épurées (transparentes, sans bordure parente)
     3. Toutes les grilles passent en 1 colonne (sélecteur générique)
     4. Cards compactes (toutes les *-card)
     5. Sommaire (toc) en cards tactiles
     6. Chapitres avec padding réduit
     7. CTA pleine largeur 48px
   ============================================================ */
@media (max-width: 768px) {

  /* Surcharge du partial header.php */
  body {
    padding-top: calc(60px + env(safe-area-inset-top)) !important;
    padding-bottom: 0 !important;
  }

  /* Orbes très discrets */
  .bg-orb { opacity: .25 !important; filter: blur(70px) !important; }

  /* Wrapper de page compact */
  .home-page {
    padding: 14px 0 28px !important;
  }
  .home-shell {
    width: calc(100% - 32px) !important;
    margin: 0 auto !important;
  }
  .home-section {
    margin-bottom: 22px !important;
  }

  /* ============================================================
     1. HERO COMPACT
     ============================================================ */
  .hero-section {
    padding: 0 !important;
    margin-bottom: 20px !important;
  }
  .hero-panel {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .hero-panel::before { display: none !important; }
  .hero-copy { gap: 8px !important; }
  .hero-badge {
    font-size: 10px !important;
    padding: 4px 9px !important;
    letter-spacing: .12em !important;
  }
  .hero-title {
    font-size: 24px !important;
    line-height: 1.18 !important;
    margin: 8px 0 !important;
  }
  .hero-title br { display: none !important; }
  .hero-text {
    font-size: 13px !important;
    line-height: 1.55 !important;
    margin: 0 0 14px !important;
  }
  .hero-meta {
    font-size: 11.5px !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-bottom: 12px !important;
  }
  /* Boutons hero pleine largeur empilés */
  .hero-actions {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    margin-bottom: 14px !important;
  }
  .hero-actions .bp-btn,
  .hero-actions .bp-btn-secondary {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 13.5px !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    justify-content: center !important;
  }
  .hero-actions .bp-btn:hover,
  .hero-actions .bp-btn-secondary:hover {
    transform: none !important;
  }
  .hero-actions .bp-btn:active,
  .hero-actions .bp-btn-secondary:active {
    transform: scale(0.98) !important;
  }
  .hero-actions svg { width: 14px !important; height: 14px !important; }

  /* Hero-trust : 4 stats en grille 2x2 */
  .hero-trust {
    gap: 8px !important;
    padding: 14px 12px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(142, 68, 173, 0.15) !important;
    grid-template-columns: 1fr 1fr !important;
    margin-bottom: 0 !important;
  }
  .hero-trust > * {
    align-items: center !important;
    text-align: center !important;
  }
  .hero-trust__num {
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
  }

  /* Hero-visual (carte d'identité droite desktop) : masqué mobile */
  .hero-visual { display: none !important; }
  .visual-main-card { display: none !important; }

  /* ============================================================
     2. SECTION-CARD neutralisées
     ============================================================ */
  .section-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 22px !important;
  }
  .section-head {
    margin-bottom: 14px !important;
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 6px !important;
  }
  .section-badge {
    font-size: 10px !important;
    padding: 4px 9px !important;
    letter-spacing: .12em !important;
  }
  .section-title {
    font-size: 19px !important;
    line-height: 1.25 !important;
    margin: 6px 0 6px !important;
  }
  .section-text {
    font-size: 12.5px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
  }

  /* ============================================================
     3. TOUTES LES GRILLES EN 1 COLONNE (sélecteur générique)
     ============================================================
     Cible toutes les classes contenant "grid" : grid-2, grid-3,
     grid-4, toc-grid, gov-grid, lending-grid, etc. */
  [class*="grid-"],
  [class$="-grid"],
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* ============================================================
     4. SOMMAIRE (toc-link) en cards tactiles
     ============================================================ */
  .toc-link {
    padding: 12px 14px !important;
    border-radius: 12px !important;
    gap: 10px !important;
    min-height: 56px !important;
  }
  .toc-link:hover { transform: none !important; }
  .toc-link:active { transform: scale(0.99) !important; }
  .toc-link__num {
    font-size: 13px !important;
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0;
  }
  .toc-link__icon {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0;
  }
  .toc-link__icon svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* ============================================================
     5. CHAPITRES compacts
     ============================================================ */
  .chapter {
    padding: 18px 16px !important;
    border-radius: 16px !important;
    margin-bottom: 14px !important;
  }
  .chapter__head {
    gap: 12px !important;
    margin-bottom: 14px !important;
    align-items: flex-start !important;
  }
  .chapter__num {
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
  }
  .chapter h2,
  .chapter h3 {
    font-size: 16.5px !important;
    line-height: 1.3 !important;
    margin: 0 0 4px !important;
  }
  .chapter p,
  .chapter ul li,
  .chapter ol li {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }
  .chapter ul,
  .chapter ol {
    padding-left: 18px !important;
  }

  /* ============================================================
     6. CARDS COMPACTES (sélecteur générique pour toutes les cards)
     ============================================================
     Cible toutes les classes finissant par "-card" : mini-card,
     layer-card, lending-card, method-card, pillar-card, etc. */
  [class*="-card"]:not(.section-card):not(.final-cta):not(.author-card) {
    padding: 14px !important;
    border-radius: 14px !important;
  }
  [class*="-card"]:hover {
    transform: none !important;
  }
  .mini-card {
    padding: 12px 14px !important;
    border-radius: 12px !important;
    gap: 10px !important;
  }
  .mini-card__icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
  }
  .mini-card__icon svg {
    width: 18px !important;
    height: 18px !important;
  }
  .mini-card__title {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin: 0 0 4px !important;
  }
  .mini-card__text {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
  }

  /* ============================================================
     7. CALLOUT, PILLS, CHIPS, TAGS
     ============================================================ */
  .callout {
    padding: 12px 14px !important;
    border-radius: 12px !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    gap: 10px !important;
  }
  .pill,
  .chip,
  .tag-pill {
    font-size: 10.5px !important;
    padding: 3px 9px !important;
    letter-spacing: .04em !important;
  }
  .tags-row {
    gap: 6px !important;
    flex-wrap: wrap !important;
  }

  /* ============================================================
     8. AUTHOR CARD compact
     ============================================================ */
  .author-card {
    padding: 16px !important;
    border-radius: 16px !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
  }
  .author-card img,
  .author-card__avatar {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto !important;
  }

  /* ============================================================
     9. CTA FINAL pleine largeur
     ============================================================ */
  .final-cta {
    padding: 22px 18px !important;
    border-radius: 22px !important;
    text-align: center !important;
    margin-top: 24px !important;
  }
  .final-cta__title {
    font-size: 18px !important;
    line-height: 1.25 !important;
    margin: 0 0 8px !important;
  }
  .final-cta__text {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    margin: 0 0 16px !important;
  }
  .final-cta__actions,
  .final-cta .hero-actions {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    display: flex !important;
  }
  .final-cta .bp-btn,
  .final-cta .bp-btn-secondary {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 13.5px !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    justify-content: center !important;
  }
  .final-cta .bp-btn:hover,
  .final-cta .bp-btn-secondary:hover {
    transform: none !important;
  }
  .final-cta .bp-btn:active,
  .final-cta .bp-btn-secondary:active {
    transform: scale(0.98) !important;
  }

  /* ============================================================
     10. SVG illustrations responsive (chain-svg, amm-svg, etc.)
     ============================================================ */
  [class*="-svg"] {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
}
