/* Révizor : feuille de style de l'app (T023).
   1re partie : reprise telle quelle du modèle validé modeles/fiche-cours-R108-CM1.html
   (tokens, thème sombre, composants de fiche). 2e partie : enveloppe de l'app. */

:root{
  --paper:#F5F6F2; --surface:#FFFFFF; --ink:#1A2340; --muted:#586179; --rule:#D8DCD1; --dot:#DDE1D6;
  --accent:#2C45BF; --hl:rgba(245,214,10,.58); --hl-solid:#F0D20B;
  --ok:#1B7248; --ok-bg:#E2F1E8; --ko:#AE2A20; --ko-bg:#FAE5E2; --code-bg:#ECEFF6; --rose:#B23A86;
  --lift:0 1px 0 rgba(26,35,64,.05),0 10px 28px -16px rgba(26,35,64,.28);
  --f-display:"Bricolage Grotesque","Arial Narrow",system-ui,sans-serif;
  --f-body:"Atkinson Hyperlegible",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:"Fragment Mono",ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --paper:#0E1322; --surface:#151C31; --ink:#E6E9F2; --muted:#9AA3B8; --rule:#29324C; --dot:#1B2339;
    --accent:#94A6FF; --hl:rgba(227,200,0,.34); --hl-solid:#E3C800;
    --ok:#5DCB8F; --ok-bg:rgba(93,203,143,.13); --ko:#FF8C82; --ko-bg:rgba(255,140,130,.13); --code-bg:#1C2440; --rose:#EE8FCB;
    --lift:0 1px 0 rgba(0,0,0,.3),0 12px 30px -16px rgba(0,0,0,.7);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --paper:#0E1322; --surface:#151C31; --ink:#E6E9F2; --muted:#9AA3B8; --rule:#29324C; --dot:#1B2339;
  --accent:#94A6FF; --hl:rgba(227,200,0,.34); --hl-solid:#E3C800;
  --ok:#5DCB8F; --ok-bg:rgba(93,203,143,.13); --ko:#FF8C82; --ko-bg:rgba(255,140,130,.13); --code-bg:#1C2440; --rose:#EE8FCB;
  --lift:0 1px 0 rgba(0,0,0,.3),0 12px 30px -16px rgba(0,0,0,.7);
  color-scheme:dark;
}

*{box-sizing:border-box}
body{
  margin:0;
  background-color:var(--paper);
  background-image:radial-gradient(var(--dot) 1.1px, transparent 1.3px);
  background-size:20px 20px;
  color:var(--ink); font-family:var(--f-body); font-size:17px; line-height:1.55;
  -webkit-text-size-adjust:100%;
  padding-bottom:env(safe-area-inset-bottom,0px);
}
.page{max-width:720px; margin:0 auto; padding:0 16px 64px}
h1,h2,h3{font-family:var(--f-display); text-wrap:balance; margin:0}
p{margin:0}
code,kbd{font-family:var(--f-mono); font-size:.88em}
mark{background:linear-gradient(transparent 52%, var(--hl) 52%); color:inherit; padding:0 .08em}
a{color:var(--accent)}
button{font:inherit; color:inherit}
:focus-visible{outline:2.5px solid var(--accent); outline-offset:2px; border-radius:4px}

/* barre */
.bar{position:sticky; top:0; z-index:10; padding-top:env(safe-area-inset-top,0px);
  background:color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border-bottom:1px solid var(--rule)}
.bar-in{max-width:720px; margin:0 auto; padding:8px 16px; display:flex; align-items:center; gap:12px}
.brand{font-family:var(--f-display); font-weight:800; font-size:1.15rem; letter-spacing:-.01em; font-variation-settings:"wdth" 80}
.brand span{background:linear-gradient(transparent 55%, var(--hl) 55%)}
.seg{margin-left:auto; display:inline-flex; background:var(--code-bg); border-radius:999px; padding:3px}
.seg button{border:0; background:transparent; padding:6px 14px; border-radius:999px; font-weight:700; font-size:.9rem; cursor:pointer; min-height:44px}
.seg button[aria-pressed="true"]{background:var(--ink); color:var(--paper)}
.count{font-family:var(--f-mono); font-size:.8rem; color:var(--muted); white-space:nowrap}
.count b{color:var(--ok); font-weight:400}

/* en-tête */
.hero{padding-block:26px 4px; display:grid; gap:12px}
.eyebrow{font-family:var(--f-mono); font-size:.78rem; color:var(--muted); text-transform:uppercase; letter-spacing:.08em}
.hero h1{font-size:clamp(2rem, 7.4vw, 3.2rem); line-height:1.02; font-weight:800; letter-spacing:-.025em; font-variation-settings:"wdth" 82, "opsz" 96}
.sub{font-size:1.1rem; color:var(--muted)}
.meta{background:var(--surface); border:1px solid var(--rule); border-radius:14px; box-shadow:var(--lift); padding:14px 16px; display:grid; grid-template-columns:auto 1fr; gap:4px 18px; align-items:center}
.jx{font-family:var(--f-display); font-weight:800; font-size:2.2rem; line-height:1; font-variation-settings:"wdth" 78; font-variant-numeric:tabular-nums}
.meta dl{margin:0; display:grid; gap:4px}
.meta dt{font-family:var(--f-mono); font-size:.7rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted)}
.meta dd{margin:0 0 4px}
@media (max-width:420px){ .meta{grid-template-columns:1fr} }

/* sections */
section{padding-block:32px 0}
.sh{display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 12px; border-bottom:2px solid var(--ink); padding-bottom:6px; margin-bottom:14px}
.sh h2{font-size:1.5rem; font-weight:750; letter-spacing:-.015em; font-variation-settings:"wdth" 88}
.src{font-family:var(--f-mono); font-size:.72rem; color:var(--muted); display:inline-block}
.lead{color:var(--muted); margin-bottom:12px; font-size:.95rem}

.essentiel{list-style:none; margin:0; padding:0; display:grid; gap:10px}
.essentiel li{padding-left:18px; position:relative}
.essentiel li::before{content:""; position:absolute; left:0; top:.62em; width:8px; height:8px; background:var(--hl-solid); border-radius:2px}

