/* Formulaire de contact : habille le HTML des champs de Runique
   (.form-group, .form-label, .form-control), libellé au-dessus du champ. */

#form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--carte);
    border: 2px solid var(--trait);
    box-shadow: var(--ombre);
}

#form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
}

#form .form-label {
    color: var(--encre);
}

#form .form-control {
    width: 100%;
    min-width: 0;
    background: var(--papier);
}

#form textarea.form-control {
    min-height: 11rem;
    resize: vertical;
}

#form .form-control:focus {
    border-color: var(--rouille);
    outline: none;
    box-shadow: 3px 3px 0 var(--rouille);
}

#form .is-invalid {
    border-color: var(--erreur);
}

#form .invalid-feedback {
    color: var(--erreur);
    font-size: 0.85rem;
}

#form button {
    align-self: flex-start;
    padding: 0.7rem 1.6rem;
    background: var(--rouille);
    border: 2px solid var(--trait);
    border-radius: 0;
    box-shadow: var(--ombre);
    color: var(--sur-rouille);
    font-family: var(--titre);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

#form button:hover {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--trait);
}

@media (max-width: 30em) {
    #form form {
        padding: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #form button {
        transition: none;
    }

    #form button:hover {
        transform: none;
    }
}
