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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Filet de sécurité : jamais de défilement horizontal, même si un élément décoratif (lueur, image du hero agrandie)
       dépasse de l'écran. « clip » ne crée pas de zone de défilement : les éléments « sticky » continuent de fonctionner. */
    overflow-x: clip;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3,
p {
    margin: 0;
}

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

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

.skip-link {
    position: absolute;
    left: var(--space-4);
    top: -100px;
    z-index: 100;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--on-accent);
}
.skip-link:focus {
    top: var(--space-4);
}

/* Styles typographiques */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.title-xl {
    font-family: var(--font-display);
    font-size: clamp(64px, 12.2vw, 176px);
    line-height: 0.88;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.title-lg {
    font-family: var(--font-display);
    font-size: clamp(36px, 4.6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.title-md {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    line-height: 1.2;
}

.lead {
    font-size: clamp(18px, 1.6vw, 22px);
    color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Lenis (défilement fluide) */
html.lenis,
html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
    overflow: hidden;
}
