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

[hidden] {
    display: none !important;
}

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

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--fond);
    color: var(--encre);
    font: var(--taille-m) / var(--interligne) var(--police-texte);
}

h1,
h2,
h3 {
    font-family: var(--police-titre);
    line-height: 1.2;
    margin: 0 0 var(--espace-4);
}

p {
    margin: 0 0 var(--espace-4);
}

a {
    color: var(--accent);
    text-underline-offset: 0.15em;
}

a:hover {
    color: var(--accent-survol);
}

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

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

.fa-solid {
    flex: none;
    width: 1.25em;
    text-align: center;
}

/* Texte réservé aux lecteurs d'écran (libellé d'une icône seule). */
.visuellement-masque {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.lien-evitement {
    position: absolute;
    left: var(--espace-4);
    top: -100vh;
    padding: var(--espace-2) var(--espace-4);
    background: var(--accent);
    color: var(--sur-accent);
    border-radius: var(--rayon);
    z-index: 10;
}

.lien-evitement:focus {
    top: var(--espace-4);
    color: var(--sur-accent);
}

.principal {
    flex: 1;
    width: 100%;
    max-width: var(--largeur-contenu);
    margin: 0 auto;
    padding: var(--espace-12) var(--espace-4);
}

.principal:focus {
    outline: none;
}
