.modal-backdrop {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.75); /* Fond noir avec 75% d'opacité */
}
.modal-content {
    transform: translateY(-100px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1; /* Assure que le contenu est au-dessus du fond */
}
.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}
.modal-backdrop.show .modal-content {
    transform: translateY(0);
}

/* Styles pour la modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    max-width: 32rem;
    width: 100%;
    margin: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.modal.show .modal-content {
    transform: scale(1);
}

/* Styles pour les inputs */
.modal input[type="email"],
#newsletter-form input[type="email"] {
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease-in-out;
}

.modal input[type="email"]:focus,
#newsletter-form input[type="email"]:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 1px #4f46e5;
}

.modal input[type="email"].error,
#newsletter-form input[type="email"].error {
    border-color: #ef4444;
    box-shadow: 0 0 0 1px #ef4444;
}
