/* Généré par scripts/build-tokens.mjs depuis tokens/tokens.json : ne pas éditer à la main. */

/* Constantes de marque, préfixées --mpc- */
:root {
  --mpc-color-brand-petrole: #0e7490;
  --mpc-color-brand-petrole-clair: #4fb3c9;
  --mpc-color-brand-rose: #f6b3c4;
  --mpc-color-brand-rose-fonce: #a0405f;
  --mpc-color-brand-encre: #14161c;
  --mpc-color-brand-papier: #fafafa;
  --mpc-color-brand-papier-alt: #eef3f4;
  --mpc-color-symbol-pyramid: #0e7490;
  --mpc-color-symbol-pyramid-reverse: #4fb3c9;
  --mpc-color-symbol-small: #f6b3c4;
  --mpc-color-symbol-shade: 0.12;
  --mpc-color-symbol-edges-light-big: #0e7490;
  --mpc-color-symbol-edges-light-small: #a0405f;
  --mpc-color-symbol-edges-light-opacity: 0.16;
  --mpc-color-symbol-edges-dark-bg: #0a0c0f;
  --mpc-color-symbol-edges-dark-big: #94999d;
  --mpc-color-symbol-edges-dark-small: #686e73;
  --mpc-color-symbol-edges-dark-color-big: #4fb3c9;
  --mpc-color-symbol-edges-dark-color-small: #f6b3c4;
  --mpc-color-symbol-edges-dark-color-opacity: 0.6;
  --mpc-color-symbol-edges-icon-dark-big: #d6d9db;
  --mpc-color-symbol-edges-icon-dark-small: #aab0b4;
  --mpc-color-print-text: #22262c;
  --mpc-color-print-heading: #14161c;
  --mpc-color-print-heading-minor: #4a5058;
  --mpc-color-print-accent: #0e7490;
  --mpc-color-print-border: #d9e1e3;
  --mpc-color-print-table-header-bg: #eef3f4;
  --mpc-color-print-footer: #5f6168;
  --mpc-font-family-display: Spectral, Georgia, "Times New Roman", serif;
  --mpc-font-family-text: Outfit, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mpc-font-family-mono: Consolas, "Liberation Mono", Menlo, monospace;
  --mpc-font-weight-logotype: 300;
  --mpc-font-weight-display: 400;
  --mpc-font-weight-text: 300;
  --mpc-font-weight-label: 500;
  --mpc-font-tracking-logotype: 0.2em;
  --mpc-font-tracking-label: 0.14em;
}

/* Thème clair (défaut, pierre) : charte §3.2 */
:root {
  color-scheme: light;
  --bg-primary: #fafafa;
  --bg-secondary: #eef3f4;
  --bg-tertiary: #e1eaec;
  --border-color: #d3dde0;
  --text-primary: #14161c;
  --text-secondary: #3b4048;
  --text-muted: #5f6168;
  --accent: #f6b3c4;
  --accent-hover: #f19bb1;
  --accent-text: #0e7490;
  --accent-mark: #0e7490;
  --on-accent: #14161c;
  --success-text: #1f7a4d;
  --danger-text: #b42318;
}

/* Thème sombre (encre) : charte §3.3. Suit la préférence système, sauf data-theme="light" sur <html> ;
   data-theme="dark" le force. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-primary: #0b1316;
    --bg-secondary: #111b1f;
    --bg-tertiary: #18252a;
    --border-color: #25363c;
    --text-primary: #eef4f5;
    --text-secondary: #b9c4c7;
    --text-muted: #86939a;
    --accent: #f6b3c4;
    --accent-hover: #f9c6d3;
    --accent-text: #4fb3c9;
    --accent-mark: #f6b3c4;
    --on-accent: #14161c;
    --success-text: #6fd3a0;
    --danger-text: #f59a8f;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-primary: #0b1316;
  --bg-secondary: #111b1f;
  --bg-tertiary: #18252a;
  --border-color: #25363c;
  --text-primary: #eef4f5;
  --text-secondary: #b9c4c7;
  --text-muted: #86939a;
  --accent: #f6b3c4;
  --accent-hover: #f9c6d3;
  --accent-text: #4fb3c9;
  --accent-mark: #f6b3c4;
  --on-accent: #14161c;
  --success-text: #6fd3a0;
  --danger-text: #f59a8f;
}