/* carte mentale */
.map{position:relative; padding-left:26px}
.map::before{content:""; position:absolute; left:9px; top:28px; bottom:20px; width:2px; background:var(--rule)}
.map-root{display:inline-block; margin-left:-26px; margin-bottom:10px; font-family:var(--f-display); font-weight:800; font-size:1.05rem; padding:6px 14px; border-radius:999px; background:var(--ink); color:var(--paper)}
.branch{position:relative; padding-block:6px}
.branch::before{content:""; position:absolute; left:-17px; top:19px; width:13px; height:2px; background:var(--rule)}
.branch::after{content:""; position:absolute; left:-21px; top:15px; width:10px; height:10px; border-radius:50%; background:var(--paper); border:2px solid var(--ink)}
.branch h3{font-size:1rem; font-weight:700; display:flex; gap:8px; align-items:baseline; flex-wrap:wrap}
.chips{display:flex; flex-wrap:wrap; gap:5px; margin-top:5px}
.chip{font-size:.84rem; padding:2px 9px; border-radius:999px; background:var(--surface); border:1px solid var(--rule)}

/* notions */
.notion{padding-block:12px; border-bottom:1px solid var(--rule); display:grid; gap:5px}
.notion:first-child{border-top:1px solid var(--rule)}
.n-head{display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px}
.n-head h3{font-size:1.08rem; font-weight:700}
.n-head .src{margin-left:auto}
.badge{font-family:var(--f-mono); font-size:.7rem; padding:2px 8px; border-radius:999px; display:none}
.notion[data-status="capte"] .badge.ok{display:inline-block; background:var(--ok-bg); color:var(--ok)}
.notion[data-status="pascapte"] .badge.ko{display:inline-block; background:var(--ko-bg); color:var(--ko)}
.def{transition:filter .2s}
.n-actions{display:none; flex-wrap:wrap; gap:8px; margin-top:4px}
.btn{border:1px solid var(--rule); background:var(--surface); padding:7px 14px; border-radius:10px; font-weight:700; font-size:.9rem; cursor:pointer; min-height:44px}
.btn:hover{border-color:var(--ink)}
.btn.ok[aria-pressed="true"]{background:var(--ok); border-color:var(--ok); color:var(--paper)}
.btn.ko[aria-pressed="true"]{background:var(--ko); border-color:var(--ko); color:var(--paper)}
.btn.primary{background:var(--ink); color:var(--paper); border-color:var(--ink)}
html[data-mode="reviser"] .n-actions{display:flex}
html[data-mode="reviser"] .notion:not(.revealed) .def{filter:blur(7px); user-select:none; -webkit-user-select:none}
html[data-mode="reviser"] .notion.revealed .reveal{display:none}

/* schémas */
.fig{margin:0 0 26px}
.fig h3{font-size:1.05rem; margin-bottom:10px; display:flex; gap:8px; align-items:baseline; flex-wrap:wrap}
.fig figcaption{font-size:.9rem; color:var(--muted); margin-top:8px}
.boot{list-style:none; margin:0; padding:0; position:relative}
.boot::before{content:""; position:absolute; left:15px; top:14px; bottom:14px; width:2px; background:var(--ink); opacity:.25}
.boot li{position:relative; display:grid; grid-template-columns:32px 1fr; gap:12px; padding-block:5px; align-items:center}
.boot .dot{width:32px; height:32px; border-radius:9px; display:grid; place-items:center; background:var(--surface); border:1.5px solid var(--ink); font-family:var(--f-mono); font-size:.78rem; position:relative; z-index:1}
.boot .t{font-family:var(--f-display); font-weight:700}
.boot .t small{font-family:var(--f-body); font-weight:400; font-size:.88rem; color:var(--muted); margin-left:6px}
.boot li.start .dot{background:var(--ink); color:var(--paper)}
.boot li.end .dot{background:var(--hl-solid); color:#1A2340; border-color:var(--hl-solid)}
.layers{border:1px solid var(--rule); border-radius:12px; overflow:hidden; background:var(--surface)}
.layer{padding:11px 14px; display:flex; flex-wrap:wrap; gap:4px 12px; align-items:baseline}
.layer b{font-family:var(--f-display); min-width:7.5em}
.layer span{color:var(--muted)}
.layer.hw{background:var(--code-bg)}
.frontier{position:relative; height:26px}
.frontier::before{content:""; position:absolute; left:0; right:0; top:50%; border-top:2px dashed var(--ko)}
.frontier span{position:absolute; right:12px; top:50%; transform:translateY(-50%); background:var(--surface); padding:0 8px; font-family:var(--f-mono); font-size:.75rem; color:var(--ko)}
.modes{display:grid; grid-template-columns:1fr auto 1fr; gap:8px; align-items:center; text-align:center}
.mode{border:1.5px solid var(--ink); border-radius:10px; padding:9px 8px; background:var(--surface); font-size:.88rem}
.mode b{display:block; font-family:var(--f-display)}
.mode.normal{grid-row:1 / span 2; background:var(--code-bg)}
.mode-arrows{font-family:var(--f-mono); font-size:.72rem; color:var(--muted); line-height:1.4}
.tbl-wrap{overflow-x:auto; border:1px solid var(--rule); border-radius:12px; background:var(--surface)}
table{border-collapse:collapse; width:100%; font-size:.94rem}
th,td{text-align:left; padding:8px 12px; border-bottom:1px solid var(--rule); vertical-align:top}
tr:last-child td{border-bottom:0}
thead th{font-family:var(--f-mono); font-size:.72rem; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); font-weight:400}
td:first-child{color:var(--muted); white-space:nowrap}

/* commandes */
.cmds{margin:0; display:grid; border-top:1px solid var(--rule)}
.cmd{display:grid; grid-template-columns:minmax(0,14em) 1fr; gap:4px 14px; padding-block:8px; border-bottom:1px solid var(--rule)}
.cmd dt{min-width:0}
.cmd code{display:inline-block; max-width:100%; overflow-x:auto; white-space:nowrap; background:var(--code-bg); padding:3px 8px; border-radius:6px; font-size:.84rem; vertical-align:top}
.cmd dd{margin:0; font-size:.94rem}
.cmd dd .src{margin-left:6px}
@media (max-width:560px){ .cmd{grid-template-columns:1fr} }
.hint{font-size:.92rem; color:var(--muted); margin-top:10px}

/* pièges */
.pieges{list-style:none; margin:0; padding:0; display:grid; gap:10px}
.pieges li{display:grid; grid-template-columns:22px 1fr; gap:10px}
.pieges li::before{content:"!"; font-family:var(--f-mono); font-weight:700; width:22px; height:22px; border-radius:6px; display:grid; place-items:center; background:var(--ko-bg); color:var(--ko); font-size:.8rem; margin-top:2px}

