/* ==========================================================================
   UnParrain — Thèmes (variables CSS centralisées)
   Pour créer un thème : dupliquer un bloc [data-theme="..."] et l'enregistrer dans app/Services/Themes.php
   ========================================================================== */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root, [data-theme="blue"] {
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Jakarta", "Inter", system-ui, sans-serif;

  --primary: #1554f6;
  --primary-600: #0d45dc;
  --primary-700: #0a37b3;
  --primary-50: #eef3ff;
  --primary-100: #dfe8ff;
  --primary-contrast: #ffffff;
  --accent-grad: linear-gradient(135deg, #1554f6 0%, #3b8bff 100%);
  --hero-grad: linear-gradient(115deg, #ffffff 0%, #f2f6ff 40%, #dfe8ff 70%, #c7d6ff 100%);

  --bg: #f4f7fd;
  --surface: #ffffff;
  --surface-2: #f7f9fe;
  --surface-3: #eef2fb;
  --border: #e5eaf5;
  --border-strong: #d4dcee;
  --text: #0f1b3d;
  --text-2: #3b4768;
  --muted: #6b7591;
  --heading: #0d1a46;

  --side-bg: #0e1f5b;
  --side-bg-2: #0a1748;
  --side-text: #c9d3f2;
  --side-text-strong: #ffffff;
  --side-hover: rgba(255,255,255,.07);
  --side-active: #1554f6;
  --side-card: rgba(255,255,255,.07);

  --success: #16a34a; --success-50: #e8f8ee; --success-100: #d3f2df;
  --warning: #f59e0b; --warning-50: #fff5e5; --warning-100: #ffe9c2;
  --danger: #ef4444;  --danger-50: #fdecec;  --danger-100: #fbd5d5;
  --info: #0ea5e9;    --info-50: #e7f6fd;
  --violet: #7c3aed;  --violet-50: #f1ebfe;
  --orange: #f97316;

  --tint-blue: #eef3ff; --tint-green: #ecf9f1; --tint-violet: #f3eefe; --tint-orange: #fff6e6;
  --shadow-sm: 0 1px 2px rgba(15,27,61,.05), 0 1px 3px rgba(15,27,61,.04);
  --shadow: 0 4px 16px rgba(15,27,61,.06), 0 1px 3px rgba(15,27,61,.04);
  --shadow-lg: 0 18px 48px rgba(15,27,61,.12);
  --shadow-primary: 0 8px 20px rgba(21,84,246,.28);
  --radius-sm: 8px; --radius: 12px; --radius-lg: 16px; --radius-xl: 22px;
  --focus: 0 0 0 3px rgba(21,84,246,.25);
  --footer-bg: #0e1f5b;
  --footer-text: #c9d3f2;
  color-scheme: light;
}

[data-theme="dark"] {
  --primary: #4d7cff; --primary-600: #3a6af0; --primary-700: #2c56d1; --primary-50: #18223d; --primary-100: #1f2c4f;
  --accent-grad: linear-gradient(135deg, #3a6af0 0%, #5fa0ff 100%);
  --hero-grad: linear-gradient(115deg, #0e1320 0%, #121a2e 50%, #18264a 100%);
  --bg: #0b0f19; --surface: #131927; --surface-2: #171e2e; --surface-3: #1c2436;
  --border: #242d42; --border-strong: #2f3a54;
  --text: #e6eaf5; --text-2: #c2c9db; --muted: #8b95ad; --heading: #f3f6fc;
  --side-bg: #0f1422; --side-bg-2: #0b0f19; --side-text: #a8b2c9; --side-active: #3a6af0; --side-card: rgba(255,255,255,.05);
  --success-50: #10291b; --success-100: #143522; --warning-50: #2d2210; --warning-100: #3a2b12;
  --danger-50: #2e1416; --danger-100: #3c1a1d; --info-50: #0f2631; --violet-50: #21183a;
  --tint-blue: #16203a; --tint-green: #122a1f; --tint-violet: #1f1a38; --tint-orange: #2a2114;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 4px 16px rgba(0,0,0,.35); --shadow-lg: 0 18px 48px rgba(0,0,0,.5);
  --footer-bg: #0f1422; --footer-text: #a8b2c9;
  color-scheme: dark;
}

[data-theme="midnight"] {
  --primary: #5b8cff; --primary-600: #4a7af5; --primary-700: #3864dc; --primary-50: #121d4a; --primary-100: #18265c;
  --accent-grad: linear-gradient(135deg, #4a7af5 0%, #8aa9ff 100%);
  --hero-grad: radial-gradient(1200px 400px at 80% 0%, #1d2f7a 0%, transparent 60%), linear-gradient(120deg, #070f30 0%, #0c1745 100%);
  --bg: #070d26; --surface: #0e1840; --surface-2: #111d4b; --surface-3: #152255;
  --border: #1d2a62; --border-strong: #283778;
  --text: #e4e9ff; --text-2: #c1cbf2; --muted: #8e9bd0; --heading: #ffffff;
  --side-bg: #050a22; --side-bg-2: #03071a; --side-text: #a7b3e6; --side-active: #4a7af5; --side-card: rgba(255,255,255,.06);
  --success-50: #0c2a2a; --success-100: #0f3434; --warning-50: #2b2312; --warning-100: #382c14;
  --danger-50: #2c1430; --danger-100: #3a1a3d; --info-50: #0d2645; --violet-50: #1c1750;
  --tint-blue: #13215a; --tint-green: #0f2c3a; --tint-violet: #1e1a5a; --tint-orange: #2a2440;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5); --shadow: 0 6px 20px rgba(0,0,0,.4); --shadow-lg: 0 18px 48px rgba(0,0,0,.55);
  --footer-bg: #050a22; --footer-text: #a7b3e6;
  color-scheme: dark;
}

[data-theme="light"] {
  --primary: #111827; --primary-600: #000000; --primary-700: #000000; --primary-50: #f3f4f6; --primary-100: #e5e7eb;
  --accent-grad: linear-gradient(135deg, #111827 0%, #374151 100%);
  --hero-grad: linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
  --bg: #fafafa; --surface: #ffffff; --surface-2: #fafafa; --surface-3: #f3f4f6;
  --border: #ececef; --border-strong: #dcdce1;
  --text: #18181b; --text-2: #3f3f46; --muted: #71717a; --heading: #09090b;
  --side-bg: #ffffff; --side-bg-2: #ffffff; --side-text: #52525b; --side-text-strong: #09090b; --side-hover: #f4f4f5; --side-active: #111827; --side-card: #f4f4f5;
  --tint-blue: #f4f4f5; --tint-green: #f0fdf4; --tint-violet: #f5f3ff; --tint-orange: #fffbeb;
  --shadow-sm: none; --shadow: 0 1px 2px rgba(0,0,0,.04); --shadow-lg: 0 12px 32px rgba(0,0,0,.08); --shadow-primary: none;
  --focus: 0 0 0 3px rgba(17,24,39,.18);
  --footer-bg: #ffffff; --footer-text: #52525b;
}
[data-theme="light"] .sidebar { border-right: 1px solid var(--border); --side-glow: none; } /* pas de lueur sur fond blanc : elle formait une tache grise */
[data-theme="light"] .side-brand .brand-name, [data-theme="light"] .side-user .name { color: var(--heading); }
[data-theme="light"] .site-footer { border-top: 1px solid var(--border); }
[data-theme="light"] .site-footer .brand-name { color: var(--heading); }

[data-theme="emerald"] {
  --primary: #0f9d6b; --primary-600: #0b8a5d; --primary-700: #08734d; --primary-50: #e9f8f1; --primary-100: #d2f1e3;
  --accent-grad: linear-gradient(135deg, #0f9d6b 0%, #34d399 100%);
  --hero-grad: linear-gradient(115deg, #ffffff 0%, #f0faf5 45%, #d4f3e5 100%);
  --bg: #f2faf6; --surface-3: #e8f5ee; --border: #dcefe5; --border-strong: #c7e6d6;
  --text: #0b2a20; --text-2: #2d4c40; --muted: #5d7a6e; --heading: #06281c;
  --side-bg: #063b2c; --side-bg-2: #042a1f; --side-text: #b9e3d2; --side-active: #0f9d6b;
  --tint-blue: #e9f8f1; --shadow-primary: 0 8px 20px rgba(15,157,107,.28); --focus: 0 0 0 3px rgba(15,157,107,.25);
  --footer-bg: #063b2c; --footer-text: #b9e3d2;
}
