/* ================================================================
   SEN TEW MARKETPLACE — CSS v50 — 01 septembre 2026
   Refonte totale : émeraude + or + fix mode clair partout
   Compatible avec structure v42/v46/v47/v48
   ================================================================ */

/* ========== 1. VARIABLES ========== */
:root {
  /* Verts */
  --v-emeraude: #0f6b4e;
  --v-forest: #0a4d38;
  --v-menthe: #00c060;
  --v-clair: #c8f0d8;

  /* Or */
  --or-royal: #d4a574;
  --or-clair: #f0c99a;
  --or-fonce: #a67c3a;

  /* Neutres */
  --blanc-nacre: #f5f5f0;
  --gris-clair: #e5e5e0;
  --gris-fonce: #4a5a52;
  --noir-profond: #0a1f17;

  /* Alertes */
  --rouge: #ef4444;
  --orange: #f59e0b;
  --bleu: #3b82f6;
  --violet: #a855f7;

  /* Système clair par défaut */
  --bg: #ffffff;
  --bg-card: #f5f5f0;
  --bg-page: #f5f5f0;
  --text: #0a1f17;
  --text-primary: #0a1f17;
  --text-secondary: #4a5a52;
  --text-muted: #6b7a72;
  --text-emerald: #0f6b4e;
  --text-gold: #a67c3a;
  --border: #e5e5e0;
  --shadow: 0 2px 8px rgba(15, 107, 78, 0.08);
  --shadow-hover: 0 4px 16px rgba(15, 107, 78, 0.15);
  --radius: 12px;
  --radius-lg: 16px;
}

body.dark-mode, [data-theme="dark"] {
  --bg: #0a1f17;
  --bg-card: #1a2e24;
  --bg-page: #0a1f17;
  --text: #f5f5f0;
  --text-primary: #f5f5f0;
  --text-secondary: #c8f0d8;
  --text-muted: #a3b8ac;
  --text-emerald: #c8f0d8;
  --text-gold: #f0c99a;
  --border: #2a4438;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ========== 2. RESET GLOBAL ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 80px;
}

a { color: var(--v-emeraude); text-decoration: none; }
button { border: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }

