/* ====================================
   Modal reCAPTCHA - Design Moderne et Soigné
   ==================================== */

/* Modal Backdrop */
.recaptcha-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.recaptcha-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

/* Overlay semi-transparent */
.recaptcha-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Container du modal */
.recaptcha-modal-container {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 90%;
    z-index: 10000;
    animation: slideInDown 0.4s ease-out;
    overflow: hidden;
}

/* Header du modal */
.recaptcha-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.recaptcha-modal-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Bouton de fermeture */
.recaptcha-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.recaptcha-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Body du modal */
.recaptcha-modal-body {
    padding: 30px 25px;
    text-align: center;
}

.recaptcha-modal-body p {
    margin: 0 0 25px 0;
    color: #555;
    font-size: 16px;
    font-weight: 400;
}

/* Widget reCAPTCHA centré */
.recaptcha-modal-widget {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 78px;
}

.recaptcha-modal-widget > div {
    display: inline-block;
}

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animation de fermeture */
.recaptcha-modal.hide {
    animation: fadeOut 0.2s ease-in-out;
}

.recaptcha-modal.hide .recaptcha-modal-container {
    animation: slideOutUp 0.2s ease-in-out;
}

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

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .recaptcha-modal-container {
        max-width: 95%;
    }
    
    .recaptcha-modal-header {
        padding: 15px 20px;
    }
    
    .recaptcha-modal-header h4 {
        font-size: 18px;
    }
    
    .recaptcha-modal-body {
        padding: 25px 20px;
    }
    
    .recaptcha-modal-body p {
        font-size: 14px;
    }
}

/* Style du formulaire newsletter */
.newsletter-form {
    position: relative;
}
