/* Page « Fonctionnalités » (05/10) : chapitres numérotés, un visuel animé par bloc.
   Les animations démarrent quand le bloc [data-anim] reçoit .go (features.js). */
.l-links a.on { color: var(--text); font-weight: 560; }
.fx-page button { appearance: none; -webkit-appearance: none; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; margin: 0; }
.fx-page { --fx-card: var(--surface); --fx-line: var(--border); --c-ok: #12b886; --c-mid: #f2a900; --c-low: #ec3d63; --c-none: var(--bg-sunken); }
.fx-page h3 { font-size: 17px; font-weight: 620; letter-spacing: -.015em; line-height: 1.25; }
.fx-page p { line-height: 1.6; }
.fx-page .reveal { transition-delay: var(--d, 0ms); }
.fx-ico { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.fx-ico .icon { width: 18px; height: 18px; }
.fx-pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font-size: 12.5px; font-weight: 600; }
.fx-pill .icon { width: 14px; height: 14px; }
.fx-bar { height: 7px; border-radius: 9px; background: var(--bg-sunken); overflow: hidden; }
.fx-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--brand-grad); transition: width 1.2s var(--ease) var(--d, 0ms); }
.go .fx-bar span, .fx-bar.go span { width: var(--w); }
.fx-flame .icon { color: var(--flame); fill: var(--flame); }

