/* Styles pour la galerie d'images - Version Slider */
.gallery-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background-image: url('../images/pattern-bg.png');
    background-repeat: repeat;
    opacity: 0.05;
    z-index: 1;
}

.gallery-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.gallery-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #2563eb;
    position: relative;
    padding-bottom: 1rem;
}

.gallery-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 2px;
}

/* Slider container */
.gallery-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 500px;
    width: 100%;
    flex-wrap: nowrap;
}

.slide {
    flex: 0 0 100%;
    position: relative;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 2rem 1rem 1.5rem;
    color: #fff;
    text-align: center;
}

.slide-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.slide-caption p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 80%;
    margin: 0 auto;
}

/* Navigation buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 20px;
}

.slider-nav button {
    background-color: rgba(255, 255, 255, 0.8);
    color: #2563eb;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.slider-nav button:hover {
    background-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.slider-nav button:focus {
    outline: none;
}

/* Indicators */
.slider-indicators {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #2563eb;
    transform: scale(1.2);
}

/* Thumbnails */
.slider-thumbnails {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.thumbnail {
    width: 100px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail.active {
    border-color: #2563eb;
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.gallery-section .btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.gallery-section .btn-secondary:hover {
    background: linear-gradient(90deg, #1e40af, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* Styles pour la lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.lightbox-prev,
.lightbox-next {
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Styles responsives */
@media (max-width: 992px) {
    .gallery-item {
        flex: 0 0 50%;
        height: 250px;
    }
    
    .gallery-item-large {
        flex: 0 0 100%;
        height: 350px;
    }
    
    .gallery-item-small {
        flex: 0 0 50%;
        height: 200px;
    }
    
    .gallery-section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 4rem 0;
    }
    
    .gallery-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .slider-container {
        height: 400px;
    }
    
    .slide-caption h3 {
        font-size: 1.3rem;
    }
    
    .slide-caption p {
        font-size: 0.95rem;
    }
    
    .slider-thumbnails {
        gap: 8px;
    }
    
    .thumbnail {
        width: 80px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .gallery-section h2 {
        font-size: 1.8rem;
    }
    
    .slider-container {
        height: 300px;
    }
    
    .slide-caption {
        padding: 1.5rem 1rem 1rem;
    }
    
    .slide-caption h3 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }
    
    .slide-caption p {
        font-size: 0.9rem;
        max-width: 95%;
    }
    
    .slider-nav button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .slider-indicators {
        margin-top: 1rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-section {
        padding: 3rem 0;
    }
    
    .gallery-section h2 {
        font-size: 1.6rem;
    }
    
    .slider-container {
        height: 250px;
    }
    
    .slide-caption h3 {
        font-size: 1.1rem;
    }
    
    .slide-caption p {
        font-size: 0.85rem;
        max-width: 100%;
    }
    
    .slider-thumbnails {
        gap: 6px;
    }
    
    .thumbnail {
        width: 50px;
        height: 40px;
    }
    
    .gallery-section .btn-secondary {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
}
