/* ============================================================
   Brehmer overrides — par-dessus mam.css (Hencework)
   ============================================================ */

/* Police principale : Manrope (gardée pour cohérence Brehmer/MAM) */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

body, .hk-wrapper {
  font-family: 'Manrope', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Lien actif sidebar — fond orange pâle + texte orange (style MAM exact) */
.hk-menu .menu-content-wrap .menu-group .navbar-nav .nav-item.active > .nav-link {
  background: var(--hk-menu-item-active-bg);
  color: var(--bs-primary) !important;
  border-radius: 8px;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.hk-menu .menu-content-wrap .menu-group .navbar-nav .nav-item.active > .nav-link .nav-icon-wrap {
  color: var(--bs-primary);
}

/* Section labels (nav-header) — uppercase gris muted */
.hk-menu .menu-content-wrap .menu-group .nav-header {
  color: var(--hk-menu-header-text) !important;
  text-transform: uppercase;
  font-size: .7rem !important;
  letter-spacing: .08em;
  font-weight: 600 !important;
  padding: 1.25rem 0 .5rem !important;
}

/* Carte promo orange en bas de sidebar */
.brehmer-promo-card {
  margin-top: 2rem;
  background: var(--bs-primary);
  color: #fff;
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
}
.brehmer-promo-card div { font-size: 1rem; line-height: 1.2; }
.brehmer-promo-card p { font-size: .78rem; opacity: .92; line-height: 1.4; margin: 0; }
.brehmer-promo-card .btn-light {
  color: var(--bs-primary);
  background: #fff;
  border: none;
}
.brehmer-promo-card .btn-light:hover { background: #f8f9fa; }

/* KPI card avec icône pastel à gauche (style MAM dashboard) */
.kpi-mam {
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.kpi-mam .kpi-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kpi-mam .kpi-icon-mint   { background: #d8efe8; color: #0d9488; }
.kpi-mam .kpi-icon-peach  { background: #ffe6d4; color: #c2410c; }
.kpi-mam .kpi-icon-yellow { background: #fff3c7; color: #b45309; }
.kpi-mam .kpi-icon-blue   { background: #dbeafe; color: #1d4ed8; }
.kpi-mam .kpi-icon-rose   { background: #ffe4e6; color: #be123c; }

.kpi-mam .kpi-meta { flex: 1; min-width: 0; }
.kpi-mam .kpi-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  margin-bottom: 4px;
}
.kpi-mam .kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.kpi-mam .kpi-sub {
  font-size: .78rem;
  color: #6b7280;
  margin-top: 4px;
}
.kpi-mam .kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 6px;
}
.kpi-mam .kpi-trend-up   { background: #dcfce7; color: #166534; }
.kpi-mam .kpi-trend-down { background: #fee2e2; color: #991b1b; }

/* Page header / greeting */
.page-greeting {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -.02em;
}
.page-eyebrow {
  font-size: .88rem;
  color: #6b7280;
  margin-top: 2px;
}

/* Card MAM — sans bordure inférieure sous le titre */
.card-mam {
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}
.card-mam .card-mam-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.card-mam .card-mam-title {
  font-size: .95rem;
  font-weight: 700;
  color: #1a1a1a;
}
.btn-link-orange {
  color: var(--bs-primary);
  background: transparent;
  border: 1px solid var(--bs-primary);
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
  text-decoration: none;
}
.btn-link-orange:hover { background: var(--hk-menu-item-active-bg); color: var(--bs-primary); }

/* ── Forcer sidebar visible à gauche en desktop (≥1200px) ─── */
@media (min-width: 1200px) {
  .hk-wrapper[data-layout="vertical"] .hk-menu {
    left: 0 !important;
    top: 0 !important;
    width: 270px !important;
    transform: none !important;
    border-right: 1px solid var(--hk-menu-border);
    border-bottom: 0;
  }
  .hk-wrapper[data-layout="vertical"] .hk-pg-wrapper {
    margin-left: 270px !important;
    margin-right: 0 !important;
  }
  .hk-wrapper[data-layout="vertical"] .hk-navbar {
    left: 270px !important;
    right: 0 !important;
    width: auto !important;
  }
  /* Cacher le burger en desktop */
  .hk-wrapper[data-layout="vertical"] .navbar-toggle-btn { display: none !important; }
}

/* ── Login page (reste autonome, hors hk-wrapper) ─────────── */
.login-page-clean {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 20px;
}

/* ─────────────────────────────────────────────────────────────
   Cmd+K — Palette de recherche globale
   ───────────────────────────────────────────────────────────── */
.gs-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 24, 33, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
  animation: gsFade .14s ease-out;
}
@keyframes gsFade { from { opacity: 0 } to { opacity: 1 } }
.gs-modal {
  width: min(640px, 92vw);
  background: var(--bs-body-bg, #fff);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28), 0 4px 12px rgba(0,0,0,.12);
  overflow: hidden;
  animation: gsRise .18s ease-out;
}
@keyframes gsRise { from { transform: translateY(-8px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
.gs-input-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--bs-border-color, #eee);
  color: #6c757d;
}
.gs-input-wrap input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 1rem; color: var(--bs-body-color, #222);
}
.gs-esc {
  background: var(--bs-tertiary-bg, #f4f5f7);
  border-radius: 5px; padding: .15rem .45rem;
  font-size: .72rem; color: #6c757d;
}
.gs-results {
  max-height: 52vh; overflow-y: auto;
  padding: 8px 0;
}
.gs-section {
  padding: 8px 18px 4px;
  font-size: .72rem; text-transform: uppercase;
  letter-spacing: .8px; color: #8a96a6; font-weight: 600;
}
.gs-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 18px;
  text-decoration: none; color: inherit;
  border-left: 3px solid transparent;
  transition: background .08s ease, border-color .08s ease;
}
.gs-item:hover, .gs-item.active {
  background: var(--bs-tertiary-bg, #f7f8fa);
  border-left-color: #ff8a00;
}
.gs-item-icon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--bs-tertiary-bg, #f4f5f7);
  color: #ff8a00;
  flex-shrink: 0;
}
.gs-item-body { display: flex; flex-direction: column; min-width: 0; }
.gs-item-label { font-weight: 600; font-size: .92rem; color: var(--bs-body-color, #222); }
.gs-item-sub { font-size: .8rem; color: #6c757d; margin-top: 1px; }
.gs-hint { padding: 28px 18px; text-align: center; }
.gs-hint-title { font-weight: 600; color: var(--bs-body-color, #222); margin-bottom: 4px }
.gs-hint-sub { color: #6c757d; font-size: .85rem }
.gs-hint-sub code {
  background: var(--bs-tertiary-bg, #f4f5f7); padding: 2px 6px;
  border-radius: 4px; color: #ff8a00; font-size: .82rem;
}
.gs-footer {
  display: flex; gap: 18px; justify-content: center;
  padding: 10px 18px;
  border-top: 1px solid var(--bs-border-color, #eee);
  font-size: .75rem; color: #8a96a6;
  background: var(--bs-tertiary-bg, #fafbfc);
}
.gs-footer kbd {
  background: var(--bs-body-bg, #fff); border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 4px; padding: 1px 6px; margin-right: 4px;
  font-size: .68rem; color: #495057;
}

/* ─────────────────────────────────────────────────────────────
   Mode sombre — overrides minimaux et soignés
   ───────────────────────────────────────────────────────────── */
[data-bs-theme="dark"] {
  --bs-body-bg: #0f1419;
  --bs-body-color: #e6e8eb;
  --bs-tertiary-bg: #1a2029;
  --bs-border-color: #2a323d;
}
[data-bs-theme="dark"] body { background: #0f1419; color: #e6e8eb; }
[data-bs-theme="dark"] .hk-navbar { background: #151b22 !important; border-bottom: 1px solid #2a323d; }
[data-bs-theme="dark"] .hk-menu { background: #151b22 !important; border-right: 1px solid #2a323d; }
[data-bs-theme="dark"] .menu-header { border-color: #2a323d !important; }
[data-bs-theme="dark"] .nav-link { color: #c2c8d0 !important; }
[data-bs-theme="dark"] .nav-link:hover,
[data-bs-theme="dark"] .nav-item.active .nav-link { color: #ff8a00 !important; background: rgba(255,138,0,.08); }
[data-bs-theme="dark"] .nav-header span { color: #8a96a6 !important; }
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .card-mam { background: #151b22 !important; border-color: #2a323d !important; color: #e6e8eb; }
[data-bs-theme="dark"] .card-mam-header { border-color: #2a323d !important; }
[data-bs-theme="dark"] .card-mam-title { color: #e6e8eb; }
[data-bs-theme="dark"] .text-muted { color: #8a96a6 !important; }
[data-bs-theme="dark"] .table { color: #e6e8eb; }
[data-bs-theme="dark"] .table > :not(caption) > * > * { background-color: transparent !important; border-color: #2a323d !important; color: #e6e8eb; }
[data-bs-theme="dark"] .table-hover tbody tr:hover { background: rgba(255,138,0,.06) !important; }
[data-bs-theme="dark"] hr { border-color: #2a323d !important; }
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .input-group-text { background: #1a2029 !important; border-color: #2a323d !important; color: #e6e8eb; }
[data-bs-theme="dark"] .form-control::placeholder { color: #6c7682 !important; }
[data-bs-theme="dark"] .btn-light { background: #1a2029; border-color: #2a323d; color: #e6e8eb; }
[data-bs-theme="dark"] .btn-outline-secondary { color: #c2c8d0; border-color: #2a323d; }
[data-bs-theme="dark"] .btn-outline-secondary:hover { background: #1a2029; color: #fff; }
[data-bs-theme="dark"] .page-greeting { color: #e6e8eb; }
[data-bs-theme="dark"] .page-eyebrow a { color: #8a96a6 !important; }
[data-bs-theme="dark"] .badge.bg-light { background: #1a2029 !important; color: #c2c8d0 !important; }
[data-bs-theme="dark"] #global-search-trigger { background: #1a2029 !important; color: #8a96a6 !important; }
[data-bs-theme="dark"] #global-search-trigger kbd { background: #0f1419 !important; border-color: #2a323d !important; color: #c2c8d0 !important; }
[data-bs-theme="dark"] .gs-modal { background: #151b22; }
[data-bs-theme="dark"] .gs-footer { background: #0f1419; }
[data-bs-theme="dark"] .brehmer-promo-card { background: linear-gradient(135deg,#ff8a00 0%,#e26a00 100%); }

/* ─────────────────────────────────────────────────────────────
   Compteurs animés — pas de saut visuel
   ───────────────────────────────────────────────────────────── */
.kpi-count { font-variant-numeric: tabular-nums; }

/* ─────────────────────────────────────────────────────────────
   Animations d'entrée — fade-up sur cards
   ───────────────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: translateY(0) } }
.fade-up { animation: fadeUp .42s ease-out both; }
.fade-up-1 { animation-delay: .05s }
.fade-up-2 { animation-delay: .12s }
.fade-up-3 { animation-delay: .19s }
.fade-up-4 { animation-delay: .26s }

/* ─────────────────────────────────────────────────────────────
   Alertes intelligentes — dashboard
   ───────────────────────────────────────────────────────────── */
.smart-alerts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.smart-alert {
  background: var(--bs-body-bg, #fff);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start;
  border-left: 3px solid #ff8a00;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.smart-alert:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.smart-alert.severity-danger  { border-left-color: #dc3545; }
.smart-alert.severity-warning { border-left-color: #f0a500; }
.smart-alert.severity-info    { border-left-color: #0d8bf2; }
.smart-alert-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,138,0,.12); color: #ff8a00; flex-shrink: 0;
}
.smart-alert.severity-danger  .smart-alert-icon { background: rgba(220,53,69,.12);  color: #dc3545; }
.smart-alert.severity-warning .smart-alert-icon { background: rgba(240,165,0,.12);  color: #f0a500; }
.smart-alert.severity-info    .smart-alert-icon { background: rgba(13,139,242,.12); color: #0d8bf2; }
.smart-alert-body { min-width: 0; flex: 1; }
.smart-alert-title { font-weight: 600; font-size: .9rem; color: var(--bs-body-color, #222); margin-bottom: 2px; }
.smart-alert-sub { font-size: .8rem; color: #6c757d; line-height: 1.4; }
.smart-alert-cta { margin-top: 6px; font-size: .78rem; color: #ff8a00; text-decoration: none; font-weight: 600; }
.smart-alert-cta:hover { text-decoration: underline; }
[data-bs-theme="dark"] .smart-alert { background: #151b22; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
[data-bs-theme="dark"] .smart-alert-title { color: #e6e8eb; }

/* ─────────────────────────────────────────────────────────────
   Score santé client — gauge circulaire
   ───────────────────────────────────────────────────────────── */
.health-gauge { display: inline-flex; flex-direction: column; align-items: center; }
.health-gauge svg { width: 110px; height: 110px; }
.health-gauge-track { fill: none; stroke: var(--bs-tertiary-bg, #f0f1f3); stroke-width: 10; }
.health-gauge-bar   { fill: none; stroke-width: 10; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .9s cubic-bezier(.2,.7,.2,1); }
.health-gauge-value { font-size: 1.6rem; font-weight: 700; fill: var(--bs-body-color, #222); }
.health-gauge-label { font-size: .68rem; fill: #8a96a6; text-transform: uppercase; letter-spacing: .8px; }
[data-bs-theme="dark"] .health-gauge-value { fill: #e6e8eb; }

/* ── Lignes de tableau cliquables ── */
tr.row-clickable[data-href] { cursor: pointer; transition: background .15s ease; }
tr.row-clickable[data-href]:hover { background: rgba(255, 138, 0, .06); }
[data-bs-theme="dark"] tr.row-clickable[data-href]:hover { background: rgba(255, 138, 0, .12); }

/* ── Dark mode cards KPI ── */
[data-bs-theme="dark"] .card-mam,
[data-bs-theme="dark"] .kpi-mam,
[data-bs-theme="dark"] .hk-card { background: #1a2029 !important; border-color: #2a323d !important; color: #e6e8eb; }
[data-bs-theme="dark"] .kpi-value,
[data-bs-theme="dark"] .kpi-label,
[data-bs-theme="dark"] .page-greeting,
[data-bs-theme="dark"] .table { color: #e6e8eb !important; }
[data-bs-theme="dark"] .table thead { color: #8a96a6 !important; }
[data-bs-theme="dark"] .text-muted { color: #8a96a6 !important; }

/* ── Top clients (liste visuelle barres + sparkline) ── */
.top-clients-list { display: flex; flex-direction: column; gap: .35rem; }
.top-client-row {
  display: grid; grid-template-columns: 36px 1fr; gap: 1rem;
  padding: .85rem 1rem; border-radius: 12px; text-decoration: none; color: inherit;
  transition: background .15s ease, transform .15s ease;
  border: 1px solid transparent;
}
.top-client-row:hover { background: rgba(255,138,0,.05); border-color: rgba(255,138,0,.15); transform: translateX(2px); color: inherit; }
[data-bs-theme="dark"] .top-client-row:hover { background: rgba(255,138,0,.12); border-color: rgba(255,138,0,.3); }
.tc-rank { font-weight: 700; font-size: 1.1rem; color: #ff8a00; align-self: center; text-align: center; }
.tc-body { min-width: 0; }
.tc-name { font-weight: 600; font-size: .95rem; }
.tc-amount { font-weight: 700; font-variant-numeric: tabular-nums; font-size: .95rem; }
.tc-amount-unit { font-weight: 400; font-size: .75rem; color: #8a96a6; }
.tc-bar-wrap { position: relative; height: 8px; background: #f0f1f3; border-radius: 4px; overflow: hidden; }
[data-bs-theme="dark"] .tc-bar-wrap { background: #2a323d; }
.tc-bar { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #ff8a00, #ffb347); border-radius: 4px; transition: width .9s cubic-bezier(.2,.7,.2,1); }
.tc-bar-label { display: none; }
.tc-meta { font-size: .78rem; color: #8a96a6; }
.tc-spark { width: 120px; height: 28px; flex-shrink: 0; }

/* fix sparkline width override */
svg.tc-spark { width: 120px !important; height: 28px !important; max-width: 120px; max-height: 28px; min-width: 120px; flex: 0 0 120px; display: block; }

/* ── Timeline activité ── */
.activity-timeline { position: relative; padding: .5rem 1rem .5rem 1rem; }
.activity-timeline::before {
  content: ''; position: absolute; left: 1.85rem; top: 1.5rem; bottom: 1.5rem;
  width: 2px; background: linear-gradient(180deg, rgba(255,138,0,.25), rgba(255,138,0,.05));
}
[data-bs-theme="dark"] .activity-timeline::before { background: linear-gradient(180deg, rgba(255,138,0,.35), rgba(255,138,0,.08)); }
.tl-item { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: .85rem; padding: .55rem 0; }
.tl-marker {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid #ff8a00; color: #ff8a00;
  z-index: 1; flex-shrink: 0;
}
[data-bs-theme="dark"] .tl-marker { background: #1a2029; }
.tl-type-delivery .tl-marker { border-color: #0d8bf2; color: #0d8bf2; }
.tl-content { padding-top: .15rem; min-width: 0; }
.tl-label { font-weight: 600; font-size: .92rem; }
.tl-label a { color: inherit; text-decoration: none; border-bottom: 1px dashed transparent; transition: border-color .15s ease; }
.tl-label a:hover { border-color: #ff8a00; color: #ff8a00; }
.tl-date { font-size: .78rem; color: #8a96a6; font-variant-numeric: tabular-nums; }
.tl-sub { font-size: .82rem; color: #8a96a6; margin-top: .15rem; font-variant-numeric: tabular-nums; }

/* ── Top produits ── */
.top-products-list { display: flex; flex-direction: column; gap: .25rem; padding: .35rem .25rem; }
.tp-row { display: grid; grid-template-columns: 36px 1fr; gap: .85rem; padding: .65rem .85rem; border-radius: 10px; transition: background .15s ease; }
.tp-row:hover { background: rgba(255,138,0,.05); }
[data-bs-theme="dark"] .tp-row:hover { background: rgba(255,138,0,.08); }
.tp-rank { font-weight: 700; color: #ff8a00; font-size: .95rem; padding-top: .15rem; }
.tp-label { font-weight: 600; font-size: .9rem; line-height: 1.25; padding-right: 1rem; }
.tp-amount { font-weight: 700; font-variant-numeric: tabular-nums; font-size: .9rem; white-space: nowrap; }
.tp-bar-wrap { height: 6px; background: #f0f1f3; border-radius: 4px; margin: .35rem 0 .3rem; overflow: hidden; }
[data-bs-theme="dark"] .tp-bar-wrap { background: rgba(255,255,255,.05); }
.tp-bar { height: 100%; background: linear-gradient(90deg, #ff8a00, #ffb347); border-radius: 4px; transition: width .9s cubic-bezier(.2,.7,.2,1); }
.tp-meta { font-size: .74rem; color: #8a96a6; font-variant-numeric: tabular-nums; }

/* ── Équipement ── */
.equipment-list { display: flex; flex-direction: column; gap: .25rem; padding: .35rem .25rem; }
.eq-row { display: grid; grid-template-columns: 6px 1fr auto; gap: .85rem; align-items: center; padding: .65rem .85rem; border-radius: 10px; transition: background .15s ease; }
.eq-row:hover { background: rgba(255,138,0,.04); }
[data-bs-theme="dark"] .eq-row:hover { background: rgba(255,138,0,.06); }
.eq-status { width: 6px; height: 34px; border-radius: 3px; }
.eq-name { font-weight: 600; font-size: .88rem; line-height: 1.2; }
.eq-meta { font-size: .73rem; color: #8a96a6; margin-top: .1rem; }
.eq-tag { font-size: .68rem; font-weight: 600; padding: .25rem .55rem; border: 1px solid; border-radius: 999px; white-space: nowrap; letter-spacing: .03em; text-transform: uppercase; }

/* badge "présent chez N clients" */
.badge-reach {
  display: inline-block;
  padding: .15rem .55rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(255,138,0,.12);
  color: #ff8a00;
  border: 1px solid rgba(255,138,0,.3);
  white-space: nowrap;
}
[data-bs-theme="dark"] .badge-reach { background: rgba(255,138,0,.16); border-color: rgba(255,138,0,.4); }

/* ── Catégorie client : badges colorés ── */
.badge-cat {
  display: inline-block;
  padding: .15rem .55rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.3;
  border: 1px solid transparent;
}
.badge-cat-boulangerie { background: rgba(245, 158, 11, .12); color: #b45309; border-color: rgba(245, 158, 11, .35); }
.badge-cat-patisserie  { background: rgba(236, 72, 153, .10); color: #be185d; border-color: rgba(236, 72, 153, .30); }
.badge-cat-restaurant  { background: rgba(13, 139, 242, .10); color: #0d8bf2; border-color: rgba(13, 139, 242, .30); }
.badge-cat-traiteur    { background: rgba(22, 163, 74, .10);  color: #15803d; border-color: rgba(22, 163, 74, .30); }
.badge-cat-non         { background: rgba(107, 114, 128, .10); color: #6b7280; border-color: rgba(107, 114, 128, .25); }
[data-bs-theme="dark"] .badge-cat-boulangerie { background: rgba(245, 158, 11, .18); color: #fbbf24; }
[data-bs-theme="dark"] .badge-cat-patisserie  { background: rgba(236, 72, 153, .18); color: #f9a8d4; }
[data-bs-theme="dark"] .badge-cat-restaurant  { background: rgba(13, 139, 242, .18); color: #5db2ff; }
[data-bs-theme="dark"] .badge-cat-traiteur    { background: rgba(22, 163, 74, .18);  color: #6ee7b7; }
[data-bs-theme="dark"] .badge-cat-non         { background: rgba(148, 163, 184, .15); color: #cbd5e1; }

/* ── Variantes bleues pour Top produits (volume) ── */
.tp-rank-blue { background: linear-gradient(135deg, #0d8bf2, #5db2ff) !important; }
.tp-bar-blue  { background: linear-gradient(90deg, #0d8bf2, #5db2ff) !important; }
