/* ============================================================
   SALONIQA — Local Visibility Engine · admin module styles (R1)
   Owner-facing. French-first, mobile-friendly, one action/screen.
   ============================================================ */
.vz-wrap { max-width: 1080px; margin: 0 auto; padding: 24px; }

/* hero: big score + primary action */
.vz-hero {
  display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
  background: var(--surface, #fff); border: 1px solid var(--border, #ece7df);
  border-radius: 18px; padding: 24px; margin-bottom: 20px;
}
.vz-score-ring {
  --val: 0; width: 132px; height: 132px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--gold, #c9a24b) calc(var(--val) * 1%), #eee 0);
  transition: background .6s ease;
}
.vz-score-ring::before { content: ""; position: absolute; inset: 12px; background: var(--surface,#fff); border-radius: 50%; }
.vz-score-ring b { position: relative; font-size: 2.1rem; font-weight: 700; color: var(--ink,#2a2320); line-height: 1; }
.vz-score-ring small { position: relative; display: block; text-align: center; font-size: .72rem; color: #8a8178; margin-top: 2px; }
.vz-hero-txt { flex: 1 1 260px; min-width: 240px; }
.vz-hero-txt h1 { font-size: 1.5rem; margin: 0 0 6px; }
.vz-hero-txt p { color: #6f665d; margin: 0 0 14px; }

/* dimension bars */
.vz-dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 12px; margin-bottom: 20px; }
.vz-dim { background: var(--surface,#fff); border: 1px solid var(--border,#ece7df); border-radius: 12px; padding: 14px 16px; }
.vz-dim .vz-dim-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.vz-dim .vz-dim-top span { font-weight: 600; font-size: .92rem; }
.vz-dim .vz-dim-top b { font-variant-numeric: tabular-nums; }
.vz-bar { height: 8px; border-radius: 6px; background: #efeae1; overflow: hidden; }
.vz-bar i { display: block; height: 100%; border-radius: 6px; background: var(--gold,#c9a24b); transition: width .6s ease; }
.vz-bar.is-low i { background: #d9534f; } .vz-bar.is-mid i { background: #e6a817; } .vz-bar.is-high i { background: #3c9d6e; }

/* action toolbar */
.vz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.vz-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border,#ddd6ca);
  background: #fff; color: var(--ink,#2a2320); border-radius: 10px; padding: 10px 14px; font: inherit; font-size: .9rem;
  cursor: pointer; transition: .15s; }
.vz-btn:hover { border-color: var(--gold,#c9a24b); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.vz-btn--primary { background: var(--gold,#c9a24b); color: #fff; border-color: var(--gold,#c9a24b); }
.vz-btn--wide { flex: 1 1 100%; justify-content: center; font-weight: 600; }
.vz-btn[disabled] { opacity: .5; cursor: not-allowed; }
.vz-btn .vz-tag { font-size: .68rem; background: #f0ece3; color: #8a8178; border-radius: 6px; padding: 1px 6px; }

/* worklist */
.vz-worklist { display: grid; gap: 10px; margin-bottom: 24px; }
.vz-issue { display: flex; gap: 14px; align-items: flex-start; background: var(--surface,#fff);
  border: 1px solid var(--border,#ece7df); border-left: 4px solid #e6a817; border-radius: 12px; padding: 14px 16px; }
.vz-issue.is-ok { border-left-color: #3c9d6e; }
.vz-issue .vz-issue-ico { font-size: 1.3rem; line-height: 1.4; }
.vz-issue h4 { margin: 0 0 3px; font-size: .98rem; }
.vz-issue p { margin: 0; color: #6f665d; font-size: .86rem; }
.vz-issue .btn, .vz-issue .vz-btn { margin-left: auto; white-space: nowrap; }

/* section cards */
.vz-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 12px; margin-bottom: 24px; }
.vz-card { background: var(--surface,#fff); border: 1px solid var(--border,#ece7df); border-radius: 12px; padding: 16px; }
.vz-card h3 { margin: 0 0 6px; font-size: 1rem; }
.vz-card .vz-status { font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.vz-status.ok { background: #e7f4ee; color: #2f7d57; } .vz-status.warn { background: #fbf1d9; color: #a5791a; }
.vz-status.off { background: #f3eee6; color: #8a8178; }
.vz-card p { color: #6f665d; font-size: .85rem; margin: 8px 0 12px; }

/* output drawer */
.vz-drawer { position: fixed; inset: 0; background: rgba(20,16,12,.5); display: none; z-index: 60; }
.vz-drawer.open { display: block; }
.vz-drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(560px,100%); background: #fff;
  box-shadow: -8px 0 40px rgba(0,0,0,.2); display: flex; flex-direction: column; }
.vz-drawer-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #eee; }
.vz-drawer-head h3 { margin: 0; font-size: 1.05rem; flex: 1; }
.vz-drawer-body { padding: 20px; overflow: auto; flex: 1; }
.vz-drawer-foot { padding: 14px 20px; border-top: 1px solid #eee; display: flex; gap: 10px; justify-content: flex-end; }
.vz-x { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: #8a8178; }
.vz-field { margin-bottom: 14px; }
.vz-field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 4px; }
.vz-field input, .vz-field textarea { width: 100%; border: 1px solid #ddd6ca; border-radius: 8px; padding: 9px 11px; font: inherit; }
.vz-field textarea { min-height: 80px; resize: vertical; }
.vz-code { background: #1e1b17; color: #d7e7c8; border-radius: 10px; padding: 14px; font-family: ui-monospace,Menlo,Consolas,monospace;
  font-size: .78rem; white-space: pre-wrap; word-break: break-word; max-height: 340px; overflow: auto; }
.vz-note { background: #fbf7ee; border: 1px dashed #d9cba3; border-radius: 8px; padding: 10px 12px; font-size: .82rem; color: #8a6d2a; }
.vz-badge-draft { font-size: .68rem; background: #eef; color: #4a4ad0; border-radius: 6px; padding: 2px 7px; }

/* SERP + AI previews */
.vz-serp { border: 1px solid #e6e1d8; border-radius: 12px; padding: 16px; background: #fff; }
.vz-serp .u { color: #1a7f37; font-size: .78rem; }
.vz-serp .t { color: #1a0dab; font-size: 1.15rem; margin: 3px 0; }
.vz-serp .d { color: #4d5156; font-size: .86rem; }
.vz-ai { border: 1px solid #d8def0; background: #f7f9ff; border-radius: 12px; padding: 16px; font-size: .9rem; line-height: 1.5; }
.vz-ai b { color: #2a2320; }

/* tech details */
.vz-tech { margin-top: 8px; }
.vz-tech summary { cursor: pointer; color: #8a8178; font-size: .86rem; }
@media (max-width: 560px){ .vz-hero { flex-direction: column; text-align: center; } .vz-issue { flex-wrap: wrap; } .vz-issue .btn,.vz-issue .vz-btn{ margin-left:0; } }
