.swal2-container {
    z-index: 10000 !important;
}

/* Réduire la taille du popup */
.swal-custom-popup {
width: 300px !important;
padding: 20px !important;
border-radius: 20px !important;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Style du titre */
.swal-custom-title {
font-size: 16px;
font-weight: 600;
color: #333;
}

/* Style de l'icône */
.swal-custom-icon {
font-size: 10px;
}


/* Overlay du popup */
.newsletter-overlay {
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    justify-content: center; align-items: center;
    /* background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px); */
    background-color: rgba(0, 0, 0, 0.4); /* semi-transparent noir */
    display: none;
    margin: 0;
    padding: 0;
    padding-top: 60px; /* Ajouter un espacement en haut */
}

/* Container principal du popup */
.newsletter-popup {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: var(--white);
    background-color: var(--primary);
    border-radius: 20px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: popupSlide 0.5s ease-out;
    margin: 0 auto;
    transform: translate(0, -30px); /* Décaler légèrement vers le haut pour compenser le padding-top */
}

@keyframes popupSlide {
    from {
        transform: translate(0, -80px);
        opacity: 0;
    }
    to {
        transform: translate(0, -30px);
        opacity: 1;
    }
}

/* Bouton de fermeture */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Contenu du popup */
.popup-content {
    padding: 40px 30px 30px;
    text-align: center;
    color: white;
}

.popup-icon {
    font-size: 50px;
    margin-bottom: 20px;
    display: block;
}

.popup-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.popup-subtitle {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.5;
}

/* Formulaire */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    box-sizing: border-box;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.form-input::placeholder {
    color: #666;
}

.submit-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* Avantages */
.benefits {
    margin-top: 20px;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.benefit-item::before {
    content: "✓";
    /* color: #4ecdc4 !important; */
    color: white !important;
    font-weight: bold;
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 500px) {
    .newsletter-overlay {
        padding-top: 40px; /* Moins d'espacement sur mobile */
    }
    
    .newsletter-popup {
        margin: 20px;
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        transform: translate(0, -20px); /* Moins de décalage sur mobile */
    }
    
    .popup-content {
        padding: 30px 20px 20px;
    }
    
    .popup-title {
        font-size: 24px;
    }
    
    @keyframes popupSlide {
        from {
            transform: translate(0, -70px);
            opacity: 0;
        }
        to {
            transform: translate(0, -20px);
            opacity: 1;
        }
    }
}

/* Assurer que le body n'affecte pas le popup */
body.popup-open {
    overflow: hidden;
}