@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   HOTELIUM SAAS — Platform Design System
   Source de vérité unique de l'espace connecté (auth → rapport).
   Inter · JetBrains Mono · Lucide line · vert #1A3A2A / lime #7ECF2E.
   ============================================================ */

:root {
  /* Surfaces */
  --bg-page: #F7F9F7;
  --bg-card: #FFFFFF;
  --bg-sidebar: #FFFFFF;
  --bg-soft: #FAFBF9;
  --bg-tint: #EBF5E6;

  /* Borders */
  --border: #E6EBE3;
  --border-soft: #EEF2EC;
  --border-tint: #E8F0E4;
  --border-strong: #D4E4C8;

  /* Text */
  --ink: #0D1A0A;
  --ink-2: #3F5A36;
  --ink-3: #5C7A52;
  --ink-4: #8AA17F;

  /* Brand */
  --green-900: #0F2A1B;
  --green-800: #1A3A2A;
  --green-700: #2D6A4F;
  --green-600: #3F8A5E;
  --lime: #7ECF2E;
  --lime-soft: #E7F7D7;

  /* Status */
  --success-bg: #D1FAE5;  --success-fg: #065F46;
  --warning-bg: #FEF3C7;  --warning-fg: #92400E;
  --neutral-bg: #F3F4F6;  --neutral-fg: #6B7280;
  --info-bg:    #DBEAFE;  --info-fg:    #1E40AF;
  --danger-bg:  #FEE2E2;  --danger-fg:  #991B1B;
  --premium-bg: #FEF3C7;  --premium-fg: #92400E;

  /* Radii */
  --r-card: 8px;
  --r-btn: 6px;
  --r-badge: 4px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-card: 0 1px 4px rgba(13, 26, 10, 0.06);
  --shadow-pop: 0 4px 18px rgba(13, 26, 10, 0.08);
  --shadow-modal: 0 12px 40px rgba(13, 26, 10, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #ECEFEA;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}

/* ============================================================
   PAGE SHELL — vertical stack of section + frames
   ============================================================ */

.doc {
  max-width: 1640px;
  margin: 0 auto;
  padding: 80px 40px 200px;
}

.doc-header {
  padding: 64px 40px 96px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 80px;
  background:
    radial-gradient(circle at 80% 20%, rgba(126,207,46,0.05), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F7F9F7 100%);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.doc-header::after {
  content: "";
  position: absolute;
  inset: auto -200px -200px auto;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,58,42,0.04), transparent 70%);
  pointer-events: none;
}
.doc-header-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 600;
  margin-bottom: 18px;
}
.doc-header-title {
  font-size: 52px;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  line-height: 1.05;
}
.doc-header-subtitle {
  font-size: 17px;
  color: var(--ink-3);
  max-width: 720px;
  line-height: 1.5;
}
.doc-header-meta {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.doc-header-meta > div {
  display: flex; flex-direction: column; gap: 4px;
}
.doc-header-meta-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 600;
}
.doc-header-meta-value {
  font-size: 15px; font-weight: 500; color: var(--ink);
}

/* Section dividers */
.section {
  margin-top: 96px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.section-header-left {
  display: flex; align-items: baseline; gap: 18px;
}
.section-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-700);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-subtitle {
  font-size: 14px;
  color: var(--ink-3);
  max-width: 480px;
  text-align: right;
}

/* Frame caption above each mock */
.frame-block { margin-top: 56px; }
.frame-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}
.frame-caption-left { display: flex; align-items: baseline; gap: 14px; }
.frame-id {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.frame-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.frame-note {
  font-size: 12px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

/* Desktop frame: 1440×900 */
.frame {
  width: 1440px;
  height: 900px;
  background: var(--bg-page);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(13,26,10,0.10), 0 0 0 1px var(--border);
  overflow: hidden;
  position: relative;
}
.frame-mobile {
  width: 390px;
  height: 844px;
  border-radius: 36px;
  background: var(--bg-page);
  box-shadow: 0 10px 40px rgba(13,26,10,0.10), 0 0 0 1px var(--border);
  overflow: hidden;
  position: relative;
}

/* Mobile row */
.mobile-row {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.mobile-frame-block .frame-caption { width: 390px; }

/* ============================================================
   APP SHELL (sidebar + main)
   ============================================================ */
.app {
  display: flex;
  width: 100%; height: 100%;
}

/* ----- Sidebar ----- */
.sidebar {
  width: 240px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-tint);
  display: flex; flex-direction: column;
  padding: 20px 14px 16px;
  flex-shrink: 0;
}
.sb-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 24px;
}
.sb-brand-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--green-800);
  display: grid; place-items: center;
  color: #fff;
}
.sb-brand-name {
  font-size: 15px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.sb-section-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 600;
  padding: 14px 10px 8px;
}

