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

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

body {
    margin: 0;
    min-height: 100%;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

/* Titres, textes et listes */
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
    margin: 0;
}

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

/* Médias */
img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    max-width: 100%;
    height: auto;
}

svg {
    vertical-align: middle;
    fill: currentColor;
}

/* Tableaux */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Formulaires et boutons */
button, input, select, textarea {
    font: inherit;
    color: inherit;
    margin: 0;
}

textarea {
    resize: vertical;
}

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

/* Liens */
a {
    color: inherit;
    text-decoration: none;
}

/* Code */
pre, code, kbd, samp {
    font: 1em/1.5 monospace, monospace;
}

/* Divers */
*, *::before, *::after {
    min-width: 0;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

abbr[title] {
    text-decoration: underline dotted;
}

sub, sup {
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

/* Accessibilité et confort */
:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

::selection {
    background: rgba(0, 0, 0, 0.1);
}

/* Réduit les animations pour les utilisateurs sensibles */
@media (prefers-reduced-motion: reduce) {
    *:not([data-allow-motion]) {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}