/* TESTIMONIAUX */

.wp-block-group.is-style-gray-wrap .ghostkit-carousel.is-style-fullwidth {
  background-color: white;
  padding: 1rem;
  width: 100vw;
  margin-left: calc((100vw - var(--container-width)) / -2 + 1rem / 2);
  transition: 0.2s;
}

.wp-block-group.is-style-gray-wrap
  .ghostkit-carousel.is-style-fullwidth
  .ghostkit-carousel-items {
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 1080px) {
  .ghostkit-carousel {
    overflow: hidden !important;
  }
  .wp-block-group.is-style-gray-wrap .ghostkit-carousel.is-style-fullwidth {
    margin-left: unset;
  }
  .wp-block-group.is-style-gray-wrap
    .ghostkit-carousel.is-style-fullwidth
    .ghostkit-carousel-items {
    justify-content: flex-start;
  }
}

.ghostkit-carousel.swiper-container.is-style-centered-arrows
  .ghostkit-carousel-slide.swiper-slide {
  height: auto;
}

/* TEMOIGNAGNES */

.ghostkit-carousel.is-style-testimonials {
  --padding: 10vw;
  padding: 0 var(--padding);
  position: relative;
  overflow: unset;
  padding-bottom: 2.5rem;
}

@media screen and (min-width: 1081px) {
  .ghostkit-carousel.is-style-testimonials::before {
    content: "";
    background: linear-gradient(
      90deg,
      white 5%,
      transparent 20%,
      transparent 80%,
      white 95%
    );
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    width: 100vw;
    margin-left: calc((100vw - var(--container-width)) / -2);
  }
}

@media screen and (max-width: 1440px) {
  .ghostkit-carousel.is-style-testimonials {
    --padding: 20vw;
  }
}

@media screen and (max-width: 1080px) {
  .ghostkit-carousel.is-style-testimonials::after {
    opacity: 0;
    z-index: -1;
  }
}

@media screen and (max-width: 800px) {
  .ghostkit-carousel.is-style-testimonials {
    --padding: 1rem;
  }
}

.ghostkit-carousel.is-style-testimonials .ghostkit-testimonial {
  background-color: var(--light-blue);
  color: var(--blue);
  position: relative;
  transition: 0.2s 0.2s, 0.2s transform;
  padding: 2rem;
  padding-top: 4rem;
  text-align: center;
  border-radius: 0.5rem;
  margin-top: 2.5rem;
  height: 100%;
}

.ghostkit-carousel.is-style-testimonials
  .ghostkit-testimonial
  .ghostkit-testimonial-photo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5rem;
  border-radius: 50%;
  border: solid 0.25rem var(--blue);
  transition: 0.1s;
}

.ghostkit-carousel.is-style-testimonials
  .ghostkit-testimonial
  .ghostkit-testimonial-icon {
  display: none;
}

.ghostkit-carousel.is-style-testimonials
  .ghostkit-testimonial
  :is(.ghostkit-testimonial-content, .ghostkit-testimonial-meta) {
  background-color: transparent;
  padding: 0;
  margin: 0;
}

.ghostkit-carousel.is-style-testimonials
  .ghostkit-testimonial
  .ghostkit-testimonial-meta {
  margin-top: auto;
}

.ghostkit-carousel.is-style-testimonials
  .ghostkit-testimonial
  .ghostkit-testimonial-content
  p {
  color: inherit;
  margin: 0;
  margin-bottom: 0.5rem;
}

.ghostkit-carousel.is-style-testimonials
  .ghostkit-testimonial
  .ghostkit-testimonial-meta::before {
  content: "";
  height: 0.25rem;
  background-color: var(--blue);
  opacity: 25%;
  width: 80%;
  margin: 1.5rem auto 1rem auto;
  transition: 0.2s 0.2s;
}

.ghostkit-carousel.is-style-testimonials
  .ghostkit-testimonial
  .ghostkit-testimonial-name {
  font-size: 1.25rem;
  font-weight: 600;
}

.ghostkit-carousel.is-style-testimonials
  .ghostkit-testimonial
  .ghostkit-testimonial-source {
  transition: 0.2s 0.2s;
}

/* ACTIVE TESTIMONIAL */

.ghostkit-carousel.is-style-testimonials .ghostkit-testimonial {
  transform: translateY(4rem);
}

