/* ═══════════════════════════════════════════════════════════════
   QueryVision — DS statique pour maquettes admin (v3)
   Reproduit les tokens de pidaa-webapp/src/index.css
   ink #1C2431 · signal green #03CF65 · dark-first + thème light
   Corps/UI : Hanken Grotesk · données : Commit Mono · titres : Haskoy
   Contexte : .ctx-org (violet, admin organisation) · .ctx-ws (vert, admin workspace)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --qv-green-50: #ecf8f1; --qv-green-100: #d6f0e1; --qv-green-200: #a6e3c1;
  --qv-green-300: #6ad29b; --qv-green-400: #27d97a; --qv-green-500: #03CF65;
  --qv-green-600: #04b257; --qv-green-700: #0a7c42; --qv-green-900: #04331c;
  --qv-green-ink: #04240f;

  --qv-ink-page: #0F151C; --qv-ink-900: #0b0f14; --qv-ink-base: #1C2431;
  --qv-ink-raised: #232E3E; --qv-ink-muted: #1F2734; --qv-ink-input: #19212C;
  --qv-ink-line: #28303C; --qv-ink-line-strong: #303B4D;

  --qv-slate-400: #9ba4ae; --qv-slate-500: #6b7480;
  --qv-text-on-ink-body: #aeb9c7;

  --qv-chart-purple: #8C84D8; --qv-chart-blue: #5B8E9A; --qv-chart-sand: #C8B18B;
  --qv-warning: #c98a1a; --qv-warning-light: #e0aa3f;
  --qv-destructive: #c2453b; --qv-destructive-light: #d96459;

  /* ── Thème produit (dark-first) ── */
  --background: var(--qv-ink-page);
  --foreground: #ffffff;
  --text-strong: #ffffff;
  --card: var(--qv-ink-base);
  --primary: var(--qv-green-500);
  --primary-foreground: var(--qv-green-ink);
  --secondary: var(--qv-ink-raised);
  --muted: var(--qv-ink-muted);
  --muted-foreground: var(--qv-text-on-ink-body);
  --border: var(--qv-ink-line);
  --border-strong: var(--qv-ink-line-strong);
  --input-bg: var(--qv-ink-input);
  --input-border: var(--qv-ink-line);
  --ring: var(--qv-green-500);
  --sidebar: var(--qv-ink-base);
  --sidebar-border: var(--qv-ink-line);
  --sidebar-fg: rgba(255, 255, 255, 0.7);
  --sidebar-fg-dim: rgba(255, 255, 255, 0.6);
  --header-veil: rgba(15, 21, 28, 0.95);
  --row-hover: rgba(35, 46, 62, 0.4);
  --warning-fg: var(--qv-warning-light);
  --destructive-fg: var(--qv-destructive-light);
  --accent-fg: var(--qv-green-300);
  --purple-fg: #a8a2e2;
  --dialog-shadow: rgba(0, 0, 0, 0.5);

  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.5rem;
  --radius-xl: 1rem;

  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Haskoy", "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "Commit Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* ── Thème light (tokens light de l'app) ─────────────────────── */
.light {
  --background: #ffffff;
  --foreground: var(--qv-ink-900);
  --text-strong: var(--qv-ink-900);
  --card: #ffffff;
  --secondary: #f2f4f7;
  --muted: #f4f7f5;
  --muted-foreground: #5b6571;
  --border: #e6ebe8;
  --border-strong: #dfe5e1;
  --input-bg: #ffffff;
  --input-border: #dfe5e1;
  --sidebar: #fafaf8;
  --sidebar-border: #e6ebe8;
  --sidebar-fg: #5b6571;
  --sidebar-fg-dim: #6b7480;
  --header-veil: rgba(255, 255, 255, 0.95);
  --row-hover: rgba(242, 244, 247, 0.6);
  --warning-fg: var(--qv-warning);
  --destructive-fg: var(--qv-destructive);
  --accent-fg: var(--qv-green-700);
  --purple-fg: #5f58bb;
  --dialog-shadow: rgba(15, 21, 28, 0.18);
}

