/* ─── VERACY ACHATS RESPONSABLES — Design System ─── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=DM+Sans:wght@400;500&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@3.44.0/dist/tabler-icons.min.css');

:root {
  /* ─── VERACY teal palette (juin 2026) ─── */
  /* --blue-* remapped to teal so all existing components inherit the new DA */
  --blue-900: #1E3A3F;  /* Teal Nuit — topbars, héros, texte foncé */
  --blue-800: #245F6B;  /* teal profond */
  --blue-700: #2B7A8A;  /* Teal Principal — primaire, CTA, liens */
  --blue-600: #3C93A4;  /* hover */
  --blue-400: #4DA8B8;  /* Teal Moyen */
  --blue-200: #7EC8D4;  /* Teal Pâle */
  --blue-100: #B2DDE4;  /* Teal très Pâle */
  --blue-50:  #E4F2F5;  /* fond doux teal */

  /* Teal aliases explicites */
  --teal-night: #1E3A3F;
  --teal:       #2B7A8A;
  --teal-mid:   #4DA8B8;
  --teal-pale:  #7EC8D4;
  --teal-xpale: #B2DDE4;

  /* Saumon — accent chaud */
  --salmon:      #F2937A;
  --salmon-pale: #F5B8A4;
  --salmon-50:   #FDEDE8;

  --green-700: #085041;
  --green-600: #0F6E56;
  --green-500: #1D9E75;
  --green-100: #9FE1CB;
  --green-50:  #E1F5EE;

  --amber-700: #633806;
  --amber-600: #854F0B;
  --amber-500: #BA7517;
  --amber-300: #FAC775;
  --amber-50:  #FAEEDA;

  --red-700: #791F1F;
  --red-600: #A32D2D;
  --red-200: #F09595;
  --red-50:  #FCEBEB;

  --gray-900: #1A1A1A;
  --gray-700: #3D3D3D;
  --gray-500: #6B6B6B;
  --gray-400: #888780;
  --gray-200: #D3D1C7;
  --gray-100: #E6E2DD;
  --gray-50:  #F0EDEA;  /* Gris perlé — fond de page */

  --white: #FFFFFF;

  --font-main: 'Inter', -apple-system, sans-serif;
  --font-display: 'DM Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(30,58,63,0.06);
  --shadow-md: 0 4px 16px rgba(30,58,63,0.08);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-main); cursor: pointer; }
input, select, textarea { font-family: var(--font-main); }

/* ─── TOPBAR ─── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
}
.topbar-logo {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 500;
  color: var(--blue-700);
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 10px;
}
.topbar-logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-500);
}
.topbar-sub {
  font-size: 13px; font-weight: 400;
  color: var(--gray-400);
  margin-left: 4px;
}
.topbar-nav { display: flex; align-items: center; gap: 6px; }
.topbar-link {
  font-size: 13px; color: var(--gray-500);
  padding: 6px 14px; border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  border: none; background: none;
}
.topbar-link:hover { background: var(--gray-50); color: var(--gray-900); }
.topbar-link.active { color: var(--blue-700); background: var(--blue-50); font-weight: 500; }
.topbar-cta {
  font-size: 13px; font-weight: 500;
  background: var(--blue-700); color: var(--white);
  padding: 7px 16px; border-radius: var(--radius-sm);
  border: none; transition: background 0.15s;
  margin-left: 8px;
}
.topbar-cta:hover { background: var(--blue-800); }

/* ─── PAGE LAYOUTS ─── */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.page-wrap-narrow { max-width: 680px; margin: 0 auto; padding: 40px 24px; }

