/* MonAvenir V95 : en-tête de marque compact, avatar agrandi, surfaces allégées. */
html[data-mb-role] .app .app-header.mb74-header.mb95-header{position:relative;grid-template-columns:minmax(0,1fr) auto;padding:10px 16px 12px!important;gap:6px 12px;width:calc(100% - 24px);border-radius:16px;box-shadow:0 3px 12px #14233a18;background:linear-gradient(120deg,var(--mb-dark),var(--mb) 72%)!important;overflow:hidden}
.mb95-header.mb74-header::before{background:radial-gradient(ellipse at 108% -70%,transparent 0 51%,#ffffff15 51.3% 52%,transparent 52.4% 61%,#ffffff0e 61.3% 62%,transparent 62.4%),linear-gradient(145deg,transparent 60%,#ffffff07 60.5% 79%,transparent 79.5%)}
.mb95-header .brand{grid-column:1;grid-row:1;min-width:0;min-height:44px}.mb95-header .brandmark,.mb95-header .brandmark img{width:30px!important;height:30px!important;min-width:30px!important;flex-basis:30px!important}.mb95-header .brandname{font-size:18px!important;letter-spacing:-.3px}
.mb95-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;grid-column:2;grid-row:1;min-width:0}
.mb95-notice{position:relative;width:44px;height:44px;display:grid;place-items:center;flex:none;border:0;border-radius:12px;background:#ffffff12;color:#fff;cursor:pointer}.mb95-notice svg{width:22px;height:22px;stroke:#fff;fill:none}.mb95-notice-count{position:absolute;right:0;top:-2px;min-width:18px;padding:2px 4px;border-radius:20px;background:#fff;color:var(--mb-dark);font-size:10px;font-weight:800;border:1px solid var(--mb);line-height:1.1}
.mb95-header .mb95-identity{display:flex;flex-direction:row;align-items:center;text-align:left;gap:12px;min-width:0;max-width:100%;justify-self:stretch;grid-row:2;grid-column:1/-1;padding:2px 0 0;min-height:60px;white-space:normal}
.mb95-header .mb95-identity .ege-header-avatar{width:54px;height:54px;min-width:54px;flex:0 0 54px;border:2px solid #ffffffd9;border-radius:50%;font-size:17px;box-shadow:0 2px 6px #14233a20}
.mb95-identity-text{display:grid;gap:3px;min-width:0;flex:1;text-align:left}.mb95-header .mb95-identity-text strong{font-size:clamp(16px,4vw,20px);font-weight:750;text-align:left;line-height:1.2;overflow-wrap:anywhere;color:#fff}.mb95-identity small{color:#ffffffe6;font-size:12px;line-height:1.25}.mb95-identity>svg{width:20px;height:20px;flex:0 0 20px;stroke:#fff}
.mb95-header.mb74-header-inner .mb95-identity{min-height:44px;gap:5px;padding:0}.mb95-header.mb74-header-inner .mb95-identity .ege-header-avatar{width:44px;height:44px;min-width:44px;flex:0 0 44px;font-size:14px}.mb95-header.mb74-header-inner .mb95-identity strong{font-size:12px}
.mb95-header button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.mb95-app .mb91-identity .profile-photo-panel{flex-basis:88px;width:88px}.mb95-app .mb91-identity .profile-photo-portrait{width:88px;height:88px}.mb95-app .mb91-profile .mb91-identity{min-height:124px}
html[data-mb-role] .app.mb95-app.mb74-home .main{background:#f7f8fb!important}
.mb95-app.mb74-home .mb-tiles{gap:9px;margin:6px 0 10px}.mb95-app.mb74-home .mb-tile{border:1px solid #e5e8ed;box-shadow:0 2px 6px #14233a0b;border-radius:13px;min-height:78px;background:#fff}.mb95-app.mb74-home .mb-tile:hover{box-shadow:0 3px 9px #14233a12}.mb95-app.mb74-home .mb-tile svg{color:var(--mb);stroke-width:1.65}
.mb95-home-heading{margin:0 0 6px}.mb95-home-heading h1{font-size:23px;margin:0 0 9px;line-height:1.2}.mb95-home-heading h2{font-size:15px;margin:0;font-weight:750;color:#2a384c}
.mb95-app .mb95-utilities,.mb95-app .mb95-directory-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:4px;background:#fff;border:1px solid #e1e5ec;border-radius:12px;margin:9px 0;overflow:hidden}
.mb95-app .mb95-utilities .btn,.mb95-app .mb95-directory-links .btn{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:44px;padding:7px 5px;border:0;background:none;box-shadow:none;white-space:normal;word-break:normal;text-align:center;color:#17263a;font-size:12px;font-weight:650;line-height:1.25}.mb95-app .mb95-utilities .btn+ .btn,.mb95-app .mb95-directory-links .btn+ .btn{border-left:1px solid #e7eaf0;border-radius:0}.mb95-app .mb95-utilities svg,.mb95-app .mb95-directory-links svg{width:18px;height:18px;flex:0 0 18px;color:var(--mb)}
.mb95-class-card{padding:12px;background:#fff;border:1px solid #e1e5ec;border-radius:14px;box-shadow:0 2px 7px #14233a0a;margin:9px 0;display:grid;gap:10px;min-width:0}.mb95-class-card h2{font-size:16px;margin:0;font-weight:750}.mb95-class-row{min-width:0;display:flex;align-items:center;gap:8px;text-align:left;color:#17263a;border:0;background:transparent;width:100%;padding:0;cursor:pointer}.mb95-class-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:9px;background:var(--mb-soft);color:var(--mb)}.mb95-class-icon svg{width:21px;height:21px}.mb95-class-label{display:grid;gap:3px;flex:1;min-width:0;overflow-wrap:anywhere}.mb95-class-label strong{font-size:14px;line-height:1.2}.mb95-class-label small{font-size:11px;color:#647286;line-height:1.3}.mb95-class-open{display:flex;align-items:center;gap:3px;color:var(--mb);font-size:11px;font-weight:750;white-space:normal;text-align:right;max-width:42%;line-height:1.2}.mb95-class-open svg{width:14px;height:14px;flex:none}
.mb95-find,.mb95-class-primary{min-height:44px;width:100%;display:flex;justify-content:center;align-items:center;gap:8px;font-size:13px;font-weight:700;border:1px solid var(--mb);border-radius:10px;cursor:pointer}.mb95-find{background:#fff;color:var(--mb)}.mb95-find svg,.mb95-class-primary svg{width:19px;height:19px;flex:none}.mb95-app .mb95-class-primary{margin:0;min-height:46px}.mb95-app .mb93-page .mb93-actions{margin-top:0}
.mb95-app .mb72-center-disc{box-shadow:0 3px 9px #14233a29}.mb95-app .mb72-nav{box-shadow:0 -2px 10px #14233a12!important}
@media(max-width:350px){html[data-mb-role] .app .app-header.mb74-header.mb95-header{padding:8px 11px 10px!important;gap:4px 6px}.mb95-header-actions{gap:3px}.mb95-header.mb74-header-inner .mb95-identity-text{display:none}.mb95-home-heading h1{font-size:21px}.mb95-app.mb74-home .mb-tiles{gap:6px}.mb95-app.mb74-home .mb-tile{min-height:72px}.mb95-class-open{font-size:10px}.mb95-app .mb95-utilities .btn,.mb95-app .mb95-directory-links .btn{font-size:11px}}
@media(min-width:1050px){html[data-mb-role] .app .app-header.mb74-header.mb95-header{width:calc(100% - 32px);grid-template-columns:minmax(0,1fr) minmax(0,2fr) auto;gap:12px;padding:10px 20px!important}.mb95-header.mb74-header-home .mb95-identity{grid-column:2;grid-row:1;justify-self:center;max-width:100%;padding:0}.mb95-header .mb95-header-actions{grid-column:3}.mb95-app.mb74-home .mb-tiles{gap:12px}.mb95-app.mb74-home .mb-tile{min-height:94px}}
/* V97 : déconnexion toujours accessible, sans déplacer les autres commandes. */
.mb74-header .mb97-logout{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;min-width:44px;padding:0;margin:0;border:0;border-radius:12px;background:#ffffff25;color:white;cursor:pointer}.mb74-header .mb97-logout svg{width:24px;height:24px;stroke:white;fill:none;stroke-width:1.8}.mb74-header .mb97-logout:hover{background:#ffffff38}.mb74-header .mb97-logout:disabled{opacity:.6;cursor:wait}
@media(max-width:480px){.mb95-header.mb74-header-inner .mb95-identity-text{display:none}.mb95-header-actions{gap:5px}.mb95-header .brandname{font-size:16px!important}}
/* V106 — accueil élève : 12 outils compacts et publicité intégralement visible. */
html[data-mb-role] .app.mb106-student-home .app-body,html[data-mb-role] .app.mb106-student-home .main{min-height:0!important}
html[data-mb-role] .app.mb106-student-home .main{padding:6px 12px calc(80px + env(safe-area-inset-bottom))!important}
.mb106-student-home .screen{display:grid;gap:6px;align-content:start;max-width:1100px;min-width:0}
.mb106-student-home .mb95-home-heading{display:flex;align-items:baseline;justify-content:space-between;margin:0;gap:8px}
.mb106-student-home .mb95-home-heading h1{font-size:21px;margin:0;line-height:1.2}.mb106-student-home .mb95-home-heading h2{font-size:12px;color:#657184}
.mb106-student-home.mb95-app.mb74-home .mb-tiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0}
.mb106-student-home.mb95-app.mb74-home .mb-tile{min-height:clamp(55px,9dvh,76px);gap:3px;padding:5px 2px;border-radius:11px;font-size:clamp(10px,2.8vw,12px);line-height:1.15;min-width:0;white-space:normal;overflow-wrap:anywhere}
.mb106-student-home.mb95-app.mb74-home .mb-tile svg{width:21px;height:21px;flex:none;color:var(--mb)}
.mb106-student-home .mb95-class-card{grid-template-columns:minmax(0,1fr) minmax(90px,34%);align-items:center;gap:6px;padding:6px 8px;margin:0;min-height:52px;border-radius:11px}
.mb106-student-home .mb95-class-card h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.mb106-student-home .mb95-class-row{min-height:44px;gap:6px}.mb106-student-home .mb95-class-icon{width:29px;height:29px;flex-basis:29px}.mb106-student-home .mb95-class-label strong{font-size:12px}.mb106-student-home .mb95-class-label small{font-size:10px;line-height:1.15;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mb106-student-home .mb95-class-open{font-size:0;max-width:none}.mb106-student-home .mb95-find{font-size:11px;min-height:44px;gap:3px;padding:4px;line-height:1.15}.mb106-student-home .mb95-find svg{width:15px;height:15px;flex:none}
.mb106-student-home .mb72-ad.ege-ad-banner.ege-ad-essential{margin:0!important}.mb106-student-home .mb72-banner-hit{min-height:0;height:clamp(90px,13dvh,108px);aspect-ratio:auto;grid-template-columns:minmax(0,1fr) minmax(0,30%);grid-template-rows:minmax(0,1fr);border-radius:12px}
.mb106-student-home .mb72-ad-copy{padding:6px 8px;gap:2px;min-width:0;justify-content:center}.mb106-student-home .mb72-ad-copy small{font-size:8px;line-height:1.1;padding:2px 4px}.mb106-student-home .mb72-ad-copy strong{font-size:13px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.mb106-student-home .mb72-ad-copy span{font-size:10px;line-height:1.15;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.mb106-student-home .mb72-ad-copy .mb72-ad-extra{display:none}.mb106-student-home .mb72-ad-copy b{font-size:10px;padding:3px 6px;line-height:1.2;min-height:21px;margin:1px 0 0;flex:none}.mb106-student-home .mb72-banner-hit img{height:100%;min-height:0;object-fit:cover;object-position:center 24%;max-height:none!important;align-self:stretch}
.mb106-student-home .mb72-ad .ege-ad-controls{margin:1px 0 0!important}.mb106-student-home .mb72-ad .ege-ad-arrow{min-height:26px;min-width:26px}
.mb106-student-home.mb95-app .mb95-directory-links{margin:0;padding:0;border-radius:11px}.mb106-student-home.mb95-app .mb95-directory-links .btn{font-size:11px;min-height:44px;padding:4px 2px;gap:4px}
.mb106-student-home .mb74-more{margin:0;max-width:none}.mb106-student-home .mb74-more .mb74-link{padding:5px 9px;min-height:44px;font-size:11px}
.mb106-student-home .mb74-install{margin:0}.mb106-student-home .mb74-install:not(:has(button:not([hidden]))){display:none}
.mb106-student-home .privacy-footer{margin:0!important;padding:0!important;border:0;gap:0 6px;flex-direction:row;justify-content:center;line-height:1.15}.mb106-student-home .privacy-footer .ege-footer-identity{display:flex;gap:5px;flex-wrap:wrap;justify-content:center}.mb106-student-home .privacy-footer p{font-size:9px;margin:0;line-height:1.2}.mb106-student-home .privacy-footer a{font-size:10px;min-height:24px;line-height:1.2}
.mb106-secondary{display:grid;gap:6px;min-width:0}.mb106-home-switch{display:none;align-items:center;gap:7px;justify-content:space-between;min-height:44px;width:100%;border:1px solid #e1e5ec;background:#fff;border-radius:11px;padding:6px 10px;color:var(--mb);font-size:12px;font-weight:700;text-align:left}.mb106-home-switch span{flex:1}.mb106-home-switch svg{width:17px;height:17px}
@media(max-width:810px){html[data-mb-role] .app.mb106-student-home .app-header.mb74-header.mb95-header{padding:5px 10px 6px!important;gap:1px 6px;margin:6px auto 0!important}.mb106-student-home .mb95-header .mb95-identity{min-height:43px;gap:7px;padding:0}.mb106-student-home .mb95-header .mb95-identity .ege-header-avatar{width:38px;height:38px;min-width:38px;flex-basis:38px}.mb106-student-home .mb95-header .mb95-identity-text strong{font-size:15px}.mb106-student-home .mb95-header .mb95-identity-text small{font-size:11px}}
@media(min-width:811px){html[data-mb-role] .app.mb106-student-home .main{padding:12px 20px!important}.mb106-student-home.mb95-app.mb74-home .mb-tiles{grid-template-columns:repeat(6,minmax(0,1fr))}.mb106-student-home .mb72-banner-hit{max-width:640px;margin:auto}.mb106-student-home .mb72-banner-hit img{max-height:105px!important}}
@media(max-width:810px) and (max-height:660px){.mb106-student-home .screen{gap:4px}.mb106-student-home .mb95-home-heading h1{font-size:18px}.mb106-student-home.mb95-app.mb74-home .mb-tile{min-height:54px;font-size:10px;gap:2px}.mb106-student-home.mb95-app.mb74-home .mb-tile svg{width:19px;height:19px}.mb106-student-home .mb95-class-card{padding:2px 6px}.mb106-student-home .mb95-class-label small{display:none}.mb106-student-home .privacy-footer .ege-footer-identity{display:none}.mb106-student-home .mb72-ad-copy strong{-webkit-line-clamp:1}}
@media(max-width:810px) and (max-height:820px){.mb106-student-home .mb106-home-switch{display:flex}.mb106-student-home:not(.mb106-more-open) .mb106-secondary{display:none}.mb106-student-home.mb106-more-open .mb-tiles,.mb106-student-home.mb106-more-open [data-ege-ad-slot]{display:none!important}.mb106-student-home.mb106-more-open .mb95-home-heading{display:none}.mb106-student-home.mb106-more-open .mb106-home-switch{order:-1}.mb106-student-home:not(.mb106-more-open) .mb95-home-heading{margin:0}}
@media(max-width:810px) and (max-height:660px){.mb106-student-home .mb95-home-heading{display:none}.mb106-student-home .mb72-banner-hit{height:90px}.mb106-student-home .mb106-home-switch{min-height:44px}.mb106-student-home .mb72-ad .ege-ad-controls{margin:0!important}}
@media(max-width:810px) and (max-height:600px){.mb106-student-home:not(.mb106-more-open) .mb95-class-card{display:none}.mb106-student-home.mb95-app.mb74-home .mb-tile{min-height:50px}.mb106-student-home .mb95-header .mb95-identity{min-height:38px}.mb106-student-home .mb95-header .mb95-identity .ege-header-avatar{width:34px;height:34px;min-width:34px;flex-basis:34px}}
.mb106-student-home.mb106-more-open .privacy-footer .ege-footer-identity{display:flex}
@media(max-width:810px) and (max-height:480px) and (orientation:landscape){html[data-mb-role] .app.mb106-student-home .app-header.mb74-header.mb95-header{grid-template-columns:auto minmax(0,1fr) auto;gap:6px}.mb106-student-home .mb95-header .mb95-identity{grid-column:2;grid-row:1;justify-self:stretch}.mb106-student-home .mb95-header .mb95-header-actions{grid-column:3}.mb106-student-home.mb95-app.mb74-home .mb-tiles{grid-template-columns:repeat(6,minmax(0,1fr))}.mb106-student-home .mb72-banner-hit{height:77px}.mb106-student-home .mb72-ad-copy{padding:3px 8px}.mb106-student-home .mb72-ad-copy b{min-height:19px}.mb106-student-home .mb72-ad .ege-ad-arrow{min-height:24px}html[data-mb-role] .app.mb106-student-home .mb72-nav{height:calc(55px + env(safe-area-inset-bottom))}.mb106-student-home .mb72-center-disc{width:44px;height:44px}html[data-mb-role] .app.mb106-student-home .main{padding-bottom:calc(68px + env(safe-area-inset-bottom))!important}}
