/* VÉRITAS — Apprendre : habillage « relief 3D » (01/12/2026).
   Chargée EN DERNIER sur toutes les pages d'Apprendre. Elle ne change aucune
   structure : elle accompagne les icônes 3D (assets/3d/, posées par commun.js)
   d'un rendu plus professionnel — cartes à ombre douce, pastilles colorées,
   boutons en relief, barre des matières flottante.
   Pour revenir en arrière : retirer la ligne <link …relief3d.css> des pages. */

:root{
  --r3-ombre:0 1px 2px rgba(16,32,80,.06),0 8px 24px -6px rgba(16,32,80,.14);
  --r3-ombre-h:0 2px 4px rgba(16,32,80,.08),0 14px 30px -8px rgba(16,32,80,.22);
  --r3-bleu:linear-gradient(180deg,#4F8BFF 0%,#2563EB 55%,#1E4FCB 100%);
  --r3-or:linear-gradient(180deg,#FFE07A 0%,#FFC93C 55%,#F2A900 100%);
}

/* ── Icônes 3D ─────────────────────────────────────────────── */
/* Légèreté : les icônes 3D portent déjà leur modelé ; aucune ombre-filtre sur les
   petites (coûteuses au défilement sur les téléphones modestes). Seules les grandes
   vignettes, peu nombreuses, reçoivent une ombre portée. */
img.i3d{display:inline-block;vertical-align:middle;object-fit:contain;flex:0 0 auto;-webkit-user-drag:none;user-select:none}
img.i3d.si,img.i3d.pic{margin-right:.35em}
.vt-n img.i3d,.ms-m img.i3d,.mosaique img.i3d{)}
h2 img.i3d.si,h3 img.i3d.si{width:1.35em;height:1.35em}

/* ── Barre des matières (rail) ────────────────────────────── */
.rail a.rm img.i3d{width:30px;height:30px;transition:transform .18s cubic-bezier(.3,1.6,.5,1)}
.rail a.rm:hover img.i3d{transform:translateY(-1px)}
.rail a.rm[aria-current] img.i3d{transform:none}
.rail a.rm[aria-current]{background:linear-gradient(180deg,#fff,var(--cp))!important;box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--c) 30%,#fff),0 4px 10px -4px var(--c)}
.niv{background:var(--r3-bleu)!important;color:#fff!important;border:0!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 4px 10px -3px rgba(37,99,235,.55);text-shadow:0 1px 1px rgba(0,0,0,.2)}
@media (max-width:860px){
  .rail{left:8px!important;right:8px!important;bottom:8px!important;height:64px!important;border-radius:22px;
    border:1px solid rgba(220,228,242,.9)!important;background:#fff!important;box-shadow:0 10px 30px -8px rgba(16,32,80,.28),inset 0 1px 0 #fff;align-items:center}
  .rail a.rm[aria-current]::before{bottom:-6px!important;height:3px;border-radius:3px}
  body{padding-bottom:84px}
}

/* ── En-tête : série et niveau ─────────────────────────────── */
.serie{background:linear-gradient(180deg,#fff,#F4F6FB)!important;border:1px solid #E3E8F2!important;
  box-shadow:inset 0 1px 0 #fff,0 3px 8px -3px rgba(16,32,80,.2)}
.serie img.i3d{width:20px;height:20px;margin-right:2px}

/* ── Titres de section : la vignette devient l'icône 3D elle-même ── */
.vt-n:has(img.i3d){background:none!important;border:0!important;box-shadow:none!important}
.vt-n:has(img.i3d)::after{display:none}
.vt-n img.i3d{width:46px!important;height:46px!important;margin:0}
.vt-s .vt-n img.i3d{width:38px!important;height:38px!important}
.vt-mini img.i3d{width:32px!important;height:32px!important}
.vt-m .vt-n img.i3d{width:52px!important;height:52px!important}

/* ── Ma semaine : pastilles en tuiles, matières en cartes ───── */
.ms-ps{gap:10px!important}
.ms-p,.ms-p.ok,.ms-p.re,.ms-p.ex{border-radius:16px!important;padding:10px 14px!important;font-size:14.5px!important;
  background:#EEF3FF!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 2px 6px -2px rgba(16,32,80,.12)}
.ms-p b{font-size:18px}
.ms-p.ok{background:#E3F6E8!important}
.ms-p.re{background:linear-gradient(135deg,#FFE7CF,#FFD7B0)!important;color:#7A3300}
.ms-p.ex{background:linear-gradient(135deg,#E6E4FF,#D6D2FB)!important;color:#3B2F8F!important}

.ms-g{gap:12px 16px!important}
.ms-l{background:#fff!important;border:1px solid #EEF1F7!important;border-radius:18px!important;padding:14px 14px!important;
  box-shadow:var(--r3-ombre);transition:transform .15s}
.ms-l:hover,.ms-l:focus-visible{transform:translateY(-2px);box-shadow:var(--r3-ombre-h)}
.ms-m{flex:0 0 52px!important;height:52px!important;background:none!important;border-radius:0!important}
.ms-m img.i3d{width:48px;height:48px}
.ms-x small{font:700 15px var(--sans)!important;color:var(--c,var(--m))!important}
.ms-x b{font-weight:600!important}
.ms-e,.ms-e.ok,.ms-e.red,.ms-e.av{border-radius:999px!important;padding:5px 12px!important;font-weight:700!important;
  background:var(--cp,#EEF3FF)!important;color:var(--c,#1E499B)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 2px 5px -2px rgba(16,32,80,.18)}
.ms-e.ok{background:#E3F6E8!important;color:#0B6B1C!important}
.ms-e.av{background:#F2F3F7!important;color:var(--gris)!important}

/* ── Boutons en relief ─────────────────────────────────────── */
.ms-go,.cta-or{background:var(--r3-or)!important;color:#3A2A00!important;border:0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65),inset 0 -2px 0 rgba(160,100,0,.25),0 6px 14px -5px rgba(242,169,0,.7)!important;
  transition:transform .12s,box-shadow .12s}
.ms-go:hover,.cta-or:hover{transform:translateY(-1px);filter:none!important}
.ms-go:active,.cta-or:active{transform:translateY(1px)}
.classes button[aria-pressed="true"]{background:var(--r3-bleu)!important;color:#fff!important;border-color:transparent!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 6px 14px -5px rgba(37,99,235,.65)!important}

/* Mosaïque d'accueil : icônes 3D plus grandes, sans pastille plate */
.mosaique span:has(img.i3d){background:linear-gradient(160deg,#fff,var(--cp))!important;box-shadow:var(--r3-ombre)}
.mosaique img.i3d{width:46px;height:46px}

@media (prefers-reduced-motion:reduce){.ms-l,.rail a.rm img.i3d,.ms-go{transition:none}.ms-l:hover{transform:none}}

/* ── Vignettes : l'icône 3D remplace la tuile colorée (plus lisible, plus nette) ── */
/* spécificité volontairement haute : modele.css impose ses tuiles avec « html body … !important » */
html:root body :is(.res-p,.pas,.tp-i,.med,.cv-i,.vm-ic).r3:has(>img.i3d),
html:root body :is(.res-p,.pas,.tp-i,.med,.cv-i,.vm-ic):is(span,div,i):has(>img.i3d),
html:root body .mosaique span:has(>img.i3d){background:none!important;box-shadow:none!important;border-color:transparent!important}
html:root body :is(.res-p,.tp-i,.cv-i)>img.i3d{width:100%!important;height:100%!important;margin:0!important)}
html:root body .pas>img.i3d{width:115%!important;height:115%!important;margin:0!important)}
.med>img.i3d{width:80%!important;height:80%!important;margin:0!important}
.mosaique span:has(>img.i3d){box-shadow:none!important}
.mosaique img.i3d{width:52px;height:52px}
/* tête de matière : grande icône sans cadre */
.mh-i:has(>img.i3d),.m-tete .ico:has(>img.i3d){background:none!important;box-shadow:none!important;border:0!important}

/* ── Leçon : onglets Cours / Révision / Quiz et puces d'infos en 3D ── */
.formats button img.i3d{width:34px;height:34px;transition:transform .15s}
.formats button[aria-selected="true"]{background:linear-gradient(180deg,#fff,var(--m-pale,#EEF3FF))!important;color:var(--m)!important;
  border-color:color-mix(in srgb,var(--m) 35%,#fff)!important;box-shadow:0 6px 16px -8px var(--m)!important}
.formats button[aria-selected="true"] img.i3d{transform:none}
.formats button{box-shadow:0 1px 2px rgba(16,32,80,.05)!important}
.puces img.i3d{width:18px;height:18px;margin-right:4px}

/* ════════ SANS CADRES (01/12/2026) ════════
   « Enlève les tableaux » (Jacques) : plus de boîtes bordées autour de chaque
   élément. Les listes deviennent des rangées aérées séparées d'un filet, portées
   par une grande icône 3D ; seule la rangée survolée se teinte. On GARDE les
   cadres qui ont une fonction : cartes de tarifs (.fo) et tableau des notes.
   Spécificité « html:root body » : modele.css et apprendre.css posent leurs
   boîtes avec « html body … !important ». */
html:root body :is(a.ms-l,a.res-c,a.tp-c,a.mat,a.bloc,a.scene,div.carte-a,div.objectif,div.ms-as,div.prog-niv,div.prog-badges,
  section.gout,section.defi,section.prof-fr,header.bandeau.ent,aside.nt-bilan,a.su-prec,a.su-suiv,button.porte,.formats button){
  background:none!important;border:0!important;box-shadow:none!important;outline-offset:2px}
/* rangées de liste : filet discret, survol teinté */
html:root body :is(a.ms-l,a.res-c,a.tp-c,a.mat){border-radius:16px!important;border-bottom:1px solid #EDF0F6!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;padding:14px 6px!important;transform:none!important}
html:root body :is(a.ms-l,a.res-c,a.tp-c,a.mat):hover,
html:root body :is(a.ms-l,a.res-c,a.tp-c,a.mat):focus-visible{background:linear-gradient(90deg,var(--cp,#F3F6FC),transparent 85%)!important;border-radius:16px!important}
html:root body :is(a.ms-l,a.res-c,a.tp-c,a.mat):hover img.i3d{transform:translateY(-1px)}
html:root body :is(.ms-m,.res-p,.pas,.tp-i,.med) img.i3d{transition:transform .22s cubic-bezier(.3,1.6,.5,1)}
.ms-g{gap:0 28px!important}
/* grandes icônes : c'est elles qui portent la page */
html:root body .ms-m{flex:0 0 60px!important;height:60px!important}
html:root body .ms-m img.i3d{width:58px!important;height:58px!important}
html:root body :is(.res-c,.tp-c) .res-p,html:root body .tp-i{flex:0 0 54px!important;width:54px!important;height:54px!important}
html:root body .mat .pas{flex:0 0 54px!important;width:54px!important;height:54px!important}
html:root body .mat .pas>img.i3d{width:100%!important;height:100%!important}
html:root body .med{width:64px!important;height:64px!important;flex:0 0 64px!important;background:none!important;box-shadow:none!important;border:0!important}
html:root body .med>img.i3d{width:100%!important;height:100%!important}
/* portes de « Tout pour progresser » : sans boîte, l'élue soulignée */
html:root body button.porte{border-radius:16px!important}
html:root body button.porte[aria-pressed="true"],html:root body button.porte[aria-selected="true"],html:root body button.porte.on{background:linear-gradient(180deg,transparent,var(--cp,#EEF3FF))!important;box-shadow:inset 0 -3px 0 var(--k,#1E499B)!important}
html:root body button.porte .res-p{width:52px!important;height:52px!important;flex-basis:52px!important}
/* leçon : en-tête ouvert, onglets soulignés comme une barre d'app */
html:root body header.bandeau.ent{padding-left:0!important;padding-right:0!important}
html:root body .formats{border-bottom:1px solid #EDF0F6}
html:root body .formats button{border-radius:0!important;padding-bottom:12px!important}
html:root body .formats button[aria-selected="true"]{box-shadow:inset 0 -3px 0 var(--m)!important;color:var(--m)!important}
html:root body .formats button img.i3d{width:40px!important;height:40px!important}
html:root body .formats button:not([aria-selected="true"]) img.i3d{opacity:.85}
/* vignette de tête (matière, leçon) : l'icône seule, en grand */
html:root body :is(.ent,.m-tete,.mh) :is(.ico,.mh-i,.vig,.ent-i):has(img.i3d){background:none!important;border:0!important;box-shadow:none!important}
/* petits encarts (objectif, astuce) : un fond très léger suffit à les situer */
html:root body :is(div.objectif,div.ms-as){background:linear-gradient(135deg,#FFF9E8,#FFFFFF 70%)!important;border-radius:20px!important;padding:16px!important}
html:root body section.gout{background:linear-gradient(180deg,#F1FBF3,transparent 160px)!important;border-radius:24px!important}
@media (prefers-reduced-motion:reduce){html:root body :is(.ms-m,.res-p,.pas,.tp-i,.med) img.i3d{transition:none}}
html:root body .medaille:has(>img.i3d){background:none!important;border:0!important;box-shadow:none!important;width:72px!important;height:72px!important;flex:0 0 72px!important}
html:root body .medaille>img.i3d{width:100%!important;height:100%!important)}
html:root body .ent-chap img.i3d{width:22px;height:22px}

/* Un seul signe par titre : quand la rubrique a son icône 3D, l'anneau décoratif s'efface (« double emploi »). */
html:root body :is(.sec-t h2,.res-fam>h2):has(img.i3d)::before{display:none!important}
html:root body :is(.sec-t h2,.res-fam>h2):has(img.i3d)::after{left:58px!important}
html:root body .res-fam>h2 .res-p{flex:0 0 46px!important;width:46px!important;height:46px!important;margin-right:4px}

/* ════════ EMPLOI DU TEMPS DE LA SEMAINE (01/12/2026) ════════
   Une rangée par jour : grand chiffre coloré à gauche, séances numérotées à
   droite, icône 3D de la matière en tête de chaque séance. Aucune boîte : un
   filet sépare les jours. La case à cocher reste (accessibilité, clavier),
   visuellement remplacée par l'icône. */
html:root body .edt-g{display:block!important}
html:root body .edt-j,html:root body .edt-j.off{display:grid!important;grid-template-columns:84px 1fr!important;gap:0 14px!important;align-items:start;
  background:none!important;box-shadow:none!important;border:0!important;border-top:1px solid #EDF0F6!important;border-radius:0!important;padding:16px 2px 12px!important;opacity:1!important}
html:root body .edt-j:first-child{border-top:0!important}
html:root body .edt-j>.edt-t,html:root body .edt-j>.edt-v{grid-column:auto!important}
.edt-num{font:800 56px/1 var(--sans);letter-spacing:-2px;color:var(--jc,#0C2A6A);text-align:left;padding-top:2px;font-variant-numeric:tabular-nums}
.edt-j.off .edt-num{color:#C9CFDB}
.edt-j.auj .edt-num{position:relative}
.edt-j.auj .edt-num::after{content:"aujourd'hui";position:absolute;left:2px;top:62px;font:700 9.5px var(--sans);letter-spacing:0;text-transform:uppercase;color:var(--jc)}
.edt-c{min-width:0}
html:root body .edt-h{flex-direction:row!important;align-items:baseline;gap:8px;margin:2px 0 8px!important}
html:root body .edt-h b{font:700 18px var(--sans)!important;color:#0F1B3D!important}
html:root body .edt-h small{font:500 15px var(--sans)!important;color:#5B6478!important}
html:root body .edt-h small::before{content:"— "}
html:root body .edt-t{display:grid!important;grid-template-columns:34px 1fr;gap:10px;align-items:start;background:none!important;box-shadow:none!important;
  border:0!important;border-bottom:1px solid #F2F4F8!important;border-radius:0!important;padding:8px 0 10px!important;margin:0!important;position:relative}
html:root body .edt-t:last-child{border-bottom:0!important}
html:root body .edt-t>input{position:absolute;opacity:0;width:34px;height:34px;margin:0;left:0;top:6px;cursor:pointer}
html:root body .edt-t>input:focus-visible+.edt-i{outline:2px solid var(--c);outline-offset:3px;border-radius:50%}
.edt-i{width:34px;height:34px;display:grid;place-items:center;position:relative;pointer-events:none}
.edt-i img.i3d{width:30px!important;height:30px!important)}
.edt-i .etiq{display:none}
html:root body .edt-t small{font:700 15.5px var(--sans)!important;color:var(--c)!important}
html:root body .edt-t small img.i3d,html:root body .edt-t small svg{display:none}
html:root body .edt-t a{font-size:14.5px!important;line-height:1.45;color:#3B4255!important}
html:root body .edt-t.fait small{color:#2E8B57!important}
html:root body .edt-t.fait a{text-decoration:none!important;color:#8A93A6!important}
html:root body .edt-v{font-size:14px!important;color:#8A93A6!important;margin:0 0 4px!important}
@media (max-width:520px){html:root body .edt-j,html:root body .edt-j.off{grid-template-columns:66px 1fr!important}.edt-num{font-size:46px}.edt-j.auj .edt-num::after{top:50px}}

/* ════════ PROGRAMME DE LA MATIÈRE (01/12/2026) ════════
   Chaque leçon : son NUMÉRO DU PROGRAMME seul, en pastille ronde en relief
   (« la numérotation seule suffit », Jacques). Chapitre : grand
   chiffre en relief. Rangées sans boîte, séparées d'un filet. */
html:root body .lg{align-items:center!important;gap:14px!important;padding:14px 4px!important;background:none!important}
html:root body .lg .n{flex:0 0 36px!important;width:36px!important;height:36px!important;min-width:36px;padding:0!important;border:0!important;border-radius:50%!important;
  display:grid!important;place-items:center;opacity:1!important;font:800 14px var(--sans)!important;color:#fff!important;font-variant-numeric:tabular-nums;
  background:linear-gradient(160deg,#6FA0FF 0%,#2F67E0 55%,#1D46B0 100%)!important;
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.45),inset 0 -2px 0 rgba(0,20,90,.25),0 4px 8px -3px rgba(30,70,176,.6)!important;text-shadow:0 1px 1px rgba(0,0,0,.2)}
html:root body .lg:not(.r) .n{background:#E9EDF5!important;color:#7A8398!important;box-shadow:none!important;text-shadow:none}
html:root body .lgw-sem .lg .n{background:linear-gradient(160deg,#FFE27A,#E8A600)!important;color:#3A2A00!important;text-shadow:none}
html:root body .lg .t{font:600 16px/1.35 var(--sans)!important;color:#0F1B3D!important}
html:root body .lg .et.red{color:#9A6F00!important;font:700 13px var(--sans)!important}
html:root body .lg .chev{color:#C9A227}
html:root body .lgw,html:root body .lgw-sem>.lg,html:root body .lgw-sem>a.lg{background:none!important}
/* pastilles de ressources sous la leçon : petites étiquettes douces */
html:root body .res-pa{padding-left:54px}
html:root body .res-pa{gap:4px 18px!important}
html:root body .res-pa a,html:root body .res-pa a:hover{background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:4px 0!important;
  color:var(--k,#1E499B)!important;font:600 13.5px var(--sans)!important;text-decoration:none!important}
html:root body .res-pa a:hover span{text-decoration:underline;text-underline-offset:3px}
html:root body .res-pa a img.i3d{width:18px!important;height:18px!important;margin-right:3px}
/* tête de chapitre : grand chiffre en relief */
html:root body .chap-n{width:58px!important;height:58px!important;flex:0 0 58px!important;border-radius:16px!important;font:800 30px var(--sans)!important;color:#fff!important;
  background:linear-gradient(160deg,#6FA0FF 0%,#2F67E0 50%,#1D46B0 100%)!important;border:0!important;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.45),inset 0 -3px 0 rgba(0,20,90,.3),0 10px 18px -8px rgba(30,70,176,.8)!important;text-shadow:0 2px 2px rgba(0,0,0,.2);position:relative}
html:root body .chap-t h3{font:800 24px var(--sans)!important;color:#0F1B3D!important}
html:root body .chap-t small{font:800 13px var(--sans)!important;letter-spacing:.12em;text-transform:uppercase;color:#1E499B!important}
html:root body .chap,html:root body .chap-t{background:none!important;border:0!important;box-shadow:none!important}
html:root body .atelier-l{border:0!important;background:none!important;box-shadow:none!important;padding-left:0!important;color:#1E499B!important;font-weight:700!important}
@media (max-width:520px){html:root body .res-pa{padding-left:52px}}

/* ════════ ANNALES ET ÉPREUVES (01/12/2026) ════════
   « Change l'icône, rends plus captivant, dispose très bien » : rubrique ouverte
   par le classeur d'archives 3D ; une sous-partie par matière, avec son icône 3D,
   son nom en couleur et le nombre de sujets ; chaque sujet porte l'icône de sa
   matière. Sur grand écran, deux colonnes. */
html:root body #epreuve>h2{font:800 26px/1.2 var(--sans)!important;gap:12px}
html:root body #epreuve>h2 .res-p{flex:0 0 56px!important;width:56px!important;height:56px!important}
html:root body #epreuve>.res-int{font-size:15.5px!important;max-width:560px;margin:6px 0 18px!important}
html:root body .res-sm{margin:0 0 22px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html:root body .res-sm>h3{display:flex!important;align-items:center;gap:12px;margin:0 0 4px!important;padding:10px 0 8px!important;
  border-bottom:2px solid color-mix(in srgb,var(--mc,#1E499B) 22%,#fff)!important;font:800 19px var(--sans)!important;color:var(--mc,#1E499B)!important;background:none!important}
html:root body .res-sm>h3::before,html:root body .res-sm>h3::after{display:none!important}
.res-sm>h3 img.i3d,.res-sm>h3 svg{width:34px!important;height:34px!important;margin:0!important)}
.res-sm>h3 .etiq{display:none}
.res-sm>h3 em{margin-left:auto;font:700 12.5px var(--sans);font-style:normal;color:var(--mc,#1E499B);background:var(--mcp,#EEF3FF);border-radius:999px;padding:3px 10px}
html:root body .res-cm{border-bottom:1px solid #F0F2F7!important;padding:12px 4px!important;align-items:center!important}
html:root body .res-cm .res-p{flex:0 0 44px!important;width:44px!important;height:44px!important}
html:root body .res-cm .res-x strong{font:700 15.5px/1.35 var(--sans)!important;color:#0F1B3D!important}
html:root body .res-cm .res-x small{font-size:13.5px!important;color:#5B6478!important}
html:root body .res-cm::after{content:"›";margin-left:auto;padding-left:10px;font:700 22px var(--sans);color:var(--mc,#9AA3B5);opacity:.7}
@media (min-width:760px){html:root body .res-sm>.res-g{display:grid!important;grid-template-columns:1fr 1fr;gap:0 26px}}
/* pas de double emploi : l'icône de la matière est dans l'en-tête, les sujets s'alignent sous son nom */
html:root body .res-cm .res-p{display:none!important}
html:root body a.res-c.res-cm{padding:12px 4px 12px 46px!important}
/* « Voir plus » : un lien, pas un bouton encadré */
html:root body button.voir-plus{border:0!important;background:none!important;box-shadow:none!important;padding:10px 4px!important;
  color:var(--mc,#1E499B)!important;font:700 14.5px var(--sans)!important;display:block;margin:4px auto 0 46px!important}
html:root body button.voir-plus::after{content:" ›";font-size:17px}
html:root body button.voir-plus[aria-expanded="true"]::after{content:" ‹"}
html:root body button.voir-plus:hover{text-decoration:underline;text-underline-offset:3px}

/* ════════ MASCOTTE ET ICÔNES RÉALISTES (01/12/2026) ════════ */
html:root body .kalao-r{display:flex!important;align-items:center;gap:12px;background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
.kalao-img{flex:0 0 120px;width:120px;height:120px);animation:kalaoV 4s ease-in-out infinite}
html:root body .kalao-r p{position:relative;margin:0;padding:14px 16px!important;border:0!important;border-radius:20px!important;
  background:linear-gradient(160deg,#EAF1FF,#DCE7FB)!important;color:#1F2A44!important;font:500 16px/1.45 var(--sans)!important;box-shadow:0 8px 18px -12px rgba(30,73,155,.5)!important}
html:root body .kalao-r p::before{content:"";position:absolute;left:-9px;top:50%;margin-top:-9px;border:9px solid transparent;border-left:0;border-right-color:#E6EEFF}
@keyframes kalaoV{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@media (prefers-reduced-motion:reduce){.kalao-img{animation:none}}
/* icônes réalistes : un peu plus grandes là où elles portent la page */
html:root body .ms-m img.i3d[src*="/r-"]{width:60px!important;height:60px!important}
/* Matières sans illustration réaliste (ECM, philo, info…) : leur dessin d'origine reste en couleur,
   à la même taille que les illustrations, pour une barre homogène. */
html:root body .rail a.rm svg{filter:none!important;opacity:1!important;width:28px!important;height:28px!important}
html:root body .ms-m>svg{width:44px!important;height:44px!important}
html:root body .ms-m .etiq{display:none}

/* 01/12/2026 — « enlève les ombres… tout doit se fondre dans le décor » : aucune ombre ni filtre sur les icônes */
html:root body img.i3d,html:root body .kalao-img{filter:none!important}

/* ════════ LISTES NUMÉROTÉES (02/12/2026) ════════
   « C'est touffu : hiérarchise ou numérote » (Jacques). La rubrique garde sa
   grande icône dans son titre ; ses éléments ne la répètent plus : chacun porte
   son NUMÉRO dans une pastille à la couleur de la rubrique. Compteur CSS : les
   éléments repliés (« Voir plus ») ne comptent pas, puis reprennent la suite. */
html:root body .res-g{counter-reset:resn}
html:root body .res-g>a.res-c:not([hidden]){counter-increment:resn}
html:root body .res-g>a.res-c:not(.res-cm) span.res-p,html:root body a.res-c .res-p{flex:0 0 34px!important;width:34px!important;height:34px!important;border-radius:50%!important;display:grid!important;place-items:center;
  background:color-mix(in srgb,var(--k,#1E499B) 12%,#fff)!important;box-shadow:none!important;border:0!important;margin-top:2px}
html:root body .res-g>a.res-c span.res-p>*,html:root body a.res-c .res-p>*{display:none!important}
html:root body a.res-c .res-p::before{content:counter(resn);font:800 15px var(--sans);color:var(--k,#1E499B);font-variant-numeric:tabular-nums}
html:root body a.res-c{align-items:flex-start!important;gap:14px!important}
html:root body a.res-c .res-x strong{font:700 16px/1.35 var(--sans)!important;color:#0F1B3D!important}
/* titre de rubrique : l'icône porte la hiérarchie */
html:root body .res-fam>h2 .res-p{flex:0 0 52px!important;width:52px!important;height:52px!important}
html:root body .res-fam>.res-int{margin-left:0!important;padding-left:0!important}
/* annales rangées par matière : pas de pastille, alignement sous le nom de la matière */
html:root body a.res-c.res-cm .res-p{display:none!important}
html:root body .res-g>a.res-c:not(.res-cm)>span.res-p.res-p{background:color-mix(in srgb,var(--k,#1E499B) 12%,#fff)!important}

/* Calendrier sous Ma semaine (02/12/2026) ; le compte à rebours garde son fond bleu nuit (texte blanc lisible). */
.mon-cal{margin:8px 0 26px}
.mon-cal>.carte-a>h3{display:flex;align-items:center;gap:10px;font:800 20px var(--sans);color:#0F1B3D;margin:0 0 12px}