/* ========== 3. TOPBAR ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.topbar h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--v-emeraude);
  flex: 1;
}
.btn-back {
  background: transparent;
  color: var(--v-emeraude);
  font-size: 22px;
  padding: 8px 12px;
  border-radius: 8px;
}

/* ========== 4. BOTTOM NAV ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 8px 4px;
  display: flex;
  justify-content: space-around;
  z-index: 100;
}
.bottom-nav a, .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.bottom-nav a.active, .nav-item.active { color: var(--v-emeraude); }

/* ========== 5. CARDS PRODUITS ========== */
.pcard {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: var(--shadow);
}
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.pcard-img { position: relative; aspect-ratio: 1; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-info, .pcard-body { padding: 10px; }
.pcard-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.pcard-badge {
  background: var(--v-emeraude);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 6px;
}
.pcard-badge-live { background: var(--rouge); }
.pcard-badge-local { background: var(--or-royal); }
.pcard-badge-disc { background: var(--rouge); }

/* ========== 6. BOUTONS ========== */
.btn-primary {
  background: var(--v-emeraude);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}
.btn-primary:hover { background: var(--v-forest); }
.btn-or {
  background: linear-gradient(135deg, var(--or-royal), var(--or-fonce));
  color: var(--noir-profond);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
}

/* ========== 7. ICÔNES LUCIDE ========== */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  stroke-width: 2;
  vertical-align: middle;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.icon-sm { width: 18px; height: 18px; stroke-width: 2; }
.icon-md { width: 24px; height: 24px; stroke-width: 2; }
.icon-lg { width: 32px; height: 32px; stroke-width: 2; }
.icon-xl { width: 48px; height: 48px; stroke-width: 2; }
.icon-xs { width: 14px; height: 14px; stroke-width: 2; }

.icon-bg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-vert { color: var(--v-emeraude); }
.icon-or { color: var(--or-fonce); }
.icon-rouge { color: var(--rouge); }
.icon-bleu { color: var(--bleu); }
.icon-violet { color: var(--violet); }
.icon-orange { color: var(--orange); }
.icon-blanc { color: #fff; stroke: #fff; }
.icon-noir { color: var(--noir-profond); stroke: var(--noir-profond); }

body.dark-mode .icon-vert { color: var(--v-clair); }
body.dark-mode .icon-or { color: var(--or-clair); }

/* Fonds colorés doux */
.bg-vert-soft { background: rgba(15, 107, 78, 0.1); }
.bg-or-soft { background: rgba(212, 165, 116, 0.15); }
.bg-rouge-soft { background: rgba(239, 68, 68, 0.1); }
.bg-orange-soft { background: rgba(245, 158, 11, 0.1); }
.bg-bleu-soft { background: rgba(59, 130, 246, 0.1); }
.bg-violet-soft { background: rgba(168, 85, 247, 0.1); }

.bg-gradient-vert { background: linear-gradient(135deg, #0f6b4e, #0a4d38); }
.bg-gradient-or { background: linear-gradient(135deg, #d4a574, #a67c3a); }
.bg-gradient-fintech { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
.bg-gradient-ia { background: linear-gradient(135deg, #a855f7, #6366f1); }

.icon-btn {
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.icon-btn:hover { background: rgba(15, 107, 78, 0.1); }
.icon-btn:active { transform: scale(0.95); }

.icon-badge { position: relative; }
.icon-badge::after {
  content: attr(data-count);
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--rouge);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 12px 0;
}
.icon-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.icon-grid-item span {
  font-size: 11px;
  font-weight: 600;
  color: var(--v-emeraude);
  text-align: center;
  line-height: 1.2;
}

/* ========== 8. FORMULAIRES ========== */
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--v-emeraude);
}

/* ========== 9. SECTIONS ========== */
.section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--v-emeraude);
  margin: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pcard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 16px;
}
@media (min-width: 640px) {
  .pcard-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .pcard-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ========== 10. UTILITAIRES ========== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.rounded { border-radius: 10px; }
.hidden { display: none; }

/* ========== 11. ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.3s ease; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.pulse { animation: pulse 2s infinite; }

@keyframes flash {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.flash { animation: flash 0.8s infinite; }

/* ========== 12. FAB ========== */
.fab-add {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--v-emeraude), var(--v-forest));
  color: white;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 107, 78, 0.4);
  z-index: 99;
}

/* ========== 13. FIX EMOJIS ========== */
.emoji, .emoji-fix {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-style: normal !important;
  font-variant: normal !important;
  font-weight: normal !important;
  line-height: 1 !important;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .section-title, .topbar h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ================================================================
   ██████████████████████████████████████████████████████████████
   FIX v50 — MODE CLAIR TOUTES PAGES (01/09/2026)
   ██████████████████████████████████████████████████████████████
   ================================================================ */

/* --- 1. BODY LIGHT MODE FORCÉ --- */
body.light-mode {
  background: #f5f5f0 !important;
  color: #0a1f17 !important;
}
body.light-mode .topbar,
body.light-mode .bottom-nav {
  background: #ffffff !important;
  border-color: #e5e5e0 !important;
}
body.light-mode .topbar h1 { color: #0f6b4e !important; font-weight: 700 !important; }
body.light-mode .bottom-nav a { color: #4a5a52 !important; }
body.light-mode .bottom-nav a.active,
body.light-mode .bottom-nav a.active span,
body.light-mode .bottom-nav a.active i { color: #0f6b4e !important; }

body.light-mode main, body.light-mode section, body.light-mode footer {
  background: #f5f5f0 !important;
  color: #0a1f17 !important;
}
body.light-mode h1, body.light-mode h2, body.light-mode h3, body.light-mode h4 {
  color: #0a4d38 !important;
}

/* --- 2. CARTES BLANCHES PARTOUT --- */
body.light-mode .card,
body.light-mode .card-stat,
body.light-mode .card-adresse,
body.light-mode .card-produit,
body.light-mode .card-fav,
body.light-mode .card-cmd,
body.light-mode .card-livraison,
body.light-mode .pcard,
body.light-mode .stat-box,
body.light-mode .solde-box,
body.light-mode article,
body.light-mode [class*="stat"]:not([class*="stats-grid"]) {
  background: #ffffff !important;
  color: #0a1f17 !important;
  border: 1px solid #e5e5e0 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(15, 107, 78, 0.08) !important;
}

body.light-mode .card *, body.light-mode .card-stat *,
body.light-mode .card-adresse *, body.light-mode .stat-box *,
body.light-mode .pcard-body *:not(button):not(.pcard-price):not(.pcard-seller):not(.badge):not([class*="badge"]) {
  color: inherit;
}

/* --- 3. STATISTIQUES (Revenus/Ventes/Visiteurs/Conversion) --- */
body.light-mode .stats-grid .stat-box,
body.light-mode [class*="stat-card"] {
  background: linear-gradient(135deg, #ffffff, #f5f5f0) !important;
  color: #0a1f17 !important;
  border: 1px solid #d4a574 !important;
}
body.light-mode .stat-box strong,
body.light-mode .stat-box .num,
body.light-mode .stat-box .value {
  color: #0f6b4e !important;
  font-weight: 800 !important;
}
body.light-mode .stat-box .label,
body.light-mode .stat-box small { color: #4a5a52 !important; }

/* Cartes stats colorées (gardent leurs couleurs) */
.stat-card.revenue, [class*="stat"][class*="revenue"] {
  background: linear-gradient(135deg, #0f6b4e, #0a4d38) !important;
  color: #ffffff !important;
  border: none !important;
}
.stat-card.sales, [class*="stat"][class*="sales"] {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: #ffffff !important;
  border: none !important;
}
.stat-card.visitors, [class*="stat"][class*="visitors"] {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: #ffffff !important;
  border: none !important;
}
.stat-card.conversion, [class*="stat"][class*="conversion"] {
  background: linear-gradient(135deg, #a855f7, #7c3aed) !important;
  color: #ffffff !important;
  border: none !important;
}
.stat-card.revenue *, .stat-card.sales *,
.stat-card.visitors *, .stat-card.conversion * { color: #ffffff !important; }

/* --- 4. PORTEFEUILLE (solde 15 000 FCFA) --- */
body.light-mode .solde-hero,
body.light-mode .wallet-hero,
body.light-mode [class*="solde"]:not([class*="value"]):not([class*="eur"]):not([class*="usd"]) {
  background: linear-gradient(135deg, #0f6b4e, #0a4d38) !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(15, 107, 78, 0.25) !important;
}
body.light-mode .solde-hero *,
body.light-mode .wallet-hero * { color: #ffffff !important; }
body.light-mode .solde-value,
body.light-mode .solde-hero h2,
body.light-mode .wallet-amount {
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 36px !important;
}
body.light-mode .solde-eur,
body.light-mode .solde-usd { color: rgba(255, 255, 255, 0.85) !important; }
body.light-mode .solde-hero button,
body.light-mode .wallet-hero button {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  backdrop-filter: blur(10px);
}

/* --- 5. PARRAINAGE (Gagnez 500 FCFA) --- */
body.light-mode .parrainage-hero,
body.light-mode .card-parrainage {
  background: linear-gradient(135deg, #0f6b4e, #d4a574) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(15, 107, 78, 0.2) !important;
}
body.light-mode .parrainage-hero *,
body.light-mode .card-parrainage * { color: #ffffff !important; }

body.light-mode .gains-box.entrees {
  background: #d1fae5 !important;
  color: #065f46 !important;
}
body.light-mode .gains-box.sorties {
  background: #fee2e2 !important;
  color: #7f1d1d !important;
}

/* --- 6. FAVORIS (nom vendeur or) --- */
body.light-mode .card-fav .vendeur,
body.light-mode .pcard-vendeur,
body.light-mode .pcard-seller {
  color: #a67c3a !important;
  font-weight: 600 !important;
  background: transparent !important;
}
body.light-mode .card-fav .nom,
body.light-mode .pcard-name,
body.light-mode .pcard h3 {
  color: #0a1f17 !important;
  font-weight: 700 !important;
}
body.light-mode .card-fav .prix,
body.light-mode .pcard-price {
  color: #0f6b4e !important;
  font-weight: 800 !important;
}

/* --- 7. ADRESSES (fond blanc, texte visible) --- */
body.light-mode .card-adresse {
  background: #ffffff !important;
  color: #0a1f17 !important;
  border: 1px solid #e5e5e0 !important;
  border-radius: 16px !important;
  padding: 16px !important;
  margin: 12px 16px !important;
  box-shadow: 0 2px 8px rgba(15, 107, 78, 0.05) !important;
}
body.light-mode .card-adresse header {
  color: #a67c3a !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
}
body.light-mode .card-adresse .nom {
  color: #0a1f17 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
}
body.light-mode .card-adresse p { color: #4a5a52 !important; margin: 2px 0 !important; }
body.light-mode .card-adresse a[href^="tel"] { color: #0f6b4e !important; font-weight: 700 !important; }
body.light-mode .card-adresse .badge-defaut {
  background: #c8f0d8 !important;
  color: #0a4d38 !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

/* --- 8. INDEX (cartes produits mode clair) --- */
body.dark-mode .pcard,
body.dark-mode .card-produit {
  background: #1a2e24 !important;
  color: #f5f5f0 !important;
  border: 1px solid #2a4438 !important;
}
body.dark-mode .pcard-name,
body.dark-mode .pcard h3 { color: #f5f5f0 !important; font-weight: 700 !important; }
body.dark-mode .pcard-price { color: #c8f0d8 !important; font-weight: 800 !important; }
body.dark-mode .pcard-seller { color: #f0c99a !important; }
body.dark-mode .pcard-old-price {
  color: #a3b8ac !important;
  text-decoration: line-through !important;
}

/* --- 9. ICÔNES LUCIDE COLORÉES --- */
.icon-vert, [data-lucide][class*="vert"] { color: #0f6b4e; }
.icon-or, [data-lucide][class*="or"] { color: #a67c3a; }
.icon-rouge, [data-lucide][class*="rouge"] { color: #ef4444; }
.icon-bleu, [data-lucide][class*="bleu"] { color: #3b82f6; }
body.dark-mode .icon-vert { color: #c8f0d8 !important; }
body.dark-mode .icon-or { color: #f0c99a !important; }

/* --- 10. TOPBAR & NAV UNIFIÉS --- */
body.light-mode .topbar {
  background: #ffffff !important;
  color: #0a1f17 !important;
  border-bottom: 1px solid #e5e5e0 !important;
}
body.light-mode .topbar h1 { color: #0f6b4e !important; font-weight: 700 !important; }
body.light-mode .bottom-nav {
  background: #ffffff !important;
  border-top: 1px solid #e5e5e0 !important;
}
body.dark-mode .topbar {
  background: #0a1f17 !important;
  color: #f5f5f0 !important;
  border-bottom: 1px solid #2a4438 !important;
}
body.dark-mode .topbar h1 { color: #c8f0d8 !important; }
body.dark-mode .bottom-nav {
  background: #0a1f17 !important;
  border-top: 1px solid #2a4438 !important;
}
body.dark-mode .bottom-nav a { color: #a3b8ac !important; }
body.dark-mode .bottom-nav a.active,
body.dark-mode .bottom-nav a.active span,
body.dark-mode .bottom-nav a.active i { color: #c8f0d8 !important; }

/* --- 11. INPUTS UNIFIÉS --- */
body.light-mode input, body.light-mode textarea, body.light-mode select {
  background: #ffffff !important;
  color: #0a1f17 !important;
  border: 1px solid #e5e5e0 !important;
}
body.light-mode input:focus, body.light-mode textarea:focus, body.light-mode select:focus {
  border-color: #0f6b4e !important;
  outline: 2px solid #c8f0d8 !important;
}
body.dark-mode input, body.dark-mode textarea, body.dark-mode select {
  background: #1a2e24 !important;
  color: #f5f5f0 !important;
  border: 1px solid #2a4438 !important;
}

/* --- 12. HERO GRADIENT UNIVERSEL --- */
.hero-emerald-gold, .hero-gradient {
  background: linear-gradient(135deg, #0f6b4e 0%, #0a4d38 55%, #d4a574 130%);
  color: #ffffff !important;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(15, 107, 78, 0.25);
  position: relative;
  overflow: hidden;
}
.hero-emerald-gold *, .hero-gradient * { color: #ffffff !important; }
.hero-emerald-gold::before {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.hero-emerald-gold::after {
  content: '';
  position: absolute;
  left: -40px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(212, 165, 116, 0.15);
}

/* --- 13. SECTIONS TITLES --- */
body.light-mode .section-title,
body.light-mode .section-head h2 {
  color: #a67c3a !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: 0.5px !important;
  margin: 20px 16px 12px !important;
}
body.dark-mode .section-title,
body.dark-mode .section-head h2 { color: #f0c99a !important; }
body.light-mode .section-head .see-all { color: #a67c3a !important; }
body.dark-mode .section-head .see-all { color: #f0c99a !important; }
main > section, main > div.section-head + * { margin-bottom: 4px; }
.section-head { margin-top: 8px; }

/* Bannière promo bottom */
#sentew-promo-banner {
  bottom: 76px !important;
  z-index: 90 !important;
}

/* ================================================================
   FIX v50 — FONDS VERTS ILLISIBLES (SUPPRESSION)
   ================================================================ */

/* Supprimer TOUS fonds verts sur titres/textes */
.pcard-name, .pcard-name span,
.pcard h3, .pcard h4, .pcard p, .pcard-body *,
.notif-title, .notif-body *,
.card-fav h3, .card-fav .nom, .card-fav p,
.similaire-card h4, .similaire-card .body *,
.suggest-card h4, .suggest-card .body *,
.top-item strong, .top-item small,
.live-item strong, .live-item span:not(.live-badge),
[class*="pcard"] h3, [class*="pcard"] h4 {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* NOMS PRODUITS - texte noir sur fond blanc */
body.light-mode .pcard-name,
body.light-mode .pcard h3, body.light-mode .pcard h4,
body.light-mode .notif-title,
body.light-mode .similaire-card h4,
body.light-mode .suggest-card h4,
body.light-mode .card-fav .nom {
  color: #0a1f17 !important;
  background: transparent !important;
  padding: 0 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}
body.dark-mode .pcard-name,
body.dark-mode .pcard h3, body.dark-mode .pcard h4,
body.dark-mode .notif-title,
body.dark-mode .similaire-card h4,
body.dark-mode .suggest-card h4,
body.dark-mode .card-fav .nom {
  color: #f5f5f0 !important;
  background: transparent !important;
  padding: 0 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

/* NOMS BOUTIQUES LIVE + TOP */
body.light-mode .live-item strong,
body.light-mode .top-item strong,
body.light-mode .top-item small {
  background: transparent !important;
  color: #0a1f17 !important;
  padding: 0 !important;
}
body.dark-mode .live-item strong,
body.dark-mode .top-item strong {
  background: transparent !important;
  color: #f5f5f0 !important;
}
body.dark-mode .top-item small {
  color: #a3b8ac !important;
  background: transparent !important;
}

/* PRIX - vert émeraude visible, jamais en fond */
.pcard-price, .notif-price,
.similaire-card .pr, .suggest-card .pr,
.card-fav .prix, .card-fav .pcard-price {
  background: transparent !important;
  background-color: transparent !important;
  color: #0f6b4e !important;
  font-weight: 900 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
body.dark-mode .pcard-price, body.dark-mode .notif-price,
body.dark-mode .similaire-card .pr, body.dark-mode .suggest-card .pr,
body.dark-mode .card-fav .prix {
  color: #c8f0d8 !important;
  background: transparent !important;
}

/* PRIX BARRÉ (ancien prix) */
.pcard-old-price, .notif-price .old, .price-old {
  background: transparent !important;
  color: #a3b8ac !important;
  text-decoration: line-through !important;
}

/* NOM VENDEUR - or foncé (light) / or clair (dark) */
.pcard-seller, .notif-seller,
.similaire-card .vd, .suggest-card .vd,
.card-fav .vendeur {
  background: transparent !important;
  padding: 0 !important;
}
body.light-mode .pcard-seller, body.light-mode .notif-seller,
body.light-mode .similaire-card .vd, body.light-mode .suggest-card .vd,
body.light-mode .card-fav .vendeur { color: #a67c3a !important; }
body.dark-mode .pcard-seller, body.dark-mode .notif-seller,
body.dark-mode .similaire-card .vd, body.dark-mode .suggest-card .vd,
body.dark-mode .card-fav .vendeur { color: #f0c99a !important; }

/* CARTES PRODUITS - fond blanc net partout */
body.light-mode .pcard, body.light-mode .pcard-body,
body.light-mode article.pcard, body.light-mode .card-fav,
body.light-mode .similaire-card, body.light-mode .similaire-card .body,
body.light-mode .suggest-card, body.light-mode .suggest-card .body {
  background: #ffffff !important;
  color: #0a1f17 !important;
}

/* CARTES PRODUITS - fond sombre net en mode sombre */
body.dark-mode .pcard, body.dark-mode .pcard-body,
body.dark-mode article.pcard, body.dark-mode .card-fav,
body.dark-mode .similaire-card, body.dark-mode .similaire-card .body,
body.dark-mode .suggest-card, body.dark-mode .suggest-card .body {
  background: #1a2e24 !important;
  color: #f5f5f0 !important;
}

/* SUPPRIMER TOUS OVERLAYS VERTS RÉSIDUELS */
.pcard-body::before, .pcard-body::after,
.pcard-name::before, .pcard-name::after {
  display: none !important;
  content: none !important;
}

/* Trend grid & catégories : fond page clair */
body.light-mode .trend-grid,
body.light-mode .cats-grid,
body.light-mode .live-scroll,
body.light-mode .top-scroll {
  background: transparent !important;
}

/* PRODUITS PAGE (Tous les produits) */
body.light-mode .produits-grid .pcard,
body.light-mode .products-list .pcard {
  background: #ffffff !important;
}
body.light-mode .produits-grid .pcard-name,
body.light-mode .products-list .pcard-name {
  background: transparent !important;
  color: #0a1f17 !important;
}

/* ================================================================
   FIX v50 — MESSAGES / NOTIFICATIONS / RECHERCHE-IA / STATS
   ================================================================ */

/* Messages : suppression fond vert sur titres vendeurs */
body.light-mode .msg-vendeur-name,
body.light-mode .msg-title,
body.light-mode .chat-title {
  background: transparent !important;
  color: #0a1f17 !important;
  font-weight: 700 !important;
}

/* Notifications : cartes blanches lisibles */
body.light-mode .notif-card {
  background: #ffffff !important;
  border-left: 4px solid #0f6b4e !important;
  color: #0a1f17 !important;
  box-shadow: 0 2px 8px rgba(15, 107, 78, 0.05) !important;
}
body.light-mode .notif-card.flash { border-left-color: #ef4444 !important; }
body.light-mode .notif-card.live { border-left-color: #f59e0b !important; }
body.light-mode .notif-card.local { border-left-color: #d4a574 !important; }

/* Recherche IA : cartes blanches, texte visible */
body.light-mode .search-card,
body.light-mode .trend-badge,
body.light-mode .history-item {
  background: #ffffff !important;
  color: #0a1f17 !important;
  border: 1px solid #e5e5e0 !important;
}
body.light-mode .search-card.active {
  border: 2px solid #0f6b4e !important;
  background: #f0fdf4 !important;
}

/* Boutique (Moussa Tech) : stats lisibles */
body.light-mode .shop-hero-stat,
body.light-mode .shop-stat-box {
  background: #ffffff !important;
  color: #0a1f17 !important;
  border: 1px solid #e5e5e0 !important;
  border-radius: 12px !important;
  padding: 14px !important;
  box-shadow: 0 2px 8px rgba(15, 107, 78, 0.05) !important;
}
body.light-mode .shop-hero-stat strong,
body.light-mode .shop-stat-box strong {
  color: #0a1f17 !important;
  font-weight: 800 !important;
  font-size: 20px !important;
}
body.light-mode .shop-hero-stat small,
body.light-mode .shop-stat-box small {
  color: #4a5a52 !important;
  font-size: 12px !important;
}

/* Profil : cartes stats (500 FCFA / 0 Commandes / Bronze) */
body.light-mode .profile-stat,
body.light-mode .pstat {
  background: #ffffff !important;
  color: #0a1f17 !important;
  border: 1px solid #e5e5e0 !important;
  border-radius: 12px !important;
  padding: 16px 8px !important;
  box-shadow: 0 2px 8px rgba(15, 107, 78, 0.05) !important;
  text-align: center !important;
}
body.light-mode .profile-stat .value,
body.light-mode .profile-stat strong,
body.light-mode .pstat-value {
  color: #0a1f17 !important;
  font-weight: 800 !important;
  font-size: 20px !important;
}
body.light-mode .profile-stat .label,
body.light-mode .profile-stat small,
body.light-mode .pstat-label {
  color: #4a5a52 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}
body.light-mode .pstat-gold,
body.light-mode .profile-stat.bronze,
body.light-mode .profile-stat.gold {
  background: linear-gradient(135deg, #fff4e6, #fce4b8) !important;
  border-color: #d4a574 !important;
}
body.light-mode .pstat-gold .pstat-value,
body.light-mode .profile-stat.bronze strong,
body.light-mode .profile-stat.gold strong { color: #a67c3a !important; }

/* Panier : logos paiement */
.pay-option {
  background: #ffffff;
  border: 2px solid #e5e5e0;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.pay-option.active {
  border-color: #0f6b4e;
  background: #e8f5ee;
}
.pay-logo { width: 28px; height: 28px; object-fit: contain; }

/* Fonds paiement portefeuille */
.fund-option {
  background: #ffffff;
  border: 2px solid #e5e5e0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.fund-option.active { border-color: #0f6b4e; background: #e8f5ee; }
.fund-logo { width: 40px; height: 40px; object-fit: contain; }
.fund-info { flex: 1; }
.fund-info strong { display: block; color: #0a1f17; font-size: 14px; font-weight: 800; }
.fund-info small { color: #4a5a52; font-size: 11px; }
body.dark-mode .fund-option { background: #1a2e24; border-color: #2a4438; }
body.dark-mode .fund-option.active { background: #0a4d38; border-color: #c8f0d8; }
body.dark-mode .fund-info strong { color: #f5f5f0; }
body.dark-mode .fund-info small { color: #a3b8ac; }

/* Placeholder input light-mode */
body.light-mode input::placeholder,
body.light-mode textarea::placeholder { color: #6a7a72 !important; }

/* ================================================================
   FIN v50 — 01 septembre 2026
   ================================================================ */
/* ========== v51 FIX FINAL – Contrastes pages blanches ========== */

/* Fix hero cards illisibles en mode clair */
body.light-mode .hero-card,
body.light-mode .hero-emerald,
body.light-mode .hero-emerald-gold,
body.light-mode .hero-gold,
body.light-mode .hero-purple,
body.light-mode .hero-ia {
  background: linear-gradient(135deg, #0f6b4e 0%, #0a4d38 100%) !important;
  color: #ffffff !important;
}

body.light-mode .hero-card *,
body.light-mode .hero-emerald *,
body.light-mode .hero-emerald-gold *,
body.light-mode .hero-gold *,
body.light-mode .hero-purple *,
body.light-mode .hero-ia * {
  color: #ffffff !important;
}

/* Cartes IA / Assistant */
body.light-mode .ia-card,
body.light-mode .assistant-card {
  background: linear-gradient(135deg, #6b46c1 0%, #4c1d95 100%) !important;
  color: #ffffff !important;
}

body.light-mode .ia-card *,
body.light-mode .assistant-card * {
  color: #ffffff !important;
}

/* Cartes GOLD fidélité */
body.light-mode .gold-card,
body.light-mode .fidelite-hero {
  background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(212, 165, 116, 0.4);
}

body.light-mode .gold-card *,
body.light-mode .fidelite-hero * {
  color: #ffffff !important;
}

/* Sections remboursement / litige / confidentialité */
body.light-mode .section-card {
  background: #ffffff !important;
  color: #1a1a1a !important;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

body.light-mode .section-card h2,
body.light-mode .section-card h3,
body.light-mode .section-card p,
body.light-mode .section-card li,
body.light-mode .section-card span {
  color: #1a1a1a !important;
}

/* Boutons universels */
.btn-primary {
  background: linear-gradient(135deg, #0f6b4e 0%, #0a4d38 100%);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 107, 78, 0.3);
}

.btn-gold {
  background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.btn-outline {
  background: transparent;
  color: #0f6b4e;
  border: 2px solid #0f6b4e;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* Icônes cliquables partout */
.icon-btn {
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: rgba(15, 107, 78, 0.1);
}

.icon-btn:active {
  transform: scale(0.95);
}

/* ========== FIX DÉFINITIF v52 – Cartes illisibles ========== */

/* CARTE GOLD FIDÉLITÉ – texte blanc sur fond crème = illisible */
body.light-mode .gold-card,
body.light-mode .fidelite-hero,
body.light-mode [class*="gold-card"],
body.light-mode [class*="fidelite"] {
  background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(212, 165, 116, 0.5) !important;
}

body.light-mode .gold-card *,
body.light-mode .fidelite-hero *,
body.light-mode [class*="gold-card"] *,
body.light-mode [class*="fidelite"] * {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

body.light-mode .gold-card .points-val,
body.light-mode .fidelite-hero .points-val {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

body.light-mode .gold-card .name,
body.light-mode .fidelite-hero .name {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

/* CARTE ASSISTANT IA – violet sur violet clair = illisible */
body.light-mode .ia-card,
body.light-mode .assistant-card,
body.light-mode [class*="assistant-ia"],
body.light-mode [class*="ia-hero"] {
  background: linear-gradient(135deg, #6b46c1 0%, #4c1d95 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(107, 70, 193, 0.4) !important;
}

body.light-mode .ia-card *,
body.light-mode .assistant-card *,
body.light-mode [class*="assistant-ia"] *,
body.light-mode [class*="ia-hero"] * {
  color: #ffffff !important;
}

body.light-mode .ia-card h1,
body.light-mode .ia-card h2,
body.light-mode .ia-card h3,
body.light-mode .assistant-card h1,
body.light-mode .assistant-card h2,
body.light-mode .assistant-card h3 {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

body.light-mode .ia-card p,
body.light-mode .assistant-card p {
  color: rgba(255,255,255,0.95) !important;
}

/* BOUTON "Démarrer une conversation" – lisible sur fond violet */
body.light-mode .btn-start-chat {
  background: #ffffff !important;
  color: #6b46c1 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Force text-shadow sur TOUS les héros dégradés */
body.light-mode [class*="hero"] h1,
body.light-mode [class*="hero"] h2,
body.light-mode [class*="hero"] h3 {
  text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

