.mobile-menu-toggle{display:none}
.mobile-navigation{position:fixed;inset:0 0 0 auto;margin:0;width:min(340px,88vw);max-width:100vw;height:100dvh;max-height:100dvh;padding:20px 22px;border:0;border-radius:20px 0 0 20px;background:var(--paper,#fff);color:var(--ink,#14233e);box-shadow:-16px 0 60px #081c3d26;overflow:auto}
.mobile-navigation::backdrop{background:#06173099;backdrop-filter:blur(3px)}
.mobile-menu-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:20px;border-bottom:1px solid var(--line);font-size:20px}
.mobile-menu-head button,.mobile-menu-footer button{font:inherit;color:inherit;background:transparent;border:1px solid var(--line);border-radius:12px;min-height:44px;cursor:pointer}
.mobile-menu-head button{width:44px;font-size:28px;line-height:1}
.mobile-menu-links{display:flex;flex-direction:column;gap:6px;padding:18px 0}
.mobile-menu-links a{display:block;padding:13px 16px;min-height:46px;border-radius:12px;color:inherit;text-decoration:none;font-size:16px;font-weight:600}
.mobile-menu-links a:hover,.mobile-menu-links a[aria-current="page"]{background:#ffad22;color:#132d50}
.mobile-menu-links a[href="/mon-compte"]{border-top:1px solid var(--line);margin-top:12px;padding-top:18px}
.mobile-menu-footer{border-top:1px solid var(--line);padding-top:18px}.mobile-menu-footer button{width:100%;padding:12px}
.mobile-menu-open{overflow:hidden}
@media(max-width:700px){
 .site-header{position:sticky;top:0;z-index:40}
 .site-header .header-inner{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-height:72px;padding:12px 16px}
 .site-header .header-inner>.nav{display:none!important}
 .site-header .brand-logo{width:110px;max-width:110px}
 .site-header .header-right{margin-left:auto;gap:6px}
 .site-header .header-right .locale{width:146px;max-width:146px}
 .mobile-menu-toggle{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:var(--paper,#fff);cursor:pointer}
 .mobile-menu-toggle svg{width:23px;height:23px}
}
@media(min-width:701px){.mobile-navigation{display:none}}
:root[data-theme="dark"] .mobile-menu-links a[aria-current="page"],:root[data-theme="dark"] .mobile-menu-links a:hover{color:#132d50!important;background:#ffad22!important}

/* Keep owner tools outside the main navigation, independently of route URLs. */
.edu-topbar .univ-auth{flex-wrap:wrap;gap:10px 20px}
.edu-topbar .univ-auth .admin-entry{margin:0;padding:5px 10px}
@media(min-width:701px){
 .site-header .header-inner{height:auto}
 .site-header .header-inner>.nav{min-width:0;flex-wrap:wrap;overflow:visible;gap:4px 8px}
 .site-header .header-inner>.nav a{flex-shrink:0}
}

/* Keep native language labels readable with their flag emoji. */
@media(min-width:701px){.site-header .header-right .locale{width:156px;max-width:156px}}
