/* ============================================================
   Prism.js — thème GOODEV
   Basé sur les variables CSS du design system.
   Support dark mode via [data-theme="dark"].
   ============================================================ */

code[class*="language-"],
pre[class*="language-"] {
  color: #24292e;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.88em;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.6;
  tab-size: 4;
  hyphens: none;
}

pre[class*="language-"] {
  padding: 1.2rem;
  margin: 0 0 1.5rem;
  overflow-x: auto;
  border-radius: 4px;
  background: #f6f8fa;
  border: 1px solid var(--border-color);
}

:not(pre) > code[class*="language-"] {
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: #f6f8fa;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #6a737d;
  font-style: italic;
}

.token.punctuation {
  color: #24292e;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: #005cc5;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #22863a;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string {
  color: #d73a49;
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #d73a49;
}

.token.function,
.token.class-name {
  color: #6f42c1;
}

.token.regex,
.token.important,
.token.variable {
  color: #e36209;
}

.token.important,
.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}

/* ============================================================
   Dark mode
   ============================================================ */

[data-theme="dark"] code[class*="language-"],
[data-theme="dark"] pre[class*="language-"] {
  color: #e1e4e8;
}

[data-theme="dark"] pre[class*="language-"] {
  background: #1b1f23;
}

[data-theme="dark"] :not(pre) > code[class*="language-"] {
  background: #1b1f23;
}

[data-theme="dark"] .token.comment,
[data-theme="dark"] .token.prolog,
[data-theme="dark"] .token.doctype,
[data-theme="dark"] .token.cdata {
  color: #6a737d;
}

[data-theme="dark"] .token.punctuation {
  color: #e1e4e8;
}

[data-theme="dark"] .token.property,
[data-theme="dark"] .token.tag,
[data-theme="dark"] .token.boolean,
[data-theme="dark"] .token.number,
[data-theme="dark"] .token.constant,
[data-theme="dark"] .token.symbol,
[data-theme="dark"] .token.deleted {
  color: #79b8ff;
}

[data-theme="dark"] .token.selector,
[data-theme="dark"] .token.attr-name,
[data-theme="dark"] .token.string,
[data-theme="dark"] .token.char,
[data-theme="dark"] .token.builtin,
[data-theme="dark"] .token.inserted {
  color: #85e89d;
}

[data-theme="dark"] .token.operator,
[data-theme="dark"] .token.entity,
[data-theme="dark"] .token.url,
[data-theme="dark"] .language-css .token.string {
  color: #f97583;
}

[data-theme="dark"] .token.atrule,
[data-theme="dark"] .token.attr-value,
[data-theme="dark"] .token.keyword {
  color: #f97583;
}

[data-theme="dark"] .token.function,
[data-theme="dark"] .token.class-name {
  color: #b392f0;
}

[data-theme="dark"] .token.regex,
[data-theme="dark"] .token.important,
[data-theme="dark"] .token.variable {
  color: #ffab70;
}
