/* assets/styles/pages/gallery.css */
/* Styles spécifiques à la page Galerie — hérite du design home (home.css) */

/* Lien actif de la navbar */
#navbar .nav-links a.active { color: var(--blanc); }
#navbar .nav-links a.active::after { width: 100%; }

/* Header Galerie */
.gallery-header {
    padding: 180px 60px 40px;
    text-align: center;
}
.gallery-header .section-eyebrow {
    justify-content: center;
    margin-bottom: 24px;
}
.gallery-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--blanc);
    margin-bottom: 8px;
    line-height: 1.2;
}
.gallery-title em { color: var(--or); font-style: italic; }
.gallery-sub {
    color: var(--gris);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Filtres de catégories */
.gallery-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 60px 48px;
}
.gallery-controls a {
    padding: 8px 24px;
    border: 1px solid var(--ardoise-light);
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gris);
    text-decoration: none;
    transition: all 0.3s;
}
.gallery-controls a:hover,
.gallery-controls a.active {
    background: var(--or);
    color: var(--noir);
    border-color: var(--or);
}

/* Grille de la galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 60px 80px;
    max-width: 1400px;
    margin: 0 auto;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4/3;
    border: 1px solid rgba(212, 175, 55, 0.08);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 60%, rgba(9,10,15,0.9));
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay .title { font-family: var(--font-display); font-size: 1.2rem; color: var(--blanc); }
.gallery-item .overlay .category { font-size: 0.75rem; color: var(--or); text-transform: uppercase; letter-spacing: 1px; }

.gallery-item.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.gallery-item.reveal.visible { opacity: 1; transform: translateY(0); }

/* État vide */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gris);
}
.empty-state i { font-size: 3rem; display: block; margin-bottom: 16px; opacity: 0.3; }

@media(max-width:768px) {
    .gallery-header { padding: 140px 24px 30px; }
    .gallery-header .section-eyebrow { margin-bottom: 18px; }
    .gallery-title { font-size: 2.2rem; }
    .gallery-controls { padding: 10px 24px 30px; gap: 8px; }
    .gallery-grid { padding: 0 24px 60px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}
