/**
 * Styles pour Brevo Newsletter Plugin
 * Version: 1.0.0
 */

/* ==========================================================================
   Conteneur principal
   ========================================================================== */

.bnp-form-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

.bnp-form-container *,
.bnp-form-container *::before,
.bnp-form-container *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   Formulaire Popup
   ========================================================================== */

.bnp-form-popup {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bnp-form-popup .bnp-form-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.3;
}

.bnp-form-popup .bnp-form-description {
    margin: 0 0 25px 0;
    font-size: 16px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

/* ==========================================================================
   Formulaire Footer
   ========================================================================== */

.bnp-form-footer {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.bnp-form-footer .bnp-form-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.bnp-form-footer .bnp-form-description {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* ==========================================================================
   Formulaire
   ========================================================================== */

.bnp-form {
    width: 100%;
}

.bnp-form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.bnp-form-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.bnp-form-input:focus {
    background-color: #ffffff;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.bnp-form-input::placeholder {
    color: #adb5bd;
}

.bnp-form-submit {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    outline: none;
}

.bnp-form-submit:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.bnp-form-submit:active {
    transform: translateY(0);
}

.bnp-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Styles spécifiques pour les formulaires popup */
.bnp-form-popup .bnp-form-group {
    flex-direction: column;
    align-items: center;
}

.bnp-form-popup .bnp-form-input {
    width: 100%;
}

.bnp-form-popup .bnp-form-submit {
    width: 100%;
    max-width: 250px;
    background: #bf5e64;
    color: #ffffff;
}

.bnp-form-popup .bnp-form-submit:hover {
    background: #C69C70;
    box-shadow: 0 4px 12px rgba(191, 94, 100, 0.3);
}

/* États du bouton */
.bnp-form.bnp-loading .bnp-submit-text {
    display: none;
}

.bnp-form.bnp-loading .bnp-submit-loading {
    display: inline-block !important;
}

/* ==========================================================================
   Honeypot (champ caché anti-spam)
   ========================================================================== */

.bnp-honeypot {
    display: none !important;
    visibility: hidden !important;
}

.bnp-honeypot input,
.bnp-honeypot label {
    display: none !important;
    visibility: hidden !important;
}

/* ==========================================================================
   Messages
   ========================================================================== */

.bnp-form-messages {
    margin-top: 15px;
}

.bnp-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.bnp-message:last-child {
    margin-bottom: 0;
}

.bnp-message-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.bnp-message-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Animation d'apparition des messages */
@keyframes bnpFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bnp-message[style*="display: block"],
.bnp-message[style*="display:block"] {
    animation: bnpFadeIn 0.3s ease;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .bnp-form-popup {
        padding: 20px;
    }

    .bnp-form-popup .bnp-form-title {
        font-size: 20px;
    }

    .bnp-form-popup .bnp-form-description {
        font-size: 14px;
    }

    .bnp-form-group {
        flex-direction: column;
    }

    .bnp-form-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bnp-form-popup {
        padding: 15px;
    }

    .bnp-form-input,
    .bnp-form-submit {
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* ==========================================================================
   Badge Google reCAPTCHA (le rendre plus discret)
   ========================================================================== */

.grecaptcha-badge {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.grecaptcha-badge:hover {
    opacity: 1;
}

/* ==========================================================================
   Accessibilité
   ========================================================================== */

.bnp-form-input:focus-visible,
.bnp-form-submit:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    .bnp-form-popup {
        background: #2d2d2d;
        color: #f0f0f0;
    }

    .bnp-form-popup .bnp-form-title {
        color: #f0f0f0;
    }

    .bnp-form-popup .bnp-form-description {
        color: #b0b0b0;
    }

    .bnp-form-input {
        background-color: #1a1a1a;
        border-color: #3d3d3d;
        color: #f0f0f0;
    }

    .bnp-form-input:focus {
        background-color: #242424;
        border-color: #007bff;
    }

    .bnp-form-input::placeholder {
        color: #6c6c6c;
    }
}