/* ─── PAGE HEADER ─── */
.page-header { margin-bottom: 28px; }
.page-header-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; color: var(--blue-600); text-transform: uppercase; margin-bottom: 6px; }
.page-title { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--gray-900); margin-bottom: 4px; }
.page-meta { font-size: 13px; color: var(--gray-400); }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ─── KPI GRID ─── */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
@media (max-width: 768px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.kpi-label { font-size: 12px; color: var(--gray-400); margin-bottom: 8px; font-weight: 500; letter-spacing: 0.02em; }
.kpi-value { font-family: var(--font-display); font-size: 26px; font-weight: 500; line-height: 1; margin-bottom: 4px; }
.kpi-sub { font-size: 12px; color: var(--gray-400); }
.kpi-card.kpi-danger .kpi-value { color: var(--red-600); }
.kpi-card.kpi-blue .kpi-value { color: var(--blue-700); }
.kpi-card.kpi-green .kpi-value { color: var(--green-600); }

/* ─── SECTION ─── */
.section { margin-bottom: 28px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title { font-size: 14px; font-weight: 500; color: var(--gray-700); }

/* ─── TABLE ─── */
.table-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 11px 16px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.05em;
  color: var(--gray-400); text-transform: uppercase;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.data-table td {
  padding: 13px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background 0.1s; cursor: pointer; }
.data-table tbody tr:hover td { background: var(--blue-50); }
.data-table tbody tr.inactive { opacity: 0.55; cursor: default; }
.data-table tbody tr.inactive:hover td { background: none; }
.supplier-name { font-weight: 500; color: var(--gray-900); font-size: 14px; }

/* ─── SCORE BAR ─── */
.score-bar-wrap { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.score-bar-track { flex: 1; height: 5px; background: var(--gray-100); border-radius: 3px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.score-num { font-size: 13px; font-weight: 500; min-width: 32px; text-align: right; }
.score-red    { color: var(--red-600); }
.score-amber  { color: var(--amber-600); }
.score-yellow { color: var(--amber-500); }
.score-green  { color: var(--green-600); }
.fill-red    { background: var(--red-600); }
.fill-amber  { background: var(--amber-500); }
.fill-yellow { background: var(--amber-300); }
.fill-green  { background: var(--green-500); }

/* ─── BADGES ─── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500; padding: 3px 9px;
  border-radius: 20px; white-space: nowrap;
}
.badge-red    { background: var(--red-50); color: var(--red-700); }
.badge-amber  { background: var(--amber-50); color: var(--amber-700); }
.badge-yellow { background: var(--amber-50); color: var(--amber-500); }
.badge-green  { background: var(--green-50); color: var(--green-700); }
.badge-blue   { background: var(--blue-50); color: var(--blue-800); }
.badge-gray   { background: var(--gray-100); color: var(--gray-500); }
.badge-sub    { background: var(--green-50); color: var(--green-600); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; padding: 8px 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--gray-200);
  background: var(--white); color: var(--gray-700);
  transition: all 0.15s; white-space: nowrap;
}
.btn:hover { border-color: var(--gray-400); color: var(--gray-900); background: var(--gray-50); }
.btn-primary {
  background: var(--blue-700); color: var(--white);
  border-color: var(--blue-700);
}
.btn-primary:hover { background: var(--blue-800); border-color: var(--blue-800); color: var(--white); }
.btn-danger { background: var(--red-50); color: var(--red-600); border-color: var(--red-200); }
.btn-sm { font-size: 12px; padding: 5px 12px; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ─── DETAIL PANEL ─── */
.detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--blue-700); margin-bottom: 20px;
  background: none; border: none; padding: 0;
}
.detail-back:hover { color: var(--blue-800); }
.detail-back svg { width: 14px; height: 14px; }

.detail-header {
  display: flex; align-items: flex-start; gap: 20px;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
}
.detail-header-info { flex: 1; }
.detail-name { font-family: var(--font-display); font-size: 20px; font-weight: 500; margin-bottom: 4px; }
.detail-meta { font-size: 13px; color: var(--gray-400); margin-bottom: 10px; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.score-circle {
  width: 84px; height: 84px; border-radius: 50%;
  border: 3px solid; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-circle-num { font-family: var(--font-display); font-size: 26px; font-weight: 500; line-height: 1; }
.score-circle-sub { font-size: 10px; color: var(--gray-400); margin-top: 1px; }
.score-circle.green { border-color: var(--green-500); color: var(--green-600); }
.score-circle.yellow { border-color: var(--amber-300); color: var(--amber-500); }
.score-circle.amber { border-color: var(--amber-500); color: var(--amber-600); }
.score-circle.red { border-color: var(--red-200); color: var(--red-600); }

/* ─── DIMENSIONS GRID ─── */
.dims-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
@media (max-width: 480px) { .dims-grid { grid-template-columns: 1fr; } }
.dim-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-md); padding: 14px 16px;
}
.dim-label {
  font-size: 12px; color: var(--gray-500); margin-bottom: 10px;
  display: flex; align-items: center; gap: 7px; font-weight: 500;
}
.dim-label svg { width: 14px; height: 14px; flex-shrink: 0; }
.dim-row { display: flex; align-items: center; gap: 8px; }
.dim-bar { flex: 1; height: 5px; background: var(--gray-100); border-radius: 3px; overflow: hidden; }
.dim-fill { height: 100%; border-radius: 3px; }
.dim-score { font-size: 13px; font-weight: 500; min-width: 26px; text-align: right; }

/* ─── RECOMMENDATIONS ─── */
.reco-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.reco-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-md); padding: 16px 18px;
  display: flex; gap: 14px;
}
.reco-priority {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex-shrink: 0; margin-top: 1px;
}
.prio-1 { background: var(--amber-50); color: var(--amber-700); }
.prio-2 { background: var(--blue-50); color: var(--blue-800); }
.prio-3 { background: var(--gray-100); color: var(--gray-500); }
.reco-body { flex: 1; }
.reco-title { font-size: 14px; font-weight: 500; margin-bottom: 5px; color: var(--gray-900); }
.reco-desc { font-size: 13px; color: var(--gray-500); line-height: 1.55; margin-bottom: 8px; }
.reco-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* ─── ALERT BOX ─── */
.alert {
  padding: 14px 16px; border-radius: var(--radius-md);
  font-size: 13px; line-height: 1.5;
  display: flex; gap: 10px; align-items: flex-start;
}
.alert-danger { background: var(--red-50); color: var(--red-700); border: 1px solid var(--red-200); }
.alert-success { background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }
.alert-info { background: var(--blue-50); color: var(--blue-800); border: 1px solid var(--blue-100); }
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

