/* ExoMatch — en-tête responsive commun à toutes les pages, novembre 2026.
   Ne touche pas au rendu ordinateur. Les règles mobiles sont autonomes afin
   que le panneau conserve une présentation fiable sur la page Séances. */
.exo-site-header .mobile-menu-toggle,
.exo-site-header .exo-header-mobile-only,
.exo-site-header .exo-header-close,
.exo-site-header .exo-header-mobile-link { display: none; }
.exo-site-header .exo-header-backdrop[hidden] { display: none !important; }

@media (max-width: 1180px) {
  .exo-site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e5ebf1;
    box-shadow: 0 2px 12px rgba(18, 37, 55, .045);
  }
  .exo-site-header .nav-wrap {
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 62px;
    margin-inline: auto;
    padding: 9px max(16px, env(safe-area-inset-right, 0px)) 9px max(16px, env(safe-area-inset-left, 0px));
  }
  .exo-site-header .brand {
    display: inline-flex;
    flex: 0 1 auto;
    min-width: 0;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #101c2e;
    font-size: 1.1rem;
    font-weight: 850;
    letter-spacing: -.035em;
    text-decoration: none;
    white-space: nowrap;
  }
  .exo-site-header .brand-mark {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: #fff;
    background: #1478ee;
    box-shadow: 0 4px 10px rgba(20,120,238,.15);
  }
  .exo-site-header .brand-mark svg { width: 22px; height: 22px; }
  .exo-site-header .nav-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; margin-left: auto; }
  .exo-site-header .nav-search,
  .exo-site-header .nav-tracking,
  .exo-site-header .nav-cta { display: none !important; }
  .exo-site-header .mobile-menu-toggle {
    display: inline-grid !important;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin: 0;
    padding: 0;
    color: #142235;
    background: #f3f6fa;
    border: 1px solid #e3e9f1;
    border-radius: 12px;
    box-shadow: none;
    cursor: pointer;
  }
  .exo-site-header .mobile-menu-toggle svg { display: block; width: 23px; height: 23px; }
  .exo-site-header .exo-header-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(7, 18, 32, .58);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  .exo-site-header #mainNav {
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 3;
    width: min(390px, 89vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    color: #152336;
    background: #fff;
    border-radius: 0;
    box-shadow: -18px 0 60px rgba(6, 20, 36, .24);
    visibility: hidden;
    opacity: 0;
    transform: translateX(102%);
    pointer-events: none;
    transition: none;
  }
  body.exo-header-menu-ready .exo-site-header #mainNav {
    transition: transform .24s ease, opacity .2s ease, visibility .24s;
  }
  body.exo-header-menu-open .exo-site-header #mainNav {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
  .exo-site-header .exo-header-mobile-only { display: flex; }
  .exo-site-header .exo-header-mobile-top {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 2px 0 15px;
    border-bottom: 1px solid #e9edf2;
  }
  .exo-site-header .exo-header-mobile-title { display: grid; gap: 3px; }
  .exo-site-header .exo-header-mobile-title strong { color: #122139; font-size: 1.17rem; letter-spacing: -.025em; }
  .exo-site-header .exo-header-mobile-title span { color: #3e5875; font-size: .78rem; }
  .exo-site-header .exo-header-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    padding: 0;
    color: #142235;
    background: #f1f5f9;
    border: 1px solid #e1e8ef;
    border-radius: 12px;
    cursor: pointer;
  }
  .exo-site-header .exo-header-close svg { display: block; width: 22px; height: 22px; }
  .exo-site-header .exo-header-mobile-link { display: flex !important; }
  .exo-site-header #mainNav > a {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-height: 46px;
    width: 100%;
    margin: 0;
    padding: 11px 14px;
    color: #203a59;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 650;
    line-height: 1.35;
  }
  .exo-site-header #mainNav > a:hover,
  .exo-site-header #mainNav > a:focus-visible { background: #f2f7fc; color: #0869ca; }
  .exo-site-header #mainNav > a.is-active,
  .exo-site-header #mainNav > a[aria-current="page"] {
    color: #075fc2;
    border-color: #d7e8fd;
    background: #eaf4ff;
    font-weight: 800;
  }
  .exo-site-header #mainNav > a.exo-header-desktop-sessions { display: none !important; }
  .exo-site-header #mainNav > a.exo-header-mobile-link--start {
    color: #122c23;
    background: #b3f3c6;
    border-color: #a2e8b7;
    font-weight: 800;
  }
  .exo-site-header #mainNav > a.exo-header-mobile-link--start.is-active { background: #d5f9e1; }
  body.exo-header-menu-open { overflow: hidden; }
  /* Le panneau latéral s'arrête au-dessus de la barre fixe. */
  .exo-site-header #mainNav {
    bottom: var(--exo-tabbar-height, 76px);
    height: calc(100dvh - var(--exo-tabbar-height, 76px));
    max-height: calc(100dvh - var(--exo-tabbar-height, 76px));
  }
  .exo-site-header .mobile-menu-toggle:focus-visible,
  .exo-site-header .exo-header-close:focus-visible,
  .exo-site-header #mainNav a:focus-visible {
    outline: 3px solid #1478ee;
    outline-offset: 2px;
  }
  body.exo-workout-active .exo-site-header { display: none !important; }
}
@media (max-width: 360px) {
  .exo-site-header .nav-wrap { min-height: 58px; padding-block: 6px; }
  .exo-site-header #mainNav { width: min(340px, 94vw); padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  body.exo-header-menu-ready .exo-site-header #mainNav { transition: none; }
}
