/* ==================== Slider Infini ==================== */
.infinite-slider {
    overflow: hidden;
    padding: 2rem 0;
    border-radius: 15px;
    margin: 1.5rem 0;
}

.slider-track {
    display: flex;
    gap: 2rem;
    animation: scroll 10s linear infinite;
}

.slider-track:hover {
    animation-play-state: paused;
}

.slider-item {
    top: 0;
    min-width: 350px;
    aspect-ratio: 210/297;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 61, 165, 0.2);
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(135deg, var(--pantone-293) 0%, var(--pantone-3125) 100%);
}

.slider-item:hover {
    transform: scale(1.1);
    z-index: 10;
}

.slider-item iframe {
    width: 100%;
    height:100%;
    object-fit: cover;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==================== Lightbox Modal ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.gallery-item {
    aspect-ratio: 210/297;
    background: linear-gradient(135deg, var(--pantone-293) 0%, var(--pantone-3125) 100%);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 174, 199, 0.4);
}

.gallery-item::after {
    content: '';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover::after {
    opacity: 0.9;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--pantone-3125);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--pantone-3125);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.lightbox-nav:hover {
    background: var(--pantone-293);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==================== CAROUSEL GRILLE (3 images visibles) ==================== */

.grid-carousel {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    overflow: hidden;
}

.grid-carousel .carousel-container {
    position: relative;
    width: 100%;
    padding: 2rem 0;
    overflow: hidden;
}

.grid-carousel .carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1.5rem;
    padding: 1rem 0;
    will-change: transform;
}

.grid-carousel .carousel-slide {
    flex: 0 0 calc(33.33% - 1rem);
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slides non-actives (extrémités) - légèrement atténuées */
.grid-carousel .carousel-slide:not(.active) {
    opacity: 0.5;
    filter: blur(2px);
}

/* Slide active - au centre et nette */
.grid-carousel .carousel-slide.active {
    opacity: 1;
    filter: blur(0);
    z-index: 3;
}

.grid-carousel .carousel-item {
    position: relative;
    width: 100%;
    height: 35rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 61, 165, 0.15);
    background: #f5f5f5;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-carousel .carousel-slide.active .carousel-item {
    box-shadow: 0 15px 40px rgba(0, 61, 165, 0.3);
}

.grid-carousel .carousel-item:hover {
    box-shadow: 0 20px 50px rgba(0, 61, 165, 0.25);
}

.grid-carousel .carousel-item img,
.grid-carousel .carousel-item iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
    display: block;
    background: #f5f5f5;
}

/* Bouton d'ouverture */
.grid-carousel .carousel-open-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 61, 165, 0.95);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
    transition: all 0.3s ease;
}

.grid-carousel .carousel-open-btn:hover {
    background: rgba(0, 61, 165, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Navigation buttons */
.grid-carousel .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 61, 165, 0.95);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-carousel .carousel-nav:hover {
    background: rgba(0, 174, 199, 1);
    transform: translateY(-50%) scale(1.15);
}

.grid-carousel .carousel-nav.prev {
    left: 15px;
}

.grid-carousel .carousel-nav.next {
    right: 15px;
}

/* Dots navigation */
.grid-carousel .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding: 0;
    list-style: none;
}

.grid-carousel .carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.grid-carousel .carousel-dot:hover {
    background: var(--pantone-293);
    opacity: 0.8;
    transform: scale(1.3);
}

.grid-carousel .carousel-dot.active {
    background: var(--pantone-293);
}

/* ==================== RESPONSIVE ==================== */

/* Tablette - 2 colonnes */
@media screen and (max-width: 1024px) {
    .grid-carousel .carousel-slide {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

/* Mobile large - 2 colonnes */
@media screen and (max-width: 768px) {
    
    .grid-carousel .carousel-item {
        height: 18rem;
    }
    
    .grid-carousel .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .grid-carousel .carousel-nav.prev {
        left: 10px;
    }
    
    .grid-carousel .carousel-nav.next {
        right: 10px;
    }
}

/* Mobile - 1 colonne */
@media screen and (max-width: 600px) {
    .grid-carousel .carousel-slide {
        flex: 0 0 100%;
    }
    
    .grid-carousel .carousel-slide:not(.active) {
        opacity: 1;
        filter: blur(0);
    }
    
    .grid-carousel .carousel-item {
        height: 30rem;
        width: 20rem;
        margin: 0 auto;
    }
    
    .grid-carousel .carousel-track {
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .grid-carousel .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .grid-carousel .carousel-nav.prev {
        left: 1rem;
    }
    
    .grid-carousel .carousel-nav.next {
        right: 2rem;
    }
    
    .grid-carousel .carousel-open-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .grid-carousel .carousel-dots {
        gap: 10px;
        margin-top: 1.5rem;
    }
    
    .grid-carousel .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

/* Mobile small */
@media screen and (max-width: 480px) {
    .grid-carousel .carousel-item {
        height: 25rem;
        width: 15rem;
        margin: 0 auto;
    }
    
    .grid-carousel .carousel-open-btn {
        padding: 6px 10px;
        font-size: 11px;
        top: 10px;
        right: 10px;
    }
}