/* ═══════════════════════════════════════════════════════════════════════════
   Simulation immersive du module Formations (LMS) (2026-11-11)
   Partiel : app/Views/public/demos/formations.php · script : formations.js
   Préfixe unique : dm-fo-. Aucun sélecteur d’élément nu hors de .dm-fo.
   - habillage : jetons de la home v2 (nuit, aurore, Newsreader en italique) ;
   - face apprenant : recopie du LOOK du lecteur public (apprendre.css,
     public/lms/formation.php, paiement.php, cours.php, quiz*.php), non chargé ;
   - face formateur : recopie du LOOK de bo.css (Formations, 2026-11-06 :
     v2/lms/apprenants.php, index.php, certificats.php), non chargé.
   Desktop : deux faces côte à côte ; sous 960 px : onglets.
   ═══════════════════════════════════════════════════════════════════════════ */

.dm-fo{
    /* Maison (home v2) */
    --dmfo-nuit: oklch(0.16 0.02 280);
    --dmfo-violet: oklch(0.58 0.21 288);
    --dmfo-bleu: oklch(0.62 0.17 250);
    --dmfo-aurore: linear-gradient(118deg, var(--dmfo-bleu) 0%, var(--dmfo-violet) 55%, oklch(0.52 0.22 315) 100%);
    --dmfo-encre: oklch(0.20 0.02 282);
    --dmfo-gris: oklch(0.48 0.02 282);
    --dmfo-pale: oklch(0.68 0.015 282);
    --dmfo-trait: oklch(0.90 0.01 285);
    --dmfo-voile: oklch(0.975 0.006 288);
    /* Back-office (bo.css) */
    --fo-violet: oklch(0.52 0.20 285);
    --fo-violet-fonce: oklch(0.42 0.18 285);
    --fo-bleu: oklch(0.56 0.16 252);
    --fo-encre: oklch(0.24 0.03 282);
    --fo-gris: oklch(0.52 0.025 282);
    --fo-pale: oklch(0.66 0.02 282);
    --fo-trait: oklch(0.91 0.012 285);
    --fo-trait-doux: oklch(0.95 0.008 285);
    --fo-teinte: oklch(0.985 0.005 285);
    --fo-vert: oklch(0.55 0.14 155);
    --fo-rouge: oklch(0.55 0.19 25);
    --fo-degrade: linear-gradient(118deg, var(--fo-bleu) 0%, var(--fo-violet) 62%, var(--fo-violet-fonce) 100%);
    --fo-ombre: 0 1px 2px rgba(40,30,80,.04), 0 6px 20px rgba(40,30,80,.06);
    /* Lecteur apprenant (apprendre.css), couleur de la formatrice */
    --a-accent: #2f6f7e;
    --a-accent-deep: #1f4f5a;
    --a-tint: #eef5f6;
    --a-tint-2: #dcebee;
    --a-ink: #1d1c2b;
    --a-text: #33323f;
    --a-muted: #696878;
    --a-faint: #9a99a6;
    --a-line: #e6e5ea;
    --a-line-soft: #efeef2;
    --a-bg: #f6f6f3;
    --a-ok: #0f8a5f;
    --a-ok-bg: #e8f6ef;
    --a-ok-line: #bfe6d2;
    --a-warn: #a85d06;
    --a-warn-bg: #fdf4e3;
    --a-warn-line: #f3d9a4;
    --a-ko: #b42318;
    --a-ko-bg: #fdecea;
    --a-ombre: 0 1px 2px rgba(25,20,50,.04), 0 6px 20px rgba(25,20,50,.05);

    position: relative; overflow: hidden; isolation: isolate;
    padding: 76px 24px 84px;
    background: var(--dmfo-voile);
    border-bottom: 1px solid var(--dmfo-trait);
    color: var(--dmfo-encre);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    scroll-margin-top: 80px;
}
.dm-fo *, .dm-fo *::before, .dm-fo *::after{ box-sizing: border-box; }
.dm-fo .dm-fo-halo{ position:absolute; inset:-10% -10% auto; height:560px; z-index:-1; pointer-events:none; filter: blur(60px); opacity:.55;
    background: radial-gradient(30% 50% at 22% 30%, oklch(0.80 0.10 288 / .55), transparent 70%),
                radial-gradient(30% 50% at 80% 20%, oklch(0.82 0.09 200 / .5), transparent 70%); }
