/* Velora — palettes de couleur (choisies par l'utilisateur), clair / sombre.
   Fichier généré par scripts/themes.mjs (palettes, aperçus, pastilles) : pour changer une couleur, modifie le script
   puis lance `node scripts/themes.mjs`. Choix gardé dans localStorage (associe-ofm:accent / associe-ofm:theme),
   appliqué sur <html data-accent data-theme>. */

/* Velora */
:root, :root[data-accent="rose"] { --accent: #757574; --accent-2: #7b7b7a; --accent-ink: #ffffff; --on-accent: #ffffff; --grad: linear-gradient(135deg, #929291 0%, #7e7e7d 55%, #797978 100%); --bg: hsl(330 22% 97.5%); --bg-2: hsl(330 18% 95%); --surface: hsl(330 45% 99.6%); --surface-2: hsl(330 20% 96%); --line: hsl(330 16% 89%); --fg: hsl(330 24% 12%); --muted: hsl(330 9% 40%); --accent-soft: rgba(117, 117, 116, 0.1); --bg-glow: rgba(117, 117, 116, 0.1); --glow: rgba(117, 117, 116, 0.32); }
@media (prefers-color-scheme: dark) { :root:not([data-accent]):not([data-theme="light"]), :root[data-accent="rose"]:not([data-theme="light"]) { --accent: #a6a6a5; --accent-2: #9d9d9c; --accent-ink: #ffffff; --on-accent: #ffffff; --grad: linear-gradient(135deg, #979796 0%, #8a8a89 55%, #858584 100%); --bg: hsl(330 24% 6.5%); --bg-2: hsl(330 20% 8.5%); --surface: hsl(330 17% 10.5%); --surface-2: hsl(330 15% 14%); --line: hsl(330 13% 19%); --fg: hsl(330 20% 94%); --muted: hsl(330 10% 66%); --accent-soft: rgba(166, 166, 165, 0.15); --bg-glow: rgba(166, 166, 165, 0.14); --glow: rgba(166, 166, 165, 0.4); } }
:root:not([data-accent])[data-theme="dark"], :root[data-accent="rose"][data-theme="dark"] { --accent: #a6a6a5; --accent-2: #9d9d9c; --accent-ink: #ffffff; --on-accent: #ffffff; --grad: linear-gradient(135deg, #979796 0%, #8a8a89 55%, #858584 100%); --bg: hsl(330 24% 6.5%); --bg-2: hsl(330 20% 8.5%); --surface: hsl(330 17% 10.5%); --surface-2: hsl(330 15% 14%); --line: hsl(330 13% 19%); --fg: hsl(330 20% 94%); --muted: hsl(330 10% 66%); --accent-soft: rgba(166, 166, 165, 0.15); --bg-glow: rgba(166, 166, 165, 0.14); --glow: rgba(166, 166, 165, 0.4); }

/* Minuit */
:root[data-accent="bleu"] { --accent: #3366ff; --accent-2: #0891b2; --accent-ink: #ffffff; --on-accent: #ffffff; --grad: linear-gradient(135deg, #4f7cff 0%, #3366ff 55%, #22b8cf 100%); --bg: hsl(225 22% 97.5%); --bg-2: hsl(225 18% 95%); --surface: hsl(225 45% 99.6%); --surface-2: hsl(225 20% 96%); --line: hsl(225 16% 89%); --fg: hsl(225 24% 12%); --muted: hsl(225 9% 40%); --accent-soft: rgba(51, 102, 255, 0.1); --bg-glow: rgba(51, 102, 255, 0.1); --glow: rgba(51, 102, 255, 0.32); }
@media (prefers-color-scheme: dark) { :root[data-accent="bleu"]:not([data-theme="light"]) { --accent: #7aa2ff; --accent-2: #67e8f9; --accent-ink: #ffffff; --on-accent: #ffffff; --grad: linear-gradient(135deg, #5b86ff 0%, #4f6dff 55%, #2cc4de 100%); --bg: hsl(225 24% 6.5%); --bg-2: hsl(225 20% 8.5%); --surface: hsl(225 17% 10.5%); --surface-2: hsl(225 15% 14%); --line: hsl(225 13% 19%); --fg: hsl(225 20% 94%); --muted: hsl(225 10% 66%); --accent-soft: rgba(122, 162, 255, 0.15); --bg-glow: rgba(122, 162, 255, 0.14); --glow: rgba(122, 162, 255, 0.4); } }
:root[data-accent="bleu"][data-theme="dark"] { --accent: #7aa2ff; --accent-2: #67e8f9; --accent-ink: #ffffff; --on-accent: #ffffff; --grad: linear-gradient(135deg, #5b86ff 0%, #4f6dff 55%, #2cc4de 100%); --bg: hsl(225 24% 6.5%); --bg-2: hsl(225 20% 8.5%); --surface: hsl(225 17% 10.5%); --surface-2: hsl(225 15% 14%); --line: hsl(225 13% 19%); --fg: hsl(225 20% 94%); --muted: hsl(225 10% 66%); --accent-soft: rgba(122, 162, 255, 0.15); --bg-glow: rgba(122, 162, 255, 0.14); --glow: rgba(122, 162, 255, 0.4); }

/* Lagon */
:root[data-accent="ocean"] { --accent: #0e9aa7; --accent-2: #2563eb; --accent-ink: #ffffff; --on-accent: #ffffff; --grad: linear-gradient(135deg, #14b8a6 0%, #0ea5c4 55%, #3b82f6 100%); --bg: hsl(190 22% 97.5%); --bg-2: hsl(190 18% 95%); --surface: hsl(190 45% 99.6%); --surface-2: hsl(190 20% 96%); --line: hsl(190 16% 89%); --fg: hsl(190 24% 12%); --muted: hsl(190 9% 40%); --accent-soft: rgba(14, 154, 167, 0.1); --bg-glow: rgba(14, 154, 167, 0.1); --glow: rgba(14, 154, 167, 0.32); }
@media (prefers-color-scheme: dark) { :root[data-accent="ocean"]:not([data-theme="light"]) { --accent: #3dd6d0; --accent-2: #60a5fa; --accent-ink: #04151a; --on-accent: #04151a; --grad: linear-gradient(135deg, #2dd4bf 0%, #22b8d6 55%, #4f8ff7 100%); --bg: hsl(190 24% 6.5%); --bg-2: hsl(190 20% 8.5%); --surface: hsl(190 17% 10.5%); --surface-2: hsl(190 15% 14%); --line: hsl(190 13% 19%); --fg: hsl(190 20% 94%); --muted: hsl(190 10% 66%); --accent-soft: rgba(61, 214, 208, 0.15); --bg-glow: rgba(61, 214, 208, 0.14); --glow: rgba(61, 214, 208, 0.4); } }
:root[data-accent="ocean"][data-theme="dark"] { --accent: #3dd6d0; --accent-2: #60a5fa; --accent-ink: #04151a; --on-accent: #04151a; --grad: linear-gradient(135deg, #2dd4bf 0%, #22b8d6 55%, #4f8ff7 100%); --bg: hsl(190 24% 6.5%); --bg-2: hsl(190 20% 8.5%); --surface: hsl(190 17% 10.5%); --surface-2: hsl(190 15% 14%); --line: hsl(190 13% 19%); --fg: hsl(190 20% 94%); --muted: hsl(190 10% 66%); --accent-soft: rgba(61, 214, 208, 0.15); --bg-glow: rgba(61, 214, 208, 0.14); --glow: rgba(61, 214, 208, 0.4); }

/* Émeraude */
:root[data-accent="vert"] { --accent: #0f9f6e; --accent-2: #65a30d; --accent-ink: #ffffff; --on-accent: #ffffff; --grad: linear-gradient(135deg, #10b981 0%, #0ea371 55%, #84cc16 100%); --bg: hsl(155 22% 97.5%); --bg-2: hsl(155 18% 95%); --surface: hsl(155 45% 99.6%); --surface-2: hsl(155 20% 96%); --line: hsl(155 16% 89%); --fg: hsl(155 24% 12%); --muted: hsl(155 9% 40%); --accent-soft: rgba(15, 159, 110, 0.1); --bg-glow: rgba(15, 159, 110, 0.1); --glow: rgba(15, 159, 110, 0.32); }
@media (prefers-color-scheme: dark) { :root[data-accent="vert"]:not([data-theme="light"]) { --accent: #34d399; --accent-2: #a3e635; --accent-ink: #03140d; --on-accent: #03140d; --grad: linear-gradient(135deg, #34d399 0%, #22c38a 55%, #a3e635 100%); --bg: hsl(155 24% 6.5%); --bg-2: hsl(155 20% 8.5%); --surface: hsl(155 17% 10.5%); --surface-2: hsl(155 15% 14%); --line: hsl(155 13% 19%); --fg: hsl(155 20% 94%); --muted: hsl(155 10% 66%); --accent-soft: rgba(52, 211, 153, 0.15); --bg-glow: rgba(52, 211, 153, 0.14); --glow: rgba(52, 211, 153, 0.4); } }
:root[data-accent="vert"][data-theme="dark"] { --accent: #34d399; --accent-2: #a3e635; --accent-ink: #03140d; --on-accent: #03140d; --grad: linear-gradient(135deg, #34d399 0%, #22c38a 55%, #a3e635 100%); --bg: hsl(155 24% 6.5%); --bg-2: hsl(155 20% 8.5%); --surface: hsl(155 17% 10.5%); --surface-2: hsl(155 15% 14%); --line: hsl(155 13% 19%); --fg: hsl(155 20% 94%); --muted: hsl(155 10% 66%); --accent-soft: rgba(52, 211, 153, 0.15); --bg-glow: rgba(52, 211, 153, 0.14); --glow: rgba(52, 211, 153, 0.4); }

/* Or */
:root[data-accent="sable"] { --accent: #c27a06; --accent-2: #ea580c; --accent-ink: #1c1204; --on-accent: #1c1204; --grad: linear-gradient(135deg, #f5b82e 0%, #e8930c 55%, #f97316 100%); --bg: hsl(40 22% 97.5%); --bg-2: hsl(40 18% 95%); --surface: hsl(40 45% 99.6%); --surface-2: hsl(40 20% 96%); --line: hsl(40 16% 89%); --fg: hsl(40 24% 12%); --muted: hsl(40 9% 40%); --accent-soft: rgba(194, 122, 6, 0.1); --bg-glow: rgba(194, 122, 6, 0.1); --glow: rgba(194, 122, 6, 0.32); }
@media (prefers-color-scheme: dark) { :root[data-accent="sable"]:not([data-theme="light"]) { --accent: #f7c55a; --accent-2: #fb923c; --accent-ink: #1c1204; --on-accent: #1c1204; --grad: linear-gradient(135deg, #fcd168 0%, #f5a524 55%, #fb8a3c 100%); --bg: hsl(40 24% 6.5%); --bg-2: hsl(40 20% 8.5%); --surface: hsl(40 17% 10.5%); --surface-2: hsl(40 15% 14%); --line: hsl(40 13% 19%); --fg: hsl(40 20% 94%); --muted: hsl(40 10% 66%); --accent-soft: rgba(247, 197, 90, 0.15); --bg-glow: rgba(247, 197, 90, 0.14); --glow: rgba(247, 197, 90, 0.4); } }
:root[data-accent="sable"][data-theme="dark"] { --accent: #f7c55a; --accent-2: #fb923c; --accent-ink: #1c1204; --on-accent: #1c1204; --grad: linear-gradient(135deg, #fcd168 0%, #f5a524 55%, #fb8a3c 100%); --bg: hsl(40 24% 6.5%); --bg-2: hsl(40 20% 8.5%); --surface: hsl(40 17% 10.5%); --surface-2: hsl(40 15% 14%); --line: hsl(40 13% 19%); --fg: hsl(40 20% 94%); --muted: hsl(40 10% 66%); --accent-soft: rgba(247, 197, 90, 0.15); --bg-glow: rgba(247, 197, 90, 0.14); --glow: rgba(247, 197, 90, 0.4); }

/* Corail */
:root[data-accent="rouge"] { --accent: #e5484d; --accent-2: #f97316; --accent-ink: #ffffff; --on-accent: #ffffff; --grad: linear-gradient(135deg, #ff5a6a 0%, #f2434e 55%, #ff9a3c 100%); --bg: hsl(10 22% 97.5%); --bg-2: hsl(10 18% 95%); --surface: hsl(10 45% 99.6%); --surface-2: hsl(10 20% 96%); --line: hsl(10 16% 89%); --fg: hsl(10 24% 12%); --muted: hsl(10 9% 40%); --accent-soft: rgba(229, 72, 77, 0.1); --bg-glow: rgba(229, 72, 77, 0.1); --glow: rgba(229, 72, 77, 0.32); }
@media (prefers-color-scheme: dark) { :root[data-accent="rouge"]:not([data-theme="light"]) { --accent: #ff8080; --accent-2: #fdba74; --accent-ink: #ffffff; --on-accent: #ffffff; --grad: linear-gradient(135deg, #ff6b78 0%, #f5535c 55%, #ffa94d 100%); --bg: hsl(10 24% 6.5%); --bg-2: hsl(10 20% 8.5%); --surface: hsl(10 17% 10.5%); --surface-2: hsl(10 15% 14%); --line: hsl(10 13% 19%); --fg: hsl(10 20% 94%); --muted: hsl(10 10% 66%); --accent-soft: rgba(255, 128, 128, 0.15); --bg-glow: rgba(255, 128, 128, 0.14); --glow: rgba(255, 128, 128, 0.4); } }
:root[data-accent="rouge"][data-theme="dark"] { --accent: #ff8080; --accent-2: #fdba74; --accent-ink: #ffffff; --on-accent: #ffffff; --grad: linear-gradient(135deg, #ff6b78 0%, #f5535c 55%, #ffa94d 100%); --bg: hsl(10 24% 6.5%); --bg-2: hsl(10 20% 8.5%); --surface: hsl(10 17% 10.5%); --surface-2: hsl(10 15% 14%); --line: hsl(10 13% 19%); --fg: hsl(10 20% 94%); --muted: hsl(10 10% 66%); --accent-soft: rgba(255, 128, 128, 0.15); --bg-glow: rgba(255, 128, 128, 0.14); --glow: rgba(255, 128, 128, 0.4); }

/* Nébuleuse */
:root[data-accent="violet"] { --accent: #676766; --accent-2: #757574; --accent-ink: #ffffff; --on-accent: #ffffff; --grad: linear-gradient(135deg, #7b7b7a 0%, #676766 55%, #888887 100%); --bg: hsl(265 22% 97.5%); --bg-2: hsl(265 18% 95%); --surface: hsl(265 45% 99.6%); --surface-2: hsl(265 20% 96%); --line: hsl(265 16% 89%); --fg: hsl(265 24% 12%); --muted: hsl(265 9% 40%); --accent-soft: rgba(103, 103, 102, 0.1); --bg-glow: rgba(103, 103, 102, 0.1); --glow: rgba(103, 103, 102, 0.32); }
@media (prefers-color-scheme: dark) { :root[data-accent="violet"]:not([data-theme="light"]) { --accent: #a7a7a6; --accent-2: #9f9f9e; --accent-ink: #ffffff; --on-accent: #ffffff; --grad: linear-gradient(135deg, #8e8e8d 0%, #7b7b7a 55%, #9a9a99 100%); --bg: hsl(265 24% 6.5%); --bg-2: hsl(265 20% 8.5%); --surface: hsl(265 17% 10.5%); --surface-2: hsl(265 15% 14%); --line: hsl(265 13% 19%); --fg: hsl(265 20% 94%); --muted: hsl(265 10% 66%); --accent-soft: rgba(167, 167, 166, 0.15); --bg-glow: rgba(167, 167, 166, 0.14); --glow: rgba(167, 167, 166, 0.4); } }
:root[data-accent="violet"][data-theme="dark"] { --accent: #a7a7a6; --accent-2: #9f9f9e; --accent-ink: #ffffff; --on-accent: #ffffff; --grad: linear-gradient(135deg, #8e8e8d 0%, #7b7b7a 55%, #9a9a99 100%); --bg: hsl(265 24% 6.5%); --bg-2: hsl(265 20% 8.5%); --surface: hsl(265 17% 10.5%); --surface-2: hsl(265 15% 14%); --line: hsl(265 13% 19%); --fg: hsl(265 20% 94%); --muted: hsl(265 10% 66%); --accent-soft: rgba(167, 167, 166, 0.15); --bg-glow: rgba(167, 167, 166, 0.14); --glow: rgba(167, 167, 166, 0.4); }

/* Graphite */
:root[data-accent="mono"] { --accent: #1f2430; --accent-2: #5b6474; --accent-ink: #ffffff; --on-accent: #ffffff; --grad: linear-gradient(135deg, #3a4150 0%, #1f2430 55%, #11141b 100%); --bg: hsl(225 5.5% 97.5%); --bg-2: hsl(225 4.5% 95%); --surface: hsl(225 11.3% 99.6%); --surface-2: hsl(225 5% 96%); --line: hsl(225 4% 89%); --fg: hsl(225 6% 12%); --muted: hsl(225 2.3% 40%); --accent-soft: rgba(31, 36, 48, 0.1); --bg-glow: rgba(31, 36, 48, 0.1); --glow: rgba(31, 36, 48, 0.32); }
@media (prefers-color-scheme: dark) { :root[data-accent="mono"]:not([data-theme="light"]) { --accent: #e4e7ec; --accent-2: #a6adb9; --accent-ink: #111318; --on-accent: #111318; --grad: linear-gradient(135deg, #ffffff 0%, #e4e7ec 55%, #b8bfca 100%); --bg: hsl(225 6% 6.5%); --bg-2: hsl(225 5% 8.5%); --surface: hsl(225 4.3% 10.5%); --surface-2: hsl(225 3.8% 14%); --line: hsl(225 3.3% 19%); --fg: hsl(225 5% 94%); --muted: hsl(225 2.5% 66%); --accent-soft: rgba(228, 231, 236, 0.15); --bg-glow: rgba(228, 231, 236, 0.14); --glow: rgba(228, 231, 236, 0.4); } }
:root[data-accent="mono"][data-theme="dark"] { --accent: #e4e7ec; --accent-2: #a6adb9; --accent-ink: #111318; --on-accent: #111318; --grad: linear-gradient(135deg, #ffffff 0%, #e4e7ec 55%, #b8bfca 100%); --bg: hsl(225 6% 6.5%); --bg-2: hsl(225 5% 8.5%); --surface: hsl(225 4.3% 10.5%); --surface-2: hsl(225 3.8% 14%); --line: hsl(225 3.3% 19%); --fg: hsl(225 5% 94%); --muted: hsl(225 2.5% 66%); --accent-soft: rgba(228, 231, 236, 0.15); --bg-glow: rgba(228, 231, 236, 0.14); --glow: rgba(228, 231, 236, 0.4); }

/* ---------- aperçus des palettes (page Apparence) ---------- */
.pal[data-p="rose"] { --p-bg: hsl(330 22% 97.5%); --p-side: hsl(330 18% 95%); --p-surface: hsl(330 45% 99.6%); --p-line: hsl(330 16% 89%); --p-fg: hsl(330 24% 12%); --p-muted: hsl(330 9% 40%); --p-accent: #757574; --p-grad: linear-gradient(135deg, #929291 0%, #7e7e7d 55%, #797978 100%); --p-soft: rgba(117, 117, 116, 0.14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pal[data-p="rose"] { --p-bg: hsl(330 24% 6.5%); --p-side: hsl(330 20% 8.5%); --p-surface: hsl(330 17% 10.5%); --p-line: hsl(330 13% 19%); --p-fg: hsl(330 20% 94%); --p-muted: hsl(330 10% 66%); --p-accent: #a6a6a5; --p-grad: linear-gradient(135deg, #979796 0%, #8a8a89 55%, #858584 100%); --p-soft: rgba(166, 166, 165, 0.14); } }
:root[data-theme="dark"] .pal[data-p="rose"] { --p-bg: hsl(330 24% 6.5%); --p-side: hsl(330 20% 8.5%); --p-surface: hsl(330 17% 10.5%); --p-line: hsl(330 13% 19%); --p-fg: hsl(330 20% 94%); --p-muted: hsl(330 10% 66%); --p-accent: #a6a6a5; --p-grad: linear-gradient(135deg, #979796 0%, #8a8a89 55%, #858584 100%); --p-soft: rgba(166, 166, 165, 0.14); }
.pal[data-p="bleu"] { --p-bg: hsl(225 22% 97.5%); --p-side: hsl(225 18% 95%); --p-surface: hsl(225 45% 99.6%); --p-line: hsl(225 16% 89%); --p-fg: hsl(225 24% 12%); --p-muted: hsl(225 9% 40%); --p-accent: #3366ff; --p-grad: linear-gradient(135deg, #4f7cff 0%, #3366ff 55%, #22b8cf 100%); --p-soft: rgba(51, 102, 255, 0.14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pal[data-p="bleu"] { --p-bg: hsl(225 24% 6.5%); --p-side: hsl(225 20% 8.5%); --p-surface: hsl(225 17% 10.5%); --p-line: hsl(225 13% 19%); --p-fg: hsl(225 20% 94%); --p-muted: hsl(225 10% 66%); --p-accent: #7aa2ff; --p-grad: linear-gradient(135deg, #5b86ff 0%, #4f6dff 55%, #2cc4de 100%); --p-soft: rgba(122, 162, 255, 0.14); } }
:root[data-theme="dark"] .pal[data-p="bleu"] { --p-bg: hsl(225 24% 6.5%); --p-side: hsl(225 20% 8.5%); --p-surface: hsl(225 17% 10.5%); --p-line: hsl(225 13% 19%); --p-fg: hsl(225 20% 94%); --p-muted: hsl(225 10% 66%); --p-accent: #7aa2ff; --p-grad: linear-gradient(135deg, #5b86ff 0%, #4f6dff 55%, #2cc4de 100%); --p-soft: rgba(122, 162, 255, 0.14); }
.pal[data-p="ocean"] { --p-bg: hsl(190 22% 97.5%); --p-side: hsl(190 18% 95%); --p-surface: hsl(190 45% 99.6%); --p-line: hsl(190 16% 89%); --p-fg: hsl(190 24% 12%); --p-muted: hsl(190 9% 40%); --p-accent: #0e9aa7; --p-grad: linear-gradient(135deg, #14b8a6 0%, #0ea5c4 55%, #3b82f6 100%); --p-soft: rgba(14, 154, 167, 0.14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pal[data-p="ocean"] { --p-bg: hsl(190 24% 6.5%); --p-side: hsl(190 20% 8.5%); --p-surface: hsl(190 17% 10.5%); --p-line: hsl(190 13% 19%); --p-fg: hsl(190 20% 94%); --p-muted: hsl(190 10% 66%); --p-accent: #3dd6d0; --p-grad: linear-gradient(135deg, #2dd4bf 0%, #22b8d6 55%, #4f8ff7 100%); --p-soft: rgba(61, 214, 208, 0.14); } }
:root[data-theme="dark"] .pal[data-p="ocean"] { --p-bg: hsl(190 24% 6.5%); --p-side: hsl(190 20% 8.5%); --p-surface: hsl(190 17% 10.5%); --p-line: hsl(190 13% 19%); --p-fg: hsl(190 20% 94%); --p-muted: hsl(190 10% 66%); --p-accent: #3dd6d0; --p-grad: linear-gradient(135deg, #2dd4bf 0%, #22b8d6 55%, #4f8ff7 100%); --p-soft: rgba(61, 214, 208, 0.14); }
.pal[data-p="vert"] { --p-bg: hsl(155 22% 97.5%); --p-side: hsl(155 18% 95%); --p-surface: hsl(155 45% 99.6%); --p-line: hsl(155 16% 89%); --p-fg: hsl(155 24% 12%); --p-muted: hsl(155 9% 40%); --p-accent: #0f9f6e; --p-grad: linear-gradient(135deg, #10b981 0%, #0ea371 55%, #84cc16 100%); --p-soft: rgba(15, 159, 110, 0.14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pal[data-p="vert"] { --p-bg: hsl(155 24% 6.5%); --p-side: hsl(155 20% 8.5%); --p-surface: hsl(155 17% 10.5%); --p-line: hsl(155 13% 19%); --p-fg: hsl(155 20% 94%); --p-muted: hsl(155 10% 66%); --p-accent: #34d399; --p-grad: linear-gradient(135deg, #34d399 0%, #22c38a 55%, #a3e635 100%); --p-soft: rgba(52, 211, 153, 0.14); } }
:root[data-theme="dark"] .pal[data-p="vert"] { --p-bg: hsl(155 24% 6.5%); --p-side: hsl(155 20% 8.5%); --p-surface: hsl(155 17% 10.5%); --p-line: hsl(155 13% 19%); --p-fg: hsl(155 20% 94%); --p-muted: hsl(155 10% 66%); --p-accent: #34d399; --p-grad: linear-gradient(135deg, #34d399 0%, #22c38a 55%, #a3e635 100%); --p-soft: rgba(52, 211, 153, 0.14); }
.pal[data-p="sable"] { --p-bg: hsl(40 22% 97.5%); --p-side: hsl(40 18% 95%); --p-surface: hsl(40 45% 99.6%); --p-line: hsl(40 16% 89%); --p-fg: hsl(40 24% 12%); --p-muted: hsl(40 9% 40%); --p-accent: #c27a06; --p-grad: linear-gradient(135deg, #f5b82e 0%, #e8930c 55%, #f97316 100%); --p-soft: rgba(194, 122, 6, 0.14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pal[data-p="sable"] { --p-bg: hsl(40 24% 6.5%); --p-side: hsl(40 20% 8.5%); --p-surface: hsl(40 17% 10.5%); --p-line: hsl(40 13% 19%); --p-fg: hsl(40 20% 94%); --p-muted: hsl(40 10% 66%); --p-accent: #f7c55a; --p-grad: linear-gradient(135deg, #fcd168 0%, #f5a524 55%, #fb8a3c 100%); --p-soft: rgba(247, 197, 90, 0.14); } }
:root[data-theme="dark"] .pal[data-p="sable"] { --p-bg: hsl(40 24% 6.5%); --p-side: hsl(40 20% 8.5%); --p-surface: hsl(40 17% 10.5%); --p-line: hsl(40 13% 19%); --p-fg: hsl(40 20% 94%); --p-muted: hsl(40 10% 66%); --p-accent: #f7c55a; --p-grad: linear-gradient(135deg, #fcd168 0%, #f5a524 55%, #fb8a3c 100%); --p-soft: rgba(247, 197, 90, 0.14); }
.pal[data-p="rouge"] { --p-bg: hsl(10 22% 97.5%); --p-side: hsl(10 18% 95%); --p-surface: hsl(10 45% 99.6%); --p-line: hsl(10 16% 89%); --p-fg: hsl(10 24% 12%); --p-muted: hsl(10 9% 40%); --p-accent: #e5484d; --p-grad: linear-gradient(135deg, #ff5a6a 0%, #f2434e 55%, #ff9a3c 100%); --p-soft: rgba(229, 72, 77, 0.14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pal[data-p="rouge"] { --p-bg: hsl(10 24% 6.5%); --p-side: hsl(10 20% 8.5%); --p-surface: hsl(10 17% 10.5%); --p-line: hsl(10 13% 19%); --p-fg: hsl(10 20% 94%); --p-muted: hsl(10 10% 66%); --p-accent: #ff8080; --p-grad: linear-gradient(135deg, #ff6b78 0%, #f5535c 55%, #ffa94d 100%); --p-soft: rgba(255, 128, 128, 0.14); } }
:root[data-theme="dark"] .pal[data-p="rouge"] { --p-bg: hsl(10 24% 6.5%); --p-side: hsl(10 20% 8.5%); --p-surface: hsl(10 17% 10.5%); --p-line: hsl(10 13% 19%); --p-fg: hsl(10 20% 94%); --p-muted: hsl(10 10% 66%); --p-accent: #ff8080; --p-grad: linear-gradient(135deg, #ff6b78 0%, #f5535c 55%, #ffa94d 100%); --p-soft: rgba(255, 128, 128, 0.14); }
.pal[data-p="violet"] { --p-bg: hsl(265 22% 97.5%); --p-side: hsl(265 18% 95%); --p-surface: hsl(265 45% 99.6%); --p-line: hsl(265 16% 89%); --p-fg: hsl(265 24% 12%); --p-muted: hsl(265 9% 40%); --p-accent: #676766; --p-grad: linear-gradient(135deg, #7b7b7a 0%, #676766 55%, #888887 100%); --p-soft: rgba(103, 103, 102, 0.14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pal[data-p="violet"] { --p-bg: hsl(265 24% 6.5%); --p-side: hsl(265 20% 8.5%); --p-surface: hsl(265 17% 10.5%); --p-line: hsl(265 13% 19%); --p-fg: hsl(265 20% 94%); --p-muted: hsl(265 10% 66%); --p-accent: #a7a7a6; --p-grad: linear-gradient(135deg, #8e8e8d 0%, #7b7b7a 55%, #9a9a99 100%); --p-soft: rgba(167, 167, 166, 0.14); } }
:root[data-theme="dark"] .pal[data-p="violet"] { --p-bg: hsl(265 24% 6.5%); --p-side: hsl(265 20% 8.5%); --p-surface: hsl(265 17% 10.5%); --p-line: hsl(265 13% 19%); --p-fg: hsl(265 20% 94%); --p-muted: hsl(265 10% 66%); --p-accent: #a7a7a6; --p-grad: linear-gradient(135deg, #8e8e8d 0%, #7b7b7a 55%, #9a9a99 100%); --p-soft: rgba(167, 167, 166, 0.14); }
.pal[data-p="mono"] { --p-bg: hsl(225 5.5% 97.5%); --p-side: hsl(225 4.5% 95%); --p-surface: hsl(225 11.3% 99.6%); --p-line: hsl(225 4% 89%); --p-fg: hsl(225 6% 12%); --p-muted: hsl(225 2.3% 40%); --p-accent: #1f2430; --p-grad: linear-gradient(135deg, #3a4150 0%, #1f2430 55%, #11141b 100%); --p-soft: rgba(31, 36, 48, 0.14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pal[data-p="mono"] { --p-bg: hsl(225 6% 6.5%); --p-side: hsl(225 5% 8.5%); --p-surface: hsl(225 4.3% 10.5%); --p-line: hsl(225 3.3% 19%); --p-fg: hsl(225 5% 94%); --p-muted: hsl(225 2.5% 66%); --p-accent: #e4e7ec; --p-grad: linear-gradient(135deg, #ffffff 0%, #e4e7ec 55%, #b8bfca 100%); --p-soft: rgba(228, 231, 236, 0.14); } }
:root[data-theme="dark"] .pal[data-p="mono"] { --p-bg: hsl(225 6% 6.5%); --p-side: hsl(225 5% 8.5%); --p-surface: hsl(225 4.3% 10.5%); --p-line: hsl(225 3.3% 19%); --p-fg: hsl(225 5% 94%); --p-muted: hsl(225 2.5% 66%); --p-accent: #e4e7ec; --p-grad: linear-gradient(135deg, #ffffff 0%, #e4e7ec 55%, #b8bfca 100%); --p-soft: rgba(228, 231, 236, 0.14); }

/* ---------- pastilles (petit sélecteur) ---------- */
.swatch[data-accent="rose"] { background: linear-gradient(135deg, #929291 0%, #7e7e7d 55%, #797978 100%); }
.swatch[data-accent="bleu"] { background: linear-gradient(135deg, #4f7cff 0%, #3366ff 55%, #22b8cf 100%); }
.swatch[data-accent="ocean"] { background: linear-gradient(135deg, #14b8a6 0%, #0ea5c4 55%, #3b82f6 100%); }
.swatch[data-accent="vert"] { background: linear-gradient(135deg, #10b981 0%, #0ea371 55%, #84cc16 100%); }
.swatch[data-accent="sable"] { background: linear-gradient(135deg, #f5b82e 0%, #e8930c 55%, #f97316 100%); }
.swatch[data-accent="rouge"] { background: linear-gradient(135deg, #ff5a6a 0%, #f2434e 55%, #ff9a3c 100%); }
.swatch[data-accent="violet"] { background: linear-gradient(135deg, #7b7b7a 0%, #676766 55%, #888887 100%); }
.swatch[data-accent="mono"] { background: linear-gradient(135deg, #3a4150 0%, #1f2430 55%, #11141b 100%); }
/* ---------- fin de la partie générée ---------- */
/* ---------- couleurs d'état (erreur, succès, alerte) et ombres ---------- */
:root { --danger: #e5484d; --ok: #12a26b; --warn: #d97706; --gold: #8c6a2c; --gold-soft: rgba(140, 106, 44, .1); --grad-gold: linear-gradient(135deg, #a8843f, #8c6a2c); --shadow: 0 1px 2px rgba(20, 22, 28, .05), 0 4px 14px rgba(20, 22, 28, .04); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --danger: #ff8a8a; --ok: #4ade80; --warn: #fbbf24; --gold: #d8b97f; --gold-soft: rgba(216, 185, 127, .12); --grad-gold: linear-gradient(135deg, #e6cb98, #d0ac6a); --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 6px 18px rgba(0, 0, 0, .18); } }
:root[data-theme="dark"] { --danger: #ff8a8a; --ok: #4ade80; --warn: #fbbf24; --gold: #d8b97f; --gold-soft: rgba(216, 185, 127, .12); --grad-gold: linear-gradient(135deg, #e6cb98, #d0ac6a); --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 6px 18px rgba(0, 0, 0, .18); }

/* ---------- style : dégradé de la palette sur les boutons et le logo, halo léger, pas de grille ---------- */
body { background-image: none !important; }
.hero::after, .final::after { display: none !important; }
.hero::before { background: radial-gradient(620px 380px at 78% 18%, var(--bg-glow), transparent 70%), radial-gradient(520px 340px at 12% 8%, var(--accent-soft), transparent 70%) !important; }
.mock { transform: none !important; }
.mock, .coach-card, .plan.pop, .final, .num { box-shadow: var(--shadow) !important; }
.btn-primary, .btn-main { background: var(--grad) !important; box-shadow: 0 8px 22px -12px var(--glow) !important; }
.btn-primary:hover, .btn-main:hover:not(:disabled) { box-shadow: 0 10px 28px -10px var(--glow) !important; }
.logo { background: var(--grad) !important; }
/* Texte posé sur la couleur d'accent : blanc en clair, foncé en sombre (accents pastel). */
.btn-primary, .btn-main, .logo, .num, .mi, .ribbon, .pitch-ok,
.bubble.user, .msg.user .bubble, .billing button[aria-checked="true"], .dl button:first-child, .avatar { color: var(--on-accent) !important; }
/* Icônes : une seule couleur, sur un fond très léger. */
.ico, .flow-ico, .pi { background: var(--accent-soft) !important; border-color: transparent !important; box-shadow: none !important; }
.feat:hover .ico { transform: none; }

/* ---------- confort de lecture : moins de gras, moins de contraste dur ---------- */
h1 { font-weight: 650; letter-spacing: -0.02em; }
h2, h3 { font-weight: 600; letter-spacing: -0.02em; }
.intro h2 { font-weight: 650; letter-spacing: -0.025em; }
.hero h1 { font-weight: 650; font-size: clamp(38px, 5.4vw, 60px); letter-spacing: -0.03em; line-height: 1.08; }
.brand, .mock-title, .amount, .lock-pitch h2, .fit, .num, .kpi strong { font-weight: 700 !important; }
.lock-pitch h2 { letter-spacing: -0.025em; }
b, strong { font-weight: 600; }
.eyebrow { font-weight: 600; letter-spacing: .08em; }
.ribbon { font-weight: 600; }
::selection { background: var(--accent-soft); color: inherit; }
/* Le dernier appel du site : une carte calme plutôt qu'un grand aplat de couleur. */
.final { background: var(--surface) !important; border: 1px solid var(--line); color: var(--fg) !important; }
.final h2 { color: var(--fg) !important; }
.final p { color: var(--muted) !important; }
.final .btn-light { background: var(--accent) !important; color: var(--on-accent) !important; }
.final-ico { background: var(--accent-soft) !important; border-color: transparent !important; }
.final-ico .i { stroke: var(--accent) !important; }
/* Focus clavier visible mais discret. */
:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }

/* ---------- contraste renforcé (option de la page Apparence) ---------- */
:root[data-contrast="high"] { --muted: color-mix(in srgb, var(--fg) 80%, var(--bg)) !important; --line: color-mix(in srgb, var(--fg) 26%, var(--bg)) !important; }
:root[data-contrast="high"] body { -webkit-font-smoothing: auto; }

/* ---------- transition douce quand on change de thème ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: ease; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* ---------- page Apparence : vignettes des palettes ---------- */
.appearance { display: flex; flex-direction: column; gap: 16px; }
.appearance h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .pals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.appearance .theme-modes { max-width: 24rem; }
.pal { display: flex; flex-direction: column; gap: 7px; padding: 6px 6px 9px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; text-align: left; font: inherit; color: var(--fg); transition: border-color .15s, transform .15s; }
.pal:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--fg) 25%, var(--line)); }
.pal[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pal-prev { display: flex; height: 64px; border-radius: 9px; overflow: hidden; background: var(--p-bg); border: 1px solid var(--p-line); }
.pal-side { width: 26%; background: var(--p-side); border-right: 1px solid var(--p-line); display: flex; flex-direction: column; gap: 5px; padding: 8px 5px; }
.pal-side i { display: block; height: 4px; border-radius: 2px; background: var(--p-line); }
.pal-side i:first-child { background: var(--p-soft); }
.pal-body { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.pal-card { flex: 1; border-radius: 6px; background: var(--p-surface); border: 1px solid var(--p-line); padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.pal-card i { display: block; height: 4px; border-radius: 2px; background: var(--p-muted); opacity: .45; }
.pal-card i:first-child { width: 70%; background: var(--p-fg); opacity: .8; }
.pal-card b { display: block; width: 42%; height: 9px; border-radius: 4px; background: var(--p-grad, var(--p-accent)); margin-top: auto; }
.pal-name { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 4px; font-size: 13px; font-weight: 500; }
.pal-name .i { width: 15px; height: 15px; color: var(--accent); stroke: var(--accent); }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.opt-row > span { display: flex; flex-direction: column; font-size: 14px; }
.opt-row small { color: var(--muted); font-size: 12px; }

/* ---------- sélecteur de thème ---------- */
.theme-pick { display: flex; flex-direction: column; gap: 10px; }
.theme-modes { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.theme-modes button { flex: 1; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 8px; border-radius: 7px; cursor: pointer; }
.theme-modes button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.swatches { display: grid; grid-template-columns: repeat(4, 26px); gap: 9px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); outline: 1px solid var(--line); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--fg); }
.theme-name { font-size: 12px; color: var(--muted); }
.theme-wrap { position: relative; align-self: flex-start; }
.theme-pop { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 30; width: 230px; display: flex; flex-direction: column; gap: 10px;
  padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, .18); font-size: 13px; }
.theme-pop[hidden] { display: none; }
.foot-theme { display: flex; align-items: center; gap: 10px; }
.foot-theme .theme-pick { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
.foot-theme .swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.foot-theme .swatch { width: 20px; height: 20px; }
.foot-theme .theme-name { display: none; }
.foot-theme .theme-modes button { padding: 4px 8px; font-size: 12px; }
