/* ============================================================
   COLORS · BakeryOS
   Wheat & crust palette. Two themes: Jour (light) · Nuit (dark).
   The brown brand surfaces (sidebar / hero / login) stay dark in
   both themes. Per-tenant accent overrides --ble for white-label.
   Canonical token names match the production app (French).
   English semantic aliases are provided alongside.
   ============================================================ */

:root {
  /* — Brand palette — */
  --ble:         #d4a93a;   /* wheat / gold — primary accent          */
  --ble-clair:   #ecd79c;   /* light wheat — highlights, hover        */
  --or:          #c9971f;   /* deep gold — icons, emphasis            */
  --croute:      #7a4a1e;   /* crust brown — primary brand surface    */
  --croute-fonce:#4e2f12;   /* deep crust — sidebar/hero base         */
  --levain:      #9a7b46;   /* levain — quiet secondary               */

  /* — Per-tenant accent (white-label). Defaults to wheat-gold. — */
  --accent:      var(--ble);
  --accent-fonce:var(--or);

  /* — Surfaces · Jour (light) — */
  --bg:         #f3e9d6;    /* warm paper page background              */
  --bg-2:       #ece0c8;    /* recessed background                    */
  --surface:    #fffdf8;    /* card surface                           */
  --surface-2:  #f7efde;    /* table header / inset                   */
  --ligne:      #e7dbc2;    /* hairline                               */
  --ligne-fort: #d8c8a6;    /* stronger border                        */

  /* — Text · Jour — */
  --txt:        #2c2620;    /* primary text                           */
  --txt-2:      #62543d;    /* secondary text                         */
  --txt-3:      #9c8f78;    /* tertiary / muted                       */

  /* — Semantic — */
  --vert:  #2e7d4f;  --vert-bg:  #e4f1e8;   /* good / paid / >= target */
  --ambre: #a9760a;  --ambre-bg: #fbeecb;   /* warning / to-do / floor */
  --rouge: #b23b3b;  --rouge-bg: #f8e2e2;   /* below floor / urgent    */
  --bleu:  #3b6ea5;  --bleu-bg:  #e6eef7;   /* info                    */

  /* — English semantic aliases — */
  --color-accent:        var(--accent);
  --color-brand-surface: var(--croute-fonce);
  --surface-page:        var(--bg);
  --surface-card:        var(--surface);
  --surface-inset:       var(--surface-2);
  --border-hairline:     var(--ligne);
  --border-strong:       var(--ligne-fort);
  --text-body:           var(--txt);
  --text-muted:          var(--txt-2);
  --text-faint:          var(--txt-3);
  --status-good:         var(--vert);
  --status-warn:         var(--ambre);
  --status-bad:          var(--rouge);
  --status-info:         var(--bleu);
}

/* — Surfaces · Nuit (dark) — deep roasted-malt browns, never pure black — */
:root[data-theme="nuit"] {
  --bg:#1c1712;       --bg-2:#15110c;
  --surface:#26201a;  --surface-2:#2e271f;
  --ligne:#3a3025;    --ligne-fort:#4a3d2d;
  --txt:#f3e9d6;      --txt-2:#bcae96;  --txt-3:#8c7f68;
  --vert-bg:#1d3326;  --ambre-bg:#3a2e12;  --rouge-bg:#3a2020;  --bleu-bg:#1d2a3a;
}
