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

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
}

h1,
h2,
h3 {
    margin: 0 0 var(--space-3);
    line-height: 1.25;
}

h1 { font-size: 1.5rem; }
/* Un titre de section respire au-dessus de lui et porte un filet inférieur, sauf en tête de bloc. */
h2 { font-size: 1.25rem; margin-top: var(--space-5); padding-bottom: var(--space-2); border-bottom: var(--border); }
h2:first-child { margin-top: 0; }
h3 { font-size: var(--font-size-large); }

p { margin: 0 0 var(--space-3); }
small, .text-small { font-size: var(--font-size-small); }
.text-muted { color: var(--color-text-muted); }
code { font-size: 0.9em; }

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover { text-decoration: underline; }

:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

.octicon {
    flex: none;
    vertical-align: text-bottom;
}

.lead {
    color: var(--color-text-muted);
    font-size: var(--font-size-large);
}

/* Chiffres alignés (compteurs de congés, tableaux de nombres) */
.tabular-nums { font-variant-numeric: tabular-nums; }

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

.skip-link {
    position: absolute;
    left: var(--space-2);
    top: -4rem;
    padding: var(--space-2) var(--space-3);
    background: var(--color-bg);
    border: var(--border);
    border-radius: var(--radius);
    z-index: 100;
}

.skip-link:focus { top: var(--space-2); }
