/* HBY Espace élève 1.0.0 */
body.hbyesp-body{margin:0!important;padding:0!important;background:#F2F2F5!important;color:#4A4F6E}
.hbyesp.he{--ink:#0D1152;--red:#B3281E;--blue:#0B769F;--sky:#C1E4F5;--grey:#F2F2F5;--txt:#4A4F6E;--line:#dfe3ec;--ok:#2f9e5b;
 font-family:"Segoe UI","Noto Sans","Noto Sans Arabic",system-ui,-apple-system,Roboto,Arial,sans-serif;color:var(--txt);font-size:15px;line-height:1.45;
 display:grid;grid-template-columns:260px minmax(0,1fr);min-height:100vh;background:var(--grey);text-align:left}
.hbyesp.he *,.hbyesp.he *::before,.hbyesp.he *::after{box-sizing:border-box}
.hbyesp.he a{text-decoration:none!important;color:inherit;box-shadow:none}
.hbyesp.he h1,.hbyesp.he h2,.hbyesp.he h3,.hbyesp.he p{margin:0;padding:0;font-family:inherit;letter-spacing:0;text-transform:none}
.hbyesp.he img{max-width:100%;height:auto;border:0}
.hbyesp.he button{font-family:inherit}
.hbyesp.he [hidden]{display:none!important}

/* ---------- menu ---------- */
.hbyesp-side{background:#fff;border-right:1px solid var(--line);padding:20px 14px;display:flex;flex-direction:column;gap:3px;position:sticky;top:0;height:100vh;overflow-y:auto;z-index:50}
.admin-bar .hbyesp-side{top:32px;height:calc(100vh - 32px)}
.hbyesp-brand{display:flex;align-items:center;gap:10px;padding:0 8px 16px}
.hbyesp-brand img{width:50px}
.hbyesp-brand b{font-size:21px;line-height:1;color:var(--ink);font-weight:800}
.hbyesp-brand b em{font-style:normal;color:var(--red)}
.hbyesp-nav{display:flex;flex-direction:column;gap:2px}
.hbyesp-si{display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:12px;font-weight:600;font-size:14.5px;color:var(--txt)!important;position:relative;line-height:1.2}
.hbyesp-si:hover{background:var(--grey)}
.hbyesp-si .hbyesp-ico{color:var(--ink);flex:0 0 auto}
.hbyesp-si.on{background:var(--ink);color:#fff!important}
.hbyesp-si.on .hbyesp-ico{color:#fff}
.hbyesp-si.sub{padding-left:30px;font-weight:500;font-size:14px;white-space:nowrap}
.hbyesp-si.off{opacity:.5;pointer-events:none}
.hbyesp-fb{width:24px;height:22px;display:grid;place-items:center;flex:0 0 auto}
.hbyesp-fb img{width:24px}
.hbyesp-pr{white-space:nowrap;margin-left:auto;padding:2px 8px;border-radius:999px;background:#fde9e7;color:var(--red);font-weight:700;font-size:11.5px}
.hbyesp-bd{margin-left:auto;min-width:22px;height:22px;border-radius:999px;background:var(--red);color:#fff;font-weight:700;font-size:12px;line-height:22px;text-align:center;padding:0 6px}
.hbyesp-sep{height:1px;background:var(--line);margin:6px}
.hbyesp-lvl{margin-top:auto;padding:12px;border-radius:12px;background:var(--grey);font-size:13px;line-height:1.4}
.hbyesp-lvl b{display:block;color:var(--ink);font-size:15px}
.hbyesp-lvl a{display:flex;align-items:center;gap:6px;margin-top:8px;color:var(--blue)!important;font-weight:600;font-size:12.5px}
.hbyesp-voir{margin:0 4px 12px;padding:8px 10px;border-radius:12px;background:#fff7e0;border:1px dashed #e0b000;font-size:12px}
.hbyesp-voir div{display:flex;gap:4px;margin-top:4px}
.hbyesp-voir a{flex:1;text-align:center;padding:4px;border-radius:8px;background:#fff;border:1px solid var(--line);font-weight:700;color:var(--ink)!important}
.hbyesp-voir a.on{background:var(--ink);color:#fff!important}
.hbyesp-fermer,.hbyesp-haut,.hbyesp-bnav,.hbyesp-ombre{display:none}

/* ---------- contenu ---------- */
.hbyesp-main{padding:26px 32px 40px;min-width:0}
.hbyesp-titre{font-weight:800!important;font-size:26px!important;color:var(--ink)!important;margin:0 0 18px!important}
.hbyesp-tn{display:block;font-weight:600;font-size:12.5px;line-height:1.45;color:#2B8DC4;margin-top:1px;font-family:"Segoe UI","Noto Sans","Noto Sans Arabic",Tahoma,Arial,sans-serif;text-align:start}
.hbyesp-tn.tnh{display:inline;font-size:20px;margin-left:10px}
.hbyesp-tn.tnr{display:inline;color:#a3443c;font-size:13px;margin:0 8px}
.hbyesp-tn.tnw{display:inline;color:#ffe1dc;font-size:12px;margin:0 0 0 6px}
.hbyesp-tn.tnd{display:inline;color:var(--sky);margin-left:8px;font-size:14px}
.hbyesp-tn.tns{display:inline;margin-left:6px;font-size:12.5px}
.hbyesp-tnx{color:#2B8DC4!important;font-weight:600;font-size:13.5px!important;margin-top:6px!important;text-align:start}
.hbyesp-btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:10px 16px;border-radius:10px;background:var(--ink);color:#fff!important;font-weight:700;font-size:14px;white-space:nowrap;border:0;cursor:pointer}
.hbyesp-btn.r{background:var(--red)}
.hbyesp-btn.gris{background:#c9cede;color:var(--ink)!important}
.hbyesp-card{background:#fff;border:1.5px solid var(--line);border-radius:18px;padding:18px;display:block;color:var(--txt)!important;transition:transform .12s,box-shadow .12s}
a.hbyesp-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(13,17,82,.08)}
.hbyesp-row{display:grid;gap:16px;margin-bottom:18px}
.hbyesp-row.r2{grid-template-columns:1.1fr 1fr}
.hbyesp-row.r3{grid-template-columns:repeat(3,1fr)}
.hbyesp-row.r2s{grid-template-columns:repeat(2,1fr)}
.hbyesp-row.r3s{grid-template-columns:repeat(3,1fr)}
.hbyesp-vide{padding:18px;border-radius:14px;background:#fff;border:1.5px dashed #9fb4cc;color:#6a6f8a;margin:10px 0 16px!important}

/* accueil */
.hbyesp-bar{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.hbyesp-bar h1{font-weight:800!important;font-size:28px!important;line-height:1.2!important;color:var(--ink)!important}
.hbyesp-bar h1 small{display:block;font-weight:400;font-size:14px;color:var(--txt);margin-top:3px}
.hbyesp-alert{display:flex;gap:12px;align-items:center;padding:12px 16px;border-radius:14px;background:#fde9e7;border:1.5px solid var(--red);margin-bottom:18px}
.hbyesp-alert .i{width:34px;height:34px;flex:0 0 34px;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;font-weight:800;font-size:18px}
.hbyesp-alert p{font-weight:600;font-size:15px;line-height:1.35;color:#7d1c15}
.hbyesp-alert p span:last-child{font-weight:400;color:#8a3a33}
.hbyesp-alert>a{margin-left:auto;padding:10px 16px;border-radius:10px;background:var(--red);color:#fff!important;font-weight:700;font-size:14px;white-space:nowrap}
.hbyesp-card.myhby{display:flex;gap:18px;align-items:center;border:2px solid var(--ink)}
.figb{width:96px;height:96px;flex:0 0 96px;border-radius:22px;background:var(--sky);display:grid;place-items:center;color:var(--ink)}
.figb img{width:80px}
.hbyesp-card.myhby h2{font-weight:800!important;font-size:26px!important;color:var(--ink)!important}
.hbyesp-card.myhby p{font-size:14.5px;line-height:1.5;margin:4px 0 10px}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chips span{padding:5px 11px;border-radius:999px;background:var(--grey);border:1px solid var(--line);font-weight:600;font-size:12.5px;color:var(--ink)}
.hbyesp-card.task{background:var(--ink);color:#fff!important;border:0}
.hbyesp-card.task .h{display:flex;align-items:center;margin-bottom:4px}
.hbyesp-card.task .h b{font-weight:800;font-size:22px}
.hbyesp-card.task .h em{margin-left:auto;font-weight:600;font-size:12px;font-style:normal;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.14)}
.hbyesp-card.task .vide{color:#d9dcf5;margin:12px 0}
.hbyesp-card.task .it{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.08);border-radius:10px;padding:8px 12px;font-weight:600;font-size:14px;margin-top:7px;color:#fff!important}
.hbyesp-card.task .it i{width:22px;height:22px;flex:0 0 22px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:12px;font-style:normal;background:rgba(255,255,255,.2)}
.hbyesp-card.task .it i.ok{background:var(--ok)}
.hbyesp-card.task .it.rattrapage i{background:var(--red)}
.hbyesp-card.task .it small{margin-left:auto;font-weight:700;color:#9fe0b6;white-space:nowrap}
.hbyesp-card.task .it small.w{color:#ffd2cc;font-weight:600}
.hbyesp-card.task .pb{height:7px;border-radius:99px;background:rgba(255,255,255,.18);margin-top:12px}
.hbyesp-card.task .pb span{display:block;height:100%;border-radius:99px;background:#fff}
.hbyesp-card.task .f{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;font-weight:600;font-size:13.5px;color:#d9dcf5}
.hbyesp-mat{display:flex;align-items:center;gap:12px;background:#fff;border:1.5px dashed #9fb4cc;border-radius:16px;padding:14px 18px;margin:0 0 18px}
.hbyesp-mat .mi{width:52px;height:52px;flex:0 0 52px;border-radius:14px;background:var(--sky);color:var(--ink);display:grid;place-items:center}
.hbyesp-mat b{display:block;font-weight:800;font-size:18px;color:var(--ink)}
.hbyesp-mat small{display:block;font-size:12.5px;color:#7a7f99}
.hbyesp-mat .soon{margin-left:auto;padding:5px 9px;border-radius:999px;background:var(--grey);color:var(--ink);font-weight:700;font-size:11.5px;border:1px solid var(--line)}
.hbyesp-card.t{display:flex;align-items:center;gap:14px}
.hbyesp-card.t .ic,.hbyesp-card.g .ic{width:50px;height:50px;flex:0 0 50px;border-radius:14px;background:var(--sky);color:var(--ink);display:grid;place-items:center}
.hbyesp-card.t b{display:block;font-weight:700;font-size:17px;line-height:1.2;color:var(--ink)}
.hbyesp-card.t small{display:block;font-size:13px;margin-top:2px}
.hbyesp-outils{display:grid;grid-template-columns:2fr 3fr;gap:16px}
.hbyesp-outils .sec{font-weight:800;font-size:14px;color:var(--ink);letter-spacing:.04em;margin:6px 2px 10px}
.hbyesp-card.g{text-align:center;padding:16px 10px}
.hbyesp-card.g .ic{margin:0 auto 8px}
.hbyesp-card.g b{display:block;font-weight:700;font-size:15.5px;color:var(--ink)}
.hbyesp-card.g .hbyesp-tn{text-align:center}
.hbyesp-card.g small{font-size:13px}
.hbyesp-card.g.bac .ic{background:var(--red);color:#fff}
.hbyesp-card.g.off{opacity:.6}

/* pages (My HBY, formules, dictionnaire) */
.hbyesp-hd{display:flex;align-items:center;gap:16px;margin-bottom:20px}
.hbyesp-hd .figb{width:76px;height:76px;flex-basis:76px;border-radius:18px}
.hbyesp-hd .figb img{width:64px}
.hbyesp-hd h1{font-weight:800!important;font-size:28px!important;line-height:1.2!important;color:var(--ink)!important}
.hbyesp-hd p{font-size:15px;margin-top:3px}
.hbyesp-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.hbyesp-card.ch{display:flex;flex-direction:column;gap:10px;min-height:200px}
.hbyesp-card.ch .top{display:flex;align-items:center}
.hbyesp-card.ch .n{width:34px;height:34px;border-radius:50%;background:var(--sky);color:var(--ink);display:grid;place-items:center;font-weight:800}
.hbyesp-card.ch .ic{margin-left:auto;width:52px;height:52px;border-radius:14px;background:var(--sky);display:grid;place-items:center}
.hbyesp-card.ch .ic img{width:42px}
.hbyesp-card.ch h3{font-weight:800!important;font-size:19px!important;color:var(--ink)!important}
.hbyesp-card.ch p{font-size:14px;flex:1}
.hbyesp-card.ch .hbyesp-btn{align-self:flex-start}
.hbyesp-card.ch.off{opacity:.65}
.hbyesp-filtre{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:16px;position:sticky;top:0;background:var(--grey);padding:8px 0;z-index:5}
.hbyesp-q{display:flex;align-items:center;gap:8px;flex:1 1 260px;max-width:420px;height:44px;padding:0 12px;border-radius:12px;background:#fff;border:1.5px solid var(--line);color:#8a8fa8}
.hbyesp-q input{border:0!important;outline:0;flex:1;font:inherit;font-size:15px;background:transparent!important;box-shadow:none!important;padding:0!important;height:auto!important;color:var(--ink)}
.hbyesp-chips{display:flex;flex-wrap:wrap;gap:6px}
.hbyesp-chips button{padding:7px 12px;border-radius:999px;background:#fff;border:1.5px solid var(--line);font-weight:700;font-size:12.5px;color:var(--ink);cursor:pointer}
.hbyesp-chips button.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.hbyesp-sec{margin-bottom:22px}
.hbyesp-sec h2{font-weight:800!important;font-size:17px!important;color:var(--ink)!important;margin:4px 2px 10px!important}
.hbyesp-fx,.hbyesp-mots{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.hbyesp-card.fx h3,.hbyesp-card.mot h3{font-weight:800!important;font-size:16px!important;color:var(--ink)!important;margin-bottom:6px!important;display:flex;gap:8px;align-items:baseline}
.hbyesp-card.mot h3 small{margin-left:auto;font-weight:600;font-size:11.5px;color:#8a8fa8}
.hbyesp-card.fx .eq{font-family:"Cambria Math",Cambria,"Times New Roman",serif;font-size:18px;color:var(--ink);background:#eef6fb;border-left:4px solid var(--blue);border-radius:8px;padding:10px 12px;margin-bottom:8px}
.hbyesp-card.fx ul{margin:6px 0 0 18px;padding:0;font-size:13.5px}
.hbyesp-card.fx .ex{margin-top:10px;padding:10px 12px;border-radius:10px;background:var(--grey);font-size:13.5px}
.hbyesp-card.fx .ex span{display:block;font-weight:800;font-size:11.5px;letter-spacing:.06em;color:var(--blue);text-transform:uppercase}
.hbyesp-card.fx .ex .calc{font-family:"Cambria Math",Cambria,serif;color:var(--ink)}
.hbyesp-card.mot p{font-size:14px}
.hbyesp-rien{text-align:center;color:#8a8fa8;padding:30px}

/* compte en attente */
.hbyesp-attente{grid-column:1/-1;align-self:start;max-width:560px;margin:10vh auto;background:#fff;border-radius:20px;padding:30px;text-align:center}
.hbyesp-attente img{width:90px;margin-bottom:10px}
.hbyesp-attente h1{font-weight:800!important;font-size:24px!important;color:var(--ink)!important}
.hbyesp-attente p{margin:12px 0!important}
.hbyesp-attente .hbyesp-tn{text-align:center;font-size:16px}

/* ---------- téléphone et tablette ---------- */
@media (max-width:960px){
 .hbyesp-row.r2{grid-template-columns:1fr}
 .hbyesp-outils{grid-template-columns:1fr}
}
@media (max-width:900px){
 .hbyesp.he{grid-template-columns:1fr;padding-bottom:calc(74px + env(safe-area-inset-bottom))}
 .hbyesp-side{position:fixed;top:0;left:0;bottom:0;width:300px;max-width:86vw;height:100%;transform:translateX(-105%);transition:transform .22s;box-shadow:0 0 40px rgba(0,0,0,.25);z-index:1000;padding-top:50px}
 .admin-bar .hbyesp-side{top:0;height:100%}
 .hbyesp.he.ouvert .hbyesp-side{transform:none}
 .hbyesp-fermer{display:grid;place-items:center;position:absolute;top:10px;right:10px;width:38px;height:38px;border-radius:50%;border:0;background:var(--grey);color:var(--ink);cursor:pointer}
 .hbyesp-ombre{display:block;position:fixed;inset:0;background:rgba(13,17,82,.35);z-index:999}
 .hbyesp-haut{display:flex;align-items:center;gap:10px;padding:12px 16px 4px;position:sticky;top:0;background:var(--grey);z-index:40}
 .hbyesp-haut .hbyesp-brand{padding:0;gap:8px}
 .hbyesp-haut .hbyesp-brand b{font-size:22px}
 .hbyesp-niv{padding:2px 9px;border-radius:999px;border:1.5px solid var(--blue);color:var(--blue);font-weight:700;font-size:12.5px;background:#eaf6fc}
 .hbyesp-sp{flex:1}
 .hbyesp-bell{position:relative;width:42px;height:42px;border-radius:50%;background:#fff;display:grid;place-items:center;color:var(--ink)!important;border:1px solid var(--line)}
 .hbyesp-bell i{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--red);color:#fff;font:700 11.5px/20px system-ui;font-style:normal;text-align:center}
 .hbyesp-ava{width:42px;height:42px;border-radius:50%;background:var(--sky);border:0;color:var(--ink);font-weight:800;font-size:16px;cursor:pointer;padding:0}
 .hbyesp-main{padding:10px 16px 24px}
 .hbyesp-bnav{display:flex;position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom));z-index:900}
 .hbyesp-bnav a,.hbyesp-bnav button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;font-weight:600;font-size:11.5px;color:#8a8fa8!important;background:none;border:0;padding:4px 0;position:relative;cursor:pointer}
 .hbyesp-bnav a.on{color:var(--ink)!important}
 .hbyesp-bnav img{width:28px;height:24px;object-fit:contain;opacity:.55}
 .hbyesp-bnav a.on img{opacity:1}
 .hbyesp-bnav i{position:absolute;top:0;left:calc(50% + 6px);min-width:18px;height:18px;border-radius:999px;background:var(--red);color:#fff;font:700 11px/18px system-ui;font-style:normal;padding:0 4px}
 .hbyesp-bar h1{font-size:24px!important}
 .hbyesp-bar h1 .hbyesp-tn.tnh{display:block;margin:2px 0 0;font-size:18px}
 .hbyesp-alert{flex-wrap:wrap}
 .hbyesp-alert .hbyesp-tn.tnr{display:block;margin:2px 0}
 .hbyesp-alert p span:last-child{display:block}
 .hbyesp-card.myhby{gap:12px;padding:14px}
 .hbyesp-card.myhby .figb{width:68px;height:68px;flex-basis:68px;border-radius:16px}
 .hbyesp-card.myhby .figb img{width:56px}
 .hbyesp-card.myhby h2{font-size:22px!important}
 .hbyesp-card.myhby p,.hbyesp-card.myhby .chips{display:none}
 .hbyesp-card.myhby .hbyesp-btn{padding:8px 12px}
 .hbyesp-row.r3,.hbyesp-row.r3s{grid-template-columns:repeat(3,1fr);gap:8px}
 .hbyesp-card.t{flex-direction:column;text-align:center;padding:12px 6px;gap:6px;position:relative}
 .hbyesp-card.t .hbyesp-tn{text-align:center}
 .hbyesp-card.t small{display:none}
 .hbyesp-card.t b{font-size:14px}
 .hbyesp-card.t .hbyesp-bd{position:absolute;top:8px;right:8px}
 .hbyesp-card.g{padding:12px 6px}
 .hbyesp-card.g b{font-size:13.5px}
 .hbyesp-mat small{display:none}
 .hbyesp-hd .figb{width:60px;height:60px;flex-basis:60px}
 .hbyesp-hd .figb img{width:48px}
 .hbyesp-hd h1{font-size:23px!important}
 .hbyesp-hd h1 .hbyesp-tn.tnh{display:block;margin:2px 0 0;font-size:16px}
 .hbyesp-fx,.hbyesp-mots{grid-template-columns:1fr}
 .hbyesp-filtre{top:58px}
 .hbyesp-chips{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:4px}
 .hbyesp-chips button{white-space:nowrap}
}

/* nouveautés */
.hbyesp-nouv{display:flex;gap:12px;align-items:center;padding:12px 16px;border-radius:14px;background:#fff;border:2px solid var(--red);margin-bottom:18px}
.hbyesp-nouv .i{flex:0 0 auto;padding:5px 11px;border-radius:999px;background:var(--red);color:#fff;font-weight:800;font-size:12.5px;animation:hbyNouv 1.8s ease-out 3}
.hbyesp-nouv p{font-weight:600;color:var(--ink)}
.hbyesp-nouv a{color:var(--ink)!important;text-decoration:underline!important;text-decoration-color:var(--red)!important}
.hbyesp-nouv .hbyesp-tn.tnr{display:block;margin:2px 0 0}
.hbyesp-si .hbyesp-bd,.hbyesp-bnav i{animation:hbyNouv 1.8s ease-out 2}
@keyframes hbyNouv{0%{box-shadow:0 0 0 0 rgba(179,40,30,.55)}100%{box-shadow:0 0 0 9px rgba(179,40,30,0)}}
@media (prefers-reduced-motion:reduce){.hbyesp-nouv .i,.hbyesp-si .hbyesp-bd,.hbyesp-bnav i{animation:none}}

/* 1.3.0 — formules venues de Mes cours : fractions, « à l'envers », attention, source */
.hbyesp-card.fx .fr{display:inline-flex;flex-direction:column;vertical-align:middle;text-align:center;margin:0 3px;font-size:.92em;line-height:1.25}
.hbyesp-card.fx .fr>span:first-child{border-bottom:1.5px solid currentColor;padding:0 4px 1px}
.hbyesp-card.fx .fr>span:last-child{padding:1px 4px 0}
.hbyesp-card.fx .env{margin:4px 0 8px}
.hbyesp-card.fx .env>span{display:block;font-weight:800;font-size:11.5px;letter-spacing:.06em;color:var(--blue);text-transform:uppercase;margin-bottom:4px}
.hbyesp-card.fx .eq.p{font-size:15px;background:#f6f9fc;border-left-color:#9fc7dc;padding:7px 10px;margin-bottom:5px}
.hbyesp-card.fx .al{margin-top:8px!important;padding:8px 10px!important;border-radius:10px;background:#fde9e7;color:var(--red);font-size:13px;font-weight:600}
.hbyesp-card.fx .src{display:block;margin-top:8px;font-size:12px;color:#8a8fa8}
.hbyesp-card.fx .rac{display:inline-flex;align-items:stretch;vertical-align:middle;font-size:1.2em;margin-left:2px}
.hbyesp-card.fx .rac>.fr{font-size:.77em;border-top:1.5px solid currentColor;margin-left:1px;padding-top:2px}
.hbyesp-tn.tnf{margin:-2px 0 8px;font-size:13px}
.hbyesp-si.sub{gap:8px;padding-right:8px}
.hbyesp-si .hbyesp-pr+.hbyesp-bd{margin-left:6px}

/* 1.4.0 — Mes cours (chapitres → Cours · Séries · Applications), devoirs, lecteur */
.hbyesp-retour{display:inline-block;font-weight:700;font-size:14px;color:var(--blue)!important;margin-bottom:12px}
.hbyesp-chaps{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}
.hbyesp-card.chb{display:flex;flex-direction:column;gap:10px;position:relative;padding:18px}
.hbyesp-card.chb .n{width:44px;height:44px;border-radius:14px;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:800;font-size:20px}
.hbyesp-card.chb .t small{display:block;font-weight:700;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--blue)}
.hbyesp-card.chb h3{font-weight:800!important;font-size:16.5px!important;color:var(--ink)!important;line-height:1.3!important;margin:2px 0 0!important}
.hbyesp-card.chb .cnt{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto}
.hbyesp-card.chb .cnt span{padding:4px 9px;border-radius:999px;font-size:12px;font-weight:600;background:var(--grey);color:var(--txt)}
.hbyesp-card.chb .cnt b{color:var(--ink)}
.hbyesp-card.chb .cnt .c-cours{background:#e6f2f8}.hbyesp-card.chb .cnt .c-serie{background:#fde9e7}.hbyesp-card.chb .cnt .c-appli{background:#e8f5ec}
.hbyesp-card.chb .cnt .z{opacity:.55}
.hbyesp-card.chb.off{opacity:.55;pointer-events:none}
.hbyesp-card.chb .bientot{position:absolute;top:16px;right:16px;font-style:normal;font-weight:700;font-size:11.5px;color:var(--txt);background:var(--grey);padding:3px 9px;border-radius:999px}
.hbyesp-nv{display:inline-block;vertical-align:middle;margin-left:6px;padding:2px 8px;border-radius:999px;background:var(--red);color:#fff;font-weight:700;font-size:11px}
.hbyesp-chead{display:flex;gap:16px;align-items:flex-start;background:#fff;border:1.5px solid var(--line);border-radius:18px;padding:18px;margin-bottom:16px}
.hbyesp-chead .n{flex:0 0 56px;height:56px;border-radius:16px;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:800;font-size:26px}
.hbyesp-chead small{font-weight:700;font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--blue)}
.hbyesp-chead h1{font-weight:800!important;font-size:22px!important;color:var(--ink)!important;line-height:1.25!important;margin:2px 0 0!important}
.hbyesp-parties{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.hbyesp-parties span{padding:4px 10px;border-radius:999px;background:var(--grey);font-size:12.5px;font-weight:600}
.hbyesp-cats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin-bottom:16px}
.hbyesp-cat{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto auto;column-gap:12px;align-items:center;padding:14px 16px;border-radius:16px;background:#fff;border:1.5px solid var(--line);color:var(--txt)!important}
.hbyesp-cat .ic{grid-row:1/4;width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:#e6f2f8;color:var(--ink)}
.hbyesp-cat.c-serie .ic{background:#fde9e7;color:var(--red)}
.hbyesp-cat.c-appli .ic{background:#e8f5ec;color:#2f7d4f}
.hbyesp-cat b{font-weight:800;font-size:16px;color:var(--ink)}
.hbyesp-cat .hbyesp-tn{margin:0}
.hbyesp-cat small{font-size:12px;color:#8a8fa8}
.hbyesp-cat .hbyesp-bd{position:absolute;top:10px;right:10px;margin:0}
.hbyesp-cat.on{border-color:var(--ink);box-shadow:0 0 0 2px var(--ink) inset;background:#f7f8ff}
.hbyesp-docs{display:flex;flex-direction:column;gap:10px}
.hbyesp-doc{display:flex;align-items:center;gap:14px;background:#fff;border:1.5px solid var(--line);border-radius:16px;padding:12px 14px}
.hbyesp-doc>.ic{flex:0 0 42px;height:42px;border-radius:12px;background:var(--grey);display:grid;place-items:center;color:var(--ink)}
.hbyesp-doc .yr{flex:0 0 auto;min-width:54px;text-align:center;padding:6px 8px;border-radius:10px;background:var(--grey);font-weight:800;color:var(--ink);font-size:13px}
.hbyesp-doc>div:not(.acts){flex:1;min-width:0}
.hbyesp-doc b{display:block;font-weight:700;color:var(--ink);font-size:15px;line-height:1.3}
.hbyesp-doc small{display:block;font-size:12.5px;color:#8a8fa8;margin-top:2px}
.hbyesp-doc .acts{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.hbyesp-doc .acts .hbyesp-btn{padding:8px 14px;font-size:13.5px}
.hbyesp-doc.off{opacity:.6}
.hbyesp-lhead{background:#fff;border:1.5px solid var(--line);border-radius:18px;padding:16px 18px;margin-bottom:14px}
.hbyesp-lhead small{font-weight:700;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--blue)}
.hbyesp-lhead h1{font-weight:800!important;font-size:21px!important;color:var(--ink)!important;margin:2px 0 0!important}
.hbyesp-lhead p{margin-top:4px!important;color:#8a8fa8}
.hbyesp-pdf{display:flex;flex-direction:column;gap:14px;max-width:900px}
.hbyesp-pdfp{position:relative;background:#fff;border-radius:10px;box-shadow:0 4px 18px rgba(13,17,82,.10);overflow:hidden;min-height:200px}
.hbyesp-pdfp canvas{display:block;width:100%;height:auto;user-select:none;-webkit-user-select:none}
.hbyesp-pdfp span{position:absolute;right:10px;bottom:8px;font-size:11.5px;font-weight:700;color:#8a8fa8;background:rgba(255,255,255,.9);padding:2px 8px;border-radius:999px}
.hbyesp-pdf-etat{padding:30px;text-align:center;color:#8a8fa8;background:#fff;border-radius:14px}
.hbyesp-limg img{display:block;max-width:100%;border-radius:12px;box-shadow:0 4px 18px rgba(13,17,82,.10)}
.hbyesp-video{position:relative;padding-top:56.25%;border-radius:14px;overflow:hidden;background:#000;max-width:900px}
.hbyesp-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.hbyesp-texte{line-height:1.6}
@media (max-width:700px){
 .hbyesp-doc{flex-wrap:wrap}
 .hbyesp-doc .acts{width:100%;justify-content:flex-start}
 .hbyesp-cats{grid-template-columns:1fr 1fr 1fr;gap:8px}
 .hbyesp-cat{grid-template-columns:1fr;text-align:center;justify-items:center;padding:12px 6px;row-gap:4px}
 .hbyesp-cat .ic{grid-row:auto;width:40px;height:40px}
 .hbyesp-cat b{font-size:14px}
 .hbyesp-cat .hbyesp-tn{display:none}
 .hbyesp-chead{padding:14px}
 .hbyesp-chead .n{flex-basis:46px;height:46px;font-size:21px}
 .hbyesp-chead h1{font-size:19px!important}
}

.hbyesp-sec h2 .hbyesp-eb{display:block;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--blue,#0B769F);margin-bottom:2px}

/* 1.5.0 — schémas interactifs */
.hbs-row{margin:0 0 14px}
.hbs-lab{display:block;font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--blue,#0B769F);margin:0 2px 8px}
.hbs-lab .hbyesp-tn{text-transform:none;letter-spacing:0;margin-inline-start:6px}
.hbs-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.hbyesp .hbs-card{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:4px;background:#fff;border:1px solid var(--line,#dfe3ec);border-radius:14px;padding:10px 12px 12px;transition:transform .15s,box-shadow .15s}
.hbyesp .hbs-card[hidden]{display:none}
.hbyesp .hbs-card:hover,.hbyesp .hbs-card:focus-visible{transform:translateY(-2px);box-shadow:0 6px 18px rgba(13,17,82,.12);outline:2px solid transparent}
.hbyesp .hbs-card:focus-visible{outline:2px solid var(--blue,#0B769F)}
.hbs-mini{display:block;height:120px;border-radius:9px;background:#f7f8fb;overflow:hidden;pointer-events:none}
.hbs-mini svg{width:100%;height:100%;display:block}
.hbs-card b{font-weight:800;font-size:14.5px;color:var(--ink,#0D1152);line-height:1.25}
.hbs-card small{font-size:12px;color:#7a7f99}
.hbs-modal{position:fixed;inset:0;z-index:100000;background:rgba(13,17,82,.55);display:flex;align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))}
.hbs-modal[hidden]{display:none}
html.hbs-ouvert{overflow:hidden}
.hbs-box{background:#fff;border-radius:16px;width:min(1100px,100%);max-height:100%;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.hbs-top{display:flex;align-items:baseline;gap:10px;padding:12px 14px 10px 18px;border-bottom:1px solid #eceef5}
.hbs-titre{font-weight:800;font-size:17px;color:#0D1152}
.hbs-src{color:#7a7f99;font-size:12.5px;flex:1}
.hbs-modal .hbs-x{all:unset;cursor:pointer;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-size:24px;line-height:1;color:#0D1152;background:#f0f1f7}
.hbs-modal .hbs-x:focus-visible{outline:2px solid #0B769F}
.hbs-zone{overflow:auto;padding:10px;flex:1 1 auto;-webkit-overflow-scrolling:touch}
.hbs-zone svg{display:block;width:100%;min-width:680px;height:auto;margin:0 auto}
.hbs-zone [data-k]{cursor:pointer;outline:none}
.hbs-zone [data-k]:hover,.hbs-zone [data-k]:focus-visible{filter:drop-shadow(0 0 3px rgba(11,118,159,.75))}
.hbs-zone [data-k].on{filter:drop-shadow(0 0 4px #B3281E) drop-shadow(0 0 2px #B3281E)}
.hbs-info{border-top:1px solid #eceef5;background:#f7fbfe;padding:12px 18px 14px;min-height:76px;max-height:34vh;overflow:auto;font-size:14.5px;color:#4A4F6E}
.hbs-info b{display:block;color:#0D1152;font-size:15.5px;margin-bottom:4px}
.hbs-info p{margin:0 0 4px}
.hbs-aide{color:#7a7f99}
.hbs-zone .flux,.hbs-mini .flux{stroke-dasharray:16 5;animation:hbsflux 1s linear infinite}
@keyframes hbsflux{to{stroke-dashoffset:-42}}
@media (prefers-reduced-motion:reduce){.hbs-zone .flux,.hbs-mini .flux{animation:none}}
@media (max-width:600px){.hbs-modal{padding:0}.hbs-box{border-radius:0;height:100%;max-height:none}.hbs-top{flex-wrap:wrap;padding:10px 12px 8px 14px}.hbs-titre{flex:1 1 70%}.hbs-src{order:3;flex-basis:100%}.hbs-zone svg{min-width:640px}}
@media (min-width:601px){.hbs-zone svg{max-height:64vh}}

/* 1.7.0 — devoirs interactifs */
.hbyesp-h2{font-weight:800!important;font-size:17px!important;color:var(--ink,#0D1152)!important;margin:6px 2px 10px!important}
.hbyesp-h2 small{font-weight:600;font-size:12.5px;color:#7a7f99;margin-left:6px}
.hbydv-head h1{font-size:21px!important;font-weight:800!important;color:var(--ink,#0D1152)!important;margin:0 0 4px!important}
.hbydv-head p{margin:0 0 4px;color:#4A4F6E}
.hbydv-aide{font-size:13.5px;color:#7a7f99!important}
.hbydv-tabs{display:flex;gap:8px;overflow-x:auto;padding:10px 0 4px;-webkit-overflow-scrolling:touch}
.hbyesp .hbydv-tabs button{all:unset;box-sizing:border-box;cursor:pointer;flex:0 0 auto;min-width:120px;padding:9px 14px;border-radius:12px;background:#fff;border:1px solid var(--line,#dfe3ec);color:var(--ink,#0D1152)}
.hbyesp .hbydv-tabs button b{display:block;font-weight:800;font-size:14px}
.hbyesp .hbydv-tabs button small{display:block;font-size:12px;color:#7a7f99;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hbyesp .hbydv-tabs button[aria-selected="true"]{background:var(--ink,#0D1152);color:#fff;border-color:var(--ink,#0D1152)}
.hbyesp .hbydv-tabs button[aria-selected="true"] small{color:#cfd3f0}
.hbyesp .hbydv-tabs button:focus-visible{outline:2px solid var(--blue,#0B769F)}
.hbydv-ex h2{font-weight:800!important;font-size:18px!important;color:var(--ink,#0D1152)!important;margin:0 0 10px!important}
.hbydv-ex h2 small{font-weight:600;color:#7a7f99;font-size:13px}
.hbydv-txt,.hbydv-cor{font-size:15px;line-height:1.55;color:#4A4F6E;overflow-x:auto}
.hbydv-txt table,.hbydv-cor table{border-collapse:collapse;margin:8px 0 12px;min-width:100%;font-size:14px}
.hbydv-txt th,.hbydv-txt td,.hbydv-cor th,.hbydv-cor td{border:1px solid #cfd5e3;padding:6px 8px;text-align:left;vertical-align:top}
.hbydv-txt th,.hbydv-cor th{background:#C1E4F5;color:#0D1152}
.hbydv-txt td:empty::after{content:"\00a0";display:inline-block;min-height:22px}
.hbydv-bar{margin:12px 0 4px}
.hbydv-cor{margin-top:10px;padding:12px 14px;border-radius:12px;background:#fff7f5;border-left:4px solid #B3281E}
.hbydv-cl{font-weight:800;color:#B3281E;font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;margin:0 0 8px}
.hbydv-cor .tn{color:#2B8DC4;font-weight:600;font-size:14px;text-align:right}
.hbydv-nav{display:flex;justify-content:space-between;gap:8px;margin-top:14px}

/* 1.7.1 — devoirs : présentation HBY (Série 7) */
.hbydv{--hn:#0D1152;--hb:#0B769F;--hr:#B3281E;--hs:#C1E4F5;--hg:#F2F2F5}
.hbydv .hbydv-ex,.hbydv .hbydv-head{font-family:"Segoe UI","Noto Sans","Noto Sans Arabic",system-ui,-apple-system,Roboto,Arial,sans-serif;color:#4A4F6E;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='260'%3E%3Ctext x='40' y='170' transform='rotate(-30 180 130)' font-family='Segoe UI,Arial' font-size='34' font-weight='700' fill='%230D1152' fill-opacity='0.045'%3EHBY %232027%3C/text%3E%3C/svg%3E")}
.hbydv .hbydv-head{border-top:5px solid var(--hn)}
.hbydv .hbydv-head h1{color:var(--hn)!important}
.hbydv .hbydv-ex>h2{margin:-16px -18px 12px!important;padding:10px 16px;background:var(--hs);color:var(--hn)!important;text-align:center;border-radius:14px 14px 0 0}
.hbydv .hbydv-txt .taf,.hbydv .hbydv-cor .taf{font-family:Forte,"Lobster","Comic Sans MS","Comic Neue",cursive;color:var(--hr);font-size:19px;text-align:center;margin:12px 0 6px}
.hbydv .hbydv-txt .q,.hbydv .hbydv-txt ol>li,.hbydv .hbydv-txt ul>li{font-family:"Comic Sans MS","Comic Neue","Comic Sans",cursive;font-weight:700;color:var(--hb)}
.hbydv .hbydv-txt ol>li ul>li,.hbydv .hbydv-txt ul>li ul>li{font-family:inherit;font-weight:400;color:#4A4F6E}
.hbydv .hbydv-txt th,.hbydv .hbydv-cor th{background:var(--hs)!important;color:var(--hn)!important}
.hbydv .hbydv-txt td,.hbydv .hbydv-cor td{background:var(--hg)}
.hbydv .hbydv-txt b,.hbydv .hbydv-txt strong{color:var(--hn)}
.hbydv .hbydv-cl{font-family:"Comic Sans MS","Comic Neue",cursive}
.hbydv .hbydv-txt .taf b,.hbydv .hbydv-txt .taf strong,.hbydv .hbydv-cor .taf b{color:inherit}

/* 1.7.3 : devoir entier puis correction complète (comme les séries) */
.hbydv-lbl{font-family:Forte,"Lobster","Comic Sans MS","Comic Neue",cursive;font-size:20px;color:#0D1152;text-align:center;margin:18px 0 8px}
.hbydv-lbl.r{color:#B3281E}
.hbydv .hbydv-ex{margin-bottom:12px}
.hbydv-bar-c{text-align:center;margin:16px 0}
.hbydv-bar-c .hbyesp-btn{font-size:16px;padding:12px 26px}
.hbydv .hbydv-exc>h2{background:#FBE9E6!important;color:#B3281E!important}
.hbydv-exc .hbydv-cor{margin-top:0;background:transparent;border-left:0;padding:0}

/* 1.8.0 : filtre des devoirs par année, bouton énoncé ↔ correction */
.hbydv-fil{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 12px}
.hbyesp .hbydv-fil button{all:unset;cursor:pointer;padding:6px 12px;border-radius:99px;border:1px solid var(--line,#dfe3ec);background:#fff;font-weight:700;font-size:13.5px;color:var(--ink,#0D1152)}
.hbyesp .hbydv-fil button[aria-pressed="true"]{background:var(--ink,#0D1152);color:#fff;border-color:var(--ink,#0D1152)}
.hbyesp-doc[hidden]{display:none!important}
.hbydv-sw{text-align:center;margin:14px 0}

@media (max-width:760px){.hbyesp input,.hbyesp select,.hbyesp textarea{font-size:16px!important}}

/* 1.8.1 : avant la correction */
.hbydv-gate{max-width:560px;margin:10px auto;text-align:center;border-top:5px solid #B3281E}
.hbydv-gate h1{font-size:21px!important;color:#0D1152!important;margin:0 0 4px!important}
.hbydv-gq{font-size:15.5px;color:#4A4F6E;margin:12px 0 4px}
.hbydv-gc{display:flex;gap:10px;align-items:center;justify-content:center;margin:16px auto 8px;padding:12px 14px;border:2px dashed #0B769F;border-radius:12px;background:#EAF5FB;font-weight:700;color:#0D1152;cursor:pointer;max-width:420px}
.hbydv-gc input{width:22px;height:22px;accent-color:#B3281E}
.hbydv-gb{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:14px 0 4px}

/* 1.8.2 : journal des corrections (date et libellé centrés, compte crédité décalé à droite) */
.hbydv table.jr5{table-layout:fixed}
.hbydv table.jr5 col{width:auto}
.hbydv table.jr5 th{text-align:center}
.hbydv table.jr5 td{border-top:0;border-bottom:0;background:#fff}
.hbydv table.jr5 tr.dt td{text-align:center;padding-top:6px}
.hbydv table.jr5 tr.dt span{display:flex;align-items:center;gap:8px;justify-content:center;font-weight:700;color:#0D1152}
.hbydv table.jr5 tr.dt span::before,.hbydv table.jr5 tr.dt span::after{content:"";flex:1;border-top:1.5px dashed #9AA6BE}
.hbydv table.jr5 td:nth-child(1),.hbydv table.jr5 td:nth-child(2),.hbydv table.jr5 td:nth-child(4),.hbydv table.jr5 td:nth-child(5){text-align:center;font-variant-numeric:tabular-nums}
.hbydv table.jr5 tr.dt td{text-align:center!important}
.hbydv table.jr5 .cd,.hbydv table.jr5 .cc{display:block;font-weight:700;color:#0D1152}
.hbydv table.jr5 .cd{padding-left:0;text-align:left}
.hbydv table.jr5 .cc{padding-left:0;text-align:right}
.hbydv table.jr5 tr.lb td:nth-child(3){text-align:center;color:#7A7F99}
.hbydv table.jr5 tr.lb td{border-bottom:1px dashed #cfd5e3}
.hbydv table.jr5 tr.tot td{border-top:1.5px solid #9AA6BE;border-bottom:1px solid #9AA6BE;background:#F2F2F5}
.hbydv table.jr5 tbody tr:last-child td{border-bottom:1px solid #9AA6BE}

/* 1.10.0 : MES APPLIS (3ème) */
.hbyesp-apsec{font-weight:800;font-size:14px;color:var(--ink,#0D1152);letter-spacing:.04em;margin:16px 2px 10px}
.hbyesp-applis .hbyesp-card.t{border-top:3px solid #B3281E}
@media (max-width:640px){.hbyesp-row.hbyesp-applis{grid-template-columns:1fr!important}}
.hbyesp-row.hbyesp-applis{grid-template-columns:repeat(4,1fr);gap:10px}
@media (max-width:1100px){.hbyesp-row.hbyesp-applis{grid-template-columns:repeat(2,1fr)}}
/* 1.11.0 : Mes applis — 6 petites cartes */
.hbyesp-row.hbyesp-applis{grid-template-columns:repeat(3,1fr)!important;gap:10px}
@media (max-width:640px){.hbyesp-row.hbyesp-applis{grid-template-columns:repeat(2,1fr)!important}.hbyesp-applis .hbyesp-card.t{flex-direction:column;align-items:flex-start;gap:6px;padding:12px}.hbyesp-applis .hbyesp-card.t small{display:none}}
.hbyesp-h1{font-size:24px!important;color:var(--ink,#0D1152)!important;margin:4px 0!important}.hbyesp-sous{color:#6B7090;margin:0 0 14px}
/* 1.12.0 : 2ème = 4 applis sur une ligne */
.hbyesp-row.hbyesp-applis.n4{grid-template-columns:repeat(4,1fr)!important}
@media (max-width:1100px){.hbyesp-row.hbyesp-applis.n4{grid-template-columns:repeat(2,1fr)!important}}
/* 1.13.0 : étoiles de difficulté + annexes */
.hbydv-et{flex:0 0 auto;min-width:74px;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 8px;border-radius:10px;background:var(--grey)}
.hbydv-et i{font-style:normal;font-size:16px;letter-spacing:1px;line-height:1}
.hbydv-et s{text-decoration:none;color:#d3d6e2}
.hbydv-et em{font-style:normal;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.3px}
.hbydv-et.e1 i,.hbydv-leg .e1{color:#1f9d55}.hbydv-et.e1 em{color:#1f9d55}
.hbydv-et.e2 i,.hbydv-leg .e2{color:#e0a100}.hbydv-et.e2 em{color:#b98300}
.hbydv-et.e3 i,.hbydv-leg .e3{color:#d33a2c}.hbydv-et.e3 em{color:#d33a2c}
.hbydv-leg{font-size:13px;color:#6b7090;margin:-4px 0 12px}
.hbydv-leg b{margin-right:8px;white-space:nowrap}
.hbyesp-btn.vert{background:#1f6f78;color:#fff!important}
.hbydv-sw .hbyesp-btn{margin:4px}
@media (max-width:640px){.hbydv-l .acts{width:100%;justify-content:flex-start}.hbydv-l .acts .hbyesp-btn{flex:1;text-align:center}}
.hbydv-et u{text-decoration:none;font-size:12px;font-weight:700;line-height:1.1;font-family:"Segoe UI",Tahoma,sans-serif}
.hbydv-et.e1 u{color:#1f9d55}.hbydv-et.e2 u{color:#b98300}.hbydv-et.e3 u{color:#d33a2c}
/* 1.13.0 : là où un document vient d'être ajouté, ça s'allume en rouge */
.hbyesp-doc.nv{border-color:var(--red);box-shadow:0 0 0 3px rgba(211,58,44,.14);animation:hbyNvRow 1.6s ease-out 2}
.hbyesp-nvt{display:inline-block;vertical-align:middle;margin-left:6px;padding:2px 8px;border-radius:999px;background:var(--red);color:#fff;font-size:11px;font-weight:800;letter-spacing:.2px}
.hbyesp-card.g{position:relative}
.hbyesp-card.g .hbyesp-bd{position:absolute;top:8px;right:8px;margin:0}
@keyframes hbyNvRow{0%{box-shadow:0 0 0 0 rgba(211,58,44,.5)}100%{box-shadow:0 0 0 10px rgba(211,58,44,0)}}
.hbyesp-card.chb.nv{border-color:var(--red)!important;box-shadow:0 0 0 3px rgba(211,58,44,.14);animation:hbyNvRow 1.6s ease-out 2}

/* 1.14.3 — Mes formules : les formules d'abord (bouton « Les schémas interactifs » pour les schémas) ; ce qu'on cherche en rouge, la formule en bleu, centrées */
.hbyesp-mode{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:4px 0 18px}
.hbyesp-mode button{font:inherit;font-weight:800;font-size:14px;padding:9px 16px;border-radius:999px;border:2px solid var(--blue,#0B769F);background:#fff;color:var(--blue,#0B769F);cursor:pointer}
.hbyesp-mode button[aria-pressed="true"]{background:var(--blue,#0B769F);color:#fff}
.hbyesp-mode button[aria-pressed="true"] .hbyesp-tn{color:#fff}
.hbyesp-formules .hbs-row{margin-top:14px}
.hbyesp-card.fx .eq{text-align:center;color:#0B769F}
.hbyesp-card.fx .eq .lhs{color:#B3281E;font-weight:700}
.hbyesp-card.fx .eq .rhs{color:#0B769F}

/* 1.14.4 — examens complets (HBY Examens Bac) dans Devoirs de synthèse et Bac */
.hbyesp-exa{margin:0 0 24px}
.hbyesp-exa .hbe{max-width:none}

/* Police des tableaux : Kalam (choisie par Haythoum), intégrée à l'extension — s'affiche pareil sur iPhone, Android et PC */
@font-face{font-family:"HBY Kalam";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/kalam-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"HBY Kalam";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/kalam-latin-700-normal.woff2") format("woff2")}
html body :is(.he,.hbyesp,.hbe,.hbx,.hrg,.hsv,.hbs,.hc,.hap,.hbp):is(:is(.he,.hbyesp,.hbe,.hbx,.hrg,.hsv,.hbs,.hc,.hap,.hbp)) table :is(th,td),html body :is(.he,.hbyesp,.hbe,.hbx,.hrg,.hsv,.hbs,.hc,.hap,.hbp):is(:is(.he,.hbyesp,.hbe,.hbx,.hrg,.hsv,.hbs,.hc,.hap,.hbp)) table :is(th,td) *:not(svg):not(svg *):not(.eq):not(.eq *){font-family:"HBY Kalam","Comic Neue","Comic Sans MS",system-ui,sans-serif !important}
html body .atw.atw.atw.atw.atw table :is(th,td),html body .atw.atw.atw.atw.atw table :is(th,td) *:not(svg):not(svg *):not(.eq):not(.eq *){font-family:"HBY Kalam","Comic Neue","Comic Sans MS",system-ui,sans-serif !important}

/* 1.14.7 — devoirs par niveau de difficulté */
.hbydv-niv button.e1[aria-pressed="true"]{background:#1F6F78;border-color:#1F6F78;color:#fff}
.hbydv-niv button.e2[aria-pressed="true"]{background:#C9910B;border-color:#C9910B;color:#fff}
.hbydv-niv button.e3[aria-pressed="true"]{background:#B3281E;border-color:#B3281E;color:#fff}
.hbydv-nivh{margin:16px 0 2px;font-weight:800;font-size:16px;padding:9px 14px;border-radius:12px;background:#1F6F78;color:#fff}
.hbydv-nivh.e2{background:#C9910B}.hbydv-nivh.e3{background:#B3281E}
.hbydv-nivh small{font-weight:600;color:#fff;opacity:.85;margin-inline-start:6px}
.hbydv-nivh span{color:#fff}

/* 1.15.0 — Autres matières : les clés */
.hbycl-cles{background:linear-gradient(135deg,#0D1152,#0B769F);color:#fff;border-radius:18px;padding:18px 20px;margin:4px 0 18px;display:grid;gap:10px}
.hbycl-n{display:flex;align-items:center;gap:12px}.hbycl-ic{font-size:34px}.hbycl-n b{font-size:40px;line-height:1}.hbycl-n small{font-size:15px;opacity:.9}
.hbycl-regle{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px 14px;font-size:14px}.hbycl-regle li{background:rgba(255,255,255,.14);border-radius:999px;padding:4px 12px}
.hbycl-bilan{margin:0;font-size:13.5px;opacity:.95}.hbycl-bilan a{color:#FFD45C;font-weight:700}
.hbycl-cles .hbyesp-tn{color:#d8eef8}
.hbycl-msg{background:#FDECEA;color:#B3281E;border-radius:12px;padding:10px 14px;font-weight:700}
.hbycl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;margin-bottom:10px}
.hbycl-ch{display:flex;flex-direction:column;gap:10px;align-items:flex-start;position:relative;opacity:.95}
.hbycl-ch:not(.is-on){background:#F2F2F5}
.hbycl-ch.is-on{border:2px solid #1F6F78}
.hbycl-lk{font-size:26px}.hbycl-ch b{font-size:16px;color:#0D1152}
.hbycl-ch form{margin:0}
.hbycl-mat{margin:0;font-weight:800;color:#0B769F;text-transform:uppercase;letter-spacing:.05em;font-size:12.5px}
.hbycl-lire h1{margin:4px 0 12px;color:#0D1152}

/* 1.17.0 : le compteur de l'accueil (page de calendrier) */
.hbyesp-cpt{--hn:#0D1152;--hb:#0B769F;--hr:#B3281E;display:flex;align-items:center;gap:16px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px 16px;margin:0 0 16px;box-shadow:0 1px 0 rgba(13,17,82,.04)}
.hbyesp-cpt .cal{flex:none;width:104px;border-radius:14px;overflow:hidden;border:1px solid var(--line);box-shadow:0 4px 0 #d5d9e6;text-align:center;background:#fff}
.hbyesp-cpt .cal .top{background:var(--hr);color:#fff;font:700 12px/1 "Noto Sans",sans-serif;letter-spacing:.06em;padding:6px 0}
.hbyesp-cpt .cal .num{font:700 48px/1.05 "HBY Kalam","Comic Neue",cursive;color:var(--hn);padding:6px 0 0}
.hbyesp-cpt .cal .u{font-size:12px;color:var(--txt);padding:0 0 8px}
.hbyesp-cpt .tx{flex:1;min-width:0}
.hbyesp-cpt h2{margin:0 0 4px;font:700 18px/1.3 "Comic Neue","Comic Sans MS",cursive;color:var(--hn)}
.hbyesp-cpt p{margin:0;color:var(--txt);font-size:14.5px}
.hbyesp-cpt ul{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:4px;font-size:13px;color:var(--txt)}
.hbyesp-cpt ul i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;background:var(--hb)}
.hbyesp-cpt ul i.b{background:var(--hn)}
.hbyesp-cpt .hbyesp-btn{flex:none}
.hbyesp-cpt.vac{background:#F3FAF5;border-color:#bcd9c4}
.hbyesp-cpt.vac .cal .top{background:#2f6b40}
@media (max-width:640px){.hbyesp-cpt{flex-wrap:wrap}.hbyesp-cpt .cal{width:92px}.hbyesp-cpt .tx{flex:1 1 calc(100% - 110px)}.hbyesp-cpt .hbyesp-btn{width:100%;text-align:center}}
/* 1.18.0 : Mes matières */
.hbyesp-mats{display:grid;gap:12px;margin:0 0 18px}.hbyesp-mats.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.hbyesp-card.hbyesp-matc{display:flex;gap:14px;align-items:center;border-color:var(--mc)}.hbyesp-matc .ic{background:var(--mc)!important;color:#fff!important}

/* ===== 1.19.0 — Mes formules en cases ===== */
.bx-barre{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center;margin:10px 0}
.bx-seg{display:flex;background:#fff;border:1px solid #d9dcef;border-radius:99px;padding:3px}
.bx-seg button{border:0;background:none;border-radius:99px;padding:6px 13px;font:700 12.5px/1 inherit;color:#0D1152;cursor:pointer}
.bx-seg button.on{background:#0D1152;color:#fff}
.bx-fav{display:inline-flex;gap:5px;align-items:center;border:1.5px solid #C00000;color:#C00000;background:#fff;border-radius:99px;padding:6px 12px;font:700 12.5px/1 inherit;cursor:pointer}
.bx-fav.on{background:#C00000;color:#fff}.bx-fav.on path{fill:#fff;stroke:#fff}
.bx-retour{display:block;margin:6px auto 10px;background:#0D1152;color:#fff;border:0;border-radius:99px;padding:9px 18px;font:700 13px/1 inherit;cursor:pointer}
.hbyesp-card.fx{position:relative}
.hbyesp-card.fx .bx-titre{cursor:pointer;padding-right:64px}
.bx-coeur{position:absolute;right:10px;top:10px;display:inline-flex;gap:4px;align-items:center;border:0;border-radius:11px;padding:4px 9px;background:#EEF0F7;color:#0D1152;font:700 12.5px/1 inherit;cursor:pointer}
.bx-coeur.on{background:#0D1152;color:#fff}
.bx-line{display:flex;align-items:center;justify-content:center;gap:4px;margin:10px 0 6px;flex-wrap:nowrap}
.bx-line.bx-wrap{flex-wrap:wrap}
.bx-lhs{flex:none;max-width:34%;background:#C00000;color:#fff;font-weight:700;border-radius:11px;padding:7px 8px;font-size:12.5px;line-height:1.2;text-align:center}
.bx-eq{font-weight:800;color:#0D1152;font-size:18px}
.bx-rhs{display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 3px;min-width:0}
.bx-w{display:inline-block;border:1.5px solid;background:#fff;border-radius:9px;padding:3px 6px;font-weight:700;font-size:12px;line-height:1.25;text-align:center;cursor:pointer}
.bx-w.sel{background:#FFE58A!important;box-shadow:0 0 0 2px #FFE58A}
.bx-w.bx-gris{border-color:#5B6475!important;color:#5B6475!important}
.bx-o{font-weight:800;color:#0D1152;font-size:14px;margin:0 1px}.bx-n{font-weight:700;color:#0D1152;font-size:14px}
.bx-fr{display:inline-flex;flex-direction:column;align-items:center;border:2px solid #0D1152;border-radius:12px;padding:5px 6px;background:#FAFBFF;gap:4px;max-width:100%}
.bx-fr .bx-fr{border:0;padding:0;background:none}
.bx-bar{align-self:stretch;height:2.5px;background:#0D1152;border-radius:2px}
.bx-row{display:inline-flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:3px}
.bx-rac{display:inline-flex;align-items:center}.bx-rad{font-size:34px;line-height:1;color:#0D1152}.bx-in{border-top:2.5px solid #0D1152;padding-top:4px}
.bx-dos .bx-tag{text-align:center;font-size:11.5px;font-weight:700;color:#C00000;margin-top:6px}
.bx-bas{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:4px}
.bx-aide{font-size:11.5px;color:#999}
.bx-flip{border:1.5px solid #C00000;color:#C00000;background:#fff;border-radius:99px;padding:6px 15px;font:700 12.5px/1 inherit;cursor:pointer}
.bx-flip.on{background:#C00000;color:#fff}
.bx-pan{border:1.5px solid;border-radius:12px;background:#FBFBFE;padding:9px;margin:6px 0}
.bx-pt{text-align:center;font-weight:700;font-size:13px;margin-bottom:4px}
.bx-def{margin:0;text-align:center;font-size:13px;color:#333}
.hbyesp-formules.bx-solo [data-bxh],.hbyesp-formules.bx-solo .hbs-row,.hbyesp-formules.bx-solo .hbyesp-sec>h2{display:none!important}
.hbyesp-formules.bx-solo .bx-choisie{box-shadow:0 0 0 2px #C00000}
@media (max-width:420px){.bx-lhs{font-size:11.5px;max-width:30%}.bx-w{font-size:11px;padding:2px 5px}}
.hbyesp-formules .hbyesp-chips{display:none!important}
