/* ═══════════════════════════════════════════════════════════════
   GALERIE.CSS — Page galerie photos
═══════════════════════════════════════════════════════════════ */

/* ══ HERO ════════════════════════════════════════════════════ */
.galerie-hero {
    position: relative;
    background: #111;
    text-align: center;
    padding: 80px 5% 60px;
    overflow: hidden;
}
.galerie-watermark {
    position: absolute;
    font-family: 'Anton', sans-serif;
    font-size: clamp(80px, 18vw, 220px);
    color: rgba(255,255,255,0.04);
    white-space: nowrap;
    pointer-events: none;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}
.galerie-hero h1 {
    position: relative;
    font-family: 'Anton', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: 2px;
}
.galerie-hero p {
    position: relative;
    color: rgba(255,255,255,0.55);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin: 0;
}

/* ══ FILTRES ═════════════════════════════════════════════════ */
.galerie-filters-section {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 18px 5%;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.galerie-filters-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

/* Bloc dropdown */
.gal-dropdown-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.gal-dropdown-wrap label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #888;
}
.gal-dropdown-wrap label i {
    margin-right: 5px;
    color: #097eeb;
}
.gal-dropdown {
    padding: 9px 36px 9px 14px;
    border-radius: 10px;
    border: 2px solid #e8e8e8;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #222;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23097eeb' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 180px;
}
.gal-dropdown:focus {
    border-color: #097eeb;
    box-shadow: 0 0 0 3px rgba(9,126,235,0.12);
}

/* Bouton reset */
.gal-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 10px;
    background: #fff0f0;
    color: #e53e3e;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #fecaca;
    transition: all 0.2s;
    align-self: flex-end;
}
.gal-reset-btn:hover {
    background: #fee2e2;
    border-color: #e53e3e;
}

/* Compteur */
.gal-count {
    margin-left: auto;
    align-self: flex-end;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: #aaa;
    padding-bottom: 2px;
}

@media (max-width: 600px) {
    .galerie-filters-inner { gap: 10px; }
    .gal-dropdown { min-width: 140px; font-size: 0.8rem; }
    .gal-count { display: none; }
}

/* ══ GRILLE ══════════════════════════════════════════════════ */
.galerie-section {
    background: #f4f4f4;
    padding: 50px 0 80px;
    min-height: 400px;
}
.galerie-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}

/* Masonry CSS columns */
.gal-masonry {
    column-count: 4;
    column-gap: 14px;
}
@media (max-width: 1100px) { .gal-masonry { column-count: 3; } }
@media (max-width: 700px)  { .gal-masonry { column-count: 2; } }
@media (max-width: 420px)  { .gal-masonry { column-count: 1; } }

/* Item */
.gal-item {
    break-inside: avoid;
    margin-bottom: 14px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: default;
    opacity: 0;
    transform: translateY(20px);
    animation: galFadeUp 0.5s forwards;
    box-shadow: 0 3px 14px rgba(0,0,0,0.10);
}
@keyframes galFadeUp {
    to { opacity: 1; transform: translateY(0); }
}
.gal-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.gal-item:hover img { transform: scale(1.03); }

/* Overlay infos */
.gal-item-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    padding: 20px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    opacity: 0;
    transition: opacity 0.3s;
}
.gal-item:hover .gal-item-overlay { opacity: 1; }
.gal-item-team {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gal-item-titre {
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
}

/* ══ ÉTAT VIDE ════════════════════════════════════════════════ */
.gal-empty {
    text-align: center;
    padding: 80px 20px;
    color: #aaa;
}
.gal-empty i {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: block;
    color: #ccc;
}
.gal-empty p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin-bottom: 16px;
}
.gal-empty-link {
    color: #097eeb;
    font-weight: 600;
    text-decoration: none;
}
.gal-empty-link:hover { text-decoration: underline; }
