.carouselWrapper {
    position: relative;
    margin: 0;
}

.carouselWrapper i {
    height: 50px;
    width: 50px;
    font-size: 30px;
    font-weight: bold;
    color:var(--app-secondary);
    background-color: white;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    font-size: 1.25 rem;
    transform: translateY(-50%);

}
.carouselWrapper i:hover {
     color: white;
     background-color:var(--app-secondary);

 }
.carouselWrapper i:first-child {
    left: -75px;

}
.carouselWrapper i:last-child {
    right: -75px;

}

.carouselWrapper .carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 3) - 13px);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: 0;
    margin: 0;
    padding: 0;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel :where(.card, .img) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.carousel.no-transition {
    scroll-behavior: auto;
}

.carousel.dragging .card {
    cursor: grab;
    user-select: none;
}

.carousel .card {
    position: relative; /* nécessaire pour positionner ::before par rapport à la carte */
    overflow: hidden;
    scroll-snap-align: start;
    list-style: none;
    background: #fff;
    display: flex;
    cursor: pointer;
    width: 100%;
    padding-bottom: 15px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color:var(--app-primary);
}
.carousel .card::before {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    -webkit-transform: skewX(-25deg);
    transform: skewX(-25deg);
}
.carousel .card:hover::before {
    -webkit-animation: shine .75s;
    animation: shine .75s;
}
@-webkit-keyframes shine {
    100% {
        left: 125%;
    }
}
@keyframes shine {
    100% {
        left: 125%;
    }
}
.carousel .card .Photo {
    width: 100%;
    height: 150px;
}
.carousel .card .Photo img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.carousel .card .Photo span.prix {
    position: relative;
    float: right;
    line-height: 30px;
    padding: 0px 8px;
    margin: -30px 0px 0px 0px;
    color:white ;
    font-size: 18px;
    font-weight: bold;
    background-color:var(--app-primary-dark);
    z-index: 2;
}
.carousel .card .Descriptif  {
    width:100%;
}

.carousel .card .Descriptif .Titre {
    min-height: 60px;
}

.carousel .card .Descriptif h2 {
    font-size: 20px;
    line-height: 24px;
    color: white;
    margin-bottom: 0px;
    margin: 10px 15px 5px 15px;
}
.carousel .card .Descriptif .Detail {
    display:flex;
    margin: 0 15px;
}
.carousel .card .Descriptif .Detail p {
    color: white;
    flex-grow: 1;
    line-height: 17px;
    font-size: 13px;
}
.carousel .card .Descriptif .Detail p span {
    margin-right: 7px;
    font-size: 17px;
}

.carousel .card .Descriptif .Detail div  {
    align-self: flex-end;
}


/* TABLETTES */
@media only screen and (max-width:1260px) {
    .carouselWrapper {
        margin: 75px 25px 0 25px;
    }
    .carouselWrapper i:first-child {
        left: -50px;

    }
    .carouselWrapper i:last-child {
        right: -50px;
    }
    .carouselWrapper .carousel {
        grid-auto-columns: calc((100% / 2) - 9px);
    }
    .carousel .card .Photo {
        height: 250px;
    }
    .carousel .card .Photo img {
        height: 250px;
    }
}

/* SMARTPHONES */
@media only screen and (max-width:768px) {
    .carouselWrapper .carousel {
        grid-auto-columns: 100%;
    }
}