/* ====================================================
   MODAL MAP - CSS CORRIGÉ
===================================================== */

.CR-map-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.CR-map-modal-overlay.active {
    display: flex !important;
}

.CR-map-modal {
    background-color: #111111;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    position: relative;
    border: 2px solid #FFD600;
    display: flex;
    flex-direction: column;
}

.CR-map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #0a0a0a;
    border-bottom: 2px solid #FFD600;
    flex-shrink: 0;
}

.CR-map-modal-header h3 {
    color: #FFD600;
    font-family: 'Aldrich', sans-serif;
    font-size: 1.1rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.CR-map-modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.CR-map-modal-close:hover {
    color: #FFD600;
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.CR-map-modal-body {
    position: relative;
    width: 100%;
    height: 500px;
    flex: 1;
}

.CR-map-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Animations */
@keyframes CR-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes CR-slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ====================================================
   RESPONSIVE MOBILE - MODAL FULLSCREEN
===================================================== */

@media (max-width: 768px) {
    .CR-map-modal {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        border: none !important;
    }
    
    .CR-map-modal-header {
        padding: 15px;
    }
    
    .CR-map-modal-header h3 {
        font-size: 1rem;
    }
    
    .CR-map-modal-body {
        height: calc(100vh - 62px) !important;
        flex: 1;
    }
    
    .CR-map-modal-close {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .CR-map-modal-header {
        padding: 12px;
    }
    
    .CR-map-modal-header h3 {
        font-size: 0.9rem;
    }
    
    .CR-map-modal-body {
        height: calc(100vh - 54px) !important;
    }
}