.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-item {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.sb-item:hover { background: var(--bg-soft); color: var(--ink); }
.sb-item.active {
  background: var(--bg-tint);
  color: var(--green-800);
  font-weight: 600;
}
.sb-item.active svg { color: var(--green-800); }
.sb-item svg { width: 17px; height: 17px; color: var(--ink-3); flex-shrink: 0; }
.sb-item .sb-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-4);
  background: var(--bg-soft);
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 600;
}
.sb-item.active .sb-count {
  background: rgba(26,58,42,0.10);
  color: var(--green-800);
}

.sb-bottom {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 14px;
}
.sb-plan-card {
  background: linear-gradient(180deg, #FAFCF8 0%, #F1F8EA 100%);
  border: 1px solid var(--border-tint);
  border-radius: 8px;
  padding: 12px;
}
.sb-plan-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
  gap: 6px;
}
.sb-plan-name { font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.sb-plan-card-text {
  font-size: 11px; color: var(--ink-3); line-height: 1.45; margin-bottom: 10px;
}
.sb-plan-card-btn {
  display: block; text-align: center;
  background: var(--green-800);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.sb-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}
.sb-user:hover { background: var(--bg-soft); }
.sb-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green-800);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: grid; place-items: center;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.sb-user-info { display: flex; flex-direction: column; min-width: 0; }
.sb-user-name {
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-user-email {
  font-size: 11px; color: var(--ink-4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ----- Main content area ----- */
.main {
  flex: 1;
  display: flex; flex-direction: column;
  min-width: 0;
  background: var(--bg-page);
}
.topbar {
  height: 60px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 28px;
  gap: 16px;
  flex-shrink: 0;
}
.crumb { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.crumb-current { color: var(--ink); font-weight: 600; }
.crumb-sep { color: var(--border-strong); }

.topbar-search {
  margin-left: 24px;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  width: 320px;
  color: var(--ink-3);
  font-size: 12.5px;
}
.topbar-search svg { width: 14px; height: 14px; }
.topbar-search input {
  border: 0; outline: 0; background: transparent;
  flex: 1; font: inherit; color: var(--ink);
}

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink-3);
  position: relative;
}
.icon-btn:hover { background: var(--bg-page); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn .dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: var(--lime);
  border-radius: 50%;
  border: 2px solid #fff;
}

.content {
  flex: 1;
  padding: 28px 32px 40px;
  overflow: hidden;
}

.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px;
  gap: 24px;
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.page-subtitle {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 4px;
}
.page-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ============================================================
   PRIMITIVES — buttons, badges, fields, cards
   ============================================================ */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.005em;
}
.btn svg { width: 14px; height: 14px; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-lg { padding: 11px 18px; font-size: 14px; }

.btn-primary { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-900); }
.btn-secondary {
  background: var(--bg-card); color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-soft); border-color: var(--ink-4); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-page); color: var(--ink); }
