/* 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: 40px auto 0;
  padding: 0px;
}

.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 à Splide */
.testimonials-slider {
  overflow: visible;
  padding: 20px 0;
  box-sizing: border-box;
  transition: padding 0.3s ease;
}

.splide__track {
  overflow: visible;
}

.splide__list {
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.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;
  box-sizing: border-box;
}

.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: contain;
}

.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-source a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.testimonial-platform {
  height: 20px !important;
  width: auto !important;
  max-width: none !important;
  margin-left: 8px;
  border-radius: 0;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Pagination désactivée */
.splide__pagination {
  display: none !important;
}

/* Flèches de navigation */
.splide__arrow--prev,
.splide__arrow--next,
.testimonial-arrow-left,
.testimonial-arrow-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10!important;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1!important;
  transition: opacity 0.3s ease, transform 0.3s ease;
  background: transparent!important;
  border: none;
  padding: 0;
}

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

.splide__arrow--prev:disabled,
.splide__arrow--next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.splide__arrow--prev,
.testimonial-arrow-left {
  left: 10px;
}

.splide__arrow--next,
.testimonial-arrow-right {
  right: 10px;
}

.splide__arrow--prev img,
.splide__arrow--next img,
.testimonial-arrow-left img,
.testimonial-arrow-right img {
  width: 40px;
  height: 40px;
  pointer-events: none;
}

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

  .splide__arrow--next,
  .testimonial-arrow-right {
    right: 20px;
  }
}

@media (max-width: 767px) {
  .section-testimonials {
    overflow: visible !important;
  }

  .testimonials-wrapper {
    overflow: visible !important;
    max-width: none;
    width: 100vw;
    margin: 40px 0 0;
    padding: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .testimonials-gradient-left,
  .testimonials-gradient-right,
  .splide__arrow--prev,
  .splide__arrow--next,
  .testimonial-arrow-left,
  .testimonial-arrow-right {
    display: none !important;
  }

  .testimonial-card {
    padding: 24px;
    margin: 0 auto;
    max-width: 600px;
    width: 100%;
    min-height: 280px;
  }

  .testimonials-slider .splide__slide {
    margin-right: 8px !important;
    display: flex;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
  }
}

@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;
  }
} 
