/* Ajustements custom au-dessus de Tailwind (config inline dans chaque page) */

html {
  scroll-behavior: smooth;
}

/* Filet de sécurité anti-scroll horizontal : aucun élément ne doit jamais
   pouvoir élargir la page sur mobile (garde-fou en plus des correctifs
   ciblés par composant, ex. tableaux tarifs/horaires). */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, video, table, iframe {
  max-width: 100%;
}

body {
  padding-bottom: 4.25rem; /* espace pour la sticky bottom bar mobile */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* Sticky bottom bar mobile uniquement */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

@media (min-width: 768px) {
  .sticky-bottom-bar {
    display: none;
  }
}

/* Zone tactile confortable */
.tap-target {
  min-height: 48px;
}

/* Menu mobile */
#mobile-menu {
  transition: max-height 0.25s ease, opacity 0.2s ease;
  overflow: hidden;
}

#mobile-menu.closed {
  max-height: 0;
  opacity: 0;
}

#mobile-menu.open {
  max-height: 32rem;
  opacity: 1;
}

/* Focus visible accessible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #EA580C;
  outline-offset: 2px;
}

.no-scrollbar-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
