/* L’en-tête reste en haut de l’écran sur toutes les pages. */
body > header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
}

html {
  scroll-padding-top: calc(var(--sta-header-height, 80px) + 16px);
}

@media print {
  body > header {
    position: static;
  }
}

/* En-tête de marque partagé : mêmes proportions que le logo du pied de page. */
header .logo,
.legal-header .legal-logo {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  justify-content: center;
  gap: 0 !important;
  color: #103D30 !important;
  font-family: var(--sta-font-family) !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  letter-spacing: .07em !important;
  line-height: 1.15 !important;
  text-decoration: none;
  white-space: nowrap;
}

header .logo .logo-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 0 !important;
  color: #103D30 !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  line-height: 1.15 !important;
}

header .logo > span:not(.logo-copy),
header .logo .logo-copy > span:first-child {
  color: #103D30 !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
}

.site-footer .footer-brand {
  align-items: center !important;
  text-align: center !important;
  font-weight: 700 !important;
}

header .logo small,
header .logo .logo-copy small,
.legal-header .legal-logo small,
.site-footer .footer-brand small {
  align-self: center !important;
  text-align: center !important;
  font-weight: 500 !important;
}

header .logo small,
header .logo .logo-copy small,
.legal-header .legal-logo small {
  display: block;
  margin: 3px 0 0 !important;
  color: #000 !important;
  font-family: var(--sta-font-family) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: .035em !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
}

/* Le pied de page reprend l’alignement horizontal de l’en-tête. */
.site-footer .footer-wrap {
  width: min(1480px, calc(100% - 40px)) !important;
  margin-inline: auto !important;
}

@media (max-width: 700px) {
  .site-footer .footer-wrap {
    width: calc(100% - 32px) !important;
  }
}

/* Titres en semi-gras avec IBM Plex Sans. */
main :is(h1, h2, h3) {
  font-weight: 600 !important;
}

/* Même taille pour le titre principal de chaque page, avec adaptation à l’écran. */
main h1 {
  font-size: clamp(34px, 4vw, 52px) !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  letter-spacing: -.04em !important;
}

@media (max-width: 650px) {
  header .logo,
  .legal-header .legal-logo,
  .site-footer .footer-brand {
    font-size: 17px !important;
  }

  header .logo small,
  header .logo .logo-copy small,
  .legal-header .legal-logo small,
  .site-footer .footer-brand small {
    font-size: 8.5px !important;
  }
}

/* Accent rouge en contour sur les repères et bandeaux d’appel à l’action. */
:is(.number, .support-card .step, .coord-icon, .coordination .icon, .partnership-note .icon, .check-mark) {
  background: #fff !important;
  border: 1px solid #E1000F !important;
  color: #000 !important;
}

:is(.contact-box, .cta-box, .bottom-cta) {
  border: 1px solid #E1000F !important;
  background: #fff !important;
  color: #000 !important;
}

:is(.contact-box, .cta-box, .bottom-cta) :is(h1, h2, h3, p, .eyebrow, .callback-note, .callback-note strong) {
  color: #000 !important;
}

/* Les boutons restent immobiles au survol, tout en gardant leurs transitions de couleur. */
:is(a.button, button, .button, .action, .pro-action, .nav-cta, .submit, input[type="submit"], input[type="button"]):hover {
  transform: none !important;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease !important;
}

/* Les actions principales restent vertes ; les boutons auparavant blancs retrouvent leurs styles. */
:is(a.button, button, .button, .action, .pro-action, .nav-cta, .submit, input[type="submit"], input[type="button"], .sta-chat-primary-link):where(:not(.secondary, .pro-action, .sta-chat-profile-option, .month-button, .text-button, .remove-work, .trade-tab:not([aria-pressed="true"]), .calendar-day:disabled)) {
  background: #103D30 !important;
  border-color: #103D30 !important;
  color: #fff !important;
}

:is(a.button, button, .button, .action, .pro-action, .nav-cta, .submit, input[type="submit"], input[type="button"], .sta-chat-primary-link):where(:not(.secondary, .pro-action, .sta-chat-profile-option, .month-button, .text-button, .remove-work, .trade-tab:not([aria-pressed="true"]), .calendar-day:disabled)):hover,
:is(a.button, button, .button, .action, .pro-action, .nav-cta, .submit, input[type="submit"], input[type="button"], .sta-chat-primary-link):where(:not(.secondary, .pro-action, .sta-chat-profile-option, .month-button, .text-button, .remove-work, .trade-tab:not([aria-pressed="true"]), .calendar-day:disabled)):active,
button[aria-pressed="true"] {
  background: #103D30 !important;
  border-color: #103D30 !important;
  color: #fff !important;
}