.btn-danger { background: #B91C1C; color: #fff; }
.btn-danger:hover { background: #991B1B; }
.btn-lime { background: var(--lime); color: var(--green-900); }
.btn-lime:hover { background: #6EBC1F; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-badge);
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-bg); color: var(--success-fg); }
.badge-warning { background: var(--warning-bg); color: var(--warning-fg); }
.badge-neutral { background: var(--neutral-bg); color: var(--neutral-fg); }
.badge-info    { background: var(--info-bg);    color: var(--info-fg); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger-fg); }
.badge-premium {
  background: linear-gradient(180deg, #1A3A2A, #0F2A1B);
  color: var(--lime);
  padding: 3px 8px;
}
.badge-lime { background: var(--lime-soft); color: #3D6A0E; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.card-title { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.card-subtitle { font-size: 12px; color: var(--ink-3); }
.card-body { padding: 18px; }

/* Form fields */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.field-input {
  width: 100%;
  padding: 9px 12px;
  font: inherit;
  font-size: 13.5px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-btn);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field-input::placeholder { color: var(--ink-4); }
.field-input:focus,
.field-input.is-focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}
.field-input.is-error {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10);
}
.field-input:disabled,
.field-input.is-disabled {
  background: var(--bg-page);
  color: var(--ink-4);
  cursor: not-allowed;
}
.field-help { font-size: 11.5px; color: var(--ink-3); }
.field-error { font-size: 11.5px; color: #B91C1C; }

.field-with-icon { position: relative; }
.field-with-icon .field-input { padding-right: 38px; }
.field-with-icon .field-trail {
  position: absolute; top: 50%; right: 10px;
  transform: translateY(-50%);
  color: var(--ink-3); cursor: pointer;
  display: grid; place-items: center;
}
.field-with-icon .field-trail svg { width: 16px; height: 16px; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--border-strong);
  background: #fff;
  flex-shrink: 0;
  margin-top: 1px;
  display: grid; place-items: center;
  cursor: pointer;
}
.checkbox.is-checked {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
}
.checkbox.is-checked svg { width: 11px; height: 11px; }
.checkbox-label { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.checkbox-label a { color: var(--green-700); text-decoration: none; font-weight: 500; }

/* Divider with text */
.divider-text {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0;
  color: var(--ink-4);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
}
.divider-text::before,
.divider-text::after {
  content: ""; flex: 1; height: 1px;
  background: var(--border);
}

/* Tabs */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.tab {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--green-800); border-bottom-color: var(--green-800); font-weight: 600; }
.tab .tab-count {
  margin-left: 6px;
  font-size: 11px;
  background: var(--neutral-bg);
  color: var(--neutral-fg);
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 600;
}
.tab.active .tab-count { background: var(--bg-tint); color: var(--green-800); }

