/* Delta-Sierra Mars — canonical header contract v1 — 2026-08-30
   Single visual owner for the Mars shell outside Space Academy. */
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .skip-link{
  position:fixed!important;left:12px!important;top:8px!important;z-index:2147483647!important;
  padding:.65rem .9rem!important;border-radius:.5rem!important;background:#fff!important;color:#071018!important;
  font-weight:800!important;box-shadow:0 4px 18px rgba(0,0,0,.28)!important;
  transform:translateY(-180%)!important;transition:transform .12s ease!important;
}
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .skip-link:focus,
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .skip-link:focus-visible{
  transform:translateY(0)!important;left:12px!important;
}
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header{
  background:#07111b!important;border-bottom:1px solid rgba(242,201,104,.42)!important;
  box-shadow:0 6px 22px rgba(0,0,0,.16)!important;color:#fff!important;
}
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header__inner{
  min-height:72px!important;align-items:center!important;
}
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .ds-mars-home-brand{
  display:grid!important;grid-template-columns:54px auto!important;gap:.72rem!important;align-items:center!important;
  min-width:190px!important;text-decoration:none!important;
}
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .ds-mars-home-brand::before,
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .ds-mars-home-brand::after{
  content:none!important;background:none!important;display:none!important;
}
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .ds-mars-home-brand__logo{
  display:block!important;width:52px!important;height:52px!important;object-fit:contain!important;
  border-radius:50%!important;flex:0 0 52px!important;
}
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .ds-mars-home-brand__copy{
  display:flex!important;flex-direction:column!important;line-height:1!important;
}
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .ds-mars-home-brand__copy small{
  color:#f3f6fb!important;font-weight:850!important;letter-spacing:.12em!important;font-size:.72rem!important;
}
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .ds-mars-home-brand__copy strong{
  margin-top:0!important;color:#ef7a4a!important;font-weight:900!important;font-size:1.55rem!important;letter-spacing:.05em!important;
}
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .ds-mars-home-brand__copy em{
  margin-top:.25rem!important;color:#f3ce75!important;font-style:normal!important;font-weight:750!important;
  font-size:.55rem!important;letter-spacing:.035em!important;
}
/* mars-ui-v20303.js creates this control. It belongs to the mobile breakpoint only. */
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .site-nav-mobile-toggle{
  display:none!important;
}
@media (max-width:900px){
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header__inner{min-height:64px!important;}
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .ds-mars-home-brand{
    grid-template-columns:44px auto!important;min-width:154px!important;gap:.5rem!important;
  }
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .ds-mars-home-brand__logo{width:42px!important;height:42px!important;}
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .ds-mars-home-brand__copy strong{font-size:1.18rem!important;}
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .ds-mars-home-brand__copy em{font-size:.48rem!important;}
}
@media (max-width:760px){
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .site-nav-mobile-toggle{
    display:flex!important;width:100%!important;align-items:center!important;justify-content:center!important;gap:.5rem!important;
    padding:.7rem .85rem!important;border:1px solid #c9d5e7!important;border-radius:10px!important;
    background:#fff!important;color:#0f315c!important;font-weight:800!important;font-size:14px!important;cursor:pointer!important;
  }
}

/* Canonical header layout ownership: neutralize legacy cascade divergence. */
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .site-nav-mobile-toggle{display:none!important}
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .ds-mobile-nav-toggle{display:none!important}
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .site-nav__inner{
  background:rgba(9,29,47,.88)!important;border:1px solid #314d62!important;border-radius:12px!important;
  box-shadow:0 10px 26px rgba(0,0,0,.18)!important;padding:6px!important;
}
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .site-nav a,
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .site-nav a:link,
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .site-nav a:visited{
  color:#fffaf0!important;background:transparent!important;text-shadow:none!important;font-weight:760!important;
  padding:9px 9px!important;font-size:.88rem!important;white-space:nowrap!important;text-decoration:none!important;border-radius:7px!important;
}
body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .site-nav a[aria-current="page"]{
  color:#fff!important;background:#1d3766!important;box-shadow:inset 0 -3px 0 #efb64d!important;
}
@media (min-width:1281px){
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header__inner.site-header__actions{
    box-sizing:border-box!important;width:min(1480px,calc(100% - 64px))!important;max-width:1480px!important;margin-inline:auto!important;
    padding:.72rem 0!important;display:grid!important;grid-template-columns:minmax(205px,230px) minmax(0,1fr) auto auto!important;
    grid-template-areas:"brand nav lang support"!important;align-items:center!important;gap:.55rem 1rem!important;
  }
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header__inner>.ds-mars-home-brand{grid-area:brand!important;margin:0!important}
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header__inner>.site-nav{grid-area:nav!important;display:block!important;width:100%!important;min-width:0!important;margin:0!important}
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header__inner>.site-language-switcher{grid-area:lang!important;justify-self:end!important;margin:0!important}
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header__inner>.btn-soutien{grid-area:support!important;justify-self:end!important;margin:0!important;white-space:nowrap!important}
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .site-nav__inner{display:flex!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap!important;gap:4px 6px!important;width:100%!important}
}
@media (max-width:1280px){
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header__inner.site-header__actions{
    box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:0!important;padding:8px 12px!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) auto auto auto!important;
    grid-template-areas:"brand lang support toggle" "nav nav nav nav"!important;gap:8px!important;align-items:center!important;
  }
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header__inner>.ds-mars-home-brand{grid-area:brand!important}
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header__inner>.site-language-switcher{grid-area:lang!important;justify-self:end!important}
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header__inner>.btn-soutien{grid-area:support!important;justify-self:end!important;white-space:nowrap!important}
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .ds-mobile-nav-toggle{
    grid-area:toggle!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;
    padding:10px 12px!important;border:1px solid #d29d47!important;border-radius:9px!important;background:#132c43!important;color:#fff!important;font-weight:850!important;
  }
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .site-nav{grid-area:nav!important;display:none!important;position:static!important;width:100%!important}
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .site-nav.is-open{display:block!important}
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .site-nav__inner{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;width:100%!important}
}
@media (max-width:640px){
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header__inner.site-header__actions{
    grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"brand toggle" "lang lang" "support support" "nav nav"!important;
  }
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header__inner>.site-language-switcher{justify-self:start!important}
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header__inner>.btn-soutien{justify-self:start!important}
  body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .site-nav__inner{grid-template-columns:1fr!important}
}

