/* ============================================
   MODAL DE VISUALISATION IMAGE / VIDÉO
============================================ */
.media-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 30px;
    animation: fadeIn .2s ease;
}
.media-modal-overlay.actif { display: flex; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.media-modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-modal-content img,
.media-modal-content video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    object-fit: contain;
}

.media-modal-fermer {
    position: absolute;
    top: -46px;
    right: 0;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background .2s;
}
.media-modal-fermer:hover { background: rgba(255,255,255,0.25); }

.media-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 46px; height: 46px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background .2s;
    z-index: 5;
}
.media-modal-nav:hover { background: rgba(255,255,255,0.25); }
.media-modal-nav.prev { left: -60px; }
.media-modal-nav.next { right: -60px; }

@media (max-width: 700px) {
    .media-modal-nav.prev { left: 6px; }
    .media-modal-nav.next { right: 6px; }
    .media-modal-fermer { top: -40px; right: 6px; }
}

.media-modal-compteur {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    color: #cfd3dc;
    font-size: .9rem;
}
