/* ---------- NOE : maquette « réseau social » ----------
   Fond gris clair, une seule police ronde (Nunito, hébergée dans l'app) : la langue étudiée en gras, pas de serif. Pilules,
   deux accents : Spritz (action, série) et Azzurro (parole, réponses). Mode sombre automatique. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(../fonts/nunito-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(../fonts/nunito-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: italic; font-weight: 200 1000; font-display: swap; src: url(../fonts/nunito-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: italic; font-weight: 200 1000; font-display: swap; src: url(../fonts/nunito-latin-ext-wght-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bg: #F4F5F7; --surface: #FFFFFF; --ink: #1F2328; --muted: #6B7280; --line: #E1E4EA; --chip: #EBEDF1;
  --spritz: #FF5B2E; --spritz-ink: #121218; --spritz-soft: #FFF1EC; --spritz-text: #B33A14;
  --azzurro: #3B5BFF; --azzurro-ink: #FFFFFF; --azzurro-soft: #EEF1FF; --azzurro-text: #2A44D6;
  --cta: #121218; --cta-ink: #FFFFFF; --dark: #121218; --dark-ink: #FFFFFF; --dark-muted: #B9B9C6; --dark-field: #2A2A33;
  --note: #FFF4D6; --note-ink: #4A3A00;
  --ok: #11804A; --ok-fill: #19B26B; --ok-bg: #E6F7EE; --ko: #C21D3E; --ko-fill: #FF3B5C; --ko-bg: #FFEDF0;
  --brand: #3B5BFF; --brand-ink: #FFFFFF; --brand-soft: #EEF1FF; --brand-deep: #2A44D6;
  --display: "Nunito", "Noto Sans Hebrew", system-ui, -apple-system, sans-serif; --body: "Nunito", "Noto Sans Hebrew", system-ui, -apple-system, sans-serif;
  --it: "Nunito", "Noto Sans Hebrew", system-ui, -apple-system, sans-serif; --serif: var(--it); --tab-h: 84px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0E0E13; --surface: #1A1A22; --ink: #F2F2F7; --muted: #A1A1AF; --line: #2A2A35; --chip: #24242E;
  --spritz-soft: #33201A; --spritz-text: #FF9C7D; --azzurro: #6F86FF; --azzurro-ink: #0E0E13; --azzurro-soft: #1E2446; --azzurro-text: #A9B7FF;
  --cta: #F2F2F7; --cta-ink: #121218; --dark: #24242E; --dark-ink: #F2F2F7; --dark-muted: #A1A1AF; --dark-field: #33333F;
  --note: #3A3215; --note-ink: #F5E3A6; --ok: #5ED291; --ok-bg: #12301F; --ko: #FF8A9C; --ko-bg: #3A1A21;
  --brand: #6F86FF; --brand-ink: #0E0E13; --brand-soft: #1E2446; --brand-deep: #5A70E8; color-scheme: dark } }

html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 15.5px/1.45 var(--body); padding: 0; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }
#app { max-width: 560px; margin: 0 auto; gap: 14px; padding: calc(14px + env(safe-area-inset-top)) 16px calc(var(--tab-h) + 28px + env(safe-area-inset-bottom)); }
body:not([data-tabs]) #app { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; }
b, strong { font-weight: 600; }
.muted { color: var(--muted); } .small { font-size: 13.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2.5px solid var(--azzurro); outline-offset: 2px; }
.link { background: none; border: 0; padding: 4px 0; color: var(--azzurro-text); font-weight: 500; font-size: 14px; }

/* Étiquettes héritées de l'app : en phrase, discrètes */
.kind { font: 600 13.5px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--azzurro-text); }
.count, .bar .where, .stop .state, .scn .state, .tag, .dlg .who, th, .swipe, .sync, .lvl-h span, details.unit summary span { font-family: var(--body); letter-spacing: 0; text-transform: none; }
.count { font-size: 13px; font-weight: 500; color: var(--muted); } th { font-size: 13px; font-weight: 600; } .dlg .who { font-size: 13px; font-weight: 600; color: var(--azzurro-text); }
.fr { font-size: 15px; color: var(--muted); }

/* Boutons et champs de l'app : pilules fines */
.btn { min-height: 50px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15.5px; color: var(--ink); transition: transform .08s ease; box-shadow: none; }
.btn.primary { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); box-shadow: none; }
.btn:active:not(:disabled) { transform: scale(.985); }
.btn:disabled { opacity: .4; }
.linkbtn { color: var(--azzurro-text); font-size: 14px; text-decoration: none; font-weight: 500; }
.opt { min-height: 54px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); padding: 12px 18px; font-size: 16.5px; color: var(--ink); }
.opt[aria-pressed="true"] { border: 2px solid var(--azzurro); background: var(--azzurro-soft); color: var(--azzurro-text); font-weight: 500; }
.opt.ok, .chip.ok { border: 2px solid var(--ok-fill); background: var(--ok-bg); color: var(--ok); font-weight: 500; }
.opt.ko, .chip.ko { border: 2px solid var(--ko-fill); background: var(--ko-bg); color: var(--ko); }
.opts.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opts.grid2 .opt { text-align: center; font-family: var(--it); font-size: 21px; padding: 10px; }
.chip { min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; padding: 6px 16px; color: var(--ink); }
.chip.sel { border: 2px solid var(--azzurro); background: var(--azzurro-soft); }
.pool .chip, .tray .chip { font-family: var(--it); font-size: 20px; }
.keys button { border-radius: 12px; border: 1px solid var(--line); min-width: 42px; min-height: 42px; background: var(--surface); color: var(--ink); font-family: var(--it); font-size: 20px; }
.field input, .cj-q, .addw input, .panel textarea, #import-text, .gate-form input, .custom textarea { border-radius: 16px !important; border: 1px solid var(--line) !important; background: var(--surface) !important; color: var(--ink); font-size: 17px; }
.field input { font-family: var(--it) !important; font-size: 22px !important; }
.field input:focus-visible { outline: none; border-color: var(--azzurro) !important; box-shadow: 0 0 0 3px var(--azzurro-soft); }
.panel, .today-old, .cj-card, .cj-facts div, .members li, .tip { border-radius: 20px; border: 0; background: var(--surface); }
.tip { background: var(--note); color: var(--note-ink); }
.mic { border-radius: 999px; min-height: 44px; border: 0; background: var(--chip); color: var(--ink); font-weight: 500; font-size: 14.5px; align-self: flex-start; padding: 8px 16px; }
.mic svg { width: 18px; height: 18px; }
.mic.on { background: var(--ko-bg); color: var(--ko); }
.say { color: var(--muted); font-weight: 500; }

