/* ============================================================
   GYMOUV' — Corrections & Améliorations globales V5
   Navigation propre · Widget accessibilité · Design amélioré
   ============================================================ */

/* ============================================================
   GYMOUV' DARK PALETTE TOKENS
   ============================================================ */
:root {
  --gymouv-dark-bg: #070e11;
  --gymouv-dark-surface: #0c171a;
  --gymouv-dark-gradient: linear-gradient(135deg, #070e11 0%, #0d1a1d 60%, #070e11 100%);
  --gymouv-dark-border: rgba(62, 194, 206, 0.15);
}

/* ============================================================
   MASQUAGE ÉLÉMENTS OBSOLÈTES
   ============================================================ */
.top-bar { display: none !important; }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff !important;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.site-header .container,
.site-header .header-container {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1540px !important;
  margin: 0 auto !important;
  padding: 0 1.5rem !important;
  height: 84px !important;
  gap: 1.5rem !important;
}

.header-logo {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

/* Logo : lockup officiel recadré (logo-header.svg, ratio 376:106) — lisible dès le premier regard */
.header-logo img {
  height: 56px !important;
  width: auto !important;
  display: block !important;
  max-width: none !important;
  transition: height 0.2s ease;
}

@media (max-width: 992px) {
  .site-header .container,
  .site-header .header-container {
    height: 68px !important;
    padding: 0 1rem !important;
  }
  .header-logo img {
    height: 44px !important;
    max-width: none !important;
  }
}

@media (max-width: 360px) {
  .site-header .container,
  .site-header .header-container {
    padding: 0 0.75rem !important;
  }
  .header-logo img {
    height: 38px !important;
    max-width: none !important;
  }
}

.header-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.nav-list {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.15rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.nav-item {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}

.nav-link {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  padding: 0.35rem 0.55rem !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: color 0.15s ease, background-color 0.15s ease !important;
  white-space: nowrap !important;
  letter-spacing: -0.01em !important;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-item:hover > .nav-link,
.nav-item.is-open > .nav-link {
  color: #005a5e !important;
  background-color: #f0f9fa !important;
}

.nav-item.is-active > .nav-link {
  color: #005a5e !important;
  background-color: #eaf7f8 !important;
  font-weight: 700 !important;
}

/* ---------- Bouton toggle flèche — UNE SEULE flèche ---------- */
.nav-subtoggle {
  background: transparent !important;
  border: none !important;
  padding: 0.35rem 0.2rem !important;
  cursor: pointer !important;
  color: #94a3b8 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  transition: color 0.15s ease, background-color 0.15s ease !important;
  line-height: 1 !important;
  margin-left: -0.15rem !important;
}

.nav-subtoggle svg {
  display: block !important;
  transition: transform 0.22s ease !important;
}

.nav-subtoggle:hover,
.nav-subtoggle:focus-visible {
  color: #00A3AD !important;
  background-color: #f0f9fa !important;
}

/* Rotation de la flèche quand dropdown ouvert */
.nav-item.is-open > .nav-subtoggle svg {
  transform: rotate(180deg) !important;
}

.nav-item:hover > .nav-subtoggle {
  color: #00A3AD !important;
}

/* ---------- Dropdown Menus ---------- */
.nav-dropdown-menu {
  display: block !important;
  position: absolute !important;
  top: calc(100% + 0.35rem) !important;
  left: 0 !important;
  min-width: 255px !important;
  background: #ffffff !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04) !important;
  padding: 0.45rem !important;
  z-index: 1200 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(6px) !important;
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms !important;
}

#dropdown-sport-sante,
#dropdown-handicap {
  min-width: 275px !important;
}

.nav-dropdown-menu.align-right {
  left: auto !important;
  right: 0 !important;
}

/* Zone morte pour éviter fermeture au survol */
.nav-dropdown-menu::before {
  content: '' !important;
  position: absolute !important;
  top: -10px !important;
  left: -10px !important;
  right: -10px !important;
  height: 10px !important;
  background: transparent !important;
  pointer-events: auto !important;
}

/* Ouverture */
.nav-item:hover > .nav-dropdown-menu,
.nav-item.is-open > .nav-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 0s !important;
}

.nav-dropdown-menu a {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  color: #334155 !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease !important;
  gap: 0.45rem !important;
  line-height: 1.35 !important;
}

.nav-dropdown-menu a:hover {
  background: #f0f9fa !important;
  color: #005a5e !important;
}

.nav-dropdown-menu a:focus-visible {
  background: #f0f9fa !important;
  color: #005a5e !important;
  outline: 2px solid #00A3AD !important;
  outline-offset: 1px !important;
}

/* Mise en valeur subtile Handicap & inclusion */
.nav-featured-item {
  color: #005a5e !important;
  font-weight: 600 !important;
  background: transparent !important;
}
.nav-featured-item:hover,
.nav-featured-item:focus-visible {
  background: #f0f9fa !important;
  color: #003b3e !important;
}

/* État page active dans les dropdowns (discret, sans fond coloré permanent) */
.nav-dropdown-menu a[aria-current="page"],
.nav-dropdown-menu a.active,
.nav-dropdown-menu a.current,
.nav-dropdown-menu a.is-active {
  background: transparent !important;
  color: #005a5e !important;
  font-weight: 700 !important;
}

.nav-dropdown-menu a[aria-current="page"]:hover,
.nav-dropdown-menu a.active:hover,
.nav-dropdown-menu a.current:hover,
.nav-dropdown-menu a.is-active:hover {
  background: #f0f9fa !important;
  color: #003b3e !important;
}

.nav-dropdown-menu a[aria-current="page"]:focus-visible,
.nav-dropdown-menu a.active:focus-visible,
.nav-dropdown-menu a.current:focus-visible,
.nav-dropdown-menu a.is-active:focus-visible {
  background: #f0f9fa !important;
  color: #005a5e !important;
  outline: 2px solid #00A3AD !important;
  outline-offset: 1px !important;
}

/* Planning & inscriptions avec icône calendrier & séparateur discret */
.nav-dropdown-planning {
  margin-top: 0.35rem !important;
  padding-top: 0.55rem !important;
  border-top: 1px solid #E2E8F0 !important;
  color: #00696c !important;
  font-weight: 600 !important;
}
.nav-dropdown-planning:hover {
  background: #e6fafb !important;
  color: #004f51 !important;
}
.nav-icon-calendar {
  flex-shrink: 0 !important;
  color: #00A3AD !important;
}

.nav-dropdown-menu a.has-desc {
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.nav-desc {
  font-size: 0.7rem !important;
  color: #00A3AD !important;
  font-weight: 600 !important;
  background: #E0F7FA !important;
  padding: 0.1rem 0.45rem !important;
  border-radius: 4px !important;
  margin-left: 0.5rem !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* ---------- Header Actions & CTA Hierarchy ---------- */
.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  justify-content: flex-end !important;
  flex-shrink: 0 !important;
}

.btn-cta-header {
  height: 38px !important;
  padding: 0 1.15rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  letter-spacing: -0.01em !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* CTA Principal (Plein Violet Gymouv' - Conforme WCAG AA 4.87:1) */
.btn-cta-header.btn-cta-header--primary,
.btn-cta-header.btn--primary {
  color: #ffffff !important;
  background-color: #da1370 !important;
  border: 1.5px solid #da1370 !important;
  border-radius: 9999px !important;
  box-shadow: 0 3px 12px rgba(218, 19, 112, 0.25) !important;
}
.btn-cta-header.btn-cta-header--primary:hover,
.btn-cta-header.btn-cta-header--primary:focus-visible,
.btn-cta-header.btn--primary:hover,
.btn-cta-header.btn--primary:focus-visible {
  background-color: #be0e60 !important;
  border-color: #be0e60 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 16px rgba(218, 19, 112, 0.35) !important;
}

/* CTA Secondaire (allégé : contour fin, sans ombre, visuellement derrière le CTA principal) */
.btn-cta-header.btn-cta-header--secondary,
.btn-cta-header.btn--outline {
  color: #00696c !important;
  background-color: transparent !important;
  border: 1px solid #b6e6e8 !important;
  border-radius: 9999px !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  padding: 0 1rem !important;
}
.btn-cta-header.btn-cta-header--secondary:hover,
.btn-cta-header.btn-cta-header--secondary:focus-visible,
.btn-cta-header.btn--outline:hover,
.btn-cta-header.btn--outline:focus-visible {
  background-color: #e6fafb !important;
  border-color: #00A3AD !important;
  color: #004f51 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(37, 209, 214, 0.2) !important;
}

/* ============================================================
   BREAKPOINTS NAVIGATION
   ============================================================ */
@media (min-width: 1221px) and (max-width: 1360px) {
  .site-header .container,
  .site-header .header-container {
    padding: 0 1rem !important;
    gap: 0.65rem !important;
  }
  .header-logo img {
    height: 50px !important;
  }
  .nav-list {
    gap: 0.05rem !important;
  }
  .nav-link {
    font-size: 0.815rem !important;
    padding: 0.35rem 0.42rem !important;
  }
  .btn-cta-header {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.78rem !important;
  }
}

@media (max-width: 1220px) {
  .header-nav { display: none !important; }

  .header-actions .btn-a11y-header,
  .header-actions .btn-contact-header,
  .header-actions .btn-cta-header { display: none !important; }

  .site-header .container,
  .site-header .header-container {
    display: flex !important;
    justify-content: space-between !important;
    padding: 0 1.25rem !important;
  }

  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    padding: 6px;
    background: transparent;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    cursor: pointer;
    gap: 5px;
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #1E293B;
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-mobile {
    display: none;
    position: fixed;
    top: 85px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 99998;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem 1.25rem 8rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    flex-direction: column;
    gap: 0;
  }

  .nav-mobile.open { display: flex !important; }
}

@media (max-width: 992px) {
  .nav-mobile { top: 69px; }
}

@media (min-width: 1221px) {
  .nav-toggle { display: none !important; }
  .nav-mobile { display: none !important; }
}

/* ============================================================
   MENU MOBILE — ACCORDÉON
   ============================================================ */
.nav-mobile-group {
  border-bottom: 1px solid #F1F5F9;
}

.nav-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
}

.nav-mobile-title {
  font-size: 1rem;
  font-weight: 700;
  color: #010202;
  text-decoration: none;
  padding: 0.25rem 0;
  flex: 1;
  transition: color 0.15s;
}

.nav-mobile-title:hover { color: #00A3AD; }

.nav-mobile-subtoggle {
  background: transparent;
  border: 1px solid #CBD5E1;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}

.nav-mobile-subtoggle:hover {
  border-color: #00A3AD;
  background: #f0f9fa;
}

.nav-mobile-subtoggle::after {
  content: '+';
  font-size: 1.1rem;
  line-height: 1;
  color: #64748B;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.22s ease;
}

.nav-mobile-subtoggle[aria-expanded="true"]::after {
  content: '−';
}

.nav-mobile-submenu {
  /* Accordéon — masqué par max-height, jamais display:none (meilleure accessibilité) */
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 1rem;
  border-left: 2px solid #E0F7FA;
  margin-left: 0.25rem;
  transition: max-height 0.28s ease, padding-bottom 0.28s ease;
}

.nav-mobile-submenu.open {
  max-height: 600px;
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
}

.nav-mobile-submenu a {
  font-size: 0.9rem;
  color: #475569;
  text-decoration: none;
  padding: 0.45rem 0.5rem;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.12s, background 0.12s;
}

.nav-mobile-submenu a:hover {
  color: #00A3AD;
  background: #f0f9fa;
}

.nav-mobile-submenu a.nav-featured-item {
  color: #005a5e;
  font-weight: 600;
  background: transparent;
}

.nav-mobile-submenu a.nav-featured-item:hover,
.nav-mobile-submenu a.nav-featured-item:focus-visible {
  color: #005a5e;
  background: #f0f9fa;
}

.nav-mobile-submenu a[aria-current="page"],
.nav-mobile-submenu a.active,
.nav-mobile-submenu a.current,
.nav-mobile-submenu a.is-active {
  background: transparent !important;
  color: #005a5e !important;
  font-weight: 700 !important;
}

.nav-mobile-submenu a[aria-current="page"]:hover,
.nav-mobile-submenu a.active:hover,
.nav-mobile-submenu a.current:hover,
.nav-mobile-submenu a.is-active:hover {
  color: #005a5e !important;
  background: #f0f9fa !important;
}

.nav-mobile-submenu a.nav-dropdown-planning {
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid #E2E8F0;
  color: #00696c;
  font-weight: 600;
}

.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #E2E8F0;
}

/* ============================================================
   WIDGET ACCESSIBILITÉ FLOTTANT — V5
   Panneau entièrement masqué quand fermé (display:none + aria-hidden)
   Bouton flottant en bas à droite, indépendant du contenu
   ============================================================ */
.a11y-widget {
  position: fixed !important;
  bottom: 1.25rem !important;
  right: 1.25rem !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  pointer-events: none; /* le widget lui-même ne bloque pas les clics */
}

/* Le bouton flottant — toujours visible, toujours cliquable */
.a11y-widget .a11y-trigger {
  pointer-events: auto; /* le bouton est cliquable */
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.65rem 1.1rem !important;
  background: #070e11 !important;
  color: #ffffff !important;
  border: 2px solid rgba(62, 194, 206, 0.4) !important;
  border-radius: 50px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(1, 2, 2, 0.35) !important;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s !important;
  white-space: nowrap !important;
}

.a11y-widget .a11y-trigger:hover {
  background: #00A3AD !important;
  border-color: #00A3AD !important;
  box-shadow: 0 6px 20px rgba(0,163,173,0.4) !important;
  transform: translateY(-1px) !important;
}

.a11y-widget .a11y-trigger:focus-visible {
  outline: 3px solid #00A3AD !important;
  outline-offset: 3px !important;
}

/* Panneau FERMÉ — totalement invisible, pas de place prise, pas tabulable */
.a11y-widget .a11y-panel {
  pointer-events: none; /* cliquable seulement quand ouvert */
  display: none !important; /* masqué complètement quand fermé */
  position: fixed !important;
  bottom: 5rem !important;
  right: 1.25rem !important;
  width: min(380px, calc(100vw - 2.5rem)) !important;
  background: #ffffff !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.08) !important;
  z-index: 99999 !important;
  overflow: hidden !important;
}

/* Panneau OUVERT — visible et cliquable */
.a11y-widget .a11y-panel.open {
  display: block !important;
  pointer-events: auto !important;
  animation: a11ySlideIn 0.22s ease-out both;
}

@keyframes a11ySlideIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .a11y-widget .a11y-panel.open { animation: none; }
}

/* Contenu du panneau */
.a11y-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid #F1F5F9;
  background: #F8FAFC;
}

.a11y-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #010202 !important;
  margin: 0 !important;
}

.a11y-close {
  background: transparent;
  border: 1px solid #E2E8F0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  transition: background 0.15s, color 0.15s;
}

.a11y-close:hover { background: #F1F5F9; color: #010202; }

.a11y-body { padding: 1rem 1.25rem 1.25rem; }

.a11y-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid #F8FAFC;
  gap: 1rem;
}

.a11y-setting label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  flex: 1;
  cursor: default;
}

.btn-a11y-toggle {
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  color: #64748B;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 72px;
  text-align: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-a11y-toggle:hover { background: #E2E8F0; border-color: #94A3B8; color: #010202; }

.btn-a11y-toggle.active {
  background: #00A3AD;
  border-color: #00A3AD;
  color: #ffffff;
}

.btn-a11y-toggle:focus-visible { outline: 2px solid #00A3AD; outline-offset: 2px; }

.a11y-reset-all {
  width: 100%;
  margin-top: 1rem;
  padding: 0.6rem;
  background: transparent;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s;
}

.a11y-reset-all:hover { background: #FEF2F2; border-color: #FDA4AF; color: #9F1239; }

/* Mobile — bouton rond seul, positionné au-dessus de la quickbar mobile */
@media (max-width: 768px) {
  .a11y-widget { bottom: 4.75rem !important; right: 1rem !important; }

  .a11y-widget .a11y-trigger span { display: none; }
  .a11y-widget .a11y-trigger {
    padding: 0.75rem !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  .a11y-widget .a11y-panel {
    bottom: 8.25rem !important;
    right: 0.75rem !important;
  }
}

/* ============================================================
   CLASSES MODIFICATRICES ACCESSIBILITÉ — Fonctionnelles
   Note: Ne JAMAIS appliquer filter/transform sur <body> car cela brise
   le contexte de position: fixed de tous les éléments enfants (widget a11y, header, etc.).
   ============================================================ */
body.a11y-contrast {
  /* Renforcement des contrastes textuels et de surface WCAG AAA */
  --gymouv-text: #050b14;
  --gymouv-text-muted: #1e293b;
  --gymouv-border: #334155;
  --trrl-text: #050b14;
  --trrl-text-muted: #1e293b;
  --trrl-border: #334155;
  color: #050b14;
}

body.a11y-contrast p,
body.a11y-contrast li,
body.a11y-contrast dd,
body.a11y-contrast dt {
  color: #0f172a !important;
}

body.a11y-contrast h1,
body.a11y-contrast h2,
body.a11y-contrast h3,
body.a11y-contrast h4,
body.a11y-contrast h5,
body.a11y-contrast h6 {
  color: #000000 !important;
}

body.a11y-contrast a:not(.btn-stitch-pink):not(.btn-stitch-turquoise):not(.btn-cta-header):not(.btn-trrl-pink):not(.btn-primary):not(.btn-secondary):not(.nav-link):not(.hero-feature__actions a):not(.btn-stitch-pink *):not(.btn-stitch-turquoise *) {
  color: #005259 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  font-weight: 600;
}

body.a11y-contrast .trrl-presence-card,
body.a11y-contrast .trrl-step-card,
body.a11y-contrast .gymouv-card,
body.a11y-contrast .card,
body.a11y-contrast .ecosystem-node,
body.a11y-contrast .ecosystem-pole,
body.a11y-contrast .trrl-presence-box {
  border: 1.5px solid #334155 !important;
}

body.a11y-contrast input,
body.a11y-contrast select,
body.a11y-contrast textarea {
  border: 2px solid #0f172a !important;
  color: #000000 !important;
}

body.a11y-contrast .a11y-widget .a11y-trigger {
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 0 2px #000000, 0 4px 16px rgba(0,0,0,0.5) !important;
}

body.a11y-font-large {
  font-size: 112% !important;
}
body.a11y-font-large h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem) !important; }
body.a11y-font-large h2 { font-size: clamp(1.7rem, 4vw, 2.8rem) !important; }
body.a11y-font-large h3 { font-size: clamp(1.35rem, 2.8vw, 1.7rem) !important; }

body.a11y-spacing {
  line-height: 1.85 !important;
  letter-spacing: 0.06em !important;
  word-spacing: 0.1em !important;
}
body.a11y-spacing p { margin-bottom: 1.5em !important; }
body.a11y-spacing li { margin-bottom: 0.6em !important; }

/* ============================================================
   ANIMATIONS SCROLL (IntersectionObserver)
   ============================================================ */
.animate-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Délais en cascade pour les grilles */
.animate-up:nth-child(1), .animate-left:nth-child(1) { transition-delay: 0s; }
.animate-up:nth-child(2), .animate-left:nth-child(2) { transition-delay: 0.08s; }
.animate-up:nth-child(3), .animate-left:nth-child(3) { transition-delay: 0.16s; }
.animate-up:nth-child(4), .animate-left:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .animate-up, .animate-left, .timeline-step {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   AMÉLIORATIONS DESIGN — Hero pages internes
   ============================================================ */
.page-hero {
  background: linear-gradient(150deg, #f0fbfc 0%, #fff 55%, #fdf2f7 100%) !important;
  border-bottom: none !important;
  padding: 4rem 0 3.5rem !important;
  position: relative !important;
  overflow: hidden !important;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3ec2ce, #c84f88);
}

/* CTA band et blocs d'action Gymouv' */
.cta-band {
  background: linear-gradient(135deg, #070e11 0%, #0d1a1d 60%, #070e11 100%) !important;
  border-top: 1px solid rgba(62, 194, 206, 0.12);
  border-bottom: 1px solid rgba(62, 194, 206, 0.12);
}
.cta-band h2 { color: #ffffff !important; }
.cta-band p { color: rgba(255,255,255,0.85) !important; }

.pillar-cta-box,
.stitch-cta-card-box {
  background: linear-gradient(135deg, #070e11 0%, #0d1a1d 60%, #070e11 100%) !important;
  border: 1px solid rgba(62, 194, 206, 0.15) !important;
  box-shadow: 0 20px 45px rgba(1, 2, 2, 0.25) !important;
}


/* ============================================================
   BOUTONS ROSES CONFORMES WCAG AA (contraste texte blanc >= 4.5:1)
   ============================================================ */
.btn-stitch-pink,
.btn-trr-pink,
.btn-trrl-pink {
  background-color: #da1370 !important;
  border-color: #da1370 !important;
  color: #ffffff !important;
}
.btn-stitch-pink:hover,
.btn-stitch-pink:focus-visible,
.btn-trr-pink:hover,
.btn-trr-pink:focus-visible,
.btn-trrl-pink:hover,
.btn-trrl-pink:focus-visible {
  background-color: #be0e60 !important;
  border-color: #be0e60 !important;
  color: #ffffff !important;
}

/* Cards plus modernes avec micro-animation au survol */
.card {
  border: 1px solid #E2E8F0 !important;
  transition: box-shadow 0.28s ease, transform 0.28s ease, border-color 0.28s ease !important;
}
.card:hover {
  box-shadow: 0 14px 40px rgba(0,0,0,0.10) !important;
  border-color: rgba(62,194,206,0.35) !important;
  transform: translateY(-4px) !important;
}

/* Section contraste alterné */
.section--grey { background: #F8FAFC !important; }

/* ============================================================
   FOOTER MASTER 2026
   ============================================================ */
.site-footer {
  background: #070e11;
  color: rgba(255,255,255,0.8);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(62, 194, 206, 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  margin-bottom: 1.15rem;
}

.footer-brand a {
  display: inline-block;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  line-height: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-brand a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.footer-brand a:focus-visible {
  outline: 2px solid #25D1D6;
  outline-offset: 3px;
}

.footer-brand img,
.footer-logo {
  height: 38px !important;
  width: auto !important;
  display: block !important;
  object-fit: contain !important;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
  max-width: 320px;
  margin-bottom: 0.85rem;
}

.footer-address {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  font-style: normal;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

/* Réseaux sociaux */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #25D1D6;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-social-link:focus-visible {
  outline: 2px solid #25D1D6;
  outline-offset: 2px;
}

.footer-social-icon {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 4px;
}

/* Colonnes & liens */
.footer-heading {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #ffffff !important;
  margin-bottom: 1.15rem !important;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
  line-height: 1.4;
  display: inline-flex;
}

.footer-links a:hover {
  color: #25D1D6;
  padding-left: 2px;
}

.footer-links a:focus-visible {
  outline: 2px solid #25D1D6;
  outline-offset: 2px;
  color: #25D1D6;
}

/* Colonne Contact & CTA */
.footer-contact-list {
  margin-bottom: 1.25rem;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-contact-link svg {
  color: #25D1D6;
  flex-shrink: 0;
}

.footer-contact-link:hover {
  color: #25D1D6 !important;
}

.footer-cta-wrap {
  margin-top: 0.75rem;
}

.btn-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #da1370;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(218, 19, 112, 0.25);
}

.btn-footer-cta:hover {
  background: #be0e60;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(218, 19, 112, 0.4);
  color: #ffffff !important;
}

.btn-footer-cta:focus-visible {
  outline: 2px solid #25D1D6;
  outline-offset: 3px;
}

/* Barre inférieure */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  margin: 0;
  color: rgba(255,255,255,0.5);
  font-size: 0.8125rem;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom-links a,
.footer-bottom-links .footer-cookie-btn {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.8125rem;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  cursor: pointer;
  line-height: inherit;
  transition: color 0.15s ease;
  display: inline;
}

.footer-bottom-links a:hover,
.footer-bottom-links .footer-cookie-btn:hover {
  color: #25D1D6;
  text-decoration: underline;
}

.footer-bottom-links a:focus-visible,
.footer-bottom-links .footer-cookie-btn:focus-visible {
  outline: 2px solid #25D1D6;
  outline-offset: 2px;
}

/* Responsive footer */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem !important;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding-bottom: 3.5rem !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .footer-bottom {
    padding-bottom: 2rem !important;
  }
  .footer-bottom-inner {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1rem !important;
  }
  .footer-bottom-links {
    justify-content: center !important;
    gap: 0.85rem !important;
  }
  .footer-desc {
    max-width: 100% !important;
  }
}

/* ============================================================
   MICRO-INTERACTIONS BOUTONS
   ============================================================ */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.btn:hover::after { opacity: 1; }

/* ============================================================
   FOCUS VISIBLE GLOBAL
   ============================================================ */
:focus-visible {
  outline: 3px solid #3ec2ce !important;
  outline-offset: 3px !important;
}

/* Lien d'évitement */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 99999;
  background: #070e11;
  color: #fff;
  border: 1px solid #3ec2ce;
  padding: 0.6rem 1.25rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  transition: top 0.15s;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Active link dans la nav */
.nav-link.active {
  color: #00A3AD !important;
  background-color: #f0f9fa !important;
}

/* ============================================================
   DEPLOY ANIMATION — carte territoires (SVG paths)
   ============================================================ */
.deploy-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

.deploy-line-animated {
  animation: drawLine 0.8s ease forwards;
}

.deploy-line-animated:nth-child(1) { animation-delay: 0.1s; }
.deploy-line-animated:nth-child(2) { animation-delay: 0.35s; }
.deploy-line-animated:nth-child(3) { animation-delay: 0.6s; }
.deploy-line-animated:nth-child(4) { animation-delay: 0.85s; }

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .deploy-line { stroke-dashoffset: 0; animation: none; }
  .deploy-line-animated { animation: none; stroke-dashoffset: 0; }
}

/* ============================================================
   PATH ANIMATE — SVG parcours homepage
   ============================================================ */
.path-animate {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.5s ease;
}
.path-animate.is-visible {
  stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: reduce) {
  .path-animate { stroke-dashoffset: 0; transition: none; }
}


/* ============================================================
   PERFORMANCE & MOBILE COMPREHENSIVE FIXES (Audit Lighthouse & Ergonomie)
   ============================================================ */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

/* Touch targets minimum 44px sur mobile */
@media (max-width: 768px) {
  .btn, button, input[type="submit"], select, .nav-mobile a, .nav-mobile-title, .nav-mobile-subtoggle {
    min-height: 44px;
  }
  
  /* Empêcher l'auto-zoom d'iOS sur les champs de formulaire */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
  
  /* Ajustements de paddings pour conteneurs mobiles */
  .container, .container--narrow {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  
  /* Adaptabilité des groupes de boutons sur smartphone */
  .btn-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }
  
  .btn-group .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Cartes et grilles sur mobile */
  .grid {
    gap: 1.25rem !important;
  }
  
  .programme-card-footer, .card-footer {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  
  .programme-card-footer .btn {
    width: 100% !important;
    text-align: center !important;
  }

  /* Tableaux scrollables horizontalement sans casser le viewport */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
  }
}

/* Amélioration des contrastes et de l'accessibilité */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #00A3AD !important;
  outline-offset: 2px !important;
}

/* ============================================================
   RESPONSIVE — Prevention overflow horizontal global
   ============================================================ */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

.container {
  width: 100% !important;
  max-width: min(1400px, 100%) !important;
  box-sizing: border-box !important;
}

/* Newsletter responsive */
@media (max-width: 480px) {
  #newsletter-email {
    font-size: 16px !important; /* Prevent iOS zoom */
  }
  .newsletter-form > div {
    flex-direction: column !important;
  }
  .newsletter-form > div button {
    width: 100% !important;
  }
}

/* Partner badges responsive */
@media (max-width: 480px) {
  .partner-name-badge {
    font-size: 0.8rem !important;
    padding: 0.5rem 0.9rem !important;
  }
}

/* Testimonials responsive */
@media (max-width: 640px) {
  .testimonial-card {
    padding: 1.5rem !important;
  }
}

/* Table et formulaire responsive */
@media (max-width: 640px) {
  table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* Images max-width */
img {
  max-width: 100% !important;
  height: auto !important;
}

/* SVG responsive */
svg.parcours-svg,
#territory-map {
  max-width: 100% !important;
}

/* Grille programmes responsive */
@media (max-width: 640px) {
  .programmes-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Footer responsive */
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Hero responsive 320px */
@media (max-width: 380px) {
  .hero-home h1 {
    font-size: 1.6rem !important;
  }
  .btn-group {
    flex-direction: column !important;
  }
  .btn-group .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}


/* ── SCREEN-READER ONLY ─────────────────────────────────── */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* btn-a11y-header : icone seule visible, texte masque */
.btn-a11y-header {
  display: flex;
  align-items: center;
  gap: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  color: inherit;
  transition: background 0.15s;
}
.btn-a11y-header:hover {
  background: rgba(0,163,173,0.08);
}

/* ============================================================
   SCROLL MARGIN FOR STICKY HEADER & BREADCRUMBS
   ============================================================ */
[id] {
  scroll-margin-top: 100px;
}

.breadcrumb-trail {
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 0;
  font-size: 0.825rem;
}

.breadcrumb-trail .container {
  display: flex;
  align-items: center;
}

.breadcrumb-trail ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-trail li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb-trail a {
  color: #00696c;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.breadcrumb-trail a:hover {
  color: #004f51;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #94a3b8;
  font-size: 0.75rem;
  user-select: none;
}

.breadcrumb-current {
  color: #1e293b;
  font-weight: 600;
}

.btn-a11y-header {
  display: none !important;
}


/* ============================================================
   OPTIMISATION UX GLOBALE DES HERO (DESKTOP & MOBILE)
   Ligne de flottaison maîtrisée, respiration haute ~32-48px,
   alignement haut des colonnes texte/média, CTAs 100% visibles sans scroll.
   ============================================================ */

/* 1. Conteneurs de section Hero */
.stitch-hero {
  padding: 1.75rem 0 2.25rem !important;
}

.pillar-hero {
  padding: 1.65rem 0 2.15rem !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.trrl-hero {
  padding: 1.65rem 0 2.15rem !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.trr-hero {
  padding: 1.85rem 0 2.25rem !important;
}

.page-hero {
  padding: 1.85rem 0 2.25rem !important;
}

/* 2. Grilles 2 colonnes — Alignement vers le haut (start) et espacement optimisé */
.stitch-hero-grid,
.pillar-hero-grid,
.trrl-hero-grid {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  gap: 2.5rem 2.25rem !important;
  align-items: start !important;
}

/* 3. Badges et étiquettes de Hero */
.stitch-badges-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.45rem !important;
  margin-bottom: 0.65rem !important;
}

.stitch-badge {
  margin-bottom: 0.6rem !important;
}

/* 4. Titres H1 */
.stitch-hero-title {
  font-size: clamp(1.95rem, 3vw, 2.65rem) !important;
  line-height: 1.14 !important;
  margin-bottom: 0.65rem !important;
  letter-spacing: -0.025em !important;
}

.pillar-hero-title {
  font-size: clamp(1.8rem, 2.7vw, 2.35rem) !important;
  line-height: 1.18 !important;
  margin-bottom: 0.65rem !important;
  letter-spacing: -0.02em !important;
}

.trrl-hero-title {
  font-size: clamp(1.8rem, 2.6vw, 2.25rem) !important;
  line-height: 1.18 !important;
  margin-bottom: 0.45rem !important;
}

/* 5. Sous-titres et leads */
.pillar-hero-subtitle,
.trrl-hero-subtitle {
  font-size: 0.975rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.55rem !important;
  line-height: 1.4 !important;
}

.stitch-hero-lead,
.pillar-hero-lead,
.trrl-hero-lead,
.page-hero__lead,
.page-hero .lead {
  font-size: 1rem !important;
  line-height: 1.55 !important;
  color: #4b5563 !important;
  margin-bottom: 1.15rem !important;
  max-width: 620px !important;
}

/* 6. Boutons et actions */
.stitch-hero-actions,
.pillar-hero-actions,
.trrl-hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  align-items: center !important;
  margin-bottom: 0.55rem !important;
}

.stitch-hero-sublink-b2b,
.pillar-pro-sublink {
  display: inline-flex !important;
  align-items: center !important;
  margin-top: 0.25rem !important;
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
}

/* 7. Médias et images des Hero */
.stitch-hero-media-card {
  position: relative !important;
  border-radius: 24px 12px 24px 12px !important;
  overflow: hidden !important;
  max-height: 380px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background-color: #ffffff !important;
}

.stitch-hero-media-card img {
  width: 100% !important;
  height: 380px !important;
  max-height: 380px !important;
  object-fit: cover !important;
  object-position: center 35% !important;
  display: block !important;
}

.pillar-media-frame {
  position: relative !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  max-height: 360px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background-color: #ffffff !important;
  display: block !important;
}

.pillar-media-frame img,
.pillar-media-frame picture img {
  width: 100% !important;
  height: 360px !important;
  max-height: 360px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 18px !important;
}

.trrl-hero-media {
  height: 270px !important;
  max-height: 270px !important;
  border-radius: 18px !important;
}

.trrl-hero-media img {
  height: 100% !important;
  max-height: 270px !important;
  object-fit: cover !important;
}

/* 8. Responsiveness Tablette et Mobile */
@media (max-width: 992px) {
  .stitch-hero-grid,
  .pillar-hero-grid,
  .trrl-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  .stitch-hero-media-card,
  .stitch-hero-media-card img,
  .pillar-media-frame,
  .pillar-media-frame img,
  .pillar-media-frame picture img {
    height: 280px !important;
    max-height: 280px !important;
  }

  .trrl-hero-media,
  .trrl-hero-media img {
    height: 240px !important;
    max-height: 240px !important;
  }
}

@media (max-width: 640px) {
  .stitch-hero,
  .pillar-hero,
  .trrl-hero,
  .trr-hero,
  .page-hero {
    padding: 1.35rem 0 1.6rem !important;
  }

  .stitch-hero-title {
    font-size: clamp(1.75rem, 6.5vw, 2.15rem) !important;
  }

  .pillar-hero-title,
  .trrl-hero-title {
    font-size: clamp(1.6rem, 5.8vw, 1.95rem) !important;
  }

  .stitch-hero-media-card,
  .stitch-hero-media-card img,
  .pillar-media-frame,
  .pillar-media-frame img,
  .pillar-media-frame picture img {
    height: 220px !important;
    max-height: 220px !important;
  }

  .trrl-hero-media,
  .trrl-hero-media img {
    height: 200px !important;
    max-height: 200px !important;
  }
}

/* ============================================================
   OPTIMISATION UX GLOBALE DES HERO (DESKTOP & MOBILE)
   Ligne de flottaison maîtrisée, respiration haute ~32-48px,
   alignement haut des colonnes texte/média, CTAs 100% visibles sans scroll.
   ============================================================ */

/* 1. Conteneurs de section Hero */
body .stitch-hero,
.stitch-hero {
  padding: 1.75rem 0 2rem !important;
  min-height: auto !important;
  height: auto !important;
}

body .pillar-hero,
.pillar-hero {
  padding: 1.65rem 0 2rem !important;
  min-height: auto !important;
  height: auto !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body .trrl-hero,
.trrl-hero {
  padding: 1.65rem 0 2rem !important;
  min-height: auto !important;
  height: auto !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body .trr-hero,
.trr-hero {
  padding: 1.75rem 0 2rem !important;
  min-height: auto !important;
}

body .page-hero,
.page-hero {
  padding: 1.75rem 0 2rem !important;
  min-height: auto !important;
}

/* 2. Grilles 2 colonnes — Alignement vers le haut (start) et espacement optimisé */
body .stitch-hero-grid,
.stitch-hero-grid,
body .pillar-hero-grid,
.pillar-hero-grid,
body .trrl-hero-grid,
.trrl-hero-grid {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  gap: 2.25rem 2rem !important;
  align-items: start !important;
}

/* 3. Badges et étiquettes de Hero */
body .stitch-badges-group,
.stitch-badges-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.45rem !important;
  margin-bottom: 0.65rem !important;
}

body .stitch-badge,
.stitch-badge {
  margin-bottom: 0.6rem !important;
}

/* 4. Titres H1 */
body .stitch-hero-title,
.stitch-hero-title {
  font-size: clamp(1.95rem, 2.9vw, 2.6rem) !important;
  line-height: 1.14 !important;
  margin-bottom: 0.65rem !important;
  letter-spacing: -0.025em !important;
}

body .pillar-hero-title,
.pillar-hero-title {
  font-size: clamp(1.8rem, 2.6vw, 2.35rem) !important;
  line-height: 1.18 !important;
  margin-bottom: 0.65rem !important;
  letter-spacing: -0.02em !important;
}

body .trrl-hero-title,
.trrl-hero-title {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem) !important;
  line-height: 1.18 !important;
  margin-bottom: 0.45rem !important;
}

/* 5. Sous-titres et leads */
body .pillar-hero-subtitle,
.pillar-hero-subtitle,
body .trrl-hero-subtitle,
.trrl-hero-subtitle {
  font-size: 0.975rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.55rem !important;
  line-height: 1.4 !important;
}

body .stitch-hero-lead,
.stitch-hero-lead,
body .pillar-hero-lead,
.pillar-hero-lead,
body .trrl-hero-lead,
.trrl-hero-lead,
body .page-hero__lead,
.page-hero__lead,
body .page-hero .lead,
.page-hero .lead {
  font-size: 1rem !important;
  line-height: 1.55 !important;
  color: #4b5563 !important;
  margin-bottom: 1.15rem !important;
  max-width: 620px !important;
}

/* 6. Boutons et actions */
body .stitch-hero-actions,
.stitch-hero-actions,
body .pillar-hero-actions,
.pillar-hero-actions,
body .trrl-hero-actions,
.trrl-hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  align-items: center !important;
  margin-bottom: 0.55rem !important;
}

body .stitch-hero-sublink-b2b,
.stitch-hero-sublink-b2b,
body .pillar-pro-sublink,
.pillar-pro-sublink {
  display: inline-flex !important;
  align-items: center !important;
  margin-top: 0.25rem !important;
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
}

/* 7. Médias et images des Hero */
body .stitch-hero-visual,
.stitch-hero-visual {
  width: 100% !important;
  max-height: 380px !important;
  align-self: start !important;
}

body .stitch-hero-media-card,
.stitch-hero-media-card {
  position: relative !important;
  border-radius: 24px 12px 24px 12px !important;
  overflow: hidden !important;
  height: 380px !important;
  max-height: 380px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background-color: #ffffff !important;
}

body .stitch-hero-media-card img,
.stitch-hero-media-card img {
  width: 100% !important;
  height: 380px !important;
  max-height: 380px !important;
  object-fit: cover !important;
  object-position: center 35% !important;
  display: block !important;
}

body .pillar-media-frame,
.pillar-media-frame {
  position: relative !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  height: 360px !important;
  max-height: 360px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background-color: #ffffff !important;
  display: block !important;
  align-self: start !important;
}

body .pillar-media-frame img,
.pillar-media-frame img,
body .pillar-media-frame picture img,
.pillar-media-frame picture img {
  width: 100% !important;
  height: 360px !important;
  max-height: 360px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 18px !important;
}

body .trrl-hero-media,
.trrl-hero-media {
  height: 270px !important;
  max-height: 270px !important;
  border-radius: 18px !important;
  align-self: start !important;
}

body .trrl-hero-media img,
.trrl-hero-media img {
  height: 100% !important;
  max-height: 270px !important;
  object-fit: cover !important;
}

/* 8. Responsiveness Tablette et Mobile */
@media (max-width: 992px) {
  body .stitch-hero-grid,
  .stitch-hero-grid,
  body .pillar-hero-grid,
  .pillar-hero-grid,
  body .trrl-hero-grid,
  .trrl-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  body .stitch-hero-visual,
  .stitch-hero-visual,
  body .stitch-hero-media-card,
  .stitch-hero-media-card,
  body .stitch-hero-media-card img,
  .stitch-hero-media-card img,
  body .pillar-media-frame,
  .pillar-media-frame,
  body .pillar-media-frame img,
  .pillar-media-frame img,
  body .pillar-media-frame picture img,
  .pillar-media-frame picture img {
    height: 280px !important;
    max-height: 280px !important;
  }

  body .trrl-hero-media,
  .trrl-hero-media,
  body .trrl-hero-media img,
  .trrl-hero-media img {
    height: 240px !important;
    max-height: 240px !important;
  }
}

@media (max-width: 640px) {
  body .stitch-hero,
  .stitch-hero,
  body .pillar-hero,
  .pillar-hero,
  body .trrl-hero,
  .trrl-hero,
  body .trr-hero,
  .trr-hero,
  body .page-hero,
  .page-hero {
    padding: 1.25rem 0 1.5rem !important;
  }

  body .stitch-hero-title,
  .stitch-hero-title {
    font-size: clamp(1.65rem, 6.5vw, 2.1rem) !important;
  }

  body .pillar-hero-title,
  .pillar-hero-title,
  body .trrl-hero-title,
  .trrl-hero-title {
    font-size: clamp(1.55rem, 5.8vw, 1.9rem) !important;
  }

  body .stitch-hero-visual,
  .stitch-hero-visual,
  body .stitch-hero-media-card,
  .stitch-hero-media-card,
  body .stitch-hero-media-card img,
  .stitch-hero-media-card img,
  body .pillar-media-frame,
  .pillar-media-frame,
  body .pillar-media-frame img,
  .pillar-media-frame img,
  body .pillar-media-frame picture img,
  .pillar-media-frame picture img {
    height: 220px !important;
    max-height: 220px !important;
  }

  body .trrl-hero-media,
  .trrl-hero-media,
  body .trrl-hero-media img,
  .trrl-hero-media img {
    height: 200px !important;
    max-height: 200px !important;
  }
}

/* ============================================================
   HIÉRARCHIE ET HARMONISATION DES HERO PAR TYPE DE PAGE
   (Types A à F) — Desktop & Mobile
   ============================================================ */

/* ---------- BASE COMMUNE HERO ---------- */
.stitch-hero-grid,
.pillar-hero-grid,
.trrl-hero-grid {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  gap: 2.5rem 2.25rem !important;
  align-items: start !important;
}

.stitch-hero,
.pillar-hero,
.trrl-hero,
.trr-hero,
.page-hero {
  position: relative;
  overflow: hidden;
}

/* ============================================================
   TYPE A — HOMEPAGE (Vitrine immersive : 80% à 90% hauteur sous navbar)
   ============================================================ */
@media (min-width: 993px) {
  body .stitch-hero,
  .stitch-hero,
  body .hero--home,
  .hero--home {
    padding: 2.65rem 0 3.5rem !important;
    min-height: calc(84svh - 66px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }
}

body .stitch-badges-group,
.stitch-badges-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  margin-bottom: 0.85rem !important;
}

body .stitch-hero-title,
.stitch-hero-title {
  font-size: clamp(2.1rem, 3.2vw, 2.85rem) !important;
  line-height: 1.15 !important;
  margin-bottom: 0.85rem !important;
  letter-spacing: -0.025em !important;
}

body .stitch-hero-lead,
.stitch-hero-lead {
  font-size: 1.05rem !important;
  line-height: 1.62 !important;
  color: #4b5563 !important;
  margin-bottom: 1.45rem !important;
  max-width: 600px !important;
}

body .stitch-hero-actions,
.stitch-hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.85rem !important;
  align-items: center !important;
  margin-bottom: 0.85rem !important;
}

body .stitch-hero-sublink-b2b,
.stitch-hero-sublink-b2b {
  display: inline-flex !important;
  align-items: center !important;
  margin-top: 0.35rem !important;
  font-size: 0.875rem !important;
  line-height: 1.4 !important;
}

body .stitch-hero-visual,
.stitch-hero-visual {
  width: 100% !important;
  align-self: start !important;
}

body .stitch-hero-media-card,
.stitch-hero-media-card {
  position: relative !important;
  border-radius: 26px 14px 26px 14px !important;
  overflow: hidden !important;
  height: 430px !important;
  max-height: 430px !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.09) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background-color: #ffffff !important;
}

body .stitch-hero-media-card img,
.stitch-hero-media-card img {
  width: 100% !important;
  height: 430px !important;
  max-height: 430px !important;
  object-fit: cover !important;
  object-position: center 35% !important;
  display: block !important;
}

/* ============================================================
   TYPE B — PAGES PILIERS DE CONTENU (65% à 75% hauteur sous navbar)
   ============================================================ */
@media (min-width: 993px) {
  body .pillar-hero--pillar,
  .pillar-hero--pillar,
  body .hero--pillar,
  .hero--pillar {
    padding: 2.25rem 0 2.75rem !important;
    min-height: calc(68svh - 66px) !important;
  }
}

body .pillar-hero--pillar .pillar-media-frame,
.pillar-hero--pillar .pillar-media-frame,
body .hero--pillar .pillar-media-frame,
.hero--pillar .pillar-media-frame {
  height: 380px !important;
  max-height: 380px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07) !important;
}

body .pillar-hero--pillar .pillar-media-frame img,
.pillar-hero--pillar .pillar-media-frame img,
body .hero--pillar .pillar-media-frame img,
.hero--pillar .pillar-media-frame img {
  height: 380px !important;
  max-height: 380px !important;
  object-fit: cover !important;
}

/* ============================================================
   TYPE C — PAGES PROFESSIONNELLES (60% à 70% hauteur sous navbar)
   ============================================================ */
@media (min-width: 993px) {
  body .pillar-hero--pro,
  .pillar-hero--pro,
  body .hero--pro,
  .hero--pro {
    padding: 1.95rem 0 2.35rem !important;
    min-height: calc(62svh - 66px) !important;
  }
}

body .pillar-hero--pro .pillar-media-frame,
.pillar-hero--pro .pillar-media-frame,
body .hero--pro .pillar-media-frame,
.hero--pro .pillar-media-frame {
  height: 340px !important;
  max-height: 340px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06) !important;
}

body .pillar-hero--pro .pillar-media-frame img,
.pillar-hero--pro .pillar-media-frame img,
body .hero--pro .pillar-media-frame img,
.hero--pro .pillar-media-frame img {
  height: 340px !important;
  max-height: 340px !important;
  object-fit: cover !important;
}

/* ============================================================
   TYPE D — PAGES TERRITOIRES (60% à 70% hauteur sous navbar)
   ============================================================ */
@media (min-width: 993px) {
  body .trrl-hero,
  .trrl-hero,
  body .trr-hero,
  .trr-hero,
  body .hero--territory,
  .hero--territory {
    padding: 1.85rem 0 2.35rem !important;
    min-height: calc(60svh - 66px) !important;
  }
}

body .trrl-hero-media,
.trrl-hero-media,
body .hero--territory .trrl-hero-media,
.hero--territory .trrl-hero-media {
  height: 290px !important;
  max-height: 290px !important;
  border-radius: 18px !important;
}

body .trrl-hero-media img,
.trrl-hero-media img,
body .hero--territory .trrl-hero-media img,
.hero--territory .trrl-hero-media img {
  height: 100% !important;
  max-height: 290px !important;
  object-fit: cover !important;
}

/* ============================================================
   TYPE E — PROGRAMMES & FORMATIONS (55% à 65% hauteur sous navbar)
   ============================================================ */
@media (min-width: 993px) {
  body .pillar-hero--program,
  .pillar-hero--program,
  body .pillar-hero--formation,
  .pillar-hero--formation,
  body .hero--program,
  .hero--program {
    padding: 1.75rem 0 2.15rem !important;
    min-height: calc(55svh - 66px) !important;
  }
}

/* ============================================================
   TYPE F — PAGES UTILITAIRES & PRATIQUES (40% à 55% hauteur sous navbar)
   ============================================================ */
@media (min-width: 993px) {
  body .page-hero,
  .page-hero,
  body .pillar-hero--utility,
  .pillar-hero--utility,
  body .hero--utility,
  .hero--utility {
    padding: 1.5rem 0 1.85rem !important;
    min-height: auto !important;
  }
}

/* Fallback générique pour tout .pillar-hero sans classe de type */
body .pillar-hero,
.pillar-hero {
  padding: 2rem 0 2.35rem !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body .pillar-media-frame,
.pillar-media-frame {
  position: relative !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  height: 360px !important;
  max-height: 360px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background-color: #ffffff !important;
  display: block !important;
  align-self: start !important;
}

body .pillar-media-frame img,
.pillar-media-frame img,
body .pillar-media-frame picture img,
.pillar-media-frame picture img {
  width: 100% !important;
  height: 100% !important;
  max-height: 360px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 18px !important;
}

/* Titres H1 génériques */
body .pillar-hero-title,
.pillar-hero-title {
  font-size: clamp(1.85rem, 2.7vw, 2.45rem) !important;
  line-height: 1.18 !important;
  margin-bottom: 0.75rem !important;
  letter-spacing: -0.02em !important;
}

body .trrl-hero-title,
.trrl-hero-title {
  font-size: clamp(1.8rem, 2.6vw, 2.3rem) !important;
  line-height: 1.18 !important;
  margin-bottom: 0.5rem !important;
}

/* Leads génériques */
body .pillar-hero-subtitle,
.pillar-hero-subtitle,
body .trrl-hero-subtitle,
.trrl-hero-subtitle {
  font-size: 0.975rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.55rem !important;
  line-height: 1.4 !important;
}

body .pillar-hero-lead,
.pillar-hero-lead,
body .trrl-hero-lead,
.trrl-hero-lead,
body .page-hero__lead,
.page-hero__lead,
body .page-hero .lead,
.page-hero .lead {
  font-size: 1.025rem !important;
  line-height: 1.58 !important;
  color: #4b5563 !important;
  margin-bottom: 1.25rem !important;
  max-width: 620px !important;
}

/* Actions génériques */
body .pillar-hero-actions,
.pillar-hero-actions,
body .trrl-hero-actions,
.trrl-hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  align-items: center !important;
  margin-bottom: 0.65rem !important;
}

body .pillar-pro-sublink,
.pillar-pro-sublink {
  display: inline-flex !important;
  align-items: center !important;
  margin-top: 0.35rem !important;
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
}

/* ============================================================
   RESPONSIVE MOBILE ET TABLETTE (Pas de min-height contraignante)
   ============================================================ */
@media (max-width: 992px) {
  body .stitch-hero,
  .stitch-hero,
  body .pillar-hero,
  .pillar-hero,
  body .trrl-hero,
  .trrl-hero,
  body .trr-hero,
  .trr-hero,
  body .page-hero,
  .page-hero {
    min-height: auto !important;
    padding: 1.75rem 0 2rem !important;
  }

  body .stitch-hero-grid,
  .stitch-hero-grid,
  body .pillar-hero-grid,
  .pillar-hero-grid,
  body .trrl-hero-grid,
  .trrl-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  body .stitch-hero-visual,
  .stitch-hero-visual,
  body .stitch-hero-media-card,
  .stitch-hero-media-card,
  body .stitch-hero-media-card img,
  .stitch-hero-media-card img,
  body .pillar-media-frame,
  .pillar-media-frame,
  body .pillar-media-frame img,
  .pillar-media-frame img,
  body .pillar-media-frame picture img,
  .pillar-media-frame picture img {
    height: 280px !important;
    max-height: 280px !important;
  }

  body .trrl-hero-media,
  .trrl-hero-media,
  body .trrl-hero-media img,
  .trrl-hero-media img {
    height: 240px !important;
    max-height: 240px !important;
  }
}

@media (max-width: 640px) {
  body .stitch-hero,
  .stitch-hero,
  body .pillar-hero,
  .pillar-hero,
  body .trrl-hero,
  .trrl-hero,
  body .trr-hero,
  .trr-hero,
  body .page-hero,
  .page-hero {
    padding: 1.35rem 0 1.6rem !important;
  }

  body .stitch-hero-title,
  .stitch-hero-title {
    font-size: clamp(1.75rem, 6.5vw, 2.15rem) !important;
  }

  body .pillar-hero-title,
  .pillar-hero-title,
  body .trrl-hero-title,
  .trrl-hero-title {
    font-size: clamp(1.6rem, 5.8vw, 1.95rem) !important;
  }

  body .stitch-hero-visual,
  .stitch-hero-visual,
  body .stitch-hero-media-card,
  .stitch-hero-media-card,
  body .stitch-hero-media-card img,
  .stitch-hero-media-card img,
  body .pillar-media-frame,
  .pillar-media-frame,
  body .pillar-media-frame img,
  .pillar-media-frame img,
  body .pillar-media-frame picture img,
  .pillar-media-frame picture img {
    height: 220px !important;
    max-height: 220px !important;
  }

  body .trrl-hero-media,
  .trrl-hero-media,
  body .trrl-hero-media img,
  .trrl-hero-media img {
    height: 200px !important;
    max-height: 200px !important;
  }
}

/* ============================================================
   LOT 1 — CHIFFRES DE PREUVE VALIDÉS & REPÈRES D'ACTIVITÉ
   (Homepage, À propos, Bilan, Professionnels, Formation)
   ============================================================ */

.gymouv-proof-section {
  padding: 4.5rem 0;
  background-color: #ffffff;
  position: relative;
}

.gymouv-proof-section--alt {
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.gymouv-proof-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.75rem;
}

.gymouv-proof-title {
  font-family: var(--font-heading, var(--font-display, 'Montserrat', sans-serif));
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.22;
  color: #111111;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.gymouv-proof-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 auto;
}

/* Grille 4 colonnes (Homepage) */
.gymouv-proof-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

/* Grille 3 colonnes (À propos Impact) */
.gymouv-proof-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

/* Grille 2 colonnes */
.gymouv-proof-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

/* Carte de preuve standard */
.gymouv-proof-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 2rem 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.gymouv-proof-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
  border-color: rgba(37, 209, 214, 0.6);
}

/* Carte mise en avant (Impact majeur) */
.gymouv-proof-card--featured {
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfc 100%);
  border: 1.5px solid rgba(37, 209, 214, 0.45);
  box-shadow: 0 8px 24px rgba(37, 209, 214, 0.08);
}

.gymouv-proof-card--featured-pink {
  background: linear-gradient(180deg, #ffffff 0%, #fdf8fb 100%);
  border: 1.5px solid rgba(234, 27, 126, 0.3);
  box-shadow: 0 8px 24px rgba(234, 27, 126, 0.06);
}

/* Chiffre statique grand & sobre */
.gymouv-proof-num {
  font-family: var(--font-heading, var(--font-display, 'Montserrat', sans-serif));
  font-size: clamp(2.35rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  color: #00696c;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
  display: block;
}

.gymouv-proof-num--pink {
  color: #EA1B7E;
}

.gymouv-proof-num--dark {
  color: #111827;
}

/* Libellé de la preuve */
.gymouv-proof-text {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

/* Contexte & période */
.gymouv-proof-period {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.gymouv-proof-period::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #25D1D6;
}

.gymouv-proof-card--featured-pink .gymouv-proof-period::before {
  background-color: #EA1B7E;
}

/* Mention globale discrète */
.gymouv-proof-footer-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.825rem;
  color: #64748b;
  font-weight: 500;
}

/* Bandeau compact / encadré preuve (Bilan, Professionnels, Formation) */
.gymouv-proof-banner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem 2.25rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.gymouv-proof-banner--highlight {
  background: linear-gradient(135deg, #ffffff 0%, #f0fbfc 100%);
  border: 1.5px solid rgba(37, 209, 214, 0.45);
}

.gymouv-proof-banner-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
}

.gymouv-proof-banner-stats {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.gymouv-proof-banner-stat-item {
  display: flex;
  flex-direction: column;
}

/* Parcours étapes en ligne pour Bilan */
.gymouv-proof-journey {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.gymouv-proof-journey-step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  background: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.gymouv-proof-journey-arrow {
  color: #00696c;
  font-weight: 700;
}

/* Niveau secondaire À Propos (Capacité d'intervention) */
.gymouv-proof-subgroup {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e2e8f0;
}

.gymouv-proof-subgroup-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gymouv-proof-subgroup-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background-color: #25D1D6;
  border-radius: 2px;
}

.gymouv-proof-subgroup-desc {
  font-size: 0.925rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.gymouv-proof-grid-secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.gymouv-proof-card-secondary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.35rem 1.2rem;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gymouv-proof-card-secondary:hover {
  background-color: #ffffff;
  border-color: #00696c;
  transform: translateY(-2px);
}

.gymouv-proof-card-secondary .gymouv-proof-num {
  font-size: 1.95rem;
  margin-bottom: 0.35rem;
  color: #00696c;
}

.gymouv-proof-card-secondary .gymouv-proof-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.38;
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .gymouv-proof-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .gymouv-proof-grid-3 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .gymouv-proof-grid-secondary {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .gymouv-proof-banner-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .gymouv-proof-section {
    padding: 3rem 0;
  }
  .gymouv-proof-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .gymouv-proof-card {
    padding: 1.25rem 1rem;
  }
  .gymouv-proof-num {
    font-size: 1.95rem;
    margin-bottom: 0.4rem;
  }
  .gymouv-proof-text {
    font-size: 0.85rem;
  }
  .gymouv-proof-period {
    font-size: 0.72rem;
  }
  .gymouv-proof-grid-secondary {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .gymouv-proof-card-secondary {
    padding: 1.1rem 0.9rem;
  }
  .gymouv-proof-card-secondary .gymouv-proof-num {
    font-size: 1.6rem;
  }
  .gymouv-proof-card-secondary .gymouv-proof-text {
    font-size: 0.8rem;
  }
  .gymouv-proof-banner {
    padding: 1.5rem 1.25rem;
  }
  .gymouv-proof-banner-stats {
    gap: 1.25rem;
  }
}

@media (max-width: 420px) {
  .gymouv-proof-grid-4 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .gymouv-proof-grid-secondary {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   PARCOURS RÉELS ANONYMISÉS (LOT 2)
   ========================================================================== */

.gymouv-case-section {
  padding: 4.5rem 0;
  background: var(--gymouv-bg-light);
  border-top: 1px solid var(--gymouv-border);
  border-bottom: 1px solid var(--gymouv-border);
}

.gymouv-case-container {
  max-width: 960px;
  margin: 0 auto;
}

.gymouv-case-header {
  margin-bottom: 2rem;
}

.gymouv-case-badges {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.gymouv-case-badge-anon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gymouv-turquoise-dark);
  background-color: var(--gymouv-turquoise-light);
  border: 1px solid var(--gymouv-turquoise-border);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
}

.gymouv-case-badge-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #831843;
  background-color: #fdf2f8;
  border: 1px solid #fbcfe8;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
}

.gymouv-case-title {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--gymouv-black);
  margin-bottom: 0.65rem;
}

.gymouv-case-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gymouv-text-muted);
  max-width: 760px;
  margin: 0;
}

.gymouv-case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.gymouv-case-step-card {
  background: #ffffff;
  border: 1px solid var(--gymouv-border);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gymouv-case-step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.gymouv-case-step-card--highlight {
  border-color: rgba(37, 209, 214, 0.4);
  background: linear-gradient(180deg, #ffffff 0%, #f6fcfc 100%);
}

.gymouv-case-step-card--success {
  border-color: rgba(234, 27, 126, 0.25);
  background: linear-gradient(180deg, #ffffff 0%, #fdf5f9 100%);
}

.gymouv-case-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  background-color: var(--gymouv-bg-alt);
  color: var(--gymouv-text-muted);
}

.gymouv-case-step-card--highlight .gymouv-case-step-num {
  background-color: var(--gymouv-turquoise-light);
  color: var(--gymouv-turquoise-dark);
}

.gymouv-case-step-card--success .gymouv-case-step-num {
  background-color: var(--gymouv-pink-light);
  color: var(--gymouv-pink);
}

.gymouv-case-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gymouv-black);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.gymouv-case-step-content {
  font-size: 0.885rem;
  line-height: 1.6;
  color: var(--gymouv-text-muted);
  flex-grow: 1;
}

.gymouv-case-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.gymouv-case-step-list li {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gymouv-text-main);
}

.gymouv-case-step-list li::before {
  content: "•";
  color: var(--gymouv-turquoise-dark);
  font-weight: 700;
}

.gymouv-case-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.825rem;
  line-height: 1.55;
  color: #64748b;
  font-style: italic;
  text-align: center;
}

/* Grille synthèse À propos */
.gymouv-pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gymouv-pathway-card {
  background: #ffffff;
  border: 1px solid var(--gymouv-border);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gymouv-pathway-card:hover {
  transform: translateY(-3px);
  border-color: var(--gymouv-turquoise);
  box-shadow: 0 8px 24px rgba(37, 209, 214, 0.12);
}

.gymouv-pathway-card-header {
  margin-bottom: 1rem;
}

.gymouv-pathway-card-duration {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #831843;
  background-color: #fdf2f8;
  border: 1px solid #fbcfe8;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 0.65rem;
}

.gymouv-pathway-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gymouv-black);
  margin-bottom: 0.65rem;
}

.gymouv-pathway-card-desc {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--gymouv-text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.gymouv-pathway-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gymouv-turquoise-dark);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.gymouv-pathway-card:hover .gymouv-pathway-card-link {
  color: var(--gymouv-pink);
  gap: 0.7rem;
}

@media (max-width: 991px) {
  .gymouv-case-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .gymouv-case-section {
    padding: 3rem 0;
  }
  .gymouv-case-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .gymouv-case-step-card {
    padding: 1.25rem 1.1rem;
  }
  .gymouv-pathway-card {
    padding: 1.5rem 1.25rem;
  }
}

/* ==========================================================================
   INFORMATIONS PRATIQUES, TARIFS & FINANCEMENTS (LOT 3)
   ========================================================================== */

.gymouv-practical-box {
  background: #ffffff;
  border: 1px solid var(--gymouv-border);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.gymouv-practical-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.gymouv-practical-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--gymouv-bg-light);
  border: 1px solid var(--gymouv-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.gymouv-practical-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gymouv-turquoise-dark);
}

.gymouv-practical-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gymouv-black);
  line-height: 1.35;
}

