/* ========================================
   MODAL CARD - Système de modale réutilisable
   Pour l'affichage des cartes en plein écran sur mobile
   ======================================== */

/* Overlay et container principal */
.card-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Overlay sombre cliquable */
.card-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

/* Contenu de la modale */
.card-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 25px;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 1;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Bouton de fermeture */
.card-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    color: #546e7a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    z-index: 2;
}

.card-modal-close:hover {
    background: #6c5ce7;
    color: #ffffff;
    transform: rotate(90deg);
}

/* Icône de la carte */
.card-modal-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.card-modal-icon.gradient {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 auto 20px auto;
}

/* Titre de la modale */
.card-modal-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
    padding: 0 30px;
}

/* Corps de texte */
.card-modal-body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #546e7a;
    text-align: left;
}

.card-modal-body p {
    margin-bottom: 15px;
}

.card-modal-body strong,
.card-modal-body b {
    color: #2c3e50;
    font-weight: 600;
}

/* Scrollbar personnalisée */
.card-modal-content::-webkit-scrollbar {
    width: 8px;
}

.card-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.card-modal-content::-webkit-scrollbar-thumb {
    background: #6c5ce7;
    border-radius: 10px;
}

.card-modal-content::-webkit-scrollbar-thumb:hover {
    background: #5a4bc4;
}

/* Responsive - Desktop */
@media (min-width: 768px) {
    .card-modal-content {
        max-width: 700px;
        padding: 45px 40px;
    }

    .card-modal-title {
        font-size: 26px;
    }

    .card-modal-body {
        font-size: 17px;
    }
}

/* NOTE: Le blocage du scroll du body est maintenant géré par scroll-manager.css
   Ce fichier se concentre uniquement sur les styles visuels de la modale */
