@import url('https://fonts.googleapis.com/css2?family=Aldrich&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================
   SECTION TÉMOIGNAGES VIDÉOS - CSS COMPLET ET CORRIGÉ
   ========================================================== */

/* Style pour la vidéo en position absolue qui remplit toute la section */
.video-background-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #101010;
}

#backgroundMediaContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Style CRITIQUE pour que la vidéo remplisse toute la section */
.bg-video,
.bg-video-desktop,
.bg-video-mobile {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 1;
}

/* Cacher la vidéo mobile par défaut sur desktop */
.bg-video-mobile {
  display: none;
}

/* Afficher la vidéo mobile sur les petits écrans */
@media (max-width: 768px) {
  .bg-video-desktop {
    display: none;
  }
  
  .bg-video-mobile {
    display: block;
  }
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* Contenu au-dessus de la vidéo */
.reviews-outer {
  position: relative;
  z-index: 3;
}

/* ==========================================================
   SECTION REVIEWS - Style Glassmorphism
   ========================================================== */
.reviews-outer.section {
  padding: 100px 0;
  position: relative;
  z-index: 3;
}

.reviews-outer .wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 3;
}

.reviews-outer .sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.reviews-outer .sec-eyebrow {
  font-family: 'Aldrich', sans-serif;
  color: #ffd600;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.reviews-outer .sec-head h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  max-width: 640px;
  color: #ffffff;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.15;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 3;
}

/* ==========================================================
   CARTES D'AVIS
   ========================================================== */
.review-card {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.review-card:hover {
  transform: scale(1.01);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.review-card.active {
  border: 2px solid #ffd600 !important;
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(255, 214, 0, 0.3);
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
}

/* ==========================================================
   HEADER DE LA CARTE : Étoiles à droite, auteur à gauche
   ========================================================== */
.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  width: 100%;
}

/* Étoiles à droite */
.review-stars {
  color: #ffd600;
  font-size: 15px;
  letter-spacing: 3px;
  flex-shrink: 0;
  order: 2; /* Place les étoiles à droite */
}

/* Wrapper auteur : à gauche */
.review-author-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  order: 1; /* Place l'auteur à gauche */
}

/* Image de l'auteur - cercle */
.review-author-image {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffd600;
  box-shadow: 0 0 15px rgba(255, 214, 0, 0.15);
  flex-shrink: 0;
  background: #1a1a1a;
}

/* Placeholder si pas d'image */
.review-author-image-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd600, #ff9500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Aldrich', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #101010;
  border: 2px solid #ffd600;
  flex-shrink: 0;
}

/* Nom de l'auteur */
.review-author {
  font-family: 'Aldrich', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd600;
  white-space: nowrap;
}

/* ==========================================================
   TEXTE DU TÉMOIGNAGE - CENTRÉ
   ========================================================== */
.review-text {
  font-size: 15px;
  font-weight: 300;
  color: #ffffff;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 0;
  flex: 1;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

/* ==========================================================
   ANIMATIONS POUR LES CARTES
   ========================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-card {
  animation: fadeInUp 0.5s ease-out;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.review-card:nth-child(4) { animation-delay: 0.4s; }
.review-card:nth-child(5) { animation-delay: 0.5s; }
.review-card:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================================
   RESPONSIVE DESIGN
   ========================================================== */
@media (max-width: 980px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .reviews-outer .wrap {
    padding: 0 30px;
  }
  
  .review-card {
    padding: 24px 20px;
  }
}

@media (max-width: 768px) {
  .video-background-section {
    min-height: 100vh;
    height: auto;
  }
  
  .bg-video-desktop {
    display: none;
  }
  
  .bg-video-mobile {
    display: block;
    object-fit: cover;
    object-position: center;
  }
  
  .video-overlay {
    background: rgba(0, 0, 0, 0.6);
  }
  
  .reviews-outer.section {
    padding: 60px 0;
  }
  
  .reviews-outer .sec-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 36px;
  }
  
  .reviews-outer .wrap {
    padding: 0 20px;
  }
}

@media (max-width: 720px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .review-card {
    padding: 20px 16px;
  }
  
  .review-text {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .reviews-outer .sec-head h2 {
    font-size: 28px;
  }

  /* Ajustements image auteur */
  .review-author-image,
  .review-author-image-placeholder {
    width: 30px;
    height: 30px;
  }
  
  .review-author-image-placeholder {
    font-size: 12px;
  }
  
  .review-author {
    font-size: 10px;
  }
  
  .review-stars {
    font-size: 13px;
    letter-spacing: 2px;
  }
}

@media (max-width: 480px) {
  .video-background-section {
    min-height: 100vh;
  }
  
  .reviews-outer.section {
    padding: 40px 0;
  }
  
  .reviews-outer .wrap {
    padding: 0 15px;
  }
  
  .review-card {
    padding: 16px 12px;
    border-radius: 8px;
  }
  
  .review-text {
    font-size: 13px;
  }

  /* Ajustements image auteur mobile */
  .review-author-image,
  .review-author-image-placeholder {
    width: 28px;
    height: 28px;
  }
  
  .review-author-image-placeholder {
    font-size: 11px;
  }
  
  .review-author-wrapper {
    gap: 8px;
  }
  
  .review-author {
    font-size: 9px;
  }
  
  .review-stars {
    font-size: 12px;
    letter-spacing: 2px;
  }
  
  .review-card-header {
    margin-bottom: 14px;
  }
}

/* ==========================================================
   SUPPORT DES ÉCRANS TRÈS LARGES
   ========================================================== */
@media (min-width: 1440px) {
  .reviews-outer .wrap {
    max-width: 1400px;
  }
  
  .reviews-grid {
    gap: 24px;
  }
  
  .review-card {
    padding: 32px 28px;
  }
  
  .review-author-image,
  .review-author-image-placeholder {
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================
   ACCESSIBILITÉ - RÉDUCTION DES ANIMATIONS
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  .review-card {
    animation: none;
    transition: none;
  }
  
  .review-card:hover,
  .review-card.active {
    transform: none;
  }
}