/* ============================================
   SECTION VSL (Video Sales Letter)
   ============================================ */

@keyframes vsl-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section_vsl {
  background: #fff;
  padding: 4rem 0;
}

/* État initial : éléments masqués avant l'animation */
.section_vsl .vsl-heading,
.section_vsl .vsl-video-wrapper,
.section_vsl .vsl-cta {
  opacity: 0;
}

/* Animation d'entrée au scroll (classe ajoutée par JS) */
.section_vsl.is-visible .vsl-heading {
  animation: vsl-fade-in-up 0.6s ease forwards;
}

.section_vsl.is-visible .vsl-video-wrapper {
  animation: vsl-fade-in-up 0.6s ease 0.2s forwards;
}

.section_vsl.is-visible .vsl-cta {
  animation: vsl-fade-in-up 0.6s ease 0.4s forwards;
}

.section_vsl .vsl-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section_vsl .vsl-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section_vsl .vsl-heading h2 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.2;
  color: #1d44a1;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.section_vsl .vsl-heading p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #555;
  margin: 0;
}

/* Ratio 16:9 responsive */
.vsl-video-wrapper {
  position: relative;
  width: 100%;
  margin-top: 4rem; /* Accentué pour plus d'air */
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  background: #000;
}

.vsl-video-wrapper iframe,
.vsl-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.section_vsl .vsl-cta {
  text-align: center;
  margin-top: 3rem; /* Espace équilibré avant le bouton */
}

.section_vsl .vsl-cta a {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: #1d44a1;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.section_vsl .vsl-cta a:hover {
  background: #16367a;
}

@media (max-width: 768px) {
  .section_vsl {
    padding: 2.5rem 0;
  }
  .section_vsl .vsl-container {
    padding: 0 1.25rem;
  }
  .section_vsl .vsl-heading {
    margin-bottom: 1.5rem;
  }
  .section_vsl .vsl-heading h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.3;
  }
  .section_vsl .vsl-heading p {
    font-size: 1rem;
    line-height: 1.5;
  }
  .vsl-video-wrapper {
    margin-top: 1.5rem;
  }
  .section_vsl .vsl-cta a {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    text-align: center;
    min-height: 48px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .section_vsl .vsl-container {
    padding: 0 1rem;
  }
  .section_vsl .vsl-heading h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    line-height: 1.35;
  }
  .section_vsl .vsl-heading p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  .section_vsl .vsl-cta a {
    max-width: 100%;
    padding: 1rem 1rem;
    font-size: 0.9rem;
  }
}
