/* EDOUARGOT - suppression des ascenseurs internes
   Remplace le correctif-mobile-sans-bande-droite.css.
   Ne touche pas à l'escargot.
   Ne touche pas au PHP.
*/

/* Anti-débordement global uniquement */
html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Les blocs de structure ne doivent PAS devenir des zones scrollables */
.custom-nav,
.content-wrapper,
.container,
.row,
.edo-preparations-statiques,
.edo-preparations-grid,
.edo-page-moderne,
.edo-page-articles,
.site-footer,
.footer-inner {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Le bandeau défilant, lui, doit seulement couper son texte, sans ascenseur */
.top-banner,
.scrolling-text-wrapper {
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Le texte défilant ne doit pas créer de hauteur scrollable */
.scrolling-text {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

/* Navigation : texte long autorisé à passer à la ligne sans créer de scrollbar */
.custom-nav {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

.custom-nav a {
  box-sizing: border-box !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
  text-align: center !important;
}

/* Les cartes gardent leur coupe visuelle, mais pas les conteneurs parents */
.card,
.edo-preparation-card-static,
.slideshow-container {
  overflow: hidden !important;
}

/* Mobile : aucune zone interne ne doit afficher son propre ascenseur */
@media (max-width: 768px) {
  .custom-nav,
  .content-wrapper,
  .container,
  .row,
  .edo-preparations-statiques,
  .edo-preparations-grid,
  .site-footer,
  .footer-inner {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
  }

  .top-banner,
  .scrolling-text-wrapper {
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
  }

  .custom-nav {
    padding-left: 8px !important;
    padding-right: 8px !important;
    flex-wrap: wrap !important;
  }

  .custom-nav a {
    max-width: calc(100vw - 24px) !important;
  }
}
