/* Styles des Témoignages - Version fixe (3 côte à côte) */
.testimonials-section {
  padding: 80px 0;
  background-color: var(--light-bg);
  position: relative;
  overflow: hidden;
}

.testimonials-bg-shape {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 166, 81, 0.03) 0%, rgba(0, 153, 204, 0.05) 100%);
  top: -400px;
  right: -400px;
  z-index: 0;
  animation: rotateShape 30s linear infinite;
}

@keyframes rotateShape {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.testimonial-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  padding: 20px 0;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 30px;
  width: 100%;
  max-width: 350px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-card-inner {
  position: relative;
  z-index: 1;
}

.quote-marks {
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0.2;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.testimonial-card:hover .quote-marks {
  opacity: 0.4;
  transform: translateY(-50%) scale(1.1);
}

.testimonial-content {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  font-style: italic;
}

.testimonial-rating {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  color: #f1c40f;
}

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

.testimonial-avatar {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.student-avatar {
  background: linear-gradient(135deg, #0099cc, #31c1f9);
}

.company-avatar {
  background: linear-gradient(135deg, #25AAE2, #06cc63);
}

.university-avatar {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.testimonial-avatar i {
  font-size: 28px;
  color: white;
}

.testimonial-info {
  flex: 1;
}

.testimonial-info h4 {
  font-weight: 700;
  color: var(--dark-color);
  margin: 0 0 5px;
  font-size: 18px;
}

.testimonial-info p {
  font-size: 14px;
  color: var(--primary-color);
  margin: 0;
}

/* Animation for card entrance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.testimonial-card:nth-child(1) {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.testimonial-card:nth-child(2) {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.testimonial-card:nth-child(3) {
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

/* Effet de pulsation pour les icônes */
@keyframes iconPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.testimonial-avatar i {
  animation: iconPulse 2s ease-in-out infinite;
}

/* Style pour le section-title */
.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .testimonial-container {
    flex-direction: column;
    align-items: center;
  }
  
  .testimonial-card {
    max-width: 100%;
  }
}
