/* ==========================================================================
   ECLAU : base (reset léger, typographie, mise en page)
   Toutes les valeurs viennent de tokens.css : jamais de couleur en dur ici.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

/* --- Typographie (charte : Nourd Bold / Montserrat Regular / Georgia) ---- */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 var(--fs-body)/var(--lh-texte) var(--font-texte);
  overflow-x: hidden;
}
h1, h2 { font-family: var(--font-titre); font-weight: 700; color: var(--color-heading); line-height: var(--lh-titre); margin: 0 0 .5em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3, h4 { font-family: var(--font-ui); font-weight: 400; color: var(--color-heading); line-height: 1.3; margin: 0 0 .5em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0 0 1em; max-width: 65ch; }
strong, b { font-weight: 700; }
small, figcaption, .legende { font: 400 var(--fs-small)/1.5 var(--font-ui); }
a { color: var(--color-brand); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* --- Mise en page -------------------------------------------------------- */
.conteneur { width: min(100% - 2 * var(--gutter), var(--container-max)); margin-inline: auto; }
.conteneur--etroit { max-width: 760px; }
.section { padding-block: var(--section-y); }
.section--douce { background: var(--color-bg-soft); }
.section--brand { background: var(--color-bg-brand); color: var(--color-text-on-brand); }
.section--brand h2, .section--brand h3 { color: var(--color-text-on-brand); }
.section--papier { background: var(--color-bg) url("../img/textures/papier-aquarelle-blanc.jpg") center / cover; }
.grille { display: grid; gap: var(--gutter); }
@media (min-width: 768px) {
  .grille--2 { grid-template-columns: repeat(2, 1fr); }
  .grille--3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Accessibilité ------------------------------------------------------- */
.visuellement-cache {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lien-evitement { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--color-bg); padding: .75rem 1rem; border-radius: var(--radius-sm); }
.lien-evitement:focus { top: 1rem; }
