/* base.css — socle commun à tous les sites Ulanaweb.
   Remise à zéro légère, typographie lisible, focus visibles, mouvement réduit.
   Rien d'autre : le design de chaque site s'écrit à la main dans site.css. */

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

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
    margin-top: 0;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    text-wrap: balance;
}

p, li {
    max-width: 70ch;
}

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

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

a {
    color: inherit;
    text-underline-offset: 0.18em;
}

/* Focus toujours visible au clavier. */
:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

/* Lien d'évitement : invisible jusqu'à ce qu'il reçoive le focus. */
.evitement {
    position: absolute;
    left: 1rem;
    top: -10rem;
    padding: 0.5rem 1rem;
    background: #fff;
    color: #000;
    z-index: 100;
}

.evitement:focus {
    top: 1rem;
}

/* Respecte la préférence « réduire les animations » du système. */
@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;
    }
}
