/* Lecto : CSS des visuels (maquettes de l'appli) et des pages simples. Le reste vient du système (system.css). */
.logo-img { width: 28px; height: 28px; border-radius: 7px; }
.nav__logo { gap: 10px; }
.hero__proof { font-size: var(--t-small); color: var(--muted); }

/* ---- la page du cahier, comme l'appli l'écrit (titre, sous-titre, paragraphe, formule centrée, encadré jaune) ---- */
.nb { background: #fff; color: #1d2433; padding: 28px 32px; font: 400 14px/1.6 var(--font-text); }
.nb p, .nb ul { margin: 0 0 10px; }
.nb ul { padding-left: 20px; }
.nb__h { font-size: 20px; font-weight: 600; color: #1b2a8f; line-height: 1.25; }
.nb__s { font-size: 15px; font-weight: 600; color: #1b2a8f; margin-top: 14px !important; }
.nb__f { text-align: center; font-family: var(--font-mono); font-size: 14px; }
.nb__r { background: #fff3bf; border-left: 3px solid #f2b705; padding: 8px 12px; }
.nb__schema { display: block; width: min(100%, 320px); margin: 4px auto 12px; }
.nb__schema text { font-family: var(--font-text); }
.nb--big { min-height: 100%; padding: 32px 40px; font-size: 15px; }

/* héros : la fenêtre de Lecto sur un fond éclairé, coupée à droite et en bas par le cadre */
.hero__art { background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 70%, white), transparent 70%),
    radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--ground-bg) 75%, var(--ground-accent)), transparent 70%),
    var(--ground-bg); }
