/* Shared header: grow the search field and keep navigation aligned right. */
.barre > a:first-child,.barre .devis-top,.barre .burger{flex-shrink:0}
.barre .devis-top{white-space:nowrap;justify-content:center}
.barre .recherche{min-width:0;flex:1 1 220px;max-width:none}
.barre .recherche input{min-width:0;width:100%}
.barre nav{flex-shrink:0;margin-left:auto}
@media(max-width:1500px){
 .barre{gap:12px;padding:0 16px}
 .barre nav{display:none}
 .barre .recherche{max-width:none}
 .barre .devis-top{margin-left:auto}
 .barre .burger{display:flex;margin-left:0}
 .menu-mob{max-height:calc(100dvh - 62px);overflow-y:auto}
}
@media(max-width:600px){
 body:has(.barre .recherche){padding-top:120px}
 .barre:has(.recherche){height:120px;flex-wrap:wrap;align-content:center;gap:8px 10px}
 .barre .logo{height:28px;max-width:110px;object-fit:contain}
 .barre .devis-top{font-size:13px;padding:10px 13px}
 .barre .burger{width:38px;height:38px}
 .barre .recherche{order:4;flex:0 0 100%;margin:0}
 .barre .recherche input{height:42px}
 body:has(.barre .recherche) .menu-mob{top:120px;max-height:calc(100dvh - 120px)}
 body:has(.barre .recherche) section[id]{scroll-margin-top:132px!important}
}
@media(min-width:1501px){.menu-mob.ouvert{display:none}}
/* Dropdown stays anchored to the upper-right menu button. */
.menu-mob{
 left:auto;right:16px;top:70px;
 width:280px;max-width:calc(100vw - 32px);
 max-height:min(520px,calc(100dvh - 86px));
 overflow-y:auto;overscroll-behavior:contain;
 padding:8px;border:1px solid var(--bord);border-radius:14px;
 box-shadow:0 12px 32px rgba(0,0,0,.16);
}
.menu-mob a{padding:9px 12px;font-size:14px;line-height:1.4}
@media(max-width:600px){
 body:has(.barre .recherche) .menu-mob{
  top:128px;max-height:min(480px,calc(100dvh - 144px));
 }
}
