/* ============================================================
   AgroGest — base.css : reset et fondations typographiques
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text-1);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Police Inter auto-hébergée (§10.3) — aucun CDN externe */
/* Inter est utilisée si présente sur le système (local), sinon les polices
   système prennent le relais via --font-ui — aucun fichier distant requis. */

img, picture, svg, canvas { display: block; max-width: 100%; }

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

h1 { font-size: var(--fs-h1); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }

p  { overflow-wrap: break-word; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--color-primary-h); text-decoration: underline; }

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

/* Focus toujours visible — accessibilité AA (§10.9) */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--tint-primary); }

/* Utilitaires fréquents */
.u-muted   { color: var(--text-2); }
.u-mono    { font-family: var(--font-mono); }
.u-hidden  { display: none !important; }
.u-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;
}
