/* Reset et typographie de base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--fond);
    color: var(--texte);
    font-family: var(--police);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.02;
    text-wrap: balance;
}

p {
    margin: 0;
}

a {
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 3px solid var(--vert);
    outline-offset: 2px;
    border-radius: 6px;
}

.sur-sombre :focus-visible,
.pied :focus-visible {
    outline-color: var(--citron);
}

.visuellement-cache {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.lien-evitement {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    background: var(--vert);
    color: var(--fond);
    padding: 10px 16px;
    border-radius: var(--rayon-pilule);
    font-weight: 600;
    text-decoration: none;
}

.lien-evitement:focus {
    top: 16px;
}

.conteneur,
.page {
    width: 100%;
    max-width: var(--largeur);
    margin-inline: auto;
    padding-inline: var(--gouttiere);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