/* questions */
details{border-top:1px solid var(--rule)}
details:last-of-type{border-bottom:1px solid var(--rule)}
summary{cursor:pointer; padding:11px 60px 11px 0; font-weight:700; list-style:none; display:block; position:relative; min-height:44px}
summary::-webkit-details-marker{display:none}
summary::after{content:"Voir"; position:absolute; right:0; top:11px; font-family:var(--f-mono); font-size:.72rem; font-weight:400; color:var(--accent); padding-top:4px}
details[open] summary::after{content:"Cacher"}
details .ans{padding-bottom:12px}

.revoir{background:var(--ko-bg); border-radius:14px; padding:16px; display:grid; gap:8px}
.revoir h2{font-size:1.1rem; color:var(--ko)}
.revoir ul{margin:0; padding-left:18px}

footer{margin-top:40px; padding-top:14px; border-top:2px solid var(--ink); display:grid; gap:10px; font-size:.88rem; color:var(--muted)}
.msg{min-height:1.4em}

@media (prefers-reduced-motion: reduce){ .def{transition:none} }

/* ————————————————————————————————————————————————————————————————
   2e partie : enveloppe de l'app (T023, T024)
   ———————————————————————————————————————————————————————————————— */
[hidden]{display:none !important}
#vue:focus{outline:none}
/* Mots sans espace (URL, chemin, adresse IPv6) : à la ligne, au lieu d'élargir la page (08/10).
   anywhere et non break-word : lui seul réduit la largeur minimale des grilles et des flex. */
.page{overflow-wrap:anywhere}
/* Sauf les tableaux, qui défilent dans leur cadre, et les libellés fixes, jamais coupés en plein mot. */
.tbl-wrap, .btn, .seg, .retour{overflow-wrap:normal}
/* Un `code` du besoin d'une commande défile dans sa colonne, comme la commande. */
.cmd > *{min-width:0}
.pied{margin:0; padding:0 16px 20px; text-align:center; font-size:.78rem; color:var(--muted)}
body.avec-nav{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}

/* navigation du bas (research R7, FR-080) : la rubrique active est surlignée */
.nav{position:fixed; left:0; right:0; bottom:0; z-index:20;
  padding-bottom:env(safe-area-inset-bottom,0px);
  background:color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border-top:1px solid var(--rule)}
.nav ul{list-style:none; margin:0 auto; padding:0 4px; max-width:720px;
  display:grid; grid-auto-flow:column; grid-auto-columns:1fr}
.nav a{display:grid; justify-items:center; align-content:center; gap:3px; min-height:56px; padding:6px 2px;
  color:var(--muted); text-decoration:none; font-size:.74rem; font-weight:700; line-height:1.2}
.nav svg{width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.nav a[aria-current="page"]{color:var(--ink)}
.nav a[aria-current="page"] span{background:linear-gradient(transparent 52%, var(--hl) 52%); padding:0 .15em}

/* connexion */
.entree{min-height:100svh; display:grid; align-content:center; gap:24px; padding-block:40px 24px}
.logo{font-family:var(--f-display); font-weight:800; font-size:clamp(3.2rem, 17vw, 4.8rem); line-height:.92;
  letter-spacing:-.035em; font-variation-settings:"wdth" 78, "opsz" 96}
/* Le trait traverse le bas des lettres : la boîte de la police descend plus bas que les lettres. */
.logo span{background:linear-gradient(transparent 42%, var(--hl) 42%, var(--hl) 76%, transparent 76%); padding:0 .06em}
.accroche{margin-top:10px; font-size:1.2rem; color:var(--muted)}
.carte{background:var(--surface); border:1px solid var(--rule); border-radius:14px; box-shadow:var(--lift);
  padding:18px 16px; display:grid; gap:16px}
.champ{display:grid; gap:6px}
.champ label{font-size:.92rem; font-weight:700}
.champ input{font:inherit; font-size:max(1rem, 16px); color:var(--ink); background:var(--paper);
  border:1.5px solid var(--rule); border-radius:10px; padding:10px 12px; min-height:48px; width:100%}
.champ input:focus{border-color:var(--accent)}
/* Code à 6 chiffres : un vrai champ, invisible, posé sur six cases dessinées sur le papier. */
.cases{position:relative; display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:6px; max-width:330px}
.cases span{min-height:54px; display:grid; place-items:center; border:1.5px solid var(--rule); border-radius:9px;
  background:var(--paper); font-family:var(--f-mono); font-size:1.4rem}
.cases span.pleine{border-color:var(--ink)}
.cases input{position:absolute; inset:0; width:100%; height:100%; opacity:0; border:0; padding:0;
  font-size:16px; cursor:text}
.cases:focus-within span.actif{border-color:var(--accent); box-shadow:0 0 0 2px var(--accent)}
.btn.large{width:100%; min-height:50px; font-size:1rem}
.btn:disabled{opacity:.6; cursor:wait}
.erreur{color:var(--ko); font-weight:700; min-height:1.4em}
.erreur:empty{display:none}
.note{font-size:.9rem; color:var(--muted)}

/* en-tête des rubriques : grand titre à la manière d'iOS, compte en haut à droite */
.entete{display:flex; justify-content:space-between; align-items:flex-end; gap:12px;
  padding-top:calc(env(safe-area-inset-top,0px) + 18px); padding-bottom:6px}
.entete .eyebrow{margin-bottom:2px}
.titre{font-family:var(--f-display); font-size:2.25rem; line-height:1.05; font-weight:800; letter-spacing:-.025em;
  font-variation-settings:"wdth" 82, "opsz" 96}
.moi{flex:none; width:44px; height:44px; border-radius:11px; overflow:hidden}
.moi img{display:block; width:100%; height:100%}
.retour{display:inline-flex; align-items:center; gap:2px; min-height:44px; margin-left:-8px; padding-right:8px;
  color:var(--accent); text-decoration:none; font-weight:700}
.retour svg{width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round}
.vide{color:var(--muted); padding-top:14px}
.qui{color:var(--muted); padding-top:4px}
.qui b{color:var(--ink)}

/* groupes (Mon compte) */
section.groupe{padding-block:26px 0}
.groupe-titre{font-family:var(--f-mono); font-size:.72rem; font-weight:400; text-transform:uppercase;
  letter-spacing:.08em; color:var(--muted); margin:0 0 8px 4px}
.btn.danger{background:var(--surface); color:var(--ko); border-color:color-mix(in srgb, var(--ko) 35%, var(--rule))}
.message{font-weight:700; color:var(--ko); min-height:1.4em}
.message:empty{display:none}

/* indicateur hors ligne (FR-032) */
.hors-ligne{position:fixed; z-index:30; top:calc(env(safe-area-inset-top,0px) + 8px); left:50%; transform:translateX(-50%);
  margin:0; padding:5px 12px; border-radius:999px; background:var(--ink); color:var(--paper);
  font-family:var(--f-mono); font-size:.72rem; letter-spacing:.06em; text-transform:uppercase}
.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap}

