section.module-slider {
  --slide_index: 0;
  --dimension: calc((var(--main-max-width) - 2rem) / 3);
  --small-dimension: calc((var(--main-max-width) - 2rem) / 8.33);
}
section.module-slider .site-wrapper {
  display: flex;
  gap: var(--gap-m);
}
section.module-slider .site-wrapper > * {
  flex: 1;
}
.module-slider-title {
  font-size: var(--text-3xl-m);
}
.module-slider-paragraph {
  font-size: var(--text-m-m);
}
.module-slider-wrapper {
  position: relative;
  height: var(--dimension);
  width: var(--dimension);
}
.module-slider-slides {
  height: 100%;
  width: 100%;
  border-radius: 1rem;
}
.module-slider-slide {
  background: var(--blue-light);
  border-radius: 1rem;
  object-fit: cover;
}
.module-slider-pagination {
  bottom: 0;
  transform: translateY(var(--gap-2xl));
}
.module-slider-pictos {
  display: flex;
  justify-content: flex-end;
  position: absolute;
  bottom: 3.5rem;
  left: 0;
  transform: translateX(-50%);
  height: var(--small-dimension);
  width: var(--small-dimension);
  background: var(--orange-light);
  border-radius: 1rem;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.module-slider-pictos .module-slider-picto {
  transform: translateX(calc(var(--slide_index) * 100%));
}
.module-slider-picto {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  height: var(--small-dimension);
  width: var(--small-dimension);
  background: var(--orange-light);
  border-radius: 1rem;
  transition: transform 0.3s ease;
}
.module-slider-picto img {
  width: 70%;
  height: 70%;
}
.module-slider-texts {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.module-slider-text:nth-child(3n + 2) {
  --rotation: 2deg;
}
.module-slider-text:nth-child(3n + 3) {
  --rotation: -2deg;
}
.module-slider-text-title {
  color: var(--orange);
  font-size: var(--text-l-m);
}
.module-slider-text-paragraph {
  font-size: var(--text-m-m);
  margin: 0.4em 0;
}

@media screen and (min-width: 1024px) {
  .module-slider-presentation > * {
    padding-right: calc(var(--small-dimension) / 2);
  }

  .module-slider-text-container {
    padding: 1rem;
    border-radius: 1rem;
  }
  html:not(.touch_screen) .module-slider-text:hover > div {
    background: var(--orange);
    color: #fff;
  }
  html:not(.touch_screen) .module-slider-text:hover .module-slider-text-title {
    color: #fff;
  }
}

@media screen and (max-width: 1023px) {
  section.module-slider {
    --small-dimension: 8rem;
  }
  section.module-slider .site-wrapper {
    flex-direction: column;
    gap: 3rem;
  }
  .module-slider-presentation {
    padding: 0 4rem;
  }
  /* .module-slider-title {
    font-size: var(--text-5xl);
  } */
  .module-slider-paragraph {
    /* font-size: var(--text-3xl); */
    font-size: var(--text-2xl);
  }
  .module-slider-paragraph:last-child {
    margin-bottom: 0;
  }
  .module-slider-image-mobile {
    width: var(--main-max-width);
    border-radius: 1rem;
  }
  .module-slider-picto {
    position: absolute;
    top: 0;
    left: 0;
  }
  html:not(.touch_screen) .module-slider-text:hover > div {
    transform: none;
  }
  .module-slider-text + .module-slider-text {
    margin-top: 4rem;
  }
  .module-slider-text-container {
    position: relative;
    min-height: var(--small-dimension);
    padding-left: 9rem;
    padding-right: 4rem;
  }
  .module-slider-text-title {
    font-size: var(--text-3xl);
  }
  .module-slider-text-paragraph {
    font-size: var(--text-2xl);
  }
  .module-slider-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) rotate(-90deg);
    height: 3rem;
    width: 3rem;
    background: var(--orange);
    border-radius: 100%;
    transition: transform 0.2s ease;
  }
  html:not(.touch_screen) .module-slider-text:hover .module-slider-arrow {
    transform: translateY(-50%) rotate(-135deg);
  }
  .module-slider-arrow img {
    height: 60%;
  }
}
