/* ============================================
   WAB. — Formulaire de la fenêtre de contact
   La même grammaire que partout : une clé en petites capitales, puis
   une ligne à remplir fermée par un filet ; les clés à l'encre.
   ============================================ */

.contact-form {
    margin-top: clamp(26px, 4vw, 36px);
}

.contact-field + .contact-field,
.contact-form__row + .contact-field {
    margin-top: clamp(20px, 3vw, 26px);
}

/* Nom et email côte à côte dès qu'il y a la place : la fenêtre gagne
   une ligne sans rien serrer. */
.contact-form__row {
    display: grid;
    gap: clamp(20px, 3vw, 26px) 24px;
}

.contact-form__row > .contact-field + .contact-field {
    margin-top: 0;
}

@media (min-width: 600px) {
    .contact-form__row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

/* ── Choix en un clic ──
   De vraies cases, invisibles, sous des pastilles : le clavier et
   les lecteurs d'écran les manient comme n'importe quel formulaire. */
.contact-choices {
    min-width: 0;
    margin-inline: 0;
    padding: 0;
    border: 0;
}

.contact-choices__list {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.contact-choice__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.contact-choice {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    box-shadow: inset 0 0 0 1px rgba(11, 11, 12, 0.2);
    font-size: 0.92rem;
    line-height: 1.2;
    color: var(--ink);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
        box-shadow 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}

@media (hover: hover) {
    .contact-choice:hover {
        box-shadow: inset 0 0 0 1px rgba(11, 11, 12, 0.5);
    }
}

.contact-choice:active {
    transform: scale(0.97);
}

.contact-choice__input:checked + .contact-choice {
    background: var(--ink);
    color: var(--white);
    box-shadow: inset 0 0 0 1px var(--ink);
}

.contact-choice__input:focus-visible + .contact-choice {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.contact-field__label {
    display: block;
    font-size: 11px;
    font-weight: var(--w-strong);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
}

/* L'astérisque (Klein) n'est qu'un signe : required porte l'info. */
.contact-field__req {
    margin-left: 1px;
    font-size: 13px;
    letter-spacing: 0;
    color: var(--klein-text);
}

/* 16 px minimum : en dessous, Safari iOS zoome sur le champ. */
.contact-field__input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: inset 0 -1px 0 var(--line);
    font-family: inherit;
    font-size: clamp(1rem, 1.4vw, 1.075rem);
    color: var(--ink);
    transition: box-shadow 0.25s var(--ease-out);
}

.contact-field__input--area {
    min-height: 104px;
    resize: vertical;
    line-height: 1.55;
}

.contact-field__input::placeholder {
    color: var(--ink-muted);
    opacity: 0.6;
}

/* Le trait s'épaissit et passe à l'encre : le champ actif se repère
   sans que rien ne bouge autour. */
.contact-field__input:focus {
    outline: none;
    box-shadow: inset 0 -2px 0 var(--ink);
}

.contact-field.has-error .contact-field__input {
    box-shadow: inset 0 -2px 0 #b3122e;
}

.contact-field__error {
    display: none;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #b3122e;
}

.contact-field.has-error .contact-field__error {
    display: block;
}

/* ── Envoi ── */
.contact-form__submit {
    width: 100%;
    margin-top: clamp(26px, 4vw, 34px);
}

.contact-form__submit:disabled {
    opacity: 0.6;
    cursor: progress;
    transform: none;
    box-shadow: none;
}

.contact-form__status {
    margin-top: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ink-muted);
}

.contact-form__status:empty {
    display: none;
}

.contact-form__status.is-error {
    color: #b3122e;
}

/* Le piège anti-spam ne doit être vu ni atteint par personne, mais
   rester rempli par les robots : il est sorti du champ, pas masqué. */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