* { box-sizing: border-box; border-color: var(--border); }
html { font-family: var(--font-sans); }
body {
  margin: 0; background: var(--background); color: var(--foreground);
  font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout app : sidebar + contenu ─────────────────────────── */
.qv-app { display: flex; min-height: 100vh; border-top: 3px solid transparent; }
.qv-sidebar {
  width: 17rem; flex-shrink: 0; background: var(--sidebar);
  border-right: 1px solid var(--sidebar-border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.qv-sidebar-header {
  height: 4rem; display: flex; align-items: center; gap: 0.5rem;
  padding: 0 1rem; border-bottom: 1px solid var(--sidebar-border);
  color: var(--sidebar-fg-dim); font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  flex-shrink: 0; white-space: nowrap; overflow: hidden;
}
.qv-sidebar-header svg { width: 14px; height: 14px; flex-shrink: 0; }
.qv-sidebar-header svg[viewBox="0 0 84 84"] { width: 22px; height: 22px; }
.qv-sidebar-menu { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem; }
.qv-sidebar-item {
  display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.625rem;
  border-radius: var(--radius-md); color: var(--sidebar-fg);
  text-decoration: none; font-size: 0.875rem;
}
.qv-sidebar-item:hover { background: var(--secondary); color: var(--text-strong); }
.qv-sidebar-item.active { background: rgba(3, 207, 101, 0.1); color: var(--qv-green-500); }
.light .qv-sidebar-item.active { color: var(--qv-green-700); }
.qv-sidebar-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.qv-sidebar-footer { margin-top: auto; padding: 0.75rem; border-top: 1px solid var(--sidebar-border); }
.qv-sidebar-group { margin-top: auto; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.qv-sidebar-group-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--sidebar-fg-dim); opacity: 0.7;
  margin: 0; padding: 0 0.625rem;
}
.qv-sidebar-group ~ .qv-sidebar-footer { margin-top: 0; }
.qv-sidebar-back {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--sidebar-fg-dim); margin-bottom: 1rem;
}
.qv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ── Rail de produits (plateforme V2) ───────────────────────── */
.qv-rail {
  width: 3.5rem; flex-shrink: 0; background: var(--qv-ink-900);
  border-right: 1px solid var(--sidebar-border);
  display: flex; flex-direction: column; align-items: center;
  padding: 0.75rem 0; gap: 0.5rem; position: sticky; top: 0; height: 100vh;
}
.light .qv-rail { background: #f2f4f7; }
.qv-rail-logo { display: flex; color: #ffffff; margin-bottom: 0.25rem; }
.light .qv-rail-logo { color: var(--qv-ink-900); }
.qv-rail-item {
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--sidebar-fg); text-decoration: none; position: relative;
}
.qv-rail-item svg { width: 20px; height: 20px; }
.qv-rail-item:hover { background: var(--secondary); color: var(--text-strong); }
.qv-rail-item.active { background: rgba(3, 207, 101, 0.12); color: var(--qv-green-500); }
.light .qv-rail-item.active { color: var(--qv-green-700); }
.qv-rail-item.admin.active { background: rgba(140, 132, 216, 0.14); color: var(--purple-fg); }
.qv-rail-sep { width: 1.5rem; border-top: 1px solid var(--sidebar-border); margin: 0.125rem 0; }
.qv-rail-spacer { margin-top: auto; }

/* ── Sélecteur de workspace (tête de sidebar) ───────────────── */
.ws-switcher {
  margin: 0.75rem; padding: 0.5rem 0.625rem;
  background: var(--secondary); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); display: flex; align-items: center; gap: 0.5rem;
  cursor: pointer; color: inherit; text-decoration: none;
}
.ws-switcher .ws-ico {
  width: 1.75rem; height: 1.75rem; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3, 207, 101, 0.15); color: var(--accent-fg);
}
.ws-switcher .ws-ico svg { width: 14px; height: 14px; }
.ws-switcher .ws-name { font-size: 0.8125rem; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-switcher .ws-sub { font-size: 0.6875rem; color: var(--muted-foreground); display: block; font-weight: 400; }

/* ── Contexte : suis-je en train d'administrer l'organisation ? ── */
/* Violet = administration d'organisation (console + vue org dans l'app).
   L'admin workspace reste dans le style naturel de l'app, sans marqueur. */
.ctx-org { border-top-color: var(--qv-chart-purple); }
.ctx-pill {
  margin: 0.75rem 0.75rem 0; padding: 0.375rem 0.625rem;
  border-radius: var(--radius-sm); font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.5rem; border: 1px solid transparent;
}
.ctx-pill .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.ctx-org .ctx-pill { background: rgba(140, 132, 216, 0.12); color: var(--purple-fg); border-color: rgba(140, 132, 216, 0.3); }
.ctx-org .qv-sidebar-item.active { background: rgba(140, 132, 216, 0.12); color: var(--purple-fg); }

/* ── Fil d'Ariane de périmètre d'administration ─────────────── */
/* Affiche en permanence si l'on modifie l'organisation ou un workspace :
   Administration › Organisation › Workspace. Dernier segment = périmètre courant
   (violet = organisation, vert = workspace). */
.scope-bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  padding: 0.4375rem 1.5rem; border-bottom: 1px solid var(--border);
  background: var(--muted);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-foreground);
}
.scope-bar a { color: inherit; text-decoration: none; }
.scope-bar a:hover { color: var(--text-strong); text-decoration: underline; }
.scope-bar .sep { opacity: 0.5; }
.scope-bar .crumb-current { font-weight: 700; }
.scope-bar .crumb-org { color: var(--purple-fg); }
.scope-bar .crumb-ws { color: var(--accent-fg); }
.scope-bar svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ── Page header (cf. page-header.tsx) ──────────────────────── */
.qv-page-header {
  border-bottom: 1px solid var(--border);
  background: var(--header-veil); padding: 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.qv-page-header h1 { font-family: var(--font-serif); font-size: 2.25rem; font-weight: 450; margin: 0; letter-spacing: -0.01em; }
.qv-page-header p { margin: 0.25rem 0 0; color: var(--muted-foreground); }
.qv-page-actions { display: flex; align-items: center; gap: 0.75rem; }
.qv-content { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; max-width: 72rem; width: 100%; }

/* ── Eyebrow mono (labels de section) ───────────────────────── */
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted-foreground);
}

