@charset "utf-8";
/* CSS Document */
/* =========================
   GALERIE APERÇU ACTUALITÉ
========================= */
.ies-actualite-gallery {
    margin: 28px 0 30px;
}

.ies-gallery-count {
    font-size: .82rem;
    font-weight: 700;
    color: #8a8078;
    background: #f6f1ea;
    padding: 5px 14px;
    border-radius: 50px;
}

/* Grille façon "bento" : la première photo est mise en avant (2x2), les suivantes en petites
   vignettes régulières — plus premium qu'une simple rangée uniforme de miniatures. */
.ies-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 130px;
    gap: 10px;
}

.ies-gallery-item {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f3f3;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    cursor: zoom-in;
}

.ies-gallery-item-lead {
    grid-column: span 2;
    grid-row: span 2;
}

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

/* Voile sombre + icône loupe au survol, façon galerie premium plutôt qu'un simple zoom brut. */
.ies-gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ies-gallery-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    opacity: 0;
    transform: scale(.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
    pointer-events: none;
}

.ies-gallery-item:hover::after,
.ies-gallery-item:hover .ies-gallery-zoom {
    opacity: 1;
    transform: scale(1);
}

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

/* Vignettes au-delà de l'aperçu visuel : gardées dans le DOM (pour alimenter la navigation du
   lightbox) mais non affichées sur la page elle-même. */
.ies-gallery-item-hidden {
    display: none;
}

.ies-gallery-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 16, 12, 0.6);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    z-index: 3;
    letter-spacing: .02em;
}

.ies-btn-galerie {
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #000;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
    white-space: nowrap;
}

.ies-btn-galerie:hover {
    background: #000;
    color: #fff;
}

@media (max-width: 767.98px) {
    .ies-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 120px;
    }
    .ies-gallery-item-lead {
        grid-column: span 2;
        grid-row: span 2;
    }
}
