/*
 * Base — polices, remise à zéro, typographie, accessibilité.
 */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..600&family=Inter:wght@300..700&display=swap");

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.65;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.6em;
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.018em;
    text-wrap: balance;
}

h1 {
    font-size: var(--step-5);
}

h2 {
    font-size: var(--step-4);
}

h3 {
    font-size: var(--step-2);
    line-height: 1.15;
}

h4 {
    font-size: var(--step-1);
    line-height: 1.25;
}

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

p:last-child {
    margin-bottom: 0;
}

p,
li {
    max-width: var(--measure);
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

a:hover {
    text-decoration-color: var(--clay);
}

strong {
    font-weight: 600;
}

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

img {
    height: auto;
}

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

button {
    cursor: pointer;
}

ul,
ol {
    margin: 0 0 1em;
    padding-left: 1.15em;
}

::selection {
    background: var(--forest);
    color: var(--sand);
}

:focus-visible {
    outline: 3px solid var(--clay);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---- Utilitaires de mise en page ---- */

.container {
    width: min(100% - (2 * var(--gutter)), var(--container));
    margin-inline: auto;
}

.container--narrow {
    width: min(100% - (2 * var(--gutter)), 820px);
}

.measure {
    max-width: var(--measure);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 var(--space-3);
    color: var(--moss);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 1px;
    background: currentColor;
    opacity: 0.65;
}

.lead {
    font-size: var(--step-1);
    line-height: 1.55;
    color: var(--ink-soft);
}

.display {
    font-family: var(--font-display);
}

.italic {
    font-style: italic;
}

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

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 200;
    padding: 0.85rem 1.25rem;
    background: var(--forest);
    color: var(--sand);
    text-decoration: none;
    transform: translateY(-120%);
    transition: transform 0.2s var(--ease);
}

.skip-link:focus {
    transform: translateY(0);
}

/* Les champs libres peuvent contenir des URL très longues. */
input,
textarea {
    overflow-wrap: anywhere;
}

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