/* ===================== */
/* MODALS */
/* ===================== */

/* Modal générique */
.modal-iframe {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-iframe.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Contenu du modal */
.modal-content-iframe {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(255, 60, 0, 0.5);
}

/* Bouton de fermeture */
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10001;
    width: 45px;
    height: 45px;
    background: #ff3c00;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-weight: bold;
}

.modal-close:hover {
    background: #ff5722;
    transform: rotate(90deg) scale(1.1);
}

/* Iframe dans le modal */
.modal-content-iframe iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===================== */
/* MODAL SCRED BOUTIQUE */
/* ===================== */
#scredModal .modal-content-iframe {
    max-width: 1200px;
    height: 90vh;
}

/* ===================== */
/* MODAL INSTRUS YOUTUBE */
/* ===================== */
#instrusModal .modal-content-iframe {
    max-width: 900px;
    height: 80vh;
}

#instrusModal iframe {
    border-radius: 0 0 12px 12px;
}

/* ===================== */
/* MODAL LECTEUR MUSIQUE */
/* ===================== */
#musicModal .modal-content-iframe {
    max-width: 800px;
    height: 600px;
}

.modal-music {
    max-width: 800px;
    height: 600px;
}

.modal-music iframe {
    border-radius: 0 0 12px 12px;
}

/* ===================== */
/* RESPONSIVE MODALS */
/* ===================== */
@media (max-width: 768px) {
    .modal-content-iframe {
        height: 95vh;
        border-radius: 0;
    }
    
    .modal-iframe {
        padding: 0;
    }
    
    .modal-music {
        height: 70vh;
    }
    
    #instrusModal .modal-content-iframe {
        height: 85vh;
    }
}

@media (max-width: 480px) {
    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}
