/* Étincelle — composants : séance, exercices, parcours, tableaux de bord */
.q-big { font: 800 clamp(40px, 8vw, 72px)/1.1 var(--f-head); letter-spacing: .02em; }
.q-expr { font: 800 clamp(30px, 5vw, 46px)/1.2 var(--f-head); white-space: nowrap; }
.q-sub { font-weight: 700; color: var(--muted); margin-top: 8px; font-size: 18px; }
.q-text { font-size: 20px; line-height: 1.6; text-align: left; max-width: 640px; margin: 0 auto; }
.q-objs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 44px; max-width: 380px; margin: 0 auto; }
.q-emoji { font-size: 84px; line-height: 1.1; } .q-emoji.sm { font-size: 52px; }
.q-listen { font-size: 64px; }
.blank { display: inline-block; min-width: 1.2em; color: var(--brand); border-bottom: 3px dashed var(--brand); text-align: center; }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-size: .8em; margin: 0 .1em; }
.frac span:first-child { border-bottom: 3px solid currentColor; padding: 0 .15em; }
.q-vert { font: 800 clamp(30px, 5vw, 44px)/1.15 var(--f-head); margin: 0 auto; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.q-vert td { text-align: right; padding: 0 4px; } .q-vert td:first-child { padding-right: 10px; color: var(--muted); } .q-vert tr.ln td { border-bottom: 4px solid var(--ink); }
.q-col { display: inline-flex; flex-direction: column; align-items: flex-end; font: 800 clamp(28px, 5vw, 40px)/1.2 var(--f-head); font-variant-numeric: tabular-nums; padding: 6px 14px 8px; border-bottom: 4px solid var(--ink); }
sup { font-size: .55em; } sub { font-size: .55em; }

/* Séance */
.session { max-width: 820px; margin: 0 auto; padding: 18px 16px; }
.s-top { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.s-title { font: 700 18px var(--f-head); text-align: center; flex: 1; }
.s-timer { font-weight: 800; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; } .s-timer .over { color: var(--bad); }
.s-progress { height: 10px; background: #EDE6DB; border-radius: 99px; margin: 14px 0 8px; overflow: hidden; }
.s-progress div { height: 100%; background: linear-gradient(90deg, var(--dc), var(--brand-2)); border-radius: 99px; transition: width .4s; width: 0; }
.s-dots { display: flex; justify-content: center; gap: 7px; margin-bottom: 14px; }
.s-dots span { width: 14px; height: 14px; border-radius: 50%; background: #E4DDD1; } .s-dots .ok { background: var(--good); } .s-dots .ko { background: var(--bad); } .s-dots .cur { background: var(--dc); box-shadow: 0 0 0 4px rgba(0,0,0,.07); }
.s-card { background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: 26px 22px 30px; text-align: center; border: 1px solid var(--line); border-top: 6px solid var(--dc); min-height: 320px; }
.s-card.pop { animation: pop .35s ease; } @keyframes pop { from { transform: scale(.97); opacity: .4; } to { transform: none; opacity: 1; } }
.s-num { font-weight: 800; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.s-q { position: relative; margin: 6px 0 22px; overflow-x: auto; }
.btn-voice { border: 0; background: var(--soft); width: 52px; height: 52px; border-radius: 50%; font-size: 24px; cursor: pointer; margin-top: 12px; }
.s-answer { display: flex; gap: 10px; justify-content: center; align-items: stretch; flex-wrap: wrap; }
.ans-input { width: 180px; font: 800 30px var(--f-head); text-align: center; margin: 0; border-width: 2.5px; border-radius: 16px; padding: 6px 10px; }
.ans-input.wide { width: min(100%, 460px); font: 700 24px var(--f-school); }
.shake { animation: shake .35s; } @keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.keypad { display: grid; grid-template-columns: repeat(4, 64px); gap: 8px; justify-content: center; margin-top: 16px; }
.keypad button { height: 56px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); font: 800 24px var(--f-head); cursor: pointer; color: var(--ink); }
.keypad button:active { background: #EFE7DA; } .keypad .zero { grid-column: span 3; }
.s-choices { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.s-choices.wide { flex-direction: column; align-items: stretch; max-width: 560px; margin: 0 auto; }
.choice { min-width: 96px; min-height: 64px; padding: 10px 20px; border-radius: 18px; border: 2.5px solid var(--line); background: #fff; font: 800 22px var(--f-head); cursor: pointer; color: var(--ink); transition: transform .1s; }
.s-choices.wide .choice { font: 700 18px var(--f-body); text-align: left; }
.s-choices.big .choice { min-width: 110px; min-height: 100px; font-size: 48px; font-family: var(--f-school); }
.choice:hover { border-color: var(--dc); transform: translateY(-2px); } .choice.right { background: #E3F6EE; border-color: var(--good); } .choice.wrong { background: #FDE8E8; border-color: var(--bad); opacity: .7; }
.s-tools { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.parent-row { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; font-weight: 700; color: var(--muted); }
#mic.listening { background: var(--bad); border-color: var(--bad); animation: pulse 1s infinite; } @keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(214,69,69,.15); } }
.trace-cv { touch-action: none; background: #FFFDF9; border: 2px dashed var(--line); border-radius: 20px; cursor: crosshair; }
.flash-stage { min-height: 180px; display: grid; place-items: center; } .flash-num { font: 800 110px/1 var(--f-head); color: var(--dc); } .flash-num.dim { opacity: .15; }
.s-feedback { min-height: 56px; margin-top: 14px; text-align: center; font-size: 18px; border-radius: 16px; padding: 0; opacity: 0; transition: opacity .2s; }
.s-feedback.show { opacity: 1; padding: 14px; } .s-feedback.good { background: #E3F6EE; color: #11694D; } .s-feedback.retry { background: #FFF4DE; color: #7A5300; } .s-feedback.bad { background: #FDE8E8; color: #8A2020; }
.summary h2 { margin-top: 10px; } .verdict { font-size: 18px; max-width: 520px; margin: 0 auto 18px; }
.stars { font-size: 56px; letter-spacing: 6px; color: #E6DED2; } .stars .on { color: #FFB800; text-shadow: 0 2px 0 #D68A00; }
.missed { text-align: left; max-width: 560px; margin: 0 auto 18px; background: var(--bg); border-radius: 14px; padding: 10px 16px; }
.missed summary { cursor: pointer; font-weight: 800; } .missed li { margin: 10px 0; } .mini-q { transform: scale(.6); transform-origin: left top; height: 46px; overflow: hidden; }
.mini-q .q-text, .mini-q .q-sub { font-size: 26px; }

/* Parcours */
.hello { display: flex; gap: 16px; align-items: center; padding: 28px 0 12px; } .hello h1 { margin: 0; } .hello p { margin: 0; color: var(--muted); }
.hello-av { width: 68px; height: 68px; border-radius: 22px; background: #fff; display: grid; place-items: center; font-size: 40px; box-shadow: var(--shadow); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 16px; }
.tabs a { white-space: nowrap; text-decoration: none; font-weight: 800; color: var(--ink); background: #fff; border: 1.5px solid var(--line); padding: 9px 16px; border-radius: 999px; }
.tabs a.on { background: var(--dc); border-color: var(--dc); color: #fff; }
.today { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: #fff; border-radius: 24px; padding: 24px; box-shadow: var(--shadow); border-left: 8px solid var(--dc); margin-bottom: 18px; }
.today p { margin: 0; color: var(--muted); } .today .eyebrow { color: var(--dc); }
.ladder { display: grid; gap: 8px; margin-bottom: 14px; }
.rung { display: grid; grid-template-columns: 34px 56px 1fr 70px 60px auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; }
.rung { cursor: pointer; transition: background .15s, border-color .15s; } .rung:hover { border-color: var(--dc); background: #FFFDF9; }
.rung.cur { border: 2px solid var(--dc); box-shadow: var(--shadow); cursor: default; } .rung.lock { opacity: .6; } .rung.done .rung-st { color: var(--good); }
.rung-st { font-size: 20px; text-align: center; color: var(--dc); font-weight: 800; } .rung-id { font: 800 18px var(--f-head); color: var(--dc); }
.rung-txt b { display: block; } .rung-txt span { font-size: 13px; color: var(--muted); } .rung-age, .rung-best { font-size: 13px; font-weight: 700; color: var(--muted); }
.rung-act { display: flex; gap: 4px; justify-content: flex-end; }
@media (max-width: 700px) { .rung { grid-template-columns: 28px 44px 1fr; } .rung-age, .rung-best { display: none; } .rung-act { grid-column: 1 / -1; justify-content: flex-start; } }

/* Profils */
.prof-list { display: grid; gap: 10px; margin-bottom: 20px; }
.prof { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; flex-wrap: wrap; } .prof.on { border: 2px solid var(--brand); }
.prof-av { font-size: 36px; } .prof-txt { flex: 1; } .prof-txt b { display: block; font-size: 18px; } .prof-txt span { color: var(--muted); font-size: 14px; }
.lbl { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.avatars { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; } .avatars input { display: none; }
.avatars span { display: grid; place-items: center; width: 52px; height: 52px; font-size: 28px; border-radius: 16px; background: var(--bg); border: 2px solid transparent; cursor: pointer; }
.avatars input:checked + span { border-color: var(--brand); background: #FFF0DA; } .avatars label { margin: 0; }
.empty { padding: 60px 0; } .empty-ico { font-size: 64px; }

/* Fiches */
.sheet-layout { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.sheet-form { position: sticky; top: 84px; } .seed { display: flex; gap: 6px; align-items: center; } .seed input { margin-top: 0; }
.lvl-info { margin-top: 14px; padding: 12px; background: var(--bg); border-radius: 12px; font-size: 14px; }
.sheet-preview { background: #E9E3D9; border-radius: var(--radius); padding: 20px; overflow: auto; max-height: calc(100vh - 120px); }
@media (max-width: 960px) { .sheet-layout { grid-template-columns: 1fr; } .sheet-form { position: static; } .sheet-preview { max-height: none; } }

/* Tarifs */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 10px 0 30px; }
.price { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price.hot { border: 2px solid var(--brand); transform: translateY(-6px); } .price.current { outline: 3px solid var(--good); }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-weight: 800; font-size: 12px; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.amt { font: 800 40px var(--f-head); margin: 4px 0 10px; } .amt small { font: 600 16px var(--f-body); color: var(--muted); }
.price ul { padding-left: 20px; flex: 1; } .price li { margin-bottom: 8px; } .price .btn { width: 100%; }
@media (max-width: 860px) { .prices { grid-template-columns: 1fr; } .price.hot { transform: none; } }

/* Progrès */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.kpis div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; text-align: center; } .kpis b { display: block; font: 800 30px var(--f-head); } .kpis span { font-size: 13px; color: var(--muted); font-weight: 700; }
.dom-progress { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.dp-head { display: flex; justify-content: space-between; align-items: center; } .dp-lvl { font-weight: 700; margin: 8px 0; min-height: 2.6em; }
.meter { height: 8px; background: #EEE7DC; border-radius: 99px; overflow: hidden; } .meter div { height: 100%; background: var(--dc); }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 60px; margin-top: 14px; border-bottom: 1px solid var(--line); }
.spark span { flex: 1; background: color-mix(in srgb, var(--dc) 45%, white); border-radius: 4px 4px 0 0; } .spark span.m { background: var(--dc); }
.tbl-wrap { overflow-x: auto; } .tbl { width: 100%; border-collapse: collapse; font-size: 14px; } .tbl th, .tbl td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

/* Boulier */
.abacus-tool svg { max-width: 100%; height: auto; } .abacus-tool .bead { cursor: pointer; transition: transform .1s; }
.ab-val { font: 700 22px var(--f-head); margin: 10px 0; } .ab-target { min-height: 32px; font-weight: 800; margin-top: 14px; font-size: 18px; }
.tips { text-align: left; } .tips li { margin-bottom: 6px; }

/* Notifications */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 14px; font-weight: 700; opacity: 0; transition: .25s; z-index: 99; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast.good { background: var(--good); } .toast.bad { background: var(--bad); }

/* Leçons : illustrations */
.lv-objs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 38px; }
.lv-count { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lv-count span { display: flex; flex-direction: column; align-items: center; font-size: 36px; }
.lv-count i { font: 800 18px var(--f-head); font-style: normal; color: var(--dc); }
.lv-frame { display: grid; grid-template-columns: repeat(5, 40px); gap: 4px; justify-content: center; padding: 6px; background: var(--ink); border-radius: 10px; width: max-content; margin: 0 auto; }
.lv-frame span { height: 40px; background: #fff; border-radius: 6px; position: relative; }
.lv-frame span.a::after, .lv-frame span.b::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--dc); }
.lv-frame span.b::after { background: var(--brand-2); }
.lv-line { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; border-top: 3px solid var(--ink); padding-top: 6px; max-width: 100%; }
.lv-line span { min-width: 34px; text-align: center; font: 800 18px var(--f-head); position: relative; padding-top: 4px; }
.lv-line span::before { content: ''; position: absolute; top: -12px; left: 50%; width: 2px; height: 10px; background: var(--ink); }
.lv-line span.hi { color: #fff; background: var(--dc); border-radius: 999px; }
.lv-line span.mk { outline: 2px dashed var(--dc); border-radius: 999px; }
.lv-eq { font: 800 clamp(20px, 3.4vw, 28px)/1.5 var(--f-head); text-align: center; }
.lv-big { font-size: clamp(30px, 6vw, 46px); text-align: center; line-height: 1.3; }
.faded { opacity: .25; }
.lv-colw { text-align: center; } .lv-vert { font-size: 34px; } .lv-vert .res { color: var(--good); }
.lv-table { margin: 0 auto; border-collapse: collapse; font-size: 18px; } .lv-table td { padding: 4px 14px; border-bottom: 1px solid var(--line); } .lv-table td:first-child { color: var(--muted); text-align: right; }
.lv-glyphs { display: flex; gap: 10px; justify-content: center; } .lv-glyphs .tg { width: 70px; max-height: none; }
.lv-grid { display: grid; gap: 8px; width: max-content; margin: 0 auto; } .lv-grid span { width: 26px; height: 26px; border-radius: 50%; background: var(--dc); }
.lv-grid .g1 { background: var(--brand-2); } .lv-grid .g2 { background: var(--good); }
.lv-pairs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; } .lv-pairs span { display: flex; flex-direction: column; align-items: center; font: 800 18px var(--f-head); } .lv-pairs b { font-size: 40px; }
.lv-bar { display: flex; width: 260px; max-width: 100%; height: 44px; margin: 0 auto; border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; }
.lv-bar span { flex: 1; border-right: 3px solid var(--ink); } .lv-bar span:last-child { border-right: 0; } .lv-bar span.on { background: var(--dc); }
.lv-cap { text-align: center; font: 800 22px var(--f-head); margin-top: 6px; }
.lv-compare { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; } .lv-compare > div { text-align: center; } .lv-compare b { font: 800 26px var(--f-head); color: var(--dc); }
.lv-compare .lv-objs { font-size: 30px; max-width: 200px; }

/* Leçons : écrans */
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.lesson-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border-top: 5px solid var(--dc); transition: transform .15s; }
.lesson-card:hover { transform: translateY(-3px); } .lesson-card.cur { outline: 3px solid var(--dc); } .lesson-card.lock { opacity: .55; }
.lesson-card h3 { font-size: 17px; margin: 8px 0 4px; } .lesson-card p { font-size: 13px; color: var(--muted); margin: 0; }
.lc-top { display: flex; justify-content: space-between; align-items: center; }
.lc-v { height: 96px; overflow: hidden; display: grid; place-items: center; margin-top: 8px; background: var(--bg); border-radius: 14px; }
.lc-v > * { transform: scale(.55); }
.lesson { padding-top: 18px; } .crumbs a { text-decoration: none; font-weight: 700; color: var(--muted); }
.lesson-head { padding: 14px 0 6px; } .lesson-head h1 { margin: 10px 0 4px; } .lesson-head p { color: var(--muted); }
.lcard { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin: 16px 0; box-shadow: var(--shadow); transition: box-shadow .2s; }
.lcard.reading { box-shadow: 0 0 0 4px var(--dc), var(--shadow); }
.lcard-v { background: var(--bg); border-radius: 16px; padding: 18px 10px; min-height: 120px; display: grid; place-items: center; overflow-x: auto; }
.lcard-t { position: relative; } .lcard-n { width: 34px; height: 34px; border-radius: 50%; background: var(--dc); color: #fff; font: 800 18px var(--f-head); display: grid; place-items: center; margin-bottom: 8px; }
.lcard-t h2 { font-size: 22px; } .lcard-t p { font-size: 18px; line-height: 1.55; }
@media (max-width: 680px) { .lcard { grid-template-columns: 1fr; } }
.lex { margin-top: 26px; } .lex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.lex-item { background: #fff; border-radius: 16px; padding: 10px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.lex-item .si { border: 0; } .lex-ans { font-weight: 800; color: var(--good); text-align: center; }
.ls-tip { background: #FFF5E6; border: 1px solid #F8DDB2; border-radius: 16px; padding: 14px 16px; margin: 22px 0; }
.lesson-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 10px 0 20px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; } .lesson-nav a { text-decoration: none; }
