/**
 * Reset CSS minimal — on ne réinitialise que ce qui gêne réellement,
 * pas de reset agressif type "normalize" complet (inutile ici).
 */

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

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

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

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

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

button {
    cursor: pointer;
}

/*
 * L'attribut hidden doit toujours gagner, même face à des règles comme .btn{display:flex}
 * qui ont la même spécificité : sans ce !important, l'élément resterait visible.
 */
[hidden] {
    display: none !important;
}

ul, ol {
    list-style: none;
}

/* Accessibilité : rend visible le focus clavier (navigation au clavier — WCAG) */
:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
}

/* Lien d'évitement pour lecteurs d'écran / navigation clavier */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-secondary);
    color: var(--color-bg);
    padding: 0.75rem 1.5rem;
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}
