/* Éditeur Elementor : rendu statique */

.vlc-slider-editor {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
}

.vlc-slide-editor {
    width: 120px;
    height: auto;
    border-radius: 4px;
    overflow: hidden;
    background: #f3f3f3;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

.vlc-slide-editor img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

/* Front : structure */

.vlc-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.vlc-track {
    display: flex;
    will-change: transform;
}

/* Slides */

.vlc-slide {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 300ms ease, opacity 300ms ease;
    width: var(--vlc-slide-width, 20%);
    cursor: pointer;
}

.vlc-slide img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: auto;
    cursor: pointer;
}

.vlc-carousel .swiper-wrapper {
    transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

/* Lightbox */

.mic-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .2s ease;
    z-index: 9999;
}

.mic-lightbox.visible {
    opacity: 1;
}

.mic-lightbox img {
    max-width: 90%;
    max-height: 90%;
}

.mic-lightbox-close,
.mic-lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: white;
    cursor: pointer;
    z-index: 10000;
    user-select: none;
}

.mic-lightbox-close {
    top: 20px;
    right: 20px;
    transform: none;
    font-size: 40px;
}

.mic-lightbox-arrow-left {
    left: 30px;
}

.mic-lightbox-arrow-right {
    right: 30px;
}

/* Responsive */

.vlc-slide {
    width: var(--vlc-slide-width, 20%);
}

@media (max-width: 1024px) {
    .vlc-slide {
        width: 33.333%;
    }
}

@media (max-width: 768px) {
    .vlc-track {
        gap: 0 !important;
    }
    .vlc-slide {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .vlc-slide {
        width: 100%;
    }
}