:is(a.button, button, .button, .action, .pro-action, .nav-cta, .submit, input[type="submit"], input[type="button"], .sta-chat-primary-link):focus-visible {
  outline: 2px solid #103D30 !important;
  outline-offset: 3px;
}

button[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px #fff;
}

.trade-tab[aria-pressed="true"] svg {
  stroke: currentColor !important;
}

button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* Monogramme approuvé et lettrage natif, net même aux petites tailles. */
header .logo,
.legal-header .legal-logo,
.site-footer .footer-brand {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  width: 280px;
  max-width: 100%;
  container-type: inline-size;
  padding: 0 !important;
  line-height: 1 !important;
}

:is(header .logo, .legal-header .legal-logo, .site-footer .footer-brand) .brand-symbol {
  position: relative;
  display: block;
  flex: 0 0 34%;
  aspect-ratio: 890 / 480;
  overflow: hidden;
  clip-path: polygon(0 0, 75% 0, 100% 100%, 0 100%);
}

.brand-symbol .brand-symbol-artwork {
  position: absolute;
  display: block;
  width: 235.05618%;
  max-width: none;
  height: 156.66667%;
  left: -8.98876%;
  top: -23.95833%;
}

:is(header .logo, .legal-header .legal-logo, .site-footer .footer-brand) .brand-wordmark {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

:is(header .logo, .legal-header .legal-logo, .site-footer .footer-brand) .brand-name {
  color: #202820 !important;
  font-family: var(--sta-font-family) !important;
  font-size: clamp(17px, 8.9cqw, 25px) !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  letter-spacing: -.02em !important;
  white-space: nowrap;
}

:is(header .logo, .legal-header .legal-logo, .site-footer .footer-brand) .brand-tagline {
  color: #202820 !important;
  font-family: var(--sta-font-family) !important;
  font-size: clamp(8px, 3.93cqw, 11px) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap;
}

/* Utilise le fichier graphique horizontal complet dans l’en-tête et les pages légales. */
header .logo,
.legal-header .legal-logo {
  display: inline-flex !important;
  flex: 0 0 330px !important;
  width: 330px !important;
  height: 80px !important;
  max-width: 100%;
  overflow: hidden;
  padding: 0 !important;
  line-height: 0 !important;
}

:is(header .logo, .legal-header .legal-logo) .brand-symbol {
  display: block !important;
  position: relative !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  height: 80px !important;
  aspect-ratio: auto !important;
  overflow: hidden !important;
  clip-path: none !important;
}

:is(header .logo, .legal-header .legal-logo) .brand-symbol-artwork {
  position: absolute !important;
  display: block !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
}

:is(header .logo, .legal-header .legal-logo) .brand-wordmark {
  display: none !important;
}

@media (max-width: 700px) {
  header .logo,
  .legal-header .legal-logo {
    flex-basis: 260px !important;
    width: 260px !important;
    height: 63px !important;
  }

  :is(header .logo, .legal-header .legal-logo) .brand-symbol {
    height: 63px !important;
  }
}


/* Logo STA en vecteurs nets, avec proportions du fichier de marque complet. */
header .logo,
.legal-header .legal-logo {
  display: inline-flex !important;
  flex: 0 0 330px !important;
  width: 330px !important;
  height: auto !important;
  max-width: 100% !important;
  overflow: visible !important;
  line-height: 0 !important;
  align-items: center !important;
}

:is(header .logo, .legal-header .legal-logo) .brand-logo-image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain;
}

@media (max-width: 700px) {
  header .logo,
  .legal-header .legal-logo {
    flex-basis: 260px !important;
    width: 260px !important;
  }
}

/* Petits écrans : le logo et le retour restent dans la largeur disponible. */
@media (max-width: 540px) {
  .legal-header .legal-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }
  .legal-header .legal-logo {
    width: min(190px, 100%) !important;
    min-width: 0;
  }
  .legal-header .legal-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 11px;
    white-space: nowrap;
  }
}
