/*
 * Edifore - theme-forge.css (Forge)
 *
 * Source palette : Coolors (#FFFFFF / #E0E0E0 / #E58B07 / #182238 / #050505)
 * Famille : coolors | Variante : sombre
 *
 * Valeurs colorees en OKLCH pour permettre l'application du slider
 * --luminosity-shift. Hex source en commentaire pour debug.
 */

[data-theme="forge"] {
  /* ============================================================
   * Surfaces
   * ============================================================ */
  /* #050505 - fond global */
  --bg-page: oklch(calc(10% + var(--luminosity-shift) * 0.4%) 0.005 270);
  /* #182238 - cards */
  --bg-card: oklch(calc(22% + var(--luminosity-shift) * 0.2%) 0.045 270);
  /* #1E2A45 - surfaces survol/focus */
  --bg-elevated: oklch(calc(28% + var(--luminosity-shift) * 0.3%) 0.050 270);
  /* #182238 - inputs */
  --bg-input: oklch(calc(22% + var(--luminosity-shift) * 0.2%) 0.045 270);
  /* rgba background pour overlays modaux */
  --bg-overlay: rgba(0, 0, 0, 0.75);

  /* ============================================================
   * Texte
   * ============================================================ */
  /* #FFFFFF - corps + titres */
  --text-primary: oklch(calc(98% - var(--luminosity-shift) * 0.4%) 0 0);
  /* #E0E0E0 - labels, metadonnees */
  --text-secondary: oklch(calc(88% - var(--luminosity-shift) * 0.3%) 0 0);
  /* #999999 - placeholders */
  --text-muted: oklch(calc(64% - var(--luminosity-shift) * 0.2%) 0 0);
  /* #FFFFFF - texte sur accent */
  --text-on-accent: oklch(15% 0.020 270);

  /* ============================================================
   * Accents
   * ============================================================ */
  /* #E58B07 - accent */
  --accent-primary: oklch(calc(70% + var(--luminosity-shift) * 0.2%) 0.165 58);
  /* #C2750A - hover accent */
  --accent-primary-hover: oklch(calc(60% + var(--luminosity-shift) * 0.2%) 0.150 58);
  /* rgba(229,139,7,0.18) - accent doux fond */
  --accent-primary-soft: rgba(229, 139, 7, 0.18);
  /* #050505 - texte sur accent */
  --accent-primary-fg: oklch(15% 0.020 270);

  /* ============================================================
   * Bordures
   * ============================================================ */
  /* #2A3554 - defaut */
  --border-default: oklch(32% 0.050 270);
  /* #3D496B - emphase */
  --border-strong: oklch(42% 0.055 270);
  /* #E58B07 - focus */
  --border-focus: oklch(70% 0.165 58);

  /* ============================================================
   * Status
   * ============================================================ */
  /* #1E4A33 - success bg */
  --status-success-bg: oklch(38% 0.055 152);
  /* #5DD39E - success fg */
  --status-success-fg: oklch(80% 0.130 155);
  /* #4D3812 - warning bg */
  --status-warning-bg: oklch(36% 0.080 70);
  /* #E58B07 - warning fg */
  --status-warning-fg: oklch(70% 0.165 58);
  /* #4D1212 - danger bg */
  --status-danger-bg: oklch(32% 0.100 22);
  /* #d12626 - danger fg */
  --status-danger-fg: oklch(58% 0.200 25);
  /* #1F2D52 - info bg */
  --status-info-bg: oklch(30% 0.080 268);
  /* #6B8FE5 - info fg */
  --status-info-fg: oklch(70% 0.135 262);

  /* ============================================================
   * Ombres
   * ============================================================ */
  --shadow-color: 0, 0, 0;
  --shadow-card: 0 1px 4px rgba(var(--shadow-color), 0.15);
  --shadow-elevated: 0 2px 8px rgba(var(--shadow-color), 0.22);
  --shadow-modal: 0 8px 32px rgba(var(--shadow-color), 0.40);

  /* ============================================================
   * Composants specifiques
   * ============================================================ */
  /* #050505 - header bg */
  --header-bg: oklch(calc(10% + var(--luminosity-shift) * 0.2%) 0.005 270);
  /* #E58B07 - header fg */
  --header-fg: oklch(70% 0.165 58);
  /* #E0E0E0 - header fg muted */
  --header-fg-muted: oklch(88% 0 0);
  --filigrane-opacity: 0.08;
  --filigrane-asset: url("/static/filigrane_dark.png");
}