/* ============================================================
   KPI cards
   ============================================================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.kpi {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.kpi-head {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
}
.kpi-head-icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--bg-tint);
  color: var(--green-800);
  display: grid; place-items: center;
}
.kpi-head-icon svg { width: 14px; height: 14px; }
.kpi-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.1;
}
.kpi-value sub {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
  margin-left: 4px;
  vertical-align: baseline;
  white-space: nowrap;
}
.kpi-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kpi-meta .delta-pos, .kpi-meta .delta-neg { white-space: nowrap; }
.kpi-meta .delta-pos { color: var(--success-fg); font-weight: 600; }
.kpi-meta .delta-neg { color: var(--danger-fg); font-weight: 600; }

/* ============================================================
   Tables
   ============================================================ */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--ink-2);
  vertical-align: middle;
}
.table tbody tr:hover td { background: var(--bg-soft); }
.table tbody tr.is-selected td { background: var(--bg-tint); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .cell-strong { color: var(--ink); font-weight: 600; }
.table .cell-mono { font-variant-numeric: tabular-nums; }
.table .cell-actions { display: flex; gap: 4px; justify-content: flex-end; }
.row-action {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--ink-3);
  cursor: pointer;
}
.row-action:hover { background: var(--bg-tint); color: var(--green-800); }
.row-action.is-danger:hover { background: var(--danger-bg); color: var(--danger-fg); }
.row-action svg { width: 14px; height: 14px; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-shell {
  width: 100%; height: 100%;
  background: var(--bg-page);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.auth-shell::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'><g fill='none' stroke='%231A3A2A' stroke-opacity='0.05'><polygon points='15,1 29,9 29,25 15,33 1,25 1,9'/><polygon points='45,19 59,27 59,43 45,51 31,43 31,27'/></g></svg>");
  background-size: 60px 52px;
  pointer-events: none;
}
.auth-topbar {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px;
  z-index: 2;
}
.auth-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.auth-brand-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--green-800); display: grid; place-items: center; color: #fff; }
.auth-brand-name { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.auth-top-link { font-size: 13px; color: var(--ink-3); text-decoration: none; }
.auth-top-link:hover { color: var(--ink); }

.auth-card {
  position: relative;
  z-index: 2;
  width: 440px;
  max-width: calc(100vw - 32px);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(13, 26, 10, 0.08), 0 1px 3px rgba(13, 26, 10, 0.04);
  padding: 36px 36px 28px;
}
.auth-card .auth-brand { margin-bottom: 24px; }
.auth-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .field-label-row {
  display: flex; justify-content: space-between; align-items: baseline;
}
.auth-form .field-label-row a {
  font-size: 12px; color: var(--green-700);
  text-decoration: none; font-weight: 500;
}
.auth-card .btn-primary {
  width: 100%;
  height: 44px;
  font-size: 13.5px;
}
.auth-card .btn-secondary { width: 100%; height: 42px; }
.auth-foot {
  text-align: center;
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.auth-foot a { color: var(--green-700); font-weight: 600; text-decoration: none; }

.auth-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 20px;
  color: var(--ink-4);
  font-size: 11px;
}
.auth-trust svg { width: 13px; height: 13px; }

/* ============================================================
   DESIGN SYSTEM PAGE (component reference)
   ============================================================ */
.ds-frame {
  width: 1440px;
  min-height: 900px;
  background: var(--bg-page);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(13,26,10,0.10), 0 0 0 1px var(--border);
  padding: 40px 44px;
}
.ds-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
}
.ds-sticky-nav {
  position: sticky; top: 20px; align-self: start;
  display: flex; flex-direction: column; gap: 4px;
}
.ds-nav-link {
  font-size: 12.5px;
  color: var(--ink-3);
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}
.ds-nav-link.active { background: var(--bg-tint); color: var(--green-800); font-weight: 600; }
.ds-block { margin-bottom: 44px; }
.ds-block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.ds-block-title {
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ds-block-hint {
  font-size: 12px; color: var(--ink-4);
}
.ds-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.ds-cell { display: flex; flex-direction: column; gap: 8px; }
.ds-cell-label { font-size: 11px; color: var(--ink-4); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.swatch {
  display: flex; flex-direction: column; gap: 6px;
}
.swatch-chip {
  height: 78px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
}
.swatch-name { font-size: 12px; font-weight: 600; color: var(--ink); }
.swatch-value { font-size: 11px; color: var(--ink-4); font-variant-numeric: tabular-nums; }

.type-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: 140px 1fr 220px;
  gap: 18px;
  align-items: baseline;
}
.type-row:last-child { border-bottom: 0; }
.type-meta { font-size: 11px; color: var(--ink-4); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.type-spec { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.type-sample-h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
.type-sample-h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.type-sample-h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.type-sample-body { font-size: 14px; color: var(--ink); }
.type-sample-cap { font-size: 12px; color: var(--ink-3); }

/* Toast samples */
.toast {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: var(--shadow-pop);
  width: 340px;
}
.toast-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.toast-text { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.toast-close { color: var(--ink-4); cursor: pointer; }
.toast.is-success .toast-icon { background: var(--success-bg); color: var(--success-fg); }
.toast.is-error   .toast-icon { background: var(--danger-bg);  color: var(--danger-fg); }
.toast.is-info    .toast-icon { background: var(--info-bg);    color: var(--info-fg); }

/* helpers */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.text-strong { color: var(--ink); font-weight: 600; }
.text-muted { color: var(--ink-3); }
.text-xs { font-size: 11.5px; }
.text-sm { font-size: 12.5px; }

/* ============================================================
   DASHBOARD-specific
   ============================================================ */
.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.upsell {
  background: linear-gradient(120deg, #EBF5E6 0%, #DFF0D4 100%);
  border: 1px solid var(--border-tint);
  border-radius: 10px;
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.upsell::before {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(126,207,46,0.25), transparent 70%);
  pointer-events: none;
}
.upsell-text { display: flex; flex-direction: column; gap: 4px; max-width: 70%; position: relative; }
.upsell-title { font-size: 15px; font-weight: 700; color: var(--green-900); letter-spacing: -0.01em; }
.upsell-sub   { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.upsell .btn { position: relative; }

/* Report card on dashboard */
.report-card {
  display: flex; gap: 16px;
  padding: 16px;
  align-items: center;
}
.report-thumb {
  width: 96px; height: 124px;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff 0%, #F2F6EF 100%);
  border: 1px solid var(--border-tint);
  display: flex; flex-direction: column;
  padding: 9px 8px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.report-thumb::after {
  content: "PDF";
  position: absolute; bottom: 8px; right: 8px;
  font-size: 8px; font-weight: 700;
  color: #B91C1C;
  background: #FEE2E2;
  padding: 2px 4px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.report-thumb-bar { height: 4px; border-radius: 2px; background: var(--border-tint); margin-bottom: 5px; }
.report-thumb-bar.w-60 { width: 60%; }
.report-thumb-bar.w-80 { width: 80%; }
.report-thumb-bar.green { background: var(--green-800); }
.report-thumb-block { height: 22px; border-radius: 3px; background: var(--bg-tint); margin: 5px 0; }
.report-info { flex: 1; min-width: 0; }
.report-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.report-meta { font-size: 12px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }

/* Mini chart */
.mini-chart {
  height: 160px;
  display: flex; align-items: flex-end; gap: 8px;
  padding-top: 12px;
}
.mini-bar {
  flex: 1;
  background: var(--bg-tint);
  border-radius: 4px 4px 0 0;
  position: relative;
}
.mini-bar::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--green-700);
  border-radius: 4px 4px 0 0;
  height: var(--h);
}
.mini-bar-label {
  position: absolute; bottom: -20px; left: 0; right: 0;
  text-align: center; font-size: 10px; color: var(--ink-4);
}

/* Stepper */
.stepper {
  display: flex; align-items: center;
  gap: 0;
  margin-bottom: 28px;
}
.step {
  display: flex; align-items: center; gap: 10px;
  flex: 1;
}
.step + .step::before {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border-strong);
  margin: 0 12px;
}
.step.is-done + .step::before { background: var(--green-800); }
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.step.is-current .step-num {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
}
.step.is-done .step-num {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
}
.step-label {
  display: flex; flex-direction: column;
  font-size: 12.5px;
  color: var(--ink-3);
}
.step-label small { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); font-weight: 600; }
.step.is-current .step-label { color: var(--ink); font-weight: 600; }
.step.is-done .step-label { color: var(--ink-2); }

/* Progress bar */
.progress {
  height: 4px; width: 100%;
  background: var(--border-tint);
  border-radius: 999px;
  overflow: hidden;
}
.progress > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--green-700), var(--lime));
  border-radius: 999px;
}

/* Equipment chips (wizard) */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.equip {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  cursor: pointer;
  position: relative;
}
.equip:hover { border-color: var(--border-strong); }
.equip.is-checked {
  border-color: var(--green-800);
  background: var(--bg-tint);
}
.equip-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-soft);
  display: grid; place-items: center;
  color: var(--green-800);
  margin-bottom: 4px;
}
.equip.is-checked .equip-icon { background: #fff; }
.equip-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.equip-desc { font-size: 11px; color: var(--ink-3); }
.equip-check {
  position: absolute; top: 10px; right: 10px;
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--border-strong);
  background: #fff;
}
.equip.is-checked .equip-check {
  background: var(--green-800);
  border-color: var(--green-800);
  display: grid; place-items: center;
}
.equip.is-checked .equip-check::after {
  content: ""; width: 8px; height: 4px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* Star rating */
.stars { display: flex; gap: 2px; color: var(--ink-4); }
.stars svg { width: 16px; height: 16px; }
.stars .on { color: #E8A93B; }

/* Generation page */
.gen-shell {
  max-width: 540px;
  margin: 40px auto;
  text-align: center;
}
.gen-ring {
  width: 96px; height: 96px;
  margin: 0 auto 28px;
  position: relative;
}
.gen-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gen-ring-bg { stroke: var(--bg-tint); }
.gen-ring-fg {
  stroke: var(--green-700);
  stroke-dasharray: 251.3;
  stroke-dashoffset: 75;
}
.gen-percent {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700;
  color: var(--green-800);
  letter-spacing: -0.02em;
}
.gen-steps {
  text-align: left;
  max-width: 420px;
  margin: 28px auto 0;
  display: flex; flex-direction: column; gap: 8px;
}
.gen-step {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2);
}
.gen-step-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0;
}
.gen-step.is-done .gen-step-dot {
  background: var(--success-bg);
  border-color: var(--success-fg);
  display: grid; place-items: center;
}
.gen-step.is-done .gen-step-dot::after {
  content: ""; width: 7px; height: 4px;
  border-left: 1.5px solid var(--success-fg);
  border-bottom: 1.5px solid var(--success-fg);
  transform: rotate(-45deg) translate(0, -1px);
}
.gen-step.is-loading .gen-step-dot {
  border-color: var(--green-700);
  border-top-color: transparent;
  animation: spin 1.2s linear infinite;
}
.gen-step.is-loading { color: var(--ink); font-weight: 500; background: var(--bg-tint); border-color: var(--border-tint); }
.gen-step.is-done { color: var(--ink-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Document cards */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-card);
}
.doc-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em;
}
.doc-icon.pdf { background: #FEE2E2; color: #B91C1C; }
.doc-icon.xls { background: #DCFCE7; color: #15803D; }
.doc-card-name {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  line-height: 1.3;
}
.doc-card-meta { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.doc-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  margin-top: auto;
}

/* Hotel profile header */
.hotel-hero {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 20px;
  align-items: center;
}
.hotel-photo {
  width: 220px; height: 140px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(26,58,42,0.04) 25%, transparent 25%) -10px 0,
    linear-gradient(225deg, rgba(26,58,42,0.04) 25%, transparent 25%) -10px 0,
    var(--bg-tint);
  background-size: 14px 14px;
  display: grid; place-items: center;
  color: var(--ink-4);
  font-size: 11px;
  position: relative;
  border: 1px solid var(--border-tint);
}
.hotel-photo::after {
  content: "📷  Photo de l'hôtel";
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--ink-4);
  font-size: 11px;
}
.hotel-name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.hotel-meta { display: flex; align-items: center; gap: 12px; margin-top: 6px; color: var(--ink-3); font-size: 13px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.info-cell {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 12px 14px;
}
.info-cell-label { font-size: 11px; color: var(--ink-4); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.info-cell-value { font-size: 13.5px; font-weight: 500; color: var(--ink); }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 14px; }
.tl-item { display: grid; grid-template-columns: 16px 1fr; gap: 14px; }
.tl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--green-700);
  margin-top: 4px;
  position: relative;
}
.tl-dot::after {
  content: ""; position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 28px;
  background: var(--border-strong);
}
.tl-item:last-child .tl-dot::after { display: none; }
.tl-content {
  display: flex; flex-direction: column; gap: 4px;
  padding-bottom: 6px;
}
.tl-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.tl-meta { font-size: 11.5px; color: var(--ink-3); }

