/* Styles pour les témoignages */
.section-testimonials {
  background-color: #f7faef;
  padding-top: 10svh;
  padding-bottom: 10svh;
  position: relative;
  overflow: hidden;
  max-width: 1600px;
  margin: auto;
}

.testimonials-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 1600px;
  margin-top: 40px;
}

.testimonials-wrapper.show {
  opacity: 1;
  transform: translate(0);
}

/* Gradients sur les côtés du slider */
.testimonials-gradient-left,
.testimonials-gradient-right {
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.testimonials-gradient-left {
  left: 0;
  background: linear-gradient(to right, #f7faef 0%, rgba(229, 240, 225, 0) 100%);
}

.testimonials-gradient-right {
  right: 0;
  background: linear-gradient(to left, #f7faef 0%, rgba(229, 240, 225, 0) 100%);
}

/* Styles spécifiques à Swiper */
.testimonials-slider {
  overflow: visible;
  padding: 20px 0;
}

.swiper-wrapper {
  align-items: flex-start;
}

.testimonial-slide {
  height: auto;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius--lg);
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 308px;
}

.testimonial-header {
  display: flex;
  margin-bottom: 20px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 16px;
  flex-shrink: 0;
}

.testimonial-image {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.testimonial-author {
  flex-grow: 1;
}

.testimonial-name {
  margin: 0;
  color: #084a3c;
  font-family: Quicksand, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

.testimonial-position {
  color: #084a3c;
  font-family: Quicksand, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  margin-top: 4px;
}

.testimonial-content {
  flex-grow: 1;
  position: relative;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.testimonial-text {
  font-family: Quicksand, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #084a3c;
  position: relative;
  margin: 0;
  overflow: hidden;
  transition: height 0.5s ease;
}

.testimonial-text.expanded {
  max-height: none;
}

.testimonial-text:not(.expanded) {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.testimonial-text:not(.expanded)[data-has-more="true"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 1) 100%
  );
  pointer-events: none;
}

.testimonial-read-more {
  font-family: Quicksand, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #084a3c;
  text-decoration: none;
  cursor: pointer;
  display: none;
  margin-top: 8px;
  align-self: flex-end;
  transition: transform 0.3s ease;
}

.testimonial-read-more:hover {
  transform: translateY(-2px);
}

.testimonial-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: auto;
}

.testimonial-source {
  display: flex;
  align-items: center;
  font-family: Quicksand, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: #084a3c;
}

.testimonial-platform {
  height: 20px;
  margin-left: 8px;
  border-radius: 0;
}

/* Styles de navigation et pagination personnalisés pour Swiper */
.swiper-pagination {
  position: relative;
  margin-top: 20px;
  bottom: auto !important;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: rgba(8, 74, 60, 0.3);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background-color: #084a3c;
}

/* Flèches de navigation */
.testimonial-arrow-left,
.testimonial-arrow-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.testimonial-arrow-left:hover,
.testimonial-arrow-right:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.testimonial-arrow-left {
  left: 10px;
}

.testimonial-arrow-right {
  right: 10px;
}

.testimonial-arrow-left img,
.testimonial-arrow-right img {
  width: 40px;
  height: 40px;
}

/* Masquer les flèches par défaut de Swiper */
.swiper-button-next::after,
.swiper-button-prev::after {
  display: none;
}

/* Styles responsifs */
@media (max-width: 991px) {
  .testimonial-arrow-left {
    left: 20px;
  }
  
  .testimonial-arrow-right {
    right: 20px;
  }
}

@media (max-width: 767px) {
  .testimonial-card {
    padding: 24px;
    max-width: 100%;
    min-height: 280px;
  }
  
  .testimonials-gradient-left,
  .testimonials-gradient-right {
    width: 80px;
  }
  
  .testimonial-arrow-left,
  .testimonial-arrow-right {
    width: 16px;
    height: 16px;
  }
  
  .testimonial-arrow-left:before,
  .testimonial-arrow-right:before {
    width: 16px;
    height: 16px;
    border-width: 2px 2px 0 0;
  }
  
  .testimonial-arrow-left {
    left: 15px;
  }
  
  .testimonial-arrow-right {
    right: 15px;
  }
}

@media (max-width: 479px) {
  .testimonial-card {
    padding: 20px;
    min-height: 250px;
  }
  
  .testimonial-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .testimonial-avatar {
    margin-bottom: 12px;
  }
  
  .testimonial-text {
    font-size: 15px;
    max-height: 90px;
  }
}

@media screen and (max-width: 767px) {
  .section-testimonials {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

@media screen and (max-width: 479px) {
  .section-testimonials {
    padding-top: 100px;
    padding-bottom: 100px;
  }
} 