[data-theme="pulse"] {
  --bg: #0b0b0c; --bg-2: #0f0f11; --panel: #131315; --panel-2: #18181b; --panel-3: #1f1f23;
  --border: #222226; --border-2: #2d2d33; --text: #ededee; --muted: #9b9ba3; --dim: #66666e;
  --red: #ff5a1f; --red-2: #f2303f; --red-soft: rgba(255, 90, 31, .12); --red-line: rgba(255, 90, 31, .42); --red-dark: rgba(255, 90, 31, .5);
  --radius: 8px; color-scheme: dark;
}
[data-theme="pulse"] body, body[data-theme="pulse"], [data-theme="pulse"].theme-preview { background: #0b0b0c; color: #ededee; }
[data-theme="pulse"] .btn-red, [data-theme="pulse"] .dc-tag { background: #ff5a1f; border-color: #ff5a1f; color: #ffffff; }
[data-theme="pulse"] .card, [data-theme="pulse"] .stat, [data-theme="pulse"] .module-head { border-radius: 8px; }
[data-theme="nebula"] {
  --bg: #08081a; --bg-2: #0c0c22; --panel: #11112b; --panel-2: #171735; --panel-3: #1f1f42;
  --border: #22224a; --border-2: #2e2e5c; --text: #ecebff; --muted: #a3a1d1; --dim: #6b69a0;
  --red: #8b5cf6; --red-2: #a78bfa; --red-soft: rgba(139, 92, 246, .12); --red-line: rgba(139, 92, 246, .42); --red-dark: rgba(139, 92, 246, .5);
  --radius: 12px; color-scheme: dark;
}
[data-theme="nebula"] body, body[data-theme="nebula"], [data-theme="nebula"].theme-preview { background: #08081a; color: #ecebff; }
[data-theme="nebula"] .btn-red, [data-theme="nebula"] .dc-tag { background: #8b5cf6; border-color: #8b5cf6; color: #ffffff; }
[data-theme="nebula"] .card, [data-theme="nebula"] .stat, [data-theme="nebula"] .module-head { border-radius: 12px; }
[data-theme="ocean"] {
  --bg: #061216; --bg-2: #08181d; --panel: #0c1f25; --panel-2: #10282f; --panel-3: #15323a;
  --border: #173640; --border-2: #1f4652; --text: #e6fbff; --muted: #8fbac4; --dim: #5a8590;
  --red: #06b6d4; --red-2: #22d3ee; --red-soft: rgba(6, 182, 212, .12); --red-line: rgba(6, 182, 212, .42); --red-dark: rgba(6, 182, 212, .5);
  --radius: 10px; color-scheme: dark;
}
[data-theme="ocean"] body, body[data-theme="ocean"], [data-theme="ocean"].theme-preview { background: #061216; color: #e6fbff; }
[data-theme="ocean"] .btn-red, [data-theme="ocean"] .dc-tag { background: #06b6d4; border-color: #06b6d4; color: #ffffff; }
[data-theme="ocean"] .card, [data-theme="ocean"] .stat, [data-theme="ocean"] .module-head { border-radius: 10px; }
[data-theme="emeraude"] {
  --bg: #06110c; --bg-2: #081610; --panel: #0c1d15; --panel-2: #10261c; --panel-3: #163024;
  --border: #183626; --border-2: #214733; --text: #e8fbf1; --muted: #93c2aa; --dim: #5e8c75;
  --red: #10b981; --red-2: #34d399; --red-soft: rgba(16, 185, 129, .12); --red-line: rgba(16, 185, 129, .42); --red-dark: rgba(16, 185, 129, .5);
  --radius: 10px; color-scheme: dark;
}
[data-theme="emeraude"] body, body[data-theme="emeraude"], [data-theme="emeraude"].theme-preview { background: #06110c; color: #e8fbf1; }
[data-theme="emeraude"] .btn-red, [data-theme="emeraude"] .dc-tag { background: #10b981; border-color: #10b981; color: #ffffff; }
[data-theme="emeraude"] .card, [data-theme="emeraude"] .stat, [data-theme="emeraude"] .module-head { border-radius: 10px; }
[data-theme="or"] {
  --bg: #0f0c06; --bg-2: #141008; --panel: #19140b; --panel-2: #211a0f; --panel-3: #2a2214;
  --border: #2e2516; --border-2: #3d311d; --text: #fbf3e2; --muted: #c4b490; --dim: #8a7c5c;
  --red: #f59e0b; --red-2: #fbbf24; --red-soft: rgba(245, 158, 11, .12); --red-line: rgba(245, 158, 11, .42); --red-dark: rgba(245, 158, 11, .5);
  --radius: 6px; color-scheme: dark;
}
[data-theme="or"] body, body[data-theme="or"], [data-theme="or"].theme-preview { background: #0f0c06; color: #fbf3e2; }
[data-theme="or"] .btn-red, [data-theme="or"] .dc-tag { background: #f59e0b; border-color: #f59e0b; color: #ffffff; }
[data-theme="or"] .card, [data-theme="or"] .stat, [data-theme="or"] .module-head { border-radius: 6px; }
[data-theme="sakura"] {
  --bg: #13080e; --bg-2: #190b13; --panel: #1f0f18; --panel-2: #28141f; --panel-3: #321a28;
  --border: #3a1d2e; --border-2: #4a263b; --text: #ffeaf4; --muted: #d4a0ba; --dim: #9a6a82;
  --red: #ec4899; --red-2: #f472b6; --red-soft: rgba(236, 72, 153, .12); --red-line: rgba(236, 72, 153, .42); --red-dark: rgba(236, 72, 153, .5);
  --radius: 16px; color-scheme: dark;
}
[data-theme="sakura"] body, body[data-theme="sakura"], [data-theme="sakura"].theme-preview { background: #13080e; color: #ffeaf4; }
[data-theme="sakura"] .btn-red, [data-theme="sakura"] .dc-tag { background: #ec4899; border-color: #ec4899; color: #ffffff; }
[data-theme="sakura"] .card, [data-theme="sakura"] .stat, [data-theme="sakura"] .module-head { border-radius: 16px; }
[data-theme="glace"] {
  --bg: #f3f6fb; --bg-2: #eaf0f8; --panel: #ffffff; --panel-2: #f5f8fc; --panel-3: #e8eef6;
  --border: #dde4ee; --border-2: #cbd5e3; --text: #0f172a; --muted: #526079; --dim: #8391a7;
  --red: #2563eb; --red-2: #3b82f6; --red-soft: rgba(37, 99, 235, .12); --red-line: rgba(37, 99, 235, .42); --red-dark: rgba(37, 99, 235, .5);
  --radius: 10px; color-scheme: light;
}
[data-theme="glace"] body, body[data-theme="glace"], [data-theme="glace"].theme-preview { background: #f3f6fb; color: #0f172a; }
[data-theme="glace"] .btn-red, [data-theme="glace"] .dc-tag { background: #2563eb; border-color: #2563eb; color: #ffffff; }
[data-theme="glace"] .card, [data-theme="glace"] .stat, [data-theme="glace"] .module-head { border-radius: 10px; }
[data-theme="papier"] {
  --bg: #f5efe3; --bg-2: #efe7d8; --panel: #fffaf1; --panel-2: #f8f1e4; --panel-3: #efe5d3;
  --border: #e4d8c3; --border-2: #d6c6aa; --text: #2a2118; --muted: #6e5f4b; --dim: #9c8b72;
  --red: #c2410c; --red-2: #ea580c; --red-soft: rgba(194, 65, 12, .12); --red-line: rgba(194, 65, 12, .42); --red-dark: rgba(194, 65, 12, .5);
  --radius: 4px; color-scheme: light;
}
[data-theme="papier"] body, body[data-theme="papier"], [data-theme="papier"].theme-preview { background: #f5efe3; color: #2a2118; }
[data-theme="papier"] .btn-red, [data-theme="papier"] .dc-tag { background: #c2410c; border-color: #c2410c; color: #ffffff; }
[data-theme="papier"] .card, [data-theme="papier"] .stat, [data-theme="papier"] .module-head { border-radius: 4px; }
[data-theme="minuit"] {
  --bg: #090b13; --bg-2: #0c0f19; --panel: #11141f; --panel-2: #161a28; --panel-3: #1d2232;
  --border: #1f2436; --border-2: #2a3048; --text: #e7e9ff; --muted: #9aa0c7; --dim: #646a92;
  --red: #6366f1; --red-2: #818cf8; --red-soft: rgba(99, 102, 241, .12); --red-line: rgba(99, 102, 241, .42); --red-dark: rgba(99, 102, 241, .5);
  --radius: 10px; color-scheme: dark;
}
[data-theme="minuit"] body, body[data-theme="minuit"], [data-theme="minuit"].theme-preview { background: #090b13; color: #e7e9ff; }
[data-theme="minuit"] .btn-red, [data-theme="minuit"] .dc-tag { background: #6366f1; border-color: #6366f1; color: #ffffff; }
[data-theme="minuit"] .card, [data-theme="minuit"] .stat, [data-theme="minuit"] .module-head { border-radius: 10px; }
[data-theme="neon"] {
  --bg: #000000; --bg-2: #050505; --panel: #0a0a0a; --panel-2: #101010; --panel-3: #171717;
  --border: #1c1c1c; --border-2: #262626; --text: #e8ffe0; --muted: #9fbf96; --dim: #5f7a58;
  --red: #84cc16; --red-2: #a3e635; --red-soft: rgba(132, 204, 22, .12); --red-line: rgba(132, 204, 22, .42); --red-dark: rgba(132, 204, 22, .5);
  --radius: 0px; color-scheme: dark;
  --display: 'IBM Plex Mono', monospace;
}
[data-theme="neon"] body, body[data-theme="neon"], [data-theme="neon"].theme-preview { background: #000000; color: #e8ffe0; }
[data-theme="neon"] .btn-red, [data-theme="neon"] .dc-tag { background: #84cc16; border-color: #84cc16; color: #ffffff; }
[data-theme="neon"] .card, [data-theme="neon"] .stat, [data-theme="neon"] .module-head { border-radius: 0px; }
[data-theme="sang"] {
  --bg: #0b0404; --bg-2: #100606; --panel: #160808; --panel-2: #1d0b0b; --panel-3: #260f0f;
  --border: #2c1111; --border-2: #3b1616; --text: #ffe9e9; --muted: #c79a9a; --dim: #8c6262;
  --red: #b91c1c; --red-2: #dc2626; --red-soft: rgba(185, 28, 28, .12); --red-line: rgba(185, 28, 28, .42); --red-dark: rgba(185, 28, 28, .5);
  --radius: 2px; color-scheme: dark;
}
[data-theme="sang"] body, body[data-theme="sang"], [data-theme="sang"].theme-preview { background: #0b0404; color: #ffe9e9; }
[data-theme="sang"] .btn-red, [data-theme="sang"] .dc-tag { background: #b91c1c; border-color: #b91c1c; color: #ffffff; }
[data-theme="sang"] .card, [data-theme="sang"] .stat, [data-theme="sang"] .module-head { border-radius: 2px; }
[data-theme="lavande"] {
  --bg: #f3f1fb; --bg-2: #ebe7f8; --panel: #ffffff; --panel-2: #f7f5fd; --panel-3: #ece8f9;
  --border: #e0daf3; --border-2: #cfc6ea; --text: #1e1533; --muted: #5f5480; --dim: #8e85ad;
  --red: #7c3aed; --red-2: #8b5cf6; --red-soft: rgba(124, 58, 237, .12); --red-line: rgba(124, 58, 237, .42); --red-dark: rgba(124, 58, 237, .5);
  --radius: 14px; color-scheme: light;
}
[data-theme="lavande"] body, body[data-theme="lavande"], [data-theme="lavande"].theme-preview { background: #f3f1fb; color: #1e1533; }
[data-theme="lavande"] .btn-red, [data-theme="lavande"] .dc-tag { background: #7c3aed; border-color: #7c3aed; color: #ffffff; }
[data-theme="lavande"] .card, [data-theme="lavande"] .stat, [data-theme="lavande"] .module-head { border-radius: 14px; }
[data-theme="cendre"] {
  --bg: #0d0d0d; --bg-2: #111111; --panel: #161616; --panel-2: #1c1c1c; --panel-3: #242424;
  --border: #262626; --border-2: #333333; --text: #f2f2f2; --muted: #a3a3a3; --dim: #6b6b6b;
  --red: #e5e5e5; --red-2: #ffffff; --red-soft: rgba(229, 229, 229, .12); --red-line: rgba(229, 229, 229, .42); --red-dark: rgba(229, 229, 229, .5);
  --radius: 6px; color-scheme: dark;
}
[data-theme="cendre"] body, body[data-theme="cendre"], [data-theme="cendre"].theme-preview { background: #0d0d0d; color: #f2f2f2; }
[data-theme="cendre"] .btn-red, [data-theme="cendre"] .dc-tag { background: #e5e5e5; border-color: #e5e5e5; color: #111111; }
[data-theme="cendre"] .card, [data-theme="cendre"] .stat, [data-theme="cendre"] .module-head { border-radius: 6px; }
[data-theme="sunset"] {
  --bg: #120a06; --bg-2: #170d08; --panel: #1d110b; --panel-2: #26160e; --panel-3: #301c12;
  --border: #371f14; --border-2: #48291b; --text: #fff0e6; --muted: #d1a88e; --dim: #946f58;
  --red: #f97316; --red-2: #fb923c; --red-soft: rgba(249, 115, 22, .12); --red-line: rgba(249, 115, 22, .42); --red-dark: rgba(249, 115, 22, .5);
  --radius: 12px; color-scheme: dark;
}
[data-theme="sunset"] body, body[data-theme="sunset"], [data-theme="sunset"].theme-preview { background: #120a06; color: #fff0e6; }
[data-theme="sunset"] .btn-red, [data-theme="sunset"] .dc-tag { background: #f97316; border-color: #f97316; color: #ffffff; }
[data-theme="sunset"] .card, [data-theme="sunset"] .stat, [data-theme="sunset"] .module-head { border-radius: 12px; }
[data-theme="arctique"] {
  --bg: #0b1220; --bg-2: #0e1628; --panel: #131c30; --panel-2: #18233a; --panel-3: #1f2b45;
  --border: #22304a; --border-2: #2d3d5c; --text: #e6f1ff; --muted: #94a8c6; --dim: #61748f;
  --red: #14b8a6; --red-2: #2dd4bf; --red-soft: rgba(20, 184, 166, .12); --red-line: rgba(20, 184, 166, .42); --red-dark: rgba(20, 184, 166, .5);
  --radius: 18px; color-scheme: dark;
}
[data-theme="arctique"] body, body[data-theme="arctique"], [data-theme="arctique"].theme-preview { background: #0b1220; color: #e6f1ff; }
[data-theme="arctique"] .btn-red, [data-theme="arctique"] .dc-tag { background: #14b8a6; border-color: #14b8a6; color: #ffffff; }
[data-theme="arctique"] .card, [data-theme="arctique"] .stat, [data-theme="arctique"] .module-head { border-radius: 18px; }
/* Ajustements des thèmes clairs */
[data-theme="glace"], [data-theme="papier"], [data-theme="lavande"] {
  --gold-soft: rgba(202, 138, 4, .12); --gold-line: rgba(202, 138, 4, .45);
}
[data-theme="glace"] .sidebar, [data-theme="glace"] .topbar, [data-theme="papier"] .sidebar, [data-theme="papier"] .topbar, [data-theme="lavande"] .sidebar, [data-theme="lavande"] .topbar { background: var(--panel); }
[data-theme="glace"] input, [data-theme="glace"] select, [data-theme="glace"] textarea, [data-theme="papier"] input, [data-theme="papier"] select, [data-theme="papier"] textarea, [data-theme="lavande"] input, [data-theme="lavande"] select, [data-theme="lavande"] textarea { color: var(--text); }
[data-theme="glace"] .nav-item.active, [data-theme="glace"] .nav-item:hover, [data-theme="papier"] .nav-item.active, [data-theme="papier"] .nav-item:hover, [data-theme="lavande"] .nav-item.active, [data-theme="lavande"] .nav-item:hover { color: var(--text); }
[data-theme="glace"] h1, [data-theme="glace"] h2, [data-theme="glace"] b, [data-theme="papier"] h1, [data-theme="papier"] h2, [data-theme="papier"] b, [data-theme="lavande"] h1, [data-theme="lavande"] h2, [data-theme="lavande"] b { color: inherit; }