/* ── Boutons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.25rem; padding: 0 1rem; border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: 0.875rem; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  white-space: nowrap; transition: background 120ms ease, border-color 120ms ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--qv-green-500); color: var(--qv-green-ink); }
.btn-primary:hover { background: var(--qv-green-400); }
.btn-secondary { background: var(--secondary); color: var(--text-strong); }
.btn-secondary:hover { background: var(--border-strong); }
.btn-outline { background: transparent; color: var(--text-strong); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--secondary); }
.btn-ghost { background: transparent; color: var(--muted-foreground); }
.btn-ghost:hover { background: var(--secondary); color: var(--text-strong); }
.btn-destructive { background: transparent; color: var(--destructive-fg); border-color: rgba(217, 100, 89, 0.35); }
.btn-destructive:hover { background: rgba(217, 100, 89, 0.1); }
.btn-sm { height: 1.875rem; padding: 0 0.75rem; font-size: 0.8125rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible, .input:focus, .select:focus { outline: 2px solid rgba(3, 207, 101, 0.5); outline-offset: 2px; }

/* ── Formulaires ────────────────────────────────────────────── */
.label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.input, .select, textarea.input {
  width: 100%; height: 2.25rem; padding: 0 0.75rem;
  background: var(--input-bg); border: 1px solid var(--input-border);
  border-radius: var(--radius-md); color: var(--text-strong); font-family: var(--font-sans);
  font-size: 0.875rem;
}
textarea.input { height: auto; padding: 0.5rem 0.75rem; resize: vertical; }
.input::placeholder { color: var(--qv-slate-500); }
.hint { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 0.375rem; }
.field { margin-bottom: 1rem; }
.field-error .input { border-color: var(--destructive-fg); }
.error-text { font-size: 0.8125rem; color: var(--destructive-fg); margin-top: 0.375rem; }

/* Switch */
.switch { position: relative; display: inline-block; width: 2.25rem; height: 1.25rem; flex-shrink: 0; }
.switch input { display: none; }
.switch .track { position: absolute; inset: 0; background: var(--border-strong); border-radius: 999px; transition: background 120ms; }
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 1rem; height: 1rem;
  background: #fff; border-radius: 999px; transition: transform 120ms;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.switch input:checked + .track { background: var(--qv-green-500); }
.switch input:checked + .track::after { transform: translateX(1rem); }