/* ─── QUESTIONNAIRE ─── */
.q-shell {
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.q-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--blue-900);
  padding: 28px 20px;
  display: flex; flex-direction: column; gap: 0;
}
.q-sidebar-logo {
  font-family: var(--font-display); font-size: 16px; font-weight: 500;
  color: var(--white); margin-bottom: 6px;
}
.q-sidebar-sub { font-size: 12px; color: var(--blue-200); margin-bottom: 28px; }
.q-step-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; cursor: pointer;
}
.q-step-dot {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.4);
}
.q-step-dot.done { background: var(--green-500); border-color: var(--green-500); color: var(--white); }
.q-step-dot.active { background: var(--blue-600); border-color: var(--blue-400); color: var(--white); }
.q-step-label { font-size: 13px; color: rgba(255,255,255,0.4); }
.q-step-label.active { color: var(--white); font-weight: 500; }
.q-step-label.done { color: rgba(255,255,255,0.65); }

.q-main { flex: 1; padding: 32px 36px; overflow-y: auto; }
@media (max-width: 680px) {
  .q-shell-inner { flex-direction: column; }
  .q-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 16px; }
  .q-sidebar-logo { display: none; }
  .q-sidebar-sub { display: none; }
  .q-main { padding: 20px; }
}

.q-shell-inner { display: flex; min-height: 520px; }

.q-block-title {
  font-family: var(--font-display); font-size: 18px; font-weight: 500;
  margin-bottom: 4px; color: var(--gray-900);
}
.q-block-sub { font-size: 13px; color: var(--gray-400); margin-bottom: 24px; }