.dm-fo .dm-fo-dedans{ max-width: 1360px; margin: 0 auto; }
.dm-fo .dm-fo-serif{ font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.dm-fo .dm-fo-ico{ width: 18px; height: 18px; flex: 0 0 auto; display: inline-block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dm-fo button{ font: inherit; color: inherit; }
.dm-fo :focus-visible{ outline: 2px solid var(--dmfo-violet); outline-offset: 2px; }

/* ── En-tête de section ─────────────────────────────────────────────────── */
.dm-fo .dm-fo-entete{ max-width: 860px; margin: 0 auto 30px; text-align: center; }
.dm-fo .dm-fo-murmure{ display:inline-block; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
    background: var(--dmfo-aurore); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dm-fo .dm-fo-titre{ margin: 12px 0 14px; font-family: 'Schibsted Grotesk', 'Inter', sans-serif; font-size: clamp(1.8rem, 3.8vw, 2.9rem);
    line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; color: var(--dmfo-encre); }
.dm-fo .dm-fo-titre .dm-fo-serif{ font-weight: 400; background: var(--dmfo-aurore); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.dm-fo .dm-fo-chapo{ margin: 0 auto; max-width: 680px; font-size: 17px; line-height: 1.6; color: var(--dmfo-gris); }
.dm-fo .dm-fo-bandeau{ display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 7px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 600; color: oklch(0.45 0.12 60); background: oklch(0.96 0.05 80); border: 1px solid oklch(0.87 0.08 75); }
.dm-fo .dm-fo-bandeau span{ font-size: 9px; color: oklch(0.70 0.15 70); }

/* ── Fil conducteur ─────────────────────────────────────────────────────── */
.dm-fo .dm-fo-pilote{ display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.dm-fo .dm-fo-fil{ list-style: none; margin: 0; padding: 6px; display: flex; gap: 6px; border-radius: 18px; background: #fff;
    border: 1px solid var(--dmfo-trait); box-shadow: 0 1px 2px rgba(40,30,80,.04), 0 10px 30px -12px rgba(40,30,80,.16); }
.dm-fo .dm-fo-fil li{ display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 13px; min-width: 0; transition: background .3s, opacity .3s; }
.dm-fo .dm-fo-fil li b{ display: block; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.dm-fo .dm-fo-fil li small{ display: block; font-size: 12px; color: var(--dmfo-gris); line-height: 1.3; margin-top: 1px; }
.dm-fo .dm-fo-fil-rond{ width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13.5px;
    background: var(--dmfo-voile); color: var(--dmfo-pale); border: 1.5px solid var(--dmfo-trait); transition: background .3s, color .3s; }
.dm-fo .dm-fo-fil-rond .dm-fo-ico{ width: 15px; height: 15px; stroke-width: 3; }
.dm-fo .dm-fo-fil li[data-etat="afaire"]{ opacity: .6; }
.dm-fo .dm-fo-fil li[data-etat="courant"]{ background: oklch(0.58 0.21 288 / .07); }
.dm-fo .dm-fo-fil li[data-etat="courant"] .dm-fo-fil-rond{ background: var(--dmfo-aurore); color: #fff; border-color: transparent; box-shadow: 0 0 0 5px oklch(0.58 0.21 288 / .15); }
.dm-fo .dm-fo-fil li[data-etat="fait"] .dm-fo-fil-rond{ background: oklch(0.62 0.15 155); color: #fff; border-color: transparent; }
.dm-fo .dm-fo-recommencer{ display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
    background: #fff; border: 1px solid var(--dmfo-trait); font-size: 14px; font-weight: 600; color: var(--dmfo-encre); transition: border-color .2s; }
.dm-fo .dm-fo-recommencer:hover{ border-color: var(--dmfo-violet); }
.dm-fo .dm-fo-recommencer svg{ width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dm-fo .dm-fo-consigne{ margin: 16px auto 22px; max-width: 760px; text-align: center; font-size: 15px; font-weight: 600; color: var(--fo-violet-fonce); min-height: 1.5em; }
.dm-fo.dm-fo-termine .dm-fo-consigne{ color: oklch(0.45 0.13 155); }

.dm-fo .dm-fo-onglets{ display: none; }

/* ── Scène : deux fenêtres ──────────────────────────────────────────────── */
.dm-fo .dm-fo-scene{ display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.dm-fo .dm-fo-face{ min-width: 0; }
.dm-fo .dm-fo-legende{ display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px 6px; font-size: 13px; color: var(--dmfo-gris); }
.dm-fo .dm-fo-legende span{ font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--dmfo-encre); }
.dm-fo .dm-fo-fenetre{ position: relative; display: flex; flex-direction: column; height: 800px; border-radius: 20px; overflow: hidden; background: #fff;
    border: 1px solid oklch(0.88 0.012 285); box-shadow: 0 2px 4px rgba(40,30,80,.04), 0 30px 60px -28px rgba(40,30,80,.35); }
.dm-fo .dm-fo-chrome{ flex: 0 0 auto; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: oklch(0.965 0.006 285); border-bottom: 1px solid var(--dmfo-trait); }
.dm-fo .dm-fo-chrome i{ width: 10px; height: 10px; border-radius: 50%; background: oklch(0.86 0.01 285); }
.dm-fo .dm-fo-chrome span{ flex: 1; margin-left: 10px; max-width: 420px; padding: 4px 12px; border-radius: 8px; background: #fff; font-size: 11.5px; color: var(--dmfo-gris);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--dmfo-trait); }
.dm-fo .dm-fo-ap, .dm-fo .dm-fo-bo{ flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; container-type: inline-size; scrollbar-width: thin; }
.dm-fo .dm-fo-noscript{ padding: 30px; text-align: center; color: var(--dmfo-gris); }

/* ═══ Face apprenant (look apprendre.css) ═══════════════════════════════ */
.dm-fo .dm-fo-ap{ position: relative; background: var(--a-bg); color: var(--a-text); font-size: 14.5px; line-height: 1.5; }
.dm-fo .dm-fo-a-nav{ position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--a-line); }
.dm-fo .dm-fo-a-logo{ width: 36px; height: 36px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; font-family: 'Schibsted Grotesk', Inter, sans-serif;
    font-weight: 800; font-size: 13px; color: #fff; background: var(--a-accent); }
.dm-fo .dm-fo-a-nom{ flex: 1; min-width: 0; }
.dm-fo .dm-fo-a-nom b{ display: block; font-size: 14.5px; font-weight: 700; color: var(--a-ink); line-height: 1.2; }
.dm-fo .dm-fo-a-nom small{ display: block; font-size: 12px; color: var(--a-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-fo .dm-fo-a-compte{ font-size: 12px; color: var(--a-muted); white-space: nowrap; }
.dm-fo .dm-fo-a-compte b{ color: var(--a-ink); font-weight: 600; }
.dm-fo .dm-fo-a-page{ padding: 18px 18px 26px; display: flex; flex-direction: column; gap: 16px; }
.dm-fo .dm-fo-a-kicker{ font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--a-accent-deep); }
.dm-fo .dm-fo-a-h1{ margin: 4px 0 0; font-family: 'Schibsted Grotesk', 'Inter', sans-serif; font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; color: var(--a-ink); }
.dm-fo .dm-fo-a-h1:focus{ outline: none; }
.dm-fo .dm-fo-a-lead{ margin: 8px 0 0; font-size: 14.5px; color: var(--a-muted); }
.dm-fo .dm-fo-a-faits{ list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dm-fo .dm-fo-a-pill{ display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600;
    background: #fff; border: 1px solid var(--a-line); color: var(--a-muted); }
.dm-fo .dm-fo-a-pill .dm-fo-ico{ width: 13px; height: 13px; }
.dm-fo .dm-fo-a-pill.dm-fo-ok{ background: var(--a-ok-bg); border-color: var(--a-ok-line); color: var(--a-ok); }
.dm-fo .dm-fo-a-pill.dm-fo-vif{ animation: dm-fo-pop .4s cubic-bezier(.2,.9,.3,1.4); }
.dm-fo .dm-fo-a-couv{ position: relative; aspect-ratio: 16 / 8; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #e6f0ee, #f7efe3); }
.dm-fo .dm-fo-a-couv svg{ position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dm-fo .dm-fo-a-carte{ padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--a-line); box-shadow: var(--a-ombre); }
.dm-fo .dm-fo-a-h2{ margin: 0 0 10px; font-family: 'Schibsted Grotesk', 'Inter', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: var(--a-ink); }
.dm-fo .dm-fo-a-h2 .dm-fo-serif{ font-weight: 500; }
.dm-fo .dm-fo-a-obtenez{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dm-fo .dm-fo-a-obtenez li{ display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--a-muted); }
.dm-fo .dm-fo-a-obtenez b{ display: block; font-size: 13.5px; color: var(--a-ink); }
.dm-fo .dm-fo-a-obtenez .dm-fo-ico{ width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--a-tint); color: var(--a-accent-deep); }
.dm-fo .dm-fo-a-prog{ list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dm-fo .dm-fo-a-prog > li{ border: 1px solid var(--a-line-soft); border-radius: 12px; padding: 10px 12px; }
.dm-fo .dm-fo-a-prog-tete{ display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--a-ink); }
.dm-fo .dm-fo-a-prog-tete small{ margin-left: auto; font-weight: 500; font-size: 12px; color: var(--a-faint); }
.dm-fo .dm-fo-a-prog ul{ list-style: none; margin: 6px 0 0; padding: 0 0 0 40px; display: grid; gap: 4px; font-size: 13px; color: var(--a-muted); }
.dm-fo .dm-fo-a-prog ul li{ display: flex; gap: 8px; align-items: center; }
.dm-fo .dm-fo-a-prog ul li .dm-fo-ico{ width: 14px; height: 14px; color: var(--a-faint); }
.dm-fo .dm-fo-a-prog ul li span{ flex: 1; min-width: 0; }
.dm-fo .dm-fo-a-num{ width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 700;
    background: var(--a-line-soft); color: var(--a-muted); }
.dm-fo .dm-fo-a-num.dm-fo-ok{ background: var(--a-ok-bg); color: var(--a-ok); }
.dm-fo .dm-fo-a-num.dm-fo-cur{ background: var(--a-tint-2); color: var(--a-accent-deep); }
.dm-fo .dm-fo-a-prix{ position: sticky; bottom: 0; z-index: 2; margin: 0 -18px -26px; padding: 14px 18px 16px; background: rgba(255,255,255,.97); border-top: 1px solid var(--a-line);
    box-shadow: 0 -10px 30px -18px rgba(25,20,50,.35); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dm-fo .dm-fo-a-prix-txt{ flex: 1 1 160px; min-width: 0; }
.dm-fo .dm-fo-a-prix-txt b{ display: block; font-family: 'Schibsted Grotesk', 'Inter', sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: var(--a-ink); line-height: 1.1; }
.dm-fo .dm-fo-a-prix-txt small{ display: block; font-size: 12px; color: var(--a-muted); }

/* Boutons du lecteur */
.dm-fo .dm-fo-a-btn{ display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 12px; cursor: pointer;
    font-size: 14px; font-weight: 650; border: 1px solid var(--a-line); background: #fff; color: var(--a-ink); white-space: nowrap; transition: background .2s, border-color .2s, transform .15s; }
.dm-fo .dm-fo-a-btn:hover{ border-color: var(--a-accent); }
.dm-fo .dm-fo-a-btn:active{ transform: scale(.98); }
.dm-fo .dm-fo-a-btn .dm-fo-ico{ width: 17px; height: 17px; }
.dm-fo .dm-fo-a-btn-plein{ background: var(--a-accent); border-color: var(--a-accent); color: #fff; box-shadow: 0 8px 18px -10px rgba(31,79,90,.8); }
.dm-fo .dm-fo-a-btn-plein:hover{ background: var(--a-accent-deep); border-color: var(--a-accent-deep); }
.dm-fo .dm-fo-a-btn-ok{ background: var(--a-ok); border-color: var(--a-ok); color: #fff; }
.dm-fo .dm-fo-a-btn-ok:hover{ background: #0b6e4b; border-color: #0b6e4b; }
.dm-fo .dm-fo-a-btn:disabled{ cursor: not-allowed; opacity: .5; box-shadow: none; transform: none; }
.dm-fo .dm-fo-a-btn[aria-busy="true"]{ cursor: wait; opacity: .85; }
.dm-fo .dm-fo-a-btn-large{ width: 100%; min-height: 52px; font-size: 15px; }
.dm-fo .dm-fo-a-lien{ display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 6px 10px 6px 6px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
    font-size: 13px; font-weight: 600; color: var(--a-muted); align-self: flex-start; }
.dm-fo .dm-fo-a-lien:hover{ color: var(--a-ink); background: var(--a-line-soft); }
.dm-fo .dm-fo-a-lien .dm-fo-ico{ width: 15px; height: 15px; stroke-width: 2.4; }
.dm-fo .dm-fo-roue{ width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: dm-fo-tourne .7s linear infinite; }

/* Paiement */
.dm-fo .dm-fo-a-etapes{ list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.dm-fo .dm-fo-a-etapes li{ flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 6px; border-radius: 10px; font-size: 12.5px; font-weight: 650;
    background: var(--a-line-soft); color: var(--a-faint); }
.dm-fo .dm-fo-a-etapes li .dm-fo-ico{ width: 14px; height: 14px; stroke-width: 2.6; }
.dm-fo .dm-fo-a-etapes li.dm-fo-ok{ background: var(--a-ok-bg); color: var(--a-ok); }
.dm-fo .dm-fo-a-etapes li.dm-fo-cur{ background: var(--a-tint-2); color: var(--a-accent-deep); }
.dm-fo .dm-fo-a-qui{ display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--a-bg); font-size: 13px; }
.dm-fo .dm-fo-a-qui small{ display: block; color: var(--a-muted); font-style: italic; }
.dm-fo .dm-fo-a-total{ display: grid; gap: 6px; margin: 12px 0 0; font-size: 13.5px; }
.dm-fo .dm-fo-a-total div{ display: flex; justify-content: space-between; gap: 10px; }
.dm-fo .dm-fo-a-total dt{ color: var(--a-muted); }
.dm-fo .dm-fo-a-total dd{ margin: 0; font-weight: 600; }
.dm-fo .dm-fo-a-total .dm-fo-fort{ padding-top: 8px; border-top: 1px dashed var(--a-line); font-size: 16px; }
.dm-fo .dm-fo-a-total .dm-fo-fort dt{ color: var(--a-ink); font-weight: 700; }
.dm-fo .dm-fo-a-total .dm-fo-fort dd{ font-weight: 800; }
.dm-fo .dm-fo-a-garanties{ list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--a-muted); }
.dm-fo .dm-fo-a-garanties li{ display: flex; gap: 8px; align-items: center; }
.dm-fo .dm-fo-a-garanties .dm-fo-ico{ width: 15px; height: 15px; color: var(--a-ok); }
.dm-fo .dm-fo-a-note{ margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--a-muted); text-align: center; }
.dm-fo .dm-fo-a-note b{ color: var(--a-ink); font-weight: 600; }

/* Lecteur de cours */
.dm-fo .dm-fo-a-barre{ display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--a-line); }
.dm-fo .dm-fo-a-ring{ --p: 0; width: 52px; height: 52px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--a-accent) calc(var(--p) * 1%), var(--a-line-soft) 0); transition: --p .6s; }
.dm-fo .dm-fo-a-ring::before{ content: ""; grid-area: 1 / 1; width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.dm-fo .dm-fo-a-ring > span{ grid-area: 1 / 1; position: relative; font-size: 12.5px; font-weight: 800; color: var(--a-ink); letter-spacing: -.02em; }
.dm-fo .dm-fo-a-ring.dm-fo-ok{ background: conic-gradient(var(--a-ok) calc(var(--p) * 1%), var(--a-line-soft) 0); }
.dm-fo .dm-fo-a-barre-txt{ flex: 1; min-width: 0; }
.dm-fo .dm-fo-a-barre-txt b{ display: block; font-size: 14px; font-weight: 700; color: var(--a-ink); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-fo .dm-fo-a-barre-txt small{ display: block; font-size: 12.5px; color: var(--a-muted); }
.dm-fo .dm-fo-a-barre-txt small.dm-fo-ok{ color: var(--a-ok); font-weight: 600; }
.dm-fo .dm-fo-a-sommaire-btn{ min-height: 44px; }
.dm-fo .dm-fo-a-toc{ padding: 6px 8px 10px; background: #fff; border-bottom: 1px solid var(--a-line); animation: dm-fo-entre .3s ease; }
.dm-fo .dm-fo-a-mod{ padding: 4px 0; }
.dm-fo .dm-fo-a-mod-tete{ display: flex; align-items: center; gap: 10px; padding: 8px 8px 4px; }
.dm-fo .dm-fo-a-mod-tete b{ display: block; font-size: 13.5px; color: var(--a-ink); line-height: 1.25; }
.dm-fo .dm-fo-a-mod-tete small{ display: block; font-size: 11.5px; color: var(--a-faint); }
.dm-fo .dm-fo-a-les{ display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 8px 10px 8px 12px; margin: 1px 0; border: 0; border-radius: 11px; background: transparent;
    cursor: pointer; text-align: left; font-size: 13.5px; color: var(--a-text); line-height: 1.3; }
.dm-fo .dm-fo-a-les:hover{ background: var(--a-bg); }
.dm-fo .dm-fo-a-les.dm-fo-cur{ background: var(--a-tint); color: var(--a-ink); font-weight: 650; box-shadow: inset 3px 0 0 var(--a-accent); }
.dm-fo .dm-fo-a-les.dm-fo-fait .dm-fo-a-les-titre{ color: var(--a-muted); }
.dm-fo .dm-fo-a-les:disabled{ color: var(--a-faint); cursor: not-allowed; background: transparent; }
.dm-fo .dm-fo-a-les-st{ width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--a-line); color: var(--a-faint); }
.dm-fo .dm-fo-a-les-st .dm-fo-ico{ width: 13px; height: 13px; stroke-width: 3; }
.dm-fo .dm-fo-a-les.dm-fo-fait .dm-fo-a-les-st{ background: var(--a-ok); border-color: var(--a-ok); color: #fff; }
.dm-fo .dm-fo-a-les.dm-fo-cur .dm-fo-a-les-st{ border-color: var(--a-accent); background: var(--a-accent); color: #fff; }
.dm-fo .dm-fo-a-les:disabled .dm-fo-a-les-st{ border-style: dashed; }
.dm-fo .dm-fo-a-les-titre{ flex: 1; min-width: 0; }
.dm-fo .dm-fo-a-les-meta{ flex: 0 0 auto; font-size: 12px; color: var(--a-faint); }
.dm-fo .dm-fo-a-toc-exam{ margin: 6px 4px 0; padding-top: 6px; border-top: 1px solid var(--a-line-soft); }
.dm-fo .dm-fo-a-crumb{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12.5px; color: var(--a-muted); }
.dm-fo .dm-fo-a-crumb b{ color: var(--a-accent-deep); font-weight: 700; }
.dm-fo .dm-fo-a-video{ position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0c0b12; box-shadow: 0 18px 40px rgba(20,15,45,.18); }
.dm-fo .dm-fo-a-video svg.dm-fo-a-poster{ position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: .9; }
.dm-fo .dm-fo-a-play{ position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
    background: rgba(255,255,255,.95); color: var(--a-accent-deep); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s; }
.dm-fo .dm-fo-a-play:hover{ transform: scale(1.06); }
.dm-fo .dm-fo-a-play .dm-fo-ico{ width: 26px; height: 26px; fill: currentColor; stroke: none; margin-left: 3px; }
.dm-fo .dm-fo-a-video-bas{ position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.dm-fo .dm-fo-a-video-piste{ flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); overflow: hidden; }
.dm-fo .dm-fo-a-video-piste i{ display: block; height: 100%; width: var(--w, 0%); background: #fff; border-radius: 4px; transition: width .25s linear; }
.dm-fo .dm-fo-a-video-mention{ position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 99px; font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(0,0,0,.45); }
.dm-fo .dm-fo-a-texte p{ margin: 0 0 10px; font-size: 14.5px; line-height: 1.65; color: var(--a-text); }
.dm-fo .dm-fo-a-texte p:last-child{ margin-bottom: 0; }
.dm-fo .dm-fo-a-ress{ display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--a-line); background: #fff; font-size: 13px; }
.dm-fo .dm-fo-a-ress .dm-fo-ico{ color: var(--a-accent-deep); }
.dm-fo .dm-fo-a-ress span{ flex: 1; min-width: 0; }
.dm-fo .dm-fo-a-ress small{ display: block; color: var(--a-faint); }
.dm-fo .dm-fo-a-suite{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--a-line); }
.dm-fo .dm-fo-a-suite-txt{ min-width: 0; flex: 1 1 180px; }
.dm-fo .dm-fo-a-suite-txt small{ display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--a-faint); }
.dm-fo .dm-fo-a-suite-txt b{ display: block; font-size: 14px; color: var(--a-ink); }
.dm-fo .dm-fo-a-banniere{ display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, var(--a-tint), #fff); border: 1px solid var(--a-tint-2);
    animation: dm-fo-entre .45s cubic-bezier(.2,.8,.2,1); }
.dm-fo .dm-fo-a-banniere > div{ flex: 1 1 200px; min-width: 0; }
.dm-fo .dm-fo-a-banniere small{ display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--a-accent-deep); }
.dm-fo .dm-fo-a-banniere b{ display: block; font-size: 15px; color: var(--a-ink); }
.dm-fo .dm-fo-a-banniere p{ margin: 2px 0 0; font-size: 13px; color: var(--a-muted); }

/* Quiz */
.dm-fo .dm-fo-a-qtete{ display: flex; flex-wrap: wrap; gap: 6px; }
.dm-fo .dm-fo-a-points{ list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.dm-fo .dm-fo-a-points li{ flex: 1; height: 6px; border-radius: 6px; background: var(--a-line); transition: background .3s; }
.dm-fo .dm-fo-a-points li.dm-fo-fait{ background: var(--a-accent); }
.dm-fo .dm-fo-a-points li.dm-fo-cur{ background: var(--a-tint-2); box-shadow: inset 0 0 0 1.5px var(--a-accent); }
.dm-fo .dm-fo-a-question{ margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; animation: dm-fo-entre .35s cubic-bezier(.2,.8,.2,1); }
.dm-fo .dm-fo-a-question legend{ padding: 0; margin-bottom: 6px; font-family: 'Schibsted Grotesk', 'Inter', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; color: var(--a-ink); }
.dm-fo .dm-fo-a-question legend small{ display: block; margin-bottom: 4px; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--a-faint); }
.dm-fo .dm-fo-a-aide{ margin: -2px 0 4px; font-size: 12.5px; color: var(--a-accent-deep); }
.dm-fo .dm-fo-a-choix{ position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border-radius: 14px; cursor: pointer; font-size: 14px;
    background: #fff; border: 1.5px solid var(--a-line); transition: border-color .2s, background .2s, box-shadow .2s; }
.dm-fo .dm-fo-a-choix:hover{ border-color: var(--a-accent-line, #9cc0c7); }
.dm-fo .dm-fo-a-choix input{ position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.dm-fo .dm-fo-a-coche{ width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; border: 2px solid var(--a-line); display: grid; place-items: center; color: #fff; background: #fff; }
.dm-fo .dm-fo-a-choix input[type="checkbox"] + .dm-fo-a-coche{ border-radius: 7px; }
.dm-fo .dm-fo-a-coche .dm-fo-ico{ width: 13px; height: 13px; stroke-width: 3.2; opacity: 0; }
.dm-fo .dm-fo-a-choix:has(input:checked){ border-color: var(--a-accent); background: var(--a-tint); box-shadow: 0 0 0 3px rgba(47,111,126,.12); }
.dm-fo .dm-fo-a-choix:has(input:checked) .dm-fo-a-coche{ background: var(--a-accent); border-color: var(--a-accent); }
.dm-fo .dm-fo-a-choix:has(input:checked) .dm-fo-a-coche .dm-fo-ico{ opacity: 1; }
.dm-fo .dm-fo-a-choix:has(input:focus-visible){ outline: 2px solid var(--dmfo-violet); outline-offset: 2px; }
.dm-fo .dm-fo-a-qpied{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dm-fo .dm-fo-a-qpied p{ margin: 0; flex: 1 1 160px; font-size: 12.5px; color: var(--a-muted); }
.dm-fo .dm-fo-a-qpied p.dm-fo-warn{ color: var(--a-warn); font-weight: 600; }

/* Résultat */
.dm-fo .dm-fo-a-verdict{ position: relative; overflow: hidden; text-align: center; padding: 26px 18px 22px; border-radius: 22px; border: 1px solid var(--a-line); background: #fff; box-shadow: var(--a-ombre); }
.dm-fo .dm-fo-a-verdict.dm-fo-ok{ background: radial-gradient(120% 90% at 50% 0%, var(--a-ok-bg) 0%, #fff 65%); border-color: var(--a-ok-line); }
.dm-fo .dm-fo-a-verdict.dm-fo-warn{ background: radial-gradient(120% 90% at 50% 0%, var(--a-warn-bg) 0%, #fff 65%); border-color: var(--a-warn-line); }
.dm-fo .dm-fo-a-score{ --p: 0; --c: var(--a-ok); width: 128px; height: 128px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; position: relative;
    background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--a-line-soft) 0); animation: dm-fo-pop .5s cubic-bezier(.2,.9,.3,1.3); }
.dm-fo .dm-fo-a-verdict.dm-fo-warn .dm-fo-a-score{ --c: #e19a1f; }
.dm-fo .dm-fo-a-score::before{ content: ""; grid-area: 1 / 1; width: 104px; height: 104px; border-radius: 50%; background: #fff; }
.dm-fo .dm-fo-a-score-in{ grid-area: 1 / 1; position: relative; }
.dm-fo .dm-fo-a-score-in b{ display: block; font-family: 'Schibsted Grotesk', 'Inter', sans-serif; font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: var(--a-ink); line-height: 1; }
.dm-fo .dm-fo-a-score-in small{ display: block; margin-top: 4px; font-size: 11.5px; color: var(--a-muted); }
.dm-fo .dm-fo-a-verdict h3{ margin: 4px 0 0; font-family: 'Schibsted Grotesk', 'Inter', sans-serif; font-size: 23px; font-weight: 700; letter-spacing: -.025em; color: var(--a-ink); }
.dm-fo .dm-fo-a-verdict h3:focus{ outline: none; }
.dm-fo .dm-fo-a-verdict p{ margin: 6px auto 0; max-width: 46ch; font-size: 14px; color: var(--a-muted); }
.dm-fo .dm-fo-a-verdict .dm-fo-a-faits{ justify-content: center; }
.dm-fo .dm-fo-a-actions{ display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dm-fo .dm-fo-a-confetti{ position: absolute; inset: 0; pointer-events: none; }
.dm-fo .dm-fo-a-confetti i{ position: absolute; top: -10px; width: 7px; height: 12px; border-radius: 2px; opacity: 0; animation: dm-fo-confetti 2.2s ease-in forwards; }
.dm-fo .dm-fo-a-cert{ display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, var(--a-ok-bg), var(--a-tint)); border: 1px solid var(--a-ok-line);
    animation: dm-fo-entre .5s cubic-bezier(.2,.8,.2,1) .2s backwards; }
.dm-fo .dm-fo-a-cert-ico{ width: 48px; height: 48px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; background: var(--a-ok); color: #fff; box-shadow: 0 8px 20px rgba(15,138,95,.3); }
.dm-fo .dm-fo-a-cert-ico .dm-fo-ico{ width: 24px; height: 24px; }
.dm-fo .dm-fo-a-cert-txt{ flex: 1 1 180px; min-width: 0; font-size: 12.5px; color: var(--a-muted); }
.dm-fo .dm-fo-a-cert-txt small{ display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--a-ok); }
.dm-fo .dm-fo-a-cert-txt b{ display: block; font-size: 15px; color: var(--a-ink); }
.dm-fo .dm-fo-a-cert-txt code{ font-family: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace; font-size: 12px; color: var(--a-ink); font-weight: 700; overflow-wrap: anywhere; }
.dm-fo .dm-fo-a-corr{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dm-fo .dm-fo-a-corr > li{ padding: 12px 14px; border-radius: 14px; border: 1px solid var(--a-line); background: #fff; }
.dm-fo .dm-fo-a-corr-tete{ display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--a-ink); line-height: 1.35; }
.dm-fo .dm-fo-a-corr-q{ flex: 1; min-width: 0; }
.dm-fo .dm-fo-a-corr-st{ width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--a-ok); }
.dm-fo .dm-fo-a-corr-st .dm-fo-ico{ width: 13px; height: 13px; stroke-width: 3.2; }
.dm-fo .dm-fo-a-corr-st.dm-fo-ko{ background: var(--a-ko); }
.dm-fo .dm-fo-a-corr-tete small{ flex: 0 0 auto; font-size: 11.5px; font-weight: 600; color: var(--a-faint); }
.dm-fo .dm-fo-a-corr dl{ margin: 8px 0 0 34px; display: grid; gap: 3px; font-size: 12.5px; }
.dm-fo .dm-fo-a-corr dl div{ display: flex; gap: 6px; flex-wrap: wrap; }
.dm-fo .dm-fo-a-corr dt{ color: var(--a-faint); }
.dm-fo .dm-fo-a-corr dd{ margin: 0; color: var(--a-text); font-weight: 600; }
.dm-fo .dm-fo-a-corr dd.dm-fo-ko{ color: var(--a-ko); text-decoration: line-through; text-decoration-thickness: 1px; }
.dm-fo .dm-fo-a-corr p{ margin: 8px 0 0 34px; padding: 8px 10px; border-radius: 10px; background: var(--a-bg); font-size: 12.5px; line-height: 1.5; color: var(--a-muted); }

/* Certificat (aperçu) */
.dm-fo .dm-fo-cert{ --c: var(--a-accent); background: #fff; border: 2px solid var(--c); padding: 5px; font-family: 'Inter', sans-serif; }
.dm-fo .dm-fo-cert > div{ border: 1px solid #c9dfe3; padding: 18px 16px 14px; text-align: center; font-size: 11px; color: var(--a-ink); }
.dm-fo .dm-fo-cert-logo{ display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--c); color: #fff; font-family: 'Schibsted Grotesk', sans-serif; font-weight: 800; font-size: 12px; }
.dm-fo .dm-fo-cert-sur{ font-size: 8.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--c); margin: 8px 0 4px; }
.dm-fo .dm-fo-cert-titre{ margin: 0; font-family: 'Schibsted Grotesk', serif; font-size: 24px; letter-spacing: -0.02em; color: var(--a-accent-deep); }
.dm-fo .dm-fo-cert-par{ color: var(--a-muted); margin: 4px 0 8px; }
.dm-fo .dm-fo-cert-nom{ font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 21px; color: var(--a-accent-deep); border-bottom: 1px solid var(--a-line); display: inline-block; padding: 0 24px 4px; margin-bottom: 8px; }
.dm-fo .dm-fo-cert-form{ font-weight: 700; font-size: 13px; }
.dm-fo .dm-fo-cert-score{ color: var(--a-ok); font-weight: 600; margin: 4px 0 10px; }
.dm-fo .dm-fo-cert-sign{ display: inline-block; border-top: 1px solid var(--a-line); padding-top: 6px; font-weight: 700; }
.dm-fo .dm-fo-cert-sign small{ display: block; font-weight: 400; color: var(--a-muted); }
.dm-fo .dm-fo-cert-pied{ display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin-top: 12px; font-size: 9.5px; color: var(--a-muted); text-align: center; }
.dm-fo .dm-fo-cert-pied b{ display: block; color: var(--a-ink); overflow-wrap: anywhere; }
.dm-fo .dm-fo-cert-qr{ width: 40px; height: 40px; border: 2px solid var(--a-ink);
    background: repeating-linear-gradient(90deg, var(--a-ink) 0 4px, transparent 4px 8px), repeating-linear-gradient(0deg, var(--a-ink) 0 4px, #fff 4px 8px); background-blend-mode: multiply; }
.dm-fo .dm-fo-cert-verif{ text-align: left; font-size: 8px; color: var(--a-accent-deep); margin-top: 6px; overflow-wrap: anywhere; }

/* ═══ Face formateur : le back-office (look bo.css) ═══════════════════════ */
.dm-fo .dm-fo-bo{ background: oklch(0.982 0.004 285); color: var(--fo-encre); font-family: 'Schibsted Grotesk', Inter, system-ui, sans-serif; letter-spacing: -0.01em; }
.dm-fo .dm-fo-b-page{ padding: 20px 22px 26px; }
.dm-fo .dm-fo-b-tete{ display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.dm-fo .dm-fo-b-tete > div:first-child{ min-width: 0; flex: 1 1 260px; }
.dm-fo .dm-fo-b-h1{ margin: 0; font-size: 1.55rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; color: var(--fo-encre); }
.dm-fo .dm-fo-b-h1 .dm-fo-serif{ font-weight: 500; }
.dm-fo .dm-fo-b-h1:focus{ outline: none; }
.dm-fo .dm-fo-b-sous{ margin: 4px 0 0; font-size: 13px; color: var(--fo-gris); }
.dm-fo .dm-fo-b-actions{ display: flex; gap: 8px; flex-wrap: wrap; }
.dm-fo .dm-fo-b-deco{ pointer-events: none; }
.dm-fo .dm-fo-b-retour{ display: inline-flex; align-items: center; gap: 5px; min-height: 40px; margin: -6px 0 2px -6px; padding: 6px 10px 6px 6px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
    font-size: 12.5px; font-weight: 600; color: var(--fo-gris); }
.dm-fo .dm-fo-b-retour:hover{ color: var(--fo-violet-fonce); background: var(--fo-trait-doux); }
.dm-fo .dm-fo-b-retour .dm-fo-ico{ width: 14px; height: 14px; stroke-width: 2.4; }

/* Boutons */
.dm-fo .dm-fo-btn{ display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 15px; border-radius: 11px; cursor: pointer;
    font-size: 13.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, border-color .2s, background .2s; }
.dm-fo .dm-fo-btn .dm-fo-ico{ width: 16px; height: 16px; }
.dm-fo .dm-fo-btn-primaire{ background: var(--fo-degrade); color: #fff; box-shadow: 0 6px 16px -8px oklch(0.42 0.18 285 / .7); }
.dm-fo .dm-fo-btn-primaire:hover{ transform: translateY(-1px); }
.dm-fo .dm-fo-btn-sobre{ background: #fff; color: var(--fo-encre); border-color: var(--fo-trait); }
.dm-fo .dm-fo-btn-sobre:hover{ border-color: var(--fo-violet); color: var(--fo-violet-fonce); }
.dm-fo .dm-fo-btn-mini{ min-height: 44px; padding: 7px 12px; font-size: 12.5px; border-radius: 10px; }

/* Onglets */
.dm-fo .dm-fo-b-onglets{ display: flex; gap: 4px; padding: 4px; margin: 0 0 16px; max-width: 100%; width: max-content; overflow-x: auto; border-radius: 14px; background: #fff;
    border: 1px solid var(--fo-trait); box-shadow: var(--fo-ombre); scrollbar-width: none; }
.dm-fo .dm-fo-b-onglets::-webkit-scrollbar{ display: none; }
.dm-fo .dm-fo-b-onglet{ flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 14px; border-radius: 10px; border: 0; background: transparent; cursor: pointer;
    font-size: 13px; font-weight: 600; color: var(--fo-gris); white-space: nowrap; transition: background .2s, color .2s; }
.dm-fo button.dm-fo-b-onglet:hover{ background: var(--fo-trait-doux); color: var(--fo-encre); }
.dm-fo .dm-fo-b-onglet.dm-fo-actif, .dm-fo button.dm-fo-b-onglet.dm-fo-actif:hover{ background: var(--fo-encre); color: #fff; }
.dm-fo .dm-fo-b-inerte{ cursor: default; opacity: .55; }
.dm-fo .dm-fo-compteur{ min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 800;
    background: oklch(0.58 0.21 288 / .14); color: var(--fo-violet-fonce); }
.dm-fo .dm-fo-actif .dm-fo-compteur{ background: rgba(255,255,255,.2); color: #fff; }

/* Messages */
.dm-fo .dm-fo-message{ display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 14px; margin: 0 0 14px; font-size: 13px; line-height: 1.45; border: 1px solid var(--fo-trait); background: #fff;
    animation: dm-fo-entre .5s cubic-bezier(.2,.8,.2,1); }
.dm-fo .dm-fo-message > span{ flex: 1; min-width: 0; }
.dm-fo .dm-fo-message-ok{ background: oklch(0.97 0.03 155); border-color: oklch(0.85 0.07 155); color: oklch(0.38 0.1 155); }
.dm-fo .dm-fo-message-ok b{ color: oklch(0.32 0.1 155); }

/* Chiffres */
.dm-fo .dm-fo-kpis{ display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0,1fr)); margin: 0 0 16px; }
.dm-fo .dm-fo-kpis-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
@container (max-width: 720px){ .dm-fo .dm-fo-kpis{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
.dm-fo .dm-fo-chiffre{ position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 14px 15px; border-radius: 16px; background: #fff;
    border: 1px solid var(--fo-trait); box-shadow: var(--fo-ombre); color: var(--fo-encre); }
.dm-fo .dm-fo-chiffre.dm-fo-principal{ background: var(--fo-degrade); border-color: transparent; color: #fff; }
.dm-fo .dm-fo-lbl{ display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--fo-gris); }
.dm-fo .dm-fo-principal .dm-fo-lbl, .dm-fo .dm-fo-principal .dm-fo-sous{ color: rgba(255,255,255,.88); }
.dm-fo .dm-fo-val{ font-size: 1.5rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; white-space: nowrap; }
.dm-fo .dm-fo-val small{ font-size: .6em; font-weight: 700; opacity: .7; letter-spacing: -.01em; }
.dm-fo .dm-fo-sous{ font-size: 11.5px; color: var(--fo-gris); line-height: 1.4; }
.dm-fo .dm-fo-pastille-ico{ width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; }
.dm-fo .dm-fo-pastille-ico .dm-fo-ico{ width: 15px; height: 15px; }
.dm-fo .dm-fo-t-violet .dm-fo-pastille-ico{ background: oklch(0.58 0.21 288 / .12); color: var(--fo-violet-fonce); }
.dm-fo .dm-fo-t-vert .dm-fo-pastille-ico{ background: oklch(0.78 0.15 155 / .18); color: oklch(0.45 0.13 155); }
.dm-fo .dm-fo-t-bleu .dm-fo-pastille-ico{ background: oklch(0.70 0.13 245 / .16); color: oklch(0.46 0.14 250); }
.dm-fo .dm-fo-t-orange .dm-fo-pastille-ico{ background: oklch(0.80 0.15 65 / .2); color: oklch(0.50 0.14 55); }
.dm-fo .dm-fo-pulse{ animation: dm-fo-halo-kpi 1.6s ease-out 2; }
.dm-fo .dm-fo-monte{ animation: dm-fo-monte 1.4s ease-out; }
.dm-fo .dm-fo-jauge{ display: block; height: 8px; border-radius: 99px; background: var(--fo-trait-doux); overflow: hidden; margin: 8px 0 6px; }
.dm-fo .dm-fo-jauge i{ display: block; height: 100%; width: var(--w, 0%); border-radius: 99px; background: var(--fo-degrade); transition: width 1s cubic-bezier(.45,.1,.2,1); }
.dm-fo .dm-fo-jauge.dm-fo-fini i{ background: var(--fo-vert); }

/* Segments */
.dm-fo .dm-fo-outils{ display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.dm-fo .dm-fo-segments{ display: inline-grid; grid-auto-flow: column; grid-auto-columns: max-content; gap: 3px; padding: 4px; max-width: 100%; overflow-x: auto; border-radius: 13px;
    background: var(--fo-trait-doux); scrollbar-width: none; }
.dm-fo .dm-fo-segments button{ min-height: 40px; padding: 7px 12px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--fo-gris); white-space: nowrap; }
.dm-fo .dm-fo-segments button:hover{ color: var(--fo-encre); }
.dm-fo .dm-fo-segments button.dm-fo-actif{ background: #fff; color: var(--fo-violet-fonce); box-shadow: 0 1px 3px rgba(40,30,80,.12); }
.dm-fo .dm-fo-direct{ display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--fo-gris); }
.dm-fo .dm-fo-direct i{ width: 8px; height: 8px; border-radius: 50%; background: var(--fo-vert); box-shadow: 0 0 0 0 oklch(0.55 0.14 155 / .5); animation: dm-fo-battement 2s ease-out infinite; }

/* Tableau */
.dm-fo .dm-fo-tableau-cadre{ overflow-x: auto; border-radius: 16px; border: 1px solid var(--fo-trait); background: #fff; box-shadow: var(--fo-ombre); }
.dm-fo .dm-fo-tableau{ width: 100%; border-collapse: collapse; font-size: 13px; }
.dm-fo .dm-fo-tableau th{ text-align: left; padding: 10px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--fo-pale);
    background: var(--fo-teinte); border-bottom: 1px solid var(--fo-trait); white-space: nowrap; }
.dm-fo .dm-fo-tableau td{ padding: 11px 12px; border-bottom: 1px solid var(--fo-trait-doux); vertical-align: middle; }
.dm-fo .dm-fo-tableau tr:last-child td{ border-bottom: 0; }
.dm-fo .dm-fo-tableau tbody tr:hover td{ background: var(--fo-teinte); }
.dm-fo .dm-fo-num{ text-align: right; white-space: nowrap; }
.dm-fo .dm-fo-fort{ font-weight: 700; }
.dm-fo .dm-fo-nowrap{ white-space: nowrap; }
.dm-fo .dm-fo-ligne.dm-fo-nouvelle td{ background: oklch(0.58 0.21 288 / .045); }
.dm-fo .dm-fo-ligne.dm-fo-nouvelle td:first-child{ box-shadow: inset 3px 0 0 var(--fo-violet); }
.dm-fo .dm-fo-ligne.dm-fo-arrive td{ animation: dm-fo-arrive 1.6s cubic-bezier(.2,.8,.2,1); }
.dm-fo .dm-fo-ligne.dm-fo-flash td{ animation: dm-fo-flash 1.6s ease-out; }
.dm-fo .dm-fo-personne{ display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; }
.dm-fo .dm-fo-personne-txt{ min-width: 0; }
.dm-fo .dm-fo-personne-txt b{ display: block; font-weight: 600; }
.dm-fo .dm-fo-avatar{ width: 34px; height: 34px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 800; letter-spacing: .02em;
    background: oklch(0.58 0.21 288 / .1); color: var(--fo-violet-fonce); }
.dm-fo .dm-fo-neuf{ display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--fo-degrade); vertical-align: 1px; }
.dm-fo .dm-fo-discret{ display: block; font-size: 11.5px; font-weight: 400; color: var(--fo-pale); margin-top: 2px; overflow-wrap: anywhere; }
.dm-fo .dm-fo-gris{ display: block; font-size: 12px; color: var(--fo-pale); margin-top: 2px; }
.dm-fo .dm-fo-etiquette{ display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: oklch(0.58 0.21 288 / .1); color: var(--fo-violet-fonce); }
.dm-fo .dm-fo-progres{ display: flex; flex-direction: column; min-width: 150px; }
.dm-fo .dm-fo-progres-ligne{ display: flex; align-items: center; gap: 10px; }
.dm-fo .dm-fo-progres-ligne .dm-fo-jauge{ flex: 1; margin: 0; }
.dm-fo .dm-fo-progres-ligne b{ font-size: 13px; font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
.dm-fo .dm-fo-examen{ display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.dm-fo .dm-fo-note{ font-size: 13px; color: var(--fo-encre); }
.dm-fo .dm-fo-certif{ font-size: 12px; font-weight: 700; color: var(--fo-violet-fonce); }
.dm-fo .dm-fo-examen .dm-fo-certif .dm-fo-mono{ display: block; white-space: nowrap; }
.dm-fo .dm-fo-mono{ font-family: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace; font-size: 11.5px; letter-spacing: 0; }
.dm-fo .dm-fo-groupe-ligne{ display: none; margin-top: 5px; }
.dm-fo .dm-fo-tableau td.dm-fo-titre-carte{ min-width: 190px; }
.dm-fo .dm-fo-tableau td.dm-fo-titre-carte .dm-fo-discret{ overflow-wrap: normal; word-break: normal; }
/* Fenêtre de BO étroite (deux faces côte à côte) : Groupe passe sous le nom, Accès (toujours « Actif ») se retire */
@container (min-width: 601px) and (max-width: 860px){
    .dm-fo .dm-fo-tableau .dm-fo-col-opt{ display: none; }
    .dm-fo .dm-fo-groupe-ligne{ display: block; }
    .dm-fo .dm-fo-progres{ min-width: 120px; }
    .dm-fo .dm-fo-tableau th, .dm-fo .dm-fo-tableau td{ padding-left: 10px; padding-right: 10px; }
}
.dm-fo .dm-fo-calme{ padding: 16px 18px; border-radius: 14px; background: var(--fo-teinte); border: 1px solid var(--fo-trait-doux); font-size: 13.5px; color: var(--fo-gris); }

/* Pastilles */
.dm-fo .dm-fo-pastille{ display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.dm-fo .dm-fo-pastille::before{ content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dm-fo .dm-fo-pastille-ok{ background: oklch(0.94 0.06 155); color: oklch(0.45 0.13 155); }
.dm-fo .dm-fo-pastille-alerte{ background: oklch(0.95 0.06 75); color: oklch(0.50 0.13 60); }
.dm-fo .dm-fo-pastille-neutre{ background: var(--fo-trait-doux); color: var(--fo-gris); }

/* Carte formation (Mes formations) */
.dm-fo .dm-fo-f-grille{ list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.dm-fo .dm-fo-f-carte{ display: flex; flex-direction: column; min-width: 0; border-radius: 18px; background: #fff; border: 1px solid var(--fo-trait); box-shadow: var(--fo-ombre); overflow: hidden; }
.dm-fo .dm-fo-f-couv{ position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, oklch(0.93 0.05 200), oklch(0.82 0.10 230)); }
.dm-fo .dm-fo-f-couv svg{ position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dm-fo .dm-fo-f-badges{ position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.dm-fo .dm-fo-f-badges .dm-fo-pastille{ box-shadow: 0 2px 8px rgba(20,10,60,.14); }
.dm-fo .dm-fo-f-corps{ flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 12px; }
.dm-fo .dm-fo-f-titre{ margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.dm-fo .dm-fo-faits{ list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--fo-gris); }
.dm-fo .dm-fo-faits li{ display: inline-flex; align-items: center; gap: 5px; }
.dm-fo .dm-fo-faits .dm-fo-ico{ width: 14px; height: 14px; color: var(--fo-pale); }
.dm-fo .dm-fo-f-chiffres{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 4px; }
.dm-fo .dm-fo-f-chiffre{ display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 12px; background: var(--fo-teinte); border: 1px solid var(--fo-trait-doux); text-align: left; color: var(--fo-encre); }
.dm-fo button.dm-fo-f-chiffre{ cursor: pointer; }
.dm-fo button.dm-fo-f-chiffre:hover{ border-color: var(--fo-violet); }
.dm-fo .dm-fo-f-chiffre b{ font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.dm-fo .dm-fo-f-chiffre span{ font-size: 11.5px; color: var(--fo-gris); }
.dm-fo .dm-fo-f-pied{ display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid var(--fo-trait-doux); background: var(--fo-teinte); }
.dm-fo .dm-fo-f-pied > .dm-fo-btn{ flex: 1 1 auto; }

/* Notification « Nouvel inscrit » */
.dm-fo .dm-fo-toast-zone{ position: absolute; top: 50px; right: 14px; left: 14px; z-index: 8; display: flex; justify-content: flex-end; pointer-events: none; }
.dm-fo .dm-fo-toast{ pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: min(430px, 100%); min-width: 0; padding: 10px 8px 10px 10px; border-radius: 16px; background: var(--fo-encre); color: #fff;
    box-shadow: 0 20px 40px -16px rgba(20,10,60,.55); font-family: 'Schibsted Grotesk', Inter, sans-serif; animation: dm-fo-toast .55s cubic-bezier(.2,.9,.3,1.2); }
.dm-fo .dm-fo-toast-ico{ width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: var(--fo-degrade); }
.dm-fo .dm-fo-toast-ico .dm-fo-ico{ animation: dm-fo-sonne 1s ease-in-out 2; transform-origin: 50% 10%; }
.dm-fo .dm-fo-toast-txt{ flex: 1; min-width: 0; }
.dm-fo .dm-fo-toast-txt b{ display: block; font-size: 14px; }
.dm-fo .dm-fo-toast-txt small{ display: block; font-size: 12px; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-fo .dm-fo-toast .dm-fo-btn-primaire{ background: #fff; color: var(--fo-violet-fonce); box-shadow: none; }
.dm-fo .dm-fo-toast-x{ width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: rgba(255,255,255,.7); cursor: pointer; }
.dm-fo .dm-fo-toast-x:hover{ color: #fff; background: rgba(255,255,255,.1); }

/* ═══ Fenêtre modale (aperçu du certificat) ══════════════════════════════ */
.dm-fo .dm-fo-calque{ display: none; }
.dm-fo .dm-fo-calque.dm-fo-ouvert{ position: absolute; inset: 38px 0 0; z-index: 10; display: grid; place-items: center; padding: 16px; }
.dm-fo .dm-fo-voile{ position: absolute; inset: 0; background: oklch(0.2 0.03 282 / .45); backdrop-filter: blur(2px); animation: dm-fo-fondu .25s ease; }
.dm-fo .dm-fo-modale{ position: relative; width: min(100%, 480px); max-height: 100%; overflow: auto; padding: 18px; border-radius: 18px; background: #fff;
    box-shadow: 0 30px 60px -20px rgba(20,10,60,.5); font-family: 'Inter', system-ui, sans-serif; color: var(--fo-encre); animation: dm-fo-modale .35s cubic-bezier(.2,.9,.3,1.15); }
.dm-fo .dm-fo-modale-x{ position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--fo-gris); cursor: pointer; }
.dm-fo .dm-fo-modale-x:hover{ background: var(--fo-trait-doux); color: var(--fo-encre); }
.dm-fo .dm-fo-m-tete{ padding-right: 44px; margin-bottom: 12px; }
.dm-fo .dm-fo-m-type{ display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--a-accent-deep); }
.dm-fo .dm-fo-m-type .dm-fo-ico{ width: 16px; height: 16px; }
.dm-fo .dm-fo-m-note{ margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--a-muted); }

/* ── Atouts et fin ──────────────────────────────────────────────────────── */
.dm-fo .dm-fo-atouts{ list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.dm-fo .dm-fo-atouts li{ padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--dmfo-trait); }
.dm-fo .dm-fo-atouts b{ display: block; font-family: 'Schibsted Grotesk', 'Inter', sans-serif; font-size: 17px; letter-spacing: -0.02em; margin-bottom: 4px; }
.dm-fo .dm-fo-atouts li:first-child b{ background: var(--dmfo-aurore); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dm-fo .dm-fo-atouts span{ font-size: 14px; line-height: 1.55; color: var(--dmfo-gris); }
.dm-fo .dm-fo-fin{ position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-top: 14px;
    padding: 24px 28px; border-radius: 22px; background: var(--dmfo-nuit); color: #fff; }
.dm-fo .dm-fo-fin::before{ content: ''; position: absolute; inset: -40%; pointer-events: none; filter: blur(50px); opacity: .7;
    background: radial-gradient(30% 50% at 15% 50%, oklch(0.55 0.22 288 / .55), transparent 70%), radial-gradient(30% 50% at 85% 50%, oklch(0.58 0.14 210 / .45), transparent 70%); }
.dm-fo .dm-fo-fin > *{ position: relative; }
.dm-fo .dm-fo-fin b{ display: block; font-family: 'Schibsted Grotesk', 'Inter', sans-serif; font-size: 20px; letter-spacing: -0.02em; }
.dm-fo .dm-fo-fin span{ display: block; margin-top: 4px; font-size: 14.5px; color: oklch(0.84 0.012 285); }
.dm-fo .dm-fo-cta{ display: inline-flex; align-items: center; min-height: 50px; padding: 14px 28px; border-radius: 999px; background: #fff; color: var(--dmfo-encre);
    font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.dm-fo .dm-fo-cta:hover{ transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.3); }
.dm-fo.dm-fo-termine .dm-fo-fin{ box-shadow: 0 0 0 3px oklch(0.58 0.21 288 / .35); }
.dm-fo .dm-fo-annonce{ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dm-fo .dm-fo-mobile-seul{ display: none; }

/* ═══ Petits écrans de BO (container) : tableau en cartes, comme bo-cartes-mobile ═══ */
@container (max-width: 600px){
    .dm-fo .dm-fo-b-page{ padding: 16px 14px 22px; }
    .dm-fo .dm-fo-b-actions{ display: none; }
    .dm-fo .dm-fo-tableau-cadre{ border: 0; background: transparent; box-shadow: none; overflow: visible; }
    .dm-fo .dm-fo-tableau thead{ display: none; }
    .dm-fo .dm-fo-tableau, .dm-fo .dm-fo-tableau tbody{ display: block; }
    .dm-fo .dm-fo-tableau tr{ display: block; margin-bottom: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--fo-trait); }
    .dm-fo .dm-fo-tableau td{ display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0; border: 0; text-align: right; }
    .dm-fo .dm-fo-tableau td::before{ content: attr(data-label); flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--fo-gris); text-align: left; }
    .dm-fo .dm-fo-tableau tbody tr:hover td{ background: transparent; }
    .dm-fo .dm-fo-tableau td.dm-fo-titre-carte{ min-width: 0; justify-content: flex-start; text-align: left; padding: 0 0 10px; margin-bottom: 4px; border-bottom: 1px solid var(--fo-trait-doux); }
    .dm-fo .dm-fo-tableau td.dm-fo-titre-carte::before{ content: none; }
    .dm-fo .dm-fo-tableau td > .dm-fo-progres, .dm-fo .dm-fo-tableau td > .dm-fo-examen{ align-items: flex-end; text-align: right; min-width: 0; flex: 1; }
    .dm-fo .dm-fo-tableau .dm-fo-progres-ligne{ width: 100%; max-width: 200px; margin-left: auto; }
    .dm-fo .dm-fo-ligne.dm-fo-nouvelle{ border-color: var(--fo-violet); box-shadow: 0 0 0 3px oklch(0.58 0.21 288 / .12); }
    .dm-fo .dm-fo-ligne.dm-fo-nouvelle td{ background: transparent; }
    .dm-fo .dm-fo-ligne.dm-fo-nouvelle td:first-child{ box-shadow: none; }
    .dm-fo .dm-fo-ligne.dm-fo-arrive{ animation: dm-fo-arrive-carte 1.2s cubic-bezier(.2,.8,.2,1); }
    .dm-fo .dm-fo-ligne.dm-fo-arrive td, .dm-fo .dm-fo-ligne.dm-fo-flash td{ animation: none; }
    .dm-fo .dm-fo-ligne.dm-fo-flash{ animation: dm-fo-flash 1.6s ease-out; }
}
@container (max-width: 420px){
    .dm-fo .dm-fo-kpis-3{ grid-template-columns: minmax(0,1fr); }
    .dm-fo .dm-fo-a-compte{ display: none; }
    .dm-fo .dm-fo-a-corr dl, .dm-fo .dm-fo-a-corr p{ margin-left: 0; }
}

/* ═══ Responsive de la section ═══════════════════════════════════════════ */
@media (max-width: 1180px){
    .dm-fo .dm-fo-scene{ grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; }
    .dm-fo .dm-fo-fil li small{ display: none; }
}
@media (max-width: 959px){
    .dm-fo{ padding: 56px 16px 60px; }
    .dm-fo .dm-fo-entete{ margin-bottom: 22px; }
    .dm-fo .dm-fo-chapo{ font-size: 15.5px; }
    .dm-fo .dm-fo-pilote{ flex-direction: column; align-items: stretch; gap: 10px; }
    .dm-fo .dm-fo-fil{ width: 100%; }
    .dm-fo .dm-fo-fil li{ flex: 1 1 0; flex-direction: column; text-align: center; gap: 6px; padding: 8px 4px; }
    .dm-fo .dm-fo-fil li b{ font-size: 12px; }
    .dm-fo .dm-fo-recommencer{ align-self: center; }
    .dm-fo .dm-fo-consigne{ margin: 12px 0 14px; font-size: 14px; }
    .dm-fo .dm-fo-onglets{ position: sticky; top: 72px; z-index: 20; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 15px;
        background: #fff; border: 1px solid var(--dmfo-trait); box-shadow: 0 8px 24px -14px rgba(40,30,80,.3); }
    .dm-fo .dm-fo-onglets button{ position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 0; border-radius: 11px;
        background: transparent; cursor: pointer; font-size: 14.5px; font-weight: 650; color: var(--dmfo-gris); }
    .dm-fo .dm-fo-onglets button[aria-selected="true"]{ background: var(--dmfo-encre); color: #fff; }
    .dm-fo .dm-fo-pastille-tab{ min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff;
        background: oklch(0.62 0.2 25); animation: dm-fo-pop .4s cubic-bezier(.2,.9,.3,1.4); }
    .dm-fo .dm-fo-pastille-tab[hidden]{ display: none; }
    .dm-fo .dm-fo-scene{ display: block; }
    .dm-fo[data-onglet="ap"] .dm-fo-face-bo, .dm-fo[data-onglet="bo"] .dm-fo-face-ap{ display: none; }
    .dm-fo .dm-fo-legende{ display: none; }
    .dm-fo .dm-fo-fenetre{ height: auto; min-height: 560px; border-radius: 18px; }
    .dm-fo .dm-fo-ap, .dm-fo .dm-fo-bo{ overflow: visible; }
    .dm-fo .dm-fo-a-nav{ position: static; }
    .dm-fo .dm-fo-a-prix{ bottom: 12px; margin: 0; border-radius: 16px; border: 1px solid var(--a-line); }
    .dm-fo .dm-fo-calque.dm-fo-ouvert{ position: fixed; inset: 0; z-index: 70; padding: 16px; }
    .dm-fo .dm-fo-modale{ max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
    .dm-fo .dm-fo-mobile-seul{ display: inline-flex; }
    .dm-fo .dm-fo-atouts{ grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
    .dm-fo .dm-fo-fin{ padding: 22px 20px; }
    .dm-fo .dm-fo-cta{ width: 100%; justify-content: center; }
}
@media (max-width: 480px){
    .dm-fo .dm-fo-a-page{ padding: 16px 14px 22px; }
    .dm-fo .dm-fo-a-h1{ font-size: 23px; }
    .dm-fo .dm-fo-cert-pied{ grid-template-columns: 1fr 1fr; }
}

/* ═══ Animations ═════════════════════════════════════════════════════════ */
@keyframes dm-fo-pop{ 0%{ transform: scale(.4); opacity: 0; } 100%{ transform: scale(1); opacity: 1; } }
@keyframes dm-fo-entre{ from{ opacity: 0; transform: translate3d(0, 10px, 0); } }
@keyframes dm-fo-fondu{ from{ opacity: 0; } }
@keyframes dm-fo-modale{ from{ opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes dm-fo-toast{ from{ opacity: 0; transform: translate3d(30px, -10px, 0) scale(.95); } }
@keyframes dm-fo-sonne{ 0%, 100%{ transform: rotate(0); } 20%{ transform: rotate(16deg); } 40%{ transform: rotate(-14deg); } 60%{ transform: rotate(9deg); } 80%{ transform: rotate(-5deg); } }
@keyframes dm-fo-tourne{ to{ transform: rotate(360deg); } }
@keyframes dm-fo-arrive{ 0%{ opacity: 0; transform: translateY(-16px); background: oklch(0.58 0.21 288 / .22); } 35%{ opacity: 1; transform: none; background: oklch(0.58 0.21 288 / .18); } 100%{ background: oklch(0.58 0.21 288 / .045); } }
@keyframes dm-fo-arrive-carte{ 0%{ opacity: 0; transform: translateY(-16px) scale(.98); box-shadow: 0 0 0 8px oklch(0.58 0.21 288 / .25); } 40%{ opacity: 1; transform: none; } }
@keyframes dm-fo-flash{ 0%, 30%{ background: oklch(0.93 0.08 155); } 100%{ background: transparent; } }
@keyframes dm-fo-halo-kpi{ 0%{ box-shadow: 0 0 0 0 oklch(0.58 0.21 288 / .55); } 100%{ box-shadow: 0 0 0 14px oklch(0.58 0.21 288 / 0); } }
@keyframes dm-fo-monte{ 0%{ box-shadow: 0 0 0 0 oklch(0.62 0.15 155 / .5); } 100%{ box-shadow: 0 0 0 12px oklch(0.62 0.15 155 / 0); } }
@keyframes dm-fo-battement{ 0%{ box-shadow: 0 0 0 0 oklch(0.55 0.14 155 / .5); } 70%, 100%{ box-shadow: 0 0 0 7px oklch(0.55 0.14 155 / 0); } }
@keyframes dm-fo-confetti{ 0%{ opacity: 1; transform: translateY(0) rotate(0); } 100%{ opacity: 0; transform: translateY(320px) rotate(540deg); } }

@media (prefers-reduced-motion: reduce){
    .dm-fo *, .dm-fo *::before, .dm-fo *::after{ animation: none !important; transition: none !important; }
    .dm-fo .dm-fo-a-confetti{ display: none; }
}
