/* Version 1.0 — 29/09/2026 — Base : remise à zéro, typographie, focus visible */

/* ///////////////////////////
   //// REMISE À ZÉRO
   /////////////////////////// */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: var(--taille-racine);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
p,
ul,
ol,
figure {
    margin: 0;
}

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

/* ///////////////////////////
   //// TYPOGRAPHIE
   /////////////////////////// */
body {
    font-family: var(--police-texte);
    font-size: var(--taille-texte);
    font-weight: var(--graisse-normale);
    line-height: var(--interligne-texte);
    color: var(--couleur-texte);
    background-color: var(--couleur-fond);
}

h1,
h2,
h3 {
    font-family: var(--police-titre);
    font-weight: var(--graisse-forte);
    line-height: var(--interligne-titre);
}

h1 {
    font-size: var(--taille-titre-1);
}

h2 {
    font-size: var(--taille-titre-2);
}

a {
    color: var(--couleur-accent);
    text-underline-offset: var(--decalage-soulignement);
}

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

/* ///////////////////////////
   //// FOCUS VISIBLE (navigation au clavier)
   /////////////////////////// */
:focus-visible {
    outline: var(--epaisseur-focus) solid var(--couleur-focus);
    outline-offset: var(--decalage-focus);
}

/* ///////////////////////////
   //// MOUVEMENTS RÉDUITS (préférence de l'utilisateur)
   /////////////////////////// */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