.q-item { margin-bottom: 22px; }
.q-label { font-size: 14px; font-weight: 500; color: var(--gray-800); margin-bottom: 10px; }
.q-options { display: flex; flex-direction: column; gap: 7px; }
.q-option {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--gray-100); background: var(--gray-50);
  cursor: pointer; transition: all 0.12s; font-size: 13px; color: var(--gray-700);
}
.q-option:hover { border-color: var(--blue-200); background: var(--blue-50); color: var(--gray-900); }
.q-option.selected { border-color: var(--blue-400); background: var(--blue-50); color: var(--blue-900); font-weight: 500; }
.q-option input[type="radio"] { accent-color: var(--blue-700); width: 15px; height: 15px; flex-shrink: 0; }

.q-progress-bar {
  background: var(--blue-50); border-radius: var(--radius-md);
  padding: 14px 16px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.q-progress-track { flex: 1; height: 6px; background: var(--blue-100); border-radius: 3px; overflow: hidden; }
.q-progress-fill { height: 100%; background: var(--blue-700); border-radius: 3px; transition: width 0.4s ease; }
.q-progress-label { font-size: 13px; font-weight: 500; color: var(--blue-700); white-space: nowrap; }
.q-progress-badge { font-size: 11px; }

.q-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--gray-100); }

/* ─── RESULT PAGE ─── */
.result-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  border-radius: var(--radius-xl); padding: 36px 40px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.result-hero-text { flex: 1; }
.result-hero-eyebrow { font-size: 12px; font-weight: 500; color: var(--blue-200); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.result-hero-name { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--white); margin-bottom: 4px; }
.result-hero-meta { font-size: 13px; color: var(--blue-200); }
.result-score-wrap { text-align: center; }
.result-score-circle {
  width: 96px; height: 96px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 3px solid rgba(255,255,255,0.3);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.result-score-num { font-family: var(--font-display); font-size: 30px; font-weight: 500; color: var(--white); line-height: 1; }
.result-score-sub { font-size: 11px; color: var(--blue-200); margin-top: 2px; }
.result-profile { margin-top: 8px; font-size: 13px; color: var(--white); font-weight: 500; }

/* ─── BENCHMARK BAR ─── */
.benchmark-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.benchmark-label { font-size: 12px; color: var(--gray-500); min-width: 110px; }
.benchmark-track { flex: 1; height: 8px; background: var(--gray-100); border-radius: 4px; overflow: hidden; position: relative; }
.benchmark-fill { height: 100%; border-radius: 4px; }
.benchmark-you { position: absolute; top: -2px; height: 12px; width: 3px; background: var(--blue-700); border-radius: 2px; }
.benchmark-val { font-size: 12px; font-weight: 500; color: var(--gray-700); min-width: 26px; text-align: right; }

/* ─── EMPTY STATE ─── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--gray-400); }
.empty-state svg { width: 40px; height: 40px; margin-bottom: 12px; opacity: 0.4; }
.empty-state-title { font-size: 15px; font-weight: 500; color: var(--gray-500); margin-bottom: 6px; }
.empty-state-sub { font-size: 13px; }

/* ─── MODAL OVERLAY ─── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: var(--radius-xl);
  width: 100%; max-width: 440px; padding: 28px;
  box-shadow: var(--shadow-md);
  transform: translateY(10px); transition: transform 0.2s;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-title { font-family: var(--font-display); font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: var(--gray-400); margin-bottom: 20px; }
.modal-field { margin-bottom: 14px; }
.modal-label { font-size: 12px; font-weight: 500; color: var(--gray-500); margin-bottom: 6px; display: block; text-transform: uppercase; letter-spacing: 0.04em; }
.modal-input {
  width: 100%; padding: 9px 12px; font-size: 14px;
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  background: var(--white); color: var(--gray-900);
  transition: border-color 0.15s;
}
.modal-input:focus { outline: none; border-color: var(--blue-400); }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

/* ─── TOAST ─── */
.toast-wrap {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: var(--gray-900); color: var(--white);
  padding: 11px 16px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  opacity: 0; transform: translateY(8px);
  transition: all 0.25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--gray-100); margin-top: 48px;
  padding: 20px 32px; display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--gray-400);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .topbar { padding: 0 16px; }
  .page-wrap { padding: 20px 16px; }
  .detail-header { flex-direction: column; align-items: flex-start; }
  .dims-grid { grid-template-columns: 1fr; }
}

