/* Reset minimal et bases typographiques de l'application. */

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

body {
    margin: 0;
    background-color: var(--rb-bg-base);
    color: var(--rb-text-primary);
    font-family: var(--rb-font-sans);
    font-size: 13px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--rb-text-heading);
    line-height: 1.2;
}

a {
    color: var(--rb-accent-cyan);
}

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

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

/* Focus toujours visible — jamais d'outline supprimé sans remplacement (RGAA). */
:focus-visible {
    outline: 2px solid var(--rb-accent-cyan);
    outline-offset: 2px;
}

/* Réservé aux libellés destinés aux seules technologies d'assistance. */
.rb-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Neutralisation globale du mouvement (frontend-quality.md). */
@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;
    }
}