/* Texte italien en serif italique */
.q-it, .lesson .ex b, .vw .it, .dlg .it, .bub.it, .big-it, .it-line, .quote .it, .corr .better, .nb .it, .dict { font-family: var(--it); font-weight: 400; }
.q-it { font-size: 31px !important; line-height: 1.18 !important; letter-spacing: -.005em; }
.q { font-size: 20px; font-weight: 500; line-height: 1.35; }
.blank { border-bottom: 2.5px solid var(--ink); min-width: 2.6em; }
/* Vocabulaire des leçons : Lino dit le mot, le mot s'écrit en dessous (plus de carte). */
.vw { position: relative; min-height: 286px; padding: 6px 0 10px; gap: 4px; }
.vw::before { content: ""; position: absolute; left: 50%; top: 20px; width: 168px; height: 168px; margin-left: -84px; border-radius: 50%; background: radial-gradient(circle, #FFF1B8 0%, rgba(255, 241, 184, 0) 70%); z-index: 0; pointer-events: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vw::before { background: radial-gradient(circle, rgba(255, 216, 74, .22) 0%, rgba(255, 216, 74, 0) 70%); } }
.vw > * { position: relative; z-index: 1; }
.vw-lino { display: block; width: 150px; height: 150px; margin: 0 auto; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.vw-lino:focus-visible { outline: 3px solid var(--accent, #6D5BD0); outline-offset: 2px; }
.vw-who { display: block; width: 132px; height: 132px; margin: 9px auto 0; }
.vw-who .lino { width: 132px; height: 132px; filter: drop-shadow(0 12px 14px rgba(120, 90, 0, .18)); }
.vw-who .lino-talk { animation: vw-in .5s cubic-bezier(.3, 1.4, .5, 1) both; transform-origin: 50% 100%; }
.vw.talking .vw-who { animation: vw-nod .5s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.lino .ln-mouth { transform-box: fill-box; transform-origin: 50% 0%; transform: scaleY(.45); transition: transform .12s; }
.vw.talking .lino .ln-mouth { animation: ln-talk .16s ease-in-out infinite alternate; }
.lino .ln-tell { transform-box: fill-box; transform-origin: 0% 100%; }
.vw.talking .lino .ln-tell { animation: ln-tell .5s ease-in-out infinite alternate; }
.vw-waves { position: absolute; left: -8px; top: 74px; width: 30px; height: 40px; pointer-events: none; }
.vw-waves i { position: absolute; top: 50%; right: -2px; border: 3px solid transparent; border-left-color: #F59E0B; border-radius: 50%; opacity: 0; }
.vw-waves i:nth-child(1) { width: 14px; height: 14px; margin-top: -7px; }
.vw-waves i:nth-child(2) { width: 26px; height: 26px; margin-top: -13px; animation-delay: .15s !important; }
.vw-waves i:nth-child(3) { width: 38px; height: 38px; margin-top: -19px; animation-delay: .3s !important; }
.vw.talking .vw-waves i { animation: vw-wave .9s ease-out infinite; }
.vw .vw-word { font-size: 44px; font-weight: 400; line-height: 1.15; color: var(--ink); max-width: 100%; overflow-wrap: anywhere; animation: vw-up .45s cubic-bezier(.2, .9, .3, 1.2) .12s both; }
.vw .vw-tr { font-size: 20px; font-weight: 600; color: var(--ink); opacity: .72; margin-top: 2px; animation: vw-up .35s ease-out both; }
@keyframes vw-in { from { transform: translateY(18px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes vw-nod { from { transform: rotate(-3deg); } to { transform: rotate(3deg) translateY(-2px); } }
@keyframes vw-up { from { transform: translateY(14px); opacity: 0; } }
@keyframes vw-wave { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes ln-talk { from { transform: scaleY(.35); } to { transform: scaleY(1.1); } }
@keyframes ln-tell { from { transform: rotate(0deg); } to { transform: rotate(-16deg); } }
@media (prefers-reduced-motion: reduce) { .vw *, .vw.talking .vw-who { animation: none !important; } .vw.talking .lino .ln-mouth { transform: none; } .vw.talking .vw-waves i { opacity: .8; } }
.dlg .it { font-size: 20px; }
.lesson h2 { font-size: 26px; } .lesson h3 { font-size: 17px; }
.lesson em { color: var(--spritz-text); font-weight: 600; font-style: normal; }
.lesson .ex { border-left: 3px solid var(--spritz); padding-left: 14px; }
.lesson .ex { font-family: var(--it); font-size: 20px; }
.lesson .ex span { font-family: var(--body); font-size: 14.5px; }
.nb .it { font-size: 20px; }

/* ---------- Barre d'onglets ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); padding: 8px max(6px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-right)); }
body:not([data-tabs]) .tabbar, body:has(#gate:not([hidden])) .tabbar { display: none; }
.tabbar button { background: none; border: 0; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #8A8A97; font-size: 11px; font-weight: 500; }
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button.on { color: var(--ink); font-weight: 600; }
.tabbar button.on svg { stroke-width: 2.2; }
.tabbar .tab-talk { justify-self: center; width: 58px; height: 58px; min-height: 58px; margin-top: -22px; border-radius: 50%; background: var(--spritz); color: var(--spritz-ink); box-shadow: 0 8px 20px -8px rgba(255, 91, 46, .8); }
.tabbar .tab-talk svg { width: 26px; height: 26px; }
.tabbar .tab-talk.on { color: var(--spritz-ink); box-shadow: 0 0 0 5px var(--spritz-soft), 0 8px 20px -8px rgba(255, 91, 46, .8); }

/* ---------- Éléments communs ---------- */
.av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--it); font-style: italic; font-size: 22px; line-height: 1; }
.av.me, .av.dark { background: var(--dark); color: var(--dark-ink); font-family: var(--body); font-style: normal; font-weight: 600; font-size: 15px; }
.card { background: var(--surface); border-radius: 22px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.card.dark { background: var(--dark); color: var(--dark-ink); }
.card.dark .small, .card.dark small { color: var(--dark-muted); }
.pill-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--chip); color: var(--ink); font-size: 13.5px; font-weight: 500; }
.pill-btn svg { width: 16px; height: 16px; }
.pill-btn.blue { background: var(--azzurro); color: var(--azzurro-ink); font-weight: 600; font-size: 15px; height: 46px; }
.pill-btn.dark { background: var(--cta); color: var(--cta-ink); font-weight: 600; font-size: 14.5px; height: 46px; }
.pill-btn.wide { width: 100%; }
.pill-btn:disabled { opacity: .55; }
.acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.acts.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.acts.two .pill-btn { height: 46px; font-weight: 600; font-size: 14.5px; }
.acts.two .pill-btn:not(.dark) { background: var(--surface); border: 1px solid var(--line); }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.sec-h h2, .feed-sec { font-size: 18px; margin: 0; }
.feed-sec { margin-top: 6px; }
.icon-btn { display: inline-grid !important; place-items: center; width: 40px; height: 40px; min-height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted) !important; padding: 0; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.round { background: var(--surface); color: var(--ink) !important; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input { flex: 1; min-width: 0; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 16px; font: inherit; font-size: 15px; }
.card.dark .inline-form input { background: var(--dark-field); border-color: transparent; color: var(--dark-ink); }
.card.dark .inline-form input::placeholder { color: var(--dark-muted); }
.round-go { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--spritz); color: var(--spritz-ink); display: grid; place-items: center; }
.round-go svg { width: 18px; height: 18px; }

/* ---------- Fil ---------- */
.feed-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who-t { display: flex; flex-direction: column; min-width: 0; }
.who-t span { font-size: 13px; color: var(--muted); }
.who-t b { font-size: 18px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.streak { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--chip); color: var(--muted); font-weight: 600; font-size: 14px; }
.streak svg { width: 16px; height: 16px; }
.streak.on { background: var(--spritz-soft); color: var(--spritz-text); }
.streak.on svg { color: var(--spritz); }
.home-sync[data-sync="ok"], .home-sync[data-sync="load"], .home-sync[data-sync="saving"] { display: none; }
.stories { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 6px; scroll-snap-type: x proximity; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; width: 66px; background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; scroll-snap-align: start; color: var(--ink); }
.story-ring { width: 66px; height: 66px; border-radius: 50%; padding: 2.5px; background: var(--line); display: grid; place-items: center; box-sizing: border-box; }
.story.fresh .story-ring, .story-ring.big { background: conic-gradient(from 200deg, #FF5B2E, #FF2E93, #7A5CFF, #FF5B2E); }
.story-ring > .av { width: 100%; height: 100%; border: 2.5px solid var(--bg); box-sizing: border-box; font-size: 27px; }
.story-ring > .av.dark { display: flex; flex-direction: column; gap: 1px; }
.story-ring > .av.dark b { font-size: 17px; line-height: 1; } .story-ring > .av.dark small { font-size: 9.5px; opacity: .8; font-weight: 500; }
.story-l { font-size: 12px; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story:not(.fresh) .story-l { color: var(--muted); }
.story-ring.big { width: 98px; height: 98px; padding: 3px; }
.story-ring.big > .av { border-width: 3px; }
.today-c { display: flex; flex-direction: row; align-items: center; gap: 14px; width: 100%; text-align: left; border: 0; background: var(--dark); color: var(--dark-ink); border-radius: 22px; padding: 16px 16px 16px 18px; }
.today-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.today-t small { font-size: 12.5px; color: var(--dark-muted); }
.today-t b { font-size: 18px; letter-spacing: -.01em; }
.today-bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; margin-top: 6px; }
.today-bar i { display: block; height: 100%; border-radius: 99px; background: var(--spritz); }
.today-note { margin-top: 2px; }
.today-go { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--spritz); color: var(--spritz-ink); display: grid; place-items: center; }
.today-go svg { width: 18px; height: 18px; }
.today-c:active { transform: scale(.99); }
.carousel { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x mandatory; scroll-padding-left: 16px; }
.carousel::-webkit-scrollbar { display: none; }
.theme { position: relative; flex: none; width: 214px; height: 250px; border: 0; padding: 0; border-radius: 22px; overflow: hidden; scroll-snap-align: start; text-align: left; background: var(--surface); display: flex; flex-direction: column; color: var(--ink); }
.theme img { width: 100%; height: 150px; object-fit: cover; display: block; }
.theme-t { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; }
.theme-t b { font-size: 15.5px; line-height: 1.25; }
.theme-t small { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.theme-tag { position: absolute; top: 10px; left: 10px; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(18, 18, 24, .72); color: #fff; font-size: 11.5px; font-weight: 600; display: flex; align-items: center; backdrop-filter: blur(6px); max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme:active { transform: scale(.985); }
.post-h { display: flex; align-items: center; gap: 10px; }
.post-ht { display: flex; flex-direction: column; min-width: 0; }
.post-ht b { font-size: 14px; } .post-ht b .muted { font-weight: 400; }
.post-ht small { font-size: 12.5px; color: var(--muted); }
.big-it { font-size: 42px; line-height: 1.02; margin: 2px 0 0; letter-spacing: -.01em; }
.quote { background: var(--bg); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.quote .it { font-size: 19px; }
.it-line { font-family: var(--it); font-size: 21px; line-height: 1.25; }
.friend { flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; }
.friend p { flex: 1; font-size: 14px; min-width: 0; }
.friend .av { width: 34px; height: 34px; font-size: 13px; }
.cheer { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 13.5px; }
.cheer.on { background: var(--spritz-soft); border-color: transparent; color: var(--spritz-text); }
.name-card b { font-size: 16px; }

/* ---------- Onglets Leçons, Mots, Parler ---------- */
.tab-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 10px; }
.tab-hd h1 { font-size: 30px; margin: 0; letter-spacing: -.02em; }
.tab-hd .muted { font-size: 13px; padding-bottom: 6px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip-p { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 500; }
.chip-p[aria-pressed="true"] { background: var(--cta); color: var(--cta-ink); border-color: var(--cta); font-weight: 600; }
.lvl-goal { font-size: 14px; }
.unit-c { background: var(--surface); border-radius: 22px; padding: 4px 16px; }
.unit-c > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; position: relative; }
.unit-c > summary::-webkit-details-marker { display: none; }
.unit-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.unit-t small { font-size: 12.5px; color: var(--muted); }
.unit-t b { font-size: 17px; letter-spacing: -.01em; }
.ring-bg { fill: none; stroke: var(--chip); stroke-width: 5; }
.ring-fg { fill: none; stroke: var(--spritz); stroke-width: 5; stroke-linecap: round; }
.ring-n { position: absolute; right: 0; width: 44px; text-align: center; font-size: 11.5px; font-weight: 600; pointer-events: none; }
.unit-c[open] { padding-bottom: 10px; }
.lrow { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 0; border: 0; background: none; text-align: left; color: inherit; }
.lrow.next { background: var(--spritz-soft); border-radius: 16px; padding: 10px 12px; margin: 2px -12px; width: calc(100% + 24px); }
.ldot { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; box-sizing: border-box; color: var(--muted); }
.ldot svg { width: 14px; height: 14px; }
.lrow.done .ldot { background: var(--ok-fill); border-color: var(--ok-fill); color: #fff; }
.lrow.next .ldot { background: var(--spritz); border-color: var(--spritz); color: var(--spritz-ink); }
.lrow.todo .ldot { border-style: dashed; }
.lrow-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lrow-t b { font-weight: 500; font-size: 15.5px; }
.lrow.next .lrow-t b { font-weight: 600; }
.lrow-t small { font-size: 12.5px; color: var(--muted); }
.lrow.next .lrow-t small { color: var(--spritz-text); }
.lrow-go { flex: none; font-size: 13px; font-weight: 600; }
.lrow.inv { color: var(--dark-ink); } .lrow.inv .ldot { border-color: #4A4A55; } .lrow.inv small { color: var(--dark-muted); }
.custom { gap: 8px; }
.custom b { font-size: 16px; }
.req-row { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.req-row span { flex: 1; min-width: 0; }
.link.inv { color: #A9B7FF; }
.card.list { padding: 4px 0; gap: 0; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 0; background: none; text-align: left; color: inherit; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-t b { font-size: 15.5px; } .row-t small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-ic { flex: none; width: 42px; height: 42px; border-radius: 14px; background: var(--chip); display: grid; place-items: center; }
.row-ic svg { width: 21px; height: 21px; }

/* ---------- Profil ---------- */
.prof-top { display: flex; justify-content: flex-end; }
.prof-id { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: -18px; }
.prof-id h1 { font-size: 24px; margin: 6px 0 0; }
.prof-id .muted { font-size: 13.5px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--surface); border-radius: 18px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat b { font-size: 22px; } .stat b.hot { color: var(--spritz-text); }
.stat small { font-size: 12px; color: var(--muted); }
.lboard { gap: 0; padding-bottom: 8px; }
.board-h { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 6px; }
.board-h b { font-size: 16px; } .board-h small { font-size: 12.5px; color: var(--muted); }
.lb { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.lb:last-child { border-bottom: 0; }
.lb.me { background: var(--spritz-soft); border-radius: 14px; padding: 8px 10px; margin: 2px -10px; border-bottom: 0; }
.lb-n { width: 18px; font-weight: 600; color: var(--muted); }
.lb:first-of-type .lb-n { color: var(--spritz-text); }
.lb .av { width: 32px; height: 32px; font-size: 13px; }
.lb-name { flex: 1; font-weight: 500; }
.week b { font-size: 16px; }
.bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 70px; }
.bars span { border-radius: 8px; background: color-mix(in srgb, var(--spritz) 28%, var(--surface)); }
.bars span.now { background: var(--spritz); }
.bars-l { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; text-align: center; font-size: 11.5px; color: var(--muted); }
.bars-l .now { color: var(--ink); font-weight: 600; }

/* ---------- Écrans de leçon ---------- */
.bar { background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); margin: 0 -16px; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; top: 0; }
#app > .bar:first-child { margin-top: calc(-14px - env(safe-area-inset-top)); }
.bar .top { gap: 10px; }
.bar .where { font-size: 13px; font-weight: 500; color: var(--muted); }
.prog { height: 8px; border-radius: 99px; background: var(--line); }
.prog i { border-radius: 99px; background: var(--spritz); }
.lesson-bar .top { justify-content: flex-start; }
.lesson-bar .top .prog { flex: 1; }
.lesson-bar .top .count { flex: none; min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.lesson-bar .sub { gap: 2px !important; min-height: 36px; justify-content: flex-start; }
.lesson-bar .sub .where { margin-right: auto; text-align: left; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 6px; }
.lesson-bar .sub .icon-btn { width: 36px; height: 36px; min-height: 36px; }
.lesson-bar .sub .icon-btn svg { width: 20px; height: 20px; }
.back-btn { display: inline-flex !important; align-items: center; gap: 2px; color: var(--ink) !important; font-weight: 500; }
.back-btn svg { width: 20px; height: 20px; }
.body { gap: 16px; }
@media (prefers-reduced-motion: no-preference) {
  body[data-view="course"] main.body { animation: ipp-in .2s ease-out; }
  @keyframes ipp-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
}
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 12px max(20px, env(safe-area-inset-left)) calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 72%, transparent); display: flex; justify-content: center; }
.actionbar:empty { display: none; }
.actionbar > * { width: 100%; max-width: 528px; }
.actionbar .btn { min-height: 52px; font-size: 16px; }
.fb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 16; background: var(--surface) !important; color: var(--ink); border-radius: 28px 28px 0 0; padding: 12px max(20px, env(safe-area-inset-left)) calc(18px + env(safe-area-inset-bottom)); gap: 12px; box-shadow: 0 -12px 40px -16px rgba(18, 18, 24, .35); max-height: 74vh; overflow-y: auto; }
.fb::before { content: ""; align-self: center; width: 40px; height: 4px; border-radius: 99px; background: var(--line); }
.fb > * { max-width: 528px; width: 100%; margin-inline: auto; }
.fb strong { font: 600 20px/1.2 var(--body); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; color: var(--ink) !important; }
.fb strong::before { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--fb-c) var(--fb-ic) center / 16px no-repeat; }
.fb.ok { --fb-c: var(--ok-fill); --fb-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fb.ko { --fb-c: var(--ko-fill); --fb-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7 7 17' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fb-tag { align-self: flex-start; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--chip); font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; margin-top: -6px; }
.fb p { font-size: 15.5px; color: var(--ink); }
.fb-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.fb-acts .say, .fb-acts .btn { height: 38px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--chip); color: var(--ink); font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.fb .btn.primary { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); min-height: 52px; font-size: 16px; }
body:has(.fb) #app { padding-bottom: 62vh; }
@media (prefers-reduced-motion: no-preference) { .fb { animation: ipp-up .24s cubic-bezier(.2, .8, .2, 1); } @keyframes ipp-up { from { transform: translateY(100%); } to { transform: none; } } }
.end { align-items: center; text-align: center; padding-top: 24px; }
.end .score { font: 600 72px/1 var(--body); color: var(--spritz); letter-spacing: -.03em; }
.end h2 { font-size: 24px; }

/* ---------- Conversation (messagerie) ---------- */
body[data-view="dm"] #app { padding: 0 0 calc(130px + env(safe-area-inset-bottom)); max-width: 560px; }
.dm { display: flex; flex-direction: column; min-height: 100svh; }
.dm-hd { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.dm-hd .icon-btn { color: var(--ink) !important; }
.dm-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dm-who b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-who span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-car { background: var(--chip) !important; }
.dm-car.on { background: var(--spritz) !important; color: var(--spritz-ink) !important; }
.dm-hands { margin: 10px 16px 0; padding: 10px 14px; border-radius: 16px; background: var(--spritz-soft); color: var(--spritz-text); font-size: 13.5px; font-weight: 500; }
.dm-mission { margin: 12px 16px 0; padding: 10px 14px; border-radius: 16px; border: 1px dashed var(--line); background: var(--surface); display: flex; gap: 10px; align-items: center; font-size: 13.5px; }
.chip-dark { flex: none; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--dark); color: var(--dark-ink); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }
.dm-log { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.msg { display: flex; flex-direction: column; gap: 4px; max-width: 82%; }
.msg.ai { align-self: flex-start; } .msg.me { align-self: flex-end; align-items: flex-end; }
.msg .bub { border-radius: 20px; padding: 10px 14px; overflow-wrap: anywhere; }
.msg.ai .bub { background: var(--surface); border-bottom-left-radius: 6px; }
.msg.ai .bub.it { font-size: 21px; line-height: 1.25; }
.msg.me .bub { background: var(--azzurro); color: var(--azzurro-ink); border-bottom-right-radius: 6px; display: flex; gap: 8px; align-items: flex-start; font-size: 15.5px; }
.msg.me .vo svg { width: 16px; height: 16px; margin-top: 2px; opacity: .85; }
.msg-acts { display: flex; gap: 14px; padding-left: 6px; }
.msg-acts button { border: 0; background: none; padding: 2px 0; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.msg .tr { font-size: 13.5px; color: var(--muted); padding: 0 6px; }
.note { align-self: flex-end; max-width: 82%; background: var(--note); color: var(--note-ink); border-radius: 16px; padding: 9px 12px; display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; }
.note .av { width: 22px; height: 22px; font-size: 13px; }
.typing .bub { display: flex; gap: 4px; padding: 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; animation: ipp-dot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ipp-dot { 50% { opacity: 1; transform: translateY(-2px); } }
.dm-err { align-self: center; font-size: 13.5px; color: var(--ko); text-align: center; padding: 0 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dm-err p { margin: 0; }
.dm-sug { position: fixed; left: 0; right: 0; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 6; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 14px; max-width: 560px; margin: 0 auto; }
.dm-sug::-webkit-scrollbar { display: none; }
.chip-s { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 500; max-width: 80vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-s.idea { font-family: var(--it); font-size: 16px; border-color: var(--azzurro); color: var(--azzurro-text); }
.chip-s:disabled { opacity: .45; }
.dm-comp { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); max-width: 560px; margin: 0 auto; }
.dm-comp input { flex: 1; min-width: 0; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); padding: 0 18px; font: inherit; font-size: 16px; color: var(--ink); }
.dm-act { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--spritz); color: var(--spritz-ink); display: grid; place-items: center; box-shadow: 0 0 0 6px var(--spritz-soft); }
.dm-act svg { width: 24px; height: 24px; }
.dm-act.send { background: var(--azzurro); color: var(--azzurro-ink); box-shadow: none; }
.dm-act.on { background: var(--ko-fill); color: #fff; animation: ipp-pulse 1.2s ease-in-out infinite; }
.dm-act:disabled { opacity: .5; }
@keyframes ipp-pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--ko-fill) 22%, transparent); } }

/* Mode voiture : l'état en grand */
.aud-state { text-align: center; font: 600 clamp(26px, 8vw, 34px)/1.15 var(--body); letter-spacing: -.02em; }
.aud-state.listening { color: var(--spritz-text); }
.vu { background: var(--spritz-soft) !important; color: var(--spritz) !important; }
.btn.aud-main { min-height: 64px; font-size: 18px; }
.car-heard { font-family: var(--it); font-size: 22px; border: 0; background: var(--surface); border-radius: 18px; }

/* Bulles des anciens écrans de conversation (bilan) */
.corr { border-bottom-color: var(--line); }
.corr .better { font-size: 20px; }

/* Connexion */
.gate-card { border-radius: 28px; border: 0; }
.gate h1 { font-weight: 600; letter-spacing: -.02em; }
.gate-brand { font: 600 14px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); }
.gate .btn { min-height: 50px; }

/* Bouton « Pourquoi ? » dans la correction */
.fb .why { width: 100%; }
.fb .why > .btn, .fb > .btn:not(.primary) { height: 38px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--chip); color: var(--ink); font-size: 13.5px; font-weight: 500; align-self: flex-start; width: auto; }
.fb .why p { font-size: 14.5px; }

/* Accueil et inscription */
.gate { display: block; padding: 0; min-height: 100svh; }
.g-screen { max-width: 460px; margin: 0 auto; min-height: 100svh; padding: 18px 20px 28px; display: flex; flex-direction: column; gap: 14px; }
.g-screen h1 { font: 600 28px/1.15 var(--display); letter-spacing: -.02em; margin: 6px 0 0; color: var(--ink); }
.g-sub { margin: -4px 0 6px; color: var(--muted); font-size: 15px; }
.g-top { display: flex; align-items: center; gap: 14px; min-height: 40px; }
.g-back { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--chip); color: var(--ink); display: grid; place-items: center; flex: none; }
.g-back svg { width: 20px; height: 20px; }
.g-dots { display: flex; gap: 6px; flex: 1; }
.g-dots i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.g-dots i.on { background: var(--spritz); }
.g-cta { min-height: 54px; border-radius: 999px; border: 0; background: var(--cta); color: var(--cta-ink); font: 600 16px/1 var(--body); margin-top: 6px; width: 100%; }
.g-cta:disabled { opacity: .35; }
.g-cta.ghost { background: var(--chip); color: var(--ink); min-height: 48px; font-size: 15px; margin: 0; }
.g-link { background: none; border: 0; color: var(--azzurro-text); font: 500 15px/1.2 var(--body); padding: 10px; align-self: center; }
.g-choices { display: flex; flex-direction: column; gap: 10px; }
.g-choice { text-align: left; min-height: 58px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); padding: 12px 18px; color: var(--ink); display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.g-choice b { font-weight: 500; font-size: 16px; }
.g-choice small { color: var(--muted); font-size: 13.5px; }
.g-choice[aria-pressed="true"] { border: 2px solid var(--azzurro); background: var(--azzurro-soft); padding: 11px 17px; }
.g-choice[aria-pressed="true"] b { color: var(--azzurro-text); font-weight: 600; }
.g-form { display: flex; flex-direction: column; gap: 12px; }
.g-field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.g-field label { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.g-field input { font: inherit; font-size: 17px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
.g-field input:focus-visible { outline: none; border-color: var(--azzurro); box-shadow: 0 0 0 3px var(--azzurro-soft); }
.g-eye { position: absolute; right: 8px; bottom: 8px; height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--chip); color: var(--ink); font-size: 13px; }
.g-msg { margin: 0; color: var(--muted); font-size: 14.5px; }
.g-legal { margin: 2px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.g-welcome { justify-content: flex-end; padding-bottom: 36px; }
.g-art { flex: 1; min-height: 260px; position: relative; }
/* Les cartes se dimensionnent sur la hauteur disponible : elles ne débordent jamais sur le titre, même quand il passe sur deux lignes. */
.g-art img { position: absolute; height: 82%; width: auto; max-width: 58%; aspect-ratio: 4/5; object-fit: cover; border-radius: 28px; box-shadow: 0 18px 40px -20px rgba(18, 18, 24, .45); }
.g-art img:nth-child(1) { left: 4%; top: 6%; transform: rotate(-7deg); }
.g-art img:nth-child(2) { right: 4%; top: 0; transform: rotate(6deg); }
.g-art img:nth-child(3) { left: 50%; top: 26%; height: 72%; transform: translateX(-50%) rotate(-1deg); }
.g-hello { font: italic 400 54px/1.05 var(--it) !important; letter-spacing: -.01em !important; margin-top: 12px !important; }
.g-lead { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.goal-c { display: flex; flex-direction: column; gap: 2px; } .goal-c .chips { margin: 10px 0 0; padding: 0; flex-wrap: wrap; }

/* Voix */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch-row .sw-t { display: flex; flex-direction: column; gap: 2px; }
.switch-row .sw-t b { font-weight: 500; font-size: 15.5px; }
.switch-row .sw-t small { color: var(--muted); font-size: 13px; }
.switch-row input { appearance: none; -webkit-appearance: none; flex: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; margin: 0; }
.switch-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch-row input:checked { background: var(--azzurro); }
.switch-row input:checked::after { transform: translateX(20px); }
.voice-test { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.voice-test b { font-weight: 500; }
.voice-test .rowb { display: flex; flex-wrap: wrap; gap: 8px; }
.voice-test .btn { min-height: 42px; padding: 6px 16px; font-size: 14.5px; }
.dm-act.talk { background: var(--ink); color: var(--bg); box-shadow: 0 0 0 6px var(--chip); }
.dm.speaking .dm-hd .av { animation: ipp-speak 1.1s ease-in-out infinite; }
@keyframes ipp-speak { 0%, 100% { box-shadow: 0 0 0 2px var(--spritz-soft); } 50% { box-shadow: 0 0 0 5px var(--spritz-soft), 0 0 0 6px var(--spritz); } }
@media (prefers-reduced-motion: reduce) { .dm.speaking .dm-hd .av { animation: none; box-shadow: 0 0 0 3px var(--spritz); } }
.health-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.health-list li { display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; }
.health-list li.ok b { color: var(--ok); font-weight: 600; }
.health-list li.ko b { color: var(--ko); font-weight: 600; }
.health-list li span { color: var(--muted); }

/* Mots touchables et fiche de traduction */
.msg.ai .bub.it { display: block !important; }
.tapit .tw, .bub.it .tw { display: inline; cursor: pointer; border-radius: 4px; -webkit-tap-highlight-color: transparent; }
.bub.it .tw:hover, .bub.it .tw:focus-visible, .tapit .tw:hover, .tapit .tw:focus-visible { background: var(--azzurro-soft); outline: none; }
.wsheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-width: 520px; margin: 0 auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px -12px rgba(18, 18, 24, .35); transform: translateY(105%); transition: transform .18s ease-out; display: flex; flex-direction: column; gap: 8px; }
.wsheet.in { transform: none; }
.ws-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ws-word { font: italic 400 32px/1.1 var(--it); color: var(--ink); }
.ws-x { width: 36px; height: 36px; min-height: 36px; border-radius: 50%; background: var(--chip); color: var(--ink); border: 0; display: grid; place-items: center; }
.ws-x svg { width: 18px; height: 18px; }
.ws-fr { margin: 0; font-size: 18px; font-weight: 500; color: var(--ink); }
.ws-lem { margin: 0; font-size: 14.5px; color: var(--azzurro-text); }
.ws-note { margin: 0; font-size: 14px; color: var(--muted); }
.ws-acts { display: flex; gap: 10px; margin-top: 8px; }
.ws-acts .pill-btn { flex: 1; height: 46px; font-size: 15px; }
.ws-acts .pill-btn:disabled { opacity: .55; }
.ws-own { display: flex; gap: 8px; }
.ws-own input { flex: 1; font: inherit; font-size: 16px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.sel-pill { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 55; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: 500 14.5px/1 var(--body); padding: 12px 18px; box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); max-width: calc(100% - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .wsheet { transition: none; } }

/* Leçon du jour, en tête de l'accueil */
.lhero { background: var(--surface); border-radius: 28px; padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 10px 30px -18px rgba(18, 18, 24, .35); }
.lhero.start { box-shadow: 0 0 0 2px var(--spritz), 0 14px 34px -16px rgba(255, 91, 46, .55); }
.lh-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lh-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--spritz-text); }
.lh-goal { display: inline-flex; align-items: center; gap: 6px; }
.lh-goal small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.lh-art { margin: 6px -4px 4px; border-radius: 20px; overflow: hidden; aspect-ratio: 300 / 120; background: var(--chip); }
.lh-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lh-meta { font-size: 12.5px; color: var(--muted); }
.lh-title { margin: 0; font: 600 24px/1.15 var(--display); letter-spacing: -.02em; color: var(--ink); }
.lh-sub { margin: 0; font-size: 14.5px; color: var(--muted); }
.lh-path { list-style: none; margin: 8px 0 4px; padding: 0; display: flex; align-items: center; }
.lh-path li { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); color: var(--muted); font-size: 12.5px; font-weight: 600; position: relative; }
.lh-path li + li { margin-left: 22px; }
.lh-path li + li::before { content: ""; position: absolute; right: 100%; top: 50%; width: 22px; height: 2px; background: var(--line); }
.lh-path li.done { background: var(--ok-bg); color: var(--ok); }
.lh-path li.done + li::before { background: var(--ok-fill); }
.lh-path li.now { background: var(--spritz); color: var(--spritz-ink); box-shadow: 0 0 0 4px var(--spritz-soft); }
.lh-path li svg { width: 14px; height: 14px; }
.lh-cta { margin-top: 8px; min-height: 54px; border: 0; border-radius: 999px; background: var(--spritz); color: var(--spritz-ink); font: 600 16.5px/1 var(--body); display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 22px -12px rgba(255, 91, 46, .9); }
.lh-cta svg { width: 16px; height: 16px; }
.lh-cta:active { transform: scale(.985); }
.lh-note { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.lh-all { align-self: center; margin-top: 2px; }
.lhero.over .lh-title { font-family: var(--it); font-style: italic; font-weight: 400; font-size: 34px; }
.talk-h { margin-top: 10px; }

/* Quiz à réponse libre */
.qz { display: flex; flex-direction: column; gap: 10px; }
.qz-help { align-self: center; color: var(--azzurro-text); font-size: 14.5px; padding: 8px 12px; }
.qz-ask { margin-top: -4px; }

/* Chercher ou ajouter un mot */
.wt { display: flex; flex-direction: column; gap: 10px; }
.wt-bar { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 999px; padding: 4px 6px 4px 14px; border: 1px solid var(--line); }
.wt-bar:focus-within { border-color: var(--azzurro); box-shadow: 0 0 0 3px var(--azzurro-soft); }
.wt-ic { color: var(--muted); display: grid; place-items: center; }
.wt-ic svg { width: 20px; height: 20px; }
.wt-bar input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; font: inherit; font-size: 17px; padding: 10px 0; color: var(--ink); outline: none; box-shadow: none !important; }
.wt-bar input::-webkit-search-cancel-button { display: none; }
.wt-x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--chip); color: var(--ink); font-size: 20px; line-height: 1; }
.wt-hint { margin: -2px 6px 0; font-size: 13px; color: var(--muted); }
.wt-res { display: flex; flex-direction: column; gap: 8px; }
.wt-go { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border: 0; border-radius: 18px; padding: 12px 16px; background: var(--azzurro); color: var(--azzurro-ink); }
.wt-go b { font-weight: 600; font-size: 15.5px; }
.wt-go small { opacity: .85; font-size: 13px; }
.wt-none { margin: 0 6px; font-size: 14px; color: var(--muted); }
.wt-list { list-style: none; margin: 0; padding: 4px 14px; background: var(--surface); border-radius: 18px; }
.wt-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.wt-list li + li { border-top: 1px solid var(--line); }
.wt-li-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wt-li-t .it { font: italic 400 19px/1.2 var(--it); }
.wt-li-t .muted { font-size: 13.5px; }
.wt-say { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--chip); color: var(--ink); display: grid; place-items: center; }
.wt-say svg { width: 17px; height: 17px; }
.wt-tag { flex: none; font-size: 12.5px; color: var(--ok); font-weight: 600; }
.wt-add { flex: none; border: 0; border-radius: 999px; background: var(--azzurro-soft); color: var(--azzurro-text); font-weight: 600; font-size: 13px; padding: 8px 12px; }
.wt-card { background: var(--surface); border-radius: 22px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.wt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wt-it { font: italic 400 30px/1.1 var(--it); }
.wt-fr { margin: 0; font-size: 17px; font-weight: 500; }
.wt-note { margin: 0; font-size: 14px; color: var(--muted); }
.wt-ex { border-left: 3px solid var(--spritz); padding-left: 12px; margin: 4px 0; }
.wt-ex p { margin: 0; } .wt-ex .it { font-family: var(--it); font-size: 18px; } .wt-ex .muted { font-size: 13.5px; }
.wt-st { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.wt-ok { color: var(--ok); font-weight: 600; font-size: 14.5px; }
.wt-manual input { font: inherit; font-size: 16px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.mem-list { margin: 8px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }

/* Actualités */
.nw-themes { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.chip-t { min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14.5px; padding: 6px 14px; }
.chip-t[aria-pressed="true"] { border: 2px solid var(--azzurro); background: var(--azzurro-soft); color: var(--azzurro-text); font-weight: 600; padding: 5px 13px; }
.nw-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; font-size: 13.5px; }
.nw-list { display: flex; flex-direction: column; gap: 8px; }
.nw-row { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: var(--surface); border-radius: 18px; padding: 12px 14px; color: var(--ink); }
.nw-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nw-row-t small { font-size: 12.5px; color: var(--muted); }
.nw-row-t b { font-weight: 500; font-size: 15.5px; line-height: 1.3; }
.nw-row .nw-done { color: var(--ok); font-weight: 600; }
.nw-row.done b { color: var(--muted); }
.nw-chev { flex: none; width: 18px; height: 18px; color: var(--muted); }
.nw-title { font-family: var(--it) !important; font-weight: 400 !important; font-size: 30px !important; line-height: 1.15; letter-spacing: 0; }
.nw-title-fr { margin: -4px 0 0; }
.nw-src { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.nw-src a { color: var(--azzurro-text); }
.nw-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.nw-tools .pill-btn[aria-pressed="true"] { background: var(--azzurro-soft); color: var(--azzurro-text); }
.nw-art { background: var(--surface); border-radius: 22px; padding: 6px 18px; }
.nw-p { padding: 10px 0; }
.nw-p + .nw-p { border-top: 1px solid var(--line); }
.nw-p .it { font-family: var(--it); font-size: 20px; line-height: 1.4; margin: 0; }
.nw-fr { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }
.nw-hint { font-size: 12.5px; color: var(--muted); text-align: center; margin: 6px 0 14px; }
.nw-sec { background: var(--surface); border-radius: 22px; padding: 14px 18px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.nw-sec h3 { margin: 0 0 2px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--spritz-text); }
.nw-kw { list-style: none; margin: 0; padding: 0; }
.nw-kw li { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.nw-kw li + li { border-top: 1px solid var(--line); }
.nw-kw-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nw-kw-t .it { font: italic 400 19px/1.2 var(--it); }
.nw-kw-t span { font-size: 14px; }
.nw-kw-t small { font-size: 12.5px; }
.nw-kw .wt-add:disabled { background: none; color: var(--ok); }
.nw-struct b { font-size: 16px; }
.nw-struct p { margin: 0; font-size: 14.5px; }
.nw-struct .ex { display: flex; flex-direction: column; border-left: 3px solid var(--spritz); padding-left: 12px; margin-top: 4px; }
.nw-struct .ex .it { font-family: var(--it); font-size: 18px; }
.nw-diff { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; }
.nw-diff-b { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.nw-diff-b b { font-weight: 600; font-size: 15px; }
.nw-diff-b small { font-size: 13px; color: var(--muted); }
.nw-diff-b[aria-pressed="true"] { border: 2px solid var(--azzurro); background: var(--azzurro-soft); padding: 9px 13px; }
.nw-diff-b[aria-pressed="true"] b { color: var(--azzurro-text); }
.nw-field textarea { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; resize: vertical; }
.nw-skip { align-self: center; display: block; margin: 8px auto 0; color: var(--muted); font-size: 14px; }
.nw-dict { gap: 8px; margin-bottom: 8px; }
.nw-fix { font-family: var(--it); font-size: 19px; margin: 0; }
.nw-card .post-h { align-items: center; }
.nw-badge { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font: 700 9px/1 var(--body); letter-spacing: .04em; }
.nw-card-t { margin: 6px 0 2px; font-size: 17px; font-weight: 500; line-height: 1.3; }
.nw-card .acts { margin-top: 10px; }

/* Onglet Leçons : segments et historique */
.segs { display: flex; gap: 4px; background: var(--chip); border-radius: 999px; padding: 4px; margin: 2px 0 6px; }
.seg { flex: 1; min-height: 38px; height: 38px; padding: 0 6px; margin: 0; display: grid; place-items: center; line-height: 1; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 14.5px/1 var(--body); }
.seg[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px rgba(18, 18, 24, .12); }
.seg-body { display: flex; flex-direction: column; gap: 8px; }
.nw-stage { margin: -2px 0 4px; font-size: 13px; color: var(--muted); }
.hist-day { margin: 12px 4px 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.hist-row { display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: var(--surface); border-radius: 18px; padding: 12px 14px; color: var(--ink); }
.hist-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--chip); }
.k-news .hist-ic { background: var(--ink); color: var(--bg); }
.k-lesson .hist-ic { background: var(--spritz-soft); color: var(--spritz-text); }
.k-conv .hist-ic { background: var(--azzurro-soft); color: var(--azzurro-text); }
.hist-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hist-t small { font-size: 12.5px; color: var(--muted); }
.hist-t b { font-weight: 500; font-size: 15px; line-height: 1.3; }
.hist-sc { flex: none; font-size: 13px; font-weight: 600; color: var(--ok); }
.nw-log-r { border-top: 1px solid var(--line); padding: 8px 0; display: flex; flex-direction: column; gap: 2px; }
.nw-log-r p { margin: 0; }
.nw-log-q { font-size: 14px; color: var(--muted); }
.nw-log-a { font-size: 15px; }
.nw-log-r.ok .nw-log-a { color: var(--ok); }
.nw-log-r.ko .nw-log-a { color: var(--ko); }
.nw-log-fix { font-family: var(--it); font-size: 17px; }
button.who { border: 0; background: none; padding: 0; margin: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; border-radius: 999px; }
.pause-chips { margin: 0; padding: 0; flex-wrap: wrap; }
.dm.listening .dm-comp input { border-color: var(--ko-fill) !important; box-shadow: 0 0 0 3px var(--ko-bg); }
/* Dialogue lu à voix haute */
.dlg-bar { display: flex; margin: 4px 0 14px; }
.dlg .ln { padding: 6px 10px; margin: 0 -10px; border-radius: 12px; transition: background .2s; }
.dlg .ln.playing { background: var(--chip); }
/* Sommaire de la leçon */
.lmap-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; max-height: 60vh; overflow-y: auto; }
.lmap-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--chip); color: var(--ink); font: inherit; }
.lmap-row b { font-weight: 600; font-size: 15.5px; }
.lmap-row small { color: var(--muted); font-size: 13px; }
.lmap-row.here { background: var(--azzurro); color: var(--azzurro-ink); }
.lmap-row.here small { color: inherit; opacity: .8; }
.lesson-bar .sub { flex-wrap: nowrap !important; }
.lesson-bar .sub .where { max-width: none; flex: 1 1 auto; min-width: 0; }
.lesson-bar .sub .icon-btn { flex: none; }

/* ---------- Lino ---------- */
.lino { display: block; overflow: visible; }
.lino .ln-arm { stroke: #F2B90F; stroke-width: 6; fill: none; stroke-linecap: round; }
.lino .ln-line { stroke: #1E1B2E; stroke-width: 3; fill: none; stroke-linecap: round; }
.lino .ln-blink { transform-box: fill-box; transform-origin: center; animation: ln-blink 4s infinite; }
.lino .ln-wave { transform-box: fill-box; transform-origin: 0% 100%; animation: ln-wave 2.6s ease-in-out infinite; }
.lino .ln-cheerL { transform-box: fill-box; transform-origin: 100% 100%; animation: ln-cheer .7s ease-in-out infinite; }
.lino .ln-cheerR { transform-box: fill-box; transform-origin: 0% 100%; animation: ln-cheer .7s ease-in-out infinite reverse; }
.lino-wave { animation: ln-bob 2.6s ease-in-out infinite; }
.lino-joy { transform-origin: 50% 100%; animation: ln-jump 1.4s ease-in-out infinite; }
@keyframes ln-blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.12); } }
@keyframes ln-wave { 0%, 60%, 100% { transform: rotate(0); } 20% { transform: rotate(-28deg); } 40% { transform: rotate(8deg); } }
@keyframes ln-cheer { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-20deg); } }
@keyframes ln-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes ln-jump { 0%, 100% { transform: translateY(0) scaleY(1); } 30% { transform: translateY(-14px) scaleY(1.04); } 55% { transform: translateY(0) scaleY(.94); } 70% { transform: translateY(-4px); } }
@keyframes ln-swing { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* ---------- Le voyage (onglet Leçons) ---------- */
:root { --vy-off: #EADFD1; --vy-bg: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --vy-off: #3A3A46; } }
.vy { display: flex; flex-direction: column; gap: 14px; font-family: "Nunito", var(--body); }
.vy-units { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.vy-units::-webkit-scrollbar { display: none; }
.vy-unit { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 13px; border: 0; border-radius: 999px; background: var(--chip); color: var(--muted); font: 800 13.5px/1 "Nunito", var(--body); }
.vy-unit svg { width: 14px; height: 14px; }
.vy-unit.done { background: var(--ok-bg); color: var(--ok); }
.vy-unit[aria-selected="true"] { background: var(--ink); color: var(--surface); }
.vy-gbox { position: relative; height: 84px; margin: -6px 0 -22px; color: var(--muted); }
.vy-garland { display: block; overflow: visible; }
.vy-garland .vy-tw { transform-box: fill-box; transform-origin: center; animation: vy-tw 2.4s ease-in-out infinite; }
.vy-garland .vy-glow { transform-box: fill-box; transform-origin: center; animation: vy-glow 1.6s ease-in-out infinite; }
@keyframes vy-tw { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: .95; transform: scale(1.15); } }
@keyframes vy-glow { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: .9; transform: scale(1.3); } }
.vy-hang { position: absolute; width: 48px; transform-origin: 50% 0; animation: ln-swing 3s ease-in-out infinite; }
.vy-head { display: flex; flex-direction: column; gap: 2px; padding-right: 40px; }
.vy-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--spritz-text); }
.vy-title { margin: 0; font: 900 22px/1.15 "Nunito", var(--body); letter-spacing: -.01em; }
.vy-goal { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.vy-mono { font-family: "DM Mono", var(--mono, monospace); font-size: 11.5px; letter-spacing: .12em; }
.vy-ticket { position: relative; margin-top: 6px; border-radius: 24px; background: var(--surface); box-shadow: 0 14px 34px -18px rgba(30, 27, 46, .4); }
.vy-ticket.cur { margin-top: 30px; }
.vy-sit { position: absolute; right: 16px; top: -50px; z-index: 2; }
.vy-t-top { padding: 18px 20px 16px; border-radius: 24px 24px 0 0; background: var(--spritz); color: #FFFFFF; display: flex; flex-direction: column; gap: 8px; }
.vy-t-row { display: flex; align-items: center; justify-content: space-between; }
.vy-t-title { margin: 0; font: 900 25px/1.1 "Nunito", var(--body); color: inherit; }
.vy-t-sub { font-size: 14px; font-weight: 700; opacity: .9; }
.vy-route { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; margin-top: 2px; }
.vy-rail { position: relative; flex: 1; height: 0; border-top: 2px dotted rgba(255, 255, 255, .75); }
.vy-dot { position: absolute; top: -8px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); }
.vy-t-mid { padding: 14px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vy-t-mid > div { display: flex; flex-direction: column; min-width: 0; }
.vy-t-mid .vy-mono { color: var(--muted); font-size: 10.5px; }
.vy-t-mid b { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vy-perf { position: relative; margin: 0 18px; border-top: 2px dashed var(--line); }
.vy-perf::before, .vy-perf::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.vy-perf::before { left: -30px; } .vy-perf::after { right: -30px; }
.vy-t-bot { padding: 14px 18px 18px; display: flex; align-items: center; gap: 12px; }
.vy-code { flex: none; color: var(--ink); opacity: .85; }
.vy-go { flex: 1; height: 50px; border: 0; border-radius: 16px; background: var(--ink); color: var(--surface); font: 900 16px/1 "Nunito", var(--body); }
.vy-map { flex: none; width: 50px; height: 50px; border: 0; border-radius: 16px; background: var(--chip); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.vy-done-all .vy-t-top { background: var(--ok-fill); border-radius: 24px; }
.vy-done-all .vy-t-bot { padding-top: 14px; }
.vy-sec { margin: 8px 0 -2px; font-size: 14px; font-weight: 800; color: var(--muted); }
.vy-stack { display: flex; flex-direction: column; }
.vy-strip { position: relative; display: flex; align-items: center; gap: 10px; min-height: 60px; margin-top: -12px; padding: 12px 16px 14px; border: 0; border-radius: 20px; text-align: left; font: inherit; box-shadow: 0 -6px 16px -12px rgba(30, 27, 46, .35); }
.vy-strip:first-child { margin-top: 0; }
.vy-strip b { flex: 1; min-width: 0; font-size: 15px; font-weight: 800; }
.vy-strip small { font-size: 12.5px; font-weight: 700; opacity: .85; }
.vy-done { display: flex; flex-direction: column; gap: 6px; }
.vy-stub { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 0; border-radius: 16px; background: var(--surface); color: var(--ink); text-align: left; font: inherit; }
.vy-stub b { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; }
.vy-stub small { color: var(--ok); font-weight: 800; }
.vy-stamp { flex: none; padding: 3px 7px; border: 2px solid var(--ok); border-radius: 6px; color: var(--ok); font: 500 10.5px/1 "DM Mono", monospace; letter-spacing: .12em; transform: rotate(-6deg); }

/* Retour d'exercice : Lino réagit */
.fb strong .fb-lino { margin-left: auto; flex: none; }

/* ---------- Fin de leçon ---------- */
.end-fx { position: relative; font-family: "Nunito", var(--body); }
.end-fx .score { display: none; }
.end-hero { position: relative; width: 100%; height: 170px; display: flex; align-items: center; justify-content: center; }
.end-halo { position: absolute; width: 170px; height: 170px; border-radius: 50%; background: #FFE9B8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .end-halo { background: #3A3215; } }
.end-lino { position: relative; }
.conf-box { position: absolute; inset: -30px -16px auto; height: 420px; overflow: hidden; pointer-events: none; }
.conf { position: absolute; top: 0; width: 9px; height: 14px; border-radius: 2px; animation: conf-fall 3.2s linear infinite; opacity: 0; }
.conf.round { width: 10px; height: 10px; border-radius: 50%; }
@keyframes conf-fall { 0% { transform: translateY(-40px) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(420px) rotate(420deg); opacity: 0; } }
.end-stars { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin-top: -6px; }
.end-stars .star path { fill: var(--line); }
.end-stars .star.on path { fill: #FFC93C; stroke: #F2A900; stroke-width: 1.2; stroke-linejoin: round; }
.end-stars .star { animation: star-pop .5s ease-out both; }
.end-stars .s1 { animation-delay: .4s; } .end-stars .s2 { animation-delay: .7s; } .end-stars .s3 { animation-delay: 1s; }
@keyframes star-pop { 0% { transform: scale(0) rotate(-30deg); opacity: 0; } 70% { transform: scale(1.2) rotate(6deg); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.end-bravo { margin: 4px 0 -4px; font: 900 34px/1.05 "Nunito", var(--body); letter-spacing: -.02em; }
.end-tiles { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.end-tile { padding: 12px 6px; border-radius: 20px; background: var(--surface); box-shadow: 0 6px 18px -10px rgba(30, 27, 46, .3); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.end-tile b { font-size: 24px; font-weight: 900; }
.end-tile span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.end-tile.t-ok b { color: var(--ok); } .end-tile.t-blue b { color: var(--azzurro-text); } .end-tile.t-sun b { color: var(--spritz-text); }
.end-unit { width: 100%; padding: 14px 16px; border-radius: 20px; background: var(--spritz-soft); display: flex; flex-direction: column; gap: 8px; text-align: left; }
.end-unit b { font-size: 14px; font-weight: 800; }
.end-seg { display: flex; gap: 5px; }
.end-seg i { flex: 1; height: 10px; border-radius: 999px; background: var(--surface); }
.end-seg i.on { background: #FFC93C; } .end-seg i.now { background: var(--spritz); }
.end-fx .rise { animation: end-rise .5s ease-out both 1.1s; }
@keyframes end-rise { 0% { transform: translateY(16px); opacity: 0; } 100% { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .lino *, .lino, .vy-hang, .vy-garland *, .end-stars .star, .end-fx .rise { animation: none !important; }
  .conf-box { display: none; }
}

/* ---------- Le style « voyage » partout : titres ronds, teintes douces, Lino ---------- */
.tab-hd h1 { font-weight: 900; letter-spacing: -.02em; }
.sec-h h2, .feed-sec { font-weight: 900; font-size: 19px; letter-spacing: -.01em; }
.tint-0 { background: #FFE3D1 !important; color: #B4461C !important; }
.tint-1 { background: #EEE8FF !important; color: #5B47C4 !important; }
.tint-2 { background: #E3F6EC !important; color: #1F8A5E !important; }
.tint-3 { background: #FFF1C9 !important; color: #8A6A10 !important; }
.tint-4 { background: #E3ECFF !important; color: #2F55C9 !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tint-0 { background: #3A2418 !important; color: #FFB38F !important; } :root:not([data-theme="light"]) .tint-1 { background: #26213F !important; color: #B9A9FF !important; } :root:not([data-theme="light"]) .tint-2 { background: #15301F !important; color: #7FD9A8 !important; } :root:not([data-theme="light"]) .tint-3 { background: #352B12 !important; color: #F2D27A !important; } :root:not([data-theme="light"]) .tint-4 { background: #1B2643 !important; color: #A9BEFF !important; } }

/* Accueil */
.hd-chips { display: flex; align-items: center; gap: 8px; }
.goal-chip { width: 44px; height: 44px; border-radius: 999px; background: var(--surface); display: grid; place-items: center; box-shadow: 0 2px 10px -4px rgba(30, 27, 46, .15); }
.goal-chip svg { display: block; }
.home-trip { display: flex; flex-direction: column; gap: 4px; }
.home-trip-u { margin: 0 0 6px; color: var(--muted); font-size: 14px; font-weight: 700; padding-right: 76px; }
.home-trip .vy-ticket.cur { margin-top: 26px; }
.home-trip .lh-all { align-self: center; margin-top: 10px; font-weight: 800; }
.card.wotd { position: relative; background: #FFF4CC; }
.card.wotd .quote { background: rgba(255, 255, 255, .65); }
.card.wotd .pill-btn.soft { background: rgba(255, 255, 255, .8); }
.wotd-lino { position: absolute; right: 14px; top: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card.wotd { background: #3A3215; } :root:not([data-theme="light"]) .card.wotd .quote, :root:not([data-theme="light"]) .card.wotd .pill-btn.soft { background: rgba(0, 0, 0, .25); } }
.card.defi-marco { background: #FFE9DE; } .card.defi-sofia { background: #E9EEFF; } .card.defi-rosa { background: #E6F5EC; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card.defi { background: var(--surface); } }

/* Mots */
.today-c { background: #FFE3D1; color: #3A1F10; box-shadow: none; padding-left: 10px; }
.today-c small { color: #8A4A2A !important; }
.today-c b { font-weight: 900; color: #2A160B; }
.today-lino { flex: none; margin: -6px -4px -6px 0; }
.today-go { background: var(--spritz) !important; color: #FFFFFF !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .today-c { background: #3A2418; color: #FFE3D1; } :root:not([data-theme="light"]) .today-c b { color: #FFF1EA; } :root:not([data-theme="light"]) .today-c small { color: #FFB38F !important; } }
.row-ic[class*="tint-"] svg { color: inherit; }

/* Actu */
.nw-intro { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
.nw-intro p { margin: 0; color: var(--muted); font-size: 15px; font-weight: 600; line-height: 1.4; }
.nw-intro .lino { flex: none; }
.nw-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nwt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 86px; padding: 12px; border: 2px solid transparent; border-radius: 18px; text-align: left; font: 800 14px/1.2 var(--body); }
.theme-ic svg { width: 24px; height: 24px; display: block; }
.theme-n { color: var(--ink); }
.nwt[aria-pressed="true"] { border-color: currentColor; }
.nwt[aria-pressed="true"]::after { content: ""; position: absolute; right: 10px; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: currentColor url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.nw-row { gap: 12px; }
.nw-row .row-ic svg { width: 20px; height: 20px; }
.nw-row-t b { font-weight: 800; }

/* Accueil : « Ta journée », une seule carte avec les petites choses du jour */
.daily { display: flex; flex-direction: column; gap: 10px; }
.daily-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.daily-h > div { display: flex; flex-direction: column; }
.daily-h small { font-size: 13px; font-weight: 600; }
.daily-n { flex: none; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--chip); color: var(--muted); font-size: 13.5px; font-weight: 800; display: inline-flex; align-items: center; }
.daily-n.all { background: var(--ok-bg); color: var(--ok); }
.daily-box { background: var(--surface); border-radius: 22px; padding: 6px; display: flex; flex-direction: column; box-shadow: 0 10px 30px -22px rgba(30, 27, 46, .35); }
.daily-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 10px; border: 0; border-radius: 16px; background: transparent; color: var(--ink); text-align: left; font: inherit; }
.daily-row + .daily-row, .daily-more + .daily-row { border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; }
.daily-row:active { background: var(--chip); }
.daily-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.daily-t small { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.daily-t b { font-size: 15.5px; font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.daily-t b.it { font-family: var(--it); font-weight: 400; font-size: 21px; line-height: 1.15; }
.daily-sub { font-size: 13.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.daily-st { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.daily-st svg { width: 18px; height: 18px; }
.daily-row.done .daily-st { background: var(--ok-fill); color: #FFFFFF; }
.daily-row.done .daily-st svg { width: 15px; height: 15px; }
.daily-row.done .daily-t b:not(.it) { color: var(--muted); }
.daily-av { padding: 0; overflow: hidden; background: none !important; }
.daily-av > * { width: 42px; height: 42px; }
.daily-more { padding: 0 10px 12px 64px; display: flex; flex-direction: column; gap: 10px; }
.daily-more .quote { margin: 0; }
.daily-more .acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* Accueil : personnages et sujets, dans le même style */
.story.fresh .story-ring, .story-ring.big { background: var(--spritz); }
.story-l { font-weight: 700; }
.theme { width: 200px; height: auto; border-radius: 20px; box-shadow: 0 10px 24px -20px rgba(30, 27, 46, .45); }
.theme img { height: 104px; }
.theme-t { padding: 10px 14px 14px; }
.theme-t b { font-weight: 800; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.theme-t small { font-weight: 600; }
.theme-tag { background: rgba(255, 255, 255, .92); color: var(--ink); font-weight: 800; }
.daily-r { display: flex; align-items: flex-end; gap: 6px; }
.daily-lino { margin-bottom: -4px; }
.daily-h > .daily-r { flex-direction: row; align-items: center; }
.daily-h > .daily-r .daily-lino { margin: -10px 0 -6px; }

/* ---------- Langues : choix de la langue, hébreu (de droite à gauche, voyelles) ---------- */
.lang-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 6px; border-radius: 999px; border: 0; background: var(--chip); color: var(--ink); font: 700 13.5px/1 var(--body); }
.lang-chip svg { width: 14px; height: 14px; opacity: .55; transform: rotate(90deg); }
.flag { flex: none; display: inline-block; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(23, 20, 15, .12); }
.flag-it { background: linear-gradient(90deg, #1F9D55 0 33.3%, #fff 33.3% 66.6%, #D7383F 66.6%); }
.flag-es { background: linear-gradient(#C60B1E 0 25%, #FFC400 25% 75%, #C60B1E 75%); }
.flag-en { background: linear-gradient(#3C3B6E, #3C3B6E) 0 0 / 44% 54% no-repeat, repeating-linear-gradient(#B22234 0 15.38%, #fff 15.38% 30.76%); }
.flag-fr { background: linear-gradient(90deg, #2350A8 0 33.3%, #fff 33.3% 66.6%, #E1343F 66.6%); }
.flag-he { background: linear-gradient(#fff 0 18%, #2457D6 18% 30%, #fff 30% 70%, #2457D6 70% 82%, #fff 82%); }
.chip .flag { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.tab-hd-l { display: flex; flex-direction: column; gap: 2px; }
.tab-hd-l .muted { padding-bottom: 0; }
.tab-hd .lang-chip { margin-bottom: 4px; }
.lsheet .lmap-row { flex-direction: row; align-items: center; gap: 12px; }
.lsheet .lmap-row .flag { width: 30px; height: 30px; }
.lr-t { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.lsheet .ws-lem { margin: 0 0 4px; }
.g-he { font-family: "Noto Serif Hebrew", var(--it); font-style: normal; display: inline-block; }
.g-h2 { font-size: 18px; margin: 18px 0 8px; }
.g-choices.g-two { flex-direction: row; } .g-choices.g-two .g-choice { flex: 1; }
.g-choices.g-langs .g-choice { min-height: 72px; }
.g-choices.g-langs .g-choice b { font-size: 19px; font-weight: 700; }

/* Hébreu : la police à voyelles prend le relais pour les lettres hébraïques ; pas d'italique simulé ;
   chaque texte hébreu prend son sens de lecture (droite à gauche) sans renverser les phrases françaises. */
html[data-course="he"] { --it: "Nunito", "Noto Serif Hebrew", system-ui, sans-serif; }
html[data-course="he"] body { font-synthesis: weight; }
html[data-course="he"] :is(.it, .word, .opt, .q, .bub, .ws-word, .wt-it, .nw-title, .nw-card-t, .car-heard, .dict, .it-line, .big-it, .q-it, .quote .it, .corr .better, .lesson .ex, .daily-t b, .fb p, .miss b, .lmap-row b, input, textarea, .chip) { unicode-bidi: plaintext; }
html[data-course="he"] :is(.tray, .pool) { direction: rtl; }
html[data-course="he"] .lesson em { font-style: normal; font-family: var(--it); font-size: 1.2em; unicode-bidi: isolate; }
html[data-course="he"] .lesson td em { font-size: 1.45em; }
html[data-course="he"] :is(.vw .it, .word) { font-size: 1.15em; line-height: 1.5; }
html[data-course="he"] .keys { direction: rtl; gap: 4px; }
html[data-course="he"] .keys button { min-width: 34px; min-height: 40px; padding: 0 2px; font: 400 20px/1 "Noto Sans Hebrew", var(--body); }

/* Chaque langue a sa couleur : orange pour l'italien, bleu pour l'hébreu. */
html[data-course="he"] { --spritz: #2F5BEA; --spritz-ink: #FFFFFF; --spritz-soft: #E9EFFF; --spritz-text: #1C3FAE; }
html[data-course="he"] .lhero.start { box-shadow: 0 0 0 2px var(--spritz), 0 14px 34px -16px rgba(47, 91, 234, .55); }
.course-flash { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--bg); text-align: center; animation: cf-in .22s ease-out; transition: opacity .3s ease; }
.course-flash.out { opacity: 0; pointer-events: none; }
.course-flash .flag { width: 72px; height: 72px; margin-bottom: 8px; box-shadow: inset 0 0 0 1px rgba(23, 20, 15, .12), 0 10px 30px -12px rgba(23, 20, 15, .35); }
.course-flash b { font: 900 32px/1.1 var(--display); color: var(--ink); }
.cf-nat { font: 400 28px/1.2 var(--it); color: var(--spritz-text); }
.course-flash small { color: var(--muted); font-size: 14px; margin-top: 6px; }
@keyframes cf-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .course-flash { animation: none; transition: none; } }
.lh-from { margin: 10px 4px 0; font-size: 13.5px; color: var(--muted); text-align: center; line-height: 1.4; }
.lh-from .link { font-size: 13.5px; padding: 0; }
.dm-snd { background: var(--chip) !important; }
.dm-snd.off { color: var(--muted) !important; }

/* Prononciation de l'hébreu, sous le texte (attribut data-tl rempli par ui.js) */
html.show-tl [data-tl]::after { content: attr(data-tl); display: block; margin-top: 3px; font: italic 400 13.5px/1.35 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); direction: ltr; unicode-bidi: isolate; text-align: inherit; white-space: normal; }
html.show-tl .lesson em[data-tl]::after { display: inline; margin-inline-start: .35em; font-size: .62em; }
html.show-tl :is(.word, .vw .it, .q)[data-tl]::after { font-size: 15px; }
html.show-tl :is(.opt, .chip)[data-tl]::after { font-size: 12px; margin-top: 1px; }
html.show-tl .bub[data-tl]::after { color: inherit; opacity: .72; }
html.show-tl .vy-t-top [data-tl]::after, html.show-tl .daily-t [data-tl]::after { color: inherit; opacity: .7; }
/* Répliques du dialogue : chaque mot est un bouton ; en hébreu, la ligne entière va de droite à gauche. */
html[data-course="he"] .dlg .ln .it { display: block; direction: rtl; text-align: right; }
html[data-course="he"] .dlg .ln .tr { display: block; }

/* ---------- Actu façon journal (proposition A) ---------- */
.nwj-top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding-top: 6px; }
.nwj-label { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nwj-top .link { font-size: 14px; font-weight: 800; color: var(--spritz-text); }
.nwj-mast { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 10px 0 8px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.nwj-title { margin: 0; font: 400 44px/1 var(--it) !important; letter-spacing: -.01em; }
.nwj-sub { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.nwj-tabs { display: flex; gap: 18px; padding: 12px 0 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.nwj-tabs::-webkit-scrollbar { display: none; }
.nwj-tab { flex: none; border: 0; background: none; padding: 0 0 9px; min-height: 36px; font: 700 14px/1 var(--body); color: var(--muted); border-bottom: 2px solid transparent; }
.nwj-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.nw-list.nwj { gap: 0; }
.nwj .nw-row { background: none; border-radius: 0; box-shadow: none; padding: 0; text-align: left; color: var(--ink); font: inherit; width: 100%; }
.nwj-lead { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 10px !important; padding: 18px 0 20px !important; border-bottom: 1px solid var(--ink) !important; }
.nwj-kick { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: var(--spritz-text); }
.nwj-h1 { font: 400 32px/1.06 var(--it); }
.nwj-fr { font: italic 400 16px/1.35 var(--it); color: var(--muted); }
.nwj-fr:empty, .nwj-frs:empty { display: none; }
.nwj-dek { font-size: 15px; line-height: 1.5; color: #3A342D; }
.nwj-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.nwj-meta { font-size: 13px; font-weight: 700; color: var(--muted); }
.nwj-cta { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-weight: 800; font-size: 15px; }
.nwj-done { font-size: 12.5px; font-weight: 800; color: #1E6B45; }
.nwj-briefs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; padding: 14px 0 18px; border-bottom: 3px double var(--ink); }
.nwj-briefs > :only-child { grid-column: 1 / -1; }
.nwj-brief { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 6px !important; }
.nwj-brief:first-child:not(:only-child) { border-right: 1px solid var(--line) !important; padding-right: 12px !important; }
.nwj-h3 { font: 400 20px/1.12 var(--it); }
.nwj-frs { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.nwj-filh { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 6px; }
.nwj-filh h3 { margin: 0; font: 400 26px/1 var(--it); }
.nwj-filh span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.nwj-fil { display: grid !important; grid-template-columns: 52px minmax(0, 1fr); gap: 12px !important; padding: 14px 0 !important; border-bottom: 1px solid var(--line) !important; align-items: start !important; }
.nwj-time { font-size: 13px; font-weight: 800; color: var(--muted); padding-top: 3px; }
.nwj-filt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nwj-h4 { font: 400 19px/1.15 var(--it); }
.nwj .nw-row.done :is(.nwj-h1, .nwj-h3, .nwj-h4) { color: #3A342D; }
html[data-course="he"] :is(.nwj-h1, .nwj-h3, .nwj-h4) { unicode-bidi: plaintext; }
/* Carte « journal » de l'accueil (kiosque) */
.nwe { padding: 16px 18px 8px !important; display: flex; flex-direction: column; }
.nwe-h { display: flex; align-items: center; gap: 10px; }
.nwe-title { font: 400 19px/1 var(--it); white-space: nowrap; }
.nwe-rule { flex: 1; height: 1px; background: var(--line); }
.nwe-date { font-size: 12px; font-weight: 700; color: var(--muted); }
.nwe-empty { margin: 12px 0 8px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.nwe-pick { align-self: flex-start; margin-bottom: 10px; }
.nwe-lead { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 12px; align-items: end; padding: 14px 0; border: 0; background: none; text-align: left; color: var(--ink); font: inherit; }
.nwe-lt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.nwe-h1 { font: 400 21px/1.12 var(--it); }
.nwe-go { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #FFFFFF; display: grid; place-items: center; }
.nwe-line { display: flex; gap: 10px; align-items: baseline; padding: 11px 0; border: 0; border-top: 1px solid var(--chip); background: none; text-align: left; color: var(--ink); font: inherit; min-width: 0; white-space: nowrap; overflow: hidden; }
.nwe-k { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.nwe-t { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nwe-all { align-self: center; min-height: 44px; font-weight: 800; color: var(--spritz-text); }
html[data-course="he"] :is(.nwe-h1, .nwe-t) { unicode-bidi: plaintext; }
.nwe .nwe-b { display: flex; flex-direction: column; min-width: 0; }
.nwe .nwe-line { width: 100%; box-sizing: border-box; }
.nwe .nwe-t { flex: 1 1 auto; display: block; }
.nwe .nwe-lead { width: 100%; }
.nwe .nwe-all { align-self: stretch; text-align: center; width: 100%; }

/* ---------- Parler : personnages dessinés, thèmes en photo, filtres ---------- */
.av.face { overflow: hidden; padding: 0; background: var(--chip); }
.av.face img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); transform-origin: 50% 46%; display: block; }
.story-ring > .av.face { padding: 0; }
.talk-sub { margin: 4px 0 0; font-size: 14.5px; }
.pcards { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x mandatory; scroll-padding-left: 16px; }
.pcards::-webkit-scrollbar { display: none; }
.pcard { flex: none; width: 262px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; scroll-snap-align: start; }
.pc-top { position: relative; border: 0; padding: 0; display: block; background: var(--chip); cursor: pointer; }
.pc-top img { width: 100%; height: auto; aspect-ratio: 240 / 200; display: block; }
.pc-badge { position: absolute; top: 12px; right: 12px; padding: 5px 10px; border-radius: 999px; background: #FFFFFF; color: #1F2328; font-size: 11.5px; font-weight: 900; }
.pc-b { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pc-n { display: flex; flex-direction: column; gap: 1px; }
.pc-n b { font: 400 26px/1.05 var(--it); }
.pc-n small { font-size: 13px; color: var(--muted); font-weight: 700; }
.pc-st { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: #1E6B45; }
.pc-st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22A05A; flex: none; }
.pc-q { display: flex; flex-direction: column; gap: 3px; }
.pc-qt { font: italic 400 18.5px/1.22 var(--it); }
.pc-qt[dir="rtl"], .pp-q p[dir="rtl"] { font-family: "Noto Serif Hebrew", Georgia, serif; font-style: normal; text-align: right; }
.pc-tl { font-size: 12.5px; color: var(--muted); font-style: italic; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tags span { padding: 4px 9px; border-radius: 999px; background: var(--chip); font-size: 12px; font-weight: 700; }
.pc-tags.big span { padding: 6px 11px; font-size: 13px; }
.pc-act { margin-top: auto; display: flex; gap: 8px; }
.pc-go { flex: 1; height: 44px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 14.5px; }
.pc-go svg { width: 17px; height: 17px; }
.pc-pf { height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--chip); color: var(--ink); font-weight: 800; font-size: 13.5px; }
.tchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px; }
.tchips::-webkit-scrollbar { display: none; }
.tchip { flex: none; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 800; font-size: 13.5px; }
.tchip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tcard { position: relative; height: 196px; border: 0; padding: 0; border-radius: 20px; overflow: hidden; background: #3F4D5C; color: #FFFFFF; text-align: left; cursor: pointer; }
.tcard.lead { grid-column: span 2; height: 220px; }
.tcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tcard.ill { background: var(--chip); }
.tcard.ill img { height: 62%; }
.tc-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; background: linear-gradient(to top, rgba(0, 0, 0, .74), rgba(0, 0, 0, .35) 65%, rgba(0, 0, 0, 0)); display: flex; flex-direction: column; gap: 4px; }
.tc-t b { font-size: 16px; line-height: 1.15; font-weight: 900; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard.lead .tc-t b { font-size: 22px; }
.tc-t small { font-size: 12px; font-weight: 600; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-tag { align-self: flex-start; max-width: 100%; padding: 3px 8px; border-radius: 999px; background: #FFFFFF; color: #1F2328; font-size: 11px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-tag.now { background: var(--spritz); color: #FFFFFF; }
.tcard.later .tc-tag { background: rgba(255, 255, 255, .22); color: #FFFFFF; }
.tcard.later img { filter: saturate(.55); }
.tcard:active { transform: scale(.985); }
.tmore { grid-column: span 2; height: 46px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 800; font-size: 14px; }
.credits { display: block; margin: 14px auto 0; font-size: 12.5px; color: var(--muted); }
html[data-course="he"] .tcard, html[data-course="he"] .pcard { direction: ltr; }
/* Fiche personnage */
.pp-hero { position: relative; border-radius: 26px; overflow: hidden; flex: none; }
.pp-hero img { width: 100%; height: auto; aspect-ratio: 240 / 200; display: block; max-height: 380px; object-fit: cover; }
.pp-back { position: absolute; top: 14px; left: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1F2328; z-index: 1; }
.pp-hd { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; }
.pp-hd h1 { margin: 0; font: 400 44px/1 var(--it); }
.pp-who { font-weight: 700; color: var(--muted); }
.pp-q { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.pp-q p { margin: 0; font: italic 400 24px/1.2 var(--it); }
.pp-bio { font-size: 15px; line-height: 1.5; margin: 10px 0 0; }
.pp-voice { margin-top: 14px; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; }
.pp-play { width: 44px; height: 44px; border-radius: 50%; background: var(--spritz); color: #FFFFFF; display: grid; place-items: center; flex: none; }
.pp-play svg { width: 18px; height: 18px; }
.pp-vt { display: flex; flex-direction: column; } .pp-vt b { font-size: 15px; } .pp-vt small { font-size: 12.5px; color: var(--muted); }
.pp-h { font-size: 17px; margin: 22px 0 10px; }
.pp-fact { padding: 12px 16px; border-bottom: 1px solid var(--chip); font-size: 14.5px; } .pp-fact:last-child { border-bottom: 0; }
.pp-conv { padding: 14px 16px; } .pp-conv p { margin: 6px 0 0; font-size: 14px; }
.pp-cta { position: sticky; bottom: calc(var(--tab-h) + 8px); margin-top: 22px; }
.pp-go { width: 100%; height: 54px; border: 0; border-radius: 999px; background: var(--spritz); color: #FFFFFF; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 900; font-size: 16.5px; box-shadow: 0 10px 24px -14px rgba(255, 91, 46, .9); }
.pp-go svg { width: 20px; height: 20px; }

/* ---------- Traduction libre ---------- */
.tr-fr { font-size: 21px; line-height: 1.3; font-weight: 700; }
.tr-box { display: flex; flex-direction: column; gap: 8px; }
.tr-inp { font-size: 18px !important; }
html[data-course="he"] .tr-inp { font-family: "Noto Sans Hebrew", var(--body); text-align: right; }
.qz-wait { color: var(--muted); }

/* ---------- Révision sur mesure et Mes fautes ---------- */
.rv-card { padding: 16px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(135deg, #FFF1EC, #FFE6F1); border: 0; }
.rv-top { display: flex; gap: 12px; align-items: center; }
.rv-t { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rv-t small { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--spritz-text); }
.rv-t b { font-size: 18px; line-height: 1.2; color: #1F2328; }
.rv-t .muted { font-size: 13px; color: #5D5650; }
.rv-ic { flex: none; }
.rv-acts { display: flex; gap: 8px; }
.rv-go { flex: 1; min-height: 48px; border: 0; border-radius: 999px; background: #1F2328; color: #FFFFFF; font-weight: 800; font-size: 15px; }
.rv-go:disabled { opacity: .45; }
.rv-faults { min-height: 48px; padding: 0 14px; border: 0; border-radius: 999px; background: #FFFFFF; color: #1F2328; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.rv-faults b { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--spritz); color: #FFFFFF; display: inline-grid; place-items: center; font-size: 12.5px; box-sizing: border-box; }
.rv-prep { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 0; text-align: center; }
.rv-src { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0; text-transform: none; vertical-align: 1px; background: var(--chip); color: var(--ink); }
.rv-src.rv-faute { background: #FFE1D6; color: #9A2E0E; }
.rv-src.rv-mot { background: #DCE6FF; color: #22389E; }
.rv-end { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 24px; }
.rv-end .score { font: 800 64px/1 var(--body); color: var(--spritz); }
.rv-fixed { color: #1E6B45; font-weight: 700; }
.flist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fitem { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 44px 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.fi-q { font-size: 14.5px; font-weight: 600; }
.fi-a { display: flex; flex-direction: column; gap: 1px; } .fi-a small { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.fi-a.ko .it { color: #B3261E; text-decoration: line-through; text-decoration-thickness: 1px; } .fi-a.ok .it { color: #1E6B45; font-weight: 700; }
.fi-x { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; }
.fi-x svg { width: 16px; height: 16px; }

/* ---------- Progression (profil) ---------- */
.pg-hero { background: #1F2328; color: #FFFFFF; border-radius: 26px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.pg-top { display: flex; justify-content: space-between; align-items: flex-end; }
.pg-rank, .pg-xp { display: flex; flex-direction: column; }
.pg-rank small, .pg-xp small { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.pg-rank b { font: 400 32px/1 var(--it); }
.pg-xp { align-items: flex-end; } .pg-xp b { font-size: 26px; font-weight: 900; color: #FFC94D; }
.pg-bar { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.pg-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FF5B2E, #FFC94D); transition: width .8s ease; }
.pg-next { font-size: 13px; opacity: .8; }
.pg-lv { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); }
.pg-ring { --p: 0; flex: none; width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(#5BE08F calc(var(--p) * 1%), rgba(255, 255, 255, .16) 0); display: grid; place-items: center; position: relative; }
.pg-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #1F2328; }
.pg-ring b { position: relative; font-size: 15px; font-weight: 900; }
.pg-lv-t { display: flex; flex-direction: column; gap: 2px; } .pg-lv-t b { font-size: 15.5px; } .pg-lv-t small { font-size: 12.5px; opacity: .75; }
.pg-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-stats .stat small { font-size: 11px; }
.pg-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; } .pg-h b { font-size: 16px; } .pg-h small { font-size: 12.5px; }
.pg-bdg, .pg-cal, .pg-can { padding: 14px 16px; }
.bdg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bdg { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 8px 2px; border-radius: 16px; }
.bdg-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); color: #A8A29E; }
.bdg-ic svg { width: 22px; height: 22px; }
.bdg.got .bdg-ic { background: linear-gradient(135deg, #FFD36B, #FF8A3D); color: #FFFFFF; box-shadow: 0 6px 16px -8px rgba(255, 120, 40, .8); }
.bdg b { font-size: 11.5px; line-height: 1.15; font-weight: 800; }
.bdg small { font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.bdg:not(.got) b { color: var(--muted); }
.bdg-p { width: 70%; height: 4px; border-radius: 999px; background: var(--chip); overflow: hidden; } .bdg-p i { display: block; height: 100%; background: var(--spritz); }
.bdg.new .bdg-ic { animation: ipp-bdg 1.2s ease-in-out 3; }
@keyframes ipp-bdg { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-6deg); } 70% { transform: scale(.96) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .bdg.new .bdg-ic { animation: none; } .pg-bar i { transition: none; } }
.bdg-news { width: 100%; background: #FFF6DB; border-radius: 20px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bdg-news > b { font-size: 15px; color: #8A5A00; }
.bdg-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; } .bdg-row .bdg { width: 92px; }
.pg-more { display: block; margin: 8px auto 0; }
.pg-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pg-dl { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; }
.pg-d { aspect-ratio: 1; border-radius: 10px; background: var(--chip); display: grid; place-items: center; }
.pg-d.l1 { background: #FFE3D6; } .pg-d.l2 { background: #FFB899; }
.pg-d.goal { background: var(--spritz); color: #FFE08A; } .pg-d.goal svg { width: 60%; height: 60%; }
.pg-d.fut { background: transparent; border: 1px dashed var(--line); }
.pg-d.now { box-shadow: 0 0 0 2px var(--ink); }
.pg-can ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pg-can li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; }
.pg-can li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #22A05A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.pg-can li.next { color: var(--muted); } .pg-can li.next::before { background: var(--chip); }

/* ---------- Test de niveau (inscription) ---------- */
.g-testbtn { width: 100%; min-height: 64px; border: 0; border-radius: 20px; background: var(--cta); color: var(--cta-ink); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 12px 18px; text-align: left; }
.g-testbtn b { font-size: 16.5px; font-weight: 700; } .g-testbtn small { font-size: 13px; opacity: .8; }
.g-or { text-align: center; color: var(--muted); font-size: 13px; margin: 2px 0; }
.g-tprog { height: 8px; border-radius: 999px; background: var(--chip); overflow: hidden; } .g-tprog i { display: block; height: 100%; background: var(--azzurro); transition: width .3s; }
.g-tstep { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.g-tq { font-size: 24px; line-height: 1.25; }
.g-topts .g-choice b { font-size: 17px; }
.g-he-opt b { font-family: "Noto Sans Hebrew", var(--body); font-size: 19px !important; text-align: right; display: block; }
.g-choice.ok { border: 2px solid #22A05A; background: #E3F6EC; padding: 11px 17px; } .g-choice.ko { border: 2px solid #D93025; background: #FDE7E5; padding: 11px 17px; }
.g-tres { align-self: center; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #FFD36B, #FF8A3D); color: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 8px 0; box-shadow: 0 16px 40px -18px rgba(255, 120, 40, .9); }
.g-tres small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; } .g-tres b { font-size: 34px; font-weight: 800; text-align: center; line-height: 1.05; padding: 0 10px; }

/* ---------- Tes amis : une ligne par ami ---------- */
.fr-card { padding: 14px 16px 6px; display: flex; flex-direction: column; }
.fr-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.fr-hd .feed-sec { margin: 0; }
.fr-inv { font-weight: 800; font-size: 13.5px; }
.fr-fans { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 6px 0 4px; border-radius: 14px; background: var(--spritz-soft); color: var(--spritz-text); font-size: 13.5px; font-weight: 700; }
.fr-stack { display: inline-flex; flex: none; } .fr-stack .av { border: 2px solid var(--spritz-soft); font-size: 11px; font-style: normal; font-family: var(--body); font-weight: 800; } .fr-stack .av + .av { margin-left: -9px; }
.fr-list { display: flex; flex-direction: column; }
.fr-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--chip); }
.fr-row:first-child { border-top: 0; }
.fr-avw { position: relative; flex: none; }
.fr-av { font-family: var(--body) !important; font-style: normal !important; font-weight: 800; font-size: 17px !important; }
.fr-sk { position: absolute; right: -6px; bottom: -4px; display: inline-flex; align-items: center; gap: 1px; height: 19px; padding: 0 5px 0 3px; border-radius: 999px; background: var(--surface); color: var(--spritz); font-size: 11px; font-weight: 900; box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }
.fr-sk svg { width: 12px; height: 12px; }
.fr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fr-t b { font-size: 15px; }
.fr-sub { font-size: 13px; font-weight: 700; color: var(--ink); opacity: .8; }
.fr-last { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-cheer { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; }
.fr-cheer svg { width: 21px; height: 21px; }
.fr-cheer.on { background: var(--spritz); border-color: var(--spritz); color: #FFFFFF; }
.fr-cheer.pop { animation: ipp-pop .45s ease; }
@keyframes ipp-pop { 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .fr-cheer.pop { animation: none; } }
.fr-more { align-self: center; padding: 8px 0 10px; font-weight: 800; font-size: 13.5px; }

/* ---------- Nunito partout : la langue étudiée en gras (sans serif ni italique), titres très gras ---------- */
h1, h2, h3 { font-weight: 800; }
.q-it, .lesson .ex b, .vw .it, .dlg .it, .bub.it, .big-it, .it-line, .quote .it, .corr .better, .nb .it, .dict, .lesson .ex, .opts.grid2 .opt, .pool .chip, .tray .chip, .keys button, .field input { font-weight: 700; font-style: normal; }
.pc-n b { font-weight: 800; }
.av { font-style: normal; font-weight: 800; }
.nwj-title, .nwj-h1, .nwj-h3, .nwj-h4, .nwe-title, .nwe-h1, .nwj-filh h3, .cf-nat { font-weight: 800 !important; letter-spacing: -.02em; }
.nwj-fr { font-style: normal; font-weight: 600; }
.g-hello { font: 900 52px/1.05 var(--it) !important; letter-spacing: -.025em !important; }
.ws-word, .wt-it { font-style: normal; font-weight: 800; }
.wt-li-t .it, .nw-kw-t .it { font-style: normal; font-weight: 700; }
.lhero.over .lh-title { font-style: normal; font-weight: 800; }

/* ---------- Premium : l'offre, la carte du profil ; rappels ---------- */
body.pw-open { overflow: hidden; }
.pw { position: fixed; inset: 0; z-index: 2000; background: rgba(14, 14, 19, .5); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
.pw.in { opacity: 1; }
.pw-box { position: relative; width: 100%; max-width: 480px; max-height: 94vh; overflow-y: auto; background: var(--surface); color: var(--ink); border-radius: 28px 28px 0 0;
  padding: 26px 20px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; transform: translateY(24px); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.pw.in .pw-box { transform: none; }
@media (min-width: 600px) { .pw { align-items: center; } .pw-box { border-radius: 28px; } }
.pw-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--chip); color: var(--ink); display: grid; place-items: center; }
.pw-x svg { width: 18px; height: 18px; }
.pw-badge { align-self: flex-start; background: linear-gradient(90deg, #FFB800, #FF5B2E); color: #fff; font-weight: 900; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.pw-h { margin: 2px 40px 0 0; font-size: 25px; line-height: 1.15; font-weight: 900; }
.pw-sub { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.4; }
.pw-feat { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 8px; }
.pw-feat li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.pw-feat svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.pw-plans { display: grid; gap: 10px; margin-top: 4px; }
.pw-plan { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 14px 16px; border-radius: 18px; border: 2.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.pw-plan.sel { border-color: var(--brand); background: var(--brand-soft); }
.pw-plan-t { display: flex; width: 100%; justify-content: space-between; gap: 10px; font-size: 16px; }
.pw-plan-t b { font-weight: 900; }
.pw-plan-t span { font-weight: 800; }
.pw-plan-n { color: var(--muted); font-size: 13px; font-weight: 700; }
.pw-plan-b { position: absolute; top: -11px; right: 14px; background: var(--ok-fill); color: #fff; font-weight: 900; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.pw-then { margin: 2px 0 0; text-align: center; font-size: 14px; font-weight: 800; color: var(--ink); }
.pw-cta { height: 54px; border: 0; border-radius: 16px; background: var(--brand); color: var(--brand-ink); font: inherit; font-size: 17px; font-weight: 900; box-shadow: 0 4px 0 var(--brand-deep); }
.pw-cta:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--brand-deep); }
.pw-cta:disabled { opacity: .7; }
.pw-later { border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; font-weight: 800; padding: 6px; }
.pw-legal { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; text-align: center; }
.pw-yay .pw-box { align-items: center; text-align: center; }
.pw-yay .pw-h { margin: 0; }
.pw-confetti { font-size: 56px; line-height: 1; }
.pw-card.on { background: linear-gradient(135deg, #FFF6DB, #FFE9DF); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pw-card.on { background: linear-gradient(135deg, #33290F, #33201A); } }
.pw-card-t { display: flex; flex-direction: column; gap: 3px; }
.rm-card { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.rm-card .rm-bell { font-size: 30px; line-height: 1; }
.rm-card .rm-t { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; }
.rm-card .chips, .rm-card .acts { flex-basis: 100%; }
.rm-card .chip, .rm-set .chip { white-space: nowrap; }
.rm-card .rm-done { align-self: center; flex: 1; }
.pw-open .speaknote { z-index: 2100; }
.rm-card .chips, .rm-set .chips { flex-wrap: wrap; }
/* Minutes de conversation (formule gratuite) */
.dm-quota { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--brand-soft); color: var(--ink); font: inherit; font-size: 13px; font-weight: 800; white-space: nowrap; }
.dm-quota-up { flex: none; color: var(--brand-deep); font-weight: 900; }
.dm-quota.low { background: #FFF1D6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dm-quota.low { background: #3A2E12; } :root:not([data-theme="light"]) .dm-quota-up { color: var(--azzurro-text); } }
.dm-upsell { align-self: stretch; display: flex; flex-direction: column; gap: 10px; margin: 6px 0; padding: 14px 16px; border-radius: 18px; background: var(--brand-soft); }
.dm-upsell p { margin: 0; font-weight: 700; font-size: 14.5px; line-height: 1.4; }
.talk-up { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; background: var(--brand-soft); }
.talk-up-ic { font-size: 28px; line-height: 1; }
.talk-up-t { display: flex; flex-direction: column; gap: 3px; }
.talk-up-t small { color: var(--muted); font-size: 13.5px; }
.talk-up-bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.talk-up-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.talk-up .pill-btn { grid-column: 1 / -1; }
/* Choix de la formule dans l'offre */
.pw-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px; border-radius: 16px; background: var(--chip); }
.pw-tier { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 8px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; }
.pw-tier b { font-size: 16px; font-weight: 900; color: var(--ink); }
.pw-tier small { font-size: 12.5px; font-weight: 800; }
.pw-tier.sel { background: var(--surface); color: var(--brand-deep); box-shadow: 0 2px 8px rgba(18, 18, 24, .12); }
.pw-feat .pw-feat-h { font-weight: 900; color: var(--muted); font-size: 13.5px; }

/* ---------- Animations immersives : ciel plein écran et Lino pilote, Lino qui réagit au-dessus de la correction,
   séries, grands écrans de fête (objectif du jour, série de jours). Sons dans js/fx.js. ---------- */
:root { --sky1: #6FB0FF; --sky2: #B5D8FF; --sky3: #EEF6FF; --skyp1: #BFDDFF; --skyp2: #E4F1FF; --cloud: #FFFFFF; --cloud-sh: #DCEBFF; --wind: rgba(255, 255, 255, .85);
  --cel-ok1: #2FCB7A; --cel-ok2: #15A35F; --cel-st1: #FFB23F; --cel-st2: #FF6B35; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sky1: #0A1230; --sky2: #18244F; --sky3: #263266; --skyp1: #121C40; --skyp2: #0E0E13; --cloud: #33407A; --cloud-sh: #28336A; --wind: rgba(255, 255, 255, .25);
  --cel-ok1: #1E8E57; --cel-ok2: #106A40; --cel-st1: #C9761F; --cel-st2: #B3401C; } }
/* Le ciel : nuages à trois profondeurs, soleil, traits de vent. */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sky .sun { position: absolute; right: -60px; top: -70px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 226, 130, .7), rgba(255, 226, 130, 0) 68%); animation: sky-sun 6s ease-in-out infinite alternate; }
.sky .cl { position: absolute; left: 110%; top: var(--t); width: 96px; height: 30px; border-radius: 999px; background: var(--cloud); box-shadow: inset 0 -6px 0 var(--cloud-sh); opacity: var(--o, 1); transform: scale(var(--s, 1)); animation: sky-cl var(--d, 20s) linear var(--del, 0s) infinite; }
.sky .cl::before, .sky .cl::after { content: ""; position: absolute; border-radius: 50%; background: var(--cloud); }
.sky .cl::before { width: 44px; height: 44px; left: 14px; top: -24px; }
.sky .cl::after { width: 34px; height: 34px; left: 46px; top: -15px; }
.sky .cl.near { z-index: 3; }
.sky .wd { position: absolute; height: 3px; width: 46px; border-radius: 3px; background: var(--wind); top: var(--t); animation: sky-wd 1.2s linear var(--del, 0s) infinite; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sky .sun { background: radial-gradient(circle, rgba(220, 230, 255, .28), rgba(220, 230, 255, 0) 65%); } }
@keyframes sky-cl { from { left: 110%; } to { left: -40%; } }
@keyframes sky-wd { from { left: 78%; opacity: 0; } 20% { opacity: 1; } to { left: 4%; opacity: 0; } }
@keyframes sky-sun { from { transform: scale(1); opacity: .85; } to { transform: scale(1.12); opacity: 1; } }
/* L'avion et Lino */
.lp-plane { position: relative; width: 230px; animation: lp-fly 3s ease-in-out infinite; z-index: 2; }
.lp-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 14px 14px rgba(20, 40, 120, .18)); }
.lp-prop { transform-box: fill-box; transform-origin: center; animation: lp-spin .12s linear infinite; }
.lp-scarf, .lp-scarf2 { transform-box: fill-box; transform-origin: 100% 40%; animation: lp-scarf .4s ease-in-out infinite alternate; }
.lp-scarf2 { animation-delay: -.2s; }
.lp-arm { transform-box: view-box; transform-origin: 128px 50px; animation: lp-wave 1.8s ease-in-out infinite; }
.lp-blink { transform-box: fill-box; transform-origin: center; animation: ln-blink 4s infinite; }
@keyframes lp-fly { 0%, 100% { transform: translate(-10px, -8px) rotate(-3deg); } 25% { transform: translate(6px, 4px) rotate(1deg); } 50% { transform: translate(12px, 10px) rotate(3deg); } 75% { transform: translate(-4px, 2px) rotate(-1deg); } }
@keyframes lp-in { from { transform: translate(-110vw, 60px) rotate(8deg); } to { transform: none; } }
@keyframes lp-spin { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.1); } }
@keyframes lp-scarf { from { transform: skewY(-8deg); } to { transform: skewY(10deg) scaleX(1.1); } }
@keyframes lp-wave { 0%, 55%, 100% { transform: rotate(0); } 15% { transform: rotate(-24deg); } 35% { transform: rotate(10deg); } }
@keyframes lp-away { to { transform: translate(110vw, -160px) rotate(-16deg) scale(.8); } }
/* Démarrage : tout l'écran est le ciel. */
.boot { position: fixed; inset: 0; z-index: 3000; background: linear-gradient(180deg, var(--sky1), var(--sky2) 55%, var(--sky3)); transition: opacity .45s ease, transform .45s ease; }
.boot.boot-out { opacity: 0; pointer-events: none; transform: scale(1.04); }
.boot-c { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding-bottom: 6vh; }
.boot-c .lp-plane-in { animation: lp-in 1s cubic-bezier(.2, .9, .3, 1) both; }
.boot .lp-plane { width: min(270px, 72vw); }
.boot-name { margin: 22px 0 0; font: 900 44px/1 "Nunito", var(--body, system-ui); letter-spacing: .12em; color: #fff; text-shadow: 0 2px 12px rgba(20, 50, 140, .35); }
.boot-dots { display: flex; gap: 8px; margin-top: 10px; }
.boot-dots i { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: lp-dot 1s ease-in-out infinite; }
.boot-dots i:nth-child(2) { animation-delay: .15s; } .boot-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes lp-dot { 0%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-7px); opacity: 1; } }
html.i18n-wait body .boot { visibility: visible; }
/* Attentes de l'IA : la page devient le ciel, l'avion vole en grand, les étapes restent lisibles sur une carte. */
.fx-sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, var(--skyp1), var(--skyp2) 70%, var(--bg)); opacity: 0; transition: opacity .5s ease; }
html.fx-sky-on .fx-sky { opacity: 1; }
html.fx-sky-on { background: var(--bg); }
html.fx-sky-on body { background: transparent; overflow-x: clip; }
html.fx-sky-on .bar { background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.lp-wrap { position: relative; height: 190px; margin: -6px calc(50% - 50vw) 0; display: flex; align-items: center; justify-content: center; transition: opacity .5s ease; }
.lp-wrap .sky { overflow: hidden; }
.lp-wrap.lp-gone .lp-plane { animation: lp-away .7s cubic-bezier(.5, 0, .9, .5) forwards; }
.lp-wrap.lp-gone { opacity: 0; transition-delay: .35s; }
html.fx-sky-on main ul.req, html.fx-sky-on main .ai-wait, html.fx-sky-on main .rv-prep { background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 22px; padding: 14px 16px; box-shadow: 0 10px 30px -18px rgba(20, 40, 120, .35); }
html.fx-sky-on main .rv-prep { padding: 16px; }
/* Couche d'effets */
.fx-layer { position: fixed; inset: 0; z-index: 2500; pointer-events: none; overflow: hidden; }
.fx-p { position: absolute; display: block; border-radius: 50%; will-change: transform, opacity; }
.fx-p.star { border-radius: 0; }
.fx-conf { position: absolute; top: 0; display: block; width: 10px; height: 16px; border-radius: 3px; will-change: transform; }
.fx-conf.round { width: 11px; height: 11px; border-radius: 50%; }
/* Correction : feuille verte ou rouge, Lino debout sur le bord qui saute de joie ou s'inquiète. */
.fb.ok { background: var(--ok-bg) !important; }
.fb.ko { background: var(--ko-bg) !important; }
.fb.ok > strong { color: var(--ok) !important; }
.fb.ko > strong { color: var(--ko) !important; }
.fb.ok .btn.primary { background: var(--ok-fill) !important; border-color: var(--ok-fill) !important; color: #fff !important; box-shadow: 0 4px 0 color-mix(in srgb, var(--ok-fill) 70%, #000) !important; }
.fb.ko .btn.primary { background: var(--ko-fill) !important; border-color: var(--ko-fill) !important; color: #fff !important; box-shadow: 0 4px 0 color-mix(in srgb, var(--ko-fill) 70%, #000) !important; }
.fb .btn.primary:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .25) !important; }
.fx-peek { position: fixed; right: 18px; z-index: 17; width: 96px; height: 96px; pointer-events: none; transform-origin: 50% 100%; }
.fx-peek .lino { width: 96px; height: 96px; animation: none !important; }
.fx-peek.in { animation: peek-in .45s cubic-bezier(.2, 1.5, .4, 1) both; }
.fx-peek.ok.in .lino { animation: peek-jump .9s cubic-bezier(.3, .7, .4, 1) .35s 2 both !important; transform-origin: 50% 100%; }
.fx-peek.ko.in .lino { animation: peek-no .7s ease-in-out .3s both !important; transform-origin: 50% 90%; }
.fx-peek .ln-sweat { transform-box: fill-box; animation: peek-sweat 1.4s ease-in .5s infinite; }
.fx-peek.out { animation: peek-out .25s ease-in forwards; }
@keyframes peek-in { from { transform: translateY(70px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes peek-out { to { transform: translateY(60px) scale(.7); opacity: 0; } }
@keyframes peek-jump { 0% { transform: none; } 18% { transform: scale(1.12, .86); } 45% { transform: translateY(-34px) scale(.94, 1.08) rotate(-6deg); } 70% { transform: translateY(0) scale(1.1, .9); } 85% { transform: translateY(-6px); } 100% { transform: none; } }
@keyframes peek-no { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }
@keyframes peek-sweat { 0% { transform: translateY(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
.lino .ln-sweat { opacity: .95; }
/* Barre de progression : reflet à chaque bonne réponse, en feu pendant une série. */
.prog i { position: relative; overflow: hidden; transition: width .45s cubic-bezier(.3, 1.4, .5, 1), background .4s; }
.prog.fx-shine i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .75) 50%, transparent 80%); animation: fx-shine .7s ease-out; }
html.fx-hot .prog i { background: linear-gradient(90deg, #FFC93C, #FF6B35) !important; box-shadow: 0 0 12px rgba(255, 107, 53, .6); }
@keyframes fx-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
/* Boutons à choix : un peu de relief, enfoncés au toucher. */
.opt { box-shadow: 0 3px 0 var(--line); transition: transform .08s ease, box-shadow .08s ease; }
.opt:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.opt.ok { box-shadow: 0 3px 0 var(--ok-fill); } .opt.ko { box-shadow: 0 3px 0 var(--ko-fill); }
/* Messages de série (bandeau en haut) */
.fx-toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 12px); z-index: 2600; width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; transform: translateX(-50%); padding: 10px 20px 10px 12px; border-radius: 999px; background: linear-gradient(90deg, var(--cel-st1), var(--cel-st2)); color: #fff; font-size: 17px; box-shadow: 0 14px 32px -12px rgba(255, 107, 53, .7); pointer-events: none; animation: fx-in .5s cubic-bezier(.2, 1.5, .4, 1); transition: opacity .3s, transform .3s; }
.fx-toast.out { opacity: 0; transform: translate(-50%, -16px); }
.fx-row { display: flex; align-items: center; gap: 8px; }
.fx-row b { font-weight: 900; }
.fx-flame { display: inline-block; font-size: 26px; line-height: 1; animation: fx-flame .45s ease-in-out infinite alternate; }
@keyframes fx-in { from { opacity: 0; transform: translate(-50%, -30px) scale(.7); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes fx-flame { from { transform: scale(1) rotate(-8deg); } to { transform: scale(1.25) rotate(8deg); } }
/* Grands écrans de fête */
.fx-cel { position: fixed; inset: 0; z-index: 2400; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #fff; background: radial-gradient(circle at 50% 40%, var(--cel-ok1), var(--cel-ok2)); animation: cel-in .35s ease-out both; }
.fx-cel.cel-streak { background: radial-gradient(circle at 50% 40%, var(--cel-st1), var(--cel-st2)); }
.fx-cel.out { animation: cel-out .3s ease-in forwards; }
.fx-rays { position: absolute; left: 50%; top: 40%; width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax; background: repeating-conic-gradient(rgba(255, 255, 255, .13) 0 10deg, transparent 10deg 20deg); animation: cel-rays 18s linear infinite; }
.fx-cel-c { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px; text-align: center; max-width: 420px; }
.fx-cel-c .lino { width: 170px; height: 170px; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .2)); animation: cel-lino 1s cubic-bezier(.3, .7, .4, 1) .3s infinite both !important; transform-origin: 50% 100%; }
.fx-cel-n { display: flex; align-items: center; gap: 6px; font: 900 64px/1 "Nunito", var(--body); text-shadow: 0 4px 0 rgba(0, 0, 0, .15); animation: cel-pop .6s cubic-bezier(.2, 1.6, .4, 1) .5s both; }
.fx-cel-n .fx-flame { font-size: 58px; }
.fx-cel h2 { margin: 6px 0 0; font: 900 30px/1.1 "Nunito", var(--body); letter-spacing: -.02em; color: #fff; animation: cel-up .5s ease-out .6s both; }
.fx-cel p { margin: 0; font-size: 17px; font-weight: 700; opacity: .95; animation: cel-up .5s ease-out .75s both; }
.fx-cel .btn { margin-top: 22px; min-width: 220px; background: #fff !important; color: var(--cel-ok2) !important; border: 0 !important; font-weight: 900; font-size: 17px; box-shadow: 0 5px 0 rgba(0, 0, 0, .18); animation: cel-up .5s ease-out .9s both; }
.fx-cel.cel-streak .btn { color: var(--cel-st2) !important; }
@keyframes cel-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cel-out { to { opacity: 0; transform: scale(1.05); } }
@keyframes cel-rays { to { transform: rotate(360deg); } }
@keyframes cel-lino { 0%, 100% { transform: none; } 20% { transform: scale(1.1, .88); } 50% { transform: translateY(-40px) scale(.95, 1.06); } 78% { transform: scale(1.06, .94); } }
@keyframes cel-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes cel-up { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
/* Fin de leçon : rayons qui tournent derrière Lino */
.end-halo { overflow: hidden; }
.end-halo::before { content: ""; position: absolute; inset: -30%; background: repeating-conic-gradient(rgba(255, 201, 60, .45) 0 12deg, transparent 12deg 24deg); animation: cel-rays 14s linear infinite; }
/* Secousse et éclat des propositions */
.fb > strong.fx-shake { animation: fx-shake .45s ease-in-out; }
@keyframes fx-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes fx-pop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .opt.ok, .chip.ok { animation: fx-pop .4s ease-out; }
  .opt.ko, .chip.ko { animation: fx-shake .42s ease-in-out; }
}
/* Réglage du son, dans le profil */
.fx-set .switch-row { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  .sky *, .lp-plane, .lp-svg *, .boot-dots i, .fx-flame, .fx-toast, .fx-peek, .fx-peek *, .fx-cel, .fx-cel *, .fx-rays, .end-halo::before, .prog.fx-shine i::after { animation: none !important; }
  .sky .cl { left: calc(var(--t) * 2.2); } .sky .wd { display: none; }
}
/* Applications mobiles : l'écran de lancement du téléphone montre déjà l'avion au centre, il ne revient pas de la gauche. */
html.native .boot-c .lp-plane-in { animation: none; }
.pw-native { margin: 4px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--brand-soft, #E3E8FF); color: var(--ink); font-weight: 700; text-align: center; }
.legal-links { margin-top: 14px; font-size: 14px; color: var(--muted); }
.legal-links a { color: var(--muted); }
.pw-links { margin: 6px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.pw-links a, .pw-links .linkbtn { color: var(--muted); font-size: 13px; }
.pw-store { display: block; margin-top: 8px; }
