/* ============================================================
   FRIP'1 - Reset et base globale
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--surface);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: var(--lh-tight);
  margin: 0;
  letter-spacing: -0.01em;
}

/* Focus accessibilité */
:focus-visible {
  outline: 3px solid var(--frip-lime);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Sélection */
::selection { background: var(--frip-lime); color: var(--frip-black); }

/* Scrollbar discrète */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #D0CBBB; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #B9B39F; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--frip-black); color: var(--frip-lime);
  padding: 12px 20px; z-index: 999; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* Utilitaires */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--s-5); }
.stack > * + * { margin-top: var(--s-4); }
.stack-sm > * + * { margin-top: var(--s-2); }
.stack-lg > * + * { margin-top: var(--s-6); }
.row { display: flex; align-items: center; gap: var(--s-3); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.grow { flex: 1; }
.center { display: flex; align-items: center; justify-content: center; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-lg { font-size: var(--fs-lg); }
.text-bold { font-weight: 700; }
.text-title { font-family: var(--font-title); font-weight: 700; }
.hidden { display: none !important; }
