/* ==========================================================================
   Base : reset léger, typographie, liens, focus, animations d'apparition
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--texte);
  font-family: var(--f-texte);
  font-size: var(--t-base);
  font-weight: 350;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  

}

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

[hidden] { display: none !important; }

/* Les boutons et champs n'héritent pas de l'axe optique : on le force */
button, input, select, textarea { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--f-titre);
  font-weight: 480;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }

h1 em, h2 em, h3 em { font-style: italic; }

p { margin: 0; max-width: var(--largeur-texte); text-wrap: pretty; }
p + p { margin-top: 1em; }

strong { font-weight: 500; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--paille); }

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

::selection { background: var(--paille); color: var(--encre); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  font-family: var(--f-texte);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paille-texte);
}

.lead { font-size: var(--t-lg); line-height: 1.55; color: var(--texte-doux); }
.doux { color: var(--texte-doux); }
.tabulaire { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Apparition au défilement
   Le contenu est visible par défaut. motion.js masque seulement ce qui est
   hors écran au chargement, puis le révèle lorsqu'il entre dans la vue.
   -------------------------------------------------------------------------- */
.reveal.is-waiting {
  opacity: 0;
  transform: translateY(18px);
}
.reveal.is-shown {
  opacity: 1;
  transform: none;
  transition: opacity var(--duree) var(--ease), transform var(--duree) var(--ease);
  transition-delay: var(--delai, 0s);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal.is-waiting { opacity: 1; transform: none; }
}
