/* ===== Tagg'App — design system (couleurs des maquettes : vert / bleu / orange / violet pastel / jaune) ===== */
:root {
  --navy: #14285A; --green: #1E9D50; --green-d: #167A3E; --green-l: #E6F5E9;
  --blue: #1B55B0; --blue2: #1B7FE0; --orange: #F5821F; --orange-l: #FFF0DD;
  --yellow: #FFC93C; --purple: #7C4DFF; --purple-d: #2E1A6E; --lav: #EFE5FF;
  --teal: #3FC5BA; --sky: #5BB5F5; --red: #E24B4B; --grey: #E4E8EF;
  --ink: #1D2A44; --mute: #6B7A90; --line: #E3E8F0; --bg: #F4F7FB; --card: #fff;
  --r: 18px; --shadow: 0 6px 18px rgba(20, 40, 90, .10);
  font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: #DDE6F3; color: var(--ink); }
body { font-size: 16px; line-height: 1.35; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
small { display: block; font-weight: 600; opacity: .8; font-size: .62em; margin-top: 2px; }
:focus-visible { outline: 3px solid var(--blue2); outline-offset: 2px; }
.hide { display: none !important; }
.row { display: flex; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; }
.gap { gap: 10px; } .gap-s { gap: 6px; } .grow { flex: 1; } .col { display: flex; flex-direction: column; } .center { text-align: center; }
.mt { margin-top: 14px; } .mt-s { margin-top: 8px; } .mb { margin-bottom: 14px; } .muted { color: var(--mute); }

/* ---------- Cadre téléphone (espace famille) ---------- */
#app { min-height: 100dvh; }
body.family #app { max-width: 480px; margin: 0 auto; background: #fff; position: relative; overflow: hidden; box-shadow: 0 0 40px rgba(20, 40, 90, .18); }
@media (min-width: 700px) { body.family #app { min-height: min(100dvh, 900px); margin-block: max(0px, calc((100dvh - 900px) / 2)); border-radius: 28px; } }
.screen { min-height: 100dvh; padding: 22px 20px 30px; display: flex; flex-direction: column; position: relative; }
@media (min-width: 700px) { .screen { min-height: min(100dvh, 900px); } }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
.iconbtn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 24px; display: grid; place-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 800; box-shadow: var(--shadow); font-size: 18px; }

/* Gros boutons */
.bigbtn { width: 100%; min-height: 78px; border: 0; border-radius: 22px; padding: 12px 20px; display: flex; align-items: center; gap: 16px; color: #fff; font-size: 24px; font-weight: 900; text-align: left; box-shadow: 0 6px 0 rgba(0, 0, 0, .16), 0 10px 18px rgba(0, 0, 0, .10); transition: transform .08s, box-shadow .08s; }
.bigbtn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .16); }
.bigbtn small { font-size: .62em; font-weight: 700; opacity: .92; }
.bigbtn .ic { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-items: center; font-size: 28px; flex: none; }
.bigbtn .ic.flag { background: none; padding: 0; }
.bigbtn .ic.flag svg { width: 100%; height: 100%; }
.bigbtn.green { background: var(--green); } .bigbtn.blue { background: var(--blue); } .bigbtn.blue2 { background: var(--blue2); } .bigbtn.orange { background: var(--orange); }
.bigbtn.yellow { background: var(--yellow); color: var(--purple-d); } .bigbtn.sky { background: var(--sky); color: var(--purple-d); } .bigbtn.purple { background: var(--purple); } .bigbtn.teal { background: var(--teal); } .bigbtn.grey { background: #8896AB; }
.bigbtn.small { min-height: 60px; font-size: 19px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Choix de la langue ---------- */
.lang-screen { background: #fff; justify-content: center; }
.lang-screen h1 { color: var(--navy); font-size: 34px; font-weight: 900; text-align: center; }
.lang-screen h2 { color: var(--green); font-size: 32px; font-weight: 900; text-align: center; margin-top: 4px; }
.lang-screen h3 { color: #6f7c93; font-size: 24px; font-weight: 800; text-align: center; margin: 8px 0 26px; }
.logo { text-align: center; font-size: 30px; font-weight: 900; color: var(--green); letter-spacing: -.5px; margin-bottom: 14px; }
.logo b { color: var(--orange); }
.logo-mark { width: 84px; height: 84px; margin: 0 auto 6px; display: block; }

/* ---------- Accueil / profils ---------- */
.home-screen { background: linear-gradient(#F0FAF1, #fff 55%); }
.home-hero { text-align: center; margin: 10px 0 20px; }
.home-hero h1 { font-size: 30px; color: var(--navy); margin-top: 6px; }
.profiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.profile { background: #fff; border: 3px solid var(--line); border-radius: 24px; padding: 16px 8px 12px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.profile:active { transform: scale(.97); }
.profile .nm { font-weight: 900; font-size: 20px; color: var(--navy); }
.profile .lv { font-size: 13px; font-weight: 800; color: var(--mute); display: flex; gap: 6px; }
.lvpill { border-radius: 999px; padding: 2px 9px; background: var(--green-l); color: var(--green-d); }
.lvpill.m { background: var(--orange-l); color: #B45A0A; }
.profile.add { border-style: dashed; color: var(--mute); justify-content: center; min-height: 170px; }
.avatar { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-size: 48px; color: #fff; font-weight: 900; background-size: cover; background-position: center; border: 4px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); flex: none; }
.avatar.xl { width: 120px; height: 120px; font-size: 62px; }
.avatar.s { width: 44px; height: 44px; font-size: 24px; border-width: 2px; }
.sync-note { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--mute); font-size: 13px; font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--grey); } .dot.green { background: #2FAE58; } .dot.orange { background: var(--orange); } .dot.red { background: var(--red); } .dot.grey { background: #CBD3DF; }
.link-staff { text-align: center; margin-top: 16px; font-size: 14px; }
.link-staff a { color: var(--blue); font-weight: 800; text-decoration: none; }

/* ---------- Accueil parent (maquette : fond vert clair) ---------- */
.parent-screen { background: linear-gradient(#EAF7EC, #F8FCF8 60%, #fff); }
.parent-head { text-align: center; }
.parent-head .avatar { margin: 0 auto 8px; }
.parent-head h1 { color: #0F4D24; font-size: 28px; }
.gradepill { display: inline-block; margin-top: 4px; padding: 2px 14px; font-weight: 800; color: #2C6B40; font-size: 15px; }
.parent-title { text-align: center; margin: 14px 0 16px; font-size: 40px; font-weight: 900; color: #0F4D24; }
.parent-title small { font-size: 22px; color: #3F8A55; display: block; }
.subject-card { border-radius: 20px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.subject-card.r { background: #DFF1E0; } .subject-card.m { background: var(--orange-l); }
.subject-card .ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: #fff; flex: none; }
.subject-card.r .ic { background: var(--green); } .subject-card.m .ic { background: var(--orange); }
.subject-card b { font-size: 22px; display: block; } .subject-card.r b { color: #14632F; } .subject-card.m b { color: #B45A0A; }
.subject-card span { color: #4a5b52; font-weight: 700; }
.weekdots { display: flex; justify-content: space-between; margin: 6px 6px 18px; }
.weekdots div { text-align: center; font-size: 11px; color: var(--mute); font-weight: 700; }
.weekdots i { display: block; width: 24px; height: 24px; border-radius: 50%; margin: 0 auto 4px; background: var(--grey); }
.weekdots i.green { background: #2FAE58; } .weekdots i.orange { background: var(--orange); } .weekdots i.red { background: var(--red); } .weekdots i.grey { background: #D3D9E3; }
.sect { text-align: center; color: var(--navy); font-weight: 800; margin: 4px 0; display: flex; align-items: center; gap: 10px; }
.sect::before, .sect::after { content: ''; flex: 1; height: 1px; background: #cfe0d3; }

/* ---------- Accueil enfant (maquette : violet pastel) ---------- */
.kid-screen { background: linear-gradient(#EADDFD, #F6EEFF 45%, #EFE3FF); overflow: hidden; }
.kid-hello { text-align: left; margin-top: 8px; }
.kid-hello h1 { color: #2D1A72; font-size: 34px; font-weight: 900; } .kid-hello h1 small { color: #5B3FD6; font-size: 19px; }
.kid-avatar { margin: 8px auto 4px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(#FFF3C9, #FFE7A0); display: grid; place-items: center; position: relative; box-shadow: 0 0 0 10px rgba(255, 255, 255, .5); }
.kid-avatar .avatar { width: 170px; height: 170px; font-size: 92px; }
.kid-q { text-align: center; color: #2D1A72; font-size: 30px; font-weight: 900; margin: 12px 0 14px; }
.kid-q small { font-size: 21px; color: #5B3FD6; }
.starcount { font-size: 22px; }
.levelbar { display: flex; gap: 4px; justify-content: center; margin-top: 4px; }
.levelbar i { width: 22px; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .12); } .levelbar i.on { background: var(--green); } .levelbar i.on.m { background: var(--orange); }

/* ---------- Exercices ---------- */
.ex-screen { background: #FFF8EC; }
.ex-top { display: flex; align-items: center; gap: 12px; }
.ex-top .back { font-size: 28px; }
.progress { flex: 1; display: flex; gap: 5px; }
.progress i { flex: 1; height: 12px; border-radius: 6px; background: #E9DFC9; } .progress i.done { background: var(--green); } .progress i.bad { background: var(--orange); } .progress i.cur { background: var(--purple); }
.ex-title { color: var(--purple-d); text-align: center; font-weight: 900; font-size: 22px; margin: 16px 0 6px; }
.stage { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 8px 0 14px; min-height: 180px; }
.bigtext { font-size: 84px; font-weight: 900; line-height: 1; background: linear-gradient(90deg, #7C4DFF, #14A8A0); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: 2px; text-shadow: 0 6px 18px rgba(124, 77, 255, .18); word-break: break-word; }
.bigtext.mid { font-size: 44px; } .bigtext.sm { font-size: 30px; line-height: 1.35; letter-spacing: 0; }
.bigemoji { font-size: 64px; line-height: 1.15; word-break: break-all; max-width: 100%; }
.bigemoji.one { font-size: 120px; } .bigemoji.sm { font-size: 40px; }
.story { font-size: 24px; font-weight: 800; color: #3B2A82; background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--shadow); line-height: 1.4; }
.replay { width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--teal); color: #fff; font-size: 40px; box-shadow: 0 6px 0 rgba(0, 0, 0, .14); margin: 6px auto 12px; display: grid; place-items: center; }
.replay.busy { animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.choices { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.choices.n3 { grid-template-columns: repeat(3, 1fr); }
.choice { min-height: 104px; border-radius: 22px; border: 4px solid #fff; font-size: 50px; font-weight: 900; box-shadow: 0 6px 0 rgba(0, 0, 0, .13), 0 8px 14px rgba(0, 0, 0, .08); color: #fff; display: grid; place-items: center; padding: 6px; transition: transform .1s; word-break: break-word; }
.choice.txt.long { font-size: 30px; }
.choice:nth-child(1) { background: var(--orange); } .choice:nth-child(2) { background: var(--teal); } .choice:nth-child(3) { background: var(--purple); } .choice:nth-child(4) { background: var(--sky); }
.choice.img { background: #fff !important; font-size: 64px; border-color: #E9DFC9; }
.choice.img.long { font-size: 52px; }
.choice:active { transform: translateY(4px); }
.choice.right { background: var(--green) !important; border-color: #C8F0D3; animation: pop .5s; color: #fff; }
.choice.wrong { background: var(--red) !important; animation: shake .4s; color: #fff; }
.choice.dim { opacity: .35; }
@keyframes pop { 40% { transform: scale(1.12); } }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.feedback { position: fixed; inset: 0; pointer-events: none; display: grid; place-items: center; z-index: 30; }
.feedback span { font-size: 150px; animation: floaty .9s ease-out forwards; }
@keyframes floaty { 0% { transform: scale(.3); opacity: 0; } 30% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1) translateY(-40px); opacity: 0; } }
.micbtn { border: 0; border-radius: 22px; min-height: 66px; background: var(--teal); color: #fff; font-weight: 900; font-size: 20px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 18px; box-shadow: 0 5px 0 rgba(0, 0, 0, .14); }
.micbtn.rec { background: var(--red); animation: pulse 1s infinite; }

/* ---------- Bilan ---------- */
.result-screen { background: linear-gradient(#FFF6DD, #FFFDF6); text-align: center; }
.result-screen h1 { font-size: 34px; color: var(--purple-d); margin: 10px 0; }
.bigstars { font-size: 46px; letter-spacing: 2px; margin: 6px 0; white-space: nowrap; } .bigstars .off { filter: grayscale(1); opacity: .25; }
.statcard { background: #fff; border-radius: 22px; padding: 16px; box-shadow: var(--shadow); margin: 12px 0; text-align: left; }
.statcard h3 { font-size: 16px; color: var(--mute); margin-bottom: 8px; }
.levelmsg { font-size: 26px; font-weight: 900; margin: 10px 0; } .levelmsg.up { color: var(--green); } .levelmsg.down { color: var(--orange); }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- Écrans divers ---------- */
.plain-screen { background: #fff; }
.field { margin: 12px 0; } .field label { display: block; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.input { width: 100%; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); background: #fff; font-size: 20px; font-weight: 700; }
.input:focus { border-color: var(--blue2); outline: none; }
.avatar-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.avatar-pick button { aspect-ratio: 1; border-radius: 16px; border: 3px solid var(--line); background: #fff; font-size: 28px; padding: 0; }
.avatar-pick button.on { border-color: var(--purple); background: var(--lav); }
.color-pick { display: flex; gap: 10px; flex-wrap: wrap; } .color-pick button { width: 40px; height: 40px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--line); } .color-pick button.on { box-shadow: 0 0 0 4px var(--navy); }
.big-check { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: var(--green-l); border-radius: 18px; font-weight: 700; }
.big-check input { width: 28px; height: 28px; flex: none; accent-color: var(--green); }
.ready-target { display: grid; place-items: center; gap: 22px; grid-template-columns: repeat(3, 1fr); margin: 24px 0; }
.ready-target button { border: 0; background: none; padding: 0; display: grid; place-items: center; min-height: 120px; }
.diffrow { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); margin-bottom: 10px; }
.diffrow .badge { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: #fff; flex: none; }
.bar { height: 10px; border-radius: 6px; background: var(--grey); overflow: hidden; } .bar > i { display: block; height: 100%; border-radius: 6px; background: var(--green); } .bar.warn > i { background: var(--orange); } .bar.bad > i { background: var(--red); }
.bdg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .bdg { text-align: center; background: #fff; border-radius: 20px; padding: 14px 6px; box-shadow: var(--shadow); font-weight: 800; font-size: 13px; } .bdg .ic { font-size: 46px; display: block; } .bdg.off .ic { filter: grayscale(1); opacity: .25; }
.week-cols { display: flex; gap: 8px; align-items: flex-end; height: 140px; padding-top: 10px; }
.week-cols > div { flex: 1; text-align: center; font-size: 12px; font-weight: 800; color: var(--mute); display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 4px; }
.week-cols i { display: block; border-radius: 8px 8px 4px 4px; background: var(--green); min-height: 6px; }
.rec-item { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 16px; padding: 10px; box-shadow: var(--shadow); margin-bottom: 8px; }
.langbtns { display: flex; gap: 8px; } .langbtns button { flex: 1; padding: 12px; border-radius: 14px; border: 3px solid var(--line); background: #fff; font-weight: 900; } .langbtns button.on { border-color: var(--green); background: var(--green-l); }

/* ---------- Boutons génériques ---------- */
.btn { border: 0; border-radius: 12px; padding: 10px 16px; font-weight: 800; background: #EAEFF7; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { filter: brightness(.97); } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--blue); color: #fff; } .btn.green { background: var(--green); color: #fff; } .btn.danger { background: #FBE5E5; color: #B12A2A; } .btn.ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 10px; }

/* ---------- Modales / toasts ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(15, 25, 50, .5); display: grid; place-items: center; z-index: 100; padding: 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: 18px; padding: 20px; width: min(480px, 100%); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); max-height: 94dvh; overflow-y: auto; } .modal.wide { width: min(820px, 100%); } .modal h3 { margin-bottom: 12px; font-size: 17px; color: var(--navy); }
#toasts { position: fixed; left: 0; right: 0; bottom: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 200; pointer-events: none; }
.toast { background: #1D2A44; color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); transition: opacity .4s; max-width: 90vw; } .toast.ok { background: #167A3E; } .toast.err { background: #B12A2A; } .toast.out { opacity: 0; }

a.btn { text-decoration: none; }

/* ===== Icônes Font Awesome + avatars ===== */
.i { display: inline-block; line-height: 1; vertical-align: -.1em; }
.fa-solid.i { width: 1.1em; text-align: center; }
.i.gold { color: #FFB400; background: linear-gradient(#FFE066, #FFA800); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 2px rgba(200, 120, 0, .35)); }
.i.dotc { width: 1em; height: 1em; border-radius: 50%; box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .15), inset 3px 3px 0 rgba(255, 255, 255, .3); }
.avatar svg, .mini-av svg { display: block; width: 100%; height: 100%; }
.avatar { overflow: hidden; }
.avatar-pick button { padding: 4px; } .mini-av { display: block; width: 100%; height: 100%; border-radius: 12px; background: #DCD3F5; overflow: hidden; }
.bigbtn .ic, .subject-card .ic, .diffrow .badge, .iconbtn { font-size: 24px; }
.bigbtn .ic { color: var(--navy); } .bigbtn.green .ic { color: var(--green); } .bigbtn.blue .ic, .bigbtn.blue2 .ic { color: var(--blue); } .bigbtn.orange .ic { color: var(--orange); } .bigbtn.purple .ic { color: var(--purple); } .bigbtn.teal .ic { color: #19998f; } .bigbtn.yellow .ic { color: #E0A100; } .bigbtn.sky .ic { color: #E8478B; }
.bigbtn .ic .i { width: auto; }
.replay { font-size: 38px; } .micbtn .i { font-size: 1.1em; }
.bigemoji .i { font-size: 1em; }
.feedback span .i { font-size: 1em; } .feedback span { font-size: 130px; color: #1FA34A; }
.side a .i { width: 1.3em; opacity: .9; } .kpi .ico .i { font-size: 1em; }
.kpi .ico { font-size: 34px; }
.alert .ic { font-size: 22px; color: #C96A0C; } .alert.red .ic { color: var(--red); }
.btn .i { font-size: .95em; }
.bdg .ic { font-size: 40px; color: var(--purple); } .bdg.off .ic { color: #b9b4c9; filter: none; opacity: .5; }
.bigstars .i { font-size: 1em; } .bigstars .off .i { filter: grayscale(1); opacity: .3; }
.chip .i { color: #FFB400; }
.iconbtn .i { color: var(--navy); } 

/* ===== Logo officiel ===== */
.brand-full { display: block; width: min(68%, 260px); height: auto; margin: 0 auto 6px; }
.brand-mark { display: block; width: 96px; height: auto; margin: 0 auto; }
.lang-screen { justify-content: flex-start; padding-top: 14px; }
.lang-screen h3 { margin: 6px 0 18px; }
.home-hero .brand-mark { width: 92px; }

/* ===== Avatars & tuiles d'icônes (style du logo : dégradés riches, reflets doux, coins arrondis) ===== */
.avatar { position: relative; background-image: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 58%); }
.avatar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 -8px 14px rgba(0, 0, 0, .14); pointer-events: none; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-pick { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.avatar-pick button { border-radius: 18px; padding: 5px; }
.mini-av { border-radius: 13px !important; background: linear-gradient(160deg, #2F73EA, #0A3C9E) !important; }
.mini-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* ===== Emojis Twemoji (contenu des exercices) ===== */
img.emo { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; margin: 0 .03em; user-select: none; }
.bigemoji img.emo { vertical-align: middle; margin: 0 .02em; filter: drop-shadow(0 4px 6px rgba(20, 40, 90, .16)); }
.choice.img img.emo { filter: drop-shadow(0 3px 4px rgba(20, 40, 90, .18)); }

/* ===== Tuiles d'icônes : dégradé riche + reflet, comme les pastilles du logo ===== */
.bigbtn .ic { width: 56px; height: 56px; border-radius: 17px; font-size: 26px; color: #fff !important; background: linear-gradient(160deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .12)) !important; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .6), inset 0 -3px 6px rgba(0, 0, 0, .12), 0 3px 8px rgba(0, 0, 0, .18); text-shadow: 0 2px 3px rgba(0, 0, 0, .22); }
.bigbtn.yellow .ic, .bigbtn.sky .ic { color: var(--purple-d) !important; background: linear-gradient(160deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .4)) !important; text-shadow: none; }
.bigbtn.yellow .ic { color: #B67900 !important; } .bigbtn.sky .ic { color: #0F55D6 !important; }
.bigbtn.green { background: linear-gradient(170deg, #34B85F, #178A45); } .bigbtn.blue { background: linear-gradient(170deg, #2A6ED8, #163F94); } .bigbtn.blue2 { background: linear-gradient(170deg, #2E93F0, #1667D0); }
.bigbtn.orange { background: linear-gradient(170deg, #FFA030, #EE7412); } .bigbtn.purple { background: linear-gradient(170deg, #8F63FF, #6236D8); } .bigbtn.teal { background: linear-gradient(170deg, #45D0C4, #21A398); }
.bigbtn.yellow { background: linear-gradient(170deg, #FFDA55, #FFBE1C); } .bigbtn.sky { background: linear-gradient(170deg, #79C8FF, #45A8F2); } .bigbtn.grey { background: linear-gradient(170deg, #9AA7BB, #74839B); }
.subject-card .ic, .diffrow .badge { border-radius: 16px !important; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .55), inset 0 -3px 6px rgba(0, 0, 0, .14), 0 3px 8px rgba(0, 0, 0, .16); }
.subject-card .ic { width: 54px; height: 54px; font-size: 26px; }
.subject-card.r .ic { background: linear-gradient(160deg, #4CC24A, #14892C); } .subject-card.m .ic { background: linear-gradient(160deg, #FFB03A, #F26F0E); }
.diffrow .badge { width: 48px; height: 48px; }
.iconbtn { box-shadow: 0 4px 12px rgba(20, 40, 90, .12), inset 0 -2px 0 rgba(20, 40, 90, .06); }
.replay { background: linear-gradient(160deg, #4ADBCF, #1EA097); box-shadow: 0 7px 0 rgba(0, 0, 0, .14), inset 0 2px 0 rgba(255, 255, 255, .45); }
.replay .i { text-shadow: 0 3px 4px rgba(0, 0, 0, .25); }

/* Badges de récompense : couleur à l'obtention, gris sinon */
.bdg { padding: 16px 6px 12px; }
.bdg .ic { width: 66px; height: 66px; margin: 0 auto 8px; border-radius: 20px; display: grid !important; place-items: center; font-size: 32px !important; color: #fff !important; opacity: 1 !important; filter: none !important; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -4px 8px rgba(0, 0, 0, .16), 0 6px 14px rgba(0, 0, 0, .18); text-shadow: 0 2px 3px rgba(0, 0, 0, .25); }
.bdg[data-k=reader] .ic { background: linear-gradient(160deg, #3D8BFF, #0B4FBF); } .bdg[data-k=counter] .ic { background: linear-gradient(160deg, #4CC24A, #14892C); }
.bdg[data-k=effort] .ic { background: linear-gradient(160deg, #FFB03A, #F26F0E); } .bdg[data-k=perfect] .ic { background: linear-gradient(160deg, #FFE066, #F5A800); } .bdg[data-k=climb] .ic { background: linear-gradient(160deg, #A07BFF, #6236D8); }
.bdg.off .ic { background: linear-gradient(160deg, #D5D9E4, #B4BACB) !important; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -3px 6px rgba(0, 0, 0, .08); text-shadow: none; opacity: .75 !important; }
.bdg.off { color: #98a0b3; }
/* Tuiles de matière : couleurs du logo (Lecture = bleu, Calcul = vert) */
.bigbtn .ic.t-blue { background: linear-gradient(160deg, #4E98FF, #0B4FBF) !important; color: #fff !important; text-shadow: 0 2px 3px rgba(0, 0, 0, .3); }
.bigbtn .ic.t-green { background: linear-gradient(160deg, #57CB4F, #14892C) !important; color: #fff !important; text-shadow: 0 2px 3px rgba(0, 0, 0, .3); }
/* Réponses : le texte s'adapte à la longueur du mot (jamais coupé en deux) */
.choice { word-break: normal; overflow-wrap: anywhere; hyphens: none; }
.choice.txt.long { font-size: 38px; } .choice.txt.xlong { font-size: 27px; }
.choice.txt { line-height: 1.05; }
/* ===== Créateur de personnage ===== */
.ab-prev { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 4px 0 10px; }
.ab-big { width: 128px; height: 128px; }
.ab-dice { border: 0; border-radius: 999px; min-height: 42px; padding: 0 18px; font-weight: 800; background: linear-gradient(170deg, #FFB03A, #F26F0E); color: #fff; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.ab-row { margin: 12px 0; } .ab-lab { font-weight: 800; font-size: 12.5px; color: var(--navy); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.ab-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-sw { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); padding: 0; cursor: pointer; }
.ab-sw.on { box-shadow: 0 0 0 3px var(--navy); transform: scale(1.08); }
.ab-th { width: 58px; height: 58px; border-radius: 50%; border: 3px solid transparent; padding: 0; background: none; cursor: pointer; }
.ab-th .avatar { width: 100%; height: 100%; border-width: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .16); }
.ab-th.on { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124, 77, 255, .2); }
.ab-presets { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 10px; scroll-snap-type: x proximity; }
.ab-pre { flex: none; width: 62px; height: 62px; border-radius: 50%; border: 3px solid transparent; padding: 0; background: none; cursor: pointer; scroll-snap-align: start; }
.ab-pre .avatar { width: 100%; height: 100%; border-width: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .16); }
.ab-pre.on { border-color: var(--purple); }
.photo-btn { min-height: 52px; border-radius: 16px; font-weight: 800; }
body.staff .ab-lab { font-size: 11.5px; } body.staff .ab-prev { flex-direction: row; justify-content: center; } body.staff .ab-big { width: 96px !important; height: 96px !important; }
/* ===== Accès parent : bouton à maintenir avec jauge circulaire ===== */
.gate-btn { --p: 0; position: relative; width: 150px; height: 150px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), #E4E8EF 0); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(20, 40, 90, .18); }
.gate-btn::before { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 3px 8px rgba(20, 40, 90, .12); }
.gate-ico { position: relative; font-size: 54px; color: var(--navy); line-height: 1; }
.gate-btn:active .gate-ico { transform: scale(.94); }
.gate-btn { margin: 4px auto 0; }

/* ===== Accueil parent (maquette « Jàng Bopp ») ===== */
.screen.ph { background: #FBF7F0; padding-bottom: 0; }
.ph-top { display: flex; align-items: center; justify-content: space-between; }
.ph-top .brand-mark { width: 78px; margin: 0; }
.ph-hello h1 { font-size: 30px; color: var(--navy); margin: 8px 0 2px; font-weight: 900; }
.ph-hello p { margin: 0 0 14px; color: var(--mute); font-weight: 600; font-size: 14.5px; }
.ph-child { display: flex; align-items: center; gap: 12px; background: #E8F1FF; border-radius: 16px; padding: 12px 14px; }
.phc-who { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; } .phc-who .avatar.s { width: 54px; height: 54px; border-width: 3px; }
.phc-who b { display: block; font-size: 21px; color: var(--navy); line-height: 1.1; } .phc-who small { font-size: 13px; color: #4D6A99; margin: 2px 0 0; opacity: 1; }
.phc-stars { display: flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid #BFD2F0; font-size: 26px; } .phc-stars b { display: block; font-size: 20px; color: var(--navy); line-height: 1; } .phc-stars small { font-size: 11.5px; color: #4D6A99; margin: 2px 0 0; opacity: 1; }
.phc-edit { width: 40px; height: 40px; border: 0; border-radius: 12px; background: #fff; color: var(--navy); font-size: 16px; box-shadow: 0 2px 6px rgba(20, 40, 90, .12); }
.ph-msg { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; margin-top: 12px; padding: 14px; border-radius: 18px; background: #FFF6E3; box-shadow: 0 4px 14px rgba(180, 120, 20, .12); }
.phm-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; color: #fff; background: linear-gradient(160deg, #3D8BFF, #0B4FBF); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 4px 10px rgba(11, 79, 191, .3); }
.phm-tx b { display: block; font-size: 18px; color: var(--navy); } .phm-tx span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.35; color: #4a4a58; font-weight: 600; }
.phm-btn { grid-column: 1 / -1; min-height: 52px; border: 0; border-radius: 14px; background: linear-gradient(170deg, #FFD34D, #FFB400); color: var(--navy); font-size: 18px; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 5px 0 rgba(0, 0, 0, .13); }
.phm-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .13); }
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.ph-tile { position: relative; min-height: 164px; border: 0; border-radius: 18px; padding: 14px; text-align: left; color: #fff; display: flex; flex-direction: column; justify-content: flex-start; gap: 3px; overflow: hidden; box-shadow: 0 6px 0 rgba(0, 0, 0, .14), 0 10px 18px rgba(0, 0, 0, .1); }
.ph-tile:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .14); }
.ph-tile::after { content: ''; position: absolute; left: -20%; right: -20%; bottom: -34px; height: 70px; border-radius: 50%; background: rgba(255, 255, 255, .17); }
.ph-tile.read { background: linear-gradient(165deg, #2DB766, #137A3B); } .ph-tile.math { background: linear-gradient(165deg, #3D8BFF, #0F4FB5); }
.ph-tile.follow { background: linear-gradient(165deg, #FFA73A, #E4640A); } .ph-tile.tips { background: linear-gradient(165deg, #8E67E8, #5733AE); }
.pt-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; margin-bottom: 8px; background: linear-gradient(160deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .15)); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .6); color: #fff; }
.ph-tile b { font-size: 21px; line-height: 1.1; text-shadow: 0 2px 3px rgba(0, 0, 0, .2); } .ph-tile small { font-size: 12.5px; opacity: .95; margin: 0; line-height: 1.25; max-width: 88%; }
.pt-go { position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 14px; color: var(--navy); box-shadow: 0 3px 8px rgba(0, 0, 0, .2); }
.ph-goal { margin-top: 14px; padding: 14px; border-radius: 18px; background: #EAF3FF; }
.phg-head { display: flex; gap: 12px; align-items: flex-start; } .phg-head > i { font-size: 30px; color: var(--navy); margin-top: 2px; }
.phg-head b { display: block; font-size: 19px; color: var(--navy); } .phg-head span { display: block; margin-top: 2px; font-size: 14px; color: #3D4C66; font-weight: 600; line-height: 1.35; }
.phg-bars { display: grid; gap: 8px; margin: 12px 0 4px; } .phg-bars span { font-size: 12.5px; font-weight: 800; color: var(--navy); } .phg-bars .bar { margin-top: 4px; height: 10px; } .phg-bars .bar.m > i { background: var(--blue2); }
.ph-goal .weekdots { margin: 10px 4px 12px; }
.phg-go { width: 100%; min-height: 56px; border: 0; border-radius: 14px; background: linear-gradient(170deg, #1FAE68, #12804A); color: #fff; font-size: 19px; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 5px 0 rgba(0, 0, 0, .15); }
.phg-go:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
/* barre de navigation du bas */
.bnav { position: sticky; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px -20px 0; padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #1A3470, #14285A); box-shadow: 0 -4px 16px rgba(20, 40, 90, .25); }
.bnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; color: rgba(255, 255, 255, .72); text-decoration: none; font-size: 12px; font-weight: 700; position: relative; }
.bnav a i { font-size: 21px; } .bnav a.on { color: #FFC93C; } .bnav a.on::after { content: ''; position: absolute; bottom: -2px; width: 44px; height: 3px; border-radius: 3px; background: #FFC93C; }
/* conseils */
.tipcard { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.tipcard p { flex: 1; margin: 0; font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.tipn { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; color: #fff; background: linear-gradient(160deg, #2DB766, #137A3B); }

/* ===== Confort application mobile (Android) ===== */
html { overscroll-behavior-y: contain; -webkit-text-size-adjust: 100%; }
body { overscroll-behavior-y: contain; }
button, a, .profile, .tile, .bigbtn, .tab, .nl { touch-action: manipulation; }
body:not(.staff) { user-select: none; -webkit-user-select: none; }
body:not(.staff) input, body:not(.staff) textarea, body:not(.staff) select { user-select: text; -webkit-user-select: text; }
body:not(.staff) .bigbtn:active, body:not(.staff) .profile:active, body:not(.staff) .tile:active, body:not(.staff) .iconbtn:active { transform: scale(.96); transition: transform .08s; }
@media (display-mode: standalone) { body:not(.staff) .link-staff a { padding: 10px 6px; display: inline-block; } }

/* ===== Centre famille (espace parent) ===== */
.linkbtn { background: none; border: 0; padding: 4px 2px; font: inherit; color: var(--blue); font-weight: 800; cursor: pointer; }
.hub { background: #F2F6FB; padding-bottom: calc(96px + env(safe-area-inset-bottom)); text-align: left; align-items: stretch; justify-content: flex-start; }
.hub > * { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }
.hub-top { display: flex; align-items: center; gap: 10px; padding: 4px 0 12px; position: sticky; top: 0; z-index: 5; background: #F2F6FB; }
.hub-top h1 { flex: 1; font-size: 20px; color: var(--navy); margin: 0; text-align: left; } .ht-r { display: flex; gap: 6px; }
.hub-top .iconbtn { width: 42px; height: 42px; font-size: 16px; color: var(--navy); }
.hb-card { background: #fff; border: 1px solid #E3E9F2; border-radius: 12px; padding: 14px; margin: 0 0 12px; box-shadow: none; text-align: left; font: inherit; color: var(--ink); display: block; width: 100%; text-decoration: none; }
.hb-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.hb-h h3 { font-size: 15.5px; color: var(--navy); margin: 0; display: flex; gap: 7px; align-items: center; } .hb-h small, .hb-h a { color: var(--mute); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.hb-h a { color: var(--blue); }
.hb-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 800; }
.hb-hero { background: linear-gradient(135deg, #167A3E, #1E9D50); color: #fff; border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.hb-hero small { opacity: .85; font-weight: 700; } .hb-hero h2 { margin: 2px 0 12px; font-size: 20px; text-transform: capitalize; color: #fff; text-align: left; }
.hb-hstats { display: flex; gap: 10px; } .hb-hstats > div { flex: 1; background: rgba(255, 255, 255, .16); border-radius: 10px; padding: 10px 12px; } .hb-hstats b { font-size: 24px; display: block; line-height: 1.1; } .hb-hstats span { font-size: 12px; opacity: .9; }
.hb-kid { border-top: 1px solid #EDF1F7; padding: 12px 0; } .hb-kid:first-of-type { border-top: 0; padding-top: 0; }
.hk-who { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; width: 100%; color: var(--ink); }
.hk-who b { display: block; font-size: 16px; } .hk-who small { color: var(--mute); font-size: 12.5px; }
.hk-bars { margin: 10px 0 8px; display: grid; gap: 6px; } .hb-bar span { font-size: 12.5px; font-weight: 700; color: var(--mute); display: block; margin-bottom: 3px; }
.hk-act { display: flex; gap: 8px; } .hk-act .btn { flex: 1; justify-content: center; }
.hb-rem { margin: 0; font-size: 15px; }
.hb-al { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; color: var(--ink); padding: 8px 0; border-top: 1px solid #EDF1F7; } .hb-al:first-of-type { border-top: 0; }
.hb-al b { display: block; font-size: 14px; } .hb-al small, .ha-t small { color: var(--mute); font-size: 12.5px; display: block; margin-top: 2px; }
.al-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; background: #E8EEF9; color: var(--blue); }
.al-ic.green { background: #DDF3E5; color: var(--green-d); } .al-ic.warn { background: #FFEBD2; color: #C96A0C; } .al-ic.red { background: #FDE1E1; color: var(--red); }
.hb-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .hb-quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 10px; background: #F2F6FB; color: var(--navy); text-decoration: none; font-weight: 800; font-size: 13px; text-align: center; }
.hb-quick i { font-size: 20px; color: var(--green-d); }
.hb-list { display: grid; gap: 0; }
.hb-kidrow { display: flex; align-items: center; gap: 12px; cursor: pointer; } .hb-kidrow .avatar { flex: none; } .kr-main { flex: 1; min-width: 0; } .kr-main b { font-size: 17px; } .kr-main small { display: block; color: var(--mute); font-size: 12.5px; margin: 2px 0 6px; }
.kr-lv { display: flex; gap: 6px; flex-wrap: wrap; } .lvpill.s { background: #FFF4CC; color: #8A6500; }
.hb-add { text-align: center; color: var(--green-d); font-weight: 800; border-style: dashed; }
.hb-prof { display: flex; gap: 14px; align-items: center; } .hb-prof h2 { margin: 0; font-size: 20px; text-align: left; color: var(--navy); } .hb-prof small { color: var(--mute); display: block; margin: 2px 0 8px; } .hp-act { display: flex; gap: 8px; flex-wrap: wrap; }
.hb-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.hb-tiles > div { background: #fff; border: 1px solid #E3E9F2; border-radius: 12px; padding: 10px 4px; text-align: center; } .hb-tiles i { color: var(--orange); font-size: 16px; } .hb-tiles b { display: block; font-size: 20px; color: var(--navy); line-height: 1.2; } .hb-tiles span { font-size: 10.5px; color: var(--mute); font-weight: 700; }
.hb-chart { display: flex; align-items: flex-end; gap: 3px; height: 96px; } .hb-chart i { flex: 1; border-radius: 3px 3px 0 0; min-width: 4px; }
.hb-leg { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 11px; color: var(--mute); font-weight: 700; } .hb-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; }
.hb-sk { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #EDF1F7; font-size: 14px; } .hb-sk:first-of-type { border-top: 0; }
.hb-sk b.ok { color: var(--green-d); } .hb-sk b.warn { color: #C96A0C; } .hb-sk b.bad { color: var(--red); }
.hb-tip { display: flex; gap: 12px; background: #FFF8E6; border-color: #F6E3A8; } .hb-tip > i { color: #E2A100; font-size: 22px; } .hb-tip p { margin: 4px 0 0; font-size: 14px; }
.hb-sess { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 8px 0; border-top: 1px solid #EDF1F7; font-size: 13.5px; } .hb-sess:first-of-type { border-top: 0; }
.hb-badges { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; } .hb-badges > div { text-align: center; opacity: .35; filter: grayscale(1); } .hb-badges > div.on { opacity: 1; filter: none; } .hb-badges span { font-size: 28px; display: block; } .hb-badges small { font-size: 11px; font-weight: 700; color: var(--mute); }
.hb-badges.inline { grid-template-columns: repeat(5, 36px); } .hb-badges.inline span { font-size: 22px; } .hb-brow { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-top: 1px solid #EDF1F7; } .hb-brow:first-of-type { border-top: 0; }
.hb-links { display: grid; } .hb-links a { padding: 12px 4px; color: var(--navy); font-weight: 700; text-decoration: none; border-top: 1px solid #EDF1F7; display: flex; gap: 10px; align-items: center; } .hb-links a:first-child { border-top: 0; } .hb-links i { color: var(--green-d); width: 22px; text-align: center; }
.hb-alert { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; } .hb-alert.read { opacity: .65; } .ha-t { flex: 1; min-width: 0; } .ha-t b { font-size: 14.5px; display: block; } .ha-d { font-size: 11.5px; color: #98A4B6; }
.hb-sw { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid #EDF1F7; font-size: 14px; cursor: pointer; position: relative; } .hb-sw:first-of-type { border-top: 0; }
.hb-sw input { position: absolute; opacity: 0; } .hb-sw i { flex: none; width: 44px; height: 26px; border-radius: 13px; background: #CBD3DF; position: relative; transition: background .15s; } .hb-sw i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.hb-sw input:checked + i { background: var(--green); } .hb-sw input:checked + i::after { transform: translateX(18px); } .hb-sw.mini { padding: 0; border: 0; width: auto; }
.hb-next { display: flex; gap: 12px; align-items: center; background: #E6F5E9; border-color: #BFE3C8; } .hb-next > i { font-size: 26px; color: var(--green-d); } .hb-next small { display: block; color: var(--green-d); font-weight: 700; } .hb-next b { font-size: 18px; color: var(--navy); display: block; } .hb-next span { font-size: 13px; color: var(--mute); }
.hb-plan { display: flex; align-items: center; gap: 12px; } .hb-plan.off { opacity: .55; } .hp-time { font-size: 26px; font-weight: 900; color: var(--navy); } .hp-m { flex: 1; min-width: 0; } .hp-m small { display: block; color: var(--mute); font-size: 12.5px; }
.iconbtn.sm { width: 36px; height: 36px; font-size: 14px; }
.hb-chips { display: flex; flex-wrap: wrap; gap: 6px; } .hb-chips button { border: 1px solid #D3DBE8; background: #fff; border-radius: 18px; padding: 7px 12px; font: inherit; font-weight: 700; font-size: 13px; color: var(--navy); cursor: pointer; } .hb-chips button.on { background: var(--green); border-color: var(--green); color: #fff; }
.hb-chal p { margin: 0 0 8px; } .hb-chal small { display: block; margin-top: 6px; color: var(--mute); font-weight: 700; }
.hb-rank { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #EDF1F7; } .hb-rank:first-of-type { border-top: 0; } .rk-m { font-size: 24px; width: 30px; text-align: center; } .rk-b { flex: 1; min-width: 0; } .rk-b .bar { margin: 4px 0; } .rk-b small { color: var(--mute); font-size: 12px; } .rk-s { font-size: 17px; color: #B07A00; }
.hnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid #E3E9F2; box-shadow: 0 -4px 18px rgba(20, 40, 90, .1); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); max-width: none !important; margin: 0 !important; }
.hn { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: #5B6B85; min-height: 52px; padding-top: 2px; -webkit-tap-highlight-color: transparent; }
.hp { position: relative; display: grid; place-items: center; width: 58px; height: 30px; border-radius: 16px; font-size: 18px; transition: background .18s; } .hl { font-size: 11px; font-weight: 700; line-height: 1; }
.hn.on { color: var(--green-d); } .hn.on .hp { background: #DDF3E5; } .hn.on .hl { font-weight: 800; }
.hb { position: absolute; top: -4px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center; }
.alarm-wrap { position: fixed; inset: 0; z-index: 200; background: rgba(10, 25, 50, .72); display: grid; place-items: center; padding: 16px; }
.alarm { background: #fff; border-radius: 16px; padding: 22px 18px; width: min(380px, 100%); text-align: center; display: grid; gap: 10px; }
.alarm h2 { margin: 0; color: var(--navy); font-size: 22px; } .alarm p { margin: 0; color: var(--mute); }
.al-bell { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: #FFF0DD; color: var(--orange); font-size: 32px; animation: ring 0.9s ease-in-out infinite; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-6deg); } }
.al-kids { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; } .al-kid { display: flex; align-items: center; gap: 8px; border: 2px solid var(--green); background: #E6F5E9; border-radius: 12px; padding: 8px 14px 8px 8px; font: inherit; font-weight: 800; color: var(--navy); cursor: pointer; }
.avatar.l { width: 76px; height: 76px; font-size: 40px; flex: none; }

.keybox { display: flex; align-items: center; gap: 8px; background: #F2F6FB; border: 1px dashed #B8C4D8; border-radius: 10px; padding: 10px; } .keybox b { flex: 1; font-size: 19px; letter-spacing: 2px; color: var(--navy); text-align: center; font-family: ui-monospace, Consolas, monospace; }
.hb-sync { display: flex; align-items: center; gap: 12px; } .hb-sync > i:first-child { font-size: 22px; color: var(--green-d); } .hb-sync.warn > i:first-child { color: #C96A0C; } .hb-sync div { flex: 1; min-width: 0; } .hb-sync b { display: block; font-size: 14px; } .hb-sync small { color: var(--mute); font-size: 12px; } .hb-sync > i:last-child { color: #A9B4C6; }

/* ===== Plein écran : l'application dessine jusqu'aux bords ; on garde les marges de l'encoche ===== */
body.family .screen { padding-top: calc(22px + env(safe-area-inset-top)); padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
body.family .screen.hub { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.hub-top { padding-top: calc(4px + env(safe-area-inset-top)); }

/* ===== Revue mobile : accueil, création, prise en main, navigation parent ===== */
body.hubbody, body.family:has(.hnav) { background: #F2F6FB; }
.screen:has(.hnav) { background: #F2F6FB; }
.ph:has(.hnav), .plain-screen:has(.hnav) { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.hnav { z-index: 60; }
.keybox b { font-size: 16px; letter-spacing: 1px; white-space: nowrap; }
.hb-msg { display: flex; gap: 12px; background: #EEF4FF; border-color: #CFDCF5; } .hb-msg > i { font-size: 22px; color: var(--blue); margin-top: 2px; } .hb-msg p { margin: 4px 0 10px; font-size: 14px; }
/* accueil */
.home-screen { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.profile.add .add-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--green-l); color: var(--green-d); display: grid; place-items: center; font-size: 26px; }
.home-empty { display: grid; justify-items: center; gap: 14px; text-align: center; margin-top: 8px; padding: 22px 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.home-empty .he-ic { width: 84px; height: 84px; border-radius: 50%; background: var(--green-l); color: var(--green-d); display: grid; place-items: center; font-size: 38px; }
.home-empty p { margin: 0; color: var(--mute); font-weight: 700; max-width: 260px; } .home-empty .bigbtn { width: 100%; } .he-restore { width: 100%; justify-content: center; }
.home-foot { margin-top: auto; padding-top: 22px; display: grid; gap: 12px; justify-items: center; }
.hs { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 16px; } .hs.ok { background: #DDF3E5; color: var(--green-d); } .hs.warn { background: #FFEBD2; color: #C96A0C; }
.home-dock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.hd { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--navy); font: inherit; font-size: 12.5px; font-weight: 800; text-decoration: none; cursor: pointer; text-align: center; }
.hd i { font-size: 20px; color: var(--blue); } .hd:active { transform: scale(.97); }
/* prise en main */
.ready-target.one { grid-template-columns: 1fr; }
.ready-badge { width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; font-size: 58px; color: #fff; margin: 0 auto 14px; box-shadow: 0 10px 24px rgba(20, 40, 90, .2); }
.ready-badge.ok { background: linear-gradient(160deg, #3FCB73, #1E9D50); } .ready-badge.help { background: linear-gradient(160deg, #FFB03A, #F26F0E); }
/* création d'un enfant : réglages fins repliés */
.ab-more { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0 12px 6px; } .ab-more > summary { cursor: pointer; list-style: none; padding: 14px 4px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 8px; } .ab-more > summary::-webkit-details-marker { display: none; }
.ab-chev { margin-left: auto; font-size: 12px; color: var(--mute); transition: transform .2s; } .ab-more[open] .ab-chev { transform: rotate(180deg); }
.nc-name .input { font-size: 20px; font-weight: 800; }

#prev { align-self: center; display: flex; justify-content: center; }
h1, h2, h3, .kid-q, .stage > *, .home-empty p, .kid-hello * { text-wrap: balance; }

.keybox { flex-wrap: wrap; justify-content: center; }

/* profil cliquable sur l'écran enfant + fenêtre de détail */
.kid-avatar-btn { border: 0; padding: 0; cursor: pointer; font: inherit; } .kid-avatar-btn:active { transform: scale(.97); }
.ka-tag { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #fff; color: var(--navy); border-radius: 18px; padding: 7px 14px; font-weight: 800; font-size: 13.5px; box-shadow: 0 4px 14px rgba(40, 20, 90, .22); display: inline-flex; gap: 6px; align-items: center; } .ka-tag i { color: var(--purple, #7C4DFF); }
.kd { text-align: left; } .kd-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; } .kd-head h2 { margin: 0 0 2px; font-size: 20px; color: var(--navy); text-align: left; } .kd-head small { color: var(--mute); display: block; margin-bottom: 6px; }
.kd-head .avatar.xl { width: 84px; height: 84px; font-size: 44px; flex: none; }
.kd-tiles { grid-template-columns: repeat(3, 1fr); } .kd-sec { margin-top: 14px; } .kd-sec > b { display: block; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.kd-act { display: grid; gap: 8px; margin-top: 16px; } .kd-act .btn { justify-content: center; min-height: 44px; }

a.hs { text-decoration: none; text-align: center; }

/* ===== Parcours d'apprentissage (niveaux, thèmes, étapes) ===== */
.path-screen { background: linear-gradient(#EAF2FF, #F7FAFF 38%, #fff); padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
.pth-title { flex: 1; text-align: center; font-weight: 900; font-size: 18px; color: var(--navy); display: flex; gap: 8px; align-items: center; justify-content: center; min-width: 0; line-height: 1.15; }
.pth-hero { width: 100%; border: 0; border-radius: 18px; padding: 14px; display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(0, 0, 0, .14)), var(--c); color: #fff; text-align: left; box-shadow: 0 8px 18px rgba(20, 40, 90, .2); cursor: pointer; margin: 8px 0 12px; font: inherit; }
.pth-hero.done { background: linear-gradient(135deg, #3FCB73, #1E9D50); cursor: default; }
.ph-ic { flex: none; width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 24px; }
.ph-tx { flex: 1; min-width: 0; } .ph-tx small { display: block; opacity: .85; font-weight: 800; font-size: 12.5px; } .ph-tx b { display: block; font-size: 17px; line-height: 1.2; } .ph-tx em { display: block; font-style: normal; opacity: .92; font-size: 13px; margin-top: 2px; }
.ph-go { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--c); display: grid; place-items: center; font-size: 17px; }
.pth-levels { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; } .pth-levels::-webkit-scrollbar { display: none; }
.lvp { flex: 1 0 auto; min-width: 60px; border: 2px solid #E1E8F3; background: #fff; border-radius: 14px; padding: 8px 10px; text-align: center; font: inherit; cursor: pointer; }
.lvp b { display: block; font-size: 16px; color: var(--c); } .lvp small { display: block; font-size: 10.5px; color: var(--mute); font-weight: 800; }
.lvp.on { background: var(--c); border-color: var(--c); } .lvp.on b, .lvp.on small { color: #fff; } .lvp.lock { opacity: .55; }
.pth-lvhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid #E3E9F2; border-radius: 14px; padding: 10px 14px; margin: 2px 0 10px; }
.pth-lvhead b { display: block; color: var(--navy); font-size: 15px; } .pth-lvhead small { color: var(--mute); font-weight: 800; }
.pth-rw { position: relative; width: 46px; height: 46px; flex: none; } .pth-ring { width: 46px; height: 46px; } .pth-rw span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: var(--c); }
.pth-lock { display: flex; gap: 10px; align-items: center; background: #FFF4E0; border: 1px solid #F6DDAE; color: #8A5A00; border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.pth-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; } .pth-grid.locked { opacity: .55; }
.pth-card { background: #fff; border: 1px solid #E3E9F2; border-radius: 16px; padding: 14px 10px 12px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; font: inherit; box-shadow: 0 3px 0 rgba(20, 40, 90, .06); }
.pth-card:active { transform: translateY(2px); box-shadow: none; }
.pc-ic { width: 52px; height: 52px; border-radius: 15px; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 22px; }
.pth-card b { font-size: 14px; color: var(--navy); line-height: 1.2; min-height: 34px; display: grid; align-items: center; }
.pc-dots { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; } .pc-dots i { width: 9px; height: 9px; border-radius: 50%; background: #DCE3EE; } .pc-dots i.on { background: var(--green); }
.pth-card small { color: var(--mute); font-weight: 800; font-size: 12px; } .pth-card.full .pc-ic { background: var(--green); }
.pth-voice { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; background: #fff; border: 1px solid #E3E9F2; border-radius: 16px; padding: 12px; margin: 12px 0; }
.pv-ic { width: 48px; height: 48px; border-radius: 14px; background: #FDE7EF; color: #E8478B; display: grid; place-items: center; font-size: 20px; } .pth-voice b { color: var(--navy); display: block; } .pth-voice small { color: var(--mute); font-weight: 700; }
.pv-act { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; } .pv-act .btn { flex: 1; justify-content: center; }
.pth-more { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 12px; } .pth-more .btn { justify-content: center; min-height: 48px; }
.thm-head { text-align: center; padding: 6px 0 14px; } .thm-ic { width: 84px; height: 84px; border-radius: 24px; background: var(--c); color: #fff; display: inline-grid; place-items: center; font-size: 36px; box-shadow: 0 8px 18px rgba(20, 40, 90, .2); }
.thm-head h1 { font-size: 24px; color: var(--navy); margin: 10px 0 8px; } .thm-prog { max-width: 240px; margin: 0 auto; } .thm-prog small { color: var(--mute); font-weight: 800; }
.stp-list { display: flex; flex-direction: column; padding: 4px 0 12px; }
.stp { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #E3E9F2; border-radius: 16px; padding: 12px; margin-bottom: 10px; text-align: left; font: inherit; cursor: pointer; width: 100%; }
.stp-n { width: 46px; height: 46px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 20px; flex: none; }
.stp.done .stp-n { background: var(--green); } .stp.lock { opacity: .6; } .stp.lock .stp-n { background: #B8C2D3; } .stp.cur { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }
.stp-t { min-width: 0; } .stp-t b { display: block; font-size: 15px; color: var(--navy); } .stp-t em { display: block; font-style: normal; font-size: 13.5px; color: var(--ink); font-weight: 700; line-height: 1.25; } .stp-t small { color: var(--mute); font-weight: 700; }
.stp-s { margin-left: auto; display: flex; gap: 2px; font-size: 13px; flex: none; } .stp-s i { color: #D8DFEA; } .stp-s i.on { color: #F5B800; }
.stg-hero { background: #fff; border: 1px solid #E3E9F2; border-radius: 20px; padding: 16px; text-align: center; margin: 6px 0 12px; }
.stg-pill { display: inline-block; background: var(--c); color: #fff; border-radius: 16px; padding: 5px 14px; font-weight: 900; font-size: 13px; }
.stg-prev { min-height: 140px; display: grid; place-items: center; margin: 10px 0; } .stg-prev svg.il { max-width: 100%; max-height: 150px; height: auto; width: auto; }
.stg-fa, .stg-mic { width: 96px; height: 96px; border-radius: 28px; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 44px; } .stg-mic { background: #E8478B; }
.stg-hero h1 { font-size: 24px; color: var(--navy); margin: 0; }
.stg-facts { background: #fff; border: 1px solid #E3E9F2; border-radius: 16px; padding: 12px 14px; display: grid; gap: 10px; } .stg-facts > b { color: var(--navy); }
.stg-facts div { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--ink); font-size: 14px; } .stg-facts div i { width: 30px; height: 30px; border-radius: 9px; background: #EEF4FF; color: var(--blue); display: grid; place-items: center; font-size: 14px; flex: none; }
.stg-best { display: flex; align-items: center; gap: 10px; justify-content: space-between; background: #E6F5E9; border-radius: 12px; padding: 10px 14px; margin-top: 10px; font-weight: 800; color: var(--green-d); }
.res-badge { width: 110px; height: 110px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 50px; margin: 6px auto 10px; box-shadow: 0 10px 22px rgba(20, 40, 90, .22); } .res-badge.try { background: #F5821F; }
.myread { background: #fff; border: 1px solid #E3E9F2; border-radius: 14px; padding: 12px; margin-bottom: 10px; } .mr-t { font-weight: 800; color: var(--navy); } .mr-m { color: var(--mute); font-size: 12.5px; margin: 3px 0 8px; } .mr-b { display: flex; gap: 8px; }
.empty-ic { width: 96px; height: 96px; border-radius: 50%; background: #EEF4FF; color: var(--blue); display: grid; place-items: center; font-size: 40px; margin: 0 auto 12px; }
.hb-pathrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #EDF1F7; text-decoration: none; color: var(--ink); } .hb-pathrow:first-of-type { border-top: 0; } .hb-pathrow > div { flex: 1; min-width: 0; } .hb-pathrow b { display: block; color: var(--navy); } .hb-pathrow small { color: var(--mute); display: block; margin: 2px 0 6px; font-size: 12.5px; } .hb-pathrow > i { color: #A9B4C6; }
.hpr-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: #fff; background: var(--green); flex: none; } .hpr-ic.math { background: var(--orange); }
/* ===== Exercices illustrés ===== */
svg.il { display: block; width: clamp(90px, calc(var(--vw, 100) * 2.2px), 100%); max-width: 100%; height: auto; }
.illus { width: 100%; display: grid; place-items: center; } .illus svg.il { max-height: 36dvh; }
.illus-eq { font-size: 40px; font-weight: 900; color: var(--navy); margin-top: 8px; letter-spacing: 1px; text-align: center; }
.prob-text { background: #fff; border-radius: 16px; padding: 12px 14px; font-weight: 800; font-size: 17px; color: #3B2A82; box-shadow: var(--shadow); margin-top: 10px; line-height: 1.35; max-width: 100%; text-align: left; }
.pic-stage { display: grid; place-items: center; } .pic-stage svg.il { width: min(60vw, 200px); }
.word-gap { font-size: 44px; font-weight: 900; color: var(--navy); letter-spacing: 3px; margin-top: 6px; text-align: center; }
.choice.img svg.il { width: 82%; max-height: 92px; margin: 0 auto; } .choice.img svg.il.objs, .choice.img svg.il.blk, .choice.img svg.il.tf { width: 92%; max-height: 80px; }
.ra-text { font-size: 56px; font-weight: 900; color: var(--navy); line-height: 1.15; text-align: center; word-break: break-word; } .ra-text.md { font-size: 34px; } .ra-text.lg { font-size: 22px; font-weight: 800; background: #fff; border-radius: 16px; padding: 14px; line-height: 1.5; text-align: left; box-shadow: var(--shadow); }
.ra-bar { display: grid; gap: 10px; margin: 8px 0 12px; } .ra-bar .btn.lg { min-height: 54px; font-size: 16px; justify-content: center; }

.choice.txt.long { font-size: 32px; } .choice.txt.xlong { font-size: 24px; } .choice.txt.xxlong { font-size: 19px; }
.choice.txt { overflow-wrap: normal; word-break: normal; hyphens: none; }
.choice.img svg.il.objs { width: 96%; max-height: 98px; } .choices:has(.objs) .choice { min-height: 118px; }

/* ===== En-tête d'écran compact (comme une vraie application mobile) : les boutons du haut se placent juste sous le bord ===== */
body.family .screen { padding-top: max(env(safe-area-inset-top, 0px), 12px); }   /* juste sous le bord (ou sous l'encoche), comme une vraie application mobile */
.topbar { min-height: 44px; gap: 8px; }
.topbar .iconbtn, .ex-top .iconbtn { width: 44px; height: 44px; font-size: 20px; flex: none; }
.topbar .chip { padding: 6px 12px; font-size: 16px; }
.topbar .starcount { font-size: 17px; }
.pth-title { font-size: 17px; }
.hub-top { padding-top: 0; padding-bottom: 8px; }
.hub-top .iconbtn { width: 40px; height: 40px; }
.ph-top { min-height: 44px; }
/* images officielles (manuels Lecture Pour Tous) */
svg.il, img.il.off { display: block; }
img.il.off { width: 100%; height: 100%; object-fit: contain; max-height: 150px; margin: 0 auto; }
.choice.img img.il.off { max-height: 104px; width: auto; max-width: 92%; }
.off-credit { font-size: 10px; color: var(--mute); text-align: center; margin-top: 2px; }
.pic-stage img.il.off { width: min(60vw, 210px); height: auto; max-height: 210px; border-radius: 12px; }
.choice.img svg.il.pos { width: 96%; max-height: 84px; }
.stg-prev img.il.off { max-height: 150px; width: auto; border-radius: 12px; }
.prompt-card { margin: auto 0; padding: 22px 18px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); color: var(--navy); font-weight: 900; font-size: 24px; line-height: 1.3; text-align: center; }
.choices:has(svg.il.pos) .choice { min-height: 138px; } .choice.img svg.il.pos { max-height: 116px; }
.pth-nograde { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; padding: 11px 14px; border-radius: 12px; background: #FFF4DE; color: #8A5200; font-weight: 800; font-size: 14px; text-decoration: none; } .pth-nograde span { flex: 1; }
.illus.banner { margin: 2px 0 8px; } .illus.banner img.il.off { width: 100%; max-height: 36dvh; height: auto; border-radius: 12px; object-fit: contain; }
.story.sm { font-size: 18px; line-height: 1.4; }