.gymouv-practical-val--active {
  color: #00696c;
}

.gymouv-financing-banner {
  background: var(--gymouv-bg-light);
  border: 1px solid var(--gymouv-border);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-top: 2rem;
}

.gymouv-financing-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gymouv-black);
  margin-bottom: 0.5rem;
}

.gymouv-financing-text {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--gymouv-text-muted);
  margin-bottom: 0.5rem;
}

.gymouv-financing-note {
  font-size: 0.825rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0;
  font-style: italic;
}

.gymouv-prog-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background-color: var(--gymouv-turquoise-light);
  color: var(--gymouv-turquoise-dark);
  border: 1px solid var(--gymouv-turquoise-border);
  margin-bottom: 0.65rem;
}

@media (max-width: 991px) {
  .gymouv-practical-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gymouv-practical-grid--2col {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (max-width: 600px) {
  .gymouv-practical-grid,
  .gymouv-practical-grid--2col {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .gymouv-practical-box {
    padding: 1.5rem 1.25rem;
  }
}





/* ============================================================
   BANDEAU & PRÉFÉRENCES DE MESURE D'AUDIENCE (GA4 GYMOUV')
   ============================================================ */
.gymouv-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #070e11;
  color: #ffffff;
  border-top: 2px solid rgba(62, 194, 206, 0.45);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
  padding: 1rem 1.5rem;
  z-index: 100001;
  font-family: var(--font-body, system-ui, sans-serif);
}

.gymouv-cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.gymouv-cookie-content {
  flex: 1;
  min-width: 280px;
}

.gymouv-cookie-title {
  font-family: var(--font-display, inherit);
  font-size: 0.95rem;
  font-weight: 700;
  color: #3ec2ce;
  margin: 0 0 0.35rem 0;
  letter-spacing: 0.02em;
}

.gymouv-cookie-text {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #e5e7eb;
  margin: 0;
}

.gymouv-cookie-link {
  color: #3ec2ce;
  text-decoration: underline;
  margin-left: 0.35rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.gymouv-cookie-link:hover {
  color: #ffffff;
}

.gymouv-cookie-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.gymouv-cookie-btn {
  font-family: inherit;
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.gymouv-cookie-btn:focus-visible {
  outline: 2px solid #3ec2ce;
  outline-offset: 2px;
}

/* Équilibre visuel et d'accessibilité strict entre Refuser et Accepter */
.gymouv-cookie-btn--reject {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.gymouv-cookie-btn--reject:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
}

.gymouv-cookie-btn--accept {
  background: #3ec2ce;
  color: #070e11;
  border: 1.5px solid #3ec2ce;
}

.gymouv-cookie-btn--accept:hover {
  background: #2cb0bc;
  border-color: #2cb0bc;
}

/* Mini panneau Modal "Gérer mes préférences" */
.gymouv-pref-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 14, 17, 0.8);
  backdrop-filter: blur(4px);
  z-index: 100005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.gymouv-pref-content {
  background: #070e11;
  color: #ffffff;
  border: 1px solid rgba(62, 194, 206, 0.4);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.gymouv-pref-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.75rem;
}

.gymouv-pref-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-family: var(--font-display, sans-serif);
  color: #3ec2ce;
}

.gymouv-pref-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #ffffff;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  line-height: 1;
}

.gymouv-pref-body {
  margin: 1.25rem 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #e5e7eb;
}

.gymouv-pref-status {
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid #3ec2ce;
  font-size: 0.85rem;
}

.gymouv-pref-actions {
  display: flex;
  gap: 0.75rem;
  flex-direction: column;
  margin-top: 1.25rem;
}

@media (min-width: 480px) {
  .gymouv-pref-actions {
    flex-direction: row;
    justify-content: flex-end;
  }
}

.gymouv-pref-btn {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.gymouv-pref-btn--refuse {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.gymouv-pref-btn--refuse:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
}

.gymouv-pref-btn--authorize {
  background: #3ec2ce;
  color: #070e11;
  border: 1.5px solid #3ec2ce;
}

.gymouv-pref-btn--authorize:hover {
  background: #2cb0bc;
  border-color: #2cb0bc;
}

@media (max-width: 767px) {
  .gymouv-cookie-banner {
    padding: 1rem;
  }

  .gymouv-cookie-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .gymouv-cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    width: 100%;
  }

  .gymouv-cookie-btn {
    width: 100%;
    padding: 0.6rem 0.5rem;
    font-size: 0.775rem;
  }
}


/* ============================================================
   12. BARRE D'ACTION RAPIDE MOBILE STICKY (< 768px)
   ============================================================ */
.mobile-quickbar {
  display: none;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 68px;
  }

  /* Évite la collision entre le widget d'accessibilité flottant et la barre rapide mobile */
  .a11y-widget {
    bottom: 4.75rem !important;
  }

  body.has-cookie-banner .a11y-widget {
    bottom: 12rem !important;
  }

  .mobile-quickbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    padding: 0.6rem 0.85rem;
    gap: 0.65rem;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
  }

  /* Si le bandeau cookie est affiché ou le menu mobile ouvert, masquer la barre rapide */
  body.has-cookie-banner .mobile-quickbar,
  body:has(#gymouv-cookie-banner) .mobile-quickbar,
  body.menu-open .mobile-quickbar,
  body[style*="overflow: hidden"] .mobile-quickbar {
    display: none !important;
  }

  .mobile-quickbar-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 0.85rem;
    min-height: 44px;
    border-radius: 9999px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: transform 0.15s ease;
  }

  .mobile-quickbar-btn:active {
    transform: scale(0.97);
  }

  .mobile-quickbar-btn--phone {
    background: #ffffff;
    color: #111827 !important;
    border: 1.5px solid #cbd5e1;
  }

  .mobile-quickbar-btn--bilan {
    background: #da1370;
    color: #ffffff !important;
    border: 1.5px solid #da1370;
    box-shadow: 0 2px 8px rgba(218, 19, 112, 0.3);
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   MODULE ÉDITORIAL & ARTICLES SEO 2026 — GYMOUV'
   ────────────────────────────────────────────────────────────────────────── */

/* Article Layout */
.article-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.article-hero {
  padding: 3.5rem 0 2rem;
  background: #ffffff;
}

.article-header {
  margin-bottom: 2rem;
}

.article-category-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(37, 209, 214, 0.15);
  color: #004d50;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.article-title {
  font-family: 'Montserrat', var(--font-display, sans-serif);
  font-size: 2.25rem;
  font-weight: 800;
  color: #010202;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 1.75rem;
  }
}

