/* v4.9.36 — navigation PC : logo / trois actions centrées / espaces privés,
   puis sept liens publics dans l'ordre souhaité. Menu compact sans doublons.
   Les règles pour Android/iPad et les écrans tactiles restent indépendantes. */
@media (min-width:1200px){
  html:not(.dgv2-tablet-nav-v4924) .site-header{
    height:auto!important;min-height:113px!important;overflow:visible!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .wrap.header-inner{
    display:grid!important;
    grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr)!important;
    grid-template-rows:68px 45px!important;
    grid-template-areas:"brand quick access" "nav nav nav"!important;
    width:min(calc(100% - 44px),1420px)!important;max-width:1420px!important;
    min-height:113px!important;height:auto!important;
    gap:0 12px!important;align-items:center!important;
    justify-items:stretch!important;margin:0 auto!important;overflow:visible!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .brand{
    grid-area:brand!important;display:flex!important;justify-self:start!important;
    flex:none!important;min-width:0!important;max-width:100%!important;
    width:215px!important;margin:0!important;align-items:center!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .brand img{
    display:block!important;width:205px!important;max-width:100%!important;
    max-height:52px!important;height:auto!important;object-fit:contain!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .header-primary-actions{
    grid-area:quick!important;display:flex!important;align-items:center!important;
    justify-content:center!important;justify-self:center!important;
    width:max-content!important;max-width:100%!important;gap:9px!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .header-primary-actions .btn{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    height:40px!important;min-height:40px!important;
    margin:0!important;padding:0 14px!important;
    font-size:11px!important;line-height:1.2!important;letter-spacing:0!important;
    font-weight:820!important;border-radius:10px!important;
    text-transform:uppercase!important;white-space:nowrap!important;
    text-decoration:none!important;flex:0 0 auto!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .header-cta{
    background:#e10600!important;color:#fff!important;
    border:1px solid #e10600!important;
    box-shadow:0 5px 14px rgba(225,6,0,.15)!important;
    min-width:170px!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .header-sim-cta-v4936{
    background:#fff9f9!important;color:#bf0808!important;
    border:1px solid #eea7a7!important;
    min-width:168px!important;box-shadow:none!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .header-sim-cta-v4936:hover,
  html:not(.dgv2-tablet-nav-v4924) .site-header .header-sim-cta-v4936.is-active{
    background:#ffefef!important;border-color:#df2d2d!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .header-partner-cta-v204{
    display:inline-flex!important;min-width:170px!important;
    background:#fff!important;border:1px solid #d71920!important;
    color:#c00000!important;box-shadow:none!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .header-partner-cta-v204:hover{
    background:#fdf1f1!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .header-actions{
    grid-area:access!important;display:flex!important;align-items:center!important;
    justify-content:flex-end!important;justify-self:end!important;
    width:auto!important;min-width:0!important;max-width:100%!important;
    flex:none!important;gap:14px!important;margin:0!important;padding:0!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .header-actions .desktop-only{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .header-actions .icon-link{
    flex:0 0 auto!important;min-width:85px!important;
    max-width:none!important;text-align:center!important;
    gap:2px!important;font-size:10px!important;line-height:1.2!important;
    text-decoration:none!important;white-space:nowrap!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .header-actions .icon-link svg{
    width:19px!important;height:19px!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .desktop-nav{
    grid-area:nav!important;display:block!important;align-self:stretch!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    margin:0!important;padding:0!important;flex:none!important;
    border-top:1px solid #ede8e6!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .desktop-nav ul{
    display:flex!important;flex-flow:row nowrap!important;
    align-items:center!important;justify-content:center!important;
    gap:clamp(22px,2.9vw,49px)!important;
    min-height:44px!important;margin:0!important;padding:0!important;
    list-style:none!important;white-space:nowrap!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .desktop-nav li{
    flex:0 0 auto!important;margin:0!important;padding:0!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .desktop-nav a{
    display:inline-flex!important;align-items:center!important;
    min-height:43px!important;padding:0!important;
    font-size:clamp(12px,.96vw,13.5px)!important;line-height:1.2!important;
    font-weight:790!important;letter-spacing:.01em!important;
    color:#22252b!important;text-decoration:none!important;white-space:nowrap!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .desktop-nav a:hover,
  html:not(.dgv2-tablet-nav-v4924) .site-header .desktop-nav a.is-active{color:#cf0804!important;}
  html:not(.dgv2-tablet-nav-v4924) .site-header .desktop-nav a.is-active:after{
    bottom:0!important;height:2px!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .menu-toggle,
  html:not(.dgv2-tablet-nav-v4924) .site-header .dgv2-mobile-nav-v4921{display:none!important;}
}
/* Compacts et mobiles : seul "Demander mes devis" reste dans la barre ;
   "Simuler mon budget" et "Devenir partenaire" figurent dans le tiroir. */
@media (max-width:1199px){
  .site-header .header-primary-actions{display:contents!important;}
  .site-header .header-sim-cta-v4936,
  .site-header .header-primary-actions > .header-partner-cta-v204{display:none!important;}
}
/* Cas spécifique tablettes Android/iPad : conserver l'en-tête tactile même en
   paysage et au-delà de 1199px. */
@media (min-width:1200px){
  html.dgv2-tablet-nav-v4924 .site-header .header-primary-actions{display:contents!important;}
  html.dgv2-tablet-nav-v4924 .site-header .header-sim-cta-v4936,
  html.dgv2-tablet-nav-v4924 .site-header .header-primary-actions > .header-partner-cta-v204{display:none!important;}
}
/* Accès rapide au simulateur dans le tiroir, séparé des liens de navigation. */
.dgv2-mobile-nav-v4921 .dgv2-menu-sim-v4936{
  display:flex!important;align-items:center;gap:10px;
  min-height:40px;padding:9px 14px;margin:5px 0;
  width:100%;border:1px solid #efb2b2;border-radius:11px;
  color:#bd0808;background:rgba(255,248,248,.94);
  font-weight:830;text-decoration:none;font-size:13px;line-height:1.2;
}
.dgv2-mobile-nav-v4921 .dgv2-menu-sim-v4936 .dgv2-icon{width:18px;height:18px;flex:0 0 18px}
.dgv2-mobile-nav-v4921 .dgv2-menu-sim-v4936 .dgv2-icon:last-child{margin-left:auto;width:15px;height:15px}
.dgv2-mobile-nav-v4921 .dgv2-menu-sim-v4936:focus-visible{outline:2px solid #bd0808;outline-offset:2px}

/* Petits laptops et fenêtres redimensionnées : éviter la navigation microscopique.
   Le gestionnaire existant autorise désormais l'ouverture du menu jusqu'à 1199px. */
@media (min-width:900px) and (max-width:1199px){
  html:not(.dgv2-tablet-nav-v4924) .site-header{
    height:67px!important;min-height:67px!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .wrap.header-inner{
    display:flex!important;flex-flow:row nowrap!important;
    width:min(calc(100% - 36px),1040px)!important;
    min-height:67px!important;height:67px!important;
    gap:14px!important;align-items:center!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .brand{
    flex:0 0 auto!important;min-width:0!important;width:207px!important;margin:0!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .brand img{
    width:205px!important;max-width:100%!important;max-height:50px!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .header-cta{
    margin-left:auto!important;min-height:39px!important;height:39px!important;
    padding:0 16px!important;font-size:11px!important;white-space:nowrap!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .desktop-nav,
  html:not(.dgv2-tablet-nav-v4924) .site-header .desktop-only,
  html:not(.dgv2-tablet-nav-v4924) .site-header .header-partner-cta-v204{
    display:none!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .header-actions{
    display:flex!important;align-items:center!important;
    width:auto!important;min-width:0!important;margin:0!important;gap:0!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .menu-toggle{
    display:inline-grid!important;place-items:center!important;
    width:45px!important;height:45px!important;
    min-width:45px!important;flex:0 0 45px!important;
    padding:8px!important;cursor:pointer!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .menu-toggle svg{
    width:29px!important;height:29px!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .dgv2-mobile-nav-v4921{
    position:absolute!important;top:100%!important;left:0!important;right:0!important;
    display:none!important;width:100%!important;
    height:calc(100dvh - 67px)!important;max-height:calc(100dvh - 67px)!important;
    overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
    padding:0!important;margin:0!important;z-index:150!important;
    border:0!important;box-shadow:0 16px 38px rgba(20,25,35,.13)!important;
    background:#fcf9f8!important;
    background-image:linear-gradient(180deg,rgba(255,255,255,.93),rgba(255,255,255,.85)),url('../img/mobile-menu-landscape-v4921.webp')!important;
    background-position:center!important;background-size:cover!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .site-header .dgv2-mobile-nav-v4921.is-open{
    display:block!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .dgv2-mobile-nav-v4921 .dgv2-mobile-menu-content-v4921{
    display:flex!important;flex-direction:column!important;
    width:min(100% - 48px,700px)!important;max-width:700px!important;
    margin:0 auto!important;padding:24px 16px 34px!important;gap:15px!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .dgv2-mobile-nav-v4921 .dgv2-menu-heading-v4921{
    font-size:11px!important;color:#656971!important;letter-spacing:.09em!important;
    text-transform:uppercase!important;margin:0 0 7px!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .dgv2-mobile-nav-v4921 .dgv2-menu-links-v4921{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:5px 14px!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .dgv2-mobile-nav-v4921 .dgv2-menu-links-v4921 a{
    display:flex!important;align-items:center!important;gap:11px!important;
    min-height:43px!important;padding:8px 10px!important;
    border-radius:10px!important;font-size:14px!important;font-weight:750!important;
    text-decoration:none!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .dgv2-mobile-nav-v4921 .dgv2-menu-links-v4921 a:hover{
    background:rgba(225,6,0,.065)!important;color:#b90000!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .dgv2-mobile-nav-v4921 .dgv2-menu-partner-v4921{
    display:flex!important;align-items:center!important;gap:12px!important;
    min-height:47px!important;padding:9px 14px!important;background:#17191e!important;
    color:#fff!important;border-radius:12px!important;font-weight:800!important;text-decoration:none!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .dgv2-mobile-nav-v4921 .dgv2-menu-access-v4921{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  html:not(.dgv2-tablet-nav-v4924) .dgv2-mobile-nav-v4921 .dgv2-menu-access-v4921 a{
    display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
    min-height:46px!important;padding:10px 12px!important;
    color:#fff!important;background:#25282c!important;
    border-radius:12px!important;text-align:center!important;font-weight:800!important;
    text-decoration:none!important;
  }
}
