/* BOUTIQUI — thème clair, une couleur par type de commerce (body.theme-clair[data-activite]).
   Chargé après app.css ; Smart Shop (sans APP_GENERALISTE) garde son thème indigo nuit. */

body.theme-clair {
  --c: #2563eb; --c-fonce: #1d4fbf; --c-clair: #e8f0fe; --c-rgb: 37, 99, 235;
  --fond: #f6f8fb;
  --indigo: var(--c); --indigo-nuit: var(--c-fonce); --indigo-nuit-2: var(--c-fonce); --indigo-clair: var(--c-clair);
  --bs-primary-rgb: var(--c-rgb); --bs-link-color-rgb: var(--c-rgb); --bs-focus-ring-color: rgba(var(--c-rgb), .25);
  --bs-body-bg: var(--fond);
}
body.theme-clair[data-activite="telephones"]    { --c: #2563eb; --c-fonce: #1d4fbf; --c-clair: #e8f0fe; --c-rgb: 37, 99, 235; }
body.theme-clair[data-activite="alimentation"]  { --c: #0f9d58; --c-fonce: #0b7c45; --c-clair: #e4f6ec; --c-rgb: 15, 157, 88; }
body.theme-clair[data-activite="quincaillerie"] { --c: #e8590c; --c-fonce: #c24a0a; --c-clair: #fdeee3; --c-rgb: 232, 89, 12; }
body.theme-clair[data-activite="cosmetiques"]   { --c: #d6336c; --c-fonce: #b02757; --c-clair: #fce8ef; --c-rgb: 214, 51, 108; }
body.theme-clair[data-activite="vetements"]     { --c: #7c3aed; --c-fonce: #6429c9; --c-clair: #f0e9fe; --c-rgb: 124, 58, 237; }
body.theme-clair[data-activite="autre"]         { --c: #0d9488; --c-fonce: #0a776d; --c-clair: #e0f4f2; --c-rgb: 13, 148, 136; }

/* Menu latéral blanc, élément actif teinté */
body.theme-clair .app { background: linear-gradient(to right, #fff 248px, var(--fond) 248px); }
body.theme-clair[dir="rtl"] .app, [dir="rtl"] body.theme-clair .app { background: linear-gradient(to left, #fff 248px, var(--fond) 248px); }
body.theme-clair .sidebar { background: #fff; color: var(--encre-2); border-inline-end: 1px solid var(--trait); }
body.theme-clair .sidebar .brand, body.theme-clair .sidebar .brand:hover { color: var(--encre); }
body.theme-clair .brand-mark { background: var(--c); color: #fff; }
body.theme-clair .brand-name small { color: var(--encre-3); }
body.theme-clair .nav-group-title { color: var(--encre-3); }
body.theme-clair .sidebar .nav-link { color: var(--encre-2); }
body.theme-clair .sidebar .nav-link i { color: var(--encre-3); }
body.theme-clair .sidebar .nav-link:hover { background: var(--c-clair); color: var(--c-fonce); }
body.theme-clair .sidebar .nav-link:hover i { color: var(--c); }
body.theme-clair .sidebar .nav-link.active { background: var(--c-clair); color: var(--c-fonce); }
body.theme-clair .sidebar .nav-link.active::before { background: var(--c); }
body.theme-clair .sidebar .nav-link.active i { color: var(--c); }
body.theme-clair .sidebar-foot { border-top-color: var(--trait); }
body.theme-clair .sidebar-user { color: var(--encre); }
body.theme-clair .sidebar-user small { color: var(--encre-3); }
body.theme-clair .avatar { background: var(--c); }
body.theme-clair .sidebar .lang-switch { background: var(--fond); }
body.theme-clair .sidebar .lang-switch button { color: var(--encre-2); }
body.theme-clair .sidebar .lang-switch button:hover { background: var(--c-clair); color: var(--c-fonce); }
body.theme-clair .lang-switch button[aria-pressed="true"] { background: var(--c); color: #fff; }

/* Barre du haut (téléphone) : couleur vive du commerce */
body.theme-clair .topbar { background: linear-gradient(135deg, var(--c) 0%, var(--c-fonce) 100%); }
body.theme-clair .topbar .brand-mark { background: #fff; color: var(--c); }
body.theme-clair .topbar .brand, body.theme-clair .topbar .brand:hover { color: #fff; }
body.theme-clair .topbar #menuBtn:hover, body.theme-clair .topbar #menuBtn[aria-expanded="true"] { background: rgba(255, 255, 255, .18); }

/* Chiffre principal du tableau de bord */
body.theme-clair .figure.lead-figure { background: linear-gradient(135deg, var(--c) 0%, var(--c-fonce) 100%); }
body.theme-clair .figure.lead-figure .figure-label, body.theme-clair .figure.lead-figure .figure-note { color: rgba(255, 255, 255, .85); }
body.theme-clair .figure.lead-figure .figure-value small { color: #fff; }

/* Boutons */
body.theme-clair .btn-primary { --bs-btn-bg: var(--c); --bs-btn-border-color: var(--c); --bs-btn-hover-bg: var(--c-fonce); --bs-btn-hover-border-color: var(--c-fonce); --bs-btn-active-bg: var(--c-fonce); --bs-btn-active-border-color: var(--c-fonce); --bs-btn-disabled-bg: var(--c); --bs-btn-disabled-border-color: var(--c); }
body.theme-clair .btn-outline-primary { --bs-btn-color: var(--c); --bs-btn-border-color: rgba(var(--c-rgb), .35); --bs-btn-hover-bg: var(--c); --bs-btn-hover-border-color: var(--c); --bs-btn-active-bg: var(--c-fonce); }
body.theme-clair .tabbar .tab-main { background: var(--c); color: #fff; box-shadow: 0 6px 16px rgba(var(--c-rgb), .4); }
body.theme-clair .tabbar a.active, body.theme-clair .tabbar button.active { color: var(--c); }
body.theme-clair .scan-box { border-color: rgba(var(--c-rgb), .4); background: var(--c-clair); }
body.theme-clair .code, body.theme-clair code { color: var(--c-fonce); }
body.theme-clair .quick-tile { border-color: rgba(var(--c-rgb), .25); }
body.theme-clair .quick-tile .qt-price { color: var(--c-fonce); }

/* Page de connexion : panneau coloré plus clair */
body.theme-clair .login-art { background: linear-gradient(150deg, var(--c) 0%, var(--c-fonce) 100%); }
body.theme-clair .login-art .brand-mark { background: #fff; color: var(--c); }
body.theme-clair .login-foot { color: rgba(255, 255, 255, .8); }
body.theme-clair .login-lede { color: rgba(255, 255, 255, .9); }
