/* En-têtes FR concernés uniquement ; aucun sélecteur ne vise les pieds de page. */
header.entete-fr-standard .brand.pilot-brand { width: 300px; max-width: 300px; }
header.entete-fr-standard .pilot-logo {
 display:flex; flex-direction:column; align-items:center; gap:3px;
 width:100%; height:auto; aspect-ratio:auto; container-type:normal;
}
header.entete-fr-standard .pilot-lettering {
 position:static; display:block; flex:none; width:190px; height:auto; overflow:hidden;
}
header.entete-fr-standard .pilot-signature {
 position:static; width:100%; font-size:12.16px; line-height:1.25; white-space:nowrap;
}
header.entete-fr-cta .header-cta {
 background:linear-gradient(135deg,#ffb55e,#e77f38); color:#1b0e08;
 box-shadow:0 12px 32px rgba(227,126,54,.24);
}
header.entete-fr-cta .header-cta:hover { box-shadow:0 16px 38px rgba(227,126,54,.32); }
@media (min-width:721px) and (max-width:1180px) {
 header.entete-fr-standard .brand.pilot-brand { width:260px; max-width:260px; }
 header.entete-fr-standard .pilot-signature { font-size:10.64px; }
}
@media (max-width:720px) {
 header.entete-fr-standard .brand.pilot-brand { width:220px; max-width:220px; }
 header.entete-fr-standard .pilot-logo { gap:2px; }
 header.entete-fr-standard .pilot-lettering { width:150px; }
 header.entete-fr-standard .pilot-signature,
 header.entete-fr-contact .brand .official-signature {
  font-size:11px; line-height:14px; white-space:normal; text-wrap:balance; overflow-wrap:anywhere;
 }
 /* Garder l'origine du logo Contact : sa marge verticale historique est
    conservée, et la hauteur accueille les deux lignes de signature. */
 header.entete-fr-contact .header-inner { height:auto; min-height:72px; }
 header.entete-fr-contact .brand.contact-brand {
  padding-block:calc((72px - (150px * 580 / 2172 + 2px + 13px)) / 2);
 }
}
@media (max-width:720px) {
 html.contact-menu-ready header.entete-fr-contact .main-nav {
  position:absolute; inset:100% 0 auto;
  max-height:max(44px,calc(100dvh - 100%));
 }
}

/* Surcharges locales des deux anciens boutons dorés et de leur navigation. */
header.entete-fr-standard:is(.offers-header,.studio-header) .main-nav a { color:#f0dfd4; }
header.entete-fr-standard:is(.offers-header,.studio-header) .main-nav a:is(:hover,.active) { color:var(--amber); }

/* Alignement mobile valide sur iPhone : aucun changement vertical ou sans JS. */
@media (max-width:720px) {
 html:is(.services-menu-ready,.realisations-menu-ready,.laboratoire-menu-ready,.offres-menu-ready,.studio-menu-ready,.contact-menu-ready) header:is(.entete-fr-standard,.entete-fr-contact) .header-inner {
  grid-template-columns:minmax(0,1fr) auto;
 }
 html:is(.services-menu-ready,.realisations-menu-ready,.laboratoire-menu-ready,.offres-menu-ready,.studio-menu-ready,.contact-menu-ready) header:is(.entete-fr-standard,.entete-fr-contact) .brand {
  width:170px; max-width:170px;
 }
 html:is(.services-menu-ready,.realisations-menu-ready,.laboratoire-menu-ready,.offres-menu-ready,.studio-menu-ready,.contact-menu-ready) header:is(.entete-fr-standard,.entete-fr-contact) .menu-toggle {
  grid-column:2; justify-self:end;
 }
}
