/* Maeva Boujot — design system (refonte 2026). Source : maquette, porté tel quel. */

/* ============================ 2. RESET & BASE =========================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    /* stylelint-disable-next-line property-no-vendor-prefix -- iOS Safari n'accepte que la version préfixée */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

svg {
    flex: none;
}

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

button {
    cursor: pointer;
}

a {
    color: var(--forest);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--forest-dark);
}

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

hr {
    border: 0;
    border-top: 1px solid var(--sand);
    margin: var(--space-l) 0;
}

/* Lien d'évitement — absent du site actuel */
.skip-link {
    position: absolute;
    left: 0.5rem;
    top: -100%;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background: var(--forest);
    color: var(--white);
    border-radius: var(--radius-m);
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: 0.5rem;
    color: var(--white);
}

/* ============================ 3. TYPOGRAPHIE =========================== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-title);
    font-weight: 600;
    line-height: 1.15;
    color: var(--forest-dark);
    margin: 0 0 var(--space-s);
    text-wrap: balance;
}

h1 {
    font-size: var(--step-5);
    letter-spacing: -0.015em;
}

h2 {
    font-size: var(--step-4);
    letter-spacing: -0.01em;
}

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

h4 {
    font-size: var(--step-1);
    font-family: var(--font-body);
    font-weight: 600;
}

p {
    margin: 0 0 var(--space-s);
    text-wrap: pretty;
}

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

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: var(--space-xs);
}

.lede {
    font-size: var(--step-1);
    line-height: 1.6;
    color: var(--muted);
    max-width: 60ch;
}

.prose > * + * {
    margin-top: var(--space-s);
}

.prose h2 {
    margin-top: var(--space-l);
}

.prose h3 {
    margin-top: var(--space-m);
}

.prose ul,
.prose ol {
    padding-left: 1.25rem;
    margin: 0 0 var(--space-s);
}

.prose li + li {
    margin-top: 0.4rem;
}

.prose strong {
    color: var(--forest-dark);
}

blockquote {
    margin: var(--space-l) 0;
    padding: var(--space-m) var(--space-l);
    border-left: 4px solid var(--terracotta-soft);
    background: var(--white);
    border-radius: 0 var(--radius-m) var(--radius-m) 0;
    font-family: var(--font-title);
    font-size: var(--step-1);
    color: var(--forest-dark);
}

blockquote p {
    margin: 0;
}
