/* Reset, typographie, mise en page de base. Les couleurs viennent de tokens.css. */

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/montserrat-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
}

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

[hidden] {
    display: none !important;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.55;
    overflow-x: hidden;
}

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

img {
    height: auto;
}

a {
    color: var(--accent-strong);
}

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

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 var(--s-3);
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.1rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2rem);
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0 0 var(--s-4);
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: var(--s-5) 0;
}

/* Icônes du sprite public/images/sprite.svg */
.icon {
    width: 1.15em;
    height: 1.15em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
    vertical-align: -0.2em;
}

/* Mise en page */
.container {
    width: 100%;
    max-width: var(--content-max);
    margin-inline: auto;
}

.grid {
    display: grid;
    gap: var(--s-4);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--grid-min, 260px)), 1fr));
}

.stack > * + * {
    margin-top: var(--stack-gap, var(--s-4));
}

.cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-3);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--muted);
}

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

.crumb {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

.page-title {
    margin-bottom: var(--s-5);
}

.page-title h1 {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin: var(--s-2) 0 var(--s-2);
}

.lead {
    color: var(--muted);
    max-width: 60ch;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