/* ─── PRINT ─── */
@media print {
  .topbar, .page-actions, .btn, footer { display: none !important; }
  .page-wrap { padding: 0; }
}

/* ─── VAGUES DÉCORATIVES VERACY ─── */
/* Séparateur vague — à placer entre deux sections ou en bas d'un héros */
.wave-divider {
  display: block;
  width: 100%;
  height: 48px;
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg { display: block; width: 100%; height: 100%; }

/* Vague en bas de page (fixée discrètement) */
.page-waves {
  position: fixed;
  left: 220px; right: 0; bottom: 0;
  height: 130px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
.page-waves svg { width: 100%; height: 100%; display: block; }
@media (max-width: 820px) { .page-waves { left: 64px; } }

/* S'assurer que le contenu passe au-dessus des vagues */
.page-wrap, .page-wrap-narrow, .topbar { position: relative; z-index: 1; }

/* Héros teal nuit avec vague intégrée en bas */
.hero-teal {
  position: relative;
  background: linear-gradient(135deg, var(--teal-night) 0%, var(--teal) 100%);
  overflow: hidden;
}
.hero-teal-waves {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 60px;
  line-height: 0;
}
.hero-teal-waves svg { width: 100%; height: 100%; display: block; }

/* ─── APP SHELL — SIDEBAR LAYOUT ─── */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  width: 220px; flex-shrink: 0; background: var(--teal-night);
  padding: 18px 12px; display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
}
.app-sidebar-logo { padding: 4px 10px 20px; }
.app-sidebar-logo a { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.app-sidebar-logo img { height: 28px; width: auto; filter: brightness(0) invert(1); display: block; }
.app-logo-word { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: 0.12em; color: var(--white); }
.app-sb-section { font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.3); padding: 14px 10px 6px; }
.app-sb-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: var(--radius-md); font-size: 13px; color: rgba(255,255,255,0.55);
  cursor: pointer; margin-bottom: 1px; text-decoration: none; transition: background 0.12s, color 0.12s;
  border: none; background: none; width: 100%; text-align: left; font-family: var(--font-main);
}
.app-sb-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); }
.app-sb-item.active { background: var(--teal); color: #fff; font-weight: 500; }
.app-sb-item i { font-size: 17px; flex-shrink: 0; }
.app-sb-foot { margin-top: auto; padding: 10px; border-top: 0.5px solid rgba(255,255,255,0.08); }
.app-sb-user { display: flex; align-items: center; gap: 9px; font-size: 12px; color: rgba(255,255,255,0.6); }
.app-sb-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--salmon); color: var(--teal-night); display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 12px; flex-shrink: 0; }
.app-sb-logout { font-size: 11px; color: rgba(255,255,255,0.4); background: none; border: none; cursor: pointer; padding: 8px 10px 0; text-align: left; width: 100%; font-family: var(--font-main); }
.app-sb-logout:hover { color: rgba(255,255,255,0.8); }

.app-main { flex: 1; margin-left: 220px; min-width: 0; display: flex; flex-direction: column; position: relative; z-index: 1; }
.app-topbar { background: var(--white); border-bottom: 0.5px solid var(--gray-100); padding: 11px 24px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40; }
.app-breadcrumb { font-size: 12px; color: var(--gray-400); display: flex; align-items: center; gap: 6px; }
.app-breadcrumb b { color: var(--teal-night); font-weight: 500; }
.app-topbar-actions { display: flex; align-items: center; gap: 8px; }
.app-pill { font-size: 12px; background: var(--gray-50); color: var(--gray-500); border-radius: var(--radius-md); padding: 5px 11px; border: none; cursor: pointer; font-family: var(--font-main); }
.app-pill:hover { background: var(--gray-100); }

