/* ==========================================================
   CORRECTIONS RESPONSIVE + FIX VIDÉO — chantalcaputo.fr
   ========================================================== */

/* -----------------------------------------------------------
   1. FIX VIDÉO (témoignage Marjory et autres)
   La classe .css-ypxerw crée déjà le ratio 16/9 via
   height:0 + padding-bottom:56.25%. Le <div> imbriqué
   ajoutait un second padding identique, faisant déborder
   le contenu. On remplace par des absolute fills.
   ----------------------------------------------------------- */
.lp-video-react.css-ypxerw > div {
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
}
.lp-video-react.css-ypxerw > div > div {
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 0;
  padding: 0 !important;
  width: 100%;
  height: 100%;
}
.lp-video-react.css-ypxerw > div > div > iframe {
  position: absolute !important;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* -----------------------------------------------------------
   2. BURGER MENU MOBILE
   Le bouton burger (☰) apparaît sur mobile et remplace
   la navigation horizontale. La nav s'affiche en dropdown
   pleine-largeur fixé sous le header.
   ----------------------------------------------------------- */

/* Bouton burger — caché sur desktop */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  z-index: 1001;
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #444;
  margin: 4px 0;
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

/* Animation ☰ → ✕ */
.burger-btn.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.burger-btn.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger-btn.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 767px) {
  /* Afficher le bouton burger */
  .burger-btn {
    display: flex !important;
    flex: 0 0 auto !important;
    margin-left: auto;
  }

  /* Header: logo + burger sur une seule ligne */
  #header-section .layout {
    flex-wrap: nowrap !important;
    align-items: center !important;
    min-height: 60px !important;
  }

  /* Colonne logo: prend l'espace disponible */
  #header-section .hdr-logo-col {
    flex: 1 1 auto !important;
    max-width: none !important;
    width: auto !important;
  }

  /* Colonnes nav + RDV : réduites à zéro sur mobile */
  #header-section .hdr-nav-col,
  #header-section .hdr-rdv-col {
    flex: 0 0 0 !important;
    max-width: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    pointer-events: none;
  }

  /* Masquer la nav par défaut sur mobile */
  .lp-nav {
    display: none !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    flex-direction: column !important;
    background: #fff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.07) !important;
    padding: 6px 0 12px !important;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  /* Nav ouverte */
  .lp-nav.nav-open {
    display: flex !important;
  }

  /* Chaque item nav: pleine largeur */
  .lp-nav__link-container {
    width: 100% !important;
    flex: none !important;
  }

  .lp-nav__link {
    display: block !important;
    width: 100% !important;
    padding: 15px 24px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

/* -----------------------------------------------------------
   3. HERO & TITRES — tailles de police mobile
   Les titres en vw s'avèrent trop grands sur petit écran.
   ----------------------------------------------------------- */
@media (max-width: 767px) {
  /* Réduction générale des titres H1/H2 de hero */
  h1.lp-headline, h2.lp-headline {
    font-size: clamp(1.5rem, 6vw, 3rem) !important;
    line-height: 1.25 !important;
  }
  h3.lp-headline {
    font-size: clamp(1.1rem, 4.5vw, 2rem) !important;
    line-height: 1.3 !important;
  }
  /* Texte paragraphe */
  p.lp-pom-text,
  .lp-text-react p {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem) !important;
  }
}

/* -----------------------------------------------------------
   4. IMAGES — ne jamais dépasser la largeur du conteneur
   ----------------------------------------------------------- */
img {
  max-width: 100%;
  height: auto;
}

/* -----------------------------------------------------------
   5. SECTIONS — padding latéral minimum sur mobile
   ----------------------------------------------------------- */
@media (max-width: 767px) {
  .lp-section > .section-container,
  .lp-section > .section__container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Colonnes internes : éviter les débordements */
  .inner-column,
  .inner-composite {
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Listes à 3 colonnes (ex: NERTI symptômes) → 1 colonne */
  .flex--12 .flex__item--xs-4 {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }
}

/* -----------------------------------------------------------
   6. FORMULAIRE — champs full-width sur mobile
   ----------------------------------------------------------- */
@media (max-width: 767px) {
  .lp-form-react {
    padding: 12px !important;
  }
  .lp-form-react__input {
    font-size: 16px !important; /* évite le zoom iOS */
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .lp-form-react button[type="submit"],
  .lp-form-react input[type="submit"] {
    width: 100% !important;
  }
}

/* -----------------------------------------------------------
   7. TABLEAUX / GRILLES prix (page Tarifs)
   ----------------------------------------------------------- */
@media (max-width: 767px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* -----------------------------------------------------------
   8. STICKY HEADER (desktop + mobile)
   ----------------------------------------------------------- */
.site-header[data-scrolling="sticky"],
#header-section {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: inherit;
}
