/* =========================================================
   Zoom photo (lightbox) — fiche annonce
   ========================================================= */

.apercu-photo { cursor: zoom-in; }

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.lightbox-overlay.ouvert { display: flex; }

.lightbox-image {
    max-width: 92vw;
    max-height: 82vh;
    border-radius: var(--rayon);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-fermer,
.lightbox-precedent,
.lightbox-suivant {
    position: absolute;
    background: #fff;
    color: var(--couleur-texte);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-fermer:hover, .lightbox-precedent:hover, .lightbox-suivant:hover { background: var(--couleur-fond-alt); }

.lightbox-fermer { top: 1rem; right: 1rem; }
.lightbox-precedent { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-suivant { right: 1rem; top: 50%; transform: translateY(-50%); }

.lightbox-compteur {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
}

@media (max-width: 600px) {
    .lightbox-fermer, .lightbox-precedent, .lightbox-suivant { width: 44px; height: 44px; font-size: 1.3rem; }
}
