.essentiel-etapes .slick-arrow {
  position: relative;
}

.b-carousel.slick-slider {
  position: relative;
  /* height: 505px; */
}

.slick-list {
  /* height: 550px; */
}

.slick-track {
  left: -26rem;
}

.slick-list.container {
  /* margin-right: 0; */
  padding-left: 0;
}

.slick-arrow-custom {
  justify-content: flex-end;
}

.slick-arrow-custom .prev,
.slick-arrow-custom .next {
  cursor: pointer;
  margin: 0 8px;
  padding: 5px 0;
}

.slick-slide {
  cursor: pointer;
  /* max-width: 300px; */
  position: relative;
}

.b-carousel__slide {
  background: #FFF;
  position: relative;
}


.essentiel-etapes .b-carousel__slide {
  border-radius: 0;
  max-width: 300px;
  overflow: auto;
  max-height: 444px;
}

.essentiel-etapes .b-carousel__slide.a-venir {
  border: var(--bs-secondary) 4px dashed;
}

.essentiel-etapes .slick-slide {
  border-radius: 0;
}

.essentiel-etapes .slick-slide {
  margin: 0 .4rem;
}

.essentiel-etapes .slick-current .b-carousel__slide {
  background-color: var(--bs-secondary);
  /* overflow: auto; */
}

.slick-current .timeline .finalise path:nth-child(1) {
  fill: var(--bs-secondary);
  stroke: var(--bs-secondary);
}

.slick-current .timeline .finalise path:nth-child(2) {
  fill: white;
  stroke: var(--bs-secondary);
}

.slick-current .timeline svg.etape-en-cours>path {
  fill: white;
}

.slick-current .timeline svg.etape-en-cours>path>path {
  fill: white;
}

.slick-current .timeline svg.etape-en-cours>path>path>path {
  fill: white;
}

.slick-current .timeline svg.etape-en-cours>path>path>path>path {
  fill: white;
}

.slick-current .timeline svg.etape-en-cours ellipse {
  fill: #C40065;
}

.slick-current .timeline svg.etape-en-cours g path {
  stroke: white;
}

.slick-current .timeline svg.a-venir ellipse {
  fill: var(--bs-secondary);
}

.slick-current .timeline svg.a-venir path {
  fill: white;
}

.timeline {
  position: relative;
  margin-left: 125px;
}

.timeline svg {
  z-index: 1000;
}

.slick-slide .timeline:not(.first)::after {
  content: '';
  position: absolute;
  width: 100%;
  border-top: var(--bs-secondary) 4px solid;
  top: 21px;
  bottom: 0;
  left: -100%;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 100%;
  border-top: var(--bs-secondary) 4px solid;
  top: 21px;
  bottom: 0;
  left: 0;
}

.slick-slide .timeline.a-venir::after {
  content: '';
  position: absolute;
  width: 100%;
  border-top: var(--bs-secondary) 4px dashed;
  top: 21px;
  bottom: 0;
  left: -100%;
}

.timeline.a-venir::before {
  content: '';
  position: absolute;
  width: 100%;
  border-top: var(--bs-secondary) 4px dashed;
  top: 21px;
  bottom: 0;
  left: 0;
}

.slick-slide:not(.slick-current) .triangle {
  display: none;
}

.slick-slide>div.triangle {
  height: 68px;
}

.triangle {
  position: absolute;
  bottom: 0;
  left: 29%;
  transform: translateY(100%);
}

@media screen and (max-width: 968px) {
  .slick-list {
    padding: 0px 50px 68px 50px !important;
  }

  .slick-track {
    left: -10rem;
  }

  .triangle {
    left: 32%;
  }

}

@media screen and (min-width: 968px) {
  .slick-list {
    height: 550px;
    padding: 0 50px !important;
  }

  .essentiel-etapes .b-carousel__slide.active-slide {
    height: 444px;
  }

  .essentiel-etapes .slick-current .b-carousel__slide {
    overflow: auto;
  }

  .b-carousel.slick-slider {
    height: 505px;
  }

}

@media screen and (max-width: 768px) {
  .slick-track {
    left: 0;
  }

  .triangle {
    left: 22%;
  }

  .slick-arrow-custom {
    justify-content: space-between;
    width: 100%;
  }
}

@media screen and (max-width: 368px) {
  .timeline::before {
    width: 132%;
  }
}