.ghostkit-carousel.is-style-testimonials
  .swiper-slide-active
  .ghostkit-testimonial {
  transform: translateY(0);
}

.ghostkit-carousel.is-style-testimonials
  .swiper-slide-active
  .ghostkit-testimonial {
  background-color: var(--blue);
  color: white;
  border-color: var(--yellow);
}

.ghostkit-carousel.is-style-testimonials
  .swiper-slide-active
  .ghostkit-testimonial
  .ghostkit-testimonial-meta::before {
  background-color: var(--yellow);
  opacity: 100%;
}

.ghostkit-carousel.is-style-testimonials
  .swiper-slide-active
  .ghostkit-testimonial
  .ghostkit-testimonial-photo {
  border-color: var(--yellow);
}

.ghostkit-carousel.is-style-testimonials
  .swiper-slide-active
  .ghostkit-testimonial
  .ghostkit-testimonial-source {
  color: var(--yellow);
  opacity: 100%;
}

/* .ghostkit-carousel.is-style-testimonials
  .swiper-slide:not(.swiper-slide-active) {
  height: auto;
} */

.ghostkit-carousel.is-style-testimonials
  .swiper-slide
  .ghostkit-testimonial-content
  p {
  transition: 0.2s;
}

.ghostkit-carousel.is-style-testimonials
  .swiper-slide:not(.swiper-slide-active)
  .ghostkit-testimonial-content
  p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.ghostkit-carousel.is-style-testimonials
  .swiper-slide:not(.swiper-slide-active)
  .ghostkit-testimonial-content
  p:not(:first-of-type) {
  display: none;
}

.ghostkit-carousel.is-style-testimonials
  .swiper-slide:not(.swiper-slide-active)
  .ghostkit-testimonial-content
  p:first-of-type::after {
  content: "...";
}

/* FLECHES CENTREES  */

.ghostkit-carousel.is-style-testimonials .ghostkit-carousel-arrow {
  position: absolute;
  top: unset;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: transparent;
  border-radius: unset;
  box-shadow: unset;
}

.ghostkit-carousel.is-style-testimonials
  .ghostkit-carousel-arrow.ghostkit-carousel-arrow-prev {
  margin-left: -1.5rem;
}

.ghostkit-carousel.is-style-testimonials
  .ghostkit-carousel-arrow.ghostkit-carousel-arrow-next {
  margin-left: 1.5rem;
}

.ghostkit-carousel.is-style-testimonials .ghostkit-carousel-arrow svg {
  display: none;
}

.ghostkit-carousel.is-style-testimonials .ghostkit-carousel-arrow::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--blue);
}

.ghostkit-carousel.is-style-testimonials
  .ghostkit-carousel-arrow.swiper-button-disabled::before {
  color: var(--gray);
}

.ghostkit-carousel.is-style-testimonials
  .ghostkit-carousel-arrow.ghostkit-carousel-arrow-prev::before {
  content: "";
}

.ghostkit-carousel.is-style-testimonials
  .ghostkit-carousel-arrow.ghostkit-carousel-arrow-next::before {
  content: "";
}

/* AVEC OVERFLOW ET DEGRADE EXTERIEUR */

.ghostkit-carousel.is-style-overflow-gradient {
  overflow: visible;
  position: relative;
}

.ghostkit-carousel.is-style-overflow-gradient::before {
  content: "";
  --percent: 0%;
  --color: var(--light-gray);
  background: linear-gradient(
    90deg,
    var(--color) calc(0% + var(--percent)),
    transparent calc(0% + var(--percent) * 2),
    transparent calc(100% - var(--percent) * 2),
    var(--color) calc(100% - var(--percent))
  );
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  width: 100vw;
  margin-left: calc((100vw - var(--container-width)) / -2);
  display: none;
}

@media screen and (min-width: 1081px) {
  .ghostkit-carousel.is-style-overflow-gradient::before {
    --percent: 2.5%;
    display: block;
  }
}

@media screen and (min-width: 1280px) {
  .ghostkit-carousel.is-style-overflow-gradient::before {
    --percent: 5%;
  }
}

@media screen and (min-width: 1600px) {
  .ghostkit-carousel.is-style-overflow-gradient::before {
    --percent: 7.5%;
  }
}

@media screen and (min-width: 2160px) {
  .ghostkit-carousel.is-style-overflow-gradient::before {
    --percent: 10%;
  }
}
