/* ==========================================================================
   DEALR NETWORK — Design tokens
   Toutes les couleurs, tailles et polices vivent ici. Ne jamais coder une
   couleur en dur ailleurs : référencer une variable.
   ========================================================================== */
:root{
  color-scheme: dark;

  /* Brand */
  --green: #18C875;
  --green-dim: rgba(24,200,117,0.12);
  --green-line: rgba(24,200,117,0.35);
  --black: #000000;
  --dark: #0D0D0D;
  --panel: #141414;
  --panel-2: #1a1a1a;

  /* Neutrals */
  --white: #FFFFFF;
  --line: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.18);
  --text: #FFFFFF;
  --text-dim: rgba(255,255,255,0.6);
  --text-faint: rgba(255,255,255,0.35);

  /* Status */
  --amber: #E8B95C;
  --red: #FF8A8A;

  /* Theme surfaces */
  --surface-quiet: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.06);
  --surface-muted: rgba(255,255,255,0.09);
  --surface-strong: rgba(255,255,255,0.15);
  --chrome-bg: rgba(0,0,0,0.92);
  --nav-bg: rgba(0,0,0,0.70);
  --nav-scrolled-bg: rgba(0,0,0,0.88);
  --focus-surface: #101b15;
  --green-gradient-end: #0d8f52;
  --amber-line: rgba(232,185,92,0.4);
  --red-line: rgba(255,138,138,0.4);
  --red-dim: rgba(255,138,138,0.06);
  --scroll-thumb: rgba(255,255,255,0.14);
  --favorite-bg: rgba(0,0,0,0.62);
  --favorite-color: #FFFFFF;
  --favorite-border: rgba(255,255,255,0.24);
  --favorite-active-bg: rgba(0,0,0,0.78);
  --favorite-active-color: #18C875;

  /* Type */
  --font-display: 'Lato', sans-serif;
  --font-body: 'Lato', sans-serif;
  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Motion — cohérent partout, jamais de durée codée en dur ailleurs */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 420ms;

  /* Profondeur — subtile, jamais un flat design pur ni du skeuomorphisme */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.45);
  --shadow-glow: 0 8px 28px rgba(24,200,117,0.22);

  /* Layout */
  --max-width: 1180px;
  --nav-height: 68px;
}

:root[data-theme="light"]{
  color-scheme: light;

  --green: #087A47;
  --green-dim: rgba(8,122,71,0.09);
  --green-line: rgba(8,122,71,0.32);
  --black: #F5F8F6;
  --dark: #E9EFEB;
  --panel: #FFFFFF;
  --panel-2: #EEF3F0;
  --white: #17251D;
  --line: rgba(23,37,29,0.1);
  --line-strong: rgba(23,37,29,0.2);
  --text: #17251D;
  --text-dim: rgba(23,37,29,0.72);
  --text-faint: rgba(23,37,29,0.54);
  --amber: #845400;
  --red: #B42332;
  --surface-quiet: rgba(23,37,29,0.035);
  --surface-hover: rgba(23,37,29,0.06);
  --surface-muted: rgba(23,37,29,0.09);
  --surface-strong: rgba(23,37,29,0.15);
  --chrome-bg: rgba(255,255,255,0.94);
  --nav-bg: rgba(255,255,255,0.82);
  --nav-scrolled-bg: rgba(255,255,255,0.96);
  --focus-surface: #E5F1E9;
  --green-gradient-end: #075C36;
  --amber-line: rgba(132,84,0,0.34);
  --red-line: rgba(180,35,50,0.32);
  --red-dim: rgba(180,35,50,0.06);
  --scroll-thumb: rgba(23,37,29,0.2);
  --favorite-bg: #FFFFFF;
  --favorite-color: #304139;
  --favorite-border: rgba(23,37,29,0.16);
  --favorite-active-bg: #087A47;
  --favorite-active-color: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(18,35,25,0.08);
  --shadow-md: 0 8px 24px rgba(18,35,25,0.12);
  --shadow-lg: 0 16px 48px rgba(18,35,25,0.16);
  --shadow-glow: 0 8px 28px rgba(8,122,71,0.16);
}
