/* ============================================================
   SCLIM — CORRECTIF MOBILE (à coller dans WordPress > Apparence > CSS additionnel)
   ============================================================ */

/* 1. Forcer le conteneur principal à ne pas déborder */
html, body, .sc {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* 2. Hero : empêcher le texte et les éléments de dépasser */
.sc-hero {
  overflow: hidden !important;
  max-width: 100vw !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  width: 100% !important;
}

.sc-hero-content {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* 3. Forcer 1 colonne sur mobile */
@media (max-width: 768px) {
  .sc-hero-content {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* 4. Titre hero : réduire la taille et couper proprement */
  .sc-hero h1 {
    font-size: 1.9rem !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
    white-space: normal !important;
  }

  /* 5. Badge qui dépasse */
  .sc-badge {
    max-width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center !important;
    font-size: 0.7rem !important;
    padding: 5px 12px !important;
  }

  /* 6. Description */
  .sc-hero-desc {
    font-size: 0.9rem !important;
    max-width: 100% !important;
    white-space: normal !important;
  }

  /* 7. Boutons hero en colonne, centrés */
  .sc-hero-btns {
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
  }
  .sc-hero-btns a,
  .sc-btn-main,
  .sc-btn-wa {
    width: 100% !important;
    max-width: 300px !important;
    justify-content: center !important;
    white-space: nowrap !important;
    padding: 14px 20px !important;
  }

  /* 8. Masquer les cartes flottantes du hero */
  .sc-hero-cards {
    display: none !important;
  }

  /* 9. Section hero : centrer le texte */
  .sc-hero-text {
    text-align: center !important;
  }

  /* 10. Grille stats : 2 colonnes */
  .sc-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    transform: translateY(-20px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  /* 11. Stats wrap : éviter le débordement du translateY */
  .sc-stats-wrap {
    overflow: hidden !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* 12. Carousel : boutons à l'intérieur */
  .sc-prev { left: 6px !important; }
  .sc-next { right: 6px !important; }
  .sc-carousel-wrap { overflow: hidden !important; }

  /* 13. Section padding réduit */
  .sc-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* 14. Footer */
  .sc-footer-grid {
    grid-template-columns: 1fr !important;
  }
  .sc-footer {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* 15. Header */
  .sc-header {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}  
/* Header glassmorphism visible dès le départ */
.sc-header {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 2px 24px rgba(26, 59, 156, 0.15) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Au scroll : fond blanc plus opaque */
.sc-header.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow: 0 2px 24px rgba(26, 59, 156, 0.10) !important;
  border-bottom: none !important;
}