.splide.testimony .splide-image {
  overflow: hidden;
    position: relative;
    width: 100%;
    height: 300px;
    background-color: #adadad;
    border: 1px solid black;
    margin-bottom: 20px;
}

.splide.testimony .splide-image img {
  box-shadow: rgba(0, 0, 0, 0.35) 0px -50px 36px -28px inset;
}
.splide.testimony .splide-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: rgba(0, 0, 0, 0.35) 0px -60px 36px -12px inset;
  z-index: 1;
}

.splide.testimony .splide-image h3 {
  position: absolute;
  bottom: 0;
  left: 12px;
  font-size: 32px;
  color: white;
  z-index: 2;
}

.splide.apply .splide__slide {
    background-color: #646e77;
    color: white;
    padding: 15px 25px;
}

.splide.apply .splide__slide h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 16px 48px;
    width: 100%;
    top: 0;
    bottom: 0;
    z-index: 100;
}

header img {
  justify-self: center;
}

header button {
    justify-self: end;
    padding: 6px 10px;
    border: 1px black solid;
    transition: all 165ms ease-in;
}

header button:hover {
    color: white;
    background-color: black;
}

@media screen and (max-width: 768px) {
  header {
    padding: 16px 16px;
    grid-template-columns: 0 auto 1fr;
  }
}


.overlay {
  position: fixed;
  inset: 0;
  display: none;              /* caché par défaut */
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 24px;
  z-index: 9999;
}

.overlay.is-open {
  display: grid;
}

.overlay__dialog {
  position: relative;
  width: min(640px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.overlay__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.form-slot {
  overflow-x: hidden;
  margin-top: 16px;
  padding: 16px 0;
  border: 1px dashed rgba(0,0,0,0.25);
  border-radius: 12px;
  min-height: 160px; /* juste pour visualiser l’emplacement */
}

iframe {
  overflow-x: hidden;
}

/* Navigation globale */
.splide__arrows,
.splide__pagination {
  position: static;
  margin-top: 16px;
}

/* Centrage */
.splide__pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* Flèches */
.splide__arrow {
  background: #d9d9d6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* Wrapper visuel */
.splide.apply {
  display: flex;
  flex-direction: column;
}

.splide__pagination__page.is-active {
  background-color: #646e77;
}

.splide__arrow {
  background: transparent;
}

.splide__arrow--prev {
  left: 0;
}

.splide__arrow--next {
  right: 0;
}

.splide__track {
  margin: 0 46px;
}

@media screen and (min-width: 640px) {
  .splide__track {
    margin: 0;
  }
}

.testimony_quote {
  position: relative;
  padding-top: 8px;
  padding-left: 12px;
  text-indent: 32px;
}

.testimony_quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 40px;
  height: 28px;
  background: url("../images/icons/quote.svg") no-repeat center;
  background-size: contain;
  opacity: 0.24;
}

.testimony_quote::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 40px;
  height: 28px;
  background: url("../images/icons/quote.svg") no-repeat center;
  background-size: contain;
  opacity: 0.24;
  transform: rotateY(180deg) scale(.8);
}

.testimony_quote p {
  margin: 0;
  line-height: 1.6;
  max-width: 48ch;
  padding-top: 10px;
  padding-bottom: 20px;
}

@media (max-width: 768px) {
  .testimony_quote {
    padding-top: 0;
    padding-left: 0;
    text-indent: 32px;
  }

  .testimony_quote::before {
    transform: scale(1);
    width: 28px;
    height: 20px;
  }
}


@media (min-width: 1024px) {
  .splide.apply.is-grid .splide__track {
    overflow: visible;           /* plus de "viewport" slider */
  }

  .splide.apply.is-grid .splide__list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
    transform: none !important;  /* neutralise le translate de Splide */
    width: auto !important;
  }

  .splide.apply.is-grid .splide__slide {
    width: auto !important;      /* neutralise la largeur imposée */
    margin: 0 !important;
  }
  .splide.apply.is-grid .splide__slide:nth-child(1) {grid-column: 1 / 3;}

  .splide.apply.is-grid .splide__slide:nth-child(2) {grid-column: 3 / 5;}

  .splide.apply.is-grid .splide__slide:nth-child(3) {grid-column: 5 / 7;}

  /* 2ème ligne centrée : les 2 dernières cartes prennent les colonnes 1-2 et 2-3 */
  .splide.apply.is-grid .splide__slide:nth-child(4) {
    grid-column: 2 / 4;
    justify-self: end;
    width: calc((100% - 24px) / 3); /* même largeur qu'une carte */
  }

  .splide.apply.is-grid .splide__slide:nth-child(5) {
    grid-column: 4 / 6;
    justify-self: start;
    width: calc((100% - 24px) / 3);
  }

  /* Optionnel: cache les flèches/pagination si tu les as */
  .splide.apply.is-grid .splide__arrows,
  .splide.apply.is-grid .splide__pagination {
    display: none !important;
  }
}