/* ============================================================
   NexusERP — Feuille de style principale
   Design system : Dark #0a0a0f · Or #d4a550 · DM Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=DM+Mono:wght@400;500&display=swap');

/* ---- VARIABLES ---- */
:root {
  --bg-base:     #0a0a0f;
  --bg-card:     #0e0e18;
  --bg-elevated: #111118;
  --bg-input:    #141420;
  --border:      #1a1a28;
  --border-soft: #141420;
  --border-strong:#222232;

  --text-primary:   #f0ede6;
  --text-secondary: #c0c0cc;
  --text-muted:     #6a6a78;
  --text-faint:     #3a3a48;

  --gold:        #d4a550;
  --gold-light:  #e8c47a;
  --gold-dark:   #a07030;
  --gold-bg:     #1a1400;

  --green:       #3a8c60;
  --green-bg:    #0f2018;
  --green-border:#1a3028;

  --red:         #8c3a3a;
  --red-bg:      #1f0f0f;
  --red-border:  #3a1a1a;

  --blue:        #3a6a9a;
  --blue-bg:     #0f1520;
  --blue-border: #1a2a3a;

  --amber:       #c09040;
  --amber-bg:    #1a1800;

  --sidebar-w:   60px;
  --topbar-h:    54px;
  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   10px;
  --radius-xl:   14px;

  --font-sans:   'DM Sans', sans-serif;
  --font-serif:  'DM Serif Display', serif;
  --font-mono:   'DM Mono', monospace;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 24px rgba(0,0,0,0.5);

  --transition:  0.15s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
a:hover { opacity: 0.8; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---- LAYOUT PRINCIPAL ---- */
.erp-layout {
  display: flex;
  min-height: 100vh;
}

/* ---- SIDEBAR ---- */
.sidebar {
  width: var(--sidebar-w);
  background: #080810;
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0;
  gap: 4px;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  cursor: pointer;
}

.sidebar-logo svg { width: 18px; height: 18px; }

.sb-item {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
  color: var(--text-faint);
  text-decoration: none;
  flex-shrink: 0;
}
.sb-item:hover { background: var(--bg-elevated); color: var(--text-muted); }
.sb-item.active { background: #1c1c2c; color: var(--gold); }
.sb-item svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.sb-item .badge {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  position: absolute; top: 6px; right: 6px;
}

.sb-sep { width: 28px; height: 1px; background: var(--border-soft); margin: 6px 0; flex-shrink: 0; }
.sb-spacer { flex: 1; }

.sidebar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--bg-base);
  cursor: pointer; flex-shrink: 0;
}

/* Tooltip sidebar */
.sb-item[data-title]::after {
  content: attr(data-title);
  position: absolute;
  left: 50px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 200;
}
.sb-item:hover[data-title]::after { opacity: 1; }

/* ---- CONTENU PRINCIPAL ---- */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- TOPBAR ---- */
.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 14px;
  background: var(--bg-base);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-breadcrumb { font-size: 12px; color: var(--text-faint); }
.topbar-breadcrumb strong { color: var(--text-muted); font-weight: 500; }
.topbar-breadcrumb a { color: var(--text-faint); }
.topbar-breadcrumb a:hover { color: var(--text-muted); }
.topbar-breadcrumb .sep { margin: 0 5px; color: var(--border); }

.topbar-spacer { flex: 1; }

.topbar-search {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 7px 14px;
  font-size: 12px;
  color: var(--text-muted);
  outline: none;
  width: 220px;
  transition: border-color var(--transition);
}
.topbar-search::placeholder { color: var(--text-faint); }
.topbar-search:focus { border-color: var(--gold); }

.notif-btn {
  position: relative;
  width: 34px; height: 34px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
}
.notif-btn:hover { background: var(--bg-elevated); }
.notif-btn .count {
  position: absolute; top: 4px; right: 4px;
  background: var(--red);
  color: #ffd0d0;
  font-size: 8px; font-weight: 700;
  width: 14px; height: 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.topbar-date { font-size: 11px; color: var(--text-faint); }

.topbar-user {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
}
.topbar-user .avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--bg-base);
}
.topbar-user .name { font-size: 12px; color: var(--text-muted); }

/* Sélecteur de société */
.company-selector {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 5px 10px;
  font-size: 11px;
  color: var(--text-muted);
  outline: none;
  cursor: pointer;
}
.company-selector:focus { border-color: var(--gold); }

/* ---- PAGE ---- */
.page-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--text-primary);
  line-height: 1.1;
}
.page-title em { font-style: italic; color: var(--gold); }
.page-subtitle { font-size: 12px; color: var(--text-faint); margin-top: 4px; }

