/**
 * 20 palettes — appliquées via data-palette sur <html>
 */

html[data-palette="regie-default"] { /* valeurs :root dans style.css */ }

html[data-palette="studio-noir"] {
    --bg-dark: #050508;
    --bg-panel: #0e0e12;
    --bg-card: #141418;
    --bg-hover: #1e1e24;
    --border: #2a2a32;
    --blue: #6eb6ff;
    --blue-bg: rgba(110, 182, 255, 0.14);
    --chat: #b48cff;
    --chat-bg: rgba(180, 140, 255, 0.18);
}

html[data-palette="broadcast-bleu"] {
    --bg-dark: #0a1628;
    --bg-panel: #0f2140;
    --bg-card: #132a52;
    --bg-hover: #1a3668;
    --border: #244278;
    --blue: #4da3ff;
    --blue-bg: rgba(77, 163, 255, 0.2);
    --green: #4ade80;
    --chat: #7cb9ff;
    --chat-bg: rgba(124, 185, 255, 0.2);
}

html[data-palette="direct-rouge"] {
    --bg-dark: #140a0a;
    --bg-panel: #1f1010;
    --bg-card: #2a1414;
    --bg-hover: #3a1a1a;
    --border: #4a2828;
    --blue: #ff8a84;
    --red: #ff6b6b;
    --red-bg: rgba(255, 107, 107, 0.22);
    --orange: #ffb347;
    --chat: #ff9ecd;
    --chat-bg: rgba(255, 158, 205, 0.18);
}

html[data-palette="plateau-vert"] {
    --bg-dark: #0a120e;
    --bg-panel: #101a14;
    --bg-card: #142218;
    --bg-hover: #1c3024;
    --border: #284032;
    --blue: #56d4a0;
    --green: #3fb950;
    --green-bg: rgba(63, 185, 80, 0.22);
    --chat: #7dcea0;
    --chat-bg: rgba(125, 206, 160, 0.18);
}

html[data-palette="warm-ambre"] {
    --bg-dark: #12100c;
    --bg-panel: #1a1610;
    --bg-card: #221c14;
    --bg-hover: #302818;
    --border: #403528;
    --blue: #ffc266;
    --orange: #f5a623;
    --orange-bg: rgba(245, 166, 35, 0.22);
    --chat: #e8b86d;
    --chat-bg: rgba(232, 184, 109, 0.2);
}

html[data-palette="scene-violet"] {
    --bg-dark: #100c18;
    --bg-panel: #181024;
    --bg-card: #201430;
    --bg-hover: #2c1c42;
    --border: #3a2854;
    --blue: #c4a8ff;
    --chat: #d2a8ff;
    --chat-bg: rgba(210, 168, 255, 0.22);
    --red: #ff7eb6;
}

html[data-palette="cyan-froid"] {
    --bg-dark: #081214;
    --bg-panel: #0c1c20;
    --bg-card: #102428;
    --bg-hover: #143238;
    --border: #1e4450;
    --blue: #39c5cf;
    --blue-bg: rgba(57, 197, 207, 0.2);
    --green: #5eead4;
    --chat: #67e8f9;
    --chat-bg: rgba(103, 232, 249, 0.18);
}

html[data-palette="alerte-orange"] {
    --bg-dark: #140e08;
    --bg-panel: #1e140c;
    --bg-card: #281a10;
    --bg-hover: #382414;
    --border: #483020;
    --blue: #ffb380;
    --orange: #ff7b47;
    --orange-bg: rgba(255, 123, 71, 0.25);
    --red: #ff5757;
    --chat: #ffaa6c;
    --chat-bg: rgba(255, 170, 108, 0.2);
}

html[data-palette="rose-live"] {
    --bg-dark: #140c10;
    --bg-panel: #1e1218;
    --bg-card: #281820;
    --bg-hover: #382028;
    --border: #482830;
    --blue: #f9a8d4;
    --red: #fb7185;
    --chat: #f778ba;
    --chat-bg: rgba(247, 120, 186, 0.22);
}

html[data-palette="ardoise-pro"] {
    --bg-dark: #1c2128;
    --bg-panel: #242b35;
    --bg-card: #2c3440;
    --bg-hover: #363f4d;
    --border: #444d5c;
    --text-primary: #e8ecf2;
    --text-secondary: #9aa5b5;
    --blue: #8b9cb3;
    --blue-bg: rgba(139, 156, 179, 0.18);
    --chat: #a8b8cc;
    --chat-bg: rgba(168, 184, 204, 0.15);
}

