/* ===== Style B « manuel moderne » sur tout le site (Etienne Buraud, 17/10/2026 : « harmonise le tout, une couleur de manuel par niveau »).
   Actif via data-b="1" sur <html>, chargé après site.css. Vert d'eau, formes arrondies, Nunito + Literata, pas de rouge.
   Une couleur par niveau : 6e sarcelle, 5e bleu, 4e violet, 3e vert, 2nde ocre, 1re prune, Tle bleu nuit. */
:root[data-v][data-b]{
  --bg:#EEF4F3; --sheet:#FFFFFF; --page:#FFFFFF; --ink:#1F2A2E; --muted:#56676C; --line:#DCE7E6;
  --encre:#0F7F82; --encre-2:#0B6466; --encre-soft:#E3F3F2; --on-encre:#FFFFFF; --marge:#0F7F82; --or:#B07409; --ast:#B07409;
  --seyes-h:#D3E6E4; --seyes-f:#EAF3F2; --seyes-v:#E6EEF6;
  --l6e:#0F7F82; --l5e:#2F64B5; --l4e:#6B4FCB; --l3e:#2C7D4F; --l2nde:#B0640C; --l1re:#8E4585; --lTle:#33507A;
  --title:var(--ink); --tw:800; --h1:clamp(40px,6.5vw,72px); --h2:clamp(24px,3.4vw,32px); --fs:17.5px; --lh:1.65;
  --display:"Nunito","Inter",system-ui,-apple-system,"Segoe UI",sans-serif; --text:"Literata",Georgia,serif; --ui:"Nunito","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --shadow:0 2px 0 rgba(15,127,130,.08),0 16px 36px -24px rgba(31,42,46,.4); --r:16px; color-scheme:light}
:root[data-v][data-b] body{background:var(--bg);font-family:var(--ui)}
[data-b] main p,[data-b] main li,[data-b] .lede,[data-b] .verses,[data-b] .para{font-family:var(--text)}
[data-b] h1,[data-b] h2,[data-b] h3,[data-b] h4{font-family:var(--display);font-weight:900;letter-spacing:-.01em}
[data-b] h3,[data-b] h4{font-weight:800}
/* en-tête et pied de page */
[data-b] header.top{background:var(--sheet);box-shadow:0 1px 0 var(--line),0 10px 24px -20px rgba(31,42,46,.35)}
[data-b] .brand{font-family:var(--display);font-weight:900;font-size:22px;letter-spacing:-.01em}
[data-b] .brand em{font-style:normal;color:var(--encre);font-weight:900}
[data-b] .brand .nib{color:var(--encre)}
[data-b] nav.lv a{border-radius:999px;font-weight:700;font-size:15px}
[data-b] nav.lv a.on{background:var(--c,var(--encre))!important;color:#fff!important}
[data-b] nav.lv a.profchip{border:1.5px solid var(--line)}
[data-b] .menuchip{background:var(--encre)!important;color:#fff!important;border-color:var(--encre)!important}
[data-b] footer{background:var(--sheet);border-top:none;box-shadow:0 -1px 0 var(--line)}
[data-b] .fbrand{font-family:var(--display);font-weight:900}
[data-b] .fbrand em{font-style:normal;color:var(--encre)}
[data-b] .menu-in{background:var(--sheet)}
[data-b] .menu-lv a{border-radius:var(--r);border:1.5px solid var(--line);background:var(--sheet)}
[data-b] .menu-lv a b{font-family:var(--display);font-weight:900}
[data-b] .menu-lv a.on{background:var(--encre);border-color:var(--encre)}
[data-b] .menu-srch{border-radius:999px}
/* accueil */
[data-b] .hero{border:none;outline:none;border-radius:24px;box-shadow:var(--shadow);background:var(--sheet)!important;overflow:hidden}
[data-b] .hero-in{background:linear-gradient(180deg,var(--encre-soft),var(--sheet) 70%)}
[data-b] .hero h1{font-weight:900;letter-spacing:-.025em}
[data-b] .hero h1 em{font-style:normal;font-weight:900}
[data-b] .eyebrow,[data-b] .blabel,[data-b] .kick{font-family:var(--ui);font-weight:800}
[data-b] .duo{filter:none;border:none;border-radius:12px}
[data-b] .labels .lab{border-radius:var(--r);border:1.5px solid color-mix(in srgb,var(--c,var(--encre)) 30%,var(--line));background:color-mix(in srgb,var(--c,var(--encre)) 7%,var(--sheet));box-shadow:var(--shadow)}
[data-b] .labels .lab b{color:var(--c,var(--encre));font-weight:900}
[data-b] .labels .lab:hover{border-color:var(--c,var(--encre));background:color-mix(in srgb,var(--c,var(--encre)) 12%,var(--sheet))}
[data-b] .labels .lab:hover b,[data-b] .labels .lab:hover span{color:var(--c,var(--encre))}
[data-b] .figures b{font-weight:900;color:var(--encre)}
[data-b] .pick h2::after,[data-b] .blockhead h2::after{height:4px;border-radius:4px;width:56px}
/* cartes, encadrés, boutons */
[data-b] .card,[data-b] .door,[data-b] .tile,[data-b] .need,[data-b] .band,[data-b] .exo,[data-b] .dictee,[data-b] .box,[data-b] details.carte,[data-b] .arows,[data-b] .aindex,[data-b] .rows{border-radius:var(--r);border:1.5px solid var(--line);box-shadow:none}
[data-b] .card,[data-b] .door,[data-b] .tile,[data-b] .need{box-shadow:var(--shadow)}
[data-b] .door b{font-weight:900}
[data-b] .btn{border-radius:999px;background:var(--encre);color:#fff;font-weight:800}
[data-b] .btn.ghost{background:transparent;color:var(--encre);border:1.5px solid var(--encre)}
[data-b] .counts span,[data-b] .counts a{border-radius:999px;border:1.5px solid var(--line)}
[data-b] .counts i{color:var(--c,var(--encre))}
[data-b] .lvhero{border-radius:22px}
/* pages de séquence et de langue : bandeau de couleur du niveau, comme l'ouverture d'un chapitre */
[data-b] .seqtop{background:var(--sheet);border:none;border-radius:22px;box-shadow:var(--shadow);overflow:hidden;padding:0;gap:0;align-items:stretch}
[data-b] .seqhead{--cc:var(--c,var(--encre));background:var(--cc);color:#fff;padding:clamp(20px,4vw,36px);display:flex;flex-direction:column;gap:10px;position:relative;overflow:hidden}
[data-b] .seqhead::after{content:"";position:absolute;right:-70px;top:-80px;width:220px;height:220px;border-radius:45% 55% 60% 40%/50% 45% 55% 50%;background:rgba(255,255,255,.10);pointer-events:none}
[data-b] .seqhead>*{position:relative;z-index:1}
[data-b] .seqhead .eyebrow,[data-b] .seqhead .eyebrow svg{color:#fff;opacity:.95}
[data-b] .seqhead h1{color:#fff;font-weight:900;font-size:clamp(32px,5vw,52px);line-height:1.08}
[data-b] .seqhead>p{color:#fff;opacity:.92;font-family:var(--text);font-style:italic}
[data-b] .seqhead .counts span,[data-b] .seqhead .counts a{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.35);color:#fff}
[data-b] .seqhead .counts i{color:#fff;font-weight:900}
[data-b] .seqhead .counts .live{color:#fff}
[data-b] .seqhead .dt{color:#fff;opacity:.85}
[data-b] .seqhead .prog{background:var(--sheet);color:var(--ink);border:none;border-radius:14px}
[data-b] .seqhead .prog *{color:inherit}
[data-b] .seqhead .prog .blabel{color:var(--cc)}
[data-b] .seqhead .prog-txt,[data-b] .seqhead .prog-old{color:var(--muted)}
[data-b] .seqtop .faces{padding:14px clamp(20px,4vw,36px) 18px}
[data-b] .seqtop .faces img{border-radius:12px}
[data-b] .crumb{font-family:var(--ui);font-weight:600}
[data-b] .parcours a.on{color:var(--c,var(--encre))}
[data-b] .toc a.on{background:var(--c,var(--encre));border-color:var(--c,var(--encre));color:#fff}
[data-b] .toc a.on i{color:#fff}
[data-b] .toc a,[data-b] .tocall{border-radius:999px}
[data-b] .seqhead .jumpbar a{background:rgba(255,255,255,.16);border:1.5px solid rgba(255,255,255,.4);color:#fff;border-radius:999px}
[data-b] .seqhead .jumpbar a small,[data-b] .seqhead .jumpbar a svg{color:#fff;opacity:.9}
[data-b] .seqhead .jumpbar a:hover{background:#fff;color:var(--cc)}
[data-b] .parcours i,[data-b] .toc i{border-radius:50%}
[data-b] .sechead{border-bottom:2px solid color-mix(in srgb,var(--c,var(--encre)) 25%,var(--line));align-items:center}
[data-b] .sechead .num{display:grid;place-items:center;flex:none;min-width:52px;height:52px;padding:0 8px;border-radius:999px;background:var(--c,var(--encre));color:#fff;font-family:var(--display);font-weight:900;font-size:24px}
[data-b] .sechead .kick{color:var(--c,var(--encre))}
[data-b] .texte{background:color-mix(in srgb,var(--c,var(--encre)) 5%,var(--sheet));border:none;border-radius:var(--r)}
[data-b] .texte>figcaption{font-family:var(--display);font-weight:900}
[data-b] .stepnav a{border-radius:999px}
[data-b] .eyebrow{color:var(--c,var(--encre))}
/* survol : couleur du site au lieu du rouge */
[data-b] main a:not(.btn):not(.lab):hover,[data-b] footer a:hover,[data-b] .crumb a:hover{color:var(--encre)}
@media (max-width:640px){[data-b] .sechead .num{min-width:42px;height:42px;font-size:20px}[data-b] .brand{font-size:18.5px}}
/* bandeaux sans cadre .seqtop (frise, glossaire, vocabulaire…) et textes clairs dans le bandeau */
[data-b] .seqhead{border-radius:22px;--muted:rgba(255,255,255,.88);--ink:#FFFFFF;--title:#FFFFFF}
[data-b] .seqtop .seqhead{border-radius:0}
[data-b] .seqhead>p{font-style:normal;font-size:17.5px;line-height:1.55;max-width:62ch}
[data-b] .seqhead .prog{--ink:#1F2A2E;--muted:#56676C}
[data-b] .seqhead .stats,[data-b] .seqhead .stats *{color:#fff}
[data-b] .rows .t{font-family:var(--ui);font-size:17px;font-weight:800;line-height:1.3}
[data-b] .rows .s{font-family:var(--ui);font-weight:500;font-size:14px;line-height:1.4}
[data-b] .rows .n{border-radius:50%;background:color-mix(in srgb,var(--c,var(--encre)) 14%,var(--sheet));color:var(--c,var(--encre));font-family:var(--ui);font-weight:900}
[data-b] .lexo{border-radius:999px}
@media (max-width:640px){:root[data-b] header.top .brand{font-size:16px;letter-spacing:-.015em;gap:5px}}
/* ===== 18/10/2026 : portraits plus grands, « À retenir » qui interpelle l'élève */
:root[data-b] .seqtop .faces{gap:16px;padding:22px clamp(18px,3vw,30px);align-self:center;align-items:flex-start}
:root[data-b] .seqtop .faces a,:root[data-b] .seqtop .faces figure{width:136px;gap:8px;font-size:14px;font-weight:800;color:var(--ink);text-align:center;line-height:1.25}
:root[data-b] .seqtop .faces img{width:100%;height:auto;aspect-ratio:4/5;border-radius:18px;object-fit:cover;box-shadow:0 12px 24px -16px rgba(31,42,46,.65)}
:root[data-b] .seqtop .faces:has(>:nth-child(3)) a,:root[data-b] .seqtop .faces:has(>:nth-child(3)) figure{width:116px}
@media (max-width:900px){:root[data-b] .seqtop .faces a,:root[data-b] .seqtop .faces figure{width:108px}}
@media (max-width:640px){:root[data-b] .seqtop .faces{padding:16px;gap:12px;justify-content:flex-start}
 :root[data-b] .seqtop .faces a,:root[data-b] .seqtop .faces figure,:root[data-b] .seqtop .faces:has(>:nth-child(3)) a,:root[data-b] .seqtop .faces:has(>:nth-child(3)) figure{width:calc((100% - 24px) / 3);max-width:120px;font-size:13px}}
/* portraits dans les pages */
:root[data-b] .who{width:124px;margin:0 0 10px 18px}
:root[data-b] .who img,:root[data-b] .who .mono{width:124px;height:155px;border-radius:16px}
:root[data-b] .texte .who{width:auto;margin:0 0 14px;gap:14px}
:root[data-b] .texte .who img,:root[data-b] .texte .who .mono{width:64px;height:80px;border-radius:12px}
:root[data-b] .texte .who figcaption{font-size:15px}
:root[data-b] .absent .who{width:104px}
:root[data-b] .absent .who img,:root[data-b] .absent .who .mono{width:104px;height:130px}
:root[data-b] .tl img,:root[data-b] .tl .mono{width:48px;height:60px;border-radius:10px}
:root[data-b] .bio-panel .who{width:84px;margin:0}:root[data-b] .bio-panel .who img,:root[data-b] .bio-panel .who .mono{width:84px;height:104px;border-radius:12px} /* frise : inchangé */
@media (max-width:480px){:root[data-b] .who{width:96px;margin-left:12px}:root[data-b] .who img,:root[data-b] .who .mono{width:96px;height:120px}
 :root[data-b] .absent .who{width:80px}:root[data-b] .absent .who img,:root[data-b] .absent .who .mono{width:80px;height:100px}}
/* À retenir */
:root[data-b] .k-retenir{--rc:var(--c,var(--encre));position:relative;margin-top:22px;padding:6px 24px 22px;border:2px solid color-mix(in srgb,var(--rc) 60%,transparent);border-radius:20px;background:linear-gradient(135deg,color-mix(in srgb,var(--rc) 13%,var(--sheet)),color-mix(in srgb,var(--rc) 4%,var(--sheet)) 70%)!important;box-shadow:0 16px 32px -22px color-mix(in srgb,var(--rc) 80%,transparent);line-height:1.65;overflow:visible}
:root[data-b] .k-retenir::before{content:none}
:root[data-b] .k-retenir>header{margin:-23px 0 8px}
:root[data-b] .k-retenir .rt-badge{display:inline-flex;align-items:center;gap:8px;padding:6px 16px 6px 6px;border-radius:999px;background:var(--rc);color:#fff;font:900 14.5px/1 var(--ui);letter-spacing:.08em;text-transform:uppercase;box-shadow:0 6px 14px -8px var(--rc)}
:root[data-b] .k-retenir .rt-badge svg{width:28px;height:28px;padding:4px;border-radius:50%;background:#fff;fill:none;stroke:var(--rc);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
:root[data-b] .k-retenir h4{margin-top:4px;font-size:23px;font-weight:900;color:color-mix(in srgb,var(--rc) 80%,var(--ink))}
:root[data-b] .k-retenir .rt-body{font-size:17.5px}
:root[data-b] .k-retenir .rt-body>*+*{margin-top:10px}
:root[data-b] .k-retenir li::marker{color:var(--rc);font-weight:900}
:root[data-b] .k-retenir b,:root[data-b] .k-retenir strong{background:linear-gradient(transparent 62%,color-mix(in srgb,var(--rc) 24%,transparent) 62%)}
:root[data-b] .k-retenir .defs dt{color:color-mix(in srgb,var(--rc) 85%,var(--ink))}
:root[data-b] .k-retenir .tw{background:var(--sheet)}
@media (max-width:480px){:root[data-b] .k-retenir{padding:6px 16px 18px}:root[data-b] .k-retenir .rt-body{font-size:16.5px}}
/* définitions dans les encadrés */
:root[data-b] .defs dt{color:color-mix(in srgb,var(--c,var(--encre)) 85%,var(--ink));font-family:var(--display);font-weight:900}
@media (max-width:640px){:root[data-b] .seqtop .faces:not(:has(>:nth-child(2)))>*{flex-direction:row;align-items:center;gap:16px;width:auto;max-width:none;font-size:17px;text-align:left}
 :root[data-b] .seqtop .faces:not(:has(>:nth-child(2))) img{width:112px;flex:none}}
