/* Popup personnalisée - Overlay */
.custom-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Popup container */
.custom-popup-container {
    position: relative;
    background: white;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90vh;
    width: 800px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.custom-popup-overlay.active .custom-popup-container {
    transform: scale(1);
}

/* Bouton de fermeture */
.custom-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    color: #333;
    transition: all 0.2s ease;
    z-index: 10;
}

.custom-popup-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

/* Contenu de la popup */
.custom-popup-content {
    padding: 40px 30px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Titre optionnel */
.custom-popup-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Container SurveyMonkey */
#survey-container {
    min-height: 500px;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-popup-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .custom-popup-content {
        padding: 30px 20px;
    }
    
    .custom-popup-title {
        font-size: 20px;
    }
}

/* Animation de chargement */
.custom-popup-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.custom-popup-loading::after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Empêcher le scroll du body quand popup ouverte */
body.popup-open {
    overflow: hidden;
}