/* ========================================
   GALLERY.CSS - Tous les styles de la page Galerie
   ======================================== */

/* ===== GALLERY FILTERS ===== */
.gallery-filters {
    padding: 40px 0 20px;
    background: var(--light);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--blue);
    background: transparent;
    color: var(--blue);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.filter-btn:hover {
    background: var(--blue);
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--blue);
    color: white;
    box-shadow: 0 4px 15px rgba(10, 61, 145, 0.3);
}

/* ===== GALLERY GRID ===== */
.gallery-page {
    padding: 60px 0 80px;
    background: var(--light);
}

.gallery-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* ===== GALLERY OVERLAY ===== */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 25px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
    transform: translateY(60px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.gallery-overlay p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
    color: white;
}

.gallery-overlay .gallery-tag {
    display: inline-block;
    background: var(--green);
    color: white;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== GALLERY FILTER ANIMATION ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-item {
    animation: fadeIn 0.5s ease;
}

/* ===== GALLERY LIGHTBOX (zoom au clic) ===== */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 40px;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

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

.gallery-lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 15px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    cursor: default;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-lightbox-close {
    position: fixed;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    z-index: 100000;
    background: none;
    border: none;
}

.gallery-lightbox-close:hover {
    color: var(--green);
    transform: rotate(90deg);
}

.gallery-lightbox-info {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 30px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.gallery-lightbox-info h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.gallery-lightbox-info p {
    font-size: 14px;
    opacity: 0.7;
}

/* ============================================
   RESPONSIVE GALLERY
   ============================================ */

@media (max-width: 1024px) {
    .gallery-grid-full {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .gallery-filters {
        padding: 30px 0 15px;
    }

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .gallery-grid-full {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .gallery-page {
        padding: 40px 0 60px;
    }

    .gallery-item img {
        height: 220px;
    }

    .gallery-overlay {
        padding: 18px 18px 15px;
        transform: translateY(50px);
    }

    .gallery-overlay h3 {
        font-size: 16px;
    }

    .gallery-overlay p {
        font-size: 13px;
    }

    .gallery-lightbox-close {
        top: 20px;
        right: 25px;
        font-size: 40px;
    }

    .gallery-lightbox-info {
        bottom: 25px;
        padding: 12px 20px;
    }

    .gallery-lightbox-info h3 {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .gallery-grid-full {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .gallery-item img {
        height: 160px;
    }

    .gallery-overlay {
        padding: 12px 12px 10px;
        transform: translateY(40px);
    }

    .gallery-overlay h3 {
        font-size: 13px;
    }

    .gallery-overlay p {
        font-size: 11px;
    }

    .gallery-overlay .gallery-tag {
        font-size: 9px;
        padding: 2px 10px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .gallery-lightbox img {
        max-width: 95%;
        max-height: 70vh;
    }

    .gallery-lightbox-info {
        bottom: 15px;
        padding: 10px 16px;
    }

    .gallery-lightbox-info h3 {
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .gallery-grid-full {
        grid-template-columns: 1fr;
    }

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

/* ============================================
   FIN GALLERY.CSS
   ============================================ */