/* START CARD SLIDER */
.card-slider {
  width: calc(100% - 100px);
  position: relative;
    margin: 0 50px;
}
.card-slider .cs-arrow i {
  top: 50%;
  height: 50px;
  width: 50px;
  cursor: pointer;
  font-size: 1.25rem;
  position: absolute;
  text-align: center;
  line-height: 50px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0,0,0,0.23);
  transform: translateY(-50%);
  transition: transform 0.1s linear;
z-index: 2;
}
.card-slider .cs-arrow i:active{
  transform: translateY(-50%) scale(0.85);
}
.card-slider .cs-arrow-left i{
  left: -22px;
}
.card-slider .cs-arrow-right i{
  right: -22px;
}
.card-slider .carousel{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% / 6) - 14px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  border-radius: 8px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.carousel {padding:0;}
.carousel.no-transition {
  scroll-behavior: auto;
}
.carousel.dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.carousel.dragging .card {
  cursor: grab;
  user-select: none;
}

.carousel .card {
  scroll-snap-align: start;
  list-style: none;
  background: #fff;
  cursor: grab;
  padding-bottom: 15px;
  flex-direction: column;
  border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.carousel .card:first-child {margin-left: 0;}
.carousel .card:last-child {margin-right: 0;}
.carousel .card .img {
  background: #8B53FF;
  height: 148px;
  width: 148px;
  border-radius: 50%;
}
.card .img img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
}
.carousel .card h2 {
  font-weight: 500;
  font-size: 1.56rem;
  margin: 30px 0 5px;
}
.carousel .card span {
  color: #6A6D78;
  font-size: 1.31rem;
}

.scroll_limit_min .cs-arrow-left {
	display:none;
}

.scroll_limit_max .cs-arrow-right {
	display:none;
}





@media screen and (max-width: 1500px) {
    .card-slider .carousel {grid-auto-columns: calc((100% / 4) - 12px);}
    .list-page-metier-thumbnail.card-slider .carousel {grid-auto-columns: calc((100% / 3) - 12px);}
}

@media screen and (max-width: 1200px) {
    .card-slider .carousel {grid-auto-columns: calc((100% / 3) - 12px);}
    
}


@media screen and (min-width: 1200px) {
    .list-template-lettre-3col .card-slider .carousel {grid-auto-columns: calc((100% / 3) - 12px) !important;}
}


@media screen and (max-width: 900px) {
    .card-slider .carousel {grid-auto-columns: calc((100% / 2) - 8px);}
    .sect-ldm-graphisme .card-slider .carousel {grid-auto-columns: 100%;}
.sect-ldm-graphisme .card-slider .cs-arrow-right i {right: calc(65% - 5px);}
}

@media screen and (max-width: 767px) {
    .card-slider .carousel {margin-left: 20px; margin-right: 20px;}
    .card-slider .cs-arrow-left i {left: 0;}
    .card-slider .cs-arrow-right i {right: 0;}
    .card-slider .cs-arrow i {height: 40px; width: 40px; line-height: 40px;}
    .list-page-metier-thumbnail.card-slider .carousel {grid-auto-columns: calc((100% / 2) - 8px);}
}

@media screen and (max-width: 600px) {
    .card-slider .carousel {grid-auto-columns: 100%; margin-left: 20px; margin-right: 20px;}
    .card-slider {width: calc(100% - 50px); position: relative; margin: 0 25px;}
    
}

@media screen and (max-width: 448px) {
    .list-page-metier-thumbnail.card-slider .carousel {grid-auto-columns: 100%;}
    
}
/* END CARD SLIDER */