/* ═══════════════════════════════════════════════════════════════════════════
   Ondes Mail — jetons de design
   ⚠️ MIROIR de saas_website/src/app/[locale]/globals.css : modifier l'un, c'est
   modifier l'autre. `tests/test_webmail_front.py` compare les couleurs des deux.

   Préfixe `--om-` : ce client est aussi rendu DANS l'administration d'un tenant
   (Messagerie › Courriel), qui a ses propres `--bg`, `--text`… Des noms
   communs s'écraseraient mutuellement.

   Le thème suit `html[data-theme]`, l'attribut que posent déjà le site et
   l'administration : dans l'admin, le courriel suit le thème choisi pour
   l'admin, sans second réglage.
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.8e433c0592f7.woff2") format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-latin-500-normal.a09f2fccfee3.woff2") format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-latin-600-normal.72993dddf88a.woff2") format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-latin-700-normal.25b0e113ca7c.woff2") format('woff2');
}

/* ── Clair (défaut) — le thème « Doux » clair, comme le site ─────────────── */
.om, .om-page {
  --om-bg:             #f5f6fa;
  --om-surface:        #ffffff;
  --om-surface-2:      #f1f3f8;
  --om-surface-hover:  #f6f7fb;
  --om-border:         #e4e7ef;
  --om-border-strong:  #cdd3df;
  --om-text:           #0f1222;
  --om-text-secondary: #4a5163;
  --om-text-muted:     #686f80;

  --om-accent:         #5b5bd6;
  --om-on-accent:      #ffffff;
  --om-accent-hover:   #4a4ac2;
  --om-accent-soft:    rgba(91, 91, 214, 0.08);
  --om-accent-line:    rgba(91, 91, 214, 0.32);

  --om-success:        #16a34a;
  --om-warning:        #c2691f;
  --om-danger:         #d6334f;

  --om-ai-1:           #667eea;
  --om-ai-2:           #764ba2;
  --om-ai-glow:        rgba(102, 126, 234, 0.30);
  /* L'orbe d'Ondes IA en icône (mail.css, `svg.i.ondes-orbe-mini`) — même
     palette que `.ondes-orb` de l'administration (`--orbe-*`). */
  --om-orbe-bleu:      #a9dcff;
  --om-orbe-lilas:     #cbb9ff;
  --om-orbe-rose:      #ffc4e2;
  --om-orbe-menthe:    #b6ffd8;
  --om-orbe-reflet:    #ffffff;
  --om-orbe-profond:   #8f7bf0;
  --om-orbe-bord:      rgba(143, 123, 240, 0.42);
  --om-orbe-halo:      0 0 0 0 transparent;
  --om-orbe-densite:   34%;

  --om-dot:            rgba(27, 27, 31, 0.05);
  --om-hairline:       rgba(27, 27, 31, 0.08);
  --om-shadow-card:       0 4px 24px rgba(27, 27, 31, 0.05);
  --om-shadow-card-hover: 0 14px 44px rgba(106, 95, 214, 0.14);
  --om-shadow-pop:        0 24px 80px rgba(27, 27, 31, 0.18);
  --om-overlay:        rgba(27, 27, 31, 0.32);

  --om-radius-card: 20px;
  --om-radius-btn:  14px;
  --om-radius-sm:   10px;
  --om-ease:        cubic-bezier(.16, 1, .3, 1);
  --om-font:         'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --om-font-display: 'Poppins', 'Inter', ui-sans-serif, system-ui, sans-serif;

  color-scheme: light;
}

/* ── Sombre — le thème « Doux » sombre, comme le site ───────────────────── */
html[data-theme="dark"] .om, html[data-theme="dark"] .om-page,
html[data-theme="dark"].om-page {
  --om-bg:             #0b0e1b;
  --om-surface:        #151a2e;
  --om-surface-2:      #1b2138;
  --om-surface-hover:  #20273f;
  --om-border:         #262d47;
  --om-border-strong:  #3a4363;
  --om-text:           #eef1f8;
  --om-text-secondary: #b0b8cc;
  --om-text-muted:     #8a92a9;

  --om-accent:         #9293ec;
  --om-on-accent:      #0d1020;
  --om-accent-hover:   #a5a6f0;
  --om-accent-soft:    rgba(146, 147, 236, 0.12);
  --om-accent-line:    rgba(146, 147, 236, 0.38);

  --om-success:        #4ade80;
  --om-warning:        #fbbf24;
  --om-danger:         #fb7185;

  --om-ai-1:           #7d90f0;
  --om-ai-2:           #9b6fc4;
  --om-ai-glow:        rgba(125, 144, 240, 0.35);
  --om-orbe-bord:      rgba(203, 185, 255, 0.30);
  --om-orbe-halo:      0 0 .45em rgba(203, 185, 255, 0.34);
  --om-orbe-densite:   10%;

  --om-dot:            rgba(255, 255, 255, 0.045);
  --om-hairline:       rgba(255, 255, 255, 0.08);
  --om-shadow-card:       0 2px 0 rgba(0, 0, 0, 0.25), 0 12px 28px rgba(0, 0, 0, 0.45);
  --om-shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.55);
  --om-shadow-pop:        0 24px 80px rgba(0, 0, 0, 0.6);
  --om-overlay:        rgba(0, 0, 0, 0.5);

  color-scheme: dark;
}
