@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,500;0,7..72,600;1,7..72,400;1,7..72,500&family=Noto+Sans+Devanagari:wght@400;500&display=swap");
/* Lyceum — charte « Égée, terre cuite » (novembre 2026) : fond chaud clair, cartes blanches arrondies,
   accent terre cuite, bleu pour les progressions ; Literata (titres, textes, grec et latin) + IBM Plex Sans (interface). */
:root {
  --accent: #A8461F; --sur-accent: #FFFFFF; --hero: #A8461F; --sur-hero: #FFFFFF; --bleu: #1F5F7A; --carte2: #F8F5F2;
  --olive: var(--accent); --olive-clair: #B5A599; --terre: var(--accent); --terre-clair: #F2D3C2; --terre-fonce: #7E3216; --ocre: var(--bleu);
  --fond: #F4F0EC; --carte: #FFFFFF; --encre: #2A1D16; --muted: #6B5648; --ligne: #E6DDD5; --ok: #2F6B45; --err: #A3302A; --action: #1F5F7A; --sur-action: #FFFFFF;
  --k-nom: #1B4F8F; --k-acc: #A0401A; --k-gen: #5B4A9A; --k-dat: #1D6B4A; --k-abl: #8A5A00; --k-voc: #1F6F76; --k-verbe: #2A1D16;
  --taille: 1; --r: 16px;
  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --antique: "Literata", "Gentium Plus", "GFS Didot", "Palatino Linotype", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #E58A5F; --sur-accent: #1A120E; --hero: #6B2C14; --sur-hero: #F7EAE2; --bleu: #6FB0CC; --carte2: #2A211B;
    --olive-clair: #6E5E53; --terre-clair: #5A3424; --terre-fonce: #F0A27E;
    --fond: #15100D; --carte: #201914; --encre: #F0E8E2; --muted: #B7A69A; --ligne: #3A2E26; --ok: #74C08F; --err: #E6806F; --action: #6FB0CC; --sur-action: #0F1A1F;
    --k-nom: #8FB8EE; --k-acc: #F2A07E; --k-gen: #C2B2F0; --k-dat: #86CFA4; --k-abl: #E2B65C; --k-voc: #6FD0D6; --k-verbe: #F0E8E2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #E58A5F; --sur-accent: #1A120E; --hero: #6B2C14; --sur-hero: #F7EAE2; --bleu: #6FB0CC; --carte2: #2A211B;
  --olive-clair: #6E5E53; --terre-clair: #5A3424; --terre-fonce: #F0A27E;
  --fond: #15100D; --carte: #201914; --encre: #F0E8E2; --muted: #B7A69A; --ligne: #3A2E26; --ok: #74C08F; --err: #E6806F; --action: #6FB0CC; --sur-action: #0F1A1F;
  --k-nom: #8FB8EE; --k-acc: #F2A07E; --k-gen: #C2B2F0; --k-dat: #86CFA4; --k-abl: #E2B65C; --k-voc: #6FD0D6; --k-verbe: #F0E8E2;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { font-size: calc(16px * min(var(--taille), 1.25)); -webkit-text-size-adjust: 100%; }
@media (min-width: 700px) { html { font-size: calc(16px * var(--taille)); } }
body { background: var(--fond); color: var(--encre); font-family: var(--sans); line-height: 1.5; overflow-x: clip; padding-bottom: env(safe-area-inset-bottom); }
body.modal-open { overflow: hidden; }
a { color: var(--terre); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: .2em 0 .4em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
.muted { color: var(--muted); } .petit { font-size: .85rem; } .centre { text-align: center; }

/* bandeau */
header#top { position: sticky; top: 0; z-index: 20; background: var(--olive); color: #f5efe3; padding-top: env(safe-area-inset-top); box-shadow: 0 2px 8px #0002; }
:root[data-theme="dark"] header#top { background: #1b2a21; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) header#top { background: #1b2a21; } }
.bar { display: flex; align-items: center; gap: .6rem; height: 48px; padding: 0 max(16px, env(safe-area-inset-left)); max-width: 960px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: .45rem; color: inherit; text-decoration: none; font-family: var(--serif); font-size: 1.25rem; letter-spacing: .04em; margin-right: auto; }
.logo-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--terre); color: #fff8ec; font-size: 1rem; }
.sync { font-size: .75rem; padding: .15rem .5rem; border-radius: 99px; background: #ffffff1f; white-space: nowrap; }
.sync.off { background: #a83a2a; } .sync.demo { background: var(--ocre); color: #1e2622; }
.icon-btn { background: none; border: 0; color: inherit; font-size: 1.25rem; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.card .icon-btn { color: var(--encre); }
.icon-btn:hover { background: #ffffff22; }
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; max-width: 960px; margin: 0 auto; padding: 0 8px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 1 0 auto; text-align: center; color: #f5efe3cc; text-decoration: none; padding: .5rem .55rem; font-size: .9rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.on { color: #fff; border-bottom-color: var(--ocre); font-weight: 600; }
.demo-banner { background: var(--ocre); color: #1e2622; text-align: center; font-size: .8rem; padding: .25rem 16px; }

main { max-width: 960px; margin: 0 auto; padding: 14px 16px 120px; }
.loading, .err { padding: 2rem 0; text-align: center; } .err { color: var(--err); }
.card { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--r); padding: 14px 16px; margin: 0 0 14px; }
details.card > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .4rem; }
details.card > summary::before { content: "›"; transition: transform .2s; color: var(--terre); font-size: 1.3rem; }
details.card[open] > summary::before { transform: rotate(90deg); }
details.card > summary h2 { margin: 0; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--terre); font-weight: 600; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.row-gap { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { display: inline-block; font-size: .78rem; padding: .1rem .55rem; border-radius: 99px; background: var(--ligne); }
.pill.exam, b.exam { background: var(--terre); color: #fff8ec; font-size: .72rem; padding: .05rem .45rem; border-radius: 99px; font-weight: 600; }
.btn { display: inline-block; font: inherit; font-size: .95rem; padding: .55rem 1rem; border-radius: 10px; border: 1px solid var(--ligne); background: var(--carte); color: var(--encre); cursor: pointer; text-decoration: none; min-height: 44px; }
.btn.primary { background: var(--terre); border-color: var(--terre); color: #fff8ec; }
.btn.link { background: none; border: 0; color: var(--terre); text-decoration: underline; }
.btn:disabled { opacity: .6; cursor: default; }
.retour { display: inline-block; margin: 0 0 10px; text-decoration: none; font-size: .9rem; }

/* Aujourd'hui */
.hero { background: linear-gradient(135deg, var(--carte), color-mix(in srgb, var(--terre-clair) 30%, var(--carte))); }
.hero-top { display: flex; justify-content: space-between; gap: 1rem; }
.compteur { text-align: center; min-width: 88px; }
.compteur b { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--terre); line-height: 1; }
.compteur span { font-size: .72rem; color: var(--muted); }
.serie { margin-top: .6rem; font-weight: 600; color: var(--olive); }
.taches { list-style: none; padding: 0; margin: .4rem 0; }
.taches li a { display: flex; gap: .7rem; align-items: center; padding: .6rem .2rem; border-bottom: 1px solid var(--ligne); text-decoration: none; color: var(--encre); }
.taches li:last-child a { border-bottom: 0; }
.coche { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--olive-clair); display: grid; place-items: center; color: #fff; font-weight: 700; }
.taches li.fait .coche { background: var(--ok); border-color: var(--ok); }
.taches li.fait .t-titre { text-decoration: line-through; color: var(--muted); }
.t-main { display: flex; flex-direction: column; min-width: 0; }
.t-sous { font-size: .8rem; color: var(--muted); }
.barre { display: flex; height: 8px; border-radius: 99px; background: var(--ligne); overflow: hidden; margin: .4rem 0; }
.barre i { display: block; background: var(--ok); } .barre i.pret { background: color-mix(in srgb, var(--ok) 30%, transparent); }
.barre.fine { height: 6px; }
.tampon { margin: 1rem auto .2rem; width: max-content; border: 3px double var(--terre); color: var(--terre); padding: .4rem 1rem; transform: rotate(-6deg); font-family: var(--serif); letter-spacing: .15em; text-align: center; animation: tampon .5s ease-out; }
.tampon small { display: block; letter-spacing: 0; font-size: .75rem; }
@keyframes tampon { from { transform: rotate(-6deg) scale(2); opacity: 0; } }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: .85rem; }
.cal b { color: var(--muted); font-weight: 500; font-size: .75rem; }
.cal-j { padding: .35rem 0; border-radius: 8px; background: color-mix(in srgb, var(--ligne) 50%, transparent); }
.cal-j.ok { background: var(--ok); color: #fff; } .cal-j.part { background: var(--terre-clair); color: #1e2622; } .cal-j.repos { opacity: .5; }
.cal-j.auj { outline: 2px solid var(--terre); }
.ue-prog { display: grid; gap: .5rem; }
.ue-l { display: grid; grid-template-columns: 4.2rem 1fr 3rem; grid-template-areas: "n t c" "n b c"; column-gap: .5rem; align-items: center; }
.ue-n { grid-area: n; font-weight: 700; color: var(--olive); font-size: .85rem; } .ue-t { grid-area: t; font-size: .85rem; } .ue-l .barre { grid-area: b; margin: .15rem 0; } .ue-c { grid-area: c; text-align: right; font-size: .8rem; color: var(--muted); }

/* Textes */
.grille { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.oeuvre { text-decoration: none; color: var(--encre); display: flex; flex-direction: column; gap: .2rem; border-left: 5px solid var(--olive); }
.oeuvre.grc { border-left-color: var(--terre); }
.o-langue { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.morceaux, .volets { list-style: none; padding: 0; margin: 0; }
.morceaux li > a, .morceaux li > span, .volets li a { display: flex; align-items: center; gap: .6rem; padding: .55rem .2rem; border-bottom: 1px solid var(--ligne); text-decoration: none; color: var(--encre); }
.volets li a { justify-content: space-between; }
.m-ic { flex: none; width: 1.4rem; text-align: center; color: var(--terre); }
.m-t { flex: 1; min-width: 0; } .m-min { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.morceaux li.fait .m-ic { color: var(--ok); } .morceaux li.avenir { opacity: .55; } .morceaux li.lock { opacity: .75; }
.specimen { background: color-mix(in srgb, var(--ocre) 18%, transparent); border-left: 3px solid var(--ocre); padding: .4rem .7rem; font-size: .85rem; border-radius: 0 8px 8px 0; }
.outils { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .85rem; margin-bottom: .4rem; }
.legende { display: flex; flex-wrap: wrap; gap: .3rem .7rem; font-size: .75rem; margin-bottom: .6rem; }
.legende.off { display: none; }
.legende span { font-weight: 600; }
.phrases { font-family: var(--antique); font-size: 1.22rem; line-height: 2; }
.phrase { margin-bottom: .8rem; }
.p-n { font-family: var(--sans); font-size: .7rem; color: var(--muted); vertical-align: super; margin-right: .2rem; }
.tok { cursor: pointer; border-radius: 4px; padding: 0 1px; -webkit-tap-highlight-color: transparent; }
.tok:hover, .tok:focus { background: color-mix(in srgb, var(--terre-clair) 45%, transparent); outline: none; }
.phrases.cas .k-nom, .legende .k-nom { color: var(--k-nom); } .phrases.cas .k-acc, .legende .k-acc { color: var(--k-acc); }
.phrases.cas .k-gen, .legende .k-gen { color: var(--k-gen); } .phrases.cas .k-dat, .legende .k-dat { color: var(--k-dat); }
.phrases.cas .k-abl, .legende .k-abl { color: var(--k-abl); } .phrases.cas .k-voc, .legende .k-voc { color: var(--k-voc); }
.phrases.cas .k-verbe, .legende .k-verbe { color: var(--k-verbe); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; font-weight: 600; }
.p-lit { font-family: var(--serif); font-size: 1rem; line-height: 1.5; color: var(--muted); margin: .2rem 0 0; padding-left: .7rem; border-left: 2px solid var(--ligne); }
.trad { font-family: var(--serif); font-size: 1.05rem; }
.libre { border-top: 1px solid var(--ligne); padding-top: .5rem; margin-top: .6rem; }
textarea, input[type=email], input[type=password], input[type=date] { width: 100%; font: inherit; padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--ligne); background: var(--fond); color: var(--encre); }
.q { border: 1px solid var(--ligne); border-radius: 10px; margin: 0 0 .7rem; padding: .5rem .7rem; }
.q legend { font-weight: 600; padding: 0 .3rem; }
.opt { display: flex; gap: .5rem; align-items: flex-start; padding: .35rem .2rem; cursor: pointer; border-radius: 8px; }
.opt input { margin-top: .3rem; }
.q.bon { border-color: var(--ok); } .q.faux { border-color: var(--err); }
.opt.juste { background: color-mix(in srgb, var(--ok) 18%, transparent); }
.q-expl { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.quiz-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }

/* Glose */
.glose .g-forme { font-family: var(--antique); font-size: 1.8rem; color: var(--terre); }
.glose .g-lemme { font-family: var(--antique); font-size: 1.1rem; }
.glose .g-sens { font-weight: 600; margin: .2rem 0 .5rem; }
.g-ana { margin-bottom: .5rem; } .g-ana .pill { color: #fff; }
.pill.k-nom { background: var(--k-nom); } .pill.k-acc { background: var(--k-acc); } .pill.k-gen { background: var(--k-gen); } .pill.k-dat { background: var(--k-dat); } .pill.k-abl { background: var(--k-abl); } .pill.k-verbe { background: var(--olive); } .pill.k-autre { background: var(--muted); }
.g-note { background: var(--fond); padding: .5rem .7rem; border-radius: 8px; font-size: .92rem; }

/* Cours, langue */
.ue-h { margin-top: 1rem; } .ue-h small { color: var(--muted); font-family: var(--sans); font-weight: 400; font-size: .75rem; }
.avant-propos { font-style: italic; }
.table-wrap { overflow-x: auto; }
table.para { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: .92rem; }
table.para th, table.para td { border-bottom: 1px solid var(--ligne); padding: .4rem .6rem; text-align: left; vertical-align: top; }
table.para thead th { background: color-mix(in srgb, var(--olive) 10%, var(--carte)); font-weight: 600; white-space: nowrap; }
table.para tbody th { font-weight: 600; position: sticky; left: 0; background: var(--carte); z-index: 1; box-shadow: 1px 0 0 var(--ligne); }
table.para thead th:first-child { position: sticky; left: 0; z-index: 2; }
table.para .dv { display: block; font-size: 1.15em; line-height: 1.3; }
table.para .ia { display: block; font-style: italic; color: var(--muted); font-size: .9em; }
table.para [lang="sa"], .dv { font-family: "Noto Sans Devanagari", "Kohinoor Devanagari", "Devanagari Sangam MN", "Mangal", var(--sans); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: .3rem 0 .8rem; border: 1px solid var(--ligne); border-radius: 10px; }
.tab-bloc { margin-top: .8rem; } .tab-titre { font-size: 1rem; margin-bottom: .3rem; }
@media (max-width: 640px) { table.para { font-size: .85rem; } table.para th, table.para td { padding: .35rem .45rem; } }
/* Vocabulaire */
.puces { display: flex; gap: .4rem; overflow-x: auto; margin: 0 0 12px; scrollbar-width: none; }
.puce { flex: none; font: inherit; font-size: .85rem; padding: .35rem .8rem; border-radius: 99px; border: 1px solid var(--ligne); background: var(--carte); color: var(--encre); cursor: pointer; }
.puce.on { background: var(--olive); border-color: var(--olive); color: #fff; }
.vocab-liste { list-style: none; padding: 0; margin: 0; } .vocab-liste li { padding: .45rem 0; border-bottom: 1px solid var(--ligne); }
.carte { text-align: center; }
.c-mot { font-family: var(--antique); font-size: 1.8rem; color: var(--terre); }
.c-phrase { font-family: var(--antique); font-size: 1.1rem; } .c-phrase mark { background: var(--terre-clair); color: #1e2622; border-radius: 3px; padding: 0 2px; }
.c-sens { font-weight: 700; font-size: 1.2rem; margin: .6rem 0; }
.notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-top: .6rem; }
.notes .btn { padding: .5rem .2rem; font-size: .85rem; }
.notes .n0 { border-color: var(--err); } .notes .n3 { border-color: var(--ok); }

/* Connexion */
.login { max-width: 420px; margin: 2rem auto; text-align: center; }
.login form { display: grid; gap: .7rem; text-align: left; }
.login label, .champ { display: grid; gap: .25rem; font-size: .9rem; margin-bottom: .5rem; }
.login-owl { width: 90px; margin: 0 auto; }
.msg { min-height: 1.2em; font-size: .9rem; color: var(--terre); }

/* Fenêtre */
.modal { position: fixed; inset: 0; background: #0007; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal-box { position: relative; background: var(--carte); color: var(--encre); width: 100%; max-width: 560px; max-height: 85vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .modal { align-items: center; } .modal-box { border-radius: 18px; } }
.modal-close { position: absolute; top: 6px; right: 8px; background: none; border: 0; font-size: 1.8rem; color: var(--muted); cursor: pointer; width: 44px; height: 44px; }

/* Mascotte Noctua */
.mascotte { position: fixed; right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: flex; flex-direction: row-reverse; align-items: flex-end; gap: .4rem; pointer-events: none; }
.mascotte .owl { width: 54px; height: 61px; filter: drop-shadow(0 2px 3px #0003); }
.mascotte .bulle { background: var(--carte); border: 1px solid var(--ligne); border-radius: 14px 14px 2px 14px; padding: .5rem .75rem; font-size: .88rem; max-width: 230px; box-shadow: 0 3px 10px #0002; animation: bulle .3s ease-out; }
@keyframes bulle { from { opacity: 0; transform: translateY(6px); } }
.mascotte.joie .owl { animation: saut .6s ease-in-out 2; }
@keyframes saut { 50% { transform: translateY(-10px) rotate(-4deg); } }
.mascotte.calme .owl { animation: tete 7s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes tete { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 92% { transform: rotate(6deg); } }
.mascotte.dort .owl { opacity: .85; }
body.modal-open .mascotte .bulle { display: none; }
@media (prefers-reduced-motion: reduce) { .mascotte .owl, .tampon, .bulle { animation: none !important; } }
.confettis { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confettis i { position: absolute; top: -10px; width: 8px; height: 14px; border-radius: 2px; animation: tombe 2.4s ease-in forwards; }
@keyframes tombe { to { transform: translateY(105vh) rotate(540deg); } }
.liste{margin:.3rem 0 .6rem;padding-left:1.3rem}
.resume{font-style:italic;margin:.4rem 0}
/* Poésie : un vers par ligne (retrait suspendu si le vers déborde), numéro en marge */
.phrase:has(.vers) { padding-left: 2em; }
.phrase:has(.vers) > .p-n { display: none; }
.vers { display: block; padding-left: 1.2em; text-indent: -1.2em; position: relative; }
.vers .v-n { position: absolute; left: -2.2em; width: 1.9em; text-indent: 0; text-align: right; font-size: .72em; line-height: inherit; color: var(--muted); font-variant-numeric: tabular-nums; user-select: none; }
.m-sep { display: flex; flex-direction: column; gap: .1rem; padding: .9rem .2rem .3rem; border-bottom: 2px solid var(--terre); color: var(--terre-fonce); font-family: var(--serif); }
/* Séances en blocs */
.cache { display: none !important; }
.bloc-n { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--olive-clair); margin: 18px 4px 6px; font-weight: 600; }
.serie { border-left: 4px solid var(--terre); }
.trous { line-height: 2.2; }
.trou { font: inherit; padding: .1rem .35rem; border: 0; border-bottom: 2px solid var(--terre); background: var(--fond); color: var(--encre); border-radius: 4px 4px 0 0; }
.trou.ok, .assoc select.ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.trou.ko, .assoc select.ko { border-color: var(--err); background: color-mix(in srgb, var(--err) 12%, transparent); }
.assoc { display: grid; gap: .45rem; }
.as-l { display: grid; grid-template-columns: 1fr minmax(9rem, 45%); gap: .5rem; align-items: center; }
.as-l select { font: inherit; padding: .35rem; border-radius: 8px; border: 1px solid var(--ligne); background: var(--fond); color: var(--encre); max-width: 100%; }
@media (max-width: 480px) { .as-l { grid-template-columns: 1fr; } }
.vf { display: flex; gap: 1rem; }
/* Scansion */
.sc-vers { display: flex; flex-wrap: wrap; align-items: flex-end; font-family: var(--antique); font-size: 1.15rem; row-gap: .5rem; padding: .2rem 0; }
.sc-vers .sy { display: inline-flex; flex-direction: column; align-items: center; min-width: 1.2em; }
.sc-vers .sy.dm { margin-left: .55em; }
.sc-vers .mk { height: 1.25em; line-height: 1.25em; font-family: var(--sans); font-size: .95em; color: var(--terre); font-weight: 700; }
.sc-vers .sy.elid .tx { color: var(--muted); text-decoration: line-through; }
.sc-vers .sy.elid .mk { color: var(--muted); }
.sc-vers .sep { align-self: stretch; display: inline-flex; align-items: flex-end; padding-bottom: .1em; color: var(--muted); font-family: var(--sans); min-width: 2px; }
.sc-vers .sep.pied, .sc-vers .sep.coupe { color: var(--olive); font-weight: 700; padding: 0 .1em .1em; }
.sc-vers .sep.coupe { color: var(--terre); }
.sc-info { font-size: .85rem; margin: .2rem 0; } .sc-rem { font-size: .85rem; color: var(--muted); margin: .2rem 0 .6rem; }
.sc-l { border-top: 1px solid var(--ligne); padding: .5rem 0; } .sc-l .btn.petit { min-height: 36px; padding: .3rem .7rem; font-size: .85rem; }
.sc-zone { position: relative; margin: .5rem 0; padding: .3rem .2rem; background: var(--fond); border-radius: 10px; }
.sc-zone canvas { position: absolute; inset: 0; pointer-events: none; }
.sc-zone.dessin canvas { pointer-events: auto; touch-action: none; cursor: crosshair; }
.sc-vers.ex { font-size: 1.3rem; row-gap: 1rem; }
.sc-vers.ex .sy { cursor: pointer; padding: 0 2px; border-radius: 6px; }
.sc-vers.ex .mk { height: 1.6em; line-height: 1.6em; min-width: 1em; border-bottom: 1px dashed var(--ligne); }
.sc-vers.ex .sy.e .tx { text-decoration: line-through; color: var(--muted); }
.sc-vers.ex .gap { align-self: stretch; width: 14px; display: inline-flex; align-items: flex-end; justify-content: center; cursor: pointer; border-radius: 4px; }
.sc-vers.ex .gap i { font-style: normal; color: var(--olive); font-weight: 700; font-family: var(--sans); }
.sc-vers.ex .gap:hover { background: color-mix(in srgb, var(--terre-clair) 40%, transparent); }
.sc-vers.ex .ok .mk, .sc-vers.ex .gap.ok i { color: var(--ok); } .sc-vers.ex .ko { background: color-mix(in srgb, var(--err) 14%, transparent); }
.sc-vers.ex .sy.ko .mk { color: var(--err); }
.sc-outils { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; font-size: .9rem; }
.sc-sol { margin-top: .6rem; padding-top: .5rem; border-top: 1px dashed var(--ligne); }
fieldset.q { min-width: 0; }
.as-l select { width: 100%; }
.as-l > span { min-width: 0; overflow-wrap: anywhere; }
/* Version : texte annotable, suivi des séances, points d'attention */
.titre-donne { font-style: italic; margin: .2rem 0 .4rem; }
.v-texte { margin-top: .4rem; }
.v-texte.poesie { padding-left: 2em; }
.v-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.v-plus { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.v-plus[hidden] { display: none; }
.v-plus p { flex-basis: 100%; margin: 0; }
.v-fini { font-weight: 600; color: var(--olive); }
.btn.lien { background: none; border: 0; text-decoration: underline; color: var(--muted); padding-left: 0; }
.v-aide { margin-top: .8rem; } .v-aide summary { cursor: pointer; color: var(--terre); font-weight: 600; }
details.pa { border-top: 1px solid var(--ligne); padding: .5rem 0; } details.pa summary { cursor: pointer; }
.nc { font-size: .6em; color: var(--terre); font-family: var(--ui, sans-serif); margin-left: 1px; }

.v-outils { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0 .4rem; }
.stylo { font: inherit; font-size: .85rem; font-weight: 600; padding: .35rem .75rem; min-height: 38px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; color: #fff; background: var(--muted); transition: transform .1s; }
.stylo.k-nom { background: var(--k-nom); } .stylo.k-voc { background: var(--k-voc); } .stylo.k-acc { background: var(--k-acc); }
.stylo.k-gen { background: var(--k-gen); } .stylo.k-dat { background: var(--k-dat); } .stylo.k-abl { background: var(--k-abl); } .stylo.k-verbe { background: var(--olive); }
.stylo.gomme { background: var(--carte); color: var(--encre); border-color: var(--ligne); font-weight: 400; }
.stylo.on { box-shadow: 0 0 0 2px var(--carte), 0 0 0 4px var(--encre); transform: scale(1.06); }
.v-outils2 { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.b-analyse[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: #fff; }
.v-texte .tok[class*=" u-"] { text-decoration-line: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-skip-ink: none; }
.v-texte .u-nom { text-decoration-color: var(--k-nom); } .v-texte .u-voc { text-decoration-color: var(--k-voc); } .v-texte .u-acc { text-decoration-color: var(--k-acc); }
.v-texte .u-gen { text-decoration-color: var(--k-gen); } .v-texte .u-dat { text-decoration-color: var(--k-dat); } .v-texte .u-abl { text-decoration-color: var(--k-abl); }
.v-texte .u-verbe { text-decoration-color: var(--olive); text-decoration-style: double; }
.v-texte.stylo-actif .tok { cursor: crosshair; }
.gaffiot { font-size: .95rem; line-height: 1.55; max-height: 45vh; overflow: auto; padding: .6rem .7rem; border: 1px solid var(--ligne); border-radius: 10px; background: var(--fond); }
.gaffiot b { color: var(--terre); } .g-sep { color: var(--muted); padding: 0 .2em; }
/* Thème sombre : les couleurs de cas sont claires, le texte des stylos passe en foncé pour rester lisible */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stylo:not(.gomme) { color: #161b18; } }
:root[data-theme="dark"] .stylo:not(.gomme) { color: #161b18; }
/* Traduction littérale à découvrir */
.v-lit-outils { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 .6rem; }
ol.lit { list-style: none; margin: 0; padding: 0; }
.lit-n { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: .9rem 0 .2rem; }
.lit-seg { border-left: 3px solid var(--ligne); padding: .1rem 0 .1rem .6rem; margin: .35rem 0; }
.lit-seg.vu { border-left-color: var(--olive); }
.lit-la { display: flex; align-items: flex-start; gap: .3rem; }
.lit-tog { flex: 1; text-align: left; font-family: var(--antique); font-size: 1.08rem; line-height: 1.45; background: none; border: 0; padding: .3rem 0; color: var(--encre); cursor: pointer; }
.lit-tog::after { content: "  ▸"; color: var(--muted); font-family: var(--ui, sans-serif); font-size: .8em; }
.lit-tog[aria-expanded="true"]::after { content: "  ▾"; }
.lit-loc { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ligne); background: var(--carte); color: var(--muted); cursor: pointer; }
.lit-fr { padding: .1rem 0 .4rem; color: var(--encre); }
.lit-fr[hidden] { display: none; }
.v-texte .tok.flash { animation: flash 1.8s ease-out; }
@keyframes flash { 0%, 40% { background: color-mix(in srgb, var(--ocre, #c9a227) 55%, transparent); } 100% { background: transparent; } }
/* Atelier de méthode (version pas à pas) */
.at-ref { font-style: italic; color: var(--muted); margin: .2rem 0 .5rem; }
.at-etapes { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.at-et { font: inherit; font-size: .85rem; padding: .35rem .7rem; min-height: 38px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--carte); color: var(--encre); cursor: pointer; }
.at-et span { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--ligne); font-size: .8em; font-weight: 700; margin-right: .2em; }
.at-et.on { background: var(--olive); border-color: var(--olive); color: #fff; } .at-et.on span { background: #fff3; }
.at-consigne { background: var(--fond); border-radius: 10px; padding: .5rem .7rem; }
.at-texte { font-family: var(--antique); font-size: 1.2rem; line-height: 2.1; margin: .5rem 0; }
.at-tok { cursor: pointer; border-radius: 4px; padding: 1px 2px; border: 2px solid transparent; }
.at-tok.sel { background: color-mix(in srgb, var(--ocre) 40%, transparent); }
.at-tok.ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
.at-tok.manque { border: 2px dashed var(--ok); }
.at-tok.faux { border-color: var(--err); text-decoration: line-through; text-decoration-color: var(--err); }
.at-tok.essai { background: color-mix(in srgb, var(--ocre) 35%, transparent); }
.at-tok.pr-0 { background: color-mix(in srgb, var(--k-nom) 18%, transparent); } .at-tok.pr-1 { background: color-mix(in srgb, var(--k-acc) 18%, transparent); }
.at-tok.pr-2 { background: color-mix(in srgb, var(--k-dat) 18%, transparent); } .at-tok.pr-3 { background: color-mix(in srgb, var(--k-gen) 18%, transparent); }
.at-tok.pr-4 { background: color-mix(in srgb, var(--k-abl) 22%, transparent); }
.at-tok.vu { border-color: var(--encre); }
.at-sep { color: var(--terre); font-weight: 700; }
.at-act { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.at-liste { padding-left: 1.1rem; } .at-liste li { margin: .3rem 0; } .at-f { font-family: var(--antique); }
.at-ok { color: var(--ok); } .at-ko { color: var(--err); }
.at-carte { border: 1px solid var(--ligne); border-radius: 10px; padding: .5rem .7rem; margin: .5rem 0; background: var(--fond); }
.at-la { font-family: var(--antique); font-size: 1.1rem; margin: .2rem 0; }
.at-props { padding-left: 1.2rem; } .at-prop { margin: .6rem 0; padding-bottom: .5rem; border-bottom: 1px solid var(--ligne); }
.at-prop details, .at-suivie { margin-top: .3rem; } .at-prop summary, .at-suivie summary { cursor: pointer; color: var(--terre); font-weight: 600; }
.at-suivie { margin-top: .8rem; }
.at-tok.m-v { text-decoration: underline double var(--olive); text-decoration-thickness: 2px; text-underline-offset: 5px; font-weight: 600; }
.at-tok.m-l { font-variant: small-caps; color: var(--terre); font-weight: 700; }
.at-et:disabled { opacity: .55; cursor: not-allowed; }
.at-et.fait span { background: var(--ok); color: #fff; }
.atelier .v-lit { margin: 1rem 0 0; padding: 0; border: 0; box-shadow: none; background: none; }
.v-prep-ph { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 .8rem; }
.ph-b { font: inherit; font-size: .85rem; padding: .3rem .65rem; min-height: 36px; border-radius: 8px; border: 1px solid var(--ligne); background: var(--carte); color: var(--encre); cursor: pointer; }
.ph-b.on { border-color: var(--terre); box-shadow: inset 0 0 0 1px var(--terre); font-weight: 600; }
.ph-b.fait { color: var(--ok); }
.at-tok.trouve { background: color-mix(in srgb, var(--ok) 22%, transparent); }
/* Travail préparatoire reporté sur le texte */
.v-texte .tok.pv { border-bottom: 2px solid var(--encre); }
.v-texte .tok.pl { outline: 1.5px solid var(--terre); outline-offset: 1px; border-radius: 3px; }
.v-texte .pcr { color: var(--terre); font-weight: 700; font-family: var(--ui, sans-serif); margin: 0 1px; }
.at-tok.acq { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 18%, transparent); }
.at-tok.zone:not(.acq):not(.sel) { border: 2px dashed var(--ocre); }
.at-indice { background: color-mix(in srgb, var(--ocre) 15%, transparent); border-radius: 8px; padding: .4rem .6rem; }
/* Types de propositions (étape 3) */
.ty-pinceaux, .ty-legende { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 .6rem; }
.ty-btn { font: inherit; font-size: .82rem; font-weight: 600; padding: .3rem .65rem; min-height: 36px; border-radius: 999px; border: 2px solid transparent; color: #fff; cursor: pointer; }
.ty-btn.gomme { background: var(--carte); color: var(--encre); border-color: var(--ligne); font-weight: 400; }
.ty-btn.on { box-shadow: 0 0 0 2px var(--carte), 0 0 0 4px var(--encre); transform: scale(1.05); }
.ty-legende .ty { font-size: .8rem; padding: .15rem .55rem; border-radius: 999px; }
.ty-btn.ty-relative { background: var(--k-nom); } .ty-btn.ty-completive { background: var(--k-acc); } .ty-btn.ty-circonstancielle { background: var(--k-abl); }
.ty-btn.ty-infinitive { background: var(--k-gen); } .ty-btn.ty-interrogative { background: var(--k-dat); } .ty-btn.ty-participiale { background: var(--k-voc); }
.ty.ty-principale { background: color-mix(in srgb, var(--olive) 22%, transparent); } .ty.ty-relative { background: color-mix(in srgb, var(--k-nom) 22%, transparent); }
.ty.ty-completive { background: color-mix(in srgb, var(--k-acc) 22%, transparent); } .ty.ty-circonstancielle { background: color-mix(in srgb, var(--k-abl) 26%, transparent); }
.ty.ty-infinitive { background: color-mix(in srgb, var(--k-gen) 22%, transparent); } .ty.ty-interrogative { background: color-mix(in srgb, var(--k-dat) 22%, transparent); }
.ty.ty-participiale { background: color-mix(in srgb, var(--k-voc) 22%, transparent); }
.at-tok.ty.fixe { box-shadow: inset 0 -2px 0 var(--ok); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ty-btn:not(.gomme) { color: #161b18; } }
:root[data-theme="dark"] .ty-btn:not(.gomme) { color: #161b18; }
.ty-pinceaux > .ty { font-size: .8rem; padding: .3rem .6rem; border-radius: 999px; align-self: center; }
.lit-note { display: block; margin-top: .25rem; font-size: .88rem; color: var(--muted); }
.at-vn { display: inline-block; width: 2.4em; font-size: .7em; color: var(--muted); font-variant-numeric: tabular-nums; user-select: none; }
.at-vers { display: block; padding-left: 3.6em; text-indent: -1.2em; position: relative; }
.at-vers .at-vn { position: absolute; left: 0; width: 2.2em; text-indent: 0; line-height: inherit; }
/* Œuvres : lecture par groupes, notes de bas de page, entraînement, explication */
.chapitre .ch-resume { font-style: italic; color: var(--muted); margin: .2rem 0 .6rem; }
sup.nbp { color: var(--terre); font-weight: 700; font-size: .7em; margin-left: 1px; }
ol.notes-bas { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--ligne); margin-top: .8rem; padding-top: .5rem; padding-left: 1.4rem; }
ol.notes-bas li { margin: .25rem 0; }
.ent-item { border-top: 1px solid var(--ligne); padding: .6rem 0; }
.ent-rep { margin-top: .4rem; padding: .5rem .7rem; background: var(--fond); border-radius: 10px; }
.ent-rep[hidden] { display: none; }
.ent-fin { margin-top: .8rem; }
.expl-titre { margin: 1.2rem 0 .3rem; padding: 0 .2rem; }
.expl-titre h2 { margin: 0; }
details.expl > summary h2 { display: inline; }
.mvts li { margin: .3rem 0; }
.projet { background: color-mix(in srgb, var(--olive) 12%, transparent); padding: .5rem .7rem; border-radius: 10px; }
/* Groupes de chapitres en onglets ; questionnaires de révision */
.ch-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .4rem; }
.q-src { font: inherit; font-size: .8rem; background: none; border: 0; padding: .2rem 0; color: var(--olive); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; text-align: left; }
fieldset.q.faux .q-src { color: var(--err); font-weight: 600; }
.source-rev h3 { margin-top: .9rem; }
.taches li.t-cours { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; padding: .2rem .2rem .25rem; border-bottom: 2px solid var(--ocre); font-family: var(--serif, inherit); }
.taches li.t-cours:first-child { margin-top: 0; }

/* ===== Charte Égée, terre cuite : surcharges de mise en page ===== */
body { font-size: 15.5px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.005em; }
header#top { background: color-mix(in srgb, var(--fond) 92%, transparent); color: var(--encre); box-shadow: none; border-bottom: 1px solid var(--ligne); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
:root[data-theme="dark"] header#top { background: color-mix(in srgb, var(--fond) 92%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) header#top { background: color-mix(in srgb, var(--fond) 92%, transparent); } }
.bar { height: 56px; }
.logo { font-weight: 600; letter-spacing: 0; font-size: 1.3rem; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--sur-accent); font-weight: 600; }
.sync { background: var(--carte2); color: var(--muted); font-weight: 500; }
.sync.ok { background: color-mix(in srgb, var(--ok) 16%, var(--carte)); color: var(--ok); }
.sync.off { background: var(--err); color: #fff; } .sync.demo { background: color-mix(in srgb, var(--bleu) 16%, var(--carte)); color: var(--bleu); }
.icon-btn { color: var(--encre); background: var(--carte); border-radius: 12px; width: 44px; height: 44px; }
.icon-btn:hover { background: var(--carte2); }
.tabs { gap: 4px; padding: 4px; margin: 0 auto 10px; background: color-mix(in srgb, var(--ligne) 70%, var(--fond)); border-radius: 12px; max-width: min(960px, calc(100% - 32px)); }
.tabs a { flex: 1 0 auto; color: var(--muted); border: 0; border-radius: 9px; padding: .55rem .4rem; font-size: .82rem; font-weight: 500; }
@media (min-width: 420px) { .tabs a { font-size: .88rem; padding: .55rem .6rem; } }
.tabs a.on { color: var(--encre); background: var(--carte); border: 0; font-weight: 600; box-shadow: 0 1px 2px #2A1D161F; }
.demo-banner { background: color-mix(in srgb, var(--bleu) 12%, var(--fond)); color: var(--bleu); }
.card { border: 0; border-radius: var(--r); padding: 16px; box-shadow: 0 1px 2px color-mix(in srgb, var(--encre) 6%, transparent); }
details.card > summary::before { color: var(--accent); }
.kicker { color: var(--muted); letter-spacing: .06em; }
.pill { background: var(--carte2); color: var(--muted); font-weight: 500; padding: .2rem .65rem; }
.pill.exam, b.exam { background: color-mix(in srgb, var(--accent) 14%, var(--carte)); color: var(--terre-fonce); }
.btn { border-radius: 12px; font-weight: 500; background: var(--carte); border-color: var(--ligne); }
.btn:hover { background: var(--carte2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); font-weight: 600; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.retour { font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.hero { background: var(--hero); color: var(--sur-hero); }
.hero .kicker, .hero .muted, .hero .compteur span, .hero .serie { color: color-mix(in srgb, var(--sur-hero) 82%, transparent); }
.compteur { background: color-mix(in srgb, var(--sur-hero) 14%, transparent); border-radius: 14px; padding: .5rem .6rem; }
.hero .compteur b { color: var(--sur-hero); }
.serie { color: var(--accent); }
.taches li a { border-bottom: 0; background: var(--carte2); border-radius: 12px; margin-bottom: 6px; padding: .65rem .75rem; }
.coche { border-radius: 8px; border-color: var(--olive-clair); width: 24px; height: 24px; }
.taches li.t-cours { border-bottom: 0; font-family: var(--sans); font-size: .9rem; margin-top: .9rem; padding: .2rem .1rem .35rem; }
.taches li.t-cours b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: .45rem; vertical-align: middle; }
.barre i { background: var(--bleu); } .barre i.pret { background: color-mix(in srgb, var(--bleu) 30%, transparent); }
.cal-j.ok { background: var(--ok); } .cal-j.part { background: var(--terre-clair); color: var(--encre); }
.ue-n { color: var(--accent); }
.oeuvre { border-left: 0; border-top: 4px solid var(--bleu); }
.oeuvre.grc { border-top-color: var(--accent); }
.morceaux li > a, .morceaux li > span, .volets li a { border-bottom-color: var(--ligne); padding: .65rem .3rem; }
.m-sep { border-bottom: 0; color: var(--encre); font-family: var(--sans); font-size: .95rem; padding-top: 1.1rem; }
.m-sep b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: .45rem; vertical-align: middle; }
.specimen { background: color-mix(in srgb, var(--bleu) 10%, var(--carte)); border-left: 0; border-radius: 12px; }
.q { border: 1px solid var(--ligne); border-radius: 14px; padding: .7rem .8rem; }
.opt { border: 1px solid var(--ligne); border-radius: 12px; padding: .65rem .75rem; margin: .35rem 0; align-items: center; }
.opt input { margin-top: 0; accent-color: var(--accent); }
.opt:has(input:checked) { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--carte)); padding: calc(.65rem - 1px) calc(.75rem - 1px); }
.opt.juste { background: color-mix(in srgb, var(--ok) 14%, var(--carte)); border-color: var(--ok); }
textarea, input[type=email], input[type=password], input[type=date] { border-radius: 12px; background: var(--carte2); }
.puce { border-radius: 99px; background: var(--carte); }
.puce.on { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.modal { background: color-mix(in srgb, var(--encre) 40%, transparent); }
.modal-box { border-radius: 22px 22px 0 0; padding-top: 24px; }
.modal-box::before { content: ""; position: absolute; top: 9px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--ligne); }
.mascotte .bulle { border: 0; box-shadow: 0 4px 14px color-mix(in srgb, var(--encre) 18%, transparent); }
.bloc-n { color: var(--muted); }
.serie { border-left: 0; }
.at-et { border-radius: 99px; background: var(--carte); }
.at-et.on { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.at-et.on span { background: color-mix(in srgb, var(--sur-accent) 25%, transparent); }
.at-et:disabled { border-style: dashed; background: transparent; }
.pill.k-verbe, .stylo.k-verbe { background: var(--k-verbe); color: var(--fond); }
.b-analyse[aria-pressed="true"] { color: var(--sur-accent); }
.v-texte .u-verbe { text-decoration-color: var(--k-verbe); }
.at-tok.m-v { text-decoration-color: var(--k-verbe); }
.sc-vers .sep.pied, .sc-vers .sep.coupe, .sc-vers.ex .gap i { color: var(--accent); }
.v-fini { color: var(--ok); }
.ty.ty-principale { background: color-mix(in srgb, var(--accent) 18%, transparent); }
table.para thead th { background: var(--carte2); }
.projet { background: color-mix(in srgb, var(--accent) 10%, var(--carte)); border-radius: 12px; }
.q-src { color: var(--bleu); }
.tampon { border-color: var(--accent); color: var(--accent); }
.phrases.cas .tok.k-nom { background: color-mix(in srgb, var(--k-nom) 11%, transparent); } .phrases.cas .tok.k-acc { background: color-mix(in srgb, var(--k-acc) 11%, transparent); }
.phrases.cas .tok.k-gen { background: color-mix(in srgb, var(--k-gen) 11%, transparent); } .phrases.cas .tok.k-dat { background: color-mix(in srgb, var(--k-dat) 11%, transparent); }
.phrases.cas .tok.k-abl { background: color-mix(in srgb, var(--k-abl) 11%, transparent); } .phrases.cas .tok.k-voc { background: color-mix(in srgb, var(--k-voc) 11%, transparent); }
.legende span { padding: .2rem .6rem; border-radius: 99px; background: color-mix(in srgb, currentColor 10%, transparent); }
.legende .k-verbe { text-decoration: none; }
/* Charles d'Orléans : poèmes en regard */
.poeme h2 { margin-bottom: .1rem; }
.po-incipit { margin: 0 0 .2rem; font-family: var(--serif); color: var(--muted); }
.po-rub { margin: 0 0 .6rem; font-size: .85rem; color: var(--accent); font-variant: small-caps; letter-spacing: .03em; }
.po-grid { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) minmax(0, 1fr); column-gap: .9rem; row-gap: .15rem; font-family: var(--serif); font-size: 1rem; line-height: 1.45; }
.po-n { font-family: var(--sans); font-size: .7rem; color: var(--muted); text-align: right; padding-top: .25rem; }
.po-fr { color: color-mix(in srgb, var(--encre) 78%, var(--fond)); }
.po-ent { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--accent); padding-top: .4rem; }
.po-sep { grid-column: 1 / -1; height: .7rem; }
.po-grid .nbp { font-size: .65em; color: var(--accent); }
.mode-vf .po-grid, .mode-fr .po-grid { grid-template-columns: 1.6rem minmax(0, 1fr); }
.mode-vf .po-fr, .mode-fr .po-vf { display: none; }
@media (max-width: 620px) {
  .mode-deux .po-grid { grid-template-columns: 1.6rem minmax(0, 1fr); }
  .mode-deux .po-fr { grid-column: 2; font-size: .88rem; font-style: italic; margin-bottom: .3rem; }
  .mode-deux .po-fr.po-ent { font-style: normal; display: none; }
}
.po-notice { margin-top: .8rem; border-top: 1px solid var(--ligne); padding-top: .5rem; font-size: .9rem; }
.po-notice summary { cursor: pointer; color: var(--accent); font-weight: 500; min-height: 32px; }
.oeuvre.fro { border-top-color: var(--k-gen); }
/* Notes de bas de page des fiches */
.nbp-appel { font: inherit; font-size: .7em; font-weight: 600; line-height: 1; padding: .1em .3em; margin-left: .05em; border: 0; border-radius: 6px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); cursor: pointer; vertical-align: super; }
.nbp-appel:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
sup.nbp { line-height: 0; }
.notes-fiche ol.notes-bas { border-top: 0; margin-top: 0; padding-top: 0; font-size: .9rem; }
.notes-fiche li { padding: .25rem .3rem; border-radius: 8px; }
.nbp-retour { font: inherit; border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0 .3rem; min-width: 32px; min-height: 28px; }
.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { background: color-mix(in srgb, var(--accent) 22%, transparent); } 100% { background: transparent; } }
/* Chronologie */
.cf-barre { display: flex; gap: 3px; border-radius: 12px; overflow: hidden; margin: .4rem 0 0; }
.cf-per { font: inherit; border: 0; color: #fff; padding: .55rem .5rem; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: .1rem; min-width: 0; min-height: 56px; }
.cf-per span { font-size: .78rem; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cf-per small { font-size: .7rem; opacity: .85; }
.cf-p0 { --per: #1F5F7A; } .cf-p1 { --per: #A8461F; } .cf-p2 { --per: #2F6B45; } .cf-p3 { --per: #6B5648; }
.cf-per.cf-p0, .cf-per.cf-p1, .cf-per.cf-p2, .cf-per.cf-p3 { background: var(--per); }
.cf-reperes { position: relative; height: 64px; margin: 4px 8px .4rem; border-top: 2px solid var(--ligne); }
.cf-rep { position: absolute; top: -7px; transform: translateX(-50%); font: inherit; border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; color: var(--encre); width: 64px; }
.cf-rep::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--carte); }
.cf-rep b { font-size: .75rem; margin-top: 2px; } .cf-rep span { font-size: .66rem; line-height: 1.1; color: var(--muted); text-align: center; }
.cf-rep:first-child { transform: none; align-items: flex-start; } .cf-rep:last-child { transform: translateX(-100%); align-items: flex-end; }
.cf-rep:first-child span, .cf-rep:first-child b { text-align: left; } .cf-rep:last-child span { text-align: right; }
.cf-leg { display: inline-block; font-size: .68rem; font-weight: 600; padding: .05rem .45rem; border-radius: 99px; background: color-mix(in srgb, var(--k-gen) 14%, transparent); color: var(--k-gen); margin-right: .3rem; vertical-align: middle; }
.chrono-per h2 { border-left: 5px solid var(--per); padding-left: .55rem; }
ol.chrono { list-style: none; margin: 0; padding: 0; position: relative; }
ol.chrono::before { content: ""; position: absolute; left: 3.6rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--ligne); }
ol.chrono li { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); gap: .9rem; padding: .55rem 0; position: relative; border-radius: 10px; }
ol.chrono li::before { content: ""; position: absolute; left: calc(3.6rem - 4px); top: .95rem; width: 10px; height: 10px; border-radius: 50%; background: var(--carte); border: 2px solid var(--per, var(--accent)); }
ol.chrono li.cle::before { background: var(--per, var(--accent)); width: 14px; height: 14px; left: calc(3.6rem - 6px); top: .85rem; }
.ch-an { text-align: right; padding-right: 1.1rem; display: flex; flex-direction: column; align-items: flex-end; }
.ch-an b { font-family: var(--serif); font-size: 1.05rem; color: var(--per, var(--accent)); line-height: 1.3; } .ch-an small { font-size: .7rem; color: var(--muted); }
.ch-txt p { margin: .15rem 0 0; }
.ch-cle { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .05rem .5rem; border-radius: 99px; background: var(--per, var(--accent)); color: #fff; margin-right: .3rem; vertical-align: middle; }
li.cle .ch-txt p { font-weight: 500; }
.cf-reperes { height: 92px; }
.cf-rep:nth-child(even) b { margin-top: 30px; }
ol.chrono li, .chrono-per, .notes-fiche li, .nbp-appel, .poeme { scroll-margin-top: 130px; }
a.lien-po { color: var(--accent); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
a.lien-po:hover { text-decoration-style: solid; }

/* ===== Charte « Exercices du bloc » : l'action en bleu, la réussite en vert, la terre cuite réservée à la marque ===== */
a { color: var(--action); }
.btn.primary { background: var(--action); border-color: var(--action); color: var(--sur-action); }
.btn.primary:hover { background: color-mix(in srgb, var(--action) 86%, #000); }
.opt input, input[type=checkbox], input[type=radio] { accent-color: var(--action); }
.opt:has(input:checked) { border-color: var(--action); background: color-mix(in srgb, var(--action) 8%, var(--carte)); }
.puce.on { background: var(--action); border-color: var(--action); color: var(--sur-action); }
.trou { border-bottom-color: var(--action); background: var(--carte2); }
.q-src { color: var(--action); }
/* Onglets de blocs et de chapitres : fait = vert, en cours = bleu plein, verrouillé = pointillé */
.ch-tabs { gap: 6px; }
.at-et { min-height: 40px; padding: 0 12px; border: 0; background: var(--carte2); font-size: .82rem; font-weight: 600; color: var(--encre); max-width: 100%; }
.at-et span { background: color-mix(in srgb, var(--encre) 10%, transparent); }
.at-et.fait { background: color-mix(in srgb, var(--ok) 14%, var(--carte)); color: var(--ok); }
.at-et.fait span { background: none; color: var(--ok); width: auto; margin-right: .1em; }
.at-et.on { background: var(--action); color: var(--sur-action); }
.at-et.on span { background: color-mix(in srgb, var(--sur-action) 25%, transparent); color: var(--sur-action); }
.at-et:disabled { border: 1px dashed var(--olive-clair); background: transparent; color: var(--muted); font-weight: 400; opacity: 1; }
.at-et:disabled span { background: none; }
.bloc-n { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 6px 4px 8px; }
/* Série d'exercices */
.card.serie { color: var(--encre); font-weight: 400; margin-top: 0; }
.serie-tete { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .7rem; }
.serie-tete h2 { margin: 0; }
.serie-tete span { font-size: .78rem; color: var(--muted); }
.q { border: 0; padding: 0; margin: 0 0 1.1rem; border-radius: 0; }
.q legend { font-weight: 600; color: var(--encre); padding: 0; margin-bottom: .45rem; line-height: 1.4; }
.q.bon legend::after { content: " ✓"; color: var(--ok); }
.q.faux legend::after { content: " ✗"; color: var(--err); }
.q.faux .opt.juste, .q.bon .opt.juste { border-color: var(--ok); }
.q-expl { margin-top: .45rem; padding: .6rem .75rem; border-radius: 10px; background: var(--carte2); font-size: .9rem; line-height: 1.5; }
.q.faux .q-expl { background: color-mix(in srgb, var(--err) 7%, var(--carte)); }
.vf { display: flex; gap: 8px; } .vf .opt { flex: 1; margin: 0; }
.quiz-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: .4rem; }
.quiz-actions .b-verif { min-height: 48px; width: 100%; font-size: 1rem; }
.quiz-res:empty { display: none; }
.quiz-res { display: block; padding: 12px 14px; border-radius: 12px; background: var(--carte2); font-weight: 500; }
.quiz-res.ok { background: color-mix(in srgb, var(--ok) 14%, var(--carte)); color: var(--ok); }
.quiz-res.ko { background: color-mix(in srgb, var(--err) 9%, var(--carte)); color: var(--err); }
.bl-suite { margin-top: 10px; }
.bl-suite .btn { width: 100%; min-height: 48px; justify-content: space-between; display: flex; align-items: center; background: var(--ok); border-color: var(--ok); color: #fff; }
:root[data-theme="dark"] .bl-suite .btn { color: #0F1A14; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bl-suite .btn { color: #0F1A14; } }
/* Atelier du commentaire composé */
.com-atelier { margin-top: .8rem; scroll-margin-top: 130px; }
.com-tete { margin-bottom: .8rem; }
.com-etape h2 { margin: .1rem 0 .6rem; }
.com-methode { background: color-mix(in srgb, var(--action) 8%, var(--carte)); border-radius: 12px; padding: .7rem .85rem; margin: 0 0 .8rem; font-size: .93rem; }
.com-methode > b, .com-bilan > b, .com-modele > b { display: block; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--action); margin-bottom: .2rem; }
.com-methode p, .com-bilan p, .com-modele p { margin: .3rem 0; }
.com-consigne { font-weight: 600; }
.com-bilan { background: color-mix(in srgb, var(--ok) 10%, var(--carte)); border-radius: 12px; padding: .7rem .85rem; margin-top: .9rem; }
.com-bilan > b { color: var(--ok); }
.com-modele { background: var(--carte2); border-radius: 12px; padding: .7rem .85rem; margin-top: .8rem; }
.com-modele p { font-family: var(--serif); line-height: 1.6; }
.com-grille { margin: .3rem 0 0; padding-left: 1.2rem; font-size: .9rem; }
.com-poeme { font-family: var(--serif); font-size: 1.02rem; line-height: 2; margin: .4rem 0 .8rem; }
.com-l { display: flex; gap: .6rem; } .com-n { width: 1.4rem; flex: none; text-align: right; font-family: var(--sans); font-size: .7rem; color: var(--muted); padding-top: .45rem; }
.com-sep { height: .6rem; } .com-ent { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: 2rem; }
.com-tok { font: inherit; background: none; color: inherit; border: 2px solid transparent; line-height: 1.5; }
.com-tok.ok { box-shadow: inset 0 -3px 0 var(--ok); } .com-tok.faux { text-decoration: line-through; border-color: var(--err); }
.com-tok.manque { border: 2px dashed var(--ok); }
.com-gab { display: flex; flex-direction: column; gap: 4px; margin-bottom: .8rem; }
.com-gl { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .3rem .5rem; border-radius: 10px; background: var(--carte2); }
.com-gv { font-family: var(--serif); } .com-gl select { width: 4.2rem; min-height: 36px; border-radius: 8px; }
.com-gl select.ok { border: 2px solid var(--ok); } .com-gl select.ko { border: 2px solid var(--err); }
.com-cls { display: flex; flex-direction: column; gap: 10px; margin-bottom: .8rem; }
.com-ci { border: 1px solid var(--ligne); border-radius: 12px; padding: .65rem .75rem; }
.com-ci p { margin: 0 0 .5rem; } .com-ci .puces { margin: 0; } .com-ci .puce { font-size: .8rem; min-height: 36px; }
.com-ci.bon { border-color: var(--ok); } .com-ci.faux { border-color: var(--err); }
.com-txt { width: 100%; font: inherit; font-family: var(--serif); line-height: 1.6; padding: .7rem; box-sizing: border-box; }
.com-chk .opt { margin: .3rem 0; }
.com-fin { color: var(--ok); font-weight: 600; margin-top: .8rem; }
.com-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.com-tabs .at-et { flex: none; }
.com-tok { padding: 0 1px; }
.com-ci .puces { flex-wrap: wrap; overflow: visible; }
.com-ci .puce { white-space: normal; text-align: left; flex: 1 1 auto; }
/* Atelier : le poème toujours à portée de main */
.com-aside { display: none; }
.com-fab { position: fixed; left: max(12px, env(safe-area-inset-left)); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 31; font: inherit; font-weight: 600; font-size: .9rem; min-height: 46px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--action); color: var(--sur-action); box-shadow: 0 4px 14px color-mix(in srgb, var(--encre) 25%, transparent); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.com-fab.vu { opacity: 1; pointer-events: auto; transform: none; }
.com-feuille .card { box-shadow: none; padding: 0; margin: 0; background: none; }
@media (min-width: 900px) {
  .com-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 42%); gap: 20px; align-items: start; }
  .com-aside { display: block; position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow: auto; border-left: 1px solid var(--ligne); padding-left: 16px; }
  .com-aside .card { box-shadow: none; padding: 0; background: none; }
  .com-aside .po-grid { font-size: .92rem; }
  .com-fab { display: none; }
  .com-sans-aside .com-grid { display: block; } .com-sans-aside .com-aside { display: none; } .com-sans-aside .com-fab { display: none; }
}
.com-empile .po-grid { grid-template-columns: 1.6rem minmax(0, 1fr); }
.com-empile .po-fr { grid-column: 2; font-size: .86rem; font-style: italic; margin-bottom: .3rem; }
.com-empile .po-fr.po-ent { display: none; }
.com-renvois { font-size: .9rem; background: var(--carte2); border-radius: 10px; padding: .5rem .75rem; }
.com-bascule { display: flex; align-items: center; gap: .5rem; font-size: .88rem; margin: .2rem 0 .3rem; }
.com-trad { display: none; font-family: var(--serif); font-style: italic; font-size: .85rem; color: var(--muted); line-height: 1.35; margin: -.1rem 0 .35rem; }
.avec-trad .com-trad { display: block; }
.com-theses { display: grid; gap: 8px; margin-bottom: .9rem; }
.com-theses > div { background: color-mix(in srgb, var(--action) 7%, var(--carte)); border-radius: 12px; padding: .55rem .75rem; }
.com-theses p { margin: .2rem 0 0; font-size: .9rem; }
.com-tag { display: inline-block; font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: .1rem .5rem; border-radius: 99px; margin-bottom: .35rem; }
.com-tag.macro { background: color-mix(in srgb, var(--k-gen) 15%, transparent); color: var(--k-gen); }
.com-tag.micro { background: color-mix(in srgb, var(--k-acc) 15%, transparent); color: var(--k-acc); }
.com-gq { margin-bottom: 1.1rem; }
.com-gq-q { margin: 0 0 .45rem; }
.com-go { width: 100%; text-align: left; font: inherit; color: inherit; background: var(--carte); cursor: pointer; }
.com-go.juste { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--carte)); }
.com-go.ko { border-color: var(--err); text-decoration: line-through; opacity: .7; }
.com-go:disabled { cursor: default; }
.com-lire h3 { margin: 1rem 0 .3rem; }
.com-lire p { margin: .3rem 0; }
.com-rappel { border: 1px solid color-mix(in srgb, var(--action) 35%, var(--ligne)); border-radius: 12px; padding: .7rem .85rem; margin: 0 0 .9rem; font-size: .93rem; }
.com-rappel > b { display: block; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--action); margin-bottom: .25rem; }
.com-rappel p { margin: .3rem 0; } .com-rappel .btn { margin-top: .4rem; }
.com-gg { border-left: 4px solid var(--action); padding-left: .6rem; display: flex; flex-direction: column; gap: 4px; }
.com-gg-env { border-left-color: var(--k-gen); margin-top: .9rem; }
.com-gt { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--action); margin: .1rem 0 .2rem; }
.com-gg-env .com-gt { color: var(--k-gen); }
.com-gg-env .com-gl { background: color-mix(in srgb, var(--k-gen) 8%, var(--carte)); }
.com-annot { font-family: var(--sans); font-size: .84rem; color: var(--k-gen); background: color-mix(in srgb, var(--k-gen) 7%, var(--carte)); border-left: 3px solid var(--k-gen); border-radius: 0 8px 8px 0; padding: .4rem .65rem; margin: .2rem 0 .9rem; }
.sans-annot .com-annot { display: none; }
.com-lire > p:not(.com-annot) { font-family: var(--serif); line-height: 1.65; text-align: justify; hyphens: auto; }
.com-lire h3 { font-family: var(--sans); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.com-niv { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; font-weight: 600; }
.com-niv-badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 99px; background: var(--action); color: var(--sur-action); }
.com-niv-apercu { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; font-size: .8rem; font-weight: 400; color: var(--muted); }
.com-niv-apercu .puce { min-height: 30px; padding: .1rem .6rem; }
.com-niveaux { display: grid; gap: 10px; }
@media (min-width: 760px) { .com-niveaux { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.com-nivc { border: 1px solid var(--ligne); border-radius: 14px; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .3rem; }
.com-nivc h3 { margin: .2rem 0; } .com-nivc p { margin: .2rem 0; font-size: .92rem; } .com-nivc .btn { margin-top: auto; }
.com-sujet { background: var(--carte2); border-radius: 12px; padding: .7rem .85rem; margin-bottom: .7rem; }
.com-chrono { position: sticky; top: 120px; z-index: 5; background: var(--carte); border: 1px solid var(--ligne); border-radius: 10px; padding: .4rem .7rem; margin-bottom: .6rem; display: inline-block; }
.com-lab { display: block; font-weight: 600; font-size: .85rem; margin: .5rem 0 .2rem; }
.com-nivc .com-niv-badge { align-self: flex-start; }

/* ---------- Parcours d'appropriation des textes au programme (m_parcours.js) ---------- */
.par-card { padding-bottom: .6rem; }
.par-etape h3 { margin: 1.1rem 0 .4rem; font-size: 1.02rem; }
.par-texte { font-family: var(--serif); font-size: 1.04rem; line-height: 1.85; margin: .5rem 0 .8rem; }
.par-ph { display: flex; gap: .55rem; align-items: baseline; padding: .15rem 0; flex-wrap: wrap; }
.par-ph .p-n { flex: none; width: 4.6rem; font-family: var(--sans); font-size: .68rem; color: var(--muted); }
.par-lat { flex: 1 1 14rem; }
.par-lit { flex-basis: 100%; margin-left: 5.15rem; font-family: var(--sans); font-size: .86rem; color: var(--muted); line-height: 1.45; }
.sans-lit .par-lit { display: none; }
@media (max-width: 520px) { .par-ph .p-n { width: 100%; } .par-lit { margin-left: 0; } }
.par-tok { font: inherit; background: none; color: inherit; line-height: 1.5; padding: 0 1px; }
.par-mot.par-ancre, .par-tok.par-ancre { text-decoration: underline 2px var(--action); text-underline-offset: 4px; }
.par-tok.par-g-on, .par-mot.par-g-on { background: color-mix(in srgb, var(--action) 22%, transparent); border-radius: 4px; outline: 2px solid var(--action); }
.par-tok.par-g-fait { color: var(--muted); }
.par-faible { text-decoration: underline dotted 2px #C47A2C; text-underline-offset: 4px; }
.par-mvbloc { border-left: 4px solid var(--c, var(--action)); padding: .1rem 0 .3rem .7rem; margin: .5rem 0; }
.par-c0 { --c: var(--k-nom); } .par-c1 { --c: var(--k-acc); } .par-c2 { --c: var(--k-dat); } .par-c3 { --c: var(--k-gen); }
.par-mvt { font-family: var(--sans); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: .1rem; }
.par-situation, .par-these, .par-projet { background: color-mix(in srgb, var(--encre) 5%, var(--carte)); border-radius: 12px; padding: .65rem .85rem; margin: .6rem 0; }
.par-situation > b, .par-these > b, .par-projet > b { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.par-situation p, .par-these p, .par-projet p { margin: .3rem 0; }
.par-rev { border: 1px solid var(--ligne); border-radius: 10px; padding: .45rem .7rem; margin: .45rem 0; background: var(--carte); }
.par-rev > summary { cursor: pointer; font-weight: 600; color: var(--action); }
.par-rev > div p { margin: .4rem 0; }
.par-f { color: var(--ok); font-weight: 600; font-size: .93rem; }
.par-q { margin: .6rem 0 .9rem; }
.par-assoc { display: grid; gap: .55rem; margin: .5rem 0; }
.par-al { display: grid; gap: .3rem; }
.par-al select { font: inherit; padding: .4rem; border-radius: 8px; border: 2px solid var(--ligne); background: var(--carte); color: var(--encre); max-width: 100%; }
.par-al select.ok { border-color: var(--ok); } .par-al select.ko { border-color: var(--err); }
.par-navph { display: flex; flex-wrap: wrap; gap: .3rem; margin: .4rem 0 .6rem; }
.par-ctx { opacity: .62; }
.par-cur { border: 2px solid var(--ligne); border-radius: 12px; padding: .3rem .6rem; margin: .3rem 0; }
.par-accu { background: color-mix(in srgb, var(--ok) 8%, var(--carte)); border-radius: 10px; padding: .45rem .7rem; }
.par-gtrad { font-size: 1.05rem; font-weight: 600; color: var(--action); margin: .3rem 0; }
.par-cmp { border-left: 3px solid var(--action); padding-left: .7rem; margin: .5rem 0; }
.par-cmp p { margin: .35rem 0; }
.par-pt { border: 1px solid var(--ligne); border-radius: 12px; padding: .5rem .75rem; margin: .5rem 0; }
.par-pt.ess { border-color: color-mix(in srgb, var(--action) 50%, var(--ligne)); }
.par-cle { margin: .1rem 0 .3rem; font-weight: 600; }
.par-pas { margin: .8rem 0 1rem; padding-bottom: .4rem; border-bottom: 1px dashed var(--ligne); }
.par-liste { list-style: none; padding: 0; } .par-liste li { margin: .25rem 0; } .par-liste li.ok { color: var(--ok); } .par-liste li.manque { color: var(--muted); }
.par-hier .opt.juste { background: color-mix(in srgb, var(--ok) 14%, transparent); } .par-hier .opt.ecart { background: color-mix(in srgb, #C47A2C 16%, transparent); }
.par-etoile { margin-left: auto; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ok); font-weight: 700; padding-left: .5rem; }
.par-mini { font-size: .9rem; border-left: 3px solid var(--ligne); padding-left: .65rem; margin: .2rem 0 .6rem 1rem; color: var(--muted); }
.par-cles li { margin: .3rem 0; } .par-cles li.ess { font-weight: 600; }
.par-chrono { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .8rem 0; }
.par-tps { font-variant-numeric: tabular-nums; font-size: 1.3rem; font-weight: 700; }
.par-carte { display: grid; gap: .3rem; margin: .8rem 0; }
.par-cm { border-left: 4px solid var(--c); background: var(--carte); border-radius: 0 12px 12px 0; padding: .45rem .8rem; box-shadow: 0 1px 0 var(--ligne); }
.par-cm p { margin: .25rem 0; } .par-cm ul { margin: .2rem 0 .1rem; padding-left: 1.1rem; }
.par-fleche { font-size: .88rem; color: var(--muted); padding: .1rem 0 .1rem 1rem; }
.par-chrono2 { position: sticky; top: .5rem; z-index: 2; background: var(--carte); border: 1px solid var(--ligne); border-radius: 14px; padding: .6rem .8rem; margin: .5rem 0; }
.par-big { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; } .par-big.fini { color: var(--err); }
.par-frise { display: flex; gap: 3px; margin-top: .5rem; }
.par-fr { background: color-mix(in srgb, var(--encre) 8%, transparent); border-radius: 6px; padding: .25rem .3rem; font-size: .72rem; text-align: center; min-width: 0; overflow: hidden; }
.par-fr small { display: block; color: var(--muted); } .par-fr.on { background: var(--action); color: var(--sur-action); } .par-fr.on small { color: inherit; } .par-fr.passe { opacity: .45; }
.par-rep { background: color-mix(in srgb, #C47A2C 12%, var(--carte)); border-radius: 12px; padding: .6rem .85rem; margin: 0 0 .8rem; }
.par-rep ul { margin: .3rem 0; padding-left: 1.1rem; }
.lien-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--action); text-decoration: underline; cursor: pointer; text-align: left; }
.par-cours > summary h2 { display: inline; }
.par-lat { font-family: var(--serif); font-size: 1.04rem; line-height: 1.85; }
.par-tok.par-g-on, .par-mot.par-g-on { outline: 0; border-color: transparent; font-weight: 700; }
.par-note, .par-note2, .par-aides { flex-wrap: wrap; }
.par-zn .par-tok.manque { border-color: transparent; text-decoration: underline dashed 2px var(--ok); text-underline-offset: 5px; }
.par-zn .par-tok.ok, .par-za .par-tok.ok, .par-zp .par-tok.ok, .par-cur .par-tok.ok { border-color: transparent; box-shadow: inset 0 -3px 0 var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.par-rep ul { list-style: none; padding: 0; } .par-rep li { margin: .2rem 0; }
.par-asso .puce small { color: var(--muted); font-size: .72rem; margin-left: .2rem; }
.par-asso .puce.on small { color: inherit; }
.par-lat { text-align: left; }
.par-zcas.cas .par-tok.k-nom { color: var(--k-nom); } .par-zcas.cas .par-tok.k-acc { color: var(--k-acc); } .par-zcas.cas .par-tok.k-gen { color: var(--k-gen); }
.par-zcas.cas .par-tok.k-dat { color: var(--k-dat); } .par-zcas.cas .par-tok.k-abl { color: var(--k-abl); } .par-zcas.cas .par-tok.k-voc { color: var(--k-voc); }
.par-zcas.cas .par-tok.k-verbe { color: var(--k-verbe); text-decoration: underline 2px; text-underline-offset: 4px; font-weight: 600; }
.par-tok.par-gfin::after { content: "|"; color: var(--ligne); margin-left: .35rem; font-weight: 400; }
.par-finetape { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 .4rem; }
.par-finetape .btn { flex: 1 1 auto; }
.par-choix { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0; } .par-choix .btn { flex: 1 1 8rem; }
.par-suite-disc { text-align: right; margin: .6rem 0 0; font-size: .92rem; }
.par-para { font-size: .93rem; margin: .3rem 0; }
.par-arevoir { display: inline-flex; gap: .35rem; align-items: center; font-size: .85rem; color: var(--muted); margin-top: .2rem; }
.par-gtxt { min-height: 3.2rem; }
.par-trlit { border-left: 3px solid var(--ligne); padding-left: .75rem; }
.par-modes .puce { flex: 1 1 auto; }
.par-gcor { border-left: 3px solid var(--action); padding: .2rem 0 .2rem .7rem; margin: .4rem 0; }
.par-glab { display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.par-gcor .par-gtrad { margin: .1rem 0 .3rem; }
.par-gcours { margin: .1rem 0 .2rem; color: var(--muted); }
/* parcours v2 : notes, fiche complète, oral blanc */
.par-note { border: 1px solid var(--ligne); border-radius: 12px; padding: .5rem .8rem; margin: .5rem 0; background: var(--carte); }
.par-note.ess { border-color: color-mix(in srgb, var(--action) 55%, var(--ligne)); }
.par-nt { font-weight: 700; margin: .1rem 0 .25rem; }
.par-ncite { font-family: var(--serif); margin: .1rem 0 .3rem; }
.par-nl { margin: .2rem 0 .1rem; padding-left: 1rem; font-size: .93rem; }
.par-nl li { margin: .25rem 0; }
.par-nlab { display: inline-block; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-right: .3rem; font-weight: 700; }
.par-nl li.par-f .par-nlab { color: var(--ok); }
.par-fiche h4 { margin: 1.1rem 0 .35rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--action); }
.par-fiche p { margin: .35rem 0; }
.par-fph { margin: .35rem 0 .6rem; }
.par-flat { font-family: var(--serif); font-size: 1.02rem; margin: 0; }
.par-fmam { color: var(--muted); font-size: .9rem; margin: .1rem 0 0 0; }
.par-fprojet { background: color-mix(in srgb, var(--encre) 5%, var(--carte)); border-radius: 10px; padding: .5rem .7rem; }
.par-fmv { margin: .6rem 0 1rem; }
.par-fmvt { font-weight: 700; margin: .5rem 0 .2rem; }
.par-fref { font-size: .7rem; color: var(--muted); margin: .6rem 0 0; text-transform: uppercase; letter-spacing: .04em; }
.par-fbilan { background: color-mix(in srgb, var(--ok) 9%, var(--carte)); border-radius: 10px; padding: .5rem .7rem; }
.par-opts { display: grid; gap: .45rem; margin: .4rem 0; }
.par-opts .opt-btn { text-align: left; font: inherit; padding: .6rem .8rem; border-radius: 10px; border: 2px solid var(--ligne); background: var(--carte); color: var(--encre); cursor: pointer; }
.par-opts .opt-btn.juste { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--carte)); }
.par-opts .opt-btn.faux { border-color: var(--err); opacity: .7; }
.par-decs, .par-vue { margin: .5rem 0; flex-wrap: wrap; }
.par-outils { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.par-flottant { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 50; display: flex; align-items: center; gap: .6rem; background: var(--encre); color: var(--fond); border-radius: 999px; padding: .45rem .55rem .45rem 1rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); font-family: var(--sans); }
.par-fl-t { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.15rem; }
.par-fl-p { font-size: .8rem; opacity: .8; min-width: 4.5rem; }
.par-fl-b, .par-fl-x { font: inherit; font-size: .85rem; border: 0; border-radius: 999px; padding: .35rem .8rem; cursor: pointer; background: var(--fond); color: var(--encre); }
.par-fl-x { background: transparent; color: var(--fond); padding: .35rem .5rem; }
.par-chrono2 { position: static; }
/* traduction à donner à l'oral (gras bleu) et littéral (romain gris) */
.par-tf { color: var(--action); font-weight: 700; }
.par-tl { color: var(--muted); font-weight: 400; font-style: normal; }
.par-phrase-tf { margin: .2rem 0 .3rem; line-height: 1.55; }
.par-lit .par-tf { font-weight: 600; }
.par-fmam .par-tf { font-weight: 600; }
.par-ncite { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; margin: .1rem 0 .35rem; }
p.par-nlab { display: block; margin: .45rem 0 .1rem; }
.par-ne { margin: .1rem 0 .2rem; font-size: .93rem; }
.par-ne.par-f, p.par-nlab.par-f { color: var(--ok); }
.par-conseil { font-size: .82rem; color: var(--muted); line-height: 1.45; margin: .3rem 0 .6rem; }
.par-conseil b { font-weight: 600; }
/* parcours v4 : renvois, observations cliquables, l'auteur et l'œuvre */
.lien-renvoi { font: inherit; background: none; border: 0; padding: 0; color: var(--action); text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.par-obs { cursor: pointer; border-radius: 6px; padding: .1rem .3rem; margin-left: -.3rem; }
.par-obs:hover, .par-obs:focus-visible { background: color-mix(in srgb, var(--action) 7%, transparent); outline: none; }
.par-obs.on { background: color-mix(in srgb, #E2A33B 18%, transparent); }
.par-mot.par-surl { background: color-mix(in srgb, #E2A33B 45%, transparent); border-radius: 4px; box-shadow: 0 0 0 2px color-mix(in srgb, #E2A33B 45%, transparent); }
.par-auteur { border-left: 3px solid var(--ligne); padding-left: .75rem; }
.par-ah { font-weight: 700; margin: .7rem 0 .1rem; }
.par-renvoi p { margin: .45rem 0; }
.par-renvoi .par-renvoi-on { background: color-mix(in srgb, #E2A33B 22%, transparent); border-radius: 8px; padding: .3rem .5rem; }
.par-tirage { margin-top: 1.2rem; border-top: 1px dashed var(--ligne); padding-top: .4rem; }
.par-suite { display: block; margin: .25rem 0 .1rem .2rem; color: var(--encre); }
/* Parcours : poésie, un vers par ligne */
.par-lat .par-v { display: block; padding-left: 2.1em; text-indent: -2.1em; }
.par-lat .par-v .v-n { display: inline-block; width: 1.7em; margin-right: .4em; text-indent: 0; text-align: right; font-size: .72em; color: var(--muted); font-variant-numeric: tabular-nums; user-select: none; }
.par-lat .par-v:not(:has(.v-n)) { padding-left: 2.1em; text-indent: 0; }

/* ---------- Gaffiot français → latin (m_dicofr.js) ---------- */
.dfr-f { display: flex; gap: .4rem; margin: .3rem 0 .5rem; }
.dfr-q { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: .5rem .7rem; border: 1px solid var(--ligne); border-radius: 10px; background: var(--carte); color: var(--encre); }
.dfr-l { list-style: none; padding: 0; margin: .3rem 0; display: grid; gap: .35rem; }
.dfr-v { width: 100%; text-align: left; font: inherit; color: var(--encre); background: var(--carte); border: 1px solid var(--ligne); border-radius: 10px; padding: .5rem .7rem; cursor: pointer; display: flex; flex-wrap: wrap; gap: .1rem .45rem; align-items: baseline; }
.dfr-v b { font-size: 1.05rem; color: var(--terre); }
.dfr-e { color: var(--muted); font-size: .88rem; flex: 1 1 12rem; }
.dfr-b { font-size: .7rem; padding: .05rem .45rem; border-radius: 99px; background: var(--ligne); color: var(--muted); }
.dfr-c.p2 .dfr-b { background: color-mix(in srgb, var(--ok) 22%, transparent); color: var(--encre); }
.dfr-c.p0 .dfr-v { opacity: .8; }
.dfr-art { margin: .35rem 0 .2rem; }
.dfr-art .gaffiot mark { background: color-mix(in srgb, var(--ocre, #C47A2C) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 .1em; }
.dfr-act { margin-top: .4rem; }
.dfr-verdict { margin-top: .35rem; font-size: .9rem; } .dfr-verdict.ok { color: var(--ok); } .dfr-verdict.ko { color: var(--muted); }
.dfr-modal .gaffiot { max-height: 40vh; }

/* ---------- Thème grammatical (m_theme.js) ---------- */
.th-sec summary { font-weight: 600; }
.th-texte { background: var(--fond); border-radius: 10px; padding: .6rem .8rem; margin: .4rem 0 .6rem; line-height: 1.55; }
.th-nav { display: flex; flex-wrap: wrap; gap: .3rem; margin: .3rem 0 .7rem; }
.th-pn { font: inherit; font-size: .8rem; min-width: 2.6rem; min-height: 34px; padding: .2rem .5rem; border-radius: 8px; border: 1px solid var(--ligne); background: var(--carte); color: var(--encre); cursor: pointer; }
.th-pn.on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.th-pn.ok { background: color-mix(in srgb, var(--ok) 16%, var(--carte)); } .th-pn.ko { background: color-mix(in srgb, var(--err) 14%, var(--carte)); }
.th-fr { font-size: 1.12rem; line-height: 1.9; margin: .2rem 0 .5rem; }
.th-fr .p-n { font-size: .75rem; color: var(--muted); margin-right: .3rem; }
.th-tok { font: inherit; background: none; color: var(--encre); }
.at-tok.ko { border-color: var(--err); background: color-mix(in srgb, var(--err) 12%, transparent); }
.th-temps { display: flex; flex-wrap: wrap; gap: .25rem .9rem; list-style: none; padding: 0; margin: .2rem 0 .6rem; font-size: .8rem; color: var(--muted); counter-reset: t; }
.th-temps li { counter-increment: t; } .th-temps li::before { content: counter(t) ". "; font-weight: 700; } .th-temps li.fait { color: var(--ok); } .th-temps li.fait::before { content: "✓ "; }
.th-t { border-top: 1px solid var(--ligne); padding-top: .6rem; margin-top: .6rem; }
.th-cons { font-size: .92rem; margin: .2rem 0 .5rem; }
.th-vmsg { font-size: .88rem; } .th-vmsg.ok { color: var(--ok); } .th-vmsg.ko { color: var(--err); }
.th-a-suite, .th-m-suite { margin-top: .6rem; }
.th-mots { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.th-m-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.th-m-etat { font-size: .9rem; } .th-m-etat b { color: var(--terre); }
.th-m-zone { margin: .4rem 0 .2rem .4rem; padding-left: .6rem; border-left: 3px solid var(--ligne); }
.th-lat, .th-suivi { width: 100%; box-sizing: border-box; font: inherit; font-size: 1.05rem; padding: .55rem .7rem; border: 1px solid var(--ligne); border-radius: 10px; background: var(--carte); color: var(--encre); margin: .2rem 0 .5rem; }
.th-retour { margin-top: .5rem; }
.th-score { margin: .2rem 0; }
.th-cles, .th-pieges { list-style: none; padding: 0; margin: .3rem 0; display: grid; gap: .25rem; font-size: .92rem; }
.th-cles li.ok { color: var(--ok); } .th-cles li.ko { color: var(--encre); }
.th-pieges li { color: var(--err); }
.th-sol { color: var(--terre); }
.th-corr { background: var(--fond); border-radius: 10px; padding: .6rem .8rem; }
.th-c-lat { font-size: 1.1rem; margin: 0 0 .4rem; }
.th-var, .th-moi { font-size: .9rem; margin: .3rem 0; }
.th-com p { font-size: .92rem; margin: .35rem 0; }
.th-ev { margin-top: .3rem; }
.th-bas { display: flex; justify-content: space-between; gap: .5rem; margin: .8rem 0 .2rem; }
.th-carnet { list-style: none; padding: 0; display: grid; gap: .2rem; } .th-carnet b { color: var(--terre); }
.th-conseils { list-style: none; padding: 0; margin: .3rem 0; display: grid; gap: .25rem; font-size: .92rem; color: var(--muted); }
.th-mots li.fait .th-m-b { min-height: 30px; padding: .15rem .6rem; font-size: .85rem; background: transparent; }
.th-mots li.fait .th-m-tete { gap: .35rem; } .th-m-constr { display: block; flex-basis: 100%; margin-left: .2rem; }

/* Thème : une seule étape visible, frise cliquable, hiérarchie des boutons */
.th-temps { gap: .3rem; counter-reset: t; }
.th-temps li::before { content: none; }
.th-temps button { font: inherit; font-size: .8rem; border: 1px solid var(--ligne); background: transparent; color: var(--muted); border-radius: 99px; padding: .25rem .6rem; min-height: 32px; cursor: pointer; counter-increment: t; }
.th-temps button::before { content: counter(t) ". "; font-weight: 700; }
.th-temps button.fait { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.th-temps button.fait::before { content: "✓ "; }
.th-temps button.on { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.th-temps button:disabled { opacity: .45; cursor: default; }
.th-go { margin-top: .6rem; }
.th-qz .quiz-actions .lien-btn { font-size: .85rem; }
.th-finserie { margin-top: 1rem; padding: .8rem .9rem; border-radius: 12px; background: color-mix(in srgb, var(--ok) 10%, var(--carte)); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.th-finserie p { margin: 0 0 .3rem; }
.b-ev.ev-ok { border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.b-ev.ev-ko { border-color: color-mix(in srgb, var(--err) 40%, transparent); }
.th-next { margin-top: .5rem; }

/* ---------- Bertrand, Nouvelle grammaire grecque (m_bertrand.js) ---------- */
.bt-aller { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .5rem; }
.bt-aller label { display: flex; align-items: center; gap: .3rem; font-size: .95rem; }
.bt-aller input { width: 5.5rem; font: inherit; padding: .4rem .5rem; border: 1px solid var(--ligne); border-radius: 8px; background: var(--carte); color: var(--encre); }
.bt-barre { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; }
.bt-barre .btn { min-width: 44px; font-size: 1.2rem; padding: .2rem .7rem; }
.bt-ou { text-align: center; font-size: .9rem; line-height: 1.3; }
.bt-img { background: #fff; border: 1px solid var(--ligne); border-radius: 8px; overflow: auto; text-align: center; }
.bt-img img { display: block; width: 100%; max-width: 900px; margin: 0 auto; height: auto; }
:root[data-theme="dark"] .bt-img img { filter: invert(.88) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bt-img img { filter: invert(.88) hue-rotate(180deg); } }
.bt-ocr { margin-top: .5rem; font-size: .85rem; } .bt-ocr pre { white-space: pre-wrap; font-family: inherit; font-size: .85rem; max-height: 40vh; overflow: auto; }
.modal-box.bt-large { max-width: 820px; max-height: 94vh; }
.bt-toc { list-style: none; padding: 0; margin: .5rem 0; }
.bt-toc a { display: flex; justify-content: space-between; gap: .6rem; padding: .35rem .2rem; border-bottom: 1px solid var(--ligne); color: var(--encre); text-decoration: none; }
.bt-toc li.n0 a { font-weight: 600; margin-top: .3rem; } .bt-toc li.n1 a { padding-left: 1rem; font-size: .95rem; } .bt-toc li.n2 a { padding-left: 2rem; font-size: .9rem; }
.bt-index { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .35rem; font-size: .92rem; line-height: 1.5; }
.bt-index a.bt-par, a.lien-bt { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.bt-filtre { width: 100%; box-sizing: border-box; margin-top: .3rem; }
.bt-hits { list-style: none; padding: 0; display: grid; gap: .4rem; } .bt-hits a { color: var(--encre); text-decoration: none; display: block; padding: .3rem 0; border-bottom: 1px solid var(--ligne); }
.bt-img img { cursor: zoom-in; } .bt-img.zoom img { width: 175%; max-width: none; cursor: zoom-out; }
.bt-astuce { margin: .3rem 0 0; text-align: center; }
/* Bertrand : deux colonnes sur grand écran, sommaire dépliant, plein écran */
@media (min-width: 900px) {
  main#app:has(.bt-grille) { max-width: 1400px; }
  .bt-grille { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 16px; align-items: start; }
  .bt-nav { position: sticky; top: 8px; max-height: calc(100vh - 16px); overflow: auto; }
  .bt-lect { position: sticky; top: 8px; }
  .bt-lect .bt-img { max-height: calc(100vh - 190px); }
}
.bt-vide { text-align: center; padding: 2rem 1rem; }
@media (max-width: 899px) { .bt-vide { display: none; } }
.bt-outils { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin: 0 0 .4rem; font-size: .9rem; }
.bt-signom { display: flex; gap: .4rem; margin-bottom: .4rem; } .bt-signom input { flex: 1; min-width: 0; font: inherit; padding: .4rem .6rem; border: 1px solid var(--ligne); border-radius: 8px; background: var(--carte); color: var(--encre); }
.bt-arbre li.bt-tn { display: flex; align-items: stretch; }
.bt-arbre li.bt-tn a { flex: 1; min-width: 0; }
.bt-tog, .bt-tog0 { flex: none; width: 30px; border: 0; background: none; color: var(--muted); font-size: .9rem; cursor: pointer; padding: 0; }
.bt-arbre li.d1 { padding-left: .9rem; } .bt-arbre li.d2 { padding-left: 1.8rem; } .bt-arbre li.d3 { padding-left: 2.6rem; } .bt-arbre li.d4, .bt-arbre li.d5 { padding-left: 3.4rem; }
.bt-arbre li.d1 a, .bt-arbre li.d2 a, .bt-arbre li.d3 a, .bt-arbre li.d4 a, .bt-arbre li.d5 a { padding-left: 0; font-weight: 400; }
.bt-arbre li.d3 a, .bt-arbre li.d4 a, .bt-arbre li.d5 a { font-size: .87rem; }
.bt-arbre li.ici > a { background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 6px; }
.bt-sigs li { display: flex; align-items: center; } .bt-sigs li a { flex: 1; } .bt-sx { padding: 0 .6rem; font-size: 1.1rem; }
.bt-res h4, .bt-panneau h4 { margin: .8rem 0 .2rem; }
.bt-plein { position: fixed; inset: 0; z-index: 80; background: #1b1b1b; display: flex; flex-direction: column; }
.bt-pl-barre { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: calc(6px + env(safe-area-inset-top)) 8px 6px; color: #eee; }
.bt-pl-b { min-width: 44px; min-height: 40px; font-size: 1.3rem; border: 1px solid #555; background: #2a2a2a; color: #eee; border-radius: 10px; margin-left: 4px; cursor: pointer; }
.bt-pl-ou { font-size: .95rem; }
.bt-pl-zone { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; background: #fff; }
.bt-pl-zone img { display: block; width: 100%; height: auto; margin: 0 auto; }
.lv-tit { margin: .2rem 0 .3rem; font-size: 1.15rem; }
.lv-pages { display: grid; gap: .8rem; margin: .4rem 0; }
.lv-p { margin: 0; } .lv-p figcaption { text-align: center; margin-top: .2rem; } .lv-p img { cursor: zoom-in; }
@media (min-width: 900px) {
  .bt-grille { grid-template-columns: 1fr minmax(300px, 380px); }
  .bt-grille .bt-lect { grid-column: 1; grid-row: 1; } .bt-grille .bt-nav { grid-column: 2; grid-row: 1; }
}
.volets li.avenir > span { display: flex; justify-content: space-between; gap: .5rem; padding: .7rem .2rem; opacity: .6; }
.bt-signom[hidden] { display: none; }
/* Fiche de vocabulaire à vérifier avant ajout */
.voc-form { display: grid; gap: .7rem; }
.voc-form h2 { margin: 0; }
.voc-form label { display: grid; gap: .25rem; font-weight: 600; font-size: .95rem; }
.voc-form input, .voc-form textarea { font: inherit; font-weight: 400; padding: .5rem .6rem; border: 1px solid var(--ligne); border-radius: 8px; background: var(--fond, #fff); color: inherit; width: 100%; box-sizing: border-box; }
.voc-form .vf-mot { font-family: var(--antique); font-size: 1.2rem; color: var(--terre); }
.voc-form p { margin: 0; }
.vocab-liste .voc-mod { all: unset; display: block; width: 100%; cursor: pointer; }
.vocab-liste .voc-mod:hover b { text-decoration: underline; }
.vocab-liste .voc-mod:focus-visible { outline: 2px solid var(--terre); outline-offset: 2px; }
/* Bailly */
.bailly .b-ved { font-size: 1.1rem; }
.bailly .bq { color: var(--muted); }
.bailly .bm { color: var(--olive, #5E6B3A); }
.bailly .bx { color: var(--muted); }
.bailly .b-etym { margin-top: .5rem; padding-top: .35rem; border-top: 1px dashed var(--ligne); font-size: .88rem; color: var(--muted); }
.bailly .b-etym b { color: var(--muted); }
.bailly mark { background: color-mix(in srgb, var(--ocre, #C47A2C) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 .1em; }
/* Emplois classiques (thème) */
.seg-cl { background: color-mix(in srgb, var(--ok) 20%, transparent); border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.seg-tete { background: color-mix(in srgb, var(--ok) 9%, transparent); border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.seg-ncl { opacity: .5; }
.cl-legende { margin: .2rem 0 .35rem; }
.cl-legende .seg-cl, .cl-legende .seg-ncl { padding: 0 .25em; }
.dfr-b.dfr-cl { background: color-mix(in srgb, var(--ok) 28%, transparent); color: var(--encre); font-weight: 600; }
.dfr-c:not(.cl) .dfr-v { border-style: dashed; }
/* Mot cherché dans les dictionnaires : surligneur jaune clair, lisible sur le vert des emplois classiques */
.dfr-art .gaffiot mark, .bailly mark { background: #FFE47A; color: #2A1D16; border-radius: 3px; padding: 0 .1em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dfr-art .gaffiot mark, :root:not([data-theme="light"]) .bailly mark { background: #6E5A12; color: #F0E8E2; } }
:root[data-theme="dark"] .dfr-art .gaffiot mark, :root[data-theme="dark"] .bailly mark { background: #6E5A12; color: #F0E8E2; }
/* Emplois classiques : vert plus clair, plus proche du fond crème */
.seg-cl { background: color-mix(in srgb, var(--ok) 11%, transparent); }
.seg-tete { background: color-mix(in srgb, var(--ok) 5%, transparent); }
.dfr-b.dfr-cl { background: color-mix(in srgb, var(--ok) 16%, transparent); }
/* Emplois classiques : vert sauge clair, net sur le fond crème */
:root { --cl-fort: #DCE9CC; --cl-doux: #EDF3E3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --cl-fort: #2E3F2A; --cl-doux: #252F22; } }
:root[data-theme="dark"] { --cl-fort: #2E3F2A; --cl-doux: #252F22; }
.seg-cl { background: var(--cl-fort); }
.seg-tete { background: var(--cl-doux); }
.dfr-b.dfr-cl { background: var(--cl-fort); }
/* Synonymes dans les dictionnaires de thème */
.dfr-syn { margin: .6rem 0 .2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; }
.dfr-syn .puces { margin: 0; }
.dfr-h { font-size: 1rem; margin: .9rem 0 .2rem; }
.dfr-b.dfr-via { background: transparent; border: 1px solid var(--ligne); }
.dfr-c.via .dfr-v { background: var(--fond); }
.dfr-syn { display: block; }
.dfr-syn .puces { flex-wrap: wrap; overflow: visible; margin-top: .3rem; }
/* Théâtre : scènes, répliques, didascalies */
.dr-lieu { font-style: italic; color: var(--muted); margin: .2rem 0 .8rem; }
.dr-texte { font-family: var(--antique); font-size: 1.05rem; line-height: 1.6; }
.dr-rep { margin: 0 0 .7rem; }
.dr-p { margin: 0; font-family: var(--sans, inherit); font-size: .78rem; letter-spacing: .06em; font-weight: 600; color: var(--terre); text-transform: none; }
.dr-t { margin: .1rem 0 .2rem; }
.dr-d { margin: .4rem 0 .7rem; padding-left: 1.2rem; font-style: italic; color: var(--muted); }
.dr-notes { margin-top: 1rem; font-size: .88rem; }
.dr-perso { margin-top: .6rem; } .dr-perso summary { cursor: pointer; font-weight: 600; } .dr-perso ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .92rem; }
blockquote.citation { margin: .6rem 0 .8rem; padding: .4rem .9rem; border-left: 3px solid var(--ligne); font-family: var(--antique); font-size: .98rem; color: var(--encre); }
.oeuvre.fr { border-top-color: var(--terre); }
.cf-p4 { --per: #8A6D1F; } .cf-p5 { --per: #5B4A7A; } .cf-p6 { --per: #3F6E6A; } .cf-p7 { --per: #7A3F4F; }
.cf-per.cf-p4, .cf-per.cf-p5, .cf-per.cf-p6, .cf-per.cf-p7 { background: var(--per); }
/* Prompt pour Claude */
.prompt-claude textarea{width:100%;font:13px/1.45 ui-monospace,Menlo,monospace;padding:10px;border:1px solid var(--line,#ddd);border-radius:8px;background:var(--bg2,#fafafa);color:inherit;box-sizing:border-box}
.btn.b-prompt{margin-top:8px}
.btn.b-prompt::before{content:"✦ ";opacity:.7}

/* Parcours des textes antiques : enregistrement de l'oral blanc, chronomètre de l'entretien, prompts */
.par-rec { margin: 1rem 0; padding: .75rem 1rem; border: 1px solid var(--line, #ddd); border-radius: 10px; }
.par-rec p { margin: .3rem 0; }
.par-rec-b { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .4rem; }
.par-rec-t { font-size: .9em; }
.b-rec.par-rec-on { background: #b3261e; border-color: #b3261e; color: #fff; }
.par-rec-res audio { width: 100%; max-width: 100%; margin-top: .5rem; }
.par-entchrono { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .5rem 0 1rem; }
.par-ent-t { font-size: 1.8rem; font-variant-numeric: tabular-nums; font-weight: 600; min-width: 4.5ch; }
.par-ent-t.fini { color: #b3261e; }
.par-ent-msg { font-weight: 600; color: #b3261e; }
.par-prompt { margin: .6rem 0; }
.par-prompt:empty { display: none; }
/* Révision des textes : sélection multiple (œuvres, morceaux) ; liens dictionnaire dans la glose */
.rev-sel .rev-tete { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.rev-sel .rev-tete h2 { font-size: .95rem; margin: 0 0 .35rem; }
.rev-sel .rev-raccourcis { font-size: .85rem; margin: 0 0 .4rem; }
.rev-sel .rev-raccourcis .btn.link { padding: 0; min-height: 0; font-size: inherit; color: var(--action); }
.rev-sel .puces { flex-wrap: wrap; overflow: visible; }
.rev-sel .puce { white-space: normal; text-align: left; min-height: 36px; }
.rev-sel .puce.on::before { content: "✓ "; }
.rev-sel .puce:disabled { opacity: .45; cursor: default; }
.rev-sel .puce small { opacity: .8; }
.rev-morceaux { display: grid; gap: .4rem; margin: .2rem 0 .6rem; }
.rev-m { border: 1px solid var(--ligne); border-radius: 10px; padding: .45rem .7rem; }
.rev-m > summary { cursor: pointer; display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-weight: 600; }
.rev-m > summary small { font-weight: 400; }
.rev-m[open] > summary { margin-bottom: .35rem; }
.rev-m .puces { margin-bottom: .2rem; }
.rev-total { margin: .2rem 0 .6rem; font-size: .9rem; }
.glose .lien-dico { font: inherit; background: none; border: 0; padding: 0; color: var(--action); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
fieldset.q .q-src { display: block; margin-top: .35rem; }
/* P2 — Propositions (atelier de version) : couleurs contrastées et distinctes par type, clair et sombre */
:root {
  --pr-principale: #8A6400; --pr-principale-bg: #FBE38A; --pr-relative: #1F56B8; --pr-relative-bg: #C9DCFF;
  --pr-completive: #B3243A; --pr-completive-bg: #FFC9CF; --pr-circonstancielle: #1D7A38; --pr-circonstancielle-bg: #C4ECCB;
  --pr-infinitive: #6438B8; --pr-infinitive-bg: #E1D0FF; --pr-interrogative: #B04F00; --pr-interrogative-bg: #FFD7B0;
  --pr-participiale: #0B7480; --pr-participiale-bg: #BDEFF0; --pr-sur: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pr-principale: #EBC84A; --pr-principale-bg: #5C4A0E; --pr-relative: #8EB6FF; --pr-relative-bg: #1F3B6E;
    --pr-completive: #FF8C9C; --pr-completive-bg: #651F2C; --pr-circonstancielle: #74D58F; --pr-circonstancielle-bg: #1D4D2C;
    --pr-infinitive: #C1A2FF; --pr-infinitive-bg: #432C70; --pr-interrogative: #FFAE66; --pr-interrogative-bg: #613711;
    --pr-participiale: #62D3DB; --pr-participiale-bg: #124D52; --pr-sur: #15100D;
  }
}
:root[data-theme="dark"] {
  --pr-principale: #EBC84A; --pr-principale-bg: #5C4A0E; --pr-relative: #8EB6FF; --pr-relative-bg: #1F3B6E;
  --pr-completive: #FF8C9C; --pr-completive-bg: #651F2C; --pr-circonstancielle: #74D58F; --pr-circonstancielle-bg: #1D4D2C;
  --pr-infinitive: #C1A2FF; --pr-infinitive-bg: #432C70; --pr-interrogative: #FFAE66; --pr-interrogative-bg: #613711;
  --pr-participiale: #62D3DB; --pr-participiale-bg: #124D52; --pr-sur: #15100D;
}
:root .ty.ty-principale { --pr: var(--pr-principale); --pr-bg: var(--pr-principale-bg); }
:root .ty.ty-relative { --pr: var(--pr-relative); --pr-bg: var(--pr-relative-bg); }
:root .ty.ty-completive { --pr: var(--pr-completive); --pr-bg: var(--pr-completive-bg); }
:root .ty.ty-circonstancielle { --pr: var(--pr-circonstancielle); --pr-bg: var(--pr-circonstancielle-bg); }
:root .ty.ty-infinitive { --pr: var(--pr-infinitive); --pr-bg: var(--pr-infinitive-bg); }
:root .ty.ty-interrogative { --pr: var(--pr-interrogative); --pr-bg: var(--pr-interrogative-bg); }
:root .ty.ty-participiale { --pr: var(--pr-participiale); --pr-bg: var(--pr-participiale-bg); }
:root .ty[class*="ty-"] { background: var(--pr-bg); color: var(--encre); }
:root .at-tok.ty[class*="ty-"] { box-shadow: inset 0 -3px 0 var(--pr); }
:root .at-tok.ty.fixe[class*="ty-"] { box-shadow: inset 0 -3px 0 var(--pr), inset 0 3px 0 color-mix(in srgb, var(--pr) 35%, transparent); }
:root .ty-legende .ty, :root .ty-pinceaux > .ty { border: 2px solid var(--pr); font-weight: 600; }
:root .ty-btn.ty-relative { background: var(--pr-relative); } :root .ty-btn.ty-completive { background: var(--pr-completive); }
:root .ty-btn.ty-circonstancielle { background: var(--pr-circonstancielle); } :root .ty-btn.ty-infinitive { background: var(--pr-infinitive); }
:root .ty-btn.ty-interrogative { background: var(--pr-interrogative); } :root .ty-btn.ty-participiale { background: var(--pr-participiale); }
:root .ty-btn[class*="ty-"]:not(.gomme) { color: var(--pr-sur); --pr-bg: var(--pr-sur); box-shadow: none; }
:root .ty-btn.on[class*="ty-"] { box-shadow: 0 0 0 2px var(--carte), 0 0 0 4px var(--encre); }
.ty-legende-titre { font-size: .8rem; font-weight: 600; color: var(--muted); align-self: center; margin-right: .2rem; }
/* P2 — Mots de liaison : mot touché qui ne relie pas deux propositions */
.at-tok.hors { border: 2px dotted var(--muted); color: var(--muted); }
.at-hors { margin: .4rem 0; padding: .5rem .75rem; border-left: 3px solid var(--muted); background: var(--carte2); border-radius: 8px; font-size: .92rem; }
.at-hors .at-liste { margin: .3rem 0 0; }
/* P2 — Commentaire : chronomètre en bandeau fixe, grille de relecture avant la remise, prompt pour Claude */
.com-chrono-bandeau { position: fixed; left: 0; right: 0; top: 0; z-index: 19; display: flex; align-items: center; justify-content: center; gap: .8rem; flex-wrap: wrap;
  padding: .45rem 16px; background: var(--carte); color: var(--encre); border-bottom: 2px solid var(--action); box-shadow: 0 2px 10px #0002; font-size: .95rem; }
.com-chrono-bandeau b { font-variant-numeric: tabular-nums; }
.com-chrono-bandeau .btn { min-height: 32px; padding: .2rem .7rem; font-size: .85rem; }
.com-chrono-bandeau.urgent { border-bottom-color: var(--err); }
.com-chrono-bandeau.urgent b { color: var(--err); }
.com-etape:has(.com-chrono-bandeau) { padding-top: 2.6rem; }
.com-relire { margin: 1rem 0 .4rem; padding: .7rem .9rem; border: 1px solid var(--ligne); border-left: 4px solid var(--action); border-radius: 10px; background: var(--carte2); }
.com-relire > b { display: block; margin-bottom: .2rem; }
.com-rendre { align-items: center; flex-wrap: wrap; gap: .6rem; }
.com-apercu { margin-top: .8rem; } .com-apercu summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.com-prompt { margin: .8rem 0 .2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.com-prompt .btn.b-prompt { margin-top: 0; }
/* P2 — Versions : article du dictionnaire dans la glose */
.v-dico { margin-top: .3rem; } .v-dico .gaffiot + .gaffiot { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--ligne); }
.v-dico-autres { margin-top: .6rem; } .v-dico-autres summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.com-grid:has(.com-chrono-bandeau) .com-aside { top: 180px; max-height: calc(100vh - 200px); }
:root .at-tok.ty.m-l[class*="ty-"] { color: var(--terre); }
@media (max-width: 480px) { .com-chrono-bandeau { flex-wrap: nowrap; gap: .5rem; font-size: .9rem; padding: .35rem 12px; } .com-chrono-lab { display: none; } }
/* Bandeau supérieur escamotable */
header#top.replie { position: static; height: 0; min-height: 0; overflow: hidden; padding: 0; border: 0; box-shadow: none; }
.deplier { position: fixed; top: calc(6px + env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); z-index: 30; width: 34px; height: 34px; border-radius: 99px; border: 1px solid var(--ligne); background: color-mix(in srgb, var(--carte) 90%, transparent); color: var(--encre); font-size: 1rem; cursor: pointer; box-shadow: 0 2px 8px #0002; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: .85; }
.deplier:hover { opacity: 1; }
.deplier[hidden] { display: none; }
/* Retours et signalements */
.retour-form textarea { width: 100%; box-sizing: border-box; min-height: 130px; font: inherit; padding: 10px; border: 1px solid var(--ligne); border-radius: 10px; background: var(--carte); color: var(--encre); }
.retour-form select { font: inherit; padding: .35rem .5rem; border-radius: 8px; border: 1px solid var(--ligne); background: var(--carte); color: var(--encre); }
.retour-liste { list-style: none; padding: 0; margin: .5rem 0 0; }
.retour-liste li { border-top: 1px solid var(--ligne); padding: .55rem 0; font-size: .92rem; }
.retour-liste li .muted { font-size: .8rem; }
.retour-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .6rem; }
.rf-suppr { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .85rem; padding: 0 .3rem; }
/* Thème : mots retenus près de la zone d'écriture */
.th-retenus { margin: .4rem 0 .6rem; padding: .55rem .8rem; border: 1px solid var(--ligne); border-left: 4px solid var(--cl-fort, #DCE9CC); border-radius: 10px; background: var(--carte2, var(--carte)); font-size: .92rem; }
.th-retenus ul { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
@media (min-width: 900px) { .th-zone-ecrire-flex { display: grid; grid-template-columns: 1fr 260px; gap: 1rem; } }
.dfr-constr { display: block; font-size: .8rem; color: var(--muted); font-style: italic; margin-top: .1rem; }
.dfr-constr::before { content: "constr. : "; font-style: normal; opacity: .8; }
.dfr-v .dfr-constr { flex: 1 1 100%; order: 5; text-align: left; }
/* Rubrique Cours : titres de séances uniformes (étiquette, titre, référence) */
.morceaux .m-lab, .morceaux .m-tt, .morceaux .m-ref { display: block; }
.morceaux .m-lab { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.morceaux .m-tt { line-height: 1.3; }
.morceaux .m-ref { font-size: .8rem; color: var(--muted); line-height: 1.3; }
.volets .v-note { display: block; font-size: .78rem; color: var(--muted); margin-top: .1rem; }
/* Sanskrit : mots en dévanagari, translittération au toucher */
.skt { font-family: "Noto Sans Devanagari", "Kohinoor Devanagari", "Devanagari Sangam MN", "Mangal", "Nirmala UI", sans-serif; font-style: normal; font-size: 1.08em; cursor: pointer; border-bottom: 1px dotted color-mix(in srgb, var(--muted) 70%, transparent); padding: 0 .05em; border-radius: 3px; }
.skt:hover, .skt:focus-visible { background: color-mix(in srgb, var(--action) 12%, transparent); outline: none; }
.skt.tr { font-family: inherit; font-style: italic; font-size: 1em; }
.skt-bascule { margin: -.2rem 0 .8rem; }
/* Tableaux de sanskrit : même graisse et même corps que le reste du tableau */
table.para .skt { font-size: 1.05em; font-weight: 500; }
table.para tbody th:has(.skt) { font-weight: 500; }
table.para .reste { display: block; font-size: .85em; color: var(--muted); font-weight: 400; }
.skt { border-bottom-color: color-mix(in srgb, var(--muted) 35%, transparent); }
/* Chronologie : année, trait et rond bien séparés */
ol.chrono::before { left: calc(5rem - 1px); }
ol.chrono li { grid-template-columns: 3.9rem minmax(0, 1fr); gap: 1.9rem; }
ol.chrono li::before { left: calc(5rem - 7px); }
ol.chrono li.cle::before { left: calc(5rem - 9px); }
.ch-an { padding-right: 0; }
/* Commentaire d'un texte de théâtre : nom du personnage en petites capitales */
.com-perso { font-variant: small-caps; letter-spacing: .03em; font-weight: 600; color: var(--muted); }
.com-scene .com-l { line-height: 1.5; }
.com-scene .notes-bas { margin-top: .8rem; }
.com-texte { position: relative; padding-left: 2rem; }
.com-texte p { margin: 0 0 .45rem; line-height: 1.55; }
.com-texte .com-did { font-style: italic; color: var(--muted); }
.com-ln { position: absolute; left: 0; width: 1.6rem; text-align: right; font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: .25em; }
