/* ==========================================================================
   Styles personnalises du clone France Fenetres.
   Surcharges et composants ajoutes manuellement (hors thème scrappé).
   ========================================================================== */

/* --- Bannières de retour des formulaires --------------------------------- */
.ff-form-alert {
    margin: 0 0 25px;
    padding: 16px 20px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
}

.ff-form-alert--success {
    color: #1b5e20;
    background: #e7f5e9;
    border: 1px solid #b6dfbb;
}

.ff-form-alert--error {
    color: #8a1c1c;
    background: #fdecec;
    border: 1px solid #f3c2c2;
}

.ff-form-alert strong {
    display: block;
    margin-bottom: 6px;
}

.ff-form-alert ul {
    margin: 0;
    padding-left: 20px;
}

/* --- Validation JS des champs (navigation multi-pages) ------------------- */
.ff-field-invalid input,
.ff-field-invalid textarea,
.ff-field-invalid select {
    border-color: #e2001a !important;
    box-shadow: 0 0 0 1px #e2001a;
}

.ff-field-error {
    margin-top: 6px;
    color: #e2001a;
    font-size: 13px;
    font-weight: 600;
}

/* --- Upload de fichiers (dropzone) -------------------------------------- */
.wpforms-uploader.ff-dragover {
    outline: 2px dashed #027582;
    outline-offset: 4px;
    background: rgba(2, 117, 130, 0.05);
}

.ff-file-list {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.ff-file-list .ff-file-error {
    color: #e2001a;
    font-weight: 600;
}

/* --- Google reCAPTCHA v3 ------------------------------------------------- */
/* Pastille en bas a droite, decalee hors ecran (comme les boutons contact).
   Au survol, elle glisse pour s'afficher en entier. Z-index au-dessus des
   widgets flottants (z-index: 10). */
.grecaptcha-badge {
    z-index: 2147483647 !important;
    bottom: 14px !important;
    left: auto !important;
    right: -206px !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: right 0.2s ease-out !important;
}

.grecaptcha-badge:hover {
    right: 14px !important;
}
