/* Newsletter Box - Bas de page */
.newsletter-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e1e4e8;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

}

@keyframes mac-bounce {
    0% {
        transform: translateY(100%) scale(0.8);
        opacity: 0;
    }

    40% {
        transform: translateY(-20px) scale(1.05);
        opacity: 1;
    }

    60% {
        transform: translateY(10px) scale(0.95);
    }

    80% {
        transform: translateY(-5px) scale(1.02);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.mac-bounce {
    animation: mac-bounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.newsletter-content {
    padding: 25px;
    position: relative;
}

.newsletter-text h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #1a202c;
    font-weight: 700;
    line-height: 1.3;
}

.newsletter-text p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-form input:focus {
    border-color: #3182ce;
}

.newsletter-form button {
    background: #3182ce;
    /* Bleu attractif */
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: #2b6cb0;
}

.newsletter-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #a0aec0;
    cursor: pointer;
    line-height: 1;
}

.newsletter-close:hover {
    color: #718096;
}

#newsletter-message {
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
    color: #2f855a;
    /* Vert succès */
}

.newsletter-text {
    display: none;
    /* Caché par défaut, JS active le bon */
}

.newsletter-text.active {
    display: block;
}

/* Mobile */
@media (max-width: 480px) {
    .newsletter-box {
        left: 20px;
        right: 20px;
        width: auto;
        bottom: 10px;
    }
}