/* === Galerie globale === */
.gallery-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.gallery-filters {
    margin-bottom: 1.5rem;
    text-align: center;
}

.gallery-filters .filter-btn {
    background: #f1faee;
    color: #1d3557;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem 0.5rem 0.25rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}
.gallery-filters .filter-btn.active,
.gallery-filters .filter-btn:hover {
    background: #457b9d;
    color: #fff;
}

.gallery-category {
    margin-bottom: 3rem;
}

.gallery-category-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1d3557;
    border-bottom: 2px solid #f1faee;
    display: inline-block;
    padding-bottom: 5px;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.gallery-img {
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}
