/* ===== Gridbox 2.19 – Fix iOS landscape + hauteurs ===== */

/* Traiter iPad & grands téléphones en paysage comme tablette */
@media (max-width: 1180px) {
  .ba-row { flex-wrap: wrap !important; }
  [class*="ba-col-"] { min-width: 0 !important; min-height: 0 !important; box-sizing: border-box; }
  .ba-section, .ba-row, .ba-item, .ba-card, .ba-box, .ba-item-content { height: auto !important; }
}

/* Tablette (portrait & paysage ≤1180px) : 2 colonnes par défaut */
@media (min-width: 768px) and (max-width: 1180px) {
  .ba-row > [class*="ba-col-"] { flex: 0 0 50% !important; max-width: 50% !important; }
}

/* Mobile (≤915px) : 1 colonne pleine largeur */
@media (max-width: 915px) {
  .ba-row > [class*="ba-col-"] { flex: 0 0 100% !important; max-width: 100% !important; }
  /* images/iframes fluides */
  img, .ba-item-image img { width: 100% !important; height: auto !important; object-fit: cover; display:block; }
  .ba-video iframe, iframe { width: 100% !important; height: auto !important; aspect-ratio: 16/9; }
}

/* Sécurité : annule toute hauteur inline injectée par des widgets */
[class*="ba-"][style*="height"] { height: auto !important; }

/* Empêche un scroll horizontal parasite si une carte déborde */
html, body { overflow-x: hidden; }