/* Français PDF — exercices interactifs, QCM, progression, révisions. Encre #1f3a93, stylo rouge #c0392b, papier crème, jaune #f4c430, vert #2e7d32. */
.fx-bloc,.fpdf-qcm,.fx-revisions,.fx-progression,.fpdf-widget,.fpdf-toasts,.fx-fantome{
  --e:#1f3a93;--ef:#16296b;--ep:#e8edf9;--r:#c0392b;--rp:#fbeceb;--v:#2e7d32;--vp:#e6f3e7;--j:#f4c430;--jp:#fff6d6;
  --p:#fdf6e3;--p2:#efe4c8;--t:#1d2433;--g:#5b6475;--li:#d9e1f2;--serif:Merriweather,Georgia,Cambria,serif}
.fx-bloc *,.fpdf-qcm *,.fx-revisions *,.fx-progression *{box-sizing:border-box}
.fx-bloc [hidden],.fpdf-qcm [hidden],.fx-revisions [hidden],.fx-progression [hidden],.fpdf-widget [hidden]{display:none!important}

/* ---------- boutons ---------- */
.fx-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:11px 22px;border:0;border-radius:12px;cursor:pointer;
  font:700 1.02em/1.1 var(--serif);color:#fff;background:var(--e);box-shadow:0 4px 0 var(--ef);transition:transform .08s,box-shadow .08s,filter .15s;text-decoration:none}
.fx-btn svg{width:20px;height:20px;fill:currentColor;flex:none}
.fx-btn:hover{filter:brightness(1.08)}
.fx-btn:active{transform:translateY(3px);box-shadow:0 1px 0 var(--ef)}
.fx-btn:focus-visible,.fx-puce:focus-visible,.fx-option:focus-visible,.fx-groupe:focus-visible,.fx-bouton-rond:focus-visible,.fx-onglet:focus-visible{outline:3px solid var(--j);outline-offset:2px}
.fx-btn-go,.fx-btn-suivant{background:var(--r);box-shadow:0 4px 0 #8e281e}
.fx-btn-go:active,.fx-btn-suivant:active{box-shadow:0 1px 0 #8e281e}
.fx-btn-second{background:#fff;color:var(--e);border:2px solid var(--e);box-shadow:0 4px 0 var(--li)}
.fx-btn-ecoute{background:#fff;color:var(--e);border:2px solid var(--li);box-shadow:none;font-size:.92em;min-height:44px;padding:8px 14px}
.fx-btn-ecoute.fort{border-color:var(--e);background:var(--ep);animation:fx-appel 1.6s ease-in-out 2}
@keyframes fx-appel{50%{box-shadow:0 0 0 6px rgba(31,58,147,.15)}}
.fx-bouton-rond{display:inline-flex;align-items:center;gap:5px;background:var(--ep);color:var(--e);border:1.5px solid var(--e);border-radius:999px;padding:5px 11px;font:700 .8em/1 system-ui,sans-serif;cursor:pointer}
.fx-bouton-rond svg{width:17px;height:17px;fill:currentColor}
.fx-bouton-rond[aria-pressed=false]{background:#fff;color:var(--g);border-color:#b9c0cc}
.fx-bouton-rond .off{display:none}.fx-bouton-rond[aria-pressed=false] .on{display:none}.fx-bouton-rond[aria-pressed=false] .off{display:inline}
.fx-espace{flex:1}

/* ---------- bloc « Entraîne-toi en ligne » ---------- */
.fx-bloc{margin:1.6em 0 2.2em;background:#fff;border:2px solid var(--e);border-radius:16px;box-shadow:6px 6px 0 var(--p2);overflow:hidden;scroll-margin-top:90px}
.fx-tete{display:flex;align-items:center;gap:14px;padding:14px 18px;background:var(--e);color:#fff;
  background-image:repeating-linear-gradient(0deg,transparent 0 23px,rgba(255,255,255,.07) 23px 24px)}
.fx-tete .fx-pastille{flex:none;width:46px;height:46px;border-radius:50%;background:var(--j);display:grid;place-items:center;box-shadow:0 3px 0 #c99a12;transform:rotate(-8deg)}
.fx-tete .fx-pastille svg{width:28px;height:28px;fill:var(--ef)}
.nv-content-wrap .fx-tete .fx-titre,.fx-tete .fx-titre{margin:0;padding:0;border:0;color:#fff;font:900 1.35em/1.2 var(--serif)}
.fx-tete p{margin:2px 0 0;font-size:.92em;opacity:.9}
.fx-hote{padding:18px}
.fx-accueil{text-align:center;padding:6px 0 4px}
.fx-accueil-texte{margin:0 auto .8em;max-width:560px;line-height:1.6}
.fx-types{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:0 0 1em;padding:0}
.fx-types li{margin:0;padding:4px 11px;border-radius:999px;background:var(--p);border:1px solid var(--p2);font-size:.82em;color:var(--ef);font-weight:600}
.fx-record{margin:0 0 1em;color:var(--v);font-size:.95em}
.fx-depart{display:flex;flex-direction:column;align-items:center;gap:10px}
.fx-btn-go{font-size:1.18em;padding:14px 34px;min-height:56px}
.fx-option-chrono{display:inline-flex;align-items:center;gap:6px;font-size:.9em;color:var(--g);cursor:pointer}
.fx-option-chrono svg{width:16px;height:16px;fill:var(--g)}
.fx-option-chrono input{width:18px;height:18px;accent-color:var(--e)}

/* ---------- une partie ---------- */
.fx-haut{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px;font-family:var(--serif);color:var(--e)}
.fx-compteur{font-size:.95em}.fx-compteur b{font-size:1.15em;color:var(--r)}
.fx-pts{display:inline-flex;align-items:center;gap:4px;font-weight:700}
.fx-pts svg{width:18px;height:18px;fill:var(--j);stroke:#c99a12;stroke-width:1}
.fx-temps{font:700 .95em ui-monospace,Consolas,monospace;color:var(--ef);background:var(--ep);padding:3px 8px;border-radius:6px}
.fx-barre{display:flex;gap:4px;margin:0 0 16px}
.fx-barre i{flex:1;height:10px;border-radius:5px;background:var(--p2);transition:background .3s}
.fx-barre i.en-cours{background:var(--j);box-shadow:inset 0 0 0 2px #e0ad12}
.fx-barre i.ok{background:var(--v)}.fx-barre i.ko{background:var(--r)}
.fx-scene.entre{animation:fx-entre .35s ease}
@keyframes fx-entre{from{opacity:0;transform:translateX(18px)}}
.fx-item{background:var(--p);border-radius:12px;padding:16px 16px 18px 30px;position:relative;
  background-image:repeating-linear-gradient(to bottom,transparent 0 31px,var(--li) 31px 32px);background-position:0 12px}
.fx-item::before{content:"";position:absolute;left:16px;top:0;bottom:0;border-left:2px solid #e9a39b}
.fx-consigne{margin:0 0 12px;font:700 1.08em/1.5 var(--serif);color:var(--ef);outline:0}
.fx-num{display:block;font:italic 700 .85em Georgia,serif;color:var(--r);margin-bottom:2px}
.fx-question{display:block;font-weight:400;color:var(--t);margin-top:4px;font-family:var(--serif)}
.fx-origine-carte{margin:0 0 6px;font-size:.78em;text-transform:uppercase;letter-spacing:.05em;color:var(--g)}
.fx-aide{margin:0 0 8px;font-size:.84em;color:var(--g)}
.fx-texte{margin:0;font-size:1.22em;line-height:2.3;color:var(--t)}

/* trous et listes */
.fx-trou,.fx-select,.fx-champ{font:inherit;font-size:1em;color:var(--e);background:#fff;border:2px solid #9fb0dc;border-radius:8px;transition:border-color .15s,box-shadow .15s}
.fx-trou{padding:2px 8px;margin:0 3px;text-align:center;min-width:2.6em;max-width:100%;line-height:1.5;font-weight:700}
.fx-trou:focus,.fx-select:focus,.fx-champ:focus{outline:0;border-color:var(--e);box-shadow:0 0 0 3px rgba(244,196,48,.55)}
.fx-select{padding:3px 6px;margin:0 3px;font-size:.95em;max-width:100%;cursor:pointer;line-height:1.4}
.fx-select:not(.rempli){color:var(--g);font-style:italic}
.fx-select:disabled{opacity:1;appearance:none;-webkit-appearance:none;padding:3px 10px;font-weight:700}
.bon.fx-trou,.bon.fx-select,.bon.fx-champ{border-color:var(--v);background:var(--vp);color:var(--v);opacity:1}
.faux.fx-trou,.faux.fx-select,.faux.fx-champ{border-color:var(--r);background:var(--rp);color:var(--r);text-decoration:line-through;text-decoration-thickness:2px;opacity:1}
.fx-sol{display:inline-block;margin:0 4px;padding:0 8px;border-radius:6px;background:var(--v);color:#fff;font-weight:700;line-height:1.6;animation:fx-pop .3s}
@keyframes fx-pop{from{transform:scale(.6);opacity:0}}

/* étiquettes */
.fx-puce{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:8px 14px;margin:0;border:2px solid #9fb0dc;border-radius:10px;background:#fff;color:var(--t);
  font:600 1.05em/1.2 var(--serif);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;box-shadow:0 3px 0 var(--li);transition:transform .1s,border-color .15s,background .15s}
.fx-puce:hover:not(:disabled){border-color:var(--e);transform:translateY(-1px)}
.fx-puce[aria-pressed=true]{background:var(--j);border-color:#c99a12;box-shadow:0 3px 0 #c99a12;transform:translateY(-2px)}
.fx-puce:disabled{cursor:default;opacity:1}
.fx-puce.bon{background:var(--vp);border-color:var(--v);color:var(--v);box-shadow:none}
.fx-puce.faux{background:var(--rp);border-color:var(--r);color:var(--r);box-shadow:none}
.fx-vers{font:600 .78em system-ui,sans-serif;color:var(--v);margin-left:4px}
.fx-origine{opacity:.35}
.fx-fantome{position:fixed!important;left:0;top:0;z-index:100000;pointer-events:none;box-shadow:0 12px 26px rgba(0,0,0,.25)!important;background:var(--j)!important;border-color:#c99a12!important;opacity:.95}
.fx-glisse{cursor:grabbing}
.fx-reserve{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;min-height:62px;padding:10px;border:2px dashed #c8cfde;border-radius:12px;margin-bottom:12px;background:rgba(255,255,255,.6)}
.fx-reserve.vide{min-height:0;padding:6px;border-color:transparent;background:none}
.fx-survol{outline:3px solid var(--j);outline-offset:2px;background:var(--jp)!important}

/* classer */
.fx-groupes{display:grid;grid-template-columns:repeat(var(--n,2),minmax(0,1fr));gap:10px}
.fx-groupe{border:2px solid var(--e);border-radius:12px;background:#fff;min-height:120px;cursor:pointer;display:flex;flex-direction:column;overflow:hidden}
.nv-content-wrap .fx-groupe-nom,.fx-groupe-nom{margin:0;padding:7px 10px;background:var(--e);color:#fff;font:700 .95em var(--serif);text-align:center}
.fx-c1{border-color:var(--r)}.fx-c1 .fx-groupe-nom{background:var(--r)}
.fx-c2{border-color:var(--v)}.fx-c2 .fx-groupe-nom{background:var(--v)}
.fx-c3{border-color:#b7791f}.fx-c3 .fx-groupe-nom{background:#b7791f}
.fx-groupe-corps{flex:1;display:flex;flex-wrap:wrap;gap:7px;align-content:flex-start;padding:10px}

/* surligner */
.fx-surligner .fx-mot{display:inline;min-height:0;padding:1px 4px;margin:0 1px;border:0;border-radius:5px;background:transparent;box-shadow:none;font:inherit;line-height:1.7;
  cursor:pointer;touch-action:manipulation;border-bottom:2px dotted #b9c3dd}
.fx-surligner .fx-mot:hover:not(:disabled){background:var(--ep);transform:none}
.fx-surligner .fx-mot[aria-pressed=true]{background:linear-gradient(transparent 12%,#f9df7a 12%);transform:none;box-shadow:none;border-bottom-color:transparent}
.fx-surligner .fx-mot.bon{background:var(--vp);color:var(--v);border-bottom:2px solid var(--v)}
.fx-surligner .fx-mot.faux{background:var(--rp);color:var(--r);text-decoration:line-through}
.fx-surligner .fx-mot.manque{background:#fff;color:var(--v);outline:2px dashed var(--v);outline-offset:1px}
.fx-surligner .fx-mot:disabled:not(.bon):not(.faux):not(.manque){border-bottom-color:transparent}
.fx-lettres{text-align:center;font-size:1.6em;letter-spacing:0}
.fx-lettres .fx-mot{display:inline-block;min-width:1.6em;padding:4px 6px;margin:3px;border:2px solid #9fb0dc;border-bottom-width:2px;border-radius:9px;background:#fff;text-align:center;font-weight:700}

/* ordre */
.fx-ligne{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-height:66px;padding:10px 12px;border-radius:12px;background:#fff;border:2px solid var(--e);margin-bottom:12px;box-shadow:inset 0 -3px 0 var(--li)}
.fx-ligne-vide{color:var(--g);font-style:italic;font-size:.95em}
.fx-colle .fx-ligne{gap:3px}
.fx-colle .fx-ligne .fx-puce{border-radius:6px}
.fx-attendu{margin:10px 0 0;padding:8px 12px;border-radius:8px;background:#fff;border:1px dashed var(--v);display:flex;flex-direction:column;gap:3px;line-height:1.5}
.fx-attendu b{color:var(--v)}
.fx-attendu mark{background:var(--rp);color:var(--r);text-decoration:line-through;padding:0 2px}

/* transformer */
.fx-modele{margin:0 0 12px;padding:10px 14px;background:#fff;border-left:5px solid var(--e);border-radius:4px 10px 10px 4px;font:400 1.15em/1.5 var(--serif);color:var(--t)}
.fx-saisie{display:flex;gap:8px;flex-wrap:wrap}
.fx-champ{flex:1 1 260px;min-height:48px;padding:8px 12px;font-size:1.1em}
.fx-recopier{border:0;background:none;color:var(--e);text-decoration:underline;font-size:.88em;cursor:pointer;padding:4px}

/* associer */
.fx-associer{display:grid;grid-template-columns:1fr 1fr;gap:12px 22px}
.fx-col{display:flex;flex-direction:column;gap:8px}
.nv-content-wrap .fx-col-titre,.fx-col-titre{margin:0;text-align:center;font:700 .82em system-ui,sans-serif;text-transform:uppercase;letter-spacing:.05em;color:var(--g)}
.fx-paire{width:100%;justify-content:center;text-align:center;cursor:pointer;touch-action:manipulation}
.fx-paire[data-p]{border-width:3px}
.fx-paire[data-p="0"]{border-color:#1f3a93;background:#e8edf9}.fx-paire[data-p="1"]{border-color:#c0392b;background:#fbeceb}
.fx-paire[data-p="2"]{border-color:#2e7d32;background:#e6f3e7}.fx-paire[data-p="3"]{border-color:#b7791f;background:#fdf3e1}
.fx-paire[data-p="4"]{border-color:#7b3fa0;background:#f3eaf8}.fx-paire[data-p="5"]{border-color:#0f7c86;background:#e3f4f5}
.fx-paire.bon{border-color:var(--v)!important;background:var(--vp)!important}.fx-paire.faux{border-color:var(--r)!important;background:var(--rp)!important}

/* choix */
.fx-choix{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.fx-choix-courts{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}
.fx-option{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;text-align:left;background:#fff;border:2px solid #c5cfe6;border-radius:12px;padding:9px 12px;
  font:inherit;font-size:1.05em;color:var(--t);cursor:pointer;transition:border-color .15s,transform .1s,background .15s;box-shadow:0 3px 0 var(--li)}
.fx-option:hover:not(:disabled){border-color:var(--e);transform:translateY(-1px)}
.fx-lettre{flex:0 0 30px;height:30px;border-radius:50%;display:grid;place-items:center;font:700 .9em Georgia,serif;color:var(--e);border:2px solid var(--e);background:#fff}
.fx-option:disabled{cursor:default}
.fx-option.bon{background:var(--vp);border-color:var(--v)}.fx-option.bon .fx-lettre{background:var(--v);border-color:var(--v);color:#fff}
.fx-option.faux{background:var(--rp);border-color:var(--r)}.fx-option.faux .fx-lettre{background:var(--r);border-color:var(--r);color:#fff}
.fx-option.faux .fx-option-t{text-decoration:line-through;text-decoration-color:var(--r);text-decoration-thickness:2px}
.fx-option.terne{opacity:.5}

/* retour */
.fx-retour{margin-top:14px;padding:12px 16px;border-radius:12px;border:2px solid;animation:fx-pop .25s;line-height:1.55}
.fx-retour.fx-juste{border-color:var(--v);background:var(--vp)}
.fx-retour.fx-faux{border-color:var(--r);background:#fff7f6}
.fx-retour.fx-rappel{border-color:#e0ad12;background:var(--jp);color:#6b4f00;font-weight:600}
.fx-verdict{margin:0 0 4px;font:italic 900 1.2em Georgia,serif}
.fx-juste .fx-verdict{color:var(--v)}.fx-faux .fx-verdict{color:var(--r)}
.fx-accents{margin:0 0 4px;color:#8a5a00;font-weight:700}
.fx-expl{margin:0}
.fx-regle{display:inline-block;padding:0 8px;margin-right:4px;border-radius:999px;background:var(--e);color:#fff;font:700 .78em/1.7 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em}
.fx-lien-cours{display:inline-flex;align-items:center;gap:5px;margin-top:6px;font-weight:700;color:var(--e)!important}
.fx-lien-cours svg{width:16px;height:16px;fill:currentColor}
.fx-actions{display:flex;align-items:center;gap:10px;margin-top:14px;flex-wrap:wrap}

/* fin de partie */
.fx-fin{padding:4px 0;animation:fx-entre .35s}
.fx-fin-tete{display:flex;align-items:center;justify-content:center;gap:22px;flex-wrap:wrap;text-align:left;margin-bottom:10px}
.fx-tampon{display:inline-flex;align-items:baseline;gap:4px;padding:18px 24px;border:4px solid var(--r);border-radius:50%;transform:rotate(-7deg);color:var(--r);font-family:Georgia,serif;flex:none;animation:fx-tampon .45s cubic-bezier(.2,1.6,.4,1)}
@keyframes fx-tampon{from{transform:rotate(-30deg) scale(2);opacity:0}}
.fx-tampon b{font-size:2.6em;line-height:1}
.fx-etoiles{display:flex;gap:4px}
.fx-etoiles span svg{width:38px;height:38px;fill:#e6e0d0}
.fx-etoiles span.pleine svg{fill:var(--j);stroke:#c99a12;stroke-width:.8;animation:fx-pop .4s backwards}
.fx-etoiles span.pleine:nth-child(2) svg{animation-delay:.15s}.fx-etoiles span.pleine:nth-child(3) svg{animation-delay:.3s}
.fx-appr{margin:.2em 0;font:italic 700 1.2em Georgia,serif;color:var(--r)}
.fx-gains{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 0}
.fx-chip{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:999px;background:var(--ep);color:var(--e);font:700 .85em system-ui,sans-serif}
.fx-chip svg{width:15px;height:15px;fill:currentColor}
.fx-chip-feu{background:#fff1e0;color:#c2410c}
.fx-a-revoir{margin:14px 0 4px;padding:12px 16px;border-radius:12px;background:var(--p);border:1px solid var(--p2)}
.fx-a-revoir-titre{margin:0 0 6px;font:700 1.05em var(--serif);color:var(--r)}
.fx-a-revoir ol{margin:0;padding-left:1.3em}
.fx-a-revoir li{margin:0 0 10px;line-height:1.5}
.fx-a-revoir li span{display:block}
.fx-r-enonce{color:var(--g);font-size:.9em}
.fx-r-sol b{color:var(--v)}
.fx-r-expl{font-size:.9em;color:var(--ef)}
.fx-note-rev{margin:6px 0 0;font-size:.88em;color:var(--g)}
.fx-fin-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:14px}
.fx-fin-liens{text-align:center;margin:12px 0 0;font-size:.92em}

/* QCM monté par le moteur */
.fpdf-qcm.fx-qcm-pret{padding:0;overflow:hidden}
.fpdf-qcm.fx-qcm-pret .fx-hote{padding:16px}

/* ---------- widget ---------- */
.fpdf-widget{position:fixed;left:12px;bottom:12px;z-index:90;display:inline-flex;align-items:center;gap:5px;padding:6px 12px 6px 7px;border-radius:999px;background:#fff;
  border:2px solid var(--e);box-shadow:0 4px 14px rgba(22,41,107,.18);color:var(--e)!important;text-decoration:none!important;font:700 14px/1 system-ui,sans-serif;transition:transform .15s}
.fpdf-widget:hover{transform:translateY(-2px)}
.fpdf-widget.cache{transform:translateY(160%);opacity:0;pointer-events:none}
.fpdf-widget{transition:transform .25s,opacity .25s}
.fw-etoile{width:26px;height:26px;border-radius:50%;background:var(--j);display:grid;place-items:center}
.fw-etoile svg{width:17px;height:17px;fill:#fff;stroke:#c99a12;stroke-width:1.5}
.fpdf-widget small{font-size:11px;color:var(--g)}
.fw-serie{display:inline-flex;align-items:center;gap:1px;margin-left:4px;color:#c2410c}
.fw-serie svg{width:16px;height:16px;fill:#ea580c}
.fw-cartes{margin-left:4px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--r);color:#fff;font-size:11px;display:inline-grid;place-items:center}
.fw-cartes[hidden],.fw-serie[hidden]{display:none}
.fpdf-widget.pulse .fw-etoile{animation:fw-pulse .5s}
@keyframes fw-pulse{50%{transform:scale(1.3) rotate(20deg)}}
.fw-bulle{position:absolute;left:30px;bottom:100%;font:900 15px system-ui,sans-serif;color:var(--v);animation:fw-monte 1.1s ease-out forwards;pointer-events:none}
@keyframes fw-monte{from{transform:translateY(4px);opacity:1}to{transform:translateY(-30px);opacity:0}}
.fpdf-toasts{position:fixed;left:50%;top:14px;transform:translateX(-50%);z-index:100001;display:flex;flex-direction:column;gap:8px;pointer-events:none;width:min(92vw,380px)}
.fpdf-toast{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:12px;background:#fff;border:2px solid var(--e);box-shadow:0 10px 30px rgba(0,0,0,.18);
  font:14px/1.35 system-ui,sans-serif;color:var(--t);animation:fx-toast .35s cubic-bezier(.2,1.4,.4,1)}
.fpdf-toast.sort{opacity:0;transform:translateY(-10px);transition:.4s}
.fpdf-toast b{display:block;color:var(--e)}.fpdf-toast small{color:var(--g)}
.fpdf-toast-ico{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--j)}
.fpdf-toast-ico svg{width:22px;height:22px;fill:#7a5600}
.fpdf-toast.serie .fpdf-toast-ico{background:#ffedd5}.fpdf-toast.serie .fpdf-toast-ico svg{fill:#ea580c}
@keyframes fx-toast{from{transform:translateY(-20px) scale(.9);opacity:0}}
.fpdf-confettis{position:fixed;inset:0;z-index:100000;pointer-events:none}

/* ---------- Mes révisions ---------- */
.fx-revisions{margin:1em 0 2em;background:#fff;border:2px solid var(--e);border-radius:16px;box-shadow:6px 6px 0 var(--p2);padding:18px}
.fx-rev-tete{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.fx-rev-gros{display:flex;align-items:baseline;gap:10px;font-family:var(--serif);color:var(--e)}
.fx-rev-gros b{font-size:3em;line-height:1;color:var(--r)}
.fx-rev-rien{margin:0;color:var(--g);max-width:460px}
.fx-boites{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;align-items:end}
.fx-boite{display:flex;flex-direction:column;align-items:center;text-align:center;padding:12px 4px 10px;border-radius:10px 10px 4px 4px;background:var(--p);border:2px solid var(--p2);border-bottom:6px solid #c8b58a;position:relative}
.fx-boite b{font:900 1.7em var(--serif);color:var(--e)}
.fx-boite span{font:700 .85em system-ui,sans-serif;color:var(--ef)}
.fx-boite small{font-size:.72em;color:var(--g);line-height:1.25}
.fx-b1{min-height:96px}.fx-b2{min-height:104px}.fx-b3{min-height:112px}.fx-b4{min-height:120px}.fx-b5{min-height:128px;background:var(--vp);border-color:#bfe0c1;border-bottom-color:var(--v)}
.fx-b1 b{color:var(--r)}
.fx-rev-explique{margin:12px 0 0;font-size:.92em;color:var(--g)}
.fx-rev-agenda{margin:8px 0 0;display:flex;flex-wrap:wrap;gap:6px;font-size:.85em;color:var(--g)}
.fx-rev-agenda span{background:var(--ep);border-radius:999px;padding:2px 9px;color:var(--ef)}

/* ---------- Ma progression ---------- */
.fx-progression{margin:1em 0 2em;min-width:0;max-width:100%;contain:inline-size}
.fx-bloc,.fx-revisions{min-width:0;max-width:100%;contain:inline-size}
.fx-prog-cartes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:8px}
.fx-pc{display:flex;flex-direction:column;gap:3px;padding:14px;border-radius:14px;background:#fff;border:2px solid var(--e);box-shadow:4px 4px 0 var(--p2);color:var(--t);text-decoration:none!important}
.fx-pc b{font:900 1.35em var(--serif);color:var(--e)}
.fx-pc small{color:var(--g);font-size:.82em;line-height:1.35}
.fx-pc-ico{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--j);margin-bottom:4px}
.fx-pc-ico svg{width:22px;height:22px;fill:#7a5600}
.fx-pc-ico.vert{background:var(--vp)}.fx-pc-ico.vert svg{fill:var(--v)}
.fx-pc-ico.rouge{background:var(--rp)}.fx-pc-ico.rouge svg{fill:var(--r)}
.fx-pc-feu .fx-pc-ico{background:#ffedd5}.fx-pc-feu .fx-pc-ico svg{fill:#ea580c}
.fx-pc-rev:hover{transform:translateY(-2px)}
.fx-jauge{display:block;height:8px;border-radius:4px;background:var(--p2);overflow:hidden;margin:4px 0 2px}
.fx-jauge i{display:block;height:100%;background:linear-gradient(90deg,var(--j),#e0a800)}
.fx-semaine{display:flex;gap:3px;margin-top:6px}
.fx-semaine i{flex:1;height:22px;border-radius:5px;background:var(--p);font:700 10px/22px system-ui,sans-serif;font-style:normal;text-align:center;color:var(--g)}
.fx-semaine i.on{background:#fb923c;color:#fff}
.nv-content-wrap .fx-h2,.fx-h2{font:900 1.35em/1.3 var(--serif);color:var(--e);margin:1.6em 0 .6em;padding-bottom:.25em;border-bottom:3px solid var(--r)}
.fx-h2 small{font-size:.65em;color:var(--g);font-weight:400}
.fx-onglets{display:flex;gap:6px;overflow-x:auto;padding:4px 2px 8px;scrollbar-width:thin}
.fx-onglet{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:62px;padding:8px 10px;border-radius:10px;border:2px solid var(--li);background:#fff;cursor:pointer;font:inherit;color:var(--e)}
.fx-onglet b{font:900 1em var(--serif)}
.fx-onglet[aria-selected=true]{background:var(--e);border-color:var(--e);color:#fff}
.fx-onglet.vide{opacity:.45;cursor:default}
.fx-mini{display:block;width:100%;height:5px;border-radius:3px;background:var(--p2);overflow:hidden}
.fx-mini i{display:block;height:100%;background:var(--v)}
.fx-onglet[aria-selected=true] .fx-mini{background:rgba(255,255,255,.3)}.fx-onglet[aria-selected=true] .fx-mini i{background:var(--j)}
.fx-legende{display:flex;flex-wrap:wrap;gap:14px;font-size:.85em;color:var(--g);margin:8px 0 14px}
.fx-legende span::before{content:"";display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:5px;vertical-align:-1px;background:#d6d9e0}
.fx-legende .l1::before{background:var(--j)}.fx-legende .l2::before{background:var(--v)}
.fx-chemin{list-style:none;margin:0;padding:10px 0;position:relative;background:linear-gradient(90deg,transparent calc(50% - 2px),transparent calc(50% - 2px));}
.fx-chemin::before{content:"";position:absolute;left:50%;top:0;bottom:0;border-left:4px dotted #c8b58a;transform:translateX(-2px)}
.fx-etape{position:relative;display:flex;align-items:center;gap:12px;width:min(100%,520px);margin:0 auto 14px;left:var(--d,0);padding:0}
.fx-rond{flex:none;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;font:900 1.15em var(--serif);color:#6b7280;background:#e5e7eb;border:4px solid #fff;box-shadow:0 4px 0 #c9ccd3;z-index:1}
.fx-rond svg{width:28px;height:28px;fill:#fff}
.e1 .fx-rond{background:var(--j);color:#5c4300;box-shadow:0 4px 0 #c99a12}
.e2 .fx-rond{background:var(--v);color:#fff;box-shadow:0 4px 0 #1b5e20}
.fx-etape-txt{flex:1;min-width:0;background:#fff;border:2px solid var(--li);border-radius:12px;padding:8px 12px;display:flex;flex-direction:column;gap:2px}
.e2 .fx-etape-txt{border-color:#bfe0c1}.e1 .fx-etape-txt{border-color:#f1d77a}
.fx-etape-txt b{font:700 .98em/1.3 var(--serif);color:var(--ef)}
.fx-etape-txt small{color:var(--v);font-size:.8em;font-weight:700}
.fx-etape-liens{display:flex;gap:10px;font-size:.84em}
.fx-etape-liens a{color:var(--e)!important;font-weight:600}
.fx-badges{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.fx-badges li{margin:0;display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;padding:12px 8px;border-radius:12px;background:#fff;border:2px dashed #d6d9e0;color:var(--g)}
.fx-badges li b{font:700 .9em var(--serif);color:#8b93a3}
.fx-badges li small{font-size:.75em;line-height:1.3}
.fx-medaille{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#eceef2}
.fx-medaille svg{width:28px;height:28px;fill:#b8bec9}
.fx-badges li.gagne{border:2px solid var(--j);background:var(--jp);color:var(--t)}
.fx-badges li.gagne b{color:var(--ef)}
.fx-badges li.gagne .fx-medaille{background:radial-gradient(circle at 35% 30%,#ffe58a,var(--j) 60%,#d9a400);box-shadow:0 3px 0 #b88a00}
.fx-badges li.gagne .fx-medaille svg{fill:#7a5600}
.fx-export{background:#fff;border:2px solid var(--li);border-radius:14px;padding:14px 16px}
.fx-export p{margin:0 0 10px}
.fx-export-l{display:flex;gap:8px;align-items:stretch;margin-bottom:10px;flex-wrap:wrap}
.fx-export textarea{flex:1 1 220px;min-width:0;width:100%;font:12px/1.4 ui-monospace,Consolas,monospace;border:2px solid var(--li);border-radius:10px;padding:8px;resize:vertical;word-break:break-all;background:var(--p)}
.fx-export-msg{color:var(--v);font-weight:700;min-height:1.2em}
.fx-lien-effacer{border:0;background:none;color:var(--r);text-decoration:underline;cursor:pointer;font-size:.85em;padding:0}

@media(max-width:700px){
  .fx-prog-cartes{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fx-etape{left:calc(var(--d,0) * .35)}
}
@media(max-width:600px){
  .fx-hote,.fx-revisions{padding:12px 10px}
  .fx-tete{padding:12px}
  .fx-tete .fx-titre{font-size:1.15em}
  .fx-item{padding:14px 10px 14px 22px}.fx-item::before{left:10px}
  .fx-texte{font-size:1.12em}
  .fx-choix{grid-template-columns:1fr}
  .fx-choix-courts{grid-template-columns:1fr 1fr}
  .fx-groupes{grid-template-columns:1fr 1fr}
  .fx-groupes[style*="--n:3"],.fx-groupes[style*="--n: 3"]{grid-template-columns:1fr 1fr 1fr}
  .fx-groupe-nom{font-size:.85em!important}
  .fx-associer{gap:10px}
  .fx-paire{padding:8px 6px;font-size:.98em}
  .fx-actions .fx-btn-valider,.fx-actions .fx-btn-suivant{flex:1 1 auto}
  .fx-fin-tete{flex-direction:column;text-align:center;gap:10px}.fx-etoiles,.fx-gains{justify-content:center}
  .fx-boites{gap:5px}.fx-boite small{display:none}
  .fx-rond{width:44px;height:44px}
  .fpdf-widget{left:8px;bottom:8px;padding:4px 10px 4px 5px}
}
@media(prefers-reduced-motion:reduce){.fx-bloc *,.fpdf-qcm *,.fpdf-widget *{animation:none!important;transition:none!important}}
@media print{.fx-bloc,.fpdf-widget,.fpdf-toasts,.fx-actions,.fx-bouton-rond{display:none!important}}