/* ── Cartes ─────────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.light .card { box-shadow: 0 1px 2px rgba(15, 21, 28, 0.04); }
.card-header { padding: 1.25rem 1.25rem 0.75rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.card-title { font-size: 1rem; font-weight: 600; margin: 0; }
.card-desc { font-size: 0.875rem; color: var(--muted-foreground); margin: 0.25rem 0 0; }
.card-body { padding: 0.75rem 1.25rem 1.25rem; }
.card-footer { padding: 0.75rem 1.25rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.75rem; background: var(--muted); }

/* ── Tables ─────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th {
  text-align: left; padding: 0.625rem 1rem; color: var(--muted-foreground);
  font-weight: 500; font-size: 0.8125rem; border-bottom: 1px solid var(--border);
}
.table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--row-hover); }
.table .num, .mono { font-family: var(--font-mono); font-size: 0.8125rem; }
.table .num { text-align: right; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.125rem 0.625rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 500; border: 1px solid transparent;
}
.badge-green { background: rgba(3, 207, 101, 0.12); color: var(--accent-fg); border-color: rgba(3, 207, 101, 0.25); }
.badge-neutral { background: var(--secondary); color: var(--muted-foreground); border-color: var(--border-strong); }
.badge-warning { background: rgba(224, 170, 63, 0.12); color: var(--warning-fg); border-color: rgba(201, 138, 26, 0.3); }
.badge-destructive { background: rgba(217, 100, 89, 0.12); color: var(--destructive-fg); border-color: rgba(194, 69, 59, 0.3); }
.badge-purple { background: rgba(140, 132, 216, 0.14); color: var(--purple-fg); border-color: rgba(140, 132, 216, 0.35); }
.light .badge-green { background: var(--qv-green-50); border-color: var(--qv-green-200); }
.dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* ── Tabs ───────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); padding: 0 1.5rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 0.75rem 1rem; color: var(--muted-foreground); text-decoration: none;
  font-size: 0.875rem; font-weight: 500; border-bottom: 2px solid transparent;
  margin-bottom: -1px; display: inline-flex; align-items: center; gap: 0.5rem;
  white-space: nowrap;
}
.tab svg { width: 15px; height: 15px; }
.tab:hover { color: var(--text-strong); }
.tab.active { color: var(--qv-green-500); border-bottom-color: var(--qv-green-500); }
.light .tab.active { color: var(--qv-green-700); }

/* ── Avatars ────────────────────────────────────────────────── */
.avatar {
  width: 2rem; height: 2rem; border-radius: 999px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--secondary); color: var(--muted-foreground);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
}
.avatar.green { background: rgba(3, 207, 101, 0.15); color: var(--accent-fg); }
.avatar.purple { background: rgba(140, 132, 216, 0.18); color: var(--purple-fg); }
.avatar.sand { background: rgba(200, 177, 139, 0.16); color: var(--qv-chart-sand); }
.avatar.blue { background: rgba(91, 142, 154, 0.2); color: #8fc0cc; }
.light .avatar.sand { color: #8a7350; }
.light .avatar.blue { color: #44707a; }

/* ── Jauges & stats ─────────────────────────────────────────── */
.gauge { height: 0.5rem; background: var(--muted); border-radius: 999px; overflow: hidden; }
.light .gauge { background: var(--secondary); }
.gauge > span { display: block; height: 100%; background: var(--qv-green-500); border-radius: 999px; }
.gauge.warning > span { background: var(--warning-fg); }
.gauge.critical > span { background: var(--destructive-fg); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.stat-value { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.stat-label { font-size: 0.8125rem; color: var(--muted-foreground); }
.bar-row { display: grid; grid-template-columns: 9rem 1fr 5rem; align-items: center; gap: 0.75rem; font-size: 0.8125rem; }
.bar-row .bar { height: 0.625rem; background: var(--muted); border-radius: 4px; overflow: hidden; }
.light .bar-row .bar { background: var(--secondary); }
.bar-row .bar > span { display: block; height: 100%; background: var(--qv-chart-purple); }

/* ── Cartes workspace (anatomie partagée app + console) ────── */
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: 1.25rem; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { width: 1.75rem; height: 1.75rem; font-size: 0.6875rem; border: 2px solid var(--card); margin-left: -0.5rem; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-stack .avatar.overflow { background: var(--secondary); color: var(--muted-foreground); }
.ws-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--muted-foreground); margin-bottom: 0.625rem; }
.ws-meta strong { color: var(--text-strong); font-weight: 500; }
.ws-gauge { margin-top: 0.875rem; }
.ws-gauge .gauge { margin-top: 0.375rem; }
.ws-inactive { border-style: dashed; background: transparent; }
.ws-inactive-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.875rem 1.25rem; flex-wrap: wrap; }

/* ── Dialog (rendu ouvert dans les maquettes) ───────────────── */
.dialog-overlay {
  position: relative; min-height: 30rem; background: rgba(11, 15, 20, 0.7);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
  border-radius: var(--radius-lg);
}
.light .dialog-overlay { background: rgba(11, 15, 20, 0.35); }
.dialog {
  width: 100%; max-width: 30rem; background: var(--card);
  border: 1px solid var(--border-strong); border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px var(--dialog-shadow);
}
.dialog-header { padding: 1.25rem 1.5rem 0; }
.dialog-title { font-size: 1.0625rem; font-weight: 600; margin: 0; }
.dialog-desc { font-size: 0.875rem; color: var(--muted-foreground); margin: 0.375rem 0 0; }
.dialog-body { padding: 1.25rem 1.5rem; }
.dialog-footer { padding: 0 1.5rem 1.25rem; display: flex; justify-content: flex-end; gap: 0.75rem; }

/* Variante modale réelle (masquée par défaut, ouverte via JS) */
.dialog-overlay.modal {
  display: none; position: fixed; inset: 0; z-index: 100; min-height: 0;
  border-radius: 0; padding: 1.5rem;
}
.dialog-overlay.modal.open { display: flex; }
.dialog-close {
  position: absolute; top: 1.125rem; right: 1.125rem;
  width: 1.75rem; height: 1.75rem; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--muted-foreground); cursor: pointer;
}
.dialog-close:hover { background: var(--secondary); color: var(--text-strong); }
.dialog { position: relative; }
.dialog textarea.input { font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.6; min-height: 8rem; }

/* ── Alertes / callouts ─────────────────────────────────────── */
.callout {
  display: flex; gap: 0.75rem; padding: 0.875rem 1rem;
  border: 1px solid; border-radius: var(--radius-md); font-size: 0.875rem;
  align-items: flex-start;
}
.callout svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.callout-warning { background: rgba(224, 170, 63, 0.08); border-color: rgba(201, 138, 26, 0.3); color: var(--warning-fg); }
.callout-info { background: rgba(3, 207, 101, 0.06); border-color: rgba(3, 207, 101, 0.2); color: var(--accent-fg); }
.callout-destructive { background: rgba(217, 100, 89, 0.08); border-color: rgba(194, 69, 59, 0.3); color: var(--destructive-fg); }
.callout .body { color: var(--foreground); }
.callout .body strong { display: block; margin-bottom: 0.125rem; }

/* ── Bascule de thème (maquettes) ───────────────────────────── */
.theme-toggle {
  width: 1.875rem; height: 1.875rem; border-radius: var(--radius-md);
  background: transparent; border: none; color: var(--muted-foreground);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; padding: 0;
}
.theme-toggle:hover { background: var(--secondary); color: var(--text-strong); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
.light .theme-toggle .icon-sun { display: none; }
.light .theme-toggle .icon-moon { display: block; }
.theme-toggle.floating {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 50;
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border-strong);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ── Divers ─────────────────────────────────────────────────── */
.row { display: flex; align-items: center; gap: 0.75rem; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.stack { display: flex; flex-direction: column; gap: 0.25rem; }
.text-muted { color: var(--muted-foreground); }
.text-sm { font-size: 0.8125rem; }
.text-strong { color: var(--text-strong); }
.divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.kbd {
  font-family: var(--font-mono); font-size: 0.6875rem; padding: 0.125rem 0.375rem;
  background: var(--secondary); border: 1px solid var(--border-strong);
  border-radius: 4px; color: var(--muted-foreground);
}
.qv-logo { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; color: var(--text-strong); }
.qv-logo svg { flex-shrink: 0; }
.qv-logo .name { font-family: var(--font-serif); font-weight: 550; font-size: 1.0625rem; letter-spacing: -0.01em; }
