/**
 * Newsletter Subscription Styles
 */

.newsletter-section {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.newsletter-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

#newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

#newsletter-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#newsletter-form input[type="email"]:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

#newsletter-form button {
    padding: 15px 35px;
    background: white;
    color: #2563eb;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#newsletter-form button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#newsletter-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.newsletter-message {
    margin-top: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    display: none;
    animation: slideDown 0.3s ease;
}

.newsletter-message.success {
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid rgba(16, 185, 129, 0.5);
}

.newsletter-message.error {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.5);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 40px 20px;
    }
    
    .newsletter-section h2 {
        font-size: 1.8rem;
    }
    
    .newsletter-section p {
        font-size: 1rem;
    }
    
    #newsletter-form {
        flex-direction: column;
        gap: 15px;
    }
    
    #newsletter-form input[type="email"],
    #newsletter-form button {
        width: 100%;
        min-width: auto;
    }
    
    #newsletter-form button {
        justify-content: center;
    }
}

/* Newsletter Widget (pour footer ou sidebar) */
.newsletter-widget {
    background: #f9fafb;
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
}

.newsletter-widget h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1f2937;
}

.newsletter-widget p {
    color: #6b7280;
    margin-bottom: 20px;
}

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

.newsletter-widget #newsletter-form input[type="email"],
.newsletter-widget #newsletter-form button {
    width: 100%;
    border-radius: 10px;
}

.newsletter-widget #newsletter-form button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    justify-content: center;
}