@import "tokens-gi3IRHO.css";

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--body);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

h1,
h2,
h3 {
    color: var(--head);
    font-family: var(--font-head);
    line-height: 1.15;
}

a {
    color: var(--violet);
}

:focus-visible {
    outline: 3px solid var(--violet-light);
    outline-offset: 2px;
}

/* Les formulaires, y compris ceux d'Identity que le thème n'a pas à connaître : ils lisent les jetons. */
input:not([type='checkbox'], [type='radio'], [type='hidden']),
select,
textarea {
    width: 100%;
    max-width: 28rem;
    padding: .65rem .8rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    color: var(--head);
    font: inherit;
}

button,
.button {
    display: inline-block;
    padding: .7rem 1.3rem;
    border: 0;
    border-radius: 12px;
    background: var(--gradient);
    color: var(--on-violet);
    font-family: var(--font-head);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

/* Lisibilité des messages. `.flash` et `.form-error` sont disjoints : les tests de formulaire ne portent que sur le second. */
.flash {
    padding: .6rem .9rem;
    border-radius: 8px;
    border: 1px solid;
}

.flash-error {
    color: #82071e;
    background-color: #ffebe9;
    border-color: #ff818266;
}

.flash-success {
    color: #0a3622;
    background-color: #dafbe1;
    border-color: #2da44e66;
}

.form-error,
.error-message {
    color: #c0213d;
}

footer[data-legal] {
    max-width: var(--maxw);
    margin: 3rem auto 0;
    padding: 1.5rem 28px 2.5rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .9rem;
}

footer[data-legal] ul {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