/* listes à encarts (Cours, sommaire) : research R7 */
.liste{list-style:none; margin:0; padding:0; background:var(--surface); border:1px solid var(--rule);
  border-radius:14px; box-shadow:var(--lift); overflow:hidden}
.liste > li + li{border-top:1px solid var(--rule)}
.ligne{display:flex; align-items:center; gap:12px; width:100%; min-height:56px; padding:12px 14px;
  color:inherit; text-decoration:none; background:none; border:0; text-align:left; font:inherit; cursor:pointer}
a.ligne:active, button.ligne:active{background:var(--code-bg)}
.ligne-action{padding:0 14px 12px}
.ligne-code{flex:none; min-width:3.6em; font-family:var(--f-mono); font-size:.8rem; color:var(--muted)}
.ligne-corps{flex:1; min-width:0; display:grid; gap:3px}
.ligne-titre{font-weight:700; line-height:1.3}
.ligne-meta{font-family:var(--f-mono); font-size:.72rem; color:var(--muted)}
.ligne-inactive .ligne-titre{color:var(--muted); font-weight:400}
.ligne-etat{font-size:.85rem; color:var(--muted)}
.chevron{flex:none; width:18px; height:18px; fill:none; stroke:var(--muted); stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.progres{display:block; height:5px; border-radius:999px; background:var(--code-bg); overflow:hidden; margin-top:4px}
.progres-barre{display:block; height:100%; width:0; background:var(--ok); border-radius:999px}
.compte{flex:none; font-family:var(--f-mono); font-size:.72rem; color:var(--muted); white-space:nowrap}

/* fiche : barre du haut en pleine largeur, filtre du mode Réviser */
.page > div > .bar{margin:0 -16px}
.bar .retour{margin-left:-6px}
.bar-filtre{max-width:720px; margin:0 auto; padding:0 16px 8px}
.bar-filtre label{display:inline-flex; align-items:center; gap:8px; min-height:44px; font-size:.92rem}
.bar-filtre input{width:20px; height:20px; accent-color:var(--ink)}
.meta.sans-jx{grid-template-columns:1fr}
.hors-ligne-note{font-family:var(--f-mono); font-size:.75rem; color:var(--muted)}
.essentiel strong{background:linear-gradient(transparent 52%, var(--hl) 52%); color:inherit; padding:0 .08em}
.sommaire{padding-top:32px}
.sommaire .ligne{min-height:52px}

/* parties repliables, chapitres, groupes */
.partie{margin-top:18px}
.partie > summary h2{display:inline; font-size:1.5rem; font-weight:750; letter-spacing:-.015em; font-variation-settings:"wdth" 88}
.partie > summary .compte{margin-left:8px}
.chapitre{padding-block:18px 8px}
.chapitre-tete{display:grid; gap:6px; margin-bottom:6px}
.chapitre-tete h3{font-size:1.3rem; font-weight:750; line-height:1.15}
.groupe-rev{padding-top:22px}
.groupe-rev .sh h4{font-family:var(--f-display); font-size:1.15rem; font-weight:750; margin:0}
.n-head h5, .fig h5, .bloc h5{font-family:var(--f-display); font-size:1.05rem; font-weight:700; margin:0;
  display:flex; flex-wrap:wrap; gap:4px 8px; align-items:baseline}
.fig h5{margin-bottom:10px}

/* mode Réviser : tout élément .rev masque ses .rep jusqu'à « Afficher » (FR-021) */
.rev .badge{display:none}
.rev[data-status="capte"] .badge.ok{display:inline-block; background:var(--ok-bg); color:var(--ok)}
.rev[data-status="pascapte"] .badge.ko{display:inline-block; background:var(--ko-bg); color:var(--ko)}
html[data-mode="reviser"] .rev .n-actions{display:flex}
html[data-mode="reviser"] .rev:not(.revealed) .rep,
html[data-mode="reviser"] .rev:not(.revealed) .rep-morceau:not(.vu){filter:blur(7px); user-select:none; -webkit-user-select:none}
html[data-mode="reviser"] .rev:not(.revealed) .rep-morceau{cursor:pointer}
html[data-mode="reviser"] .rev.revealed .reveal{display:none}
.rev:not(.revealed) .n-actions [data-action="verdict"]{display:none}
html[data-filtre] .rev[data-status="capte"]{display:none}
.rep, .rep-morceau{transition:filter .2s}
.btn.danger{color:var(--ko); border-color:color-mix(in srgb, var(--ko) 35%, var(--rule))}

/* commandes, pièges, questions, blocs en mode fiche */
.cmds{list-style:none; margin:0; padding:0; border-top:1px solid var(--rule)}
.cmd{display:grid; grid-template-columns:minmax(0,14em) 1fr; gap:4px 14px; padding-block:9px; border-bottom:1px solid var(--rule)}
.cmd-code{min-width:0}
.cmd-code code{display:inline-block; max-width:100%; overflow-x:auto; white-space:nowrap; background:var(--code-bg);
  padding:3px 8px; border-radius:6px; font-size:.84rem; vertical-align:top}
.cmd-besoin{font-size:.94rem}
.cmd .n-actions, .cmd .liens, .cmd .prof{grid-column:1 / -1}
@media (max-width:560px){ .cmd{grid-template-columns:1fr} }

/* Fiches mémos (spec 004) : antisèches en onglets ; une ligne = code · effet ; badge « vu en cours » vers la fiche */
.raccourcis{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.memo-recherche{padding-top:14px}
.memo-statut{font-family:var(--f-mono); font-size:.75rem; color:var(--muted); min-height:1.2em; padding-top:6px}
.memo-onglets{position:sticky; top:0; z-index:5; display:flex; gap:6px; overflow-x:auto; scrollbar-width:none;
  margin-inline:-16px; padding:10px 16px; background:var(--paper)}
.memo-onglets::-webkit-scrollbar{display:none}
.memo-onglets button{flex:none; min-height:44px; padding:0 15px; border:1.5px solid var(--rule); border-radius:999px;
  background:var(--surface); color:var(--ink); font:inherit; font-size:.92rem; font-weight:700; cursor:pointer}
.memo-onglets button[aria-selected="true"]{background:var(--ink); border-color:var(--ink); color:var(--paper)}
.memo-onglets button[data-vide]:not([aria-selected="true"]){color:var(--muted); font-weight:400; border-style:dashed}
.memo-barre{display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:4px}
.memo-resume{font-family:var(--f-mono); font-size:.75rem; color:var(--muted)}
.memo-sommaire{display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; margin-inline:-16px; padding:6px 16px 2px}
.memo-sommaire::-webkit-scrollbar{display:none}
.memo-sommaire button{flex:none; white-space:nowrap; min-height:44px; padding:0 11px; border:1px solid var(--rule); border-radius:8px; background:none;
  color:var(--ink); font-family:var(--f-mono); font-size:.76rem; cursor:pointer}
.memo-groupe{font-size:1.25rem; padding-top:22px}
.memo-rubrique{margin-top:16px; padding:14px 14px 10px; background:var(--surface); border:1px solid var(--rule);
  border-radius:var(--r-carte, 14px); scroll-margin-top:72px}
.memo-rubrique-tete{display:flex; align-items:baseline; justify-content:space-between; gap:10px;
  padding-bottom:8px; border-bottom:2px solid var(--ink)}
.memo-rubrique-tete h2{font-size:1.12rem; line-height:1.25}
.memo-lignes{list-style:none; margin:0; padding:0}
.memo-ligne{display:grid; grid-template-columns:minmax(0,48%) 1fr; gap:3px 12px; align-items:baseline;
  padding:8px 0; border-bottom:1px solid var(--rule); scroll-margin-top:72px}
.memo-ligne:last-child{border-bottom:0}
.memo-ligne.long{grid-template-columns:1fr}
.memo-code{justify-self:start; max-width:100%; padding:2px 7px; border-radius:6px; font-family:var(--f-mono); font-size:.8rem;
  line-height:1.45; white-space:pre-wrap; overflow-wrap:anywhere; background:var(--t-cmd-bg, var(--code-bg)); color:var(--t-cmd-texte, var(--ink))}
.memo-effet{font-size:.9rem; line-height:1.4; color:var(--ink)}
.memo-badges{grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:4px 8px; margin-top:2px}
.memo-badge{position:relative; display:inline-flex; align-items:center; min-height:20px; padding:0 5px;
  border:1px solid var(--rule); border-radius:5px; color:var(--muted); font-family:var(--f-mono); font-size:.64rem;
  font-weight:400; text-decoration:none; white-space:nowrap}
.memo-badge::after{content:""; position:absolute; inset:-12px -4px}
.memo-sources{padding-top:8px; font-family:var(--f-mono); font-size:.68rem; line-height:1.6; color:var(--muted)}
.memo-ligne.cible{animation:memo-cible 1.6s ease-out}
@keyframes memo-cible{from{background:var(--hl)} to{background:transparent}}
@media (prefers-reduced-motion: reduce){ .memo-ligne.cible{animation:none; outline:2px solid var(--accent)} }
.pieges li > .n-actions{grid-column:2}
.piege-enonce{font-weight:700}
.question{padding-block:12px; border-top:1px solid var(--rule)}
.question .q-texte{font-weight:700}
.question .ans{margin-top:6px}
.bloc{padding-block:12px; border-bottom:1px solid var(--rule)}
.etapes{margin:8px 0 0; padding-left:1.4em}
.prof{font-weight:700; color:var(--ko); font-size:.9rem}
.a-verifier{font-family:var(--f-mono); font-size:.75rem; color:var(--ko)}
.autrement{margin-top:8px; padding:10px 12px; border-left:3px solid var(--hl-solid); background:var(--surface); border-radius:0 8px 8px 0}
.autrement-titre{font-family:var(--f-mono); font-size:.7rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted)}
.liens{display:flex; flex-wrap:wrap; gap:6px; margin-top:4px}
.lien{border:0; background:none; padding:6px 0; min-height:44px; color:var(--accent); font:inherit; font-weight:700;
  text-align:left; cursor:pointer}
.revoir ul{list-style:none; padding:0}
.docs{margin:0; padding-left:18px}

/* schémas : transitions et séquence à remettre dans l'ordre */
.etats{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px}
.etats .mode{flex:1 1 9em}
.transitions{list-style:none; margin:0; padding:0; border:1px solid var(--rule); border-radius:12px; background:var(--surface)}
.transitions li{display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 12px; padding:9px 14px}
.transitions li + li{border-top:1px solid var(--rule)}
.tr-de{font-family:var(--f-mono); font-size:.85rem}
.consigne{color:var(--muted); font-size:.92rem; margin-bottom:8px}
.ordre{list-style:none; margin:0; padding:0; display:grid; gap:6px}
.ordre-etape{display:grid; grid-template-columns:28px 1fr 44px 44px; align-items:center; gap:6px; padding:4px 4px 4px 10px;
  background:var(--surface); border:1.5px solid var(--rule); border-radius:10px}
.ordre-etape.ok{border-color:var(--ok); background:var(--ok-bg)}
.ordre-etape.ko{border-color:var(--ko); background:var(--ko-bg)}
.ordre-num{font-family:var(--f-mono); font-size:.78rem; color:var(--muted)}
.ordre-label{font-family:var(--f-display); font-weight:700}
.ordre-bouton{width:44px; height:44px; display:grid; place-items:center; border:0; background:none; border-radius:8px; cursor:pointer; color:var(--ink)}
.ordre-bouton svg{width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round}
.ordre-bouton:disabled{opacity:.25; cursor:default}
.ordre-resultat{margin-top:8px; font-size:.92rem}
.ordre-resultat:empty{display:none}
html:not([data-mode="reviser"]) .ordre-resultat{display:none}
@media (prefers-reduced-motion: reduce){ .rep, .rep-morceau{transition:none} }
/* sauts dans la fiche (sommaire, « À revoir ») : la cible ne passe pas sous la barre collante */
html[data-mode="lire"]{scroll-padding-top:84px}
html[data-mode="reviser"]{scroll-padding-top:136px}

/* Évals et Accueil (US4, US6) */
a.btn{display:inline-flex; align-items:center; justify-content:center; text-decoration:none; color:inherit}
.entete > .btn{flex:none; margin-bottom:4px}
.formulaire{margin-top:14px}
.champ select, .champ textarea{font:inherit; font-size:max(1rem, 16px); color:var(--ink); background:var(--paper);
  border:1.5px solid var(--rule); border-radius:10px; padding:10px 12px; min-height:48px; width:100%}
.champ select:focus, .champ textarea:focus{border-color:var(--accent)}
.champ textarea{resize:vertical}
/* iOS : sans ça, un champ date vide s'affiche sans hauteur et centré */
.champ input[type="date"]{-webkit-appearance:none; appearance:none; text-align:left}
.facultatif{font-weight:400; color:var(--muted); font-size:.85rem}
.coche{display:inline-flex; align-items:center; gap:10px; min-height:44px}
.coche input{width:22px; height:22px; min-height:0; padding:0; accent-color:var(--ink)}
.ligne-jx{flex:none; font-family:var(--f-display); font-weight:800; font-size:1.05rem; font-variant-numeric:tabular-nums; white-space:nowrap}
.ligne-note{flex:none; font-family:var(--f-mono); font-size:.9rem}
.etiquette{display:inline-block; font-family:var(--f-mono); font-size:.68rem; padding:1px 7px; border-radius:999px;
  background:var(--code-bg); color:var(--muted); vertical-align:1px}
.confirmer{cursor:default}
.confirmer-champs{display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-top:6px}
.confirmer-champs label{display:inline-flex; align-items:center; gap:6px; font-size:.92rem}
.confirmer-champs input{font:inherit; font-size:16px; width:5.5em; min-height:44px; padding:8px 10px; color:var(--ink);
  background:var(--paper); border:1.5px solid var(--rule); border-radius:10px}
.carte-eval, .carte-vide{display:flex; align-items:center; gap:16px; color:inherit; text-decoration:none}
.carte-eval .jx{flex:none}
.liste.suite{margin-top:10px}
.synchro{gap:6px}
.synchro p{margin:0}
.synchro-resume{white-space:pre-line; font-size:.92rem}

/* Devoirs et to-do (US10, US11) */
.ligne-coche{cursor:default}
.ligne-coche .ligne-corps{color:inherit; text-decoration:none; align-self:stretch; align-content:center}
.case{flex:none; width:24px; height:24px; margin:0; accent-color:var(--ok); cursor:pointer}
.ligne-consigne{line-height:1.35}
.ligne-coche:has(.case:checked) :is(.ligne-titre, .ligne-consigne){text-decoration:line-through; color:var(--muted); font-weight:400}
.ligne-jx.retard{color:var(--ko); font-family:var(--f-mono); font-weight:400; font-size:.78rem}
details.repli{margin-top:26px; border:0}
details.repli .liste{margin-bottom:12px}
.saisie{display:flex; flex-wrap:wrap; gap:8px; margin-top:14px}
.saisie input{font:inherit; font-size:max(1rem, 16px); color:var(--ink); background:var(--surface); min-height:48px;
  border:1.5px solid var(--rule); border-radius:10px; padding:10px 12px}
.saisie input[name="texte"]{flex:1 1 10em; min-width:0}
.saisie .btn{flex:0 0 auto; min-height:48px}
.saisie .message{flex:1 1 100%}

/* Emploi du temps et détections (US9) */
.seg a{display:inline-flex; align-items:center; min-height:44px; padding:6px 14px; border-radius:999px;
  color:var(--ink); text-decoration:none; font-weight:700; font-size:.9rem}
.seg a[aria-pressed="true"]{background:var(--ink); color:var(--paper)}
.edt-barre{display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:10px}
.edt-barre .seg{margin-left:0}
.edt-nav{display:grid; grid-template-columns:44px 1fr 44px; align-items:center; margin-top:8px}
.edt-titre{text-align:center; font-family:var(--f-display); font-weight:750; font-size:1.1rem; margin:0}
.edt-fleche{width:44px; height:44px; display:grid; place-items:center; color:var(--accent)}
.edt-fleche svg{width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round}
section.edt-jour{padding-top:14px}
.bandeau{padding:8px 14px; background:var(--hl); font-size:.92rem}
.edt-actions{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.groupe-titre a{color:inherit}
.detection{flex-wrap:wrap; cursor:default}
.detection .ligne-corps{flex:1 1 12em}
.detection .etiquette{justify-self:start}
.detection .btn[data-action="ajouter"]{min-width:44px; font-size:1.2rem; padding:0 12px}

/* Emploi du temps : bande des jours et cartes de cours (30/09) */
.edt-bande{display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:6px; margin-top:6px}
.edt-bande a{display:grid; justify-items:center; gap:2px; padding:8px 0 7px; border-radius:12px; text-decoration:none;
  color:var(--muted); background:var(--surface); border:1px solid var(--rule)}
.edt-bande a span{font-family:var(--f-mono); font-size:.66rem; text-transform:uppercase; letter-spacing:.06em}
.edt-bande a b{font-family:var(--f-display); font-size:1.2rem; line-height:1.1; color:var(--ink)}
.edt-bande a i{width:5px; height:5px; border-radius:50%; background:var(--accent)}
.edt-bande a i[hidden]{display:block !important; visibility:hidden}
.edt-bande a.aujourdhui b{color:var(--accent)}
.edt-bande a[aria-current="date"]{background:var(--ink); border-color:var(--ink)}
.edt-bande a[aria-current="date"] :is(span, b){color:var(--paper)}
.edt-bande a[aria-current="date"] i{background:var(--paper)}
.edt-resume{font-family:var(--f-mono); font-size:.72rem; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); margin:0 0 10px 4px}
.edt-jour-titre{font-family:var(--f-display); font-size:1.15rem; font-weight:750; margin:0 0 8px}
.edt-jour-titre::first-letter{text-transform:uppercase}
.edt-jour-titre.aujourdhui{color:var(--accent)}
.cours-liste{list-style:none; margin:0; padding:0; display:grid; gap:8px}
.cours{--c:var(--muted); display:flex; gap:14px; padding:12px 14px 12px 12px; background:var(--surface);
  border:1px solid var(--rule); border-left:4px solid var(--c); border-radius:12px; box-shadow:var(--lift)}
.cours-cm{--c:var(--accent)}
.cours-td{--c:var(--rose)}
.cours-tp{--c:var(--ok)}
.cours-eval{--c:var(--ko)}
.cours-heure{flex:none; width:3.3em; display:grid; align-content:start; gap:2px; font-variant-numeric:tabular-nums}
.cours-heure b{font-family:var(--f-display); font-size:1.1rem; line-height:1.15}
.cours-heure span{font-family:var(--f-mono); font-size:.75rem; color:var(--muted)}
.cours-corps{flex:1; min-width:0; display:grid; gap:3px}
.cours-corps p{margin:0}
.cours-tete{display:flex; flex-wrap:wrap; align-items:center; gap:6px}
.cours-type{font-family:var(--f-mono); font-size:.68rem; font-weight:700; padding:1px 7px; border-radius:6px;
  background:color-mix(in srgb, var(--c) 22%, transparent)}
.cours-titre{font-weight:700; line-height:1.3}
.cours-detail{font-size:.85rem; color:var(--muted)}
.pause{font-family:var(--f-mono); font-size:.68rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); text-align:center}
.cours-liste .bandeau{border-radius:12px}
/* Pomodoro (US12, refait le 04/10) : écran de départ */
.pomo-depart{margin-top:14px; gap:14px}
.segments{display:flex; gap:3px; padding:3px; border-radius:12px; background:var(--code-bg)}
.segments label{flex:1; cursor:pointer}
.segments span{display:grid; place-items:center; min-height:64px; padding:6px; border-radius:9px; color:var(--muted)}
.segments b{font-family:var(--f-display); font-size:1.55rem; line-height:1.1; font-weight:800; color:inherit}
.segments small{font-size:.8rem}
.segments input:checked + span{background:var(--surface); color:var(--ink); box-shadow:0 1px 3px rgba(0,0,0,.14)}
.segments input:focus-visible + span{outline:2.5px solid var(--accent); outline-offset:1px}
.pomo-bilan{margin:16px 4px 0; color:var(--muted)}
.pomo-regles{margin:0; padding-left:1.2em; display:grid; gap:8px; color:var(--muted); font-size:.95rem}
/* Écran de concentration : par-dessus toute l'app, sur le fond du thème. Un anneau à la couleur du
   surligneur se remplit autour du temps (choix de l'utilisateur, 04/10, à la place d'un trait). */