/* Normalize inherited page-level differences inside the canonical header. */
html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page){margin:0!important}
html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .site-nav__inner{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin:0!important;
}
html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .site-language-switcher{
  position:relative!important;width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;
}
html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .site-language-switcher>summary{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;
  min-width:0!important;max-width:none!important;min-height:40px!important;padding:7px 9px!important;
  border:1px solid #314d62!important;border-radius:9px!important;background:#0d2236!important;color:#fff!important;cursor:pointer!important;
}
html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .site-language-switcher__flags{
  display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:4px!important;max-width:none!important;overflow:visible!important;
}
html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .site-language-switcher__flag{
  width:20px!important;height:14px!important;flex:0 0 20px!important;display:block!important;
}
html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .btn-soutien{
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:42px!important;padding:9px 13px!important;border:1px solid #cf725b!important;border-radius:8px!important;
  background:#b92f2b!important;color:#fff!important;-webkit-text-fill-color:#fff!important;text-decoration:none!important;
  font:800 14px/1.2 system-ui,sans-serif!important;white-space:nowrap!important;margin:0!important;
}
@media(max-width:640px){
  html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .site-language-switcher>summary{min-height:36px!important;padding:6px 8px!important}
  html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .btn-soutien{font-size:13px!important;min-height:40px!important;padding:8px 12px!important}
}
html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header__inner.site-header__actions .site-nav__inner{
  gap:.28rem .42rem!important;
}
html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header__inner.site-header__actions .site-nav__inner a,
html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header__inner.site-header__actions .site-nav__inner a:link,
html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header__inner.site-header__actions .site-nav__inner a:visited{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;min-height:38px!important;
  font-weight:520!important;
}

/* Final authoritative breakpoints: beat historical page-specific header patches. */
@media (max-width:1280px){
  html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .mars-header__inner.site-header__actions{
    box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:8px 12px!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) auto auto auto!important;
    grid-template-areas:"brand lang support toggle" "nav nav nav nav"!important;gap:8px!important;align-items:center!important;
  }
  html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .ds-mars-home-brand{
    grid-area:brand!important;display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;gap:.5rem!important;
    min-width:154px!important;max-width:none!important;flex:none!important;margin:0!important;
  }
  html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .ds-mars-home-brand__logo{width:42px!important;height:42px!important;}
  html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .site-language-switcher{grid-area:lang!important;justify-self:end!important;}
  html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .btn-soutien{grid-area:support!important;justify-self:end!important;}
  html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .ds-mobile-nav-toggle{grid-area:toggle!important;display:inline-flex!important;}
  html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .site-nav{grid-area:nav!important;display:none!important;width:100%!important;max-width:none!important;margin:0!important;}
  html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .site-nav.is-open{display:block!important;}
}
@media (max-width:640px){
  html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .mars-header__inner.site-header__actions{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"brand toggle" "lang lang" "support support" "nav nav"!important;gap:8px!important;padding:8px 12px!important;
  }
  html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .ds-mars-home-brand{
    grid-template-columns:44px minmax(0,1fr)!important;min-width:154px!important;max-width:none!important;gap:.5rem!important;
  }
  html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .ds-mars-home-brand__logo{width:42px!important;height:42px!important;}
  html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .site-language-switcher{grid-area:lang!important;justify-self:start!important;max-width:none!important;}
  html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .btn-soutien{grid-area:support!important;justify-self:start!important;}
  html#ds-mars-root body.ds-mars-theme-v619:not(.academy-module-page):not(.ds-academy-hub-page) .mars-header .ds-mobile-nav-toggle{grid-area:toggle!important;justify-self:end!important;}
}
