/* 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); }

/* ===== Enseigne des boutiques et illustrations de l'épicerie ===== */
@font-face { font-family: "Lalezar"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/lalezar-arabic-400-normal.d29aca20adbd.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+FB50-FDFF,U+FE70-FEFC; }
@font-face { font-family: "Lalezar"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/lalezar-latin-ext-400-normal.efd8bcdd0a3f.woff2") format("woff2"); unicode-range: U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Lalezar"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/lalezar-latin-400-normal.e52941566594.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Enseigne façon panneau de complexe commercial (Nouakchott) : cadre en aluminium vissé, projecteurs,
   nom en arabe en grand, nom en français, bandeau d'activité jaune bilingue, numéro de téléphone. */
.panneau-zone { position: relative; padding-top: 30px; margin-bottom: 18px; }
.projecteurs { position: absolute; top: 0; left: 8%; right: 8%; display: flex; justify-content: space-between; z-index: 2; pointer-events: none; }
.projecteur { width: 54px; height: 42px; }
.panneau { position: relative; padding: 9px; border-radius: 6px;
  background: linear-gradient(180deg, #eef1f4 0%, #b9c0c8 45%, #8c949d 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,.28), inset 0 1px 0 #fff; }
.panneau .vis { position: absolute; width: 9px; height: 9px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 35% 35%, #fff 0 15%, #9ca3af 40%, #4b5563 100%); }
.panneau .vis::after { content: ""; position: absolute; left: 1px; right: 1px; top: 4px; height: 1px; background: #374151; transform: rotate(35deg); }
.panneau .tl { top: 2px; left: 2px; } .panneau .tr { top: 2px; right: 2px; } .panneau .bl { bottom: 2px; left: 2px; } .panneau .br { bottom: 2px; right: 2px; }
.panneau-fond { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; border-radius: 3px; overflow: hidden;
  padding: 14px 12px 12px; position: relative;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 55%),
              linear-gradient(180deg, var(--c, #0f9d58) 0%, var(--c-fonce, #0b7c45) 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), inset 0 -18px 30px rgba(0,0,0,.18); }
.panneau-fond::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.16) 42%, rgba(255,255,255,0) 54%); }
.panneau-texte { text-align: center; min-width: 0; }
.nom-ar { font-family: "Lalezar", "Plex Arabic", system-ui, sans-serif; font-size: clamp(2.1rem, 6.5vw, 3.5rem); line-height: 1.1; color: #fff;
  text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 0 18px rgba(255,255,255,.25); -webkit-text-stroke: .5px rgba(0,0,0,.15); overflow-wrap: anywhere; }
.nom-fr { font-family: "Archivo", system-ui, sans-serif; font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: .06em;
  color: #ffe066; font-size: clamp(1rem, 2.6vw, 1.45rem); text-shadow: 0 2px 0 rgba(0,0,0,.35); margin-top: 2px; overflow-wrap: anywhere; }
.bandeau { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin-top: 8px; padding: 4px 14px;
  background: #ffd43b; color: #1f2937; border-radius: 3px; font-weight: 800; font-size: clamp(.72rem, 1.9vw, .95rem); letter-spacing: .03em;
  box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.bandeau span[lang="ar"] { font-family: "Plex Arabic", system-ui, sans-serif; font-weight: 700; letter-spacing: 0; font-size: 1.1em; }
.bandeau b { color: #c92a2a; font-size: .8em; }
.panneau-tel { margin-top: 7px; color: #fff; font-weight: 800; font-size: clamp(.9rem, 2.2vw, 1.15rem); letter-spacing: .06em; }
.panneau-tel i { color: #ffe066; }
.panneau-cote { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.panneau-cote img { width: clamp(30px, 6vw, 52px); filter: drop-shadow(0 3px 3px rgba(0,0,0,.3)); }
.cote-icone { width: clamp(52px, 9vw, 84px); height: clamp(52px, 9vw, 84px); border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--c, #0f9d58); font-size: clamp(1.6rem, 4vw, 2.6rem); box-shadow: 0 4px 10px rgba(0,0,0,.25), inset 0 0 0 4px #ffd43b; }
.compacte .nom-ar { font-size: clamp(1.9rem, 5.5vw, 2.9rem); }
@media (max-width: 575px) {
  .panneau-cote img.opt { display: none; }
  .panneau-fond { gap: 4px; padding: 12px 6px 10px; }
  .projecteur { width: 42px; height: 34px; }
}

/* Grille de vente : image du produit */
.quick-tile .qt-img { width: 44px; height: 44px; float: inline-end; margin: -2px 0 2px 6px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.18)); }
