/* =========================================================================
   reset.css — Réinitialisation légère et moderne
   ========================================================================= */

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

* {
    margin: 0;
    padding: 0;
}

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

body {
    /* 100dvh = hauteur dynamique réelle sur mobile (la barre
       d'adresse est décomptée) ; évite la bande vide scrollable
       sous le footer. Repli 100vh pour navigateurs anciens. */
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

img {
    height: auto;
}

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

button {
    background: none;
    border: none;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-weight: 400;
    line-height: 1.15;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

address {
    font-style: normal;
}

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

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
