/* DELTA-SIERRA MARS — Lot24 canonical top header contract — 2026-08-14
   Goal: every classic Mars page uses the same desktop header geometry as the History books.
   Loaded after V23. Mobile/tablet <=1024px deliberately remain under the V19/V22 drawer contract. */

@media (min-width:1025px){
  .mars-header[data-ds-mars-header-contract="v24"]{
    position:relative!important;
    z-index:70!important;
    background:#071018!important;
    color:#fff!important;
    border-bottom:1px solid #9d672f!important;
  }

  .mars-header[data-ds-mars-header-contract="v24"] .mars-header__inner{
    box-sizing:border-box!important;
    width:min(calc(100% - 24px),1720px)!important;
    max-width:1720px!important;
    margin:0 auto!important;
    padding:9px 14px!important;
    min-width:0!important;
    align-items:center!important;
    gap:8px 10px!important;
  }

  .mars-header[data-ds-mars-header-contract="v24"] .ds-mars-home-brand{
    grid-area:brand!important;
    position:static!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    width:auto!important;
    height:auto!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:12px!important;
    color:#fff!important;
    text-decoration:none!important;
  }

  .mars-header[data-ds-mars-header-contract="v24"] .ds-mars-home-brand .ds-mars-header-logo{
    display:none!important;
  }

  .mars-header[data-ds-mars-header-contract="v24"] .ds-mars-home-brand:before{
    content:""!important;
    display:block!important;
    width:78px!important;
    height:78px!important;
    flex:0 0 78px!important;
    background:url('/mars-assets/img/brand/delta-sierra-mars-official.png') center/contain no-repeat!important;
    filter:drop-shadow(0 7px 15px rgba(0,0,0,.45))!important;
  }

  .mars-header[data-ds-mars-header-contract="v24"] .ds-mars-home-brand__copy{
    display:flex!important;
    flex-direction:column!important;
    min-width:0!important;
    line-height:1!important;
  }
  .mars-header[data-ds-mars-header-contract="v24"] .ds-mars-home-brand__copy small{
    color:#f7f8fa!important;
    font-size:.73rem!important;
    letter-spacing:.16em!important;
    font-weight:850!important;
  }
  .mars-header[data-ds-mars-header-contract="v24"] .ds-mars-home-brand__copy strong{
    margin-top:5px!important;
    color:#ec704d!important;
    font-size:1.9rem!important;
    letter-spacing:.07em!important;
  }
  .mars-header[data-ds-mars-header-contract="v24"] .ds-mars-home-brand__copy em{
    margin-top:6px!important;
    color:#f1d6a5!important;
    font-size:.58rem!important;
    font-style:normal!important;
    letter-spacing:.07em!important;
    font-weight:750!important;
    white-space:nowrap!important;
  }

  .mars-header[data-ds-mars-header-contract="v24"] .mars-brand{display:none!important}
  .mars-header[data-ds-mars-header-contract="v24"] .site-nav{grid-area:nav!important;min-width:0!important;width:100%!important;overflow:visible!important}
  .mars-header[data-ds-mars-header-contract="v24"] .site-nav__inner{
    box-sizing:border-box!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px 5px!important;
    min-width:0!important;
    width:100%!important;
    padding:5px!important;
    background:#0a1722!important;
    border:1px solid #42596a!important;
    border-radius:11px!important;
    overflow:visible!important;
  }
  .mars-header[data-ds-mars-header-contract="v24"] .site-nav a,
  .mars-header[data-ds-mars-header-contract="v24"] .site-nav a:link,
  .mars-header[data-ds-mars-header-contract="v24"] .site-nav a:visited{
    flex:0 0 auto!important;
    min-width:0!important;
    white-space:nowrap!important;
    padding:9px 8px!important;
    border-radius:7px!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    background:transparent!important;
    text-decoration:none!important;
    opacity:1!important;
    font:760 clamp(.76rem,.8vw,.9rem)/1.15 system-ui,sans-serif!important;
  }
  .mars-header[data-ds-mars-header-contract="v24"] .site-nav a:hover,
  .mars-header[data-ds-mars-header-contract="v24"] .site-nav a:focus-visible{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    background:#63331f!important;
    outline:2px solid #ffe89a!important;
    outline-offset:1px!important;
  }
  .mars-header[data-ds-mars-header-contract="v24"] .site-nav a[aria-current="page"],
  .mars-header[data-ds-mars-header-contract="v24"] .site-nav .mars-nav-link{
    color:#111a21!important;
    -webkit-text-fill-color:#111a21!important;
    background:#f2c261!important;
    border-color:#ffe08a!important;
  }

  .mars-header[data-ds-mars-header-contract="v24"] .site-language-switcher{
    grid-area:lang!important;
    position:relative!important;
    justify-self:end!important;
    align-self:center!important;
    margin:0!important;
  }
  .mars-header[data-ds-mars-header-contract="v24"] .btn-soutien{
    grid-area:support!important;
    justify-self:end!important;
    align-self:center!important;
    white-space:nowrap!important;
    margin:0!important;
  }
}

/* Wide desktop: exact compact one-row composition used as the visual reference. */
@media (min-width:1610px){
  .mars-header[data-ds-mars-header-contract="v24"] .mars-header__inner{
    min-height:96px!important;
    display:grid!important;
    grid-template-columns:minmax(220px,250px) minmax(0,1fr) auto auto!important;
    grid-template-areas:"brand nav lang support"!important;
  }
}

/* Standard laptop/desktop: keep the brand on the LEFT, then a full-width nav below.
   This is intentional when a single row would collide. */
@media (min-width:1025px) and (max-width:1609px){
  .mars-header[data-ds-mars-header-contract="v24"] .mars-header__inner{
    min-height:auto!important;
    display:grid!important;
    grid-template-columns:minmax(220px,1fr) auto auto!important;
    grid-template-areas:"brand lang support" "nav nav nav"!important;
  }
  .mars-header[data-ds-mars-header-contract="v24"] .site-nav__inner{
    justify-content:flex-start!important;
  }
}
