/* ═══════════════════════════════════════════════════════════
   LIGHTBOX — Galerie projet
   ═══════════════════════════════════════════════════════════ */

#projet-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

#projet-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

/* Fond sombre */
.plb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 20, .92);
    cursor: zoom-out;
}

/* Conteneur image */
.plb-stage {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plb-img {
    display: block;
    max-width: 92vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .6);
    transform: scale(.96);
    transition: transform .3s cubic-bezier(.16, 1, .3, 1);
    object-fit: contain;
}

#projet-lightbox.is-open .plb-img {
    transform: scale(1);
}

/* Bouton fermer */
.plb-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    padding: 0;
}

.plb-close svg {
    width: 20px;
    height: 20px;
}

.plb-close:hover {
    background: var(--projet-accent, var(--php-accent, #e8445a));
}

/* Boutons précédent / suivant */
.plb-prev,
.plb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, opacity .2s;
    padding: 0;
}

.plb-prev svg,
.plb-next svg {
    width: 22px;
    height: 22px;
}

.plb-prev { left: 1.25rem; }
.plb-next { right: 1.25rem; }

.plb-prev:hover,
.plb-next:hover {
    background: var(--projet-accent, var(--php-accent, #e8445a));
}

.plb-prev:disabled,
.plb-next:disabled {
    opacity: .25;
    cursor: default;
    pointer-events: none;
}

/* Compteur */
.plb-counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, .6);
    font-size: .8rem;
    letter-spacing: .08em;
    margin: 0;
    pointer-events: none;
}

/* Mobile : boutons plus petits, centrés sous l'image */
@media (max-width: 575px) {
    .plb-prev { left: .5rem; }
    .plb-next { right: .5rem; }

    .plb-prev,
    .plb-next {
        width: 40px;
        height: 40px;
    }
}