/**
 * Reset CSS moderne
 *
 * Base neutre chargée avant tout le reste (tokens, layout, composants, pages).
 * Objectif : partir d'un rendu cohérent entre navigateurs, sans imposer
 * de style visuel — les couleurs/typographies viennent de token.css.
 *
 * Inspiré des resets modernes usuels (Josh W. Comeau / Andy Bell),
 * adapté aux besoins du thème MSF.
 */

@charset "UTF-8";

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

* {
    margin: 0;
    padding: 0;
}

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

body {
    min-height: 100dvh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

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

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

a {
    color: inherit;
}

ul,
ol {
    list-style: none;
}

table {
    border-collapse: collapse;
}

:target {
    scroll-margin-block: 2rem;
}

label,
dd {
    color: var(--on-surface);
}
#table,
#table tr,
#table td,
#table th {
    color: var(--on-surface);
    border: 1px solid var(--on-surface);
}

/*
 * Utilitaire d'accessibilité : masque visuellement un texte tout en le
 * laissant disponible pour les lecteurs d'écran et l'indexation.
 * Remonté ici depuis assets/css/pages/formations.css : il est aussi utilisé
 * par les pages single (training / skill).
 */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@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;
    }
}