:root {
  --bg: #0f1320;
  --panel: #181d2e;
  --panel2: #1f2740;
  --line: #2a3350;
  --txt: #e8ecf6;
  --muted: #9aa6c4;
  --accent: #ff5a3c;
  --accent2: #2fd98a;
  --blue: #4d8dff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: linear-gradient(180deg,#0f1320,#0c0f1a); color: var(--txt);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; min-height: 100vh;
}
header {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 18px 26px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo { font-size: 38px; }
h1 { margin: 0; font-size: 24px; letter-spacing: .3px; }
h1 span { color: var(--accent); }
.tagline { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.stats { display: flex; gap: 22px; flex-wrap: wrap; }
.stats .stat { text-align: center; }
.stats .num { font-size: 22px; font-weight: 700; color: var(--accent2); }
.stats .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

.tabs { display: flex; gap: 6px; padding: 12px 22px 0; flex-wrap: wrap; background: var(--panel); }
.tabs button {
  background: transparent; border: none; color: var(--muted); padding: 12px 18px;
  font-size: 15px; cursor: pointer; border-radius: 10px 10px 0 0; font-weight: 600;
}
.tabs button:hover { color: var(--txt); background: var(--panel2); }
.tabs button.active { color: var(--txt); background: var(--bg); box-shadow: inset 0 -3px 0 var(--accent); }
.badge { background: var(--accent); color: #fff; border-radius: 20px; padding: 1px 8px; font-size: 12px; margin-left: 4px; }

main { padding: 22px 26px 60px; max-width: 1200px; margin: 0 auto; }
.tab { display: none; }
.tab.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
input[type=search], select {
  background: var(--panel2); border: 1px solid var(--line); color: var(--txt);
  padding: 11px 14px; border-radius: 10px; font-size: 14px; outline: none;
}
input[type=search] { flex: 1; min-width: 240px; }
input[type=search]:focus, select:focus { border-color: var(--blue); }
.hint { color: var(--muted); font-size: 13px; margin: -6px 0 16px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 14px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow);
}
.card .top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.card .name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.card .price { font-size: 22px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.pill { background: var(--panel2); border: 1px solid var(--line); border-radius: 20px; padding: 2px 9px; font-size: 11px; }
.pill.sector { color: var(--blue); }
.pill.cat { color: var(--accent2); }
.card .unit { color: var(--muted); font-size: 12px; }
.cond-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cond { display: inline-block; background: rgba(77,141,255,.14); color: var(--blue); border: 1px solid #2a4a7a; border-radius: 6px; padding: 1px 7px; font-size: 12px; font-weight: 600; }
.brand-tag { font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--accent2); margin-bottom: 2px; }
.deal { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; display: inline-block; }
.deal-good { color: #04331f; background: var(--accent2); }
.deal-bad { color: #fff; background: #b3261e; }
.deal-banner { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border-radius: 10px; margin: 14px 0 4px; }
.deal-banner.deal-good { background: rgba(47,217,138,.15); border: 1px solid var(--accent2); }
.deal-banner.deal-ok { background: rgba(47,217,138,.10); border: 1px solid #2a6a4a; }
.deal-banner.deal-bad { background: rgba(179,38,30,.15); border: 1px solid #b3261e; }
.deal-banner.deal-mid { background: var(--panel2); border: 1px solid var(--line); }
.deal-ref { font-size: 12px; color: var(--muted); }
.bt { color: var(--accent2); text-transform: uppercase; font-size: .92em; letter-spacing: .3px; }
.card .actions { display: flex; gap: 8px; margin-top: 4px; }
.btn {
  background: var(--accent); color: #fff; border: none; border-radius: 9px; padding: 8px 12px;
  font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { filter: brightness(1.1); }
.btn.sec { background: var(--panel2); color: var(--txt); border: 1px solid var(--line); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 8px 12px; border-radius: 9px; cursor: pointer; }

/* comparateur */
.compare-group { margin-bottom: 26px; }
.compare-group h3 { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
table.cmp { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
table.cmp th, table.cmp td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
table.cmp th { background: var(--panel2); color: var(--muted); font-size: 12px; text-transform: uppercase; cursor: pointer; user-select: none; }
table.cmp th:hover { color: var(--txt); }
table.cmp th.sorted[data-dir=asc]::after { content: ' ▲'; color: var(--accent); }
table.cmp th.sorted[data-dir=desc]::after { content: ' ▼'; color: var(--accent); }
table.cmp tr:first-child td { color: var(--accent2); }
table.cmp .p { font-weight: 800; color: var(--accent); }
.rank { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; background: var(--panel2); font-size: 12px; }
.rank.best { background: var(--accent2); color: #04331f; font-weight: 700; }

/* catalogues */
.catalogs { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 14px; }
.cat-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.cat-card img { width: 100%; height: 150px; object-fit: cover; background: var(--panel2); }
.cat-card .body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat-card .co { font-weight: 700; }
.cat-card .nm { font-size: 13px; color: var(--muted); flex: 1; }
.cat-card .row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.tag-new { background: var(--accent); color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 20px; }
.tag-ok { color: var(--accent2); font-size: 11px; }
.tag-wait { color: #ffb23c; font-size: 11px; }

/* liste */
.store-block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.store-block h3 { margin: 0; padding: 12px 16px; background: var(--panel2); font-size: 15px; display: flex; justify-content: space-between; }
.li { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.li.checked { opacity: .5; text-decoration: line-through; }
.li input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent2); }
.li .li-name { flex: 1; }
.li .li-price { font-weight: 700; color: var(--accent); }
.li .x { cursor: pointer; color: var(--muted); border: none; background: none; font-size: 18px; }
.empty { color: var(--muted); text-align: center; padding: 40px; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; border-top: 1px solid var(--line); }
a.link { color: var(--blue); text-decoration: none; font-size: 12px; }
a.link:hover { text-decoration: underline; }

.pill.src { font-weight: 600; }
.pill.src.rodzafer { color: #ff8a3c; border-color: #5a3a22; }
.pill.src.lapub { color: #4dd0ff; border-color: #1f4a5a; }
.chk { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; cursor: pointer; white-space: nowrap; }
.chk input { width: 16px; height: 16px; accent-color: var(--accent2); }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal.hidden { display: none; }
.modal-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); max-width: 700px; width: 100%; max-height: 80vh; overflow: auto; padding: 22px; position: relative; box-shadow: var(--shadow); }
.modal-box h3 { margin: 0 0 14px; }
.modal-x { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.lb { width: 100%; border-radius: 10px; border: 1px solid var(--line); }

/* vignettes produit */
.thumb { cursor: zoom-in; background: var(--panel2); border: 1px solid var(--line); object-fit: cover; transition: transform .12s; }
.thumb:hover { transform: scale(1.03); border-color: var(--blue); }
.thumb.noimg { display: none; }
.card-thumb { width: 100%; height: 150px; border-radius: 10px; margin-bottom: 4px; object-position: top; }
.thumb.mini { width: 54px; height: 54px; border-radius: 8px; }

/* assistant courses */
.assistant-grid { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.assistant-input { position: sticky; top: 10px; display: flex; flex-direction: column; gap: 10px; }
#shop-input { width: 100%; background: var(--panel2); border: 1px solid var(--line); color: var(--txt); border-radius: 10px; padding: 12px; font-size: 14px; resize: vertical; font-family: inherit; }
#shop-input:focus { border-color: var(--blue); outline: none; }
.assistant-results { display: flex; flex-direction: column; gap: 14px; }
.sugg-block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.sugg-block.none { opacity: .7; }
.sugg-block.approx { border-color: #6b4f00; }
.approx-note { color: #ffb23c; font-size: 12px; margin-bottom: 8px; }
.sugg-block h4 { margin: 0 0 10px; font-size: 16px; text-transform: capitalize; }
.sugg-block h4 .count { font-size: 12px; color: var(--muted); font-weight: 400; text-transform: none; }
.sugg { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.sugg:first-of-type { border-top: none; }
.sugg-info { flex: 1; min-width: 0; }
.sugg-name { font-weight: 600; font-size: 14px; }
.sugg-price { font-weight: 800; color: var(--accent); white-space: nowrap; font-size: 17px; }
.tag-best { background: var(--accent2); color: #04331f; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 20px; }
details summary { cursor: pointer; color: var(--blue); font-size: 13px; padding: 6px 0; }
@media (max-width: 760px) { .assistant-grid { grid-template-columns: 1fr; } .assistant-input { position: static; } }
.assistant-right { min-width: 0; }

/* filtres numériques + zone "compris" */
input.num { width: 90px; background: var(--panel2); border: 1px solid var(--line); color: var(--txt); padding: 11px 10px; border-radius: 10px; font-size: 14px; }
input.num:focus { border-color: var(--blue); outline: none; }
.ac-float { position: absolute; z-index: 200; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); max-height: 320px; overflow-y: auto; }
.ac-float .ac-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.ac-float .ac-item:hover { background: var(--panel2); }
.ac-list { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin: -8px 0 12px; overflow: hidden; box-shadow: var(--shadow); }
.ac-list:empty { display: none; }
.ac-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.ac-item:last-child { border-bottom: none; }
.ac-item:hover { background: var(--panel2); }
.ac-lbl { flex: 1; }
.ac-type { font-size: 10px; text-transform: uppercase; letter-spacing: .4px; padding: 2px 7px; border-radius: 20px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); min-width: 64px; text-align: center; }
.ac-type.t-catgorie { color: var(--accent2); }
.ac-type.t-marque { color: var(--accent2); }
.ac-type.t-produit { color: var(--blue); }
.ac-price { color: var(--accent); font-weight: 700; font-size: 13px; }
.ac-n { color: var(--muted); font-size: 11px; background: var(--panel2); border-radius: 10px; padding: 1px 7px; }
.understood { margin: -8px 0 14px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.understood:empty { display: none; }
.understood-lbl { color: var(--muted); font-size: 12px; }
.chip { background: var(--panel2); border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; font-size: 12px; }
.chip.c { color: var(--accent2); border-color: #1f5a3a; }
.chip.s { color: var(--blue); border-color: #2a4a7a; }

/* fiche produit */
.prod-detail { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.prod-fields { display: flex; flex-direction: column; gap: 4px; }
.prod-fields .f { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.prod-fields .f span { color: var(--muted); }
@media (max-width: 600px) { .prod-detail { grid-template-columns: 1fr; } }

/* panier optimisé */
.opti { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.opti.opti3 { grid-template-columns: 1fr 1fr 1fr; }
.eco-banner { background: rgba(47,217,138,.14); border: 1px solid var(--accent2); color: var(--txt); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; font-size: 15px; }
.eco-banner b { color: var(--accent2); }
.op-dist { color: var(--blue); font-size: 12px; font-weight: 600; white-space: nowrap; }
.opti-store.clickable { cursor: pointer; border-radius: 8px; padding: 8px; transition: background .12s; }
.opti-store.clickable:hover { background: var(--panel2); }
.op-go { float: right; color: var(--blue); font-size: 12px; font-weight: 700; }
.store-basket { display: flex; flex-direction: column; gap: 8px; }
.sb-head { padding: 8px 0; border-bottom: 1px solid var(--line); }
.sb-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.sb-info { flex: 1; min-width: 0; }
.sb-missing { background: rgba(255,178,60,.1); border: 1px solid #6b4f00; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.sb-missing .chip { margin: 2px; }
@media (max-width: 980px) { .opti.opti3 { grid-template-columns: 1fr; } }
.opti-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.opti-col h3 { margin: 0 0 8px; font-size: 15px; }
.opti-total { font-size: 24px; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.opti-total small { font-size: 12px; color: var(--muted); font-weight: 400; }
.opti-store { padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.opti-store.win { background: rgba(47,217,138,.08); border-radius: 8px; padding: 8px; }
.opti-items, .opti-sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.op-p { color: var(--accent); font-weight: 700; }
.opti .hint { grid-column: 1/-1; }
@media (max-width: 760px) { .opti { grid-template-columns: 1fr; } }

/* santé / Open Food Facts */
.health-box { margin: 16px 0 4px; padding: 14px; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius); }
.health-box .loading { color: var(--muted); }
.health-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.health-title { font-weight: 700; }
.health-title small { color: var(--muted); font-weight: 400; font-size: 11px; }
.health-head .code { font-family: monospace; color: var(--muted); font-size: 12px; }
.health-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.health-badges span { padding: 4px 10px; border-radius: 8px; font-weight: 700; font-size: 13px; color: #fff; }
.health-badges .ns { color: #fff; }
.health-badges .nova { background: #555; }
.health-badges .nova4 { background: #b3261e; }
.health-badges .nova1 { background: #2e7d32; }
.health-badges .eco { background: #2d6a4f; }
.health-badges .add { background: #6b4f00; }
.yscore { display: inline-flex; align-items: baseline; gap: 12px; border: 2px solid; border-radius: 12px; padding: 8px 16px; margin-bottom: 10px; }
.yscore-num { font-size: 30px; font-weight: 800; }
.yscore-num small { font-size: 14px; font-weight: 600; }
.yscore-lbl { font-weight: 700; }
.health-reco { font-weight: 600; margin-bottom: 10px; }
.health-nut { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.health-nut b { color: var(--txt); }
.health-add { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.health-none { color: var(--muted); font-size: 13px; }

/* micro & vocal */
.mic { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 16px; padding: 0 12px; }
.mic:hover { border-color: var(--blue); }
.mic.listening, .btn.listening { animation: pulse 1s infinite; border-color: var(--accent); background: var(--accent); color: #fff; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.voice-card { background: var(--panel); border: 1px solid var(--accent); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.voice-card.none { border-color: var(--line); color: var(--muted); }
.voice-q { font-size: 15px; margin-bottom: 8px; }

/* import ticket + fidélité */
.upload-btn { display: block; text-align: center; background: var(--panel2); border: 1px dashed var(--line); border-radius: 10px; padding: 10px; cursor: pointer; color: var(--muted); }
.upload-btn:hover { border-color: var(--blue); color: var(--txt); }
.loyalty { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.loyalty summary { cursor: pointer; font-weight: 600; }
.loyalty-form { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.loyalty-form input { background: var(--bg); border: 1px solid var(--line); color: var(--txt); padding: 8px; border-radius: 8px; }
.loy-card { background: #fff; color: #111; border-radius: 8px; padding: 8px; margin-top: 8px; }
.loy-top { display: flex; justify-content: space-between; align-items: center; }
.loy-top .x { color: #999; }
.loy-card .barcode { width: 100%; height: 56px; }
.loy-num { font-family: monospace; font-size: 12px; text-align: center; color: #333; }

/* gating / paywall */
.gate { text-align: center; background: var(--panel); border: 1px dashed var(--accent); border-radius: var(--radius); padding: 28px 20px; }
.gate-lock { font-size: 34px; margin-bottom: 6px; }
.gate h3 { margin: 6px 0; }
.gate .btn { margin-top: 10px; }

/* auth / comptes */
.auth-box { display: flex; align-items: center; gap: 8px; }
.au-user { font-size: 13px; color: var(--txt); }
.au-role { background: var(--accent2); color: #04331f; font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 20px; margin-left: 4px; }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form input[type=email], .auth-form input[type=password] { background: var(--panel2); border: 1px solid var(--line); color: var(--txt); padding: 11px 14px; border-radius: 10px; font-size: 14px; }
.au-err { color: var(--accent); font-size: 13px; min-height: 16px; }

/* cockpit / mon espace */
.cockpit-head h2 { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.premium-tag { background: linear-gradient(90deg, var(--accent), #ffb23c); color: #1a0f00; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 20px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.kpi-val { font-size: 26px; font-weight: 800; }
.kpi-lbl { color: var(--muted); font-size: 13px; margin-top: 4px; }
.kpi.kpi-good { border-color: var(--accent2); }
.kpi.kpi-good .kpi-val { color: var(--accent2); }
.kpi.kpi-bad { border-color: #b3261e; }
.kpi.kpi-bad .kpi-val { color: var(--accent); }
.kpi.kpi-nav { cursor: pointer; }
.kpi.kpi-nav:hover { border-color: var(--blue); }
.cockpit-card.account { margin-bottom: 14px; }
.acc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.acc-top h3 { margin: 0; }
.cockpit-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cockpit-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.cockpit-card h3 { margin: 0 0 10px; }
.cockpit-card h3 small { color: var(--muted); font-weight: 400; font-size: 12px; }
.pref-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; color: var(--muted); }
.pref-row input[type=number], .pref-row select { background: var(--panel2); border: 1px solid var(--line); color: var(--txt); padding: 8px 10px; border-radius: 8px; }
@media (max-width: 760px) { .cockpit-cols { grid-template-columns: 1fr; } }

/* grille tarifaire */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 14px 0; }
.price-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.price-card.best { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,90,60,.25); }
.price-card.pro { border-color: var(--blue); }
.pc-badge { position: absolute; top: -10px; right: 14px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px; }
.pc-name { font-weight: 800; font-size: 18px; }
.pc-price { font-size: 28px; font-weight: 800; color: var(--accent2); }
.pc-price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.price-card.best .pc-price { color: var(--accent); }
.price-card ul { list-style: none; padding: 0; margin: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.price-card li { font-size: 13px; padding-left: 18px; position: relative; }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--accent2); font-weight: 700; }
.price-card li.pc-no { color: var(--muted); }
.price-card li.pc-no::before { content: '✕'; color: var(--muted); }
.price-card button { margin-top: auto; }

/* évolution des prix (sparklines) */
.evo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.evo-item { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.evo-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.spark { width: 100%; height: 64px; }
.spark circle { fill: var(--accent2); }
.anomalies { margin-top: 12px; padding: 9px 12px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); font-size: 13px; }
.synthese p { line-height: 1.55; margin: 6px 0; }
.synthese b { color: var(--accent2); }
.ask-bar { display: flex; gap: 8px; }
.ask-bar input { flex: 1; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 14px; }
.ask-resp { margin-top: 12px; padding: 12px 14px; border-radius: 8px; background: var(--panel2); border-left: 3px solid var(--accent2); line-height: 1.5; }
.ask-list { margin-top: 8px; }
.saved-bar { flex-wrap: wrap; gap: 8px; }
.saved-bar input, .saved-bar select { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); }
.alert-badge { margin-left: 6px; background: var(--accent); color: #fff; border-radius: 10px; padding: 0 6px; font-size: 11px; font-weight: 700; }

/* indice de cherté (observatoire) */
.cherte { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.cherte h3 { margin: 0 0 12px; font-size: 16px; }
.cherte h3 small { color: var(--muted); font-weight: 400; font-size: 12px; }
.cherte-row { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 12px; padding: 5px 0; }
.cr-region { font-weight: 700; }
.cr-bar { background: var(--panel2); border-radius: 20px; height: 18px; overflow: hidden; }
.cr-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.cr-val { white-space: nowrap; font-size: 14px; }
.cr-val b.up { color: var(--accent); }
.cr-val b.flat { color: var(--accent2); }

/* magasins / carte */
.loc-grid { display: grid; grid-template-columns: 1fr 360px; gap: 14px; align-items: start; }
#map { height: 540px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 1; }
.loc-list { max-height: 540px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.loc-item { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.loc-item:hover { border-color: var(--blue); }
.loc-item.nogeo { cursor: default; opacity: .7; }
.loc-addr { color: var(--muted); font-size: 12px; margin-top: 3px; }
.leaflet-popup-content { color: #111; }
@media (max-width: 760px) { .loc-grid { grid-template-columns: 1fr; } #map { height: 380px; } }