html[data-palette="or-premium"] {
    --bg-dark: #100e08;
    --bg-panel: #18140c;
    --bg-card: #201a10;
    --bg-hover: #2c2414;
    --border: #3a3020;
    --blue: #e3b341;
    --blue-bg: rgba(227, 179, 65, 0.18);
    --orange: #d4a72c;
    --chat: #f0c674;
    --chat-bg: rgba(240, 198, 116, 0.18);
}

html[data-palette="teal-sombre"] {
    --bg-dark: #081210;
    --bg-panel: #0c1a18;
    --bg-card: #102220;
    --bg-hover: #14302c;
    --border: #1c4038;
    --blue: #2dd4bf;
    --blue-bg: rgba(45, 212, 191, 0.18);
    --green: #5eead4;
    --chat: #99f6e4;
    --chat-bg: rgba(153, 246, 228, 0.15);
}

html[data-palette="indigo-nuit"] {
    --bg-dark: #0c0a1a;
    --bg-panel: #121028;
    --bg-card: #181636;
    --bg-hover: #221e48;
    --border: #2e2858;
    --blue: #6e7ff2;
    --blue-bg: rgba(110, 127, 242, 0.2);
    --chat: #a5b4fc;
    --chat-bg: rgba(165, 180, 252, 0.18);
}

html[data-palette="lime-actif"] {
    --bg-dark: #0c1008;
    --bg-panel: #12180c;
    --bg-card: #182010;
    --bg-hover: #202c14;
    --border: #2a381c;
    --blue: #7ee787;
    --blue-bg: rgba(126, 231, 135, 0.16);
    --green: #56d364;
    --green-bg: rgba(86, 211, 100, 0.2);
    --chat: #aff5b4;
    --chat-bg: rgba(175, 245, 180, 0.15);
}

html[data-palette="corail-sunset"] {
    --bg-dark: #140c0a;
    --bg-panel: #1e1210;
    --bg-card: #281816;
    --bg-hover: #38201c;
    --border: #482a24;
    --blue: #ff9b7a;
    --orange: #ff8c69;
    --red: #ff6b6b;
    --chat: #ffb4a2;
    --chat-bg: rgba(255, 180, 162, 0.2);
}

html[data-palette="minuit"] {
    --bg-dark: #06080f;
    --bg-panel: #0a1020;
    --bg-card: #0e1628;
    --bg-hover: #121e38;
    --border: #1a2a48;
    --blue: #79c0ff;
    --blue-bg: rgba(121, 192, 255, 0.18);
    --chat: #91b8ff;
    --chat-bg: rgba(145, 184, 255, 0.18);
}

html[data-palette="graphite"] {
    --bg-dark: #1a1a1a;
    --bg-panel: #242424;
    --bg-card: #2e2e2e;
    --bg-hover: #3a3a3a;
    --border: #484848;
    --text-primary: #f5f5f5;
    --text-secondary: #a8a8a8;
    --blue: #b1bac4;
    --blue-bg: rgba(177, 186, 196, 0.15);
    --chat: #c9d1d9;
    --chat-bg: rgba(201, 209, 217, 0.12);
}

html[data-palette="nordic"] {
    --bg-dark: #2e3440;
    --bg-panel: #3b4252;
    --bg-card: #434c5e;
    --bg-hover: #4c566a;
    --border: #4c566a;
    --text-primary: #eceff4;
    --text-secondary: #d8dee9;
    --blue: #88c0d0;
    --blue-bg: rgba(136, 192, 208, 0.2);
    --red: #bf616a;
    --orange: #d08770;
    --green: #a3be8c;
    --chat: #b48ead;
    --chat-bg: rgba(180, 142, 173, 0.2);
}

html[data-palette="royal-purple"] {
    --bg-dark: #120818;
    --bg-panel: #1a0c28;
    --bg-card: #221038;
    --bg-hover: #2e1448;
    --border: #3c1c58;
    --blue: #bc8cff;
    --blue-bg: rgba(188, 140, 255, 0.2);
    --chat: #d8b4fe;
    --chat-bg: rgba(216, 180, 254, 0.22);
    --red: #f472b6;
}
