/* ExoMatch — responsive partagé, sans redéfinir la barre fixe.
   Les règles de la barre sont désormais UNIQUEMENT dans bottom-navigation.css. */
:root { --exo-mobile-safe: env(safe-area-inset-bottom, 0px); }
@media (max-width: 1180px) {
  html { scroll-padding-top: 72px; }
  body.exo-ui-coherent:not(.exo-workout-active) {
    box-sizing: border-box;
    padding-bottom: calc(76px + var(--exo-mobile-safe)) !important;
  }
  body.exo-ui-coherent :where(main, .shell, .section, .content-card, .sticky-card, .path-card, .taxonomy-card, .exercise-card, .tracking-stat, .legal-card, .seo-guide-card, .exo-custom, .exo-workouts__setup) {
    min-width: 0;
    max-width: 100%;
  }
  body.exo-ui-coherent .shell,
  body.exo-ui-coherent main .shell {
    box-sizing: border-box;
    width: min(calc(100% - 32px), 1190px);
    max-width: 1190px;
    min-width: 0;
    margin-inline: auto;
  }
  body.exo-ui-coherent:not(.exo-workout-active) main { min-width: 0; padding-bottom: 0 !important; }
  body.exo-ui-coherent main :where(.section-head,.section-minihead,.page-hero,.tracking-hero,.taxonomy-page-hero,.exercise-hero) {
    min-width: 0; max-width: 100%; overflow-wrap: anywhere;
  }
  body.exo-ui-coherent main :where(img,video) { max-width: 100%; height: auto; }
  body.exo-ui-coherent main :where(input,select,textarea,button) { min-width: 0; max-width: 100%; }
  body.exo-ui-coherent main :where(.button,button.button) { white-space: normal; text-align: center; }
  body.exo-ui-coherent main :where(.exercise-grid,.taxonomy-grid,.path-grid,.tracking-stats,.seo-guide-grid,.home-features__grid,.exo-custom__saved-grid,.exo-workouts__week-grid) {
    min-width: 0;
  }
  body.exo-ui-coherent main :where(.content-card,.sticky-card,.legal-card,.path-card,.taxonomy-card,.exercise-card) { overflow-wrap: anywhere; }
  body.exo-ui-coherent .compare-dock { bottom: calc(74px + var(--exo-mobile-safe)); }
}
@media (max-width: 720px) {
  body.exo-ui-coherent .shell,
  body.exo-ui-coherent main .shell { width: calc(100% - 26px); }
  body.exo-ui-coherent main :where(.section) { margin-block: 1.2rem; }
  body.exo-ui-coherent main :where(.content-card,.tracking-stat,.tracking-log-card,.legal-card,.taxonomy-card,.path-card) { border-radius: 17px; }
  body.exo-ui-coherent main :where(.section-head h2,.section-minihead h2) { font-size: clamp(1.3rem,5.4vw,1.8rem); }
  body.exo-ui-coherent main :where(.page-hero h1,.tracking-hero h1,.taxonomy-page-hero h1,.exercise-hero h1) { font-size: clamp(1.75rem,7vw,2.45rem); }
  body.exo-ui-coherent main :where(.exercise-grid,.taxonomy-grid,.path-grid,.seo-guide-grid,.tracking-stats) { grid-template-columns: minmax(0,1fr); }
  body.exo-ui-coherent main :where(.section-head,.section-minihead) { align-items: start; }
  body.exo-ui-coherent .home-features__grid > a { min-width: 0; overflow: hidden; }
  body.exo-ui-coherent .home-features__grid > a :where(small,strong,span) { min-width: 0; max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
  body.exo-ui-coherent main :where(.tracking-form,.tracking-form-actions,.search-filters,.exo-filter-actions) { min-width: 0; }
}