/* ---------- Hero ---------- */
.fx-hero { position: relative; overflow: hidden; padding: 96px 0 72px; text-align: center; isolation: isolate; }
.fx-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 25%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 25%, transparent 75%); }
.fx-hero::after { content: ''; position: absolute; left: 50%; top: 40%; width: 900px; height: 600px; z-index: -2; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(108,71,255,.22), transparent), radial-gradient(closest-side at 75% 60%, rgba(240,70,143,.14), transparent); }
.fx-hero-in { position: relative; max-width: 860px; }
.fx-hero h1 { font-size: clamp(40px, 7.4vw, 82px); line-height: 1; letter-spacing: -.05em; font-weight: 660; }
.fx-grad { background: linear-gradient(100deg, #7c5cff 0%, #b14dff 45%, #f0468f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-lead { font-size: clamp(16px, 2vw, 18.5px); color: var(--text-2); max-width: 640px; margin: 26px auto 0; }
.fx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 48px auto 0; max-width: 760px; }
.fx-stats div { padding: 18px 10px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--border); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.fx-stats b { display: block; font-size: 38px; font-weight: 660; letter-spacing: -.04em; line-height: 1; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-stats span { display: block; margin-top: 8px; font-size: 13px; color: var(--text-2); line-height: 1.35; }
.fx-orbit { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fx-orbit-r { position: absolute; left: 50%; top: 46%; border-radius: 50%; border: 1px dashed var(--border-strong); transform: translate(-50%, -50%); }
.fx-orbit-r.r1 { width: 1040px; height: 1040px; animation: fx-spin 90s linear infinite; }
.fx-orbit-r.r2 { width: 760px; height: 760px; opacity: .6; }
.fx-orbit-r.r3 { width: 1320px; height: 1320px; opacity: .35; }
.fx-orbit-r.r1 span { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--accent-text); transform: rotate(var(--a)) translateY(-520px) rotate(calc(-1 * var(--a))); }
@keyframes fx-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.fx-orbit-r.r1 span .icon { width: 20px; height: 20px; animation: fx-unspin 90s linear infinite; }
@keyframes fx-unspin { to { transform: rotate(-360deg); } }

/* Sommaire collant */
.fx-index { position: sticky; top: 64px; z-index: 15; padding: 10px 16px; display: flex; justify-content: center; }
.fx-index-in { display: flex; gap: 4px; padding: 5px; border-radius: 99px; background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.fx-index-in::-webkit-scrollbar { display: none; }
.fx-index a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 99px; font-size: 13.5px; font-weight: 520; color: var(--text-2); white-space: nowrap; transition: background .25s, color .25s; }
.fx-index a .icon { width: 15px; height: 15px; }
.fx-index a:hover { color: var(--text); }
.fx-index a.on { background: var(--ed-ink); color: var(--ed-on-ink); }

/* ---------- Chapitres ---------- */
.fx-chap { padding-top: 130px; scroll-margin-top: 70px; }
.fx-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.fx-kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.fx-num { font-size: 15px; font-weight: 700; font-family: var(--mono); color: var(--accent-text); padding: 5px 10px; border-radius: 9px; background: var(--accent-soft); }
.fx-kl { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.fx-kl .icon { width: 16px; height: 16px; }
.fx-head h2 { font-size: clamp(32px, 4.8vw, 56px); line-height: 1.04; letter-spacing: -.045em; font-weight: 640; }
.fx-head p { color: var(--text-2); font-size: 17px; margin-top: 18px; }

/* Cartes de base */
.fx-fmt, .fx-panel, .fx-mode, .fx-hab, .fx-pf, .fx-exc, .fx-tg, .fx-rep, .fx-stat, .fx-badges, .fx-nbk, .fx-tile { background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: 22px; box-shadow: var(--shadow); }
.fx-fmt p, .fx-panel p, .fx-mode p, .fx-hab p, .fx-pf p, .fx-tg p, .fx-nbk p, .fx-tile p { color: var(--text-2); font-size: 14px; margin-top: 6px; }
.fx-page p b { color: var(--text); font-weight: 600; }

/* ---------- 01 Apprendre ---------- */
.fx-leg i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.st-ok em, .st-ok i, i.st-ok { background: var(--c-ok); } .st-mid em, .st-mid i, i.st-mid { background: var(--c-mid); } .st-low em, .st-low i, i.st-low { background: var(--c-low); } .st-none i, i.st-none { background: var(--c-none); }

/* Les 9 formats d'une Week : grille claire, mini-interfaces au vrai contenu sur le dégradé à points de la page. */
.fx-fmts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fx-fmt { overflow: hidden; display: flex; flex-direction: column; }
.fx-fmt-viz { position: relative; isolation: isolate; overflow: hidden; height: 236px; display: grid; place-items: center; padding: 22px 26px; background: var(--ed-grad); }
.fx-fmt-viz::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .45; background-image: radial-gradient(var(--ed-dots) 1px, transparent 1.2px); background-size: 16px 16px; }
.fx-fmt-t { display: flex; gap: 14px; padding: 20px 22px 22px; }
.fx-fmt-t p { margin-top: 4px; font-size: 13.5px; }
.fv { width: 100%; max-width: 300px; background: var(--surface); color: var(--text); border-radius: 14px; padding: 14px 16px; box-shadow: var(--ed-shadow); font-size: 12px; line-height: 1.45; text-align: left; }
.fv small { font-size: 10.5px; color: var(--text-3); }
.fv-lesson h4 { font-size: 13.5px; font-weight: 650; margin: 3px 0 6px; letter-spacing: -.01em; }
.fv-lesson p { font-size: 12px; color: var(--text-2); line-height: 1.55; }
.fv-lesson mark { color: var(--text); background: linear-gradient(rgba(255,214,0,.5), rgba(255,214,0,.5)) no-repeat 0 0 / 0% 100%; border-radius: 3px; transition: background-size 1s var(--ease) .4s; }
.go .fv-lesson mark { background-size: 100% 100%; }
.fv-formula { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 7px 11px; border-radius: 9px; background: var(--accent-soft); }
.fv-formula small { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.fv-formula code { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.fv-sum { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.fv-sum li { display: flex; gap: 9px; color: var(--text-2); opacity: 0; transform: translateX(-6px); transition: opacity .5s var(--d), transform .5s var(--ease) var(--d); }
.go .fv-sum li { opacity: 1; transform: none; }
.fv-sum span { width: 18px; height: 18px; border-radius: 6px; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; background: var(--brand-grad); }
.fv-cs { display: flex; flex-direction: column; gap: 11px; }
.fv-c-t { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; font-weight: 540; }
.fv-c-t em { font-style: normal; font-size: 10.5px; font-weight: 650; background: none !important; }
.fv-cs .st-ok em { color: var(--success); } .fv-cs .st-mid em { color: var(--warning); } .fv-cs .st-low em { color: var(--danger); }
.fv-c-bar { height: 6px; border-radius: 6px; background: var(--bg-sunken); overflow: hidden; }
.fv-c-bar i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 1.1s var(--ease) var(--d); }
.go .fv-c-bar i { width: var(--w); }
.fv-cs .st-ok .fv-c-bar i { background: var(--success); } .fv-cs .st-mid .fv-c-bar i { background: var(--warning); } .fv-cs .st-low .fv-c-bar i { background: var(--danger); }
.fv-mm { position: relative; height: 170px; padding: 0; }
.fv-mm svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fv-mm line { stroke: var(--accent); stroke-width: 1.4; opacity: .55; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset .9s var(--ease) var(--d); }
.go .fv-mm line { stroke-dashoffset: 0; }
.fv-mm b, .fv-mm span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; }
.fv-mm b { left: 50%; top: 50%; padding: 7px 13px; border-radius: 10px; background: var(--brand-grad); color: #fff; font-size: 12.5px; font-weight: 640; box-shadow: 0 6px 18px -6px rgba(108,71,255,.7); }
.fv-mm span { padding: 4px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border-strong); font-size: 11px; font-weight: 560; opacity: 0; transform: translate(-50%, -50%) scale(.7); transition: opacity .4s var(--d), transform .5s var(--ease) var(--d); }
.go .fv-mm span { opacity: 1; transform: translate(-50%, -50%); }
.fv-tl small { display: block; margin-bottom: 12px; }
.fv-tl-l { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.fv-tl-l::before { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 26px; height: 2px; background: linear-gradient(90deg, #7c5cff, #b14dff); }
.fv-tl-l div { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; opacity: 0; transform: translateY(6px); transition: opacity .5s var(--d), transform .5s var(--ease) var(--d); }
.go .fv-tl-l div { opacity: 1; transform: none; }
.fv-tl-l b { font-family: var(--mono); font-size: 11.5px; font-weight: 700; }
.fv-tl-l i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 3px solid #8b6dff; }
.fv-tl-l span { font-size: 10.5px; color: var(--text-2); line-height: 1.25; }
.fv-sheet { background: #fbfaf7; color: #19162e; transform: rotate(-1.5deg); display: flex; flex-direction: column; gap: 8px; transition: transform .5s var(--ease); }
.fx-fmt:hover .fv-sheet { transform: none; }
.fv-sheet-h { display: flex; align-items: center; justify-content: space-between; padding-bottom: 7px; border-bottom: 1px solid rgba(25,22,46,.1); }
.fv-sheet-h b { font-size: 14px; letter-spacing: -.02em; }
.fv-sheet-h img { height: 11px; width: auto; opacity: .8; }
.fv-sheet > div:not(.fv-sheet-h) { display: flex; align-items: baseline; gap: 8px; opacity: 0; transition: opacity .5s var(--d); }
.go .fv-sheet > div { opacity: 1 !important; }
.fv-sheet mark { flex: none; font-size: 10.5px; font-weight: 650; padding: 1px 6px; border-radius: 4px; color: #19162e; }
.fv-sheet p { font-size: 10.5px; color: #4a4566; line-height: 1.35; }
.fv-sheet .k-def { background: rgba(255,214,0,.5); } .fv-sheet .k-for { background: rgba(79,124,255,.25); } .fv-sheet .k-met { background: rgba(18,184,134,.28); }
.fv-fc { position: relative; width: 100%; max-width: 270px; height: 150px; perspective: 900px; }
.fv-fc-s { position: absolute; inset: 0; border-radius: 14px; background: var(--surface); opacity: .6; transform: rotate(5deg) translate(10px, 4px); box-shadow: var(--ed-shadow); }
.fv-fc-in { position: absolute; inset: 0; transform-style: preserve-3d; animation: fv-flip 7s var(--ease) infinite; }
@keyframes fv-flip { 0%, 38% { transform: none; } 48%, 88% { transform: rotateY(180deg); } 98%, 100% { transform: rotateY(360deg); } }
.fv-fc-in > div { position: absolute; inset: 0; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--ed-shadow); }
.fv-fc-in small { position: absolute; top: 10px; left: 12px; font-size: 10px; font-family: var(--mono); opacity: .55; }
.fv-fc-f { background: var(--surface); font-size: 15px; font-weight: 650; }
.fv-fc-b { transform: rotateY(180deg); background: var(--hero-grad); color: #fff; font-size: 13px; line-height: 1.45; }
.fv-fc-b b { color: #fff; }
.fv-quiz { display: flex; flex-direction: column; gap: 6px; }
.fv-quiz p { font-size: 12.5px; font-weight: 640; margin-bottom: 3px; line-height: 1.4; }
.fv-quiz div { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 9px; border: 1px solid var(--border-strong); }
.fv-quiz b { width: 18px; height: 18px; border-radius: 5px; flex: none; display: grid; place-items: center; font-size: 10px; background: var(--bg-sunken); }
.go .fv-quiz .ok { animation: fv-ok .5s var(--ease) 1s both; }
.go .fv-quiz .ok b { animation: fv-okb .5s var(--ease) 1s both; }
@keyframes fv-ok { to { border-color: var(--success); background: var(--success-soft); } }
@keyframes fv-okb { to { background: var(--success); color: #fff; } }
.fv-ex { display: flex; flex-direction: column; gap: 6px; }
.fv-ex div { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 9px; background: var(--bg-sunken); opacity: 0; transform: translateY(5px); transition: opacity .5s var(--d), transform .5s var(--ease) var(--d); }
.go .fv-ex div { opacity: 1; transform: none; }
.fv-ex span { width: 18px; height: 18px; border-radius: 5px; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); }
.fv-ex code { font-family: var(--mono); font-size: 10.5px; }
.fv-ex em { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin-top: 3px; padding: 5px 9px; border-radius: 8px; background: var(--success-soft); color: var(--success); font-style: normal; font-size: 11px; font-weight: 640; opacity: 0; transition: opacity .5s var(--d); }
.go .fv-ex em { opacity: 1; }
.fv-ex em .icon { width: 13px; height: 13px; }
@media (max-width: 860px) { .fx-fmts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fx-fmts { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fv-sum li, .fv-tl-l div, .fv-sheet > div, .fv-ex div, .fv-ex em, .fv-mm span { opacity: 1 !important; transform: none; } .fv-mm line { stroke-dashoffset: 0; } }

.fx-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.fx-panel { overflow: hidden; display: flex; flex-direction: column; }
.fx-panel-t { padding: 30px 32px 26px; }
.fx-panel-t h3 { font-size: 24px; margin: 16px 0 4px; letter-spacing: -.03em; }
.fx-stage { position: relative; flex: 1; isolation: isolate; display: grid; place-items: center; padding: 36px 32px; background: var(--ed-grad); min-height: 330px; }
.fx-stage::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .45; background-image: radial-gradient(var(--ed-dots) 1px, transparent 1.2px); background-size: 18px 18px; }
.fx-cp-btn { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 9px; background: var(--bg-sunken); font-size: 12.5px; font-weight: 560; }
.fx-seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 10px; background: var(--bg-sunken); }
.fx-seg button { position: relative; z-index: 1; height: 30px; font-size: 12px; font-weight: 560; color: var(--text-2); border-radius: 8px; transition: color .3s; }
.fx-seg button.on { color: var(--text); }
.fx-seg-k { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); transition: transform .45s var(--ease); transform: translateX(calc(var(--lv, 0) * 100%)); }
.fx-lvs { display: grid; }
.fx-lv { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s var(--ease); font-size: 13.5px; }
.fx-lv.on { opacity: 1; transform: none; }
.fx-cp-pre { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.fx-cp-pre span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 560; color: var(--accent-text); }
.fx-hl-p { font-size: 14.5px; }
.fx-hl-p mark { color: inherit; background: linear-gradient(rgba(255,214,0,.55), rgba(255,214,0,.55)) no-repeat 0 0 / 0% 100%; border-radius: 3px; padding: 1px 0; transition: background-size 1.1s var(--ease) .3s; }
.go .fx-hl-p mark { background-size: 100% 100%; }
.fx-hl-list { display: flex; flex-direction: column; gap: 6px; }
.fx-hl-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--d), transform .5s var(--ease) var(--d); }
.go .fx-hl-row { opacity: 1; transform: none; }
.fx-hl-row div { flex: 1; min-width: 0; }
.fx-hl-row b { display: block; font-size: 12.5px; }
.fx-hl-sw { width: 4px; align-self: stretch; border-radius: 3px; background: #ffd600; }
.fx-hl-find { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--accent-text); }

/* ---------- Bandeaux sombres (S'entraîner, Focus) ---------- */
.fx-dark-wrap { padding-left: 15px; padding-right: 15px; }
.fx-dark { --surface: #16132a; --bg-sunken: #0d0b1a; --text: #f3f1ff; --text-2: #b2acd2; --text-3: #7d779e; --border: rgba(200,190,255,.1); --border-strong: rgba(200,190,255,.17); --accent: #8b6dff; --accent-soft: rgba(139,109,255,.17); --accent-text: #b9a6ff; --success: #2fd39a; --success-soft: rgba(47,211,154,.14); --danger: #ff5c7c; --danger-soft: rgba(255,92,124,.14); --ed-shadow: 0 30px 60px -24px rgba(0,0,0,.7); --shadow: 0 10px 30px -14px rgba(0,0,0,.6); --fx-card: rgba(255,255,255,.04); --fx-line: rgba(255,255,255,.08);
  position: relative; overflow: hidden; isolation: isolate; max-width: 1410px; margin: 0 auto; border-radius: 30px; padding: 110px 0 100px; color: var(--text);
  background: radial-gradient(70% 55% at 50% 0%, rgba(124,92,255,.32), transparent 70%), radial-gradient(50% 50% at 100% 100%, rgba(240,70,143,.16), transparent 70%), #0c0a18; }
.fx-dark::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .1; background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.2px); background-size: 18px 18px; mask-image: linear-gradient(#000, transparent 65%); -webkit-mask-image: linear-gradient(#000, transparent 65%); }
.fx-dark .fx-num { background: rgba(255,255,255,.08); }
.fx-pr { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }
.fx-qtypes { display: grid; grid-template-columns: 210px 1fr; gap: 14px; padding: 16px; border-radius: 22px; background: rgba(255,255,255,.03); border: 1px solid var(--fx-line); }
.fx-qt-list { display: flex; flex-direction: column; gap: 3px; }
.fx-qt { position: relative; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 11px; font-size: 13.5px; font-weight: 520; color: var(--text-2); text-align: left; transition: background .25s, color .25s; overflow: hidden; }
.fx-qt span { width: 22px; height: 22px; border-radius: 7px; background: rgba(255,255,255,.06); font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.fx-qt:hover { color: var(--text); }
.fx-qt.on { background: rgba(255,255,255,.07); color: var(--text); }
.fx-qt.on span { background: var(--brand-grad); color: #fff; }
.fx-qt.on::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--brand-grad); transform-origin: left; animation: fx-prog 3.6s linear; }
.fx-qtypes.manual .fx-qt.on::after { display: none; }
@keyframes fx-prog { from { transform: scaleX(0); } }
.fx-qcard { max-width: none; min-height: 300px; display: grid; padding: 26px; }
.fx-qp { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .4s, transform .5s var(--ease); }
.fx-qp.on { opacity: 1; transform: none; pointer-events: auto; }
.fx-q { font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.45; }
.fx-os, .fx-order, .fx-spot { display: flex; flex-direction: column; gap: 8px; }
.fx-o, .fx-order span, .fx-spot span { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--border-strong); font-size: 13.5px; }
.fx-o b, .fx-order b, .fx-spot b { width: 22px; height: 22px; border-radius: 7px; background: rgba(255,255,255,.06); font-size: 11px; display: grid; place-items: center; flex: none; }
.fx-qp.on .fx-o.ok { animation: fx-ok .5s var(--ease) .9s both; }
@keyframes fx-ok { to { border-color: var(--success); background: var(--success-soft); } }
.fx-tf { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-tf span { height: 56px; border-radius: 13px; border: 1px solid var(--border-strong); display: grid; place-items: center; font-weight: 620; }
.fx-qp.on .fx-tf .ok { animation: fx-ok .5s var(--ease) .9s both; }
.fx-cloze { font-size: 17px; }
.fx-blank { display: inline-grid; min-width: 120px; border-bottom: 2px dashed var(--accent); padding: 0 4px; text-align: center; vertical-align: bottom; }
.fx-blank span { color: var(--success); clip-path: inset(0 100% 0 0); }
.fx-qp.on .fx-blank span { animation: fx-type 1s steps(10) .8s forwards; }
@keyframes fx-type { to { clip-path: inset(0 0 0 0); } }
.fx-num { display: flex; align-items: center; gap: 12px; }
.fx-num-in { display: inline-flex; align-items: center; height: 52px; min-width: 150px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--accent); font-size: 22px; font-family: var(--mono); font-weight: 600; }
.fx-num-in i { width: 2px; height: 24px; margin-left: 3px; background: var(--accent); animation: fx-blink 1s steps(1) infinite; }
@keyframes fx-blink { 50% { opacity: 0; } }
.fx-num-ok { width: 40px; height: 40px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; transform: scale(0); }
.fx-qp.on .fx-num-ok { animation: fx-pop .5s var(--ease) 1s forwards; }
@keyframes fx-pop { to { transform: scale(1); } }
.fx-match { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: center; row-gap: 10px; }
.fx-match .fx-ma, .fx-match .fx-mb { padding: 11px 12px; border-radius: 11px; border: 1px solid var(--border-strong); font-size: 13.5px; text-align: center; }
.fx-match i { height: 2px; background: var(--brand-grad); transform: scaleX(0); transform-origin: left; }
.fx-qp.on .fx-match i { animation: fx-grow .5s var(--ease) calc(.6s + var(--d)) forwards; }
@keyframes fx-grow { to { transform: scaleX(1); } }
.fx-order span { justify-content: flex-start; transform: translateY(calc((var(--o) - 0) * 0px)); }
.fx-order span .icon { margin-left: auto; color: var(--text-3); width: 16px; height: 16px; }
.fx-qp.on .fx-order span:nth-child(1) { animation: fx-swap-a .7s var(--ease) 1s both; }
.fx-qp.on .fx-order span:nth-child(2) { animation: fx-swap-b .7s var(--ease) 1s both; }
@keyframes fx-swap-a { from { transform: translateY(calc(100% + 8px)); } to { transform: none; } }
@keyframes fx-swap-b { from { transform: translateY(calc(-100% - 8px)); } to { transform: none; } }
.fx-spot span.bad { transition: none; }
.fx-qp.on .fx-spot span.bad { animation: fx-bad .5s var(--ease) .9s both; }
@keyframes fx-bad { to { border-color: var(--danger); background: var(--danger-soft); } }
.fx-spot small { font-size: 12.5px; color: var(--success); font-weight: 560; opacity: 0; }
.fx-qp.on .fx-spot small { animation: fx-in .5s 1.5s forwards; }
@keyframes fx-in { to { opacity: 1; } }

.fx-why { max-width: none; padding: 24px; gap: 12px; }
.fx-why-you { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 9px; background: var(--danger-soft); color: var(--danger); font-size: 13px; font-weight: 600; }
.fx-why-btn { position: relative; display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; background: var(--brand-grad); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 8px 22px -8px rgba(124,92,255,.8); }
.go .fx-why-btn { animation: fx-press .35s ease .35s; }
@keyframes fx-press { 50% { transform: scale(.94); } }
.fx-why-bs { display: flex; flex-direction: column; gap: 9px; }
.fx-why-b { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border-left: 3px solid var(--accent); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--d), transform .6s var(--ease) var(--d); }
.fx-why-b:nth-child(2) { border-left-color: var(--success); }
.fx-why-b:nth-child(3) { border-left-color: var(--xp); }
.go .fx-why-b { opacity: 1; transform: none; }
.fx-why-b small { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.fx-why-b p { font-size: 13.5px; margin-top: 3px; color: var(--text-2); }
.fx-sigs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.fx-sig { padding: 22px; border-radius: 20px; background: var(--fx-card); border: 1px solid var(--fx-line); display: flex; flex-direction: column; gap: 6px; }
.fx-sig h3 { margin-top: 10px; font-size: 16px; }
.fx-sig p { font-size: 13.5px; color: var(--text-2); flex: 1; }
.fx-sig-chip { align-self: flex-start; margin-top: 10px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--text); }

/* ---------- 03 Retenir ---------- */
.fx-curve { position: relative; padding: 34px 34px 20px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.fx-curve svg { width: 100%; height: 260px; overflow: visible; }
.fx-curve-leg { display: flex; gap: 22px; font-size: 13px; font-weight: 560; color: var(--text-2); margin-bottom: 10px; }
.fx-curve-leg span { display: inline-flex; align-items: center; gap: 8px; }
.fx-curve-leg i { width: 22px; height: 3px; border-radius: 3px; }
.fx-curve-leg .bad i { background: repeating-linear-gradient(90deg, var(--text-3) 0 5px, transparent 5px 9px); }
.fx-curve-leg .good i { background: linear-gradient(90deg, #7c5cff, #f0468f); }
.fx-cv-m line { stroke: var(--border-strong); stroke-dasharray: 3 5; }
.fx-cv-m text { fill: var(--text-3); font-size: 13px; text-anchor: middle; font-family: var(--font); }
.fx-cv-m { opacity: 0; transition: opacity .6s var(--d); }
.go .fx-cv-m { opacity: 1; }
.fx-cv-bad { fill: none; stroke: var(--text-3); stroke-width: 2; stroke-dasharray: 2 3; opacity: .7; }
.fx-cv-good { fill: none; stroke: url(#fxg); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2.6s var(--ease) .3s; }
.go .fx-cv-good { stroke-dashoffset: 0; }
.fx-cv-area { fill: url(#fxa); opacity: 0; transition: opacity 1s 1.8s; }
.go .fx-cv-area { opacity: 1; }
.fx-cv-d { fill: var(--surface); stroke: #b14dff; stroke-width: 3; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s var(--ease) var(--d); }
.go .fx-cv-d { transform: scale(1); }
.fx-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.fx-mode { padding: 22px; transition: transform .3s var(--ease); }
.fx-mode-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.fx-mode-top b { font-size: 12px; font-family: var(--mono); padding: 4px 9px; border-radius: 8px; background: var(--bg-sunken); color: var(--text-2); }
.fx-habits { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 14px; margin-top: 14px; }
.fx-hab { padding: 22px; display: flex; flex-direction: column; }
.fx-hab h3 { margin-top: auto; padding-top: 16px; }
.fx-hab--streak { background: linear-gradient(160deg, var(--flame-soft), transparent 60%), var(--surface); }
.fx-streak { display: flex; align-items: baseline; gap: 8px; }
.fx-streak .fx-flame .icon { width: 34px; height: 34px; align-self: center; animation: fx-flick 1.6s ease-in-out infinite; transform-origin: bottom; }
@keyframes fx-flick { 50% { transform: scale(1.08, 1.12) rotate(-2deg); } }
.fx-streak b { font-size: 46px; font-weight: 680; letter-spacing: -.04em; line-height: 1; }
.fx-streak small { font-size: 13px; color: var(--text-2); }
.fx-miles { display: flex; gap: 5px; margin-top: 14px; }
.fx-miles span { flex: 1; height: 26px; border-radius: 7px; background: var(--bg-sunken); font-size: 11px; font-weight: 650; display: grid; place-items: center; color: var(--text-3); transition: background .4s var(--d), color .4s var(--d); }
.go .fx-miles span.on { background: var(--flame); color: #fff; }
.fx-hab--quests h3 { margin: 0 0 14px; padding: 0; }
.fx-jokers { display: flex; gap: 8px; }
.fx-jokers span { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.fx-jokers span.used { opacity: .35; }
.fx-jokers .icon { width: 20px; height: 20px; }
.fx-vac { display: flex; align-items: center; gap: 12px; color: var(--xp); }
.fx-vac .icon { width: 24px; height: 24px; }
.fx-vac b { font-size: 26px; color: var(--text); font-weight: 660; }
.fx-vac b::after { content: ' j'; font-size: 14px; color: var(--text-3); }
html[lang="en"] .fx-vac b::after { content: ' d'; }
.fx-switch { width: 44px; height: 26px; border-radius: 99px; background: var(--success); position: relative; }
.fx-switch i { position: absolute; top: 3px; left: 21px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.fx-quests { display: flex; flex-direction: column; gap: 12px; }
.fx-quest-t { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; color: var(--text-2); }
.fx-quest-t b { font-family: var(--mono); font-size: 12px; color: var(--text); }
.fx-quest.done .fx-bar span { background: var(--success); }
.fx-xp { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 5px 10px; border-radius: 8px; background: var(--xp-soft); color: var(--xp); font-size: 12.5px; font-weight: 650; }
.fx-xp .icon { width: 14px; height: 14px; fill: currentColor; }

/* ---------- 04 Planifier ---------- */
.fx-plan { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.fx-cal { padding: 18px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.fx-cal-days { display: grid; grid-template-columns: 44px repeat(7, 1fr); gap: 4px; margin-bottom: 8px; }
.fx-cal-days::before { content: ''; }
.fx-cal-days span { text-align: center; font-size: 11.5px; color: var(--text-3); font-weight: 560; }
.fx-cal-days b { display: block; font-size: 17px; color: var(--text); margin-top: 2px; }
.fx-cal-days .today b { width: 32px; height: 32px; margin: 2px auto 0; border-radius: 50%; display: grid; place-items: center; background: var(--brand-grad); color: #fff; }
.fx-cal-grid { display: grid; grid-template-columns: 44px 1fr; --row: 38px; }
.fx-cal-h { position: relative; height: calc(var(--row) * 11.6); }
.fx-cal-h span { position: absolute; top: calc(var(--y) * var(--row)); font-size: 10.5px; color: var(--text-3); font-family: var(--mono); transform: translateY(-50%); }
.fx-cal-cols { position: relative; height: calc(var(--row) * 11.6); display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; background-image: linear-gradient(var(--border) 1px, transparent 1px); background-size: 100% var(--row); }
.fx-cal-cols > i { border-radius: 8px; background: color-mix(in srgb, var(--bg-sunken) 50%, transparent); }
.fx-cb { position: absolute; top: calc(var(--y) * var(--row) + 2px); height: calc(var(--h) * var(--row) - 4px); left: calc(var(--c) * (100% + 4px) / 7 + 2px); width: calc((100% - 24px) / 7 - 4px); border-radius: 8px; padding: 5px 7px; font-size: 10.5px; font-weight: 600; line-height: 1.2; overflow: hidden; color: #fff; opacity: 0; transform: scale(.85); transition: opacity .45s var(--d), transform .55s var(--ease) var(--d); }
.go .fx-cb { opacity: 1; transform: none; }
.fx-cb.k-cls { background: repeating-linear-gradient(-45deg, var(--bg-sunken) 0 6px, transparent 6px 12px), color-mix(in srgb, var(--text-3) 18%, transparent); color: var(--text-2); }
.fx-cb.k-daily { background: var(--flame); }
.fx-cb.k-mi { background: #9b5cff; } .fx-cb.k-ma { background: #4f7cff; } .fx-cb.k-ir { background: #ff8a3d; }
.fx-cb.k-exam { background: linear-gradient(135deg, #ec3d63, #f0468f); box-shadow: 0 8px 20px -8px rgba(236,61,99,.7); }
.go .fx-cb.drag { animation: fx-drag 5s var(--ease) 2s infinite; z-index: 2; }
@keyframes fx-drag { 0%, 15% { transform: none; box-shadow: none; } 25% { transform: scale(1.06) rotate(-2deg); box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); } 50% { transform: translate(calc(-100% - 4px), calc(var(--row) * 3)) scale(1.06) rotate(-2deg); box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); } 60%, 85% { transform: translate(calc(-100% - 4px), calc(var(--row) * 3)); box-shadow: none; } 100% { transform: none; } }
.fx-pfs { display: grid; grid-template-columns: 1fr; gap: 10px; }
.fx-pf { display: flex; gap: 14px; padding: 16px 18px; border-radius: 18px; }
.fx-pf h3 { font-size: 15px; } .fx-pf p { font-size: 13.5px; margin-top: 3px; }

/* ---------- 05 Examens ---------- */
.fx-ex { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fx-exc { padding: 34px; display: flex; flex-direction: column; overflow: hidden; }
.fx-exc .fx-pill { align-self: flex-start; }
.fx-exc h3 { font-size: 26px; letter-spacing: -.03em; margin: 16px 0 8px; }
.fx-exc > p { color: var(--text-2); font-size: 14.5px; margin-bottom: 26px; }
.fx-exc--mock { background: var(--ed-grad); border: 0; position: relative; isolation: isolate; }
.fx-exc--mock::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .45; background-image: radial-gradient(var(--ed-dots) 1px, transparent 1.2px); background-size: 18px 18px; }
.fx-exc--mock .fx-pill { background: var(--surface); }
.fx-mock { max-width: none; margin-top: auto; flex-direction: row; align-items: center; gap: 22px; }
.fx-grade { position: relative; width: 130px; height: 130px; flex: none; }
.fx-grade svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fx-grade circle { fill: none; stroke: var(--bg-sunken); stroke-width: 10; }
.fx-grade circle.p { stroke: url(#fxg); stroke: #7c5cff; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.go .fx-grade circle.p { stroke-dashoffset: 22.5; }
.fx-grade > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.fx-grade b { font-size: 30px; font-weight: 680; letter-spacing: -.03em; }
.fx-grade em { font-style: normal; font-size: 14px; color: var(--text-3); }
.fx-mock-r { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.fx-mock-t { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 13px; margin-bottom: 4px; }
.fx-mock-t span { margin-left: auto; padding: 2px 8px; border-radius: 6px; background: var(--bg-sunken); font-size: 11.5px; }
.fx-wk { display: grid; grid-template-columns: 56px 1fr 34px; align-items: center; gap: 8px; font-size: 12px; }
.fx-wk b { font-size: 11.5px; text-align: right; font-family: var(--mono); }
.fx-wk .fx-bar span { background: linear-gradient(90deg, #ec3d63, #f2a900); }
.fx-exc--panic { color: #f6f3ff; border: 0; background: radial-gradient(90% 110% at 100% 0%, #5a1a3c 0%, transparent 60%), radial-gradient(80% 100% at 0% 100%, #2a1a6e 0%, transparent 60%), #0e0a1c; }
.fx-exc--panic > p { color: rgba(246,243,255,.72); } .fx-exc--panic p b { color: #fff; }
.fx-exc--panic .fx-pill { background: rgba(255,92,124,.16); color: #ff8aa3; }
.fx-exc--panic .fx-pill .icon { animation: fx-blink 1.2s steps(1) infinite; }
.fx-phbar { display: flex; gap: 4px; height: 10px; margin-bottom: 16px; }
.fx-phbar i { border-radius: 5px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.fx-phbar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #ff5c7c, #f2a900); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease) var(--d); }
.go .fx-phbar i::after { transform: none; }
.fx-phs { display: flex; flex-direction: column; gap: 6px; }
.fx-ph { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); font-size: 13.5px; opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--d), transform .5s var(--ease) var(--d); }
.go .fx-ph { opacity: 1; transform: none; }
.fx-ph .n { width: 24px; height: 24px; border-radius: 7px; background: rgba(255,92,124,.18); color: #ff8aa3; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.fx-ph .m { font-family: var(--mono); font-size: 12px; color: rgba(246,243,255,.6); }
.fx-tip { display: flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 13px; color: rgba(246,243,255,.65); }

/* ---------- 06 Focus ---------- */
.fx-focus { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.fx-focus .fx-head { text-align: left; margin: 0 0 26px; }
.fx-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.fx-ticks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--text-2); }
.fx-ticks li b { color: var(--text); }
.fx-ticks li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid #b9a6ff; border-bottom: 2px solid #b9a6ff; transform: rotate(-45deg); }
.fx-focus-v { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 34px; border-radius: 26px; background: rgba(255,255,255,.035); border: 1px solid var(--fx-line); }
.fx-ring { position: relative; width: 240px; height: 240px; }
.fx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fx-ring circle { fill: none; stroke-width: 8; }
.fx-ring .tr { stroke: rgba(255,255,255,.07); }
.fx-ring .pr { stroke: #8b6dff; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 99.9)); filter: drop-shadow(0 0 10px rgba(139,109,255,.7)); transition: stroke-dashoffset 1s linear; }
.fx-ring-v { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.fx-ring-v span, .fx-ring-v small { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; }
.fx-ring-v b { font-size: 50px; font-weight: 600; font-family: var(--mono); letter-spacing: -.04em; line-height: 1.1; }
.fx-goal { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.06); font-size: 13px; }
.fx-ambs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.fx-amb { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--fx-line); font-size: 12.5px; color: var(--text-2); transition: all .35s; }
.fx-amb em { font-style: normal; }
.fx-amb.on { background: var(--accent-soft); border-color: rgba(139,109,255,.5); color: var(--text); }
.fx-wkbars { width: 100%; }
.fx-wkbars > small { font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.fx-wkbars > div { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 90px; margin-top: 10px; align-items: end; }
.fx-wkbars span { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.fx-wkbars i { width: 100%; height: 0; border-radius: 6px 6px 3px 3px; background: linear-gradient(#b14dff, #6c47ff); transition: height 1s var(--ease) var(--d); }
.go .fx-wkbars i { height: calc(var(--h) * .7); min-height: 3px; }
.fx-wkbars small { font-size: 11px; color: var(--text-3); }

/* ---------- 07 Ensemble ---------- */
.fx-tgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fx-tg { padding: 14px 14px 20px; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.fx-tg-v { position: relative; height: 130px; border-radius: 14px; margin-bottom: 16px; display: grid; place-items: center; padding: 14px; background: var(--ed-grad); overflow: hidden; isolation: isolate; }
.fx-tg-v::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .45; background-image: radial-gradient(var(--ed-dots) 1px, transparent 1.2px); background-size: 16px 16px; }
.fx-tg-t { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.fx-tg-t .fx-ico { width: 32px; height: 32px; border-radius: 9px; }
.fx-tg-t .fx-ico .icon { width: 16px; height: 16px; }
.fx-tg p { font-size: 13.5px; padding: 0 6px; }
.fx-tg--0, .fx-tg--4, .fx-tg--6, .fx-tg--7 { grid-column: span 2; }
.fx-tg--0 .fx-tg-v, .fx-tg--4 .fx-tg-v { height: 160px; }
.tv-chat { width: 100%; max-width: 380px; background: var(--surface); border-radius: 12px; padding: 12px; box-shadow: var(--ed-shadow); display: flex; flex-direction: column; gap: 8px; }
.tv-chat small { font-size: 11px; font-weight: 650; color: var(--text-3); }
.tv-chat div { display: flex; gap: 8px; align-items: flex-start; opacity: 0; transform: translateY(6px); transition: all .5s var(--ease) calc(var(--d) + .3s); }
.go .tv-chat div { opacity: 1; transform: none; }
.tv-chat div > span, .tv-room div span { width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 650; display: grid; place-items: center; flex: none; }
.tv-chat p { font-size: 12px; line-height: 1.35; margin: 0; color: var(--text-2); }
.tv-chat p b { display: block; color: var(--text); font-size: 11.5px; }
.tv-qa { width: 100%; max-width: 200px; background: var(--surface); border-radius: 12px; padding: 12px; box-shadow: var(--ed-shadow); display: flex; flex-direction: column; gap: 6px; position: relative; }
.tv-qa span { color: var(--success); }
.tv-qa i { height: 6px; border-radius: 4px; background: var(--bg-sunken); }
.tv-qa b { position: absolute; right: 10px; top: 10px; font-size: 11px; color: var(--xp); background: var(--xp-soft); padding: 2px 7px; border-radius: 6px; }
.tv-dm { width: 100%; max-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.tv-dm span { height: 26px; width: 70%; border-radius: 12px 12px 12px 4px; background: var(--surface); box-shadow: var(--shadow); }
.tv-dm span.me { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: var(--brand-grad); }
.tv-dm span.sm { width: 40%; }
.tv-room { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tv-room b { font-family: var(--mono); font-size: 26px; font-weight: 600; }
.tv-room div { display: flex; }
.tv-room div span { margin-left: -6px; border: 2px solid var(--surface); width: 28px; height: 28px; }
.tv-room > .icon { color: var(--success); animation: fx-blink 1.4s steps(1) infinite; }
.tv-grp { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 360px; background: var(--surface); border-radius: 12px; padding: 16px; box-shadow: var(--ed-shadow); }
.tv-grp .fx-flame .icon { width: 26px; height: 26px; }
.tv-grp b { font-size: 24px; font-weight: 680; }
.tv-grp .fx-bar { flex: 1; }
.tv-duel { display: flex; align-items: center; gap: 12px; position: relative; }
.tv-duel b { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--ed-shadow); font-size: 24px; font-weight: 680; }
.tv-duel span { font-size: 12px; font-weight: 800; color: var(--accent-text); }
.tv-duel-t { position: absolute; left: 0; right: 0; bottom: -14px; height: 4px; border-radius: 3px; background: var(--brand-grad); transform-origin: left; animation: fx-timer 15s linear infinite; }
@keyframes fx-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.tv-br { display: grid; grid-template-columns: repeat(5, 22px); gap: 7px; justify-content: center; }
.tv-br span { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-grad); box-shadow: var(--shadow); transition: opacity .5s, transform .5s; }
.go .tv-br span.out { opacity: .2; transform: scale(.7); }
.tv-br small { grid-column: 1 / -1; text-align: center; font-size: 11px; font-weight: 600; color: var(--text-2); margin-top: 2px; }
.tv-lb { width: 100%; max-width: 200px; display: flex; flex-direction: column; gap: 4px; }
.tv-lb div { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 9px; background: var(--surface); font-size: 12px; box-shadow: var(--shadow); }
.tv-lb div span { color: var(--text-3); font-family: var(--mono); }
.tv-lb div b { margin-left: auto; font-family: var(--mono); font-size: 11.5px; }
.tv-lb div.me { background: var(--brand-grad); color: #fff; } .tv-lb div.me span { color: rgba(255,255,255,.7); }

/* ---------- 08 Progresser ---------- */
.fx-prog { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; }
.fx-rep { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.fx-rep-h { display: flex; align-items: center; gap: 12px; }
.fx-rep-h b { display: block; font-size: 17px; } .fx-rep-h small { color: var(--text-3); font-size: 12.5px; }
.fx-rep-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fx-rep-stats div { padding: 14px; border-radius: 14px; background: var(--bg-sunken); }
.fx-rep-stats small { font-size: 12px; color: var(--text-3); }
.fx-rep-stats b { display: block; font-size: 24px; font-weight: 660; letter-spacing: -.03em; margin-top: 2px; }
.fx-eff { position: relative; padding: 18px; border-radius: 16px; background: var(--hero-grad); color: #fff; overflow: hidden; }
.fx-eff small { font-size: 12px; opacity: .7; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.fx-eff b { display: block; font-size: 40px; font-weight: 680; letter-spacing: -.04em; line-height: 1.1; }
.fx-eff b::before { content: '+'; }
.fx-eff > span { font-size: 13px; opacity: .8; }
.fx-eff svg { position: absolute; right: 0; bottom: 0; width: 55%; height: 70%; }
.fx-eff path { fill: none; stroke: rgba(255,255,255,.8); stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2s var(--ease) .4s; }
.go .fx-eff path { stroke-dashoffset: 0; }
.fx-rep-n { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 12px; font-size: 13.5px; font-weight: 540; }
.fx-rep-n.good { background: var(--success-soft); color: var(--success); } .fx-rep-n.good .icon { transform: scaleY(-1); }
.fx-rep-n.bad { background: var(--warning-soft); color: var(--warning); }
.fx-prog-r { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fx-stat, .fx-badges, .fx-nbk { padding: 24px; }
.fx-stat { grid-column: span 2; }
.fx-stat h3, .fx-badges h3, .fx-nbk h3 { margin-bottom: 14px; }
.fx-heat { display: grid; grid-template-columns: repeat(16, 1fr); gap: 5px; }
.fx-heat i { aspect-ratio: 1; border-radius: 5px; transform: scale(0); transition: transform .4s var(--ease) var(--d); }
.go .fx-heat i { transform: none; }
.fx-leg { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 12.5px; color: var(--text-2); }
.fx-leg span { display: inline-flex; align-items: center; gap: 6px; }
.fx-medals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fx-medal { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; transform: scale(.6); opacity: 0; transition: all .5s var(--ease) var(--d); }
.go .fx-medal { transform: none; opacity: 1; }
.fx-medal .icon { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: linear-gradient(135deg, #ffd66b, #f2a900); color: #6b4300; box-shadow: 0 6px 16px -6px rgba(242,169,0,.7); }
.fx-medal.lock .icon { background: var(--bg-sunken); color: var(--text-3); box-shadow: none; }
.fx-medal em { font-style: normal; font-size: 11px; color: var(--text-2); line-height: 1.25; }
.fx-nbk p { margin: -8px 0 14px; font-size: 13px; }
.fx-nbs { display: flex; flex-direction: column; gap: 6px; }
.fx-nb { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border); font-size: 12.5px; }
.fx-nb-i { position: relative; width: 20px; height: 20px; border-radius: 6px; background: var(--danger-soft); color: var(--danger); display: grid; place-items: center; transition: background .4s var(--d); }
.fx-nb-i .icon { position: absolute; width: 12px; height: 12px; transition: opacity .4s var(--d); }
.fx-nb-i .icon:last-child { opacity: 0; color: var(--success); }
.go .fx-nb-i { background: var(--success-soft); } .go .fx-nb-i .icon:first-child { opacity: 0; } .go .fx-nb-i .icon:last-child { opacity: 1; }

/* ---------- 09 Partout ---------- */
.fx-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fx-tile { padding: 24px; display: flex; flex-direction: column; gap: 4px; transition: transform .3s var(--ease); }
.fx-tile h3 { margin-top: 12px; }
.fx-page .ed-final-wrap { padding-top: 130px; }

/* ---------- Adaptatif ---------- */
@media (max-width: 1040px) {
  .fx-pr, .fx-plan, .fx-prog, .fx-focus { grid-template-columns: 1fr; }
  .fx-sigs, .fx-modes { grid-template-columns: repeat(2, 1fr); }
  .fx-habits { grid-template-columns: 1fr 1fr; }
  .fx-tgs { grid-template-columns: repeat(2, 1fr); }
  .fx-pfs { grid-template-columns: 1fr 1fr; }
  .fx-focus .fx-head { text-align: center; margin: 0 auto 26px; }
  .fx-ticks { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 860px) {
  .fx-duo, .fx-ex { grid-template-columns: 1fr; }
  .fx-stats { grid-template-columns: repeat(2, 1fr); }
  .fx-orbit-r.r1 { width: 760px; height: 760px; }
  .fx-orbit-r.r1 span { transform: rotate(var(--a)) translateY(-380px) rotate(calc(-1 * var(--a))); }
}
@media (max-width: 640px) {
  .fx-hero { padding: 64px 0 48px; }
  .fx-chap { padding-top: 90px; }
  .fx-head { margin-bottom: 36px; }
  .fx-head p { font-size: 15.5px; }
  .fx-sigs, .fx-modes, .fx-habits, .fx-tgs, .fx-pfs, .fx-tiles, .fx-prog-r { grid-template-columns: 1fr; }
  .fx-tg--0, .fx-tg--4, .fx-tg--6, .fx-tg--7, .fx-stat { grid-column: auto; }
  .fx-qtypes { grid-template-columns: 1fr; }
  .fx-qt-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .fx-qt { flex: none; }
  .fx-dark { padding: 72px 0 64px; border-radius: 24px; }
  .fx-mock { flex-direction: column; align-items: stretch; }
  .fx-grade { margin: 0 auto; }
  .fx-exc, .fx-panel-t { padding: 24px; }
  .fx-curve { padding: 20px 14px 10px; }
  .fx-curve svg { height: 180px; }
  .fx-cal { padding: 10px; overflow-x: auto; }
  .fx-cal-days, .fx-cal-grid { min-width: 520px; }
  .fx-focus-v { padding: 24px 16px; }
  .fx-stats b { font-size: 32px; }
  .fx-index { top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-page *, .fx-page *::before, .fx-page *::after { animation: none !important; transition: none !important; }
}