@media (max-width: 820px) {
  .app-sidebar { width: 64px; }
  .app-sidebar-logo img { height: 22px; }
  .app-sb-item span, .app-sb-section, .app-sb-foot, .app-logo-word { display: none; }
  .app-main { margin-left: 64px; }
}

/* Bandeau admin — sélection client */
.admin-context-bar { background: var(--teal-xpale); border-bottom: 0.5px solid var(--teal-pale); padding: 8px 24px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--teal-night); }
.admin-context-bar select { font-size: 12px; padding: 4px 10px; border-radius: var(--radius-sm); border: 0.5px solid var(--teal-pale); background: var(--white); color: var(--teal-night); font-family: var(--font-main); }

/* Module placeholder / maquette */
.module-soon-banner { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; background: var(--salmon-50); color: #C2563C; padding: 4px 10px; border-radius: 20px; margin-bottom: 14px; }

/* ─── EN-TÊTE DE MODULE (bandeau, inspiré Toovalu) ─── */
.vc-headband {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--teal-night) 0%, var(--teal-deep, #245F6B) 100%);
  color: var(--white); border-radius: var(--radius-lg);
  padding: 18px 24px; margin-bottom: 18px; box-shadow: var(--shadow-md);
}
.vc-hb-total { display: flex; align-items: baseline; gap: 8px; flex-direction: row; flex-wrap: wrap; }
.vc-hb-total-val { font-family: var(--font-display); font-size: 34px; font-weight: 500; line-height: 1; letter-spacing: -0.01em; }
.vc-hb-total-unit { font-size: 14px; color: var(--teal-pale); }
.vc-hb-total-label { flex-basis: 100%; font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 4px; }
.vc-hb-progress { min-width: 180px; }
.vc-hb-progress-top { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.75); margin-bottom: 6px; }
.vc-hb-progress-track { height: 6px; background: rgba(255,255,255,0.18); border-radius: 4px; overflow: hidden; }
.vc-hb-progress-fill { height: 100%; background: var(--green-500); border-radius: 4px; transition: width .4s ease; }
.vc-hb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.vc-hb-stat { text-align: right; }
.vc-hb-stat-val { font-size: 17px; font-weight: 500; }
.vc-hb-stat-lbl { font-size: 10px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 640px) { .vc-headband { gap: 16px; } .vc-hb-total-val { font-size: 26px; } }

/* ─── EN-TÊTE DE MODULE avec icône (inspiré Toovalu) ─── */
.vc-module-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.vc-module-icon { width: 46px; height: 46px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 23px; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.vc-module-title { font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--gray-900); line-height: 1.1; }
.vc-module-sub { font-size: 13px; color: var(--gray-400); margin-top: 3px; }

/* ─── Légende de sous-catégories avec icônes (graphiques) ─── */
.vc-cat-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 16px; margin-top: 14px; }
.vc-cat-item { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--gray-700); padding: 4px 0; }
.vc-cat-ic { width: 24px; height: 24px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--white); flex-shrink: 0; }
.vc-cat-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-cat-val { font-weight: 500; color: var(--gray-900); flex-shrink: 0; }
.vc-cat-pct { color: var(--gray-400); font-size: 11px; flex-shrink: 0; min-width: 34px; text-align: right; }

/* Carte graphique générique réutilisable */
.vc-chart-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 16px; }
.vc-chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.vc-chart-title { font-size: 14px; font-weight: 500; color: var(--gray-900); display: flex; align-items: center; gap: 8px; }
.vc-chart-title i { color: var(--teal); font-size: 16px; }
.vc-chart-sub { font-size: 12px; color: var(--gray-400); margin-bottom: 10px; }
.vc-chart-box { position: relative; height: 300px; }
