/* Gnoson — Michroma web font */
@font-face {
  font-family: "Michroma";
  src: url("../fonts/Michroma.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Gnoson Design System — Color Tokens
 *
 * Valeurs RGB sans rgb() pour compatibilité avec les modificateurs d'opacité Tailwind
 * (ex: bg-primary/50 fonctionne parce que la valeur est "53 68 193" et non "rgb(53 68 193)").
 *
 * Palette Gnoson — Indigo · Cyan · Neutres
 * Pour changer le thème : modifier les valeurs ici uniquement.
 * Pour un thème par tenant : injecter une balise <style> Django qui surcharge :root.
 */

:root {
  /* ── Primary (Indigo) ────────────────────────────────────────────── */
  --c-primary:       53  68 193;   /* Indigo 600  #3544C1  ✦ CTA principal */
  --c-primary-hover: 30  46 138;   /* Indigo 800  #1E2E8A */
  --c-primary-50:   238 240 251;   /* Indigo 50   #EEF0FB */
  --c-primary-100:  197 201 242;   /* Indigo 100  #C5C9F2 */
  --c-primary-200:  155 163 232;   /* Indigo 200  #9BA3E8 */
  --c-primary-400:   92 104 216;   /* Indigo 400  #5C68D8 */
  --c-primary-700:   30  46 138;   /* Indigo 800  #1E2E8A  (texte sur fond primaire clair) */
  --c-primary-800:   30  46 138;   /* Indigo 800  #1E2E8A */
  --c-primary-900:   15  26  92;   /* Indigo 900  #0F1A5C */

  /* ── Accent (Cyan) ───────────────────────────────────────────────── */
  --c-accent:        34 181 200;   /* Cyan 500  #22B5C8  ✦ CTA secondaire */
  --c-accent-200:   125 216 228;   /* Cyan 200  #7DD8E4 */
  --c-accent-700:    14 122 137;   /* Cyan 700  #0E7A89 */

  /* ── Neutral (Gris) ──────────────────────────────────────────────── */
  --c-neutral-50:   245 245 243;   /* Gris 50   #F5F5F3 */
  --c-neutral-100:  232 232 230;
  --c-neutral-200:  205 205 201;
  --c-neutral-300:  184 184 178;   /* Gris 300  #B8B8B2 */
  --c-neutral-400:  155 155 148;
  --c-neutral-500:  121 121 117;
  --c-neutral-600:   89  89  85;
  --c-neutral-700:   71  71  68;
  --c-neutral-800:   58  58  56;   /* Gris 800  #3A3A38  (corps de texte) */
  --c-neutral-900:   32  32  30;

  /* ── Semantic ─────────────────────────────────────────────────────── */
  --c-danger:        220  38  38;   /* red-600 */
  --c-danger-light:  254 242 242;   /* red-50  */
  --c-danger-border: 248 113 113;   /* red-400 */
  --c-danger-dark:   185  28  28;   /* red-700 */

  --c-success:       22 163  74;   /* green-600 */
  --c-success-dark:  21 128  61;   /* green-700 */
  --c-warning:      217 119   6;   /* amber-600 */
  --c-info:          34 181 200;   /* = accent (Cyan 500) */
}

/* ── Gnoson Design System — Component: btn-primary ──────────────────────────
 *
 * Bouton d'action primaire. Usage type : "Configure", "New referential", etc.
 * S'applique à <button> ou <a>. Utiliser `inline-flex` nativement.
 *
 * Équivalent Tailwind (pour référence) :
 *   inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5
 *   text-sm font-medium text-white shadow-sm hover:bg-primary/90 transition-colors
 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.375rem;
  background-color: rgb(var(--c-primary));
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5rem;
  color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: background-color 0.15s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}
.btn-primary:hover {
  background-color: rgb(var(--c-primary-hover));
  color: #ffffff;
  text-decoration: none;
}
.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgb(var(--c-primary) / 0.35);
}
