/**
 * Custom Elementor Carousel - Styles
 */

/* Style général du carousel */
.custom-carousel-wrapper {
    --fade-width: 10%;
    width: 100%;
    background-color: #f5f5f5;
    padding: 60px 40px;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.custom-carousel-swiper {
    width: 100%;
    overflow: hidden;
}

.custom-carousel-slide {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.custom-carousel-slide-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.custom-carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: all 0.4s ease;
    cursor: pointer;
}

/* Style des titres */
.custom-carousel-title {
    margin-top: 15px;
    padding: 0 5px;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    text-align: center;
    line-height: 1.4;
}

/* ===== EFFET DE FONDU SUR LES CÔTÉS ===== */
.custom-carousel-wrapper.has-fade-edges::before,
.custom-carousel-wrapper.has-fade-edges::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--fade-width);
    z-index: 10;
    pointer-events: none;
}

.custom-carousel-wrapper.has-fade-edges::before {
    left: 0;
    background: linear-gradient(to right, 
        var(--carousel-bg, #f5f5f5) 0%, 
        transparent 100%);
}

.custom-carousel-wrapper.has-fade-edges::after {
    right: 0;
    background: linear-gradient(to left, 
        var(--carousel-bg, #f5f5f5) 0%, 
        transparent 100%);
}

/* Effets au survol */
.hover-effect-zoom .custom-carousel-slide-inner {
    overflow: hidden;
}

.hover-effect-zoom .custom-carousel-slide:hover img {
    transform: scale(1.05);
}

.hover-effect-brightness .custom-carousel-slide:hover img {
    filter: brightness(1.2);
}

.hover-effect-grayscale .custom-carousel-slide img {
    filter: grayscale(0);
    transition: filter 0.4s ease;
}

.hover-effect-grayscale .custom-carousel-slide:hover img {
    filter: grayscale(100%);
}

/* Style pour le curseur grab */
.custom-carousel-swiper {
    cursor: grab;
}

.custom-carousel-swiper:active {
    cursor: grabbing;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-carousel-wrapper {
        padding: 30px 20px;
    }
    
    .custom-carousel-slide img {
        height: 250px;
    }
    
    .custom-carousel-title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .custom-carousel-wrapper {
        padding: 20px 15px;
    }
    
    .custom-carousel-slide img {
        height: 200px;
    }
    
    .custom-carousel-title {
        font-size: 13px;
    }
}
