/**
 * Logo — image officielle utilisateur (emblème seul + texte HTML à côté).
 */

body > header:not(.partners-hero) {
  min-height: 80px !important;
  height: auto !important;
  overflow: visible !important;
  align-items: center !important;
}

body > header:not(.partners-hero) a.logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  height: auto !important;
  overflow: visible !important;
}

body > header:not(.partners-hero) .logo-mark {
  display: block !important;
  flex-shrink: 0 !important;
  overflow: visible !important;
}

body > header:not(.partners-hero) img.logo-img {
  display: block !important;
  height: 58px !important;
  width: auto !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: left center !important;
}

body > header:not(.partners-hero) .logo-wordmark,
body > header:not(.partners-hero) .logo-title,
body > header:not(.partners-hero) .logo-tagline {
  overflow: visible !important;
  line-height: 1.3 !important;
}

@media (min-width: 1280px) {
  body > header:not(.partners-hero) .logo-tagline {
    display: inline !important;
  }
}

@media (max-width: 1279px) {
  body > header:not(.partners-hero) {
    min-height: 56px !important;
    padding: 6px 12px !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }
  body > header:not(.partners-hero) a.logo {
    gap: 8px !important;
    max-width: min(52vw, 280px);
  }
  body > header:not(.partners-hero) img.logo-img {
    height: 44px !important;
  }
  body > header:not(.partners-hero) .logo-title {
    font-size: 0.82rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body > header:not(.partners-hero) .logo-tagline {
    display: none !important;
  }
}

footer .footer-brand {
  align-items: center !important;
}

footer img.footer-logo-img {
  display: block !important;
  height: 50px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: left center !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

footer .footer-brand-name,
footer .footer-brand-tagline {
  overflow: visible !important;
  line-height: 1.3 !important;
}
