/* ==========================================================================
   BASE — reset moderne + comportements globaux
   ========================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
/* Lenis gère le smooth scroll : on coupe le natif quand Lenis est actif */
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

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

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

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

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

::selection {
  background: var(--c-gold);
  color: var(--c-white);
}

/* --- Layout helpers ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }
.container--text { max-width: var(--container-text); }

.section { padding-block: var(--section-y); }
.section--warm { background: var(--c-bg-warm); }
/* Bloc « accent » immersif : vert-encre profond, texte ivoire, accents champagne. */
.section--ink { background: var(--c-teal); color: rgba(253,251,247,.8); position: relative; }
.section--ink :is(h1, h2, h3, h4, .display, .h1, .h2, .h3, .h4) { color: var(--c-ivory); }
.section--ink .lead { color: rgba(253,251,247,.7); }
.section--ink .eyebrow { color: var(--c-sand); }
.section--ink .eyebrow::before { background: var(--c-gold); }
.section--ink::before,
.section--ink::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(253,251,247,.12); }
.section--ink::before { top: 0; }
.section--ink::after { bottom: 0; }

.grid { display: grid; gap: var(--sp-md); }
.flow > * + * { margin-top: var(--sp-md); }

/* --- Accessibilité -------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  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; left: -999px; top: 0;
  background: var(--c-ink); color: #fff;
  padding: var(--sp-2xs) var(--sp-sm); z-index: var(--z-modal);
}
.skip-link:focus { left: var(--sp-sm); top: var(--sp-sm); }

/* --- Respect des préférences mouvement ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* État pré-animation : éléments masqués avant révélation GSAP.
   .no-js fallback : si JS absent, on affiche tout. */
.js [data-reveal] { opacity: 0; }
.no-js [data-reveal] { opacity: 1 !important; }
