/* En-tête commun : référence visuelle de la page « Nos coachs ». */
.site-header .main-nav a,
.site-header .main-nav a:hover,
.site-header .main-nav a:focus-visible,
.site-header .main-nav a.active {
  /* Garder la place de la bordure pour éviter tout décalage, mais ne plus l'afficher. */
  border-bottom-color: transparent;
}
.site-header .main-nav a:focus-visible { outline: 2px solid #ffce63; outline-offset: 4px; border-radius: 2px; }

.coach-profile-page .subpage-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 29, 48, .08);
}
.coach-profile-page .subpage-header.is-compact {
  height: 72px;
  min-height: 72px;
  padding-top: 8px;
  padding-bottom: 5px;
}

@media (min-width: 741px) {
  .home-v2-page .home-v2-header,
  .coaches-directory-page .subpage-header,
  .coach-profile-page .subpage-header {
    width: 100%;
    max-width: none;
    height: 108px;
    min-height: 108px;
    margin: 0;
    padding-top: 13px;
    padding-bottom: 0;
    background: linear-gradient(105deg, #002741, #073c59 60%, #002c49);
  }
  .home-v2-page .home-v2-header .main-nav,
  .coaches-directory-page .subpage-header .main-nav,
  .coach-profile-page .subpage-header .main-nav { margin-top: 37px; }
  .home-v2-page .home-v2-header-wrap.is-compact .main-nav,
  .coaches-directory-page .subpage-header.is-compact .main-nav,
  .coach-profile-page .subpage-header.is-compact .main-nav { margin-top: 13px; }
}

@media (min-width: 1101px) {
  .home-v2-page .home-v2-header,
  .coaches-directory-page .subpage-header,
  .coach-profile-page .subpage-header {
    padding-left: max(5.55%, calc((100% - 1120px) / 2));
    padding-right: max(5.55%, calc((100% - 1120px) / 2));
  }
}

@media (min-width: 741px) and (max-width: 1100px) {
  .home-v2-page .home-v2-header,
  .coaches-directory-page .subpage-header,
  .coach-profile-page .subpage-header { padding-left: 5.55%; padding-right: 5.55%; }
}

@media (min-width: 741px) and (max-width: 900px) {
  .home-v2-page .home-v2-header .brand,
  .coaches-directory-page .subpage-header .brand,
  .coach-profile-page .subpage-header .brand { width: 240px; flex-basis: 240px; }
  .home-v2-page .home-v2-header .brand-name,
  .coaches-directory-page .subpage-header .brand-name,
  .coach-profile-page .subpage-header .brand-name { font-size: 28px; }
  .home-v2-page .home-v2-header .brand-mark,
  .coaches-directory-page .subpage-header .brand-mark,
  .coach-profile-page .subpage-header .brand-mark { width: 230px; }
  .home-v2-page .home-v2-header .brand-tagline,
  .coaches-directory-page .subpage-header .brand-tagline,
  .coach-profile-page .subpage-header .brand-tagline { font-size: 12px; }
  .home-v2-page .home-v2-header .main-nav,
  .coaches-directory-page .subpage-header .main-nav,
  .coach-profile-page .subpage-header .main-nav { gap: 13px; font-size: 13px; }
}

@media (max-width: 740px) {
  .home-v2-page .home-v2-header,
  .coaches-directory-page .subpage-header,
  .coach-profile-page .subpage-header {
    width: 100%;
    height: auto;
    min-height: 143px;
    padding: 9px 16px 18px;
    margin: 0;
    gap: 15px;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(105deg, #002741, #073c59 60%, #002c49);
  }
  .home-v2-page .home-v2-header .main-nav,
  .coaches-directory-page .subpage-header .main-nav,
  .coach-profile-page .subpage-header .main-nav { margin-top: 0; gap: 12px; }

  .home-v2-page .home-v2-header-wrap.is-compact .home-v2-header,
  .coaches-directory-page .subpage-header.is-compact,
  .coach-profile-page .subpage-header.is-compact {
    min-height: 93px;
    padding: 8px 12px 10px;
    gap: 7px;
  }
}

/*
 * Le bandeau réduit ne doit pas modifier la hauteur occupée dans la page.
 * Sinon, autour du seuil de 65px, son rétrécissement remonte le document,
 * repasse sous le seuil et déclenche une alternance sans fin au scroll.
 * On conserve donc 108px dans le flux et on masque visuellement les 36px
 * du bas : le bandeau visible fait toujours 72px une fois réduit.
 */
@media (min-width: 741px) {
  .home-v2-page .home-v2-header-wrap,
  .coaches-directory-page .subpage-header,
  .coach-profile-page .subpage-header {
    height: 108px;
    min-height: 108px;
  }

  .home-v2-page .home-v2-header-wrap.is-compact,
  .coaches-directory-page .subpage-header.is-compact,
  .coach-profile-page .subpage-header.is-compact {
    clip-path: inset(0 0 36px 0);
  }

  .home-v2-page .home-v2-header-wrap.is-compact .home-v2-header,
  .coaches-directory-page .subpage-header.is-compact,
  .coach-profile-page .subpage-header.is-compact {
    height: 108px;
    min-height: 108px;
  }
}
