.main__slider {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 5px;
  /* width: 100%; */
  position: absolute;
  bottom: 0px;
  left: 0px;
  background-color: #73c9e7;
  z-index: 2222;
}
.progress-bar {
  height: 5px;
  /* width: 100%; */
  position: absolute;
  bottom: 0px;
  left: 0px;
  background-color: #73c9e7;
  z-index: 2222;
}
.slider {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
}

.image-container {
  display: flex;
  width: 100%; /* Les images prennent toute la largeur du conteneur */
  justify-content: center;
  align-items: center;
}

.slide {
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  position: relative;
  background-color: rgb(var(--primary-color), 0.5);
}

.image {
  /* L'image prend toute la largeur de la slide */
  transition: transform 0.5s ease;
}

/* Pour l'image au centre (active) */
.slide.active {
  background: none !important;
  width: 60%;
  height: 323px;
}
.active .image {
  z-index: 3;
}
.back_notactive {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 1rem;
  /* background: rgba(0, 0, 0, 0.7); */
  color: white;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 200;
}
.slider__textslide {
  width: 100%;
  position: absolute;
  z-index: 5;
  color: #fff;
  bottom: 0;
  padding: 7% 9%;
}
.slider__textslide h3 {
  font-weight: 600;
  font-size: var(--headline-font-size);
}
.slider__textslide h4 {
  font-size: var(--headlinei-font-size);
  font-weight: var(--headlinei-font-weight);
}
.slider__textslide button {
  background-color: rgb(256, 256, 256, 0.25);
  font-weight: var(--subheadline-font-weight);
  float: right;
  font-size: var(--textmini-font-size);
  text-align: center;
  color: rgb(var(--secondary-color));
  border: 0;
  width: 138px;
  border-radius: 5%;
  height: 35px;
  cursor: pointer;
  transition: all 300ms;
}
.slider__textslide button:hover {
  background-color: rgb(256, 256, 256, 0.5);
}
.slider__textslide-butn {
  display: flex;
  min-width: 100%;
  justify-content: space-between;
  border-radius: 5px;
}
.slider__navbar {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 19%;
  z-index: 5;
  top: 38%;
  position: absolute;
}

.navbar__arrow:hover {
  opacity: 0.9;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 94%;
}

.slide {
  position: absolute;
  top: 54%;
  width: 800px;
  height: 410px;
  transition: all 0.7s ease-out;
}

.slide[data-position="-1"] {
  left: 5%;
  transform: translate(-61%, -50%) scale(0.75);
  opacity: 1;
  z-index: 0;
}

.slide[data-position="0"] {
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 10;
}

.slide[data-position="1"] {
  left: 95%;
  transform: translate(-39%, -50%) scale(0.75);
  opacity: 1;
  z-index: 0;
}

.slide-content {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); */
}

.slide img {
  width: 102%;
  height: 167%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.slide.active:hover img {
  transform: scale(1.1);
}

.slide-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 2rem;
  background: url(../img/slide/gradian_slider.png) bottom repeat-x;
  /* background-size: cover; */
  /* background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)); */
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slide.active .slide-text {
  opacity: 1;
}

.slide.active .slide-text h2 {
  animation: slideUp 0.7s ease-out forwards;
}

.slide.active .slide-text p {
  animation: slideUp 0.7s ease-out 0.2s forwards;
  color: #fff;
}

.slide.active .slide-text button {
  animation: slideUp 0.7s ease-out 0.4s forwards;
}

.slide-text h2 {
  font-size: 2.25rem;
  font-weight: 600;
  /* margin-bottom: 1rem; */
  opacity: 0;
  margin: 0px;
}

.slide-text p {
  font-size: 20px;
  /* margin-bottom: 1.5rem; */
  opacity: 0;
  font-weight: 200;
  margin: 0px;
}

.slide-text button {
  font-size: 13px;
  align-self: flex-end;
  background-color: rgb(256, 256, 256, 0.3);
  color: #ffffff;
  opacity: 0;
  transition: transform 0.3s ease;
  border: none;
  padding: 10px 15px;
  z-index: 2000;
}

.slide-text button:hover {
  transform: scale(1.05);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(256, 256, 256, 1);
  border: none;
  cursor: pointer;
  z-index: 20;
  transition: background-color 0.3s ease;
}

.slider-nav:hover {
  background: rgba(255, 255, 255, 1);
}

.slider-nav.prev {
  /* left: 16rem; */
  left: 17%;
  box-shadow: 0px 0px 6px #5b5b5b;
}

.slider-nav.next {
  right: 17%;
  box-shadow: 0px 0px 6px #5b5b5b;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideTransition {
  from {
    transform: translateX(100px) scale(0.75);
  }
  to {
    transform: translateX(0) scale(1);
  }
}
