/* Wrapper principal du carrousel */
.products-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
    margin: 20px 0;
}

/* Container du carrousel */
.products-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Track du carrousel */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    flex-wrap: nowrap;
    margin: 0 !important;
}

/* Items du carrousel */
.carousel-item-wrapper {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 15px;
    transition: opacity 0.3s ease;
}

/* Boutons de navigation */
.carousel-controls {
    position: initial;
}

/*.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}*/
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 100;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.carousel-btn:hover {
   /* background: #fff;*/
    border-color: #fdc800;
    color: #fdc800;
   /* box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);*/
    transform: translateY(-50%) scale(1.1);
    opacity: 0.6;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-prev {
    left: -15px;
}

.carousel-next {
    right: -6px;
}

.carousel-btn i {
    font-size: 28px;
    color: #333333;
    font-weight: bold;
}

.carousel-btn:hover i {
    color: #fdc800;
}

/* Dots de pagination */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: #fdc800;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: #fdc800;
}

/* Responsive */
@media (max-width: 991px) {
    .carousel-item-wrapper {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .carousel-btn {
        width: 25px;
        height: 25px;
    }

    .carousel-btn i {
        font-size: 24px;
    }

    .carousel-prev {
        left: -35px;
    }

    .carousel-next {
        right: -35px;
    }
}

@media (max-width: 767px) {
    .carousel-item-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .carousel-btn {
        width: 20px;
        height: 20px;
    }

    .carousel-btn i {
        font-size: 20px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }
}

/* Animation smooth pour le défilement */
.carousel-track.transitioning {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Amélioration visuelle des cartes dans le carrousel */
.carousel-item-wrapper .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carousel-item-wrapper .card-body {
    flex: 1;
}