@keyframes tonext {
  75% {
    left: 0;
  }
  95% {
    left: 100%;
  }
  98% {
    left: 100%;
  }
  99% {
    left: 0;
  }
}

@keyframes tostart {
  75% {
    left: 0;
  }
  95% {
    left: -300%;
  }
  98% {
    left: -300%;
  }
  99% {
    left: 0;
  }
}

@keyframes snap {
  96% {
    scroll-snap-align: center;
  }
  97% {
    scroll-snap-align: none;
  }
  99% {
    scroll-snap-align: none;
  }
  100% {
    scroll-snap-align: center;
  }
}


* {
  box-sizing: border-box;
  scrollbar-color: transparent transparent; /* thumb and track color */
  scrollbar-width: 0px;
}

*::-webkit-scrollbar {
  width: 0;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: transparent;
  border: none;
}

* {
  -ms-overflow-style: none;
}

ol, li {
  list-style: none;
  margin: 0;
  padding: 0;
  scroll-margin-top: 200px;
}

.carousel {
  position: relative;
  padding-top: 33%;
  filter: drop-shadow(0 0 10px #0003);
  perspective: 100px;
  max-width: 1100px;
  margin: 30px auto;

}

.carousel__viewport {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  overflow-x: scroll;
  counter-reset: item;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  background-color: #d9d5cc;
  counter-increment: item;
  border-radius: 22px;
  overflow: hidden;
}
#carousel__slide3.carousel__slide {
  background-color:#eeefea!important;
}
.carousel__slide:nth-child(even) {
  background-color: #383c3f;
}

.carousel__slide:before {

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%,-40%,70px);
  color: #fff;
  font-size: 2em;
}

.carousel__snapper {
  position: absolute;
  top: 0;
  left: 0px;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  z-index: 5;
  pointer-events: none;
}
.carousel-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  width: 100%;
}
.carousel-content h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
.carousel-content p {
  font-size: 16px;
  padding: 36px;
  text-align: justify;
}
.carousel-content img {
  margin-top: 15px;
  max-width: 100%;
  height: 100%;
  border-radius: 0px;
}
.slide-img {
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.slide-img.senior {
  background-image: url("../img/senior-sur-ordinateur.jpg");
}
.slide-img.print {
  background-image: url("../img/print.webp");
}
.slide-img.assit {
  background-image: url("../img/assist.jpg");
}
.slide-img.panne {
  background-image: url("../img/panne.webp");
}
.slide-img.conseils {
  background-image: url("../img/conseils.webp");
}
.dark{
  color: #333333!important;
}
.light{
  color: #cacaca!important;
}
.slide-left {
  margin-left: 20px;
  flex: 1;
  max-width: 40%;
}
.slide-right {
  flex:2;
  max-width: 60%;
  height: 100%;
}
@media (hover: hover) {
  .carousel__snapper {
    animation-name: tonext, snap;
    animation-timing-function: ease;
    animation-duration: 24s;
    animation-iteration-count: infinite;
  }

  .carousel__slide:last-child .carousel__snapper {
    animation-name: tostart, snap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__snapper {
    animation-name: none;
  }
}

.carousel:hover .carousel__snapper,
.carousel:focus-within .carousel__snapper {
  animation-name: none;
}

.carousel__navigation {
  position: absolute;
  right: 0;
  bottom: -11px;
  left: 0;
  text-align: center;
}

.carousel__navigation-list,
.carousel__navigation-item {
  display: inline-block;
}

.carousel__navigation-button {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  background-color: #333;
  background-clip: content-box;
  border: 0.25rem solid transparent;
  border-radius: 50%;
  font-size: 0;
  transition: transform 0.1s;
}

.carousel::before,
.carousel::after,
.carousel__prev,
.carousel__next {
  position: absolute;
  top: 50%;
  /* margin-top: 16.5%; */
  width: 2rem;
  height: 4rem;
  transform: translateY(-50%);
  border-radius: 5px;
  font-size: 0;
  outline: 0;
  margin: 0px;
  padding: 0px;
  pointer-events: auto;
}

.carousel::before,
.carousel__prev {
  left: 0rem;
}

.carousel::after,
.carousel__next {
  right:  0rem;
}

.carousel::before,
.carousel::after {
  content: '';
  z-index: 1;
  background-color: #333;
  background-size: 1.5rem 1.5rem;
  background-repeat: no-repeat;
  background-position: center center;
  color: #fff;
  font-size: 2.5rem;
  line-height: 4rem;
  text-align: center;
  pointer-events: none;
}

.carousel::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,50 80,100 80,0' fill='%23fff'/%3E%3C/svg%3E");
}

.carousel::after {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='100,50 20,100 20,0' fill='%23fff'/%3E%3C/svg%3E");
}
@media (max-width: 1000px) {
  .carousel-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
  }
  .carousel-content p {
      font-size: 14px;
      padding: 10px;
      text-align: justify;
      margin: 0;

  }
}
@media (max-width: 920px) {
  .carousel-content h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .carousel-content p {
      font-size: 14px;
      padding: 10px;
      text-align: justify;
      margin: 0;
  }
}
@media (max-width: 768px) {
  .carousel{
    padding-top: 100%;
  }
  .carousel-content {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .carousel-content h2 {
    font-size: 20px;
    margin-bottom: 0px;
}
.carousel-content p {
    font-size: 14px;
    padding: 10px;
    text-align: justify;
    margin: 0;
}
  .slide-left, .slide-right {
    max-width: 100%;
    width: 100%;

  }
.conseils-container{
  margin-bottom: 10px;
}
  .slide-left {
    margin: 0;
    min-height: 50%;
  }
  .carousel__navigation {
    bottom: -26px;
}
}