/* EventPass — variables de design (source unique).
   Préfixe --ep- pour ne pas entrer en conflit avec les anciennes variables (--brand, --ink…).
   Le mode sombre suit la convention déjà utilisée par le projet : html[data-ep-resolved="dark"]. */

:root {
  /* Couleurs de marque (charte officielle 315DE0 / 7C3AED) */
  --ep-brand: #315DE0;
  --ep-brand-strong: #244BC5;
  --ep-brand-soft: #E9EFFD;
  --ep-violet: #7C3AED;

  /* Texte et surfaces */
  --ep-ink: #101A36;
  --ep-muted: #56627C;
  --ep-bg: #F5F7FC;
  --ep-surface: #FFFFFF;
  --ep-line: #E1E6F0;

  /* États (scan, paiement, statuts) */
  --ep-ok: #137A55;
  --ep-ok-soft: #E3F5EC;
  --ep-warn: #9A5B00;
  --ep-warn-soft: #FFF1D6;
  --ep-danger: #B3261E;
  --ep-danger-soft: #FDE7E5;

  /* Typographie : pile système en attendant une police hébergée (voir README du pilote) */
  --ep-font: "Plus Jakarta Sans", Inter, "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Échelle d'espacement */
  --ep-space-1: 4px;
  --ep-space-2: 8px;
  --ep-space-3: 12px;
  --ep-space-4: 16px;
  --ep-space-5: 24px;
  --ep-space-6: 32px;
  --ep-space-7: 48px;
  --ep-space-8: 72px;

  /* Trois rayons seulement : contrôle, carte, objet */
  --ep-radius-s: 10px;
  --ep-radius-m: 16px;
  --ep-radius-l: 24px;

  /* Deux ombres seulement */
  --ep-shadow-s: 0 1px 2px rgba(16, 26, 54, .06), 0 4px 12px rgba(16, 26, 54, .05);
  --ep-shadow-l: 0 28px 50px -18px rgba(16, 26, 54, .32);

  --ep-focus: 0 0 0 3px #fff, 0 0 0 6px var(--ep-brand);
}

html[data-ep-resolved="dark"] {
  color-scheme: dark;
  --ep-brand: #86A8FF;
  --ep-brand-strong: #A9C0FF;
  --ep-brand-soft: #1F2E52;
  --ep-violet: #B69AFF;
  --ep-ink: #EAF0FF;
  --ep-muted: #A8B6CC;
  --ep-bg: #101725;
  --ep-surface: #1A2536;
  --ep-line: #34435A;
  --ep-ok: #43D5A0;
  --ep-ok-soft: #12382C;
  --ep-warn: #FFBE55;
  --ep-warn-soft: #3A2C10;
  --ep-danger: #FF8188;
  --ep-danger-soft: #3D1B1E;
  --ep-shadow-s: none;
  --ep-shadow-l: 0 28px 50px -18px rgba(0, 0, 0, .6);
  --ep-focus: 0 0 0 3px var(--ep-bg), 0 0 0 6px var(--ep-brand);
}
