/* Formulaires Faciles — Frontend CSS */

.ff-form-wrap { max-width: 680px; margin: 0 auto; }

.ff-field { margin-bottom: 18px; }

.ff-label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.ff-required { color: #c0392b; }

.ff-input,
.ff-textarea,
.ff-select {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    background: #fff;
}

.ff-input:focus,
.ff-textarea:focus,
.ff-select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34,113,177,.12);
}

.ff-textarea { resize: vertical; min-height: 120px; }

.ff-checkboxes,
.ff-radios { display: flex; flex-direction: column; gap: 8px; }

.ff-check-label,
.ff-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.ff-acceptance-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    line-height: 1.5;
}

.ff-file { font-size: 14px; }

.ff-error {
    display: block;
    color: #c0392b;
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

.ff-submit-wrap { margin-top: 24px; }

.ff-submit {
    padding: 10px 28px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.ff-submit:hover { background: #135e96; }
.ff-submit:disabled { background: #999; cursor: not-allowed; }

.ff-response {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.ff-response.ff-ok    { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.ff-response.ff-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Champ en erreur */
.ff-field.has-error .ff-input,
.ff-field.has-error .ff-textarea,
.ff-field.has-error .ff-select {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

/* ---- Logo bas de formulaire ---- */
.ff-form-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.ff-footer-logo-link { display: inline-block; }

.ff-footer-logo {
    max-width: 180px;
    height: auto;
    opacity: .85;
    transition: opacity .2s;
}

.ff-footer-logo:hover { opacity: 1; }
