/* REM Live · base : remise à zéro, typographie, liens, focus, accessibilité. */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--entete-h) + var(--e-4));
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--fond-doux);
    color: var(--texte);
    font-family: var(--police);
    font-size: var(--t-base);
    line-height: var(--interligne);
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    line-height: var(--interligne-titre);
    letter-spacing: var(--approche-titre);
    font-weight: 600;
    text-wrap: balance;
}

h1 {
    font-size: var(--t-2xl);
}

h2 {
    font-size: var(--t-xl);
}

h3 {
    font-size: var(--t-lg);
}

h4 {
    font-size: var(--t-md);
}

p {
    margin: 0;
    text-wrap: pretty;
}

a {
    color: var(--action);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

a:hover {
    color: var(--action-survol);
}

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

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

code,
kbd,
pre {
    font-family: var(--police-mono);
    font-size: 0.92em;
}

::selection {
    background: var(--action-doux);
    color: var(--texte);
}

:focus-visible {
    outline: 2px solid var(--action);
    outline-offset: 2px;
    border-radius: var(--r-xs);
}

.chiffres {
    font-variant-numeric: tabular-nums;
}

.icone {
    width: 18px;
    height: 18px;
    flex: none;
}

.icone--petite {
    width: 16px;
    height: 16px;
}

.icone--grande {
    width: 22px;
    height: 22px;
}

.visuellement-cache {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.evitement {
    position: absolute;
    left: var(--e-4);
    top: -80px;
    z-index: 100;
    padding: var(--e-2) var(--e-4);
    border-radius: var(--r-sm);
    background: var(--texte);
    color: var(--fond);
    text-decoration: none;
    font-weight: 600;
}

.evitement:focus {
    top: var(--e-4);
}

.insecable {
    white-space: nowrap;
}

.surtitre {
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--texte-2);
}

.secondaire {
    color: var(--texte-2);
}

/* Mouvement réduit : les animations vont directement à leur état final. */
@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;
    }
}
