/*
 * Edifore - theme-catppuccin-latte.css (Catppuccin (Latte))
 *
 * Source palette : https://catppuccin.com/palette
 * Famille : catppuccin | Variante : clair
 *
 * Valeurs colorees en OKLCH pour permettre l'application du slider
 * --luminosity-shift. Hex source en commentaire pour debug.
 */

[data-theme="catppuccin-latte"] {
  /* ============================================================
   * Surfaces
   * ============================================================ */
  /* #EFF1F5 - fond global */
  --bg-page: oklch(calc(96% + var(--luminosity-shift) * 0.4%) 0.006 265);
  /* #FFFFFF - cards */
  --bg-card: oklch(calc(100% + var(--luminosity-shift) * 0.2%) 0.000 90);
  /* #E6E9EF - surfaces survol/focus */
  --bg-elevated: oklch(calc(93% + var(--luminosity-shift) * 0.3%) 0.009 265);
  /* #FFFFFF - inputs */
  --bg-input: oklch(calc(100% + var(--luminosity-shift) * 0.2%) 0.000 90);
  /* rgba background pour overlays modaux */
  --bg-overlay: rgba(76, 79, 105, 0.5);

  /* ============================================================
   * Texte
   * ============================================================ */
  /* #1F2233 - corps + titres */
  --text-primary: oklch(calc(26% - var(--luminosity-shift) * 0.4%) 0.032 276);
  /* #5C5F77 - labels, metadonnees */
  --text-secondary: oklch(calc(49% - var(--luminosity-shift) * 0.3%) 0.038 279);
  /* #8C8FA1 - placeholders */
  --text-muted: oklch(calc(65% - var(--luminosity-shift) * 0.2%) 0.027 278);
  /* #EFF1F5 - texte sur accent */
  --text-on-accent: oklch(96% 0.006 265);

  /* ============================================================
   * Accents
   * ============================================================ */
  /* #8839EF - accent */
  --accent-primary: oklch(calc(55% + var(--luminosity-shift) * 0.2%) 0.250 297);
  /* #7028D0 - hover accent */
  --accent-primary-hover: oklch(calc(49% + var(--luminosity-shift) * 0.2%) 0.232 296);
  /* #E8DCFB - accent doux fond */
  --accent-primary-soft: oklch(calc(91% + var(--luminosity-shift) * 0.3%) 0.044 303);
  /* #EFF1F5 - texte sur accent */
  --accent-primary-fg: oklch(96% 0.006 265);

  /* ============================================================
   * Bordures
   * ============================================================ */
  /* #CCD0DA - defaut */
  --border-default: oklch(86% 0.014 268);
  /* #9CA0B0 - emphase */
  --border-strong: oklch(71% 0.024 275);
  /* #8839EF - focus */
  --border-focus: oklch(55% 0.250 297);

  /* ============================================================
   * Status
   * ============================================================ */
  /* #D9EBD0 - success bg */
  --status-success-bg: oklch(92% 0.041 135);
  /* #3B6E20 - success fg */
  --status-success-fg: oklch(49% 0.122 137);
  /* #F5E2C5 - warning bg */
  --status-warning-bg: oklch(92% 0.044 78);
  /* #7A4F12 - warning fg */
  --status-warning-fg: oklch(47% 0.092 70);
  /* #F2D4D2 - danger bg */
  --status-danger-bg: oklch(89% 0.034 22);
  /* #A8362D - danger fg */
  --status-danger-fg: oklch(50% 0.151 28);
  /* #D2E2F4 - info bg */
  --status-info-bg: oklch(91% 0.030 251);
  /* #1A5BB8 - info fg */
  --status-info-fg: oklch(49% 0.161 259);

  /* ============================================================
   * Ombres
   * ============================================================ */
  --shadow-color: 76, 79, 105;
  --shadow-card: 0 1px 4px rgba(var(--shadow-color), 0.08);
  --shadow-elevated: 0 2px 8px rgba(var(--shadow-color), 0.12);
  --shadow-modal: 0 8px 32px rgba(var(--shadow-color), 0.25);

  /* ============================================================
   * Composants specifiques
   * ============================================================ */
  /* #4C4F69 - header bg */
  --header-bg: oklch(calc(44% + var(--luminosity-shift) * 0.2%) 0.043 279);
  /* #EFF1F5 - header fg */
  --header-fg: oklch(96% 0.006 265);
  /* #BCC0CC - header fg muted */
  --header-fg-muted: oklch(81% 0.017 271);
  --filigrane-opacity: 0.04;
  --filigrane-asset: url("/static/filigrane.png");
}