.article-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #334155;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.875rem;
  color: #64748b;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.article-meta-item strong {
  color: #0f172a;
}

.article-meta-item a {
  color: #010202;
  font-weight: 600;
  text-decoration: underline;
}

.article-meta-item a:hover {
  color: #EA1B7E;
}

.article-featured-image-wrap {
  margin: 2rem 0 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: #f1f5f9;
}

.article-featured-img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.article-body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #334155;
}

.article-body h2 {
  font-family: 'Montserrat', var(--font-display, sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #010202;
  margin: 2.5rem 0 1rem;
  line-height: 1.35;
}

.article-body h3 {
  font-family: 'Montserrat', var(--font-display, sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #010202;
  margin: 2rem 0 0.75rem;
  line-height: 1.4;
}

.article-body p {
  margin-bottom: 1.35rem;
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  padding: 0;
}

.article-body li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.article-body a {
  color: #010202;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #25D1D6;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

.article-body a:hover {
  color: #EA1B7E;
  text-decoration-color: #EA1B7E;
}

/* Medical Disclaimer */
.article-disclaimer {
  background: #f8fafc;
  border-left: 4px solid #25D1D6;
  padding: 1.15rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 2.5rem 0;
  font-size: 0.9375rem;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.6;
}

.article-disclaimer svg {
  color: #25D1D6;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Sources & References */
.article-sources {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
}

.article-sources h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #010202;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-sources ul {
  list-style: disc;
  margin: 0 0 0 1.25rem;
  padding: 0;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

.article-sources li {
  margin-bottom: 0.4rem;
}

/* Contextual Article CTA */
.article-cta-box {
  background: linear-gradient(135deg, #070e11 0%, #0d1a1d 100%);
  color: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(62, 194, 206, 0.18);
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
  box-shadow: 0 8px 24px rgba(1, 2, 2, 0.25);
}

.article-cta-box h3 {
  font-family: 'Montserrat', var(--font-display, sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.75rem;
}

.article-cta-box p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin: 0 auto 1.5rem;
}

.article-cta-box .btn-stitch-pink {
  display: inline-flex;
  margin: 0 auto;
}

/* Editorial Hub & Cards */
.editorial-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0 2.5rem;
}

.editorial-filter-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.editorial-filter-chip:hover {
  border-color: #25D1D6;
  color: #010202;
}

.editorial-filter-chip.is-active {
  background: #070e11;
  color: #ffffff;
  border-color: #3ec2ce;
}

.editorial-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.editorial-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.editorial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.editorial-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  overflow: hidden;
}

.editorial-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.editorial-card:hover .editorial-card-img {
  transform: scale(1.03);
}

.editorial-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(8, 47, 51, 0.9);
  backdrop-filter: blur(4px);
  color: #25D1D6;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.editorial-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.editorial-card-date {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.editorial-card-title {
  font-family: 'Montserrat', var(--font-display, sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #010202;
  line-height: 1.35;
  margin: 0 0 0.75rem;
  flex-grow: 1;
}

.editorial-card-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 1.25rem;
}

.editorial-card-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: #EA1B7E;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.editorial-card:hover .editorial-card-link {
  text-decoration: underline;
}

/* Welcoming / Introductory Editorial State */
.editorial-hub-welcome {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
}

.editorial-hub-welcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.editorial-hub-welcome-item {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
}

.editorial-hub-welcome-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #010202;
  margin: 0 0 0.5rem;
}

.editorial-hub-welcome-item p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

/* ============================================================
   VALIDATION STRICTE DES CHAMPS TÉLÉPHONE & ACCESSIBILITÉ
   ============================================================ */
.form-hint {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.35rem;
  line-height: 1.4;
}

.form-error {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #dc2626;
  margin-top: 0.35rem;
  line-height: 1.4;
}

.form-control[aria-invalid="true"] {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

