/* ===== STYLES SPÉCIFIQUES POUR LA PAGE TÉMOIGNAGES ===== */
/* (Fichier: css/temoignages.css) */

/* Page Banner */
.page-banner {
  /* Chemin image mis à jour */
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/drapeau-maroc.jpg') center/cover no-repeat;
  padding: 150px 0 80px;
  color: #fff;
  text-align: center;
}

.page-banner h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-banner p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background-color: #fff; /* Fond blanc pour la section des cartes */
}

.testimonial-cards {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: #fff; /* Fond blanc pour chaque carte */
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden; /* Important si des éléments internes utilisent des rayons */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px); /* Ajuster la valeur si besoin */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12); /* Ombre légèrement plus prononcée */
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background-color: var(--light-color);
  border-bottom: 1px solid #eee; /* Ligne de séparation plus subtile */
}

.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  background-color: rgba(197, 40, 28, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0; /* Empêcher l'avatar de rétrécir */
}

.testimonial-identity h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--dark-color);
}

.testimonial-identity p {
  font-size: 0.9rem;
  color: #666;
  margin: 0; /* Assurer pas de marge */
}

.testimonial-success {
  display: flex;
  align-items: center;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--secondary-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap; /* Empêcher le passage à la ligne */
  transition: background-color 0.3s ease, color 0.3s ease; /* AJOUT: Transition pour hover */
}

.success-badge i {
  margin-right: 5px;
}

/* AJOUT: Effet hover sur le badge */
.testimonial-card:hover .success-badge {
    background-color: var(--secondary-color); /* Fond vert plein */
    color: white; /* Texte blanc */
}


.testimonial-content {
  padding: 30px 30px 30px 40px; /* Augmenter padding gauche pour la citation */
  position: relative;
}

.testimonial-quote {
  position: absolute;
  top: 25px; /* Ajuster position */
  left: 25px;
  color: rgba(197, 40, 28, 0.1);
  font-size: 2.5rem;
  transition: opacity 0.3s ease; /* AJOUT: Transition pour hover */
  opacity: 1; /* Opacité par défaut */
}

/* AJOUT: Effet hover sur la citation */
.testimonial-card:hover .testimonial-quote {
    opacity: 0.3; /* Rendre plus visible ou changer couleur/taille */
    /* color: rgba(197, 40, 28, 0.2); */ /* Alternative : couleur */
}


.testimonial-content p {
  margin-bottom: 15px;
  line-height: 1.7;
  /* Retrait padding-left, géré par le conteneur .testimonial-content */
  /* position: relative; */
  /* padding-left: 10px; */
}

.testimonial-content p:first-of-type {
  /* Peut-être enlever l'italique ou le style spécifique si non désiré */
  font-weight: 500;
  color: var(--primary-color);
  /* font-style: italic; */
}

.testimonial-content p:last-child {
  margin-bottom: 0;
}

/* Engagement Section */
.engagement-section {
  padding: 80px 0;
  background-color: var(--light-color);
}

.engagement-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.engagement-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.engagement-content p:last-child {
  margin-bottom: 0;
}

/* Styles redondants retirés */
/* .nav-links a.active { ... } */
/* .nav-links a.active::after { ... } */

/* Responsive styles */
@media (max-width: 992px) {
  .page-banner h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .page-banner {
    padding: 120px 0 60px;
  }

  .page-banner h1 {
    font-size: 2rem;
  }

  .testimonial-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .testimonial-success {
    align-self: flex-start; /* Garder aligné à gauche */
  }

  .testimonial-content {
    padding: 25px 20px 25px 30px; /* Ajuster padding */
  }

  .testimonial-quote {
    font-size: 2rem;
    left: 15px; /* Rapprocher */
    top: 20px;
  }
}

@media (max-width: 576px) {
  .testimonial-content p {
    font-size: 0.95rem;
  }

  .testimonial-profile {
    gap: 10px;
  }

  .testimonial-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .testimonial-identity h3 {
    font-size: 1.1rem;
  }

  .testimonials-section,
  .engagement-section {
    padding: 60px 0;
  }

  .success-badge {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

   .testimonial-header {
       padding: 15px 20px; /* Moins de padding */
   }
    .testimonial-content {
       padding: 20px 20px 20px 25px; /* Moins de padding */
   }
     .testimonial-quote {
       left: 10px;
       top: 15px;
   }
}