/* ============================================================
   DARIX CRM — BASE
   Reset moderne + styles fondamentaux.
   Dépend de tokens.css (doit être chargé avant).
   ============================================================ */

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Racine ───────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Images et médias ─────────────────────────────────────── */
img, video, svg {
  max-width: 100%;
  display: block;
}

/* ── Typographie ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-navy-deep);
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  max-width: 68ch;
  margin-bottom: var(--space-2);
}

p:last-child { margin-bottom: 0; }

/* ── Liens ────────────────────────────────────────────────── */
a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease),
              text-decoration-color var(--duration-fast) var(--ease);
}

a:hover {
  text-decoration: underline;
  text-decoration-color: currentColor;
}

/* ── Listes ───────────────────────────────────────────────── */
ul, ol {
  list-style: none;
}

/* ── Sélection ────────────────────────────────────────────── */
::selection {
  background-color: rgba(196, 154, 94, 0.25);
  color: var(--color-navy-deep);
}

/* ── Focus (accessibilité) ────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Utilitaires de layout ────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ── SR-only (accessibilité) ──────────────────────────────── */
.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;
}