.concentration{position:fixed; inset:0; z-index:50; display:grid; grid-template-rows:auto 1fr auto; gap:16px;
  background:inherit; color:var(--ink); overflow:hidden auto; overscroll-behavior:contain;
  padding:calc(env(safe-area-inset-top,0px) + 18px) 20px calc(env(safe-area-inset-bottom,0px) + 22px)}
.concentration[hidden]{display:none}
.concentration:focus{outline:none}
/* Rien à sélectionner ici : un appui long ne doit sélectionner aucun texte (voir brancherAppui). */
.concentration{-webkit-user-select:none; user-select:none; -webkit-touch-callout:none}
html.en-concentration, html.en-concentration body{overflow:hidden}
.conc-haut{display:flex; justify-content:space-between; gap:12px; margin:0; font-family:var(--f-mono); font-size:.75rem;
  text-transform:uppercase; letter-spacing:.08em; color:var(--muted)}
.conc-haut span:first-child{color:var(--ink)}
.conc-centre{display:grid; align-content:center; justify-items:center; gap:16px; text-align:center; min-height:0}
.conc-centre p{margin:0}
.conc-cadran{--d:min(82vw, 44vh, 22rem); position:relative; width:var(--d); height:var(--d); display:grid; place-items:center}
.conc-cadran svg{position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg)}
.conc-cadran circle{fill:none; stroke-width:5}
.conc-piste{stroke:var(--rule)}
/* L'anneau prend la couleur du surligneur du thème (--hl-solid existe dans chaque style). */
.conc-anneau{stroke:var(--hl-solid); stroke-linecap:round; stroke-dasharray:289.03; stroke-dashoffset:289.03}
.concentration[data-etat="suspendu"] .conc-anneau{opacity:.45}
.conc-temps{position:relative; font-family:var(--f-display); font-weight:800; line-height:1;
  font-size:calc(var(--d) * .27); letter-spacing:-.03em; font-variant-numeric:tabular-nums}
