/*
 * Edifore - theme-bordeaux.css (Bordeaux)
 *
 * Source palette : Coolors (#F0DCB2 / #6090B2 / #0F2940 / #B7001D / #6A0008)
 * Famille : coolors | Variante : clair
 *
 * Valeurs colorees en OKLCH pour permettre l'application du slider
 * --luminosity-shift. Hex source en commentaire pour debug.
 */

[data-theme="bordeaux"] {
  /* ============================================================
   * Surfaces
   * ============================================================ */
  /* #F0DCB2 - fond global */
  --bg-page: oklch(calc(90% + var(--luminosity-shift) * 0.4%) 0.060 90);
  /* #FAF0D2 - cards (eclairci) */
  --bg-card: oklch(calc(96% + var(--luminosity-shift) * 0.2%) 0.040 90);
  /* #E5CC95 - surfaces survol/focus */
  --bg-elevated: oklch(calc(86% + var(--luminosity-shift) * 0.3%) 0.075 88);
  /* #FFFAEC - inputs */
  --bg-input: oklch(calc(98% + var(--luminosity-shift) * 0.2%) 0.025 90);
  /* rgba background pour overlays modaux */
  --bg-overlay: rgba(15, 41, 64, 0.55);

  /* ============================================================
   * Texte
   * ============================================================ */
  /* #0F2940 - corps + titres */
  --text-primary: oklch(calc(25% - var(--luminosity-shift) * 0.4%) 0.060 248);
  /* #2A4762 - labels, metadonnees */
  --text-secondary: oklch(calc(38% - var(--luminosity-shift) * 0.3%) 0.065 248);
  /* #6090B2 - placeholders */
  --text-muted: oklch(calc(60% - var(--luminosity-shift) * 0.2%) 0.075 235);
  /* white sur accent */
  --text-on-accent: oklch(98% 0 0);

  /* ============================================================
   * Accents
   * ============================================================ */
  /* #6A0008 - accent */
  --accent-primary: oklch(calc(35% + var(--luminosity-shift) * 0.2%) 0.155 24);
  /* #4D0005 - hover accent */
  --accent-primary-hover: oklch(calc(28% + var(--luminosity-shift) * 0.2%) 0.140 24);
  /* rgba(106,0,8,0.12) - accent doux fond */
  --accent-primary-soft: rgba(106, 0, 8, 0.12);
  /* white pour texte sur accent */
  --accent-primary-fg: oklch(98% 0 0);

  /* ============================================================
   * Bordures
   * ============================================================ */
  /* #C9B58A - defaut */
  --border-default: oklch(75% 0.045 90);
  /* #6090B2 - emphase */
  --border-strong: oklch(60% 0.075 235);
  /* #6A0008 - focus */
  --border-focus: oklch(35% 0.155 24);

  /* ============================================================
   * Status
   * ============================================================ */
  /* #D8EDD8 - success bg */
  --status-success-bg: oklch(92% 0.050 145);
  /* #1F5039 - success fg */
  --status-success-fg: oklch(38% 0.085 150);
  /* #F2DEB5 - warning bg */
  --status-warning-bg: oklch(91% 0.060 85);
  /* #7A4A0E - warning fg */
  --status-warning-fg: oklch(46% 0.095 65);
  /* #F2D2D5 - danger bg */
  --status-danger-bg: oklch(89% 0.040 22);
  /* #B7001D - danger fg */
  --status-danger-fg: oklch(48% 0.180 25);
  /* #D5DFEC - info bg */
  --status-info-bg: oklch(89% 0.030 248);
  /* #0F2940 - info fg */
  --status-info-fg: oklch(35% 0.080 248);

  /* ============================================================
   * Ombres
   * ============================================================ */
  --shadow-color: 15, 41, 64;
  --shadow-card: 0 1px 4px rgba(var(--shadow-color), 0.10);
  --shadow-elevated: 0 2px 8px rgba(var(--shadow-color), 0.15);
  --shadow-modal: 0 8px 32px rgba(var(--shadow-color), 0.28);

  /* ============================================================
   * Composants specifiques
   * ============================================================ */
  /* #0F2940 - header bg */
  --header-bg: oklch(calc(25% + var(--luminosity-shift) * 0.2%) 0.060 248);
  /* #F0DCB2 - header fg */
  --header-fg: oklch(90% 0.060 90);
  /* #D9C290 - header fg muted */
  --header-fg-muted: oklch(82% 0.055 88);
  --filigrane-opacity: 0.04;
  --filigrane-asset: url("/static/filigrane.png");
}
