/* Base neutre de Ouibel Dev : reset, accessibilité, typographie reliée aux tokens.
   Aucune esthétique imposée ici : l'identité vient de css/tokens.css (Design Engine) et de style.css. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  min-height: 100svh;
  background: var(--background, #fff);
  color: var(--foreground, #111);
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: var(--text-body, 1rem);
  line-height: var(--leading-body, 1.6);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p, li, figcaption { text-wrap: pretty; overflow-wrap: break-word; }
h1, h2, h3, h4 { text-wrap: balance; overflow-wrap: break-word; font-family: var(--font-heading, inherit); font-weight: var(--weight-heading, 700); letter-spacing: var(--tracking-heading, normal); text-transform: var(--case-heading, none); line-height: 1.08; }
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); line-height: 1.2; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--primary); color: var(--primary-foreground); }
:focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Utilitaires d'accessibilité et de structure (pas de style visuel) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lien-evitement { position: absolute; left: 1rem; top: -100px; z-index: 1000; padding: .75rem 1rem; background: var(--foreground); color: var(--background); border-radius: var(--radius-sm, 4px); }
.lien-evitement:focus { top: 1rem; }
.conteneur { width: min(var(--space-container, 1200px), 100% - 2 * var(--space-gutter, 1.25rem)); margin-inline: auto; }

/* Apparition au scroll (activée par js/base.js), désactivée si l'utilisateur réduit les animations */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--duration, 400ms) var(--ease, ease), transform var(--duration, 400ms) var(--ease, ease); transition-delay: var(--delai, 0ms); }
  .reveal.visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
