header .nav{flex-wrap:nowrap;position:relative;min-height:74px}header .dropdown-wrap{position:relative;margin-left:auto}header #menu-toggle{display:flex;align-items:center;gap:12px;padding:11px 16px;min-height:44px;border-radius:10px;font-size:14px;background:var(--paper);color:var(--ink)}header #menu-toggle[aria-expanded="true"]{background:var(--pale-blue);color:var(--blue)}header .nav #site-menu{position:absolute;right:0;top:calc(100% + 12px);width:300px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 100px);overflow:auto;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:3px;padding:10px;background:var(--paper);border:1px solid var(--line);border-radius:15px;box-shadow:0 16px 45px #07162c26;z-index:45}header .nav #site-menu[hidden]{display:none}header .nav #site-menu a,header .nav #site-menu button{display:block;text-align:left;width:100%;margin:0;border:0;border-radius:8px;padding:11px 14px;min-height:44px;white-space:normal;font-size:14px;color:var(--ink);background:transparent;text-decoration:none}header .nav #site-menu a:hover,header .nav #site-menu button:hover,header .nav #site-menu a[aria-current]{background:var(--pale-blue);color:var(--blue)}header #site-menu small{display:block;color:var(--muted);font-size:11px;font-weight:400}body[data-theme="night"] header .nav #site-menu a:hover,body[data-theme="night"] header .nav #site-menu button:hover,body[data-theme="night"] header .nav #site-menu a[aria-current],body[data-theme="night"] header #menu-toggle[aria-expanded="true"]{background:#172f51;color:#dce9ff}
@media(max-width:760px){header .nav{padding:12px 16px;gap:10px}header .brand{font-size:16px;gap:6px}header #menu-toggle{padding:9px 12px;gap:7px}.site-search{max-height:calc(100dvh - 78px)}.course-section,[id^="course-"]{scroll-margin-top:96px}}
header .nav #site-menu a.faculty-menu-gmp{color:#245db5;font-weight:800}header .nav #site-menu a.faculty-menu-chimie{color:#23764c;font-weight:800}header .nav #site-menu a.faculty-menu-civil{color:#545c69;font-weight:800}header #site-menu strong{font-weight:800}body[data-theme="night"] header .nav #site-menu a.faculty-menu-gmp{color:#9ebfff}body[data-theme="night"] header .nav #site-menu a.faculty-menu-chimie{color:#8fd7b3}body[data-theme="night"] header .nav #site-menu a.faculty-menu-civil{color:#bcc3cf}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
footer .footer-row{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;min-width:0}footer .footer-motto{margin:0;flex:1;min-width:0;font-size:14px;line-height:1.6}footer .footer-stats{flex-shrink:0;min-height:44px;margin:0}footer{row-gap:16px}@media(max-width:640px){footer .footer-row{gap:12px}footer .footer-motto{font-size:13px}footer .footer-stats{font-size:13px;padding:10px 14px}}
/* Full-bleed footer, with content aligned to the header's inner width. */
body footer{max-width:none;width:100%;margin:0;padding:26px max(32px,calc((100% - 1156px)/2));background:var(--paper)}
/* Compact home-only faculty cards; course cards stay unchanged. */
#formations .faculty-cards{max-width:1040px;margin-inline:auto;gap:14px}
#formations .faculty-cards .card{padding:20px;border-radius:15px}
#formations .faculty-symbol{font-size:28px;margin:14px 0 8px}
#formations .faculty-cards h3{font-size:19px;line-height:1.3;margin:8px 0}
#formations .faculty-cards p{font-size:13px;line-height:1.55;margin:6px 0}
#formations .faculty-cards .tag{font-size:10px;padding:3px 8px}
#formations .faculty-cards .go{padding-top:16px;font-size:13px;min-height:44px}
@media(max-width:760px){body footer{padding:22px 16px}#formations .faculty-cards .card{padding:17px 18px}#formations .faculty-symbol{font-size:25px;margin:10px 0 5px}#formations .faculty-cards h3{font-size:18px;margin:5px 0}#formations .faculty-cards .go{padding-top:10px}}

/* Shared, static development notice: visible without JavaScript. */
header .development-banner{box-sizing:border-box;width:100%;padding:7px 16px;background:#facc15;color:#422006;text-align:center;font-size:13px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
header .nav #site-menu{max-height:calc(100dvh - 140px)}
.course-section,[id^="course-"]{scroll-margin-top:140px}