/* ---- BOUTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 12px; font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  transition: opacity var(--transition), background var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }

.btn-gold  { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--bg-base); }
.btn-ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-elevated); }
.btn-green { background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green); }
.btn-red   { background: var(--red-bg); border: 1px solid var(--red-border); color: var(--red); }
.btn-blue  { background: var(--blue-bg); border: 1px solid var(--blue-border); color: var(--blue); }
.btn-sm    { padding: 5px 12px; font-size: 11px; }
.btn-lg    { padding: 12px 24px; font-size: 14px; }
.btn-icon  { padding: 7px; width: 34px; height: 34px; justify-content: center; }

/* ---- CARDS ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.card-body  { padding: 20px; }
.card-footer { padding: 12px 20px; border-top: 1px solid var(--border-soft); }

/* Accent couleur haut carte */
.card-accent-gold::before { content: ''; display: block; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.card-accent-green::before { content: ''; display: block; height: 2px; background: linear-gradient(90deg, var(--green), transparent); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.card-accent-red::before   { content: ''; display: block; height: 2px; background: linear-gradient(90deg, var(--red), transparent); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.card-accent-blue::before  { content: ''; display: block; height: 2px; background: linear-gradient(90deg, var(--blue), transparent); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

/* ---- KPI CARDS ---- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.kpi-label  { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 10px; }
.kpi-value  { font-size: 24px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.02em; margin-bottom: 4px; }
.kpi-value span { font-size: 13px; font-weight: 400; color: var(--text-faint); }
.kpi-delta  { font-size: 11px; }
.kpi-delta.up { color: var(--green); }
.kpi-delta.dn { color: var(--red); }
.kpi-sparkline { margin-top: 12px; opacity: 0.6; width: 100%; }

/* ---- TABLES ---- */
.erp-table {
  width: 100%;
  border-collapse: collapse;
}
.erp-table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  font-weight: 500;
  padding: 9px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.erp-table td {
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.erp-table tr:last-child td { border-bottom: none; }
.erp-table tr:hover td { background: rgba(255,255,255,0.02); cursor: pointer; }
.erp-table tr.selected td { background: rgba(212,165,80,0.05); }
.erp-table td.strong { color: var(--text-secondary); font-weight: 500; }
.erp-table td.mono { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.erp-table td.amount { text-align: right; font-weight: 500; color: var(--text-secondary); }
.erp-table td.amount.red { color: var(--red); }
.erp-table td.amount.green { color: var(--green); }

/* ---- STATUT PILLS ---- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.pill-brouillon   { background: #111118; color: #5a5a68; border: 1px solid #1a1a28; }
.pill-envoye      { background: #0f1520; color: #4a8aca; border: 1px solid #1a2a3a; }
.pill-valide      { background: #0f2018; color: #3a8c60; border: 1px solid #1a3028; }
.pill-en_attente  { background: #1a1800; color: #c09040; border: 1px solid #2a2800; }
.pill-paye        { background: #0f2018; color: #3a8c60; border: 1px solid #1a3028; }
.pill-partiellement_payee { background: #1a1200; color: #c08030; border: 1px solid #2a2000; }
.pill-en_retard   { background: #1f0f0f; color: #8c3a3a; border: 1px solid #3a1a1a; }
.pill-annule      { background: #1a0f1a; color: #7a4a7a; border: 1px solid #2a1a2a; }
.pill-surestarie  { background: #1f0f0f; color: #8c3a3a; border: 1px solid #3a1a1a; }
.pill-en_franchise{ background: #0f2018; color: #3a8c60; border: 1px solid #1a3028; }
.pill-cdi         { background: #0f2018; color: #3a8c60; border: 1px solid #1a3028; }
.pill-cdd         { background: #1a1800; color: #c09040; border: 1px solid #2a2800; }
.pill-stage       { background: #0f1520; color: #4a8aca; border: 1px solid #1a2a3a; }
.pill-urgent      { background: #1f0f0f; color: #8c3a3a; border: 1px solid #3a1a1a; }

/* ---- FORMULAIRES ---- */
.form-group { margin-bottom: 16px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

label.form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
label.form-label .required { color: var(--red); margin-left: 2px; }

.form-control {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition);
}
.form-control::placeholder { color: var(--text-faint); }
.form-control:focus { border-color: var(--gold); }
.form-control:disabled { opacity: 0.5; cursor: not-allowed; }
.form-control.error { border-color: var(--red); }

textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }

.form-error { font-size: 11px; color: var(--red); margin-top: 5px; }
.form-hint  { font-size: 11px; color: var(--text-faint); margin-top: 5px; }

/* ---- PROGRESS BARS ---- */
.progress { height: 5px; background: var(--border-soft); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 3px; }
.progress-bar.gold  { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.progress-bar.green { background: linear-gradient(90deg, var(--green), #5aac80); }
.progress-bar.red   { background: linear-gradient(90deg, var(--red), #ac5a5a); }
.progress-bar.blue  { background: linear-gradient(90deg, var(--blue), #5a8aba); }

/* ---- ALERTES / FLASH MESSAGES ---- */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 13px;
}
.alert-success { background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green); }
.alert-error   { background: var(--red-bg); border: 1px solid var(--red-border); color: var(--red); }
.alert-warning { background: var(--amber-bg); border: 1px solid #2a2800; color: var(--amber); }
.alert-info    { background: var(--blue-bg); border: 1px solid var(--blue-border); color: var(--blue); }

/* ---- PAGINATION ---- */
.pagination {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-soft);
}
.pagination .info { font-size: 11px; color: var(--text-faint); flex: 1; }
.page-btn {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.page-btn:hover { background: var(--bg-elevated); }
.page-btn.active { background: var(--gold-bg); border-color: var(--gold); color: var(--gold); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ---- MODALS ---- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-family: var(--font-serif); font-size: 20px; color: var(--text-primary); }
.modal-close {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.modal-body   { padding: 20px 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-soft); display: flex; gap: 8px; justify-content: flex-end; }

/* ---- TABS ---- */
.tabs-nav {
  display: flex;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  width: fit-content;
  margin-bottom: 20px;
}
.tab-btn {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  color: var(--text-faint);
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.tab-btn:hover  { color: var(--text-muted); background: rgba(255,255,255,0.03); }
.tab-btn.active { background: #1c1c2c; color: var(--gold); }

/* ---- STAT CARDS (small) ---- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 10px; margin-bottom: 20px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}
.stat-lbl { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.stat-val { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.stat-delta { font-size: 10px; color: var(--text-faint); margin-top: 3px; }
.val-gold  { color: var(--gold); }
.val-green { color: var(--green); }
.val-red   { color: var(--red); }
.val-blue  { color: var(--blue); }
.val-white { color: var(--text-primary); }

/* ---- UTILITAIRES ---- */
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mb-8   { margin-bottom: 8px; }
.mb-16  { margin-bottom: 16px; }
.mb-20  { margin-bottom: 20px; }
.mb-24  { margin-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-sm    { font-size: 11px; }
.text-xs    { font-size: 10px; }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-gold  { color: var(--gold); }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.font-serif { font-family: var(--font-serif); }
.font-mono  { font-family: var(--font-mono); }
.italic     { font-style: italic; }
.bold       { font-weight: 600; }
.hidden     { display: none; }
.sr-only    { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.separator  { height: 1px; background: var(--border-soft); margin: 16px 0; }
.w-full     { width: 100%; }
.truncate   { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- LOADING ---- */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--border-soft) 50%, var(--bg-elevated) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ---- RESPONSIF ---- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .form-row-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sidebar { width: 50px; }
  .main-content { margin-left: 50px; }
  .topbar-search { display: none; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; gap: 12px; }
}
@media print {
  .sidebar, .topbar { display: none; }
  .main-content { margin-left: 0; }
  .page-body { padding: 0; }
  .btn { display: none; }
}
/* ============================================================
   SYSTEME DE THEMES PROFESSIONNELS (10 thèmes)
   ============================================================ */

.theme-azure {
    --gold: #3b82f6;
    --gold-light: #60a5fa;
    --gold-dark: #2563eb;
    --gold-bg: #1e3a8a;
}
.theme-emerald {
    --gold: #10b981;
    --gold-light: #34d399;
    --gold-dark: #059669;
    --gold-bg: #064e3b;
}
.theme-lavender {
    --gold: #8b5cf6;
    --gold-light: #a78bfa;
    --gold-dark: #7c3aed;
    --gold-bg: #4c1d95;
}
.theme-carbon {
    --gold: #9ca3af;
    --gold-light: #d1d5db;
    --gold-dark: #6b7280;
    --gold-bg: #374151;
}
.theme-amber {
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --gold-dark: #d97706;
    --gold-bg: #78350f;
}
.theme-crimson {
    --gold: #dc2626;
    --gold-light: #ef4444;
    --gold-dark: #b91c1c;
    --gold-bg: #7f1d1d;
}
.theme-ocean {
    --gold: #0ea5e9;
    --gold-light: #38bdf8;
    --gold-dark: #0284c7;
    --gold-bg: #082f49;
}
.theme-mint {
    --gold: #14b8a6;
    --gold-light: #2dd4bf;
    --gold-dark: #0f766e;
    --gold-bg: #134e4a;
}
.theme-twilight {
    --gold: #ec4899;
    --gold-light: #f472b6;
    --gold-dark: #db2777;
    --gold-bg: #831843;
}

/* Transition douce pour le changement de thème */
body {
    transition: background-color 0.3s ease, color 0.2s ease;
}