.ly-piece--main .nb { padding-right: calc(var(--ly-cut-room, 48px) + 16px); }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
.d-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #3d4247; border-top: 1px solid rgb(0 0 0 / .06); }
.d-note__line:first-of-type { border-top: 0; }
.d-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e6e9fb; color: #2438c9; font-style: normal; font-size: 12px; font-weight: 700; }
.d-note__line i.warn { background: #f1f2f4; color: #5d6470; }
.d-note__line i.ok { background: #fde8e8; color: #c62828; font-size: 9px; }
.d-note__line b { font-weight: 500; color: #16181a; }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; } }

/* ---- le cahier : une seule fenêtre, la liste des cours à gauche et le cours ouvert à droite (recette app-frame) ---- */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
.app > .app__pane--open::after { background: linear-gradient(transparent, #fff); }
.ui-win__crumb img { border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
  .nb--big { padding: 20px; font-size: 14px; }
}

/* ---- les 3 étapes : un petit morceau d'appli dans chaque panneau ---- */
.steps .panel { --p-h: 260px; background: radial-gradient(80% 70% at 20% 0%, color-mix(in oklab, var(--ground-surface) 70%, white), transparent 70%), var(--ground-bg); display: grid; place-items: center; padding: var(--s-5); }
.mini { width: min(100%, 300px); background: #fff; color: #1d2433; border-radius: 12px; padding: 16px 18px; box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 14px 32px -18px rgb(0 0 0 / .35); font-size: 13px; }
.mini p { margin: 0; }
.mini__t { font-weight: 600; font-size: 14px; margin-bottom: 10px !important; }
.mini__btns { display: flex; gap: 6px; flex-wrap: wrap; }
.mini__btns span { padding: 5px 10px; border-radius: 8px; background: #f1f2f4; font-weight: 500; }
.mini__btns .is-on { background: #2438c9; color: #fff; }
.mini__meter { height: 6px; border-radius: 3px; background: #e6e9fb; margin: 14px 0 6px; overflow: hidden; }
.mini__meter i { display: block; width: 62%; height: 100%; background: #2438c9; }
.mini__s { color: #5d6470; }
.mini__f { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px !important; padding-top: 10px; border-top: 1px solid rgb(0 0 0 / .06); }
.mini__f span { color: #5d6470; }
.mini--tri p { padding: 6px 0 6px 22px; position: relative; border-top: 1px solid rgb(0 0 0 / .05); }
.mini--tri p:first-child { border-top: 0; }
.mini--tri .ok::before, .mini--tri .no::before { position: absolute; left: 0; font-weight: 700; }
.mini--tri .ok::before { content: "✓"; color: #2438c9; }
.mini--tri .no { color: #8a919c; text-decoration: line-through; }
.mini--tri .no::before { content: "–"; color: #8a919c; }
.mini--page .nb__s { color: #1b2a8f; font-weight: 600; margin: 0 0 6px !important; font-size: 14px; }
.mini--page p + p { margin-top: 8px; }
.mini--page .nb__r { padding: 6px 10px; }
@media (max-width: 639px) { .steps .panel { --p-h: 200px; } }

/* ---- les outils, sur la bande sombre ---- */
#fonctions .panel { --p-h: 230px; display: grid; place-items: center; }
.tool-svg { width: min(100%, 360px); height: auto; }
.tool-svg text { font-family: var(--font-text); }
.tool-list, .tool-files { display: grid; gap: 10px; width: min(100% - 48px, 360px); font-size: 15px; color: var(--ink); }
.tool-list p, .tool-files p { margin: 0; }
.tool-btn { display: inline-block; padding: 8px 14px; border-radius: 10px; background: #2438c9; color: #fff; font-weight: 500; }
.tool-file { display: grid; gap: 2px; padding: 10px 14px; border-radius: 10px; background: rgb(255 255 255 / .06); }
.tool-file span { color: var(--muted); font-size: 14px; }
.tool-files p { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: rgb(255 255 255 / .06); }
.tool-files b { font-weight: 500; }
@media (max-width: 639px) { #fonctions .panel { --p-h: 190px; } }

/* ---- pour qui : une liste de lignes ---- */
.profils { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; }
.profils li { display: grid; gap: 4px; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.profils li:first-child { padding-top: 0; }
.profils b { font-size: var(--t-card, 20px); font-weight: 500; }
.profils span { color: var(--ink); line-height: 1.6; }

/* ---- tarifs et commande ---- */
.plans { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-4); align-content: start; }
.plan { position: relative; display: grid; gap: 6px; padding: var(--s-6); background: var(--surface); border: 2px solid transparent; border-radius: var(--r-md, 12px); cursor: pointer; transition: border-color .2s, transform .2s; }
.plan:hover { transform: translateY(-2px); }
.plan:has(input:checked) { border-color: var(--action); background: #fff; }
.plan:has(input:focus-visible) { outline: 3px solid var(--action); outline-offset: 3px; }
.plan input { position: absolute; top: var(--s-5); right: var(--s-5); width: 20px; height: 20px; margin: 0; accent-color: var(--action); }
.plan__nom { font-weight: 500; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.plan__nom em { font-style: normal; font-size: 13px; padding: 2px 8px; border-radius: 6px; background: #fff3bf; color: #5a4300; }
.plan__prix { font-size: clamp(36px, 3.6vw, 52px); font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.plan__prix small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan__info { color: var(--muted); font-size: 14px; }
.inclus { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.inclus li { padding-left: 26px; position: relative; }
.inclus li::before { content: ""; position: absolute; left: 2px; top: .4em; width: 12px; height: 7px; border: solid var(--action); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.commande__champs .field input { background: #fff; }
.case { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.case input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--action); }
.case a, .faq a { text-decoration: underline; text-underline-offset: 3px; }
.commande .field__error { margin: -8px 0 0; }
.commande .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
@media (max-width: 1023px) { .plans, .commande__champs, .commande > .stack-4 { grid-column: 1 / -1; } }

/* ---- téléchargement ---- */
.card--dl { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-6); background: var(--surface); border-radius: var(--r-lg, 16px); color: inherit; text-decoration: none; }
.card--dl h3 { margin: var(--s-2) 0 0; }
.card--dl p { margin: 0; }
a.card--dl:hover { transform: translateY(-2px); }

/* ---- pages légales et pages simples ---- */
.doc { max-width: 760px; padding-block: calc(var(--nav, 72px) + var(--s-8)) var(--s-10, 96px); }
.doc h1 { font-size: clamp(34px, 4vw, 52px); margin-bottom: var(--s-4); }
.doc h2 { font-size: 22px; margin: var(--s-8) 0 var(--s-3); letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--muted); line-height: 1.65; }
.doc :is(p, li) b { color: var(--ink); font-weight: 600; }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: var(--s-4) 0; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.doc th { color: var(--ink); font-weight: 600; }
.doc :is(ol, ul) { list-style: revert; padding-left: 1.4em; display: grid; gap: 6px; margin: var(--s-3) 0; }
.doc a.btn { text-decoration: none; color: var(--action-ink); margin-top: var(--s-4); }
.doc a.btn--secondary { color: var(--ink); }
.doc .formulaire { border: 1px solid var(--line); border-radius: 12px; padding: var(--s-5); white-space: pre-line; }
.a-completer { background: #ffd43b; color: #1d2433; padding: 0 6px; border-radius: 4px; font-weight: 600; }

/* ---- connexion / compte ---- */
.compte #google-btn { margin: var(--s-6, 24px) 0; min-height: 44px; }
.compte form { display: grid; gap: var(--s-4, 16px); max-width: 420px; }
.compte .lien-info { padding: 12px 16px; border-left: 3px solid var(--action); background: #e6e9fb; }
.btn-google { display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 22px; border: 1px solid #dadce0; border-radius: 999px; background: #fff; color: #1f1f1f; font: 600 15px/1 var(--font-text); cursor: pointer; }
.btn-google:hover { background: #f4f6fb; }
@media (max-width: 359px) { .nav:not(.is-open) .nav__actions { display: none; } }
/* bande sombre : panneaux sombres pour que le texte clair des visuels se lise */
#fonctions .panel { background: radial-gradient(80% 70% at 20% 0%, #1f2440, transparent 70%), #121419; }
/* téléphone : les 3 étapes sur deux écrans, les outils tiennent dans deux */
@media (max-width: 639px) { #fonctionnement { --hm: 2; } #fonctions .panel { --p-h: 150px; } }
/* contraste : le texte courant en encre (7:1), le gris seulement pour les petites mentions */
.hero__proof, #ecoute .mo-la__sub { color: var(--ink); }
.faq__ia, .qui__page { --p-h: 220px; display: grid; place-items: center; padding: var(--s-5); border-radius: var(--r-lg, 16px);
  background: radial-gradient(80% 70% at 20% 0%, color-mix(in oklab, var(--ground-surface) 70%, white), transparent 70%), var(--ground-bg); height: var(--p-h); margin-top: var(--s-4); }
.qui__page { --p-h: 200px; margin: 0 0 var(--s-4); }
.mini__f b { display: inline-flex; align-items: center; gap: 6px; }
.mini--grand { font-size: 15px; line-height: 1.6; width: min(100%, 420px); }
.profils li { padding: var(--s-4) 0; }
.profils span { font-size: 15px; }
@media (max-width: 639px) { #tarifs { --hm: 2; } .case { gap: 6px; } .faq__ia { display: none; } }
/* téléchargement : trois lignes à gauche, l'écran de création de compte à droite */
.dl-list .card--dl { grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: var(--s-4); padding: var(--s-5) var(--s-6); }
.dl-list .card--dl > span:nth-of-type(1) { line-height: 1.5; }
.dl-compte { --p-h: 100%; min-height: 360px; display: grid; place-items: center; padding: var(--s-6); border-radius: var(--r-lg, 16px);
  background: radial-gradient(80% 70% at 20% 0%, color-mix(in oklab, var(--ground-surface) 70%, white), transparent 70%), var(--ground-bg); }
.mini--compte { width: min(100%, 380px); font-size: 14px; }
.mini__info { background: #e6e9fb; color: #1b2a8f; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px !important; }
.mini__champ { display: grid; gap: 4px; margin-bottom: 10px !important; }
.mini__champ span { color: #5d6470; font-size: 13px; }
.mini__champ i { font-style: normal; border: 1px solid #c9ced6; border-radius: 8px; padding: 8px 10px; }
@media (max-width: 1023px) { .dl-list, .dl-compte { grid-column: 1 / -1; } .dl-compte { min-height: 300px; } }
@media (max-width: 639px) { .dl-list .card--dl { grid-template-columns: 40px minmax(0, 1fr); } .dl-list .card--dl > :last-child { grid-column: 2; } .faq__ia { display: grid; } }
@media (max-width: 639px) { #telecharger { --hm: 2; } }
.compte #google-btn:empty { display: none; }

/* ======================= v2 (retours de Noa, 02/12) =======================
   Sections à leur hauteur naturelle (moins de blanc), tailles plus régulières, mode sombre, animations. */
main > :is(section, .section):not(.hero), footer.closing { height: auto !important; min-height: 0 !important; padding: 104px 0 96px; }
main > :is(section, .section):not(.hero) > .wrap, footer.closing > .wrap { height: auto; }
main > :is(section, .section).g2 > .wrap { display: flex !important; flex-direction: column; row-gap: var(--s-6) !important; }
@media (max-width: 639px) { main > :is(section, .section):not(.hero), footer.closing { padding: 72px 0 64px; } }
#cahier .app { height: min(640px, 78vh); flex: none; }
:root { --t-h2: clamp(30px, 1.6vw + 18px, 42px); }
.card p, .faq__item p, .profils span, .dl-list .card--dl, .t-lead { font-size: 17px; }
.closing__cta.close--type > .btn--xl, .btn--xl.btn--wide { width: auto; height: 52px; font: 500 17px/1 var(--font-text); letter-spacing: 0; padding-inline: 28px; align-self: flex-start; justify-content: center; gap: 10px; }
.closing__cta { padding-bottom: var(--s-8); }
footer.closing > .wrap { display: grid; gap: var(--s-8); }
.mo-la__type { display: none; }

/* ---- thème sombre : préférence du système ou bouton de la barre ---- */
:root[data-theme="dark"] {
  --p-bg: #0d0f14; --p-surface: #161a22; --p-ink: #e8ebf1; --p-muted: #9aa3b2;
  --p-accent: #6d7cff; --p-accent-ink: #0d0f14; --p-action: #5b6bff; --p-action-ink: #ffffff;
  --p-inv-bg: #161a22; --p-inv-surface: #1d222c; --p-inv-ink: #e8ebf1; --p-inv-muted: #9aa3b2;
  --p-inv-accent: #e8ebf1; --p-inv-accent-ink: #0d0f14; --p-inv-action: #e8ebf1; --p-inv-action-ink: #0d0f14;
  color-scheme: dark;
}
:root[data-theme="dark"] body { background: var(--p-bg); }
:root[data-theme="dark"] .ui { --fx-bg: #141821; --fx-surface: #1b202a; --fx-ink: #e3e7ee; --fx-muted: #9aa3b2; }
:root[data-theme="dark"] :is(.nb, .mini, .d-win, .d-card) { background: #141821; color: #dfe4ec; box-shadow: 0 0 0 1px rgb(255 255 255 / .07), 0 18px 40px -20px rgb(0 0 0 / .8); }
:root[data-theme="dark"] :is(.nb__h, .nb__s, .mini--page .nb__s) { color: #9aa8ff; }
:root[data-theme="dark"] .nb__r { background: #2e2810; border-color: #e0a800; color: #f3e3a6; }
:root[data-theme="dark"] .app > .app__pane--open::after { background: linear-gradient(transparent, #141821); }
:root[data-theme="dark"] .nb__schema rect:first-child { fill: #1c2a45; }
:root[data-theme="dark"] .nb__schema :is(line, text) { stroke-opacity: 1; }
:root[data-theme="dark"] .nb__schema line[stroke="#1d2433"] { stroke: #c9d1de; }
:root[data-theme="dark"] .nb__schema text[fill="#1d2433"] { fill: #c9d1de; }
:root[data-theme="dark"] :is(.d-note__line, .d-win__bar) { color: #b7bfcc; border-color: rgb(255 255 255 / .07); }
:root[data-theme="dark"] .d-note__line b, :root[data-theme="dark"] .d-card h5 { color: #fff; }
:root[data-theme="dark"] :is(.mini__btns span, .mini__meter) { background: #232937; }
:root[data-theme="dark"] .mini__btns .is-on, :root[data-theme="dark"] .mini__meter i { background: #5b6bff; color: #fff; }
:root[data-theme="dark"] :is(.mini__s, .mini__f span, .mini__champ span) { color: #9aa3b2; }
:root[data-theme="dark"] :is(.mini__f, .mini--tri p) { border-color: rgb(255 255 255 / .07); }
:root[data-theme="dark"] .mini__info { background: #1d2448; color: #c3caff; }
:root[data-theme="dark"] .mini__champ i { border-color: #333a48; }
:root[data-theme="dark"] :is(.plan:has(input:checked), .commande__champs .field input, .compte input) { background: #141821; }
:root[data-theme="dark"] :is(.hero__art, .steps .panel, .faq__ia, .qui__page, .dl-compte) { background: radial-gradient(80% 70% at 20% 0%, #1f2645, transparent 70%), #121620; }
:root[data-theme="dark"] .logo-img { box-shadow: 0 0 0 1px rgb(255 255 255 / .12); }

/* bouton clair / sombre */
.theme-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: transform .2s, background .2s; }
.theme-btn:hover { background: var(--surface); transform: rotate(-15deg); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .lune { display: none; }
:root[data-theme="dark"] .theme-btn .soleil { display: none; }
:root[data-theme="dark"] .theme-btn .lune { display: block; }

/* ---- animations (une seule fois à l'apparition ; rien sous « réduire les animations ») ---- */
@media (prefers-reduced-motion: no-preference) {
  .js-anim [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
  .js-anim [data-reveal].vu { opacity: 1; transform: none; }
  /* le cahier se remplit ligne après ligne */
  .js-anim .nb.ecrit > * { opacity: 0; transform: translateY(6px); }
  .js-anim .nb.ecrit.vu > * { animation: ligne .5s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i, 0) * 260ms + 200ms); }
  @keyframes ligne { to { opacity: 1; transform: none; } }
  /* le schéma se dessine */
  .js-anim .trace { stroke-dasharray: 600; stroke-dashoffset: 600; }
  .js-anim .vu .trace { animation: trace 1.6s ease forwards .3s; }
  @keyframes trace { to { stroke-dashoffset: 0; } }
  /* le micro écoute */
  .mini__meter i { animation: niveau 1.4s ease-in-out infinite alternate; transform-origin: left; }
  @keyframes niveau { 0% { transform: scaleX(.35); } 40% { transform: scaleX(.8); } 70% { transform: scaleX(.5); } 100% { transform: scaleX(.95); } }
  .ui-win__st.is-you::before, .d-note__line i.ok { animation: pouls 1.6s ease-in-out infinite; }
  @keyframes pouls { 50% { opacity: .35; } }
  /* les bavardages se barrent l'un après l'autre */
  .js-anim .mini--tri .no { text-decoration-color: transparent; transition: text-decoration-color .4s, color .4s; }
  .js-anim .vu .mini--tri .no, .js-anim .mini--tri.vu .no { text-decoration-color: currentColor; }
  .js-anim .mini--tri .no:nth-of-type(4) { transition-delay: .6s; }
  /* les coches apparaissent en suivant */
  .js-anim .tool-list p { opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .4s; transition-delay: calc(var(--i, 0) * 350ms + 300ms); }
  .js-anim .vu .tool-list p { opacity: 1; transform: none; }
  .tool-btn { animation: appel 2.4s ease-in-out infinite; }
  @keyframes appel { 0%, 100% { box-shadow: 0 0 0 0 rgb(91 107 255 / .5); } 50% { box-shadow: 0 0 0 10px rgb(91 107 255 / 0); } }
  /* le logo : ses barres de son bougent */
  .card, .card--dl, .plan { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
  .card:hover, .card--dl:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgb(20 30 80 / .35); }
  .hero__art .ly-piece--main { animation: flotte 7s ease-in-out infinite; }
  @keyframes flotte { 50% { transform: translateY(-6px); } }
}
:root[data-theme="dark"] :is(.steps .panel, .faq__ia, .qui__page, .dl-compte) { background: radial-gradient(80% 70% at 20% 0%, #1f2645, transparent 70%), #121620 !important; }
:root[data-theme="dark"] .panel::before { display: none; }
main > :is(section, .section):not(.hero), footer.closing { padding: 80px 0 72px; }

/* ---- démo interactive de Lecto (assets/demo.js) ---- */
.app > .app__pane--open { overflow: auto; scrollbar-width: thin; }
.app .ui-win__row { cursor: pointer; transition: background .15s; }
.app .ui-win__row:hover { background: var(--u-fill); }
.app .ui-win__row.is-ouvert { background: color-mix(in oklab, var(--p-action) 12%, var(--u-bg)); box-shadow: inset 3px 0 0 var(--p-action); }
.app .ui-win__row:focus-visible { outline: 2px solid var(--p-action); outline-offset: -2px; }
.app .ui-win__st.is-relire { background: #ffd43b; color: #3c2d00; border-color: transparent; }
.app button.ui-win__nav { font: inherit; color: inherit; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.app button.ui-win__nav:hover { background: var(--u-fill); }
.demo-point { width: 8px; height: 8px; border-radius: 50%; flex: none; background: hsl(calc(var(--t) * 67) 55% 52%); }
.demo-vide { padding: 24px; color: var(--u-muted); list-style: none; }
.demo-barre { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 40px; background: color-mix(in oklab, var(--u-bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--u-line); }
.demo-barre button { font: 500 13px/1 var(--font-text); padding: 8px 12px; border-radius: 10px; border: 0; background: var(--u-fill-2); color: var(--u-ink); cursor: pointer; transition: transform .15s, background .15s; }
.demo-barre button:hover { transform: translateY(-1px); background: var(--u-fill-3); }
.demo-barre button.is-on { background: var(--p-action); color: #fff; }
.demo-etat { font-size: 12.5px; color: var(--u-muted); margin-left: 4px; }
.demo-niveau { flex: 0 0 90px; height: 5px; border-radius: 3px; background: var(--u-fill-2); overflow: hidden; margin-left: auto; opacity: 0; transition: opacity .3s; }
.demo-niveau i { display: block; height: 100%; width: 70%; background: var(--p-action); transform-origin: left; animation: niveau .9s ease-in-out infinite alternate; }
.demo-barre.ecoute .demo-niveau { opacity: 1; }
.demo-barre.ecoute [data-a="ecouter"] { background: #c62828; }
.demo-nouveau { animation: ligne .6s cubic-bezier(.2,.7,.2,1) both, surligne 2.4s ease .3s; }
@keyframes surligne { 0% { background-color: color-mix(in oklab, var(--p-action) 18%, transparent); } 100% { background-color: transparent; } }
.nb.demo-recap > * { filter: blur(2px); opacity: .5; transition: filter .6s, opacity .6s; }
@media (max-width: 639px) { .demo-barre { padding: 10px 16px; } .demo-barre button { padding: 7px 9px; } .demo-niveau { display: none; } }
.app button.ui-win__nav { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 30px; }
.app button.ui-win__nav.is-on { background: color-mix(in oklab, var(--p-action) 14%, var(--u-bg)); font-weight: 600; }
.app button.ui-win__nav em { margin-left: auto; }

/* démo : la colonne des filtres a sa vraie place dans la grille (avant : elle débordait sous la liste) */
.app .ui-win__body { grid-template-columns: 176px minmax(0, 1fr) !important; }
.app .ui-win__side { min-width: 0; overflow: hidden; gap: 2px; }
.app button.ui-win__nav { padding: 6px 10px; border-radius: 8px; }
.app button.ui-win__nav em { font-style: normal; opacity: .7; padding-left: 8px; }
@media (max-width: 1279px) { .app .ui-win__body { grid-template-columns: 150px minmax(0, 1fr) !important; } }
@media (max-width: 1023px) { .app .ui-win__body { grid-template-columns: minmax(0, 1fr) !important; } }
/* héros : la carte Notes de cours remontée, « Écrit » qui scintille en vert */
.hero__art .d-card .d-chip { top: -4px; background: #dcfce7; color: #15803d; position: relative; overflow: hidden; animation: ecrit-lueur 2.2s ease-in-out infinite; }
.hero__art .d-card .d-chip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .75) 50%, transparent 70%); transform: translateX(-120%); animation: ecrit-reflet 2.2s ease-in-out infinite; }
:root[data-theme="dark"] .hero__art .d-card .d-chip { background: rgb(34 197 94 / .16); color: #4ade80; }
:root[data-theme="dark"] .hero__art .d-card .d-chip::after { background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%); }
@keyframes ecrit-lueur { 0%, 100% { box-shadow: 0 0 0 0 rgb(34 197 94 / 0); } 50% { box-shadow: 0 0 12px 2px rgb(34 197 94 / .55); } }
@keyframes ecrit-reflet { 0%, 35% { transform: translateX(-120%); } 75%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .hero__art .d-card .d-chip, .hero__art .d-card .d-chip::after { animation: none; } }