.concentration[data-etat="suspendu"] .conc-chiffres{color:var(--muted)}
.conc-titre-fort{font-family:var(--f-display); font-weight:800; font-size:clamp(3.2rem, 18vw, 6rem); line-height:1; letter-spacing:-.03em}
.conc-sous{font-size:1.05rem; color:var(--muted); max-width:30ch}
.conc-sous b{color:var(--ink)}
.conc-note{font-size:.9rem; font-weight:700; color:var(--ko); max-width:32ch}
.conc-actions{display:grid; gap:10px; width:100%; max-width:420px; margin-inline:auto}
.conc-actions .btn{width:100%; min-height:54px; font-size:1.02rem}
.conc-duo{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.conc-abandon{position:relative; overflow:hidden; touch-action:none; -webkit-user-select:none; user-select:none; -webkit-touch-callout:none}
.conc-abandon::before{content:""; position:absolute; inset:0; background:color-mix(in srgb, var(--ko) 22%, transparent);
  transform:scaleX(0); transform-origin:left center}
.conc-abandon.appui::before{transform:scaleX(1); transition:transform 2s linear}
.conc-abandon span{position:relative}
.conc-dissuasion{text-align:center; font-weight:700; margin:0 0 4px}
@media (prefers-reduced-motion: reduce){ .conc-abandon.appui::before{transition:none} }
/* Comptes (US8) */
.compte-pote{display:grid; gap:8px; padding:14px}
.compte-pote p{margin:0}
.plus-infos{display:inline-flex; align-items:center; min-height:44px; margin-left:4px; padding:0 4px; border:0; background:none;
  color:var(--accent); font:inherit; font-weight:700; cursor:pointer}
.infos-appareils{margin:0; padding-left:18px; display:grid; gap:4px; font-size:.88rem; color:var(--muted)}
.infos-appareils b{color:var(--ink); font-weight:700}
.compte-pote select{font:inherit; font-size:16px; color:var(--ink); background:var(--paper); border:1.5px solid var(--rule);
  border-radius:10px; padding:10px 12px; min-height:48px; width:100%}
.code-une-fois{font-family:var(--f-mono); font-size:1.2rem; letter-spacing:.12em; color:var(--ink)}
[data-role="creer"] .message:has(.code-une-fois){color:var(--ink); font-weight:400}

/* Emploi du temps, façon agenda (30/09) : axe des heures, cours à la hauteur de leur durée */
.agenda{display:grid; grid-template-columns:34px minmax(0,1fr); margin-top:18px}
.agenda-heures{position:relative}
.agenda-heures span{position:absolute; right:7px; transform:translateY(-50%); font-family:var(--f-mono); font-size:.64rem; color:var(--muted)}
.agenda-col{position:relative; border-left:1px solid var(--rule);
  background-image:linear-gradient(to bottom, var(--rule) 1px, transparent 1px); background-size:100% var(--h-heure)}
.cren{--c:var(--muted); position:absolute; display:flex; flex-direction:column; gap:2px; overflow:hidden; box-sizing:border-box;
  padding:5px 8px; border-radius:8px; border-left:3px solid var(--c); background:color-mix(in srgb, var(--c) 16%, var(--surface));
  color:var(--ink); text-decoration:none; font-size:.8rem; line-height:1.25}
a.cren:active{background:color-mix(in srgb, var(--c) 26%, var(--surface))}
.cren-cm{--c:var(--accent)}
.cren-td{--c:var(--rose)}
.cren-tp{--c:var(--ok)}
.cren-eval{--c:var(--ko)}
.cren-autre{--c:var(--muted)}
.cren-haut{display:flex; align-items:center; gap:6px; font-family:var(--f-mono); font-size:.66rem; color:var(--muted); white-space:nowrap}
.cren-type{font-family:var(--f-mono); font-weight:700; font-size:.66rem; color:var(--c)}
.cren-titre{font-weight:700; font-size:.86rem; line-height:1.2}
.cren-infos{font-size:.74rem; color:var(--muted)}
.cren.court .cren-infos{display:none}
.cren.court .cren-titre{white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.pastille{margin-left:auto; flex:none; font-family:var(--f-mono); font-size:.6rem; font-weight:700; padding:1px 6px; border-radius:999px;
  background:var(--ko); color:#fff; text-transform:uppercase; letter-spacing:.04em}
.pastille.devoir{background:var(--ink); color:var(--paper)}
.maintenant{position:absolute; left:0; right:0; height:2px; background:var(--ko); z-index:2; pointer-events:none}
.maintenant::before{content:""; position:absolute; left:-5px; top:-4px; width:10px; height:10px; border-radius:50%; background:var(--ko)}
.rappels{display:grid; gap:6px; margin-top:12px}
.rappel{font-size:.88rem; padding:8px 12px; border-radius:10px; background:var(--ko-bg); color:var(--ink)}
.rappel b{color:var(--ko)}
.rappel.devoir{background:var(--code-bg)}
.rappel.devoir b{color:var(--ink)}
.edt-bande a i.eval{background:var(--ko)}
.edt-libre{text-align:center; padding-block:40px}
p.bandeau{margin:10px 0 0; border-radius:10px}
/* semaine : une colonne par jour, cours réduits au code, au type, à la salle et au nom du prof (08/10) */
.agenda.semaine{grid-template-columns:28px repeat(var(--jours, 5), minmax(0,1fr))}
.sem-tete{display:grid; justify-items:center; gap:1px; padding-bottom:8px; color:var(--muted); text-decoration:none; position:relative}
.sem-tete span{font-family:var(--f-mono); font-size:.62rem; text-transform:uppercase}
.sem-tete b{font-family:var(--f-display); font-size:1.05rem; color:var(--ink)}
.sem-tete.aujourdhui b{color:var(--paper); background:var(--accent); border-radius:999px; min-width:1.7em; text-align:center}
.sem-tete i{position:absolute; top:0; right:6px; width:6px; height:6px; border-radius:50%; background:var(--ko)}
.semaine .agenda-heures span{right:4px; font-size:.58rem}
.cren.compact{padding:3px 3px 3px 4px; border-left-width:2px; border-radius:5px; font-size:.6rem; gap:0; line-height:1.15}
.cren.compact .cren-titre{font-size:.62rem; white-space:normal}
.cren.compact .cren-type{font-size:.58rem}
.cren.compact .cren-infos{display:block; font-size:.56rem; word-break:break-word}
/* Carte trop courte : le bas est rogné (la pastille, sous le prof depuis le 13/10), au lieu d'écraser le titre (08/10). */
.cren.compact > *{flex-shrink:0}
.cren.compact .pastille{margin:1px 0 0; align-self:flex-start; font-size:.5rem; padding:0 4px}
.cren.compact .cren-titre{overflow-wrap:anywhere}

/* fiche d'éval (T080), d'après le modèle validé modeles/fiche-eval-DS-R108.html */
.fiche-eval section{padding-block:28px 0}
.fiche-eval .hero{padding-block:22px 4px}
.bullets{margin:0; padding-left:20px; display:grid; gap:8px}
.bullets li::marker{color:var(--muted)}
.warn{background:var(--code-bg); border-left:4px solid var(--hl-solid); border-radius:10px; padding:12px 14px; display:grid; gap:10px; font-size:.95rem}
.warn .btn{justify-self:start}
.checks{list-style:none; margin:0; padding:0; display:grid}
.checks li{border-bottom:1px solid var(--rule)}
.checks li:first-child{border-top:1px solid var(--rule)}
.checks label{display:grid; grid-template-columns:26px 1fr; gap:4px 10px; padding-block:10px; cursor:pointer; align-items:start; min-height:44px}
.checks label .src{grid-column:2}
.checks input{width:22px; height:22px; margin:1px 0 0; accent-color:var(--ok)}
.checks input:checked + span{color:var(--muted); text-decoration:line-through; text-decoration-color:var(--ok)}
.rule-box{background:var(--ko-bg); border-radius:12px; padding:12px 14px; margin-bottom:14px; font-size:.95rem}
.sheets{display:grid; gap:16px; margin-bottom:12px}
.sheet{position:relative; background-color:var(--surface);
  background-image:repeating-linear-gradient(transparent 0 25px, var(--rule) 25px 26px); background-position:0 34px;
  border:1px solid var(--rule); border-radius:4px 14px 14px 4px; padding:10px 14px 16px 30px; box-shadow:var(--lift)}
.sheet::before{content:""; position:absolute; left:18px; top:0; bottom:0; width:2px; background:var(--ko); opacity:.4}
.sheet-h{display:flex; justify-content:space-between; align-items:baseline; font-family:var(--f-mono); font-size:.72rem;
  color:var(--muted); text-transform:uppercase; letter-spacing:.08em; margin-bottom:8px}
.zone{border:1.5px solid var(--ink); border-radius:8px; padding:8px 10px; background:var(--surface); margin-bottom:10px}
.zone h3{font-size:.95rem; margin-bottom:4px}
.zone ul{margin:0; padding-left:16px; font-size:.92rem; display:grid; gap:3px}

/* impression depuis une fiche d'éval : la feuille seule, une face par page */
@media print{
  body{background:none}
  .nav, .hors-ligne, .pied, .fiche-eval > :not(.bloc-feuille), .bloc-feuille > :not(.sheets){display:none !important}
  .sheet{box-shadow:none; break-inside:avoid; break-after:page}
}

/* Notifications, dans Réglages (spec 005) */
.notif-etat{color:var(--muted); margin:0 4px 10px}
/* Carte d'invitation de l'Accueil (FR-009, 08/10) */
.invitation .carte{display:grid; gap:6px}
.invitation .carte p{margin:0}
.invitation-boutons{display:flex; gap:8px; margin-top:6px}
.invitation-boutons .btn{flex:1}