/* Mobile-specific */
.mob-status {
  height: 44px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--bg-card);
}
.mob-status-right { display: flex; align-items: center; gap: 5px; }
.mob-tabbar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 78px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-bottom: 18px;
}
.mob-tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--ink-4);
  font-size: 10px;
  font-weight: 500;
  padding-top: 8px;
}
.mob-tab.active { color: var(--green-800); font-weight: 600; }
.mob-tab svg { width: 20px; height: 20px; }

.mob-header {
  padding: 14px 20px 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.mob-title { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }

/* ============================================================
   ANALYTICS DASHBOARD — full data view
   ============================================================ */
.frame-tall {
  width: 1440px;
  height: auto;
  background: var(--bg-page);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(13,26,10,0.10), 0 0 0 1px var(--border);
  overflow: hidden;
  position: relative;
}

/* Section sub-heading inside content */
.block-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  gap: 16px;
}
.block-head-left { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.block-head-title { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.block-head-sub { font-size: 12px; color: var(--ink-3); }

/* segmented control (period picker) */
.segmented {
  display: inline-flex;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}
.segmented > button {
  font: inherit; font-size: 12px; font-weight: 500;
  color: var(--ink-3);
  border: 0; background: transparent;
  padding: 5px 11px; border-radius: 5px; cursor: pointer;
}
.segmented > button.active {
  background: var(--bg-card); color: var(--ink);
  box-shadow: 0 1px 2px rgba(13,26,10,0.08);
  font-weight: 600;
}

/* Pill select */
.pill-select {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  padding: 7px 12px;
  font-size: 12.5px; font-weight: 500;
  color: var(--ink); cursor: pointer;
}
.pill-select svg { width: 14px; height: 14px; color: var(--ink-4); }

/* KPI strip variant (6 across, compact) */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.kpi-mini {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.kpi-mini-top { display: flex; align-items: center; gap: 8px; }
.kpi-mini-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--bg-tint); color: var(--green-800);
  display: grid; place-items: center; flex-shrink: 0;
}
.kpi-mini-icon svg { width: 15px; height: 15px; }
.kpi-mini-label { font-size: 11.5px; color: var(--ink-3); font-weight: 500; line-height: 1.25; }
.kpi-mini-value {
  font-size: 24px; font-weight: 700; letter-spacing: -0.025em;
  color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap;
}
.kpi-mini-value small { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }
.kpi-mini-foot { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); }
.trend-chip {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 10.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.trend-chip.good { background: var(--success-bg); color: var(--success-fg); }
.trend-chip.bad  { background: var(--danger-bg);  color: var(--danger-fg); }
.trend-chip.flat { background: var(--neutral-bg); color: var(--neutral-fg); }

/* Chart card */
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-grid-line { stroke: var(--border-soft); stroke-width: 1; }
.chart-axis-label { font-size: 10px; fill: var(--ink-4); font-family: 'JetBrains Mono', monospace; }
.chart-area-fill { fill: url(#areaGrad); }
.chart-line-cur { fill: none; stroke: var(--green-700); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-line-prev { fill: none; stroke: var(--ink-4); stroke-width: 1.5; stroke-dasharray: 4 4; stroke-linejoin: round; opacity: 0.7; }
.chart-dot { fill: #fff; stroke: var(--green-700); stroke-width: 2.5; }

.legend { display: flex; gap: 18px; align-items: center; }
.legend-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); }
.legend-swatch { width: 14px; height: 3px; border-radius: 2px; }
.legend-swatch.dashed { background: repeating-linear-gradient(90deg, var(--ink-4) 0 4px, transparent 4px 7px); height: 2px; }

/* Donut */
.donut-wrap { display: flex; align-items: center; gap: 24px; }
.donut {
  --d: 168px;
  width: var(--d); height: var(--d);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  display: grid; place-items: center;
}
.donut::after {
  content: ""; position: absolute;
  width: 62%; height: 62%; border-radius: 50%;
  background: var(--bg-card);
  box-shadow: inset 0 0 0 1px var(--border-soft);
}
.donut-center {
  position: relative; z-index: 1; text-align: center;
}
.donut-center-value { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.donut-center-label { font-size: 10px; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.donut-legend { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.donut-leg-item { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.donut-leg-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.donut-leg-name { color: var(--ink-2); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donut-leg-val { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Gauge (RSE score semicircle) */
.gauge { position: relative; width: 200px; height: 110px; margin: 0 auto; }
.gauge svg { width: 100%; height: 100%; overflow: visible; }
.gauge-bg { fill: none; stroke: var(--bg-tint); stroke-width: 16; stroke-linecap: round; }
.gauge-fg { fill: none; stroke: url(#gaugeGrad); stroke-width: 16; stroke-linecap: round; }
.gauge-center { position: absolute; bottom: 2px; left: 0; right: 0; text-align: center; }
.gauge-value { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.gauge-value small { font-size: 15px; color: var(--ink-4); font-weight: 500; }
.gauge-label { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* Benchmark bars */
.bench-row { display: grid; grid-template-columns: 132px 1fr 96px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.bench-row:last-child { border-bottom: 0; }
.bench-label { display: flex; flex-direction: column; gap: 2px; }
.bench-label-name { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.bench-label-unit { font-size: 10.5px; color: var(--ink-4); }
.bench-track { position: relative; height: 24px; background: var(--bg-page); border-radius: 6px; overflow: visible; }
.bench-fill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--green-700), var(--green-600)); display: flex; align-items: center; padding-left: 8px; }
.bench-fill-val { font-size: 10.5px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.bench-marker { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); border-radius: 2px; }
.bench-marker::after { content: attr(data-label); position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--ink-3); white-space: nowrap; font-weight: 600; }
.bench-verdict { font-size: 11px; font-weight: 600; text-align: right; }

/* Décret tertiaire trajectory */
.decret { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; }
.decret-status {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px; border-radius: 10px;
  background: linear-gradient(160deg, #FAFCF8, #EFF7E8);
  border: 1px solid var(--border-tint);
}
.decret-status-badge { align-self: flex-start; }
.decret-status-big { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--green-800); line-height: 1; }
.decret-status-text { font-size: 11.5px; color: var(--ink-2); line-height: 1.5; }
.decret-track-wrap { position: relative; padding: 38px 0 26px; }
.decret-bar { position: relative; height: 8px; background: var(--bg-tint); border-radius: 999px; }
.decret-bar-done { position: absolute; left: 0; top: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green-700), var(--lime)); }
.decret-milestone { position: absolute; top: -3px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.decret-ms-dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2.5px solid var(--border-strong); }
.decret-milestone.reached .decret-ms-dot { border-color: var(--green-700); background: var(--green-700); }
.decret-milestone.current .decret-ms-dot { border-color: var(--green-800); background: #fff; box-shadow: 0 0 0 4px rgba(26,58,42,0.12); }
.decret-ms-year { position: absolute; bottom: 22px; font-size: 11px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.decret-ms-target { position: absolute; top: 22px; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; text-align: center; font-variant-numeric: tabular-nums; }
.decret-ms-target b { display: block; color: var(--ink); font-weight: 700; }

/* Action plan table */
.action-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.action-table thead th { text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-4); padding: 0 14px 10px; }
.action-table thead th.num { text-align: right; }
.action-table tbody td { padding: 13px 14px; border-top: 1px solid var(--border-soft); vertical-align: middle; color: var(--ink-2); }
.action-table tbody td.num { text-align: right; font-variant-numeric: tabular-nums; }
.action-table tbody tr:hover td { background: var(--bg-soft); }
.action-name { display: flex; align-items: center; gap: 10px; }
.action-name > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.action-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--bg-tint); color: var(--green-800); display: grid; place-items: center; flex-shrink: 0; }
.action-icon svg { width: 16px; height: 16px; }
.action-title { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.action-cat { font-size: 11px; color: var(--ink-4); line-height: 1.2; }
.rse-row > span:first-child { white-space: nowrap; }
.prio { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; }
.prio-dot { width: 7px; height: 7px; border-radius: 50%; }
.prio.high .prio-dot { background: #DC2626; } .prio.high { color: #B91C1C; }
.prio.med .prio-dot { background: #E8A93B; } .prio.med { color: #92400E; }
.prio.low .prio-dot { background: var(--ink-4); } .prio.low { color: var(--ink-3); }
.roi-bar { display: inline-block; width: 54px; height: 5px; border-radius: 999px; background: var(--bg-tint); position: relative; vertical-align: middle; margin-left: 8px; }
.roi-bar > span { position: absolute; left: 0; top: 0; height: 100%; border-radius: 999px; background: var(--green-600); }

/* mini stat tiles inside cards */
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-tile { background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: 8px; padding: 12px 14px; }
.stat-tile-label { font-size: 10.5px; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-bottom: 5px; }
.stat-tile-value { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-tile-value small { font-size: 11px; color: var(--ink-3); font-weight: 500; }

/* ============================================================
   EXTENSION — Tokens data-viz (dashboard analytique « Audit 360° »)
   Aligne la palette catégorielle / notes RSE sur le système Platform
   (vert/lime + accents froids). Consommé par js/audit_result.js.
   ============================================================ */
:root {
  /* Typo (alias pour le JS du dashboard) */
  --font-ui: 'Inter', system-ui, sans-serif;
  --font-data: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Notes RSE A→E : vert performant → ambre → rouge critique */
  --note-a: #2D6A4F;  --note-a-bg: #D8F0E4;
  --note-b: #4E9A52;  --note-b-bg: #E4F3DC;
  --note-c: #B7861A;  --note-c-bg: #FBEFC9;
  --note-d: #C2611C;  --note-d-bg: #FBE2CE;
  --note-e: #B91C1C;  --note-e-bg: #FBD9D9;
  --note-nd: #8AA17F; --note-nd-bg: #EEF2EC;

  /* Palette catégorielle (séries : postes, fluides, scopes) — 8 teintes
     distinctes, ancrées vert/lime, jamais vert-sur-vert adjacent */
  --cat-1: #1A3A2A;  /* vert profond  */
  --cat-2: #2D6A4F;  /* vert forêt    */
  --cat-3: #7ECF2E;  /* lime          */
  --cat-4: #2A7D77;  /* sarcelle/eau  */
  --cat-5: #4F6F86;  /* ardoise-mer   */
  --cat-6: #B7861A;  /* ambre         */
  --cat-7: #C2611C;  /* cuivre        */
  --cat-8: #8AA17F;  /* sauge grise   */

  /* Sémantique financière */
  --fin-capex: #C2611C;
  --fin-aide:  var(--green-700);
  --fin-eco:   var(--green-600);
  --fin-net:   var(--green-900);

  /* Profondeur additionnelle */
  --shadow-lg: 0 18px 44px rgba(13,26,10,0.16);
}
