.carousel-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 50px;
}

/* Container du carousel avec scroll */
.carousel-container {
    display: flex;
    overflow-x: hidden;
    /* Masque le débordement */
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Masquer la scrollbar */
.carousel-container::-webkit-scrollbar {
    display: none;
}

/* Chaque carte du carousel - prend 100% de la largeur */
.carousel-item {
    flex: 0 0 calc(100% - 20px);
    /* 100% moins le gap */
    min-width: calc(100% - 20px);
    padding: 20px;
    transition: transform 0.3s ease;
    text-align: center;
    /* background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}

/* .carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
} */

.carousel-item img {
    width: 100%;
    height: 300px;
    /* Hauteur augmentée car plus d'espace */
    object-fit: cover;
    border-radius: 8px !important;
    margin-bottom: 15px;
}

.carousel-item h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #333;
}

.carousel-item h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--text-light);
}

.carousel-item p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

/* Boutons de navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Indicateurs de pagination (optionnel) */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

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

.carousel-dot.active {
    background: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 40px;
    }

    .carousel-item {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .carousel-item img {
        height: 250px;
    }

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

@media (max-width: 480px) {
    .carousel-wrapper {
        padding: 0 30px;
    }

    .carousel-item img {
        height: 200px;
    }

    .carousel-item h3 {
        font-size: 20px;
    }

    .carousel-item p {
        font-size: 14px;
    }
}

.swiper-slide-inner img {
    border-radius: 8px !important;
}