/* Formulaires Contact et Devis (assets/js/forms.js) */

.form-layout { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .form-layout { grid-template-columns: 0.8fr 1.4fr; gap: 72px; } .contact-aside { position: sticky; top: calc(var(--header-h) + 32px); } }

.form-card { padding: 28px 20px; background: var(--paper); border-radius: 8px; }
@media (min-width: 640px) { .form-card { padding: 40px; } }
.form-card h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.form-hint { margin-top: 6px; font-size: 14px; color: var(--muted); }
.form-card > .form-hint:last-child { margin-top: 16px; }
.form-card fieldset { margin: 28px 0 0; padding: 0; border: 0; }
.form-card legend { margin-bottom: 14px; padding: 0; font-family: var(--mono); font-size: 13px; text-transform: lowercase; color: var(--brand-text); }
.form-card legend::after { content: "_"; color: var(--brand); }
.form-card > .form-grid { margin-top: 24px; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field--full { grid-column: 1 / -1; }

.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input:not([type="checkbox"]), .field select, .field textarea {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #cfc4b6;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    font-size: 16px;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2318212e' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field input[type="file"] { padding: 10px; font-size: 14px; }
.field input::placeholder, .field textarea::placeholder { color: #8a8f99; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(242, 140, 27, .35); }
.field [aria-invalid="true"] { border-color: #b42318 !important; }
.field__error { margin-top: 6px; font-size: 14px; font-weight: 500; color: #b42318; }
.field__error:empty { display: none; }
.field__hint { margin-top: 6px; font-size: 13px; color: var(--muted); }
.field--check { display: grid; grid-template-columns: 22px 1fr; gap: 4px 12px; margin-top: 28px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.field--check label { margin: 0; font-weight: 400; font-size: 14px; color: var(--ink-2); }
.field--check .field__error { grid-column: 2; }

.form-alert { margin-top: 24px; padding: 14px 16px; border-radius: var(--radius); font-size: 15px; line-height: 1.5; }
.form-alert:empty { display: none; }
.form-alert--ok { background: #e7f5ec; color: #14532d; border: 1px solid #a7d7b8; }
.form-alert--err { background: #fdecea; color: #8a1c12; border: 1px solid #f2b8b0; }
.form-alert:focus { outline: none; }
.btn-block { width: 100%; margin-top: 24px; }

/* Colonne d'information */
.contact-whatsapp {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 8px;
    background: var(--navy);
    color: var(--white);
}
.contact-whatsapp .icon { width: 28px; height: 28px; color: #4ade80; }
.contact-whatsapp strong { display: block; font-size: 17px; }
.contact-whatsapp small { color: var(--on-dark-muted); font-size: 14px; }
.contact-whatsapp:hover { background: var(--night); }
.contact-list { margin: 28px 0; border-top: 1px solid var(--line); }
.contact-list > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.contact-list dt .icon { width: 15px; height: 15px; }
.contact-list dd a { display: inline-block; padding: 4px 0; }
.contact-list dd { margin-top: 4px; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--brand-text); }
.aside-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.next-steps { margin: 20px 0 28px; counter-reset: next; display: grid; gap: 16px; }
.next-steps li { position: relative; padding-left: 40px; color: var(--ink-2); }
.next-steps li::before { counter-increment: next; content: counter(next, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-family: var(--mono); font-size: 13px; color: var(--brand-text); }
.next-steps strong { color: var(--ink); }
.contact-note { display: block; margin-top: 6px; font-size: 15px; font-weight: 400; color: var(--muted); }
