/* Thèmes : redéfinissent les jetons de tokens.css sous le thème choisi.
   Chaque bloc est complet pour l'emporter sur prefers-color-scheme dans les deux sens. */

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08090b;
  --bg-2: #121419;
  --surface: #181b21;
  --surface-2: #20242b;
  --surface-3: #2b3039;
  --menu-bg: #262a32;
  --hover: rgba(255, 255, 255, 0.07);
  --active: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f4f6f8;
  --text-2: #b4bbc6;
  --text-3: #7d8693;
  --accent: #1ed760;
  --accent-2: #3be477;
  --accent-ink: #03170a;
  --on-accent: #04150c;
  --danger: #ff6b6b;
  --track: rgba(255, 255, 255, 0.18);
  --buffer: rgba(255, 255, 255, 0.32);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  --drop-bg: rgba(8, 9, 11, 0.82);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #e9ebef;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f2f5;
  --surface-3: #e3e6eb;
  --menu-bg: #ffffff;
  --hover: rgba(15, 18, 24, 0.05);
  --active: rgba(15, 18, 24, 0.09);
  --line: rgba(15, 18, 24, 0.09);
  --line-strong: rgba(15, 18, 24, 0.25);
  --text: #12151a;
  --text-2: #4b525d;
  --text-3: #7a828e;
  --accent: #0e7f3a;
  --accent-2: #0a6a30;
  --accent-ink: #ffffff;
  --on-accent: #ffffff;
  --danger: #d93636;
  --track: rgba(15, 18, 24, 0.16);
  --buffer: rgba(15, 18, 24, 0.28);
  --shadow: 0 16px 40px rgba(15, 18, 24, 0.18);
  --drop-bg: rgba(8, 9, 11, 0.82);
}

:root[data-theme="oled"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-2: #0a0a0a;
  --surface: #121212;
  --surface-2: #1a1a1a;
  --surface-3: #262626;
  --menu-bg: #1e1e1e;
  --hover: rgba(255, 255, 255, 0.07);
  --active: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #ffffff;
  --text-2: #b3b3b3;
  --text-3: #7a7a7a;
  --accent: #1ed760;
  --accent-2: #3be477;
  --accent-ink: #03170a;
  --on-accent: #04150c;
  --danger: #ff6b6b;
  --track: rgba(255, 255, 255, 0.18);
  --buffer: rgba(255, 255, 255, 0.32);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  --drop-bg: rgba(0, 0, 0, 0.88);
}

:root[data-theme="ocean"] {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-2: #0f1830;
  --surface: #15203a;
  --surface-2: #1c2947;
  --surface-3: #283859;
  --menu-bg: #1f2c4d;
  --hover: rgba(232, 238, 252, 0.07);
  --active: rgba(232, 238, 252, 0.11);
  --line: rgba(232, 238, 252, 0.09);
  --line-strong: rgba(232, 238, 252, 0.26);
  --text: #e8eefc;
  --text-2: #aab8d6;
  --text-3: #7886a6;
  --accent: #4cc9f0;
  --accent-2: #7ad9f5;
  --accent-ink: #04151c;
  --on-accent: #04151c;
  --danger: #ff6b6b;
  --track: rgba(232, 238, 252, 0.18);
  --buffer: rgba(232, 238, 252, 0.32);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  --drop-bg: rgba(11, 18, 32, 0.86);
}

:root[data-theme="sand"] {
  color-scheme: light;
  --bg: #f4efe6;
  --bg-2: #fffaf2;
  --surface: #fffaf2;
  --surface-2: #f0e9dd;
  --surface-3: #e6dccb;
  --menu-bg: #fffaf2;
  --hover: rgba(42, 33, 24, 0.05);
  --active: rgba(42, 33, 24, 0.09);
  --line: rgba(42, 33, 24, 0.10);
  --line-strong: rgba(42, 33, 24, 0.28);
  --text: #2a2118;
  --text-2: #5e5143;
  --text-3: #85766a;
  --accent: #c2410c;
  --accent-2: #9a3412;
  --accent-ink: #ffffff;
  --on-accent: #ffffff;
  --danger: #b91c1c;
  --track: rgba(42, 33, 24, 0.16);
  --buffer: rgba(42, 33, 24, 0.28);
  --shadow: 0 16px 40px rgba(42, 33, 24, 0.18);
  --drop-bg: rgba(8, 9, 11, 0.82);
}
