/* ===================================
   TÉMOIGNAGES VIDÉO - SECTION PREMIUM
   Section de vidéos de patients
   =================================== */

/* ========== SECTION ========== */
.video-testimonials {
  background: #FFFFFF;
  padding: 48px 8% 48px !important;
  width: 100%;
  position: relative;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 0;
}

/* ========== TITRE SECTION ========== */
.video-testimonials .section-title {
  font-family: 'Poppins', sans-serif;
  color: #1a1a1a;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 12px;
  position: relative;
  z-index: 2;
  text-align: center;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

/* Séparateur décoratif */
.video-testimonials .separator {
  width: 70px;
  height: 4px;
  background: #B89051;
  margin: 0 auto 16px;
  border-radius: 4px;
}

/* Sous-titre */
.video-testimonials .section-subtitle {
  color: #4a5568;
  font-size: clamp(1.0625rem, 2.5vw, 1.1875rem);
  max-width: 680px;
  margin: 0 auto 70px;
  z-index: 2;
  position: relative;
  text-align: center;
  line-height: 1.75;
  font-weight: 400;
}

/* ========== GRILLE VIDÉOS ========== */
.video-grid {
  max-width: 1200px;
  margin: 0 auto 50px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  position: relative;
  z-index: 2;
}

/* ========== CONTAINER VIDÉO ========== */
.video-container {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  position: relative;
  cursor: pointer;
}

/* Play button overlay - visible seulement si jamais joué */
.video-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(184, 144, 81, 0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
  opacity: 1;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-left: 24px solid #FFFFFF;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  pointer-events: none;
  z-index: 11;
  opacity: 1;
  transition: all 0.3s ease;
}

.video-container:hover::before {
  background: rgba(166, 126, 68, 0.95);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-container:hover::after {
  opacity: 1;
}

/* Hide play button when video has started (played or playing) */
.video-container.has-played::before,
.video-container.has-played::after {
  opacity: 0;
  pointer-events: none;
}

.video-container:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

/* ========== LECTEUR VIDÉO ========== */
.video-player {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}


.video-player::-webkit-media-controls-play-button,
.video-player::-webkit-media-controls-volume-slider {
  filter: brightness(1.2);
}

/* ========== BOUTON CTA "Voir plus" ========== */
.video-cta {
  text-align: center;
  margin-top: 50px;
}

.video-btn {
  display: inline-block;
  padding: 20px 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #B89051 0%, #A67E44 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow:
    0 8px 30px rgba(184, 144, 81, 0.45),
    0 4px 15px rgba(184, 144, 81, 0.35);
  letter-spacing: 0.02em;
  border: none;
  position: relative;
  overflow: hidden;
}

.video-btn::before {
  content: '▶';
  margin-right: 8px;
  font-size: 0.9rem;
}

.video-btn:hover {
  background: linear-gradient(135deg, #A67E44 0%, #9a7644 100%);
  box-shadow:
    0 12px 40px rgba(184, 144, 81, 0.55),
    0 6px 20px rgba(184, 144, 81, 0.4);
  transform: translateY(-2px);
}

.video-btn:active {
  transform: translateY(0);
  box-shadow:
    0 6px 25px rgba(184, 144, 81, 0.45),
    0 3px 12px rgba(184, 144, 81, 0.35);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInVideo {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-container {
  animation: fadeInVideo 0.8s ease-out both;
}

.video-container:nth-child(1) {
  animation-delay: 0.1s;
}

.video-container:nth-child(2) {
  animation-delay: 0.2s;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .video-testimonials {
    padding: 40px 6% 40px !important;
  }

  .video-grid {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .video-testimonials {
    padding: 32px 5% 32px !important;
  }

  .video-testimonials .section-title {
    font-size: 2.5rem;
    margin-bottom: 8px;
  }

  .video-testimonials .section-subtitle {
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* MOBILE: 2 COLONNES COMPACTES */
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
  }

  .video-container {
    border-radius: 8px;
  }
  
  /* Play button plus petit sur mobile */
  .video-container::before {
    width: 50px;
    height: 50px;
  }
  
  .video-container::after {
    border-left: 16px solid #FFFFFF;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
  }

  /* CTA Button - Larger & Centered */
  .video-cta {
    margin-top: 30px;
  }

  .video-btn {
    font-size: 1rem;
    padding: 14px 32px;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(184, 144, 81, 0.35);
    width: 100%;
    max-width: 300px;
  }

  .video-btn:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
  }
}

@media (max-width: 480px) {
  .video-testimonials {
    padding: 48px 5% 32px;
  }

  .video-grid {
    gap: 10px;
  }

  .video-container {
    border-radius: 6px;
  }
  
  .video-container::before {
    width: 40px;
    height: 40px;
  }
  
  .video-container::after {
    border-left: 12px solid #FFFFFF;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
  }
}

/* ========== PRÉFÉRENCE RÉDUITE DE MOUVEMENT ========== */
@media (prefers-reduced-motion: reduce) {
  .video-container {
    animation: none !important;
  }

  .video-container:hover {
    transform: none;
  }
}
.video-grid {
  max-width: 100%; /* change ceci si tu veux étendre à 100% de largeur */
  padding: 0 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  justify-content: center;
  align-items: start;
}
.video-container {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: hidden;
}

.video-container:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.video-player {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 12;
  object-fit: cover;
  display: block;
}
