/* ═════════════════════════════════════════════════════════════════
   applications_metier.css — composants visuels uniques à la page
   /applications-metier/ — thème : DASHBOARD SaaS PREMIUM
   ─────────────────────────────────────────────────────────────────
   Sensation : Linear / Notion / Stripe Dashboard / Vercel / Cron.
   Sobre, dense, riche en data. Marine #13234f dominant, cream pour
   surfaces, sauge sur les "success", bordeaux sur les "alert".
═════════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────────
   0 · TOKENS LOCAUX (custom-properties scopées)
───────────────────────────────────────────────────────────────── */
:root {
  --app-surface: #ffffff;
  --app-surface-2: #f8f5ed;
  --app-surface-3: #efeadb;
  --app-ink: #0c0f1a;
  --app-ink-2: #2c3142;
  --app-muted: #6b6557;
  --app-border: rgba(12, 15, 26, 0.08);
  --app-border-strong: rgba(12, 15, 26, 0.16);
  --app-marine: #13234f;
  --app-marine-2: #0b1838;
  --app-bordeaux: #5a1224;
  --app-sauge: #6b8169;
  --app-coral: #e2a8a0;
  --app-shadow-1: 0 1px 0 rgba(12, 15, 26, 0.04), 0 4px 16px -8px rgba(12, 15, 26, 0.08);
  --app-shadow-2: 0 1px 0 rgba(12, 15, 26, 0.05), 0 10px 30px -14px rgba(12, 15, 26, 0.18);
  --app-radius-card: 12px;
  --app-radius-sm: 8px;
}


/* ─────────────────────────────────────────────────────────────────
   1 · APP-SHELL — wrapper full dashboard (sidebar + main)
───────────────────────────────────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 0;
  background: var(--app-surface);
  border: 1px solid var(--app-border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px -36px rgba(12, 15, 26, 0.28),
              0 4px 12px -6px rgba(12, 15, 26, 0.08);
  min-height: 580px;
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-shell .app-sidebar { display: none; }
}


/* ─────────────────────────────────────────────────────────────────
   2 · APP-SIDEBAR — colonne navigation gauche
───────────────────────────────────────────────────────────────── */
.app-sidebar {
  background: var(--app-marine);
  color: rgba(245, 236, 217, 0.92);
  padding: 18px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid rgba(245, 236, 217, 0.06);
  position: relative;
}
.app-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 14px;
  border-bottom: 1px solid rgba(245, 236, 217, 0.08);
}
.app-sidebar-brand-glyph {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--app-bordeaux), var(--app-coral));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 15px;
  color: #fdf6e3;
  font-weight: 600;
  flex: none;
}
.app-sidebar-brand-name {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 0.98rem;
  color: #fdf6e3;
  letter-spacing: -0.01em;
}
.app-sidebar-brand-meta {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-style: normal;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.5);
  margin-top: 2px;
}

.app-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-sidebar-section-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.4);
  padding: 8px 10px 4px;
}

.app-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  color: rgba(245, 236, 217, 0.78);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.app-sidebar-item:hover {
  background: rgba(245, 236, 217, 0.06);
  color: #fdf6e3;
}
.app-sidebar-item i {
  font-size: 0.92rem;
  color: rgba(245, 236, 217, 0.55);
  width: 14px;
  text-align: center;
  flex: none;
}
.app-sidebar-item.is-active {
  background: rgba(226, 168, 160, 0.14);
  color: #fdf6e3;
}
.app-sidebar-item.is-active i { color: var(--app-coral); }
.app-sidebar-item .app-sidebar-counter {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  background: rgba(245, 236, 217, 0.08);
  color: rgba(245, 236, 217, 0.72);
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: 0;
}
.app-sidebar-item.is-active .app-sidebar-counter {
  background: var(--app-bordeaux);
  color: #fdf6e3;
}

.app-sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(245, 236, 217, 0.08);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dark-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(245, 236, 217, 0.05);
  border: 1px solid rgba(245, 236, 217, 0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.65);
  cursor: pointer;
  justify-content: space-between;
}
.dark-mode-toggle i { font-size: 0.85rem; color: var(--app-coral); }


/* ─────────────────────────────────────────────────────────────────
   3 · APP-TOPBAR + COMMAND-K
───────────────────────────────────────────────────────────────── */
.app-main {
  display: flex;
  flex-direction: column;
  background: var(--app-surface);
}
.app-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--app-border);
  background: var(--app-surface);
  position: relative;
}
.breadcrumb-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  color: var(--app-muted);
  flex: none;
}
.breadcrumb-app strong {
  color: var(--app-ink);
  font-weight: 600;
}
.breadcrumb-app .sep { color: rgba(12, 15, 26, 0.25); }

.cmd-k {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 460px;
  padding: 7px 10px 7px 12px;
  background: var(--app-surface-2);
  border: 1px solid var(--app-border-strong);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cmd-k:hover {
  border-color: var(--app-marine);
  background: #fff;
}
.cmd-k i {
  color: var(--app-muted);
  font-size: 0.82rem;
}
.cmd-k-placeholder {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: var(--app-muted);
  flex: 1;
  font-style: italic;
}
.cmd-k-shortcut {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  padding: 2px 7px;
  background: #fff;
  border: 1px solid var(--app-border-strong);
  border-radius: 5px;
  color: var(--app-ink);
  letter-spacing: 0.04em;
  box-shadow: 0 1px 0 var(--app-border);
}

.app-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.app-icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: transparent;
  color: var(--app-ink-2);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.app-icon-btn:hover {
  background: var(--app-surface-2);
  border-color: var(--app-border);
  color: var(--app-marine);
}
.app-icon-btn .notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  background: var(--app-bordeaux);
  color: #fdf6e3;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
  animation: bell-pulse 2.4s ease-in-out infinite;
}
@keyframes bell-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}
@media (prefers-reduced-motion: reduce) {
  .app-icon-btn .notif-dot { animation: none; }
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--app-border);
  background: var(--app-surface-2);
  cursor: pointer;
  transition: border-color 0.18s ease;
}
.user-avatar:hover { border-color: var(--app-marine); }
.user-avatar-circle {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--app-marine);
  color: #fdf6e3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 0.85rem;
  font-weight: 500;
}
.user-avatar-status {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--app-sauge);
  border: 1.5px solid #fff;
}
.user-avatar-meta {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.user-avatar-name {
  font-family: "Inter", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--app-ink);
}
.user-avatar-role {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-muted);
}


/* ─────────────────────────────────────────────────────────────────
   4 · APP-BODY — zone de contenu principal du dashboard
───────────────────────────────────────────────────────────────── */
.app-body {
  padding: 22px 22px 26px;
  background: var(--app-surface-2);
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.app-body-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.app-body-title {
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  color: var(--app-ink);
  letter-spacing: -0.015em;
  font-weight: 500;
}
.app-body-title em { color: var(--app-bordeaux); font-style: italic; }
.app-body-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--app-muted);
}


/* ─────────────────────────────────────────────────────────────────
   5 · SEGMENTED CONTROL + TABS HORIZONTAL
───────────────────────────────────────────────────────────────── */
.segmented-control {
  display: inline-flex;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--app-border-strong);
  border-radius: 8px;
  gap: 2px;
}
.segmented-control button {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 11px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--app-muted);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.segmented-control button:hover { color: var(--app-ink); }
.segmented-control button.is-active {
  background: var(--app-marine);
  color: #fdf6e3;
  box-shadow: 0 1px 2px rgba(12, 15, 26, 0.18);
}

.tabs-horizontal {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--app-border);
  margin-bottom: 14px;
}
.tabs-horizontal button {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  padding: 9px 14px;
  background: transparent;
  border: none;
  color: var(--app-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.18s ease, border-color 0.18s ease;
  font-weight: 500;
}
.tabs-horizontal button:hover { color: var(--app-ink); }
.tabs-horizontal button.is-active {
  color: var(--app-marine);
  border-bottom-color: var(--app-marine);
  font-weight: 600;
}


/* ─────────────────────────────────────────────────────────────────
   6 · KPI CARDS — valeur + delta + sparkline
───────────────────────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 720px) {
  .kpi-grid { grid-template-columns: 1fr; }
}
.kpi-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-card);
  padding: 14px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.kpi-card:hover {
  border-color: var(--app-border-strong);
  transform: translateY(-1px);
  box-shadow: var(--app-shadow-1);
}
.kpi-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kpi-card-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--app-muted);
}
.kpi-card-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--app-surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--app-marine);
  font-size: 0.78rem;
}
.kpi-card-value {
  font-family: "Fraunces", serif;
  font-size: 1.95rem;
  font-weight: 500;
  color: var(--app-ink);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}
.kpi-card-value em {
  font-style: italic;
  font-family: "Fraunces", serif;
  font-size: 0.95rem;
  color: var(--app-muted);
  margin-left: 4px;
  font-weight: 400;
}
.kpi-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}
.kpi-card-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.kpi-card-delta.is-up { color: var(--app-sauge); }
.kpi-card-delta.is-down { color: var(--app-bordeaux); }
.kpi-card-delta.is-flat { color: var(--app-muted); }

.sparkline {
  height: 28px;
  width: 88px;
}
.sparkline-fill { fill: rgba(19, 35, 79, 0.12); }
.sparkline-line { fill: none; stroke: var(--app-marine); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sparkline.is-up .sparkline-fill { fill: rgba(107, 129, 105, 0.18); }
.sparkline.is-up .sparkline-line { stroke: var(--app-sauge); }
.sparkline.is-down .sparkline-fill { fill: rgba(90, 18, 36, 0.12); }
.sparkline.is-down .sparkline-line { stroke: var(--app-bordeaux); }


/* ─────────────────────────────────────────────────────────────────
   7 · CHART CARD + SVG line chart (12 mois)
───────────────────────────────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1.1fr;
  gap: 12px;
}
@media (max-width: 1000px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

.chart-card {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-card);
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chart-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.chart-card-title {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--app-ink);
}
.chart-card-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-muted);
  margin-top: 2px;
}

.svg-chart {
  width: 100%;
  height: 200px;
  display: block;
}
.svg-chart .grid-line { stroke: rgba(12, 15, 26, 0.06); stroke-width: 1; stroke-dasharray: 3 4; }
.svg-chart .axis-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  fill: var(--app-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.svg-chart .area-fill { fill: url(#chart-gradient); }
.svg-chart .area-line { fill: none; stroke: var(--app-marine); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svg-chart .area-point { fill: #fff; stroke: var(--app-marine); stroke-width: 1.8; }
.svg-chart .area-point-hi { fill: var(--app-bordeaux); stroke: #fff; stroke-width: 2; r: 4; }


/* ─────────────────────────────────────────────────────────────────
   8 · DATA TABLE — table SaaS (lignes alternées, hover, sort)
───────────────────────────────────────────────────────────────── */
.data-table-wrap {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-card);
  overflow: hidden;
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
}
.data-table thead th {
  background: var(--app-surface-2);
  padding: 9px 14px;
  text-align: left;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--app-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--app-border);
  white-space: nowrap;
}
.data-table thead th .sort-arrow {
  margin-left: 4px;
  color: rgba(12, 15, 26, 0.3);
  font-size: 0.65rem;
}
.data-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--app-border);
  color: var(--app-ink-2);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--app-surface-2); }
.data-table td.is-mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--app-muted);
}
.data-table td.is-emph {
  font-weight: 600;
  color: var(--app-ink);
}
.data-table td.is-right { text-align: right; }


/* ─────────────────────────────────────────────────────────────────
   9 · STATUS BADGE — pill colorée
───────────────────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px 2px 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  border-radius: 999px;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}
.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  display: inline-block;
}
.status-badge.is-success { color: var(--app-sauge); background: rgba(107, 129, 105, 0.1); border-color: rgba(107, 129, 105, 0.25); }
.status-badge.is-pending { color: #b78a1f; background: rgba(183, 138, 31, 0.1); border-color: rgba(183, 138, 31, 0.25); }
.status-badge.is-danger { color: var(--app-bordeaux); background: rgba(90, 18, 36, 0.08); border-color: rgba(90, 18, 36, 0.22); }
.status-badge.is-info { color: var(--app-marine); background: rgba(19, 35, 79, 0.08); border-color: rgba(19, 35, 79, 0.22); }
.status-badge.is-neutral { color: var(--app-muted); background: rgba(12, 15, 26, 0.05); border-color: rgba(12, 15, 26, 0.12); }


/* ─────────────────────────────────────────────────────────────────
   10 · KANBAN — 3 colonnes + cards
───────────────────────────────────────────────────────────────── */
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--app-surface-3);
  padding: 10px;
  border-radius: var(--app-radius-card);
}
@media (max-width: 720px) {
  .kanban { grid-template-columns: 1fr; }
}
.kanban-col {
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--app-radius-sm);
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 140px;
}
.kanban-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 6px;
  border-bottom: 1px dashed var(--app-border-strong);
}
.kanban-col-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--app-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.kanban-col-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--app-muted);
}
.kanban-col.is-todo .kanban-col-title::before { background: rgba(12, 15, 26, 0.25); }
.kanban-col.is-doing .kanban-col-title::before { background: #b78a1f; }
.kanban-col.is-done .kanban-col-title::before { background: var(--app-sauge); }
.kanban-col-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  color: var(--app-muted);
  background: var(--app-surface-2);
  padding: 1px 6px;
  border-radius: 4px;
}

.kanban-card {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 7px;
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: grab;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.kanban-card:hover {
  border-color: var(--app-marine);
  transform: translateY(-1px);
  box-shadow: var(--app-shadow-1);
}
.kanban-card-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-bordeaux);
  font-weight: 600;
}
.kanban-card-title {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  color: var(--app-ink);
  font-weight: 500;
  line-height: 1.3;
}
.kanban-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  color: var(--app-muted);
}
.kanban-card-meta .kanban-card-priority {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--app-bordeaux);
}
.kanban-card-meta .kanban-card-priority.is-low { background: var(--app-sauge); }
.kanban-card-meta .kanban-card-priority.is-med { background: #b78a1f; }


/* ─────────────────────────────────────────────────────────────────
   11 · AUDIT WARNINGS PANEL — "anti-patterns / outils actuels"
───────────────────────────────────────────────────────────────── */
.audit-panel {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-card);
  overflow: hidden;
}
.audit-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--app-border);
  background: var(--app-surface-2);
}
.audit-panel-head-title {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--app-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.audit-panel-head-title i { color: var(--app-bordeaux); font-size: 0.95rem; }
.audit-panel-head-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--app-muted);
  text-transform: uppercase;
}
.audit-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--app-border);
  transition: background 0.18s ease;
}
.audit-row:last-child { border-bottom: none; }
.audit-row:hover { background: var(--app-surface-2); }
.audit-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(90, 18, 36, 0.08);
  color: var(--app-bordeaux);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex: none;
}
.audit-row.is-warn .audit-row-icon { background: rgba(183, 138, 31, 0.12); color: #b78a1f; }
.audit-row-title {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--app-ink);
  margin-bottom: 1px;
}
.audit-row-title em { color: var(--app-bordeaux); font-style: italic; font-family: "Fraunces", serif; font-weight: 500; }
.audit-row-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  color: var(--app-ink-2);
  line-height: 1.45;
  max-width: 60ch;
}
.audit-row-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-muted);
  text-align: right;
  white-space: nowrap;
}


/* ─────────────────────────────────────────────────────────────────
   12 · FEATURE CARDS — grille principes / modules
───────────────────────────────────────────────────────────────── */
.app-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-card);
  padding: 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover {
  border-color: var(--app-marine);
  transform: translateY(-2px);
  box-shadow: var(--app-shadow-2);
}
.feature-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--app-marine), var(--app-marine-2));
  color: #fdf6e3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.feature-card.is-accent .feature-card-icon { background: linear-gradient(135deg, var(--app-sauge), #4d5e4b); }
.feature-card.is-bordeaux .feature-card-icon { background: linear-gradient(135deg, var(--app-bordeaux), #3a0a17); }
.feature-card-num {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(12, 15, 26, 0.25);
}
.feature-card-title {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--app-ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.feature-card-title em { color: var(--app-bordeaux); font-style: italic; }
.feature-card-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--app-ink-2);
  line-height: 1.55;
}
.feature-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feature-card-list li {
  display: flex;
  gap: 7px;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  color: var(--app-ink-2);
}
.feature-card-list li::before {
  content: "✓";
  color: var(--app-sauge);
  font-weight: 600;
  flex: none;
}
.feature-card-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-muted);
}


/* ─────────────────────────────────────────────────────────────────
   13 · TYPOLOGIES — personas cards
───────────────────────────────────────────────────────────────── */
.persona-card {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-card);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}
.persona-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -30% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(19, 35, 79, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.persona-card:hover {
  border-color: var(--app-marine);
  transform: translateY(-3px);
  box-shadow: var(--app-shadow-2);
}
.persona-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.persona-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--app-marine), var(--app-marine-2));
  color: #fdf6e3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  flex: none;
}
.persona-name {
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--app-ink);
}
.persona-role {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-muted);
  margin-top: 1px;
}
.persona-card-body {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  color: var(--app-ink-2);
  line-height: 1.55;
  position: relative;
}
.persona-card-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  position: relative;
}
.persona-module {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(19, 35, 79, 0.07);
  border: 1px solid rgba(19, 35, 79, 0.15);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  color: var(--app-marine);
  letter-spacing: 0.04em;
}


/* ─────────────────────────────────────────────────────────────────
   14 · DEPLOYMENT PIPELINE — méthode 6 étapes style Vercel/Linear
───────────────────────────────────────────────────────────────── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--app-border-strong);
  border-radius: var(--app-radius-card);
  background: #fff;
  overflow: hidden;
  position: relative;
}
@media (max-width: 1000px) {
  .pipeline { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .pipeline { grid-template-columns: repeat(2, 1fr); }
}
.pipeline-stage {
  position: relative;
  padding: 16px 16px 18px;
  border-right: 1px solid var(--app-border);
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: linear-gradient(180deg, #fff 0%, var(--app-surface-2) 100%);
}
.pipeline-stage:last-child { border-right: none; }
.pipeline-stage::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 13px;
  height: 13px;
  background: #fff;
  border-top: 1px solid var(--app-border);
  border-right: 1px solid var(--app-border);
  transform: translateY(-50%) rotate(45deg);
  z-index: 1;
}
.pipeline-stage:last-child::after { display: none; }
.pipeline-stage.is-done {
  background: linear-gradient(180deg, rgba(107, 129, 105, 0.08) 0%, rgba(107, 129, 105, 0.02) 100%);
}
.pipeline-stage.is-current {
  background: linear-gradient(180deg, rgba(19, 35, 79, 0.06) 0%, rgba(19, 35, 79, 0.01) 100%);
}
.pipeline-stage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--app-surface-2);
  border: 1px solid var(--app-border-strong);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--app-muted);
  font-weight: 600;
}
.pipeline-stage.is-done .pipeline-stage-num {
  background: var(--app-sauge);
  color: #fdf6e3;
  border-color: var(--app-sauge);
}
.pipeline-stage.is-current .pipeline-stage-num {
  background: var(--app-marine);
  color: #fdf6e3;
  border-color: var(--app-marine);
}
.pipeline-stage-title {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--app-ink);
  letter-spacing: -0.005em;
}
.pipeline-stage-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.74rem;
  color: var(--app-ink-2);
  line-height: 1.5;
}
.pipeline-stage-meta {
  margin-top: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-muted);
  padding-top: 8px;
  border-top: 1px dashed var(--app-border);
}


/* ─────────────────────────────────────────────────────────────────
   15 · SPEC-SHEET STACK — 4 briques tech
───────────────────────────────────────────────────────────────── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .stack-grid { grid-template-columns: 1fr; }
}
.stack-card {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-card);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.stack-card:hover {
  border-color: var(--app-marine);
  box-shadow: var(--app-shadow-1);
}
.stack-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.stack-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--app-surface-2);
  border: 1px solid var(--app-border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--app-marine);
}
.stack-card-name {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--app-ink);
}
.stack-card-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-muted);
  margin-top: 1px;
}
.stack-card-version {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  padding: 2px 6px;
  background: rgba(107, 129, 105, 0.1);
  color: var(--app-sauge);
  border-radius: 4px;
  border: 1px solid rgba(107, 129, 105, 0.2);
}
.stack-card-body {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  color: var(--app-ink-2);
  line-height: 1.5;
}
.stack-card-specs {
  list-style: none;
  padding: 8px 0 0;
  margin: 4px 0 0;
  border-top: 1px dashed var(--app-border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stack-card-specs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
}
.stack-card-specs li span:first-child { color: var(--app-muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.58rem; }
.stack-card-specs li span:last-child { color: var(--app-ink); font-weight: 500; }


/* ─────────────────────────────────────────────────────────────────
   16 · CUSTOMER STORIES — case studies Stripe-style
───────────────────────────────────────────────────────────────── */
.story-card {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-card);
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.story-card:hover {
  border-color: var(--app-marine);
  transform: translateY(-3px);
  box-shadow: var(--app-shadow-2);
}
.story-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--app-marine), var(--app-marine-2));
  color: #fdf6e3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 500;
}
.story-card.is-bordeaux .story-logo { background: linear-gradient(135deg, var(--app-bordeaux), #3a0a17); }
.story-card.is-accent .story-logo { background: linear-gradient(135deg, var(--app-sauge), #4d5e4b); }
.story-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.story-card-name {
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--app-ink);
}
.story-card-domain {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-muted);
  margin-top: 2px;
}
.story-quote {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--app-ink);
  line-height: 1.45;
  border-left: 3px solid var(--app-coral);
  padding-left: 14px;
}
.story-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--app-border);
  border-bottom: 1px solid var(--app-border);
}
.story-kpi-value {
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  color: var(--app-bordeaux);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-style: italic;
}
.story-kpi-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-muted);
  margin-top: 4px;
}
.story-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.story-card-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-marine);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.story-card-link:hover { color: var(--app-bordeaux); }


/* ─────────────────────────────────────────────────────────────────
   17 · OBSERVABILITY DASHBOARD — section perf technique
───────────────────────────────────────────────────────────────── */
.api-status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(107, 129, 105, 0.08);
  border: 1px solid rgba(107, 129, 105, 0.25);
  border-radius: var(--app-radius-card);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--app-sauge);
  letter-spacing: 0.04em;
}
.api-status-bar .live-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--app-sauge);
  box-shadow: 0 0 0 0 rgba(107, 129, 105, 0.6);
  animation: live-pulse-dot 1.8s ease-out infinite;
}
@keyframes live-pulse-dot {
  0%   { box-shadow: 0 0 0 0   rgba(107, 129, 105, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(107, 129, 105, 0);    }
  100% { box-shadow: 0 0 0 0   rgba(107, 129, 105, 0);    }
}
@media (prefers-reduced-motion: reduce) {
  .api-status-bar .live-pulse-dot { animation: none; }
}
.api-status-bar strong { color: var(--app-ink); font-weight: 600; }
.api-status-bar .sep { color: rgba(12, 15, 26, 0.2); }

.obs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 900px) { .obs-grid { grid-template-columns: repeat(2, 1fr); } }
.obs-tile {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-card);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.obs-tile-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--app-muted);
}
.obs-tile-value {
  font-family: "Fraunces", serif;
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--app-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.obs-tile-value em {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--app-muted);
  margin-left: 3px;
  font-weight: 400;
}
.obs-tile-bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--app-surface-3);
  overflow: hidden;
  margin-top: 4px;
}
.obs-tile-bar-fill {
  height: 100%;
  background: var(--app-sauge);
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 999px;
}
.obs-tile-bar-fill.is-bordeaux { background: var(--app-bordeaux); }
.obs-tile-bar-fill.is-marine { background: var(--app-marine); }


/* ─────────────────────────────────────────────────────────────────
   18 · PROGRESS RING — anneau circulaire SVG
───────────────────────────────────────────────────────────────── */
.progress-ring {
  position: relative;
  width: 56px;
  height: 56px;
  display: inline-block;
  flex: none;
}
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring-track {
  fill: none;
  stroke: var(--app-surface-3);
  stroke-width: 4;
}
.progress-ring-fill {
  fill: none;
  stroke: var(--app-sauge);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-ring-label {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--app-ink);
  letter-spacing: 0.02em;
}


/* ─────────────────────────────────────────────────────────────────
   19 · TOGGLE SWITCH (iOS-style)
───────────────────────────────────────────────────────────────── */
.toggle-switch {
  position: relative;
  width: 34px;
  height: 20px;
  background: rgba(12, 15, 26, 0.18);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.22s ease;
  flex: none;
  border: none;
  padding: 0;
}
.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(12, 15, 26, 0.3);
  transition: transform 0.22s ease;
}
.toggle-switch.is-on { background: var(--app-sauge); }
.toggle-switch.is-on::after { transform: translateX(14px); }


/* ─────────────────────────────────────────────────────────────────
   20 · APP-NOTIFICATION (live toast en bas-droite)
───────────────────────────────────────────────────────────────── */
.app-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
  max-width: 340px;
  background: #fff;
  border: 1px solid var(--app-border-strong);
  border-left: 3px solid var(--app-sauge);
  border-radius: var(--app-radius-card);
  padding: 12px 14px 12px 14px;
  box-shadow: 0 18px 44px -16px rgba(12, 15, 26, 0.3);
  display: flex;
  align-items: flex-start;
  gap: 11px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.app-notification.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.app-notification-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(107, 129, 105, 0.12);
  color: var(--app-sauge);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex: none;
}
.app-notification-body {
  flex: 1;
  min-width: 0;
}
.app-notification-title {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--app-ink);
  margin-bottom: 1px;
  line-height: 1.3;
}
.app-notification-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  color: var(--app-muted);
  letter-spacing: 0.04em;
}
.app-notification-meta strong { color: var(--app-sauge); }
.app-notification-close {
  background: transparent;
  border: none;
  color: var(--app-muted);
  cursor: pointer;
  padding: 2px;
  font-size: 0.75rem;
  align-self: flex-start;
}
.app-notification-close:hover { color: var(--app-ink); }


/* ─────────────────────────────────────────────────────────────────
   21 · DONUT CHART / SVG inline
───────────────────────────────────────────────────────────────── */
.donut-chart { display: block; width: 100%; max-width: 200px; }
.donut-track { fill: none; stroke: var(--app-surface-3); stroke-width: 16; }
.donut-segment {
  fill: none;
  stroke-width: 16;
  stroke-linecap: butt;
  transition: stroke-dashoffset 1s ease-out;
}
.donut-segment.s-1 { stroke: var(--app-marine); }
.donut-segment.s-2 { stroke: var(--app-sauge); }
.donut-segment.s-3 { stroke: var(--app-bordeaux); }
.donut-segment.s-4 { stroke: var(--app-coral); }


/* ─────────────────────────────────────────────────────────────────
   22 · EMPTY STATE + SKELETON
───────────────────────────────────────────────────────────────── */
.empty-state {
  padding: 24px 18px;
  text-align: center;
  color: var(--app-muted);
}
.empty-state i { font-size: 1.6rem; color: rgba(12, 15, 26, 0.2); margin-bottom: 8px; display: block; }

.skeleton-loader {
  background: linear-gradient(90deg, var(--app-surface-2) 0%, #fff 50%, var(--app-surface-2) 100%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-loader { animation: none; }
}


/* ─────────────────────────────────────────────────────────────────
   23 · CHIP / FILTER PILLS (sobre, version SaaS)
───────────────────────────────────────────────────────────────── */
.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 10px;
  border-radius: 999px;
  background: var(--app-surface-2);
  border: 1px solid var(--app-border-strong);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--app-ink-2);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.app-chip:hover {
  border-color: var(--app-marine);
  color: var(--app-marine);
}
.app-chip.is-active {
  background: var(--app-marine);
  color: #fdf6e3;
  border-color: var(--app-marine);
}


/* ─────────────────────────────────────────────────────────────────
   24 · WELCOME / CTA FINAL — onboarding card
───────────────────────────────────────────────────────────────── */
.welcome-card {
  background: linear-gradient(160deg, var(--app-marine) 0%, var(--app-marine-2) 100%);
  color: #fdf6e3;
  border-radius: 16px;
  padding: 28px 28px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px -36px rgba(12, 15, 26, 0.5);
}
.welcome-card::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 168, 160, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.welcome-card::after {
  content: "C";
  position: absolute;
  bottom: -110px;
  right: -50px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 360px;
  color: rgba(245, 236, 217, 0.04);
  line-height: 1;
  pointer-events: none;
}
.welcome-card > * { position: relative; z-index: 1; }

.welcome-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--app-coral);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.welcome-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--app-coral);
}
.welcome-title {
  font-family: "Fraunces", serif;
  font-size: 1.85rem;
  font-weight: 500;
  color: #fdf6e3;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.welcome-title em { color: var(--app-coral); font-style: italic; }
.welcome-sub {
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  color: rgba(245, 236, 217, 0.78);
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 38ch;
}
.welcome-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--app-bordeaux);
  color: #fdf6e3;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px -12px rgba(90, 18, 36, 0.6);
}
.welcome-cta:hover {
  background: #3a0a17;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -14px rgba(90, 18, 36, 0.8);
}
.welcome-cta-meta {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.55);
  margin-top: 14px;
}


/* ─────────────────────────────────────────────────────────────────
   25 · ONBOARDING CHECKLIST (cta finale, colonne gauche)
───────────────────────────────────────────────────────────────── */
.onboarding-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.onboarding-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-card);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.onboarding-checklist li:hover {
  border-color: var(--app-marine);
  background: #fff;
}
.onboarding-checklist .check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--app-sauge);
  color: #fdf6e3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex: none;
}
.onboarding-checklist .body {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--app-ink);
  font-weight: 500;
}
.onboarding-checklist .body small {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  color: var(--app-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}


/* ─────────────────────────────────────────────────────────────────
   26 · SUPPORT CHAT BUBBLE (section 12)
───────────────────────────────────────────────────────────────── */
.support-shell {
  background: #fff;
  border: 1px solid var(--app-border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--app-shadow-2);
}
.support-head {
  background: var(--app-marine);
  color: #fdf6e3;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.support-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--app-bordeaux);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  color: #fdf6e3;
  font-size: 1rem;
  position: relative;
}
.support-avatar-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--app-sauge);
  border-radius: 999px;
  border: 2px solid var(--app-marine);
}
.support-name {
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
}
.support-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  color: rgba(245, 236, 217, 0.65);
  letter-spacing: 0.08em;
  margin-top: 1px;
}
.support-tag {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  padding: 3px 8px;
  background: rgba(245, 236, 217, 0.1);
  border-radius: 999px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-coral);
}
.support-body {
  padding: 18px;
  background: var(--app-surface-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
}
.chat-bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 14px;
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  line-height: 1.4;
}
.chat-bubble.is-them {
  background: #fff;
  border: 1px solid var(--app-border);
  color: var(--app-ink);
  border-top-left-radius: 4px;
  align-self: flex-start;
}
.chat-bubble.is-me {
  background: var(--app-bordeaux);
  color: #fdf6e3;
  border-top-right-radius: 4px;
  align-self: flex-end;
}
.chat-bubble small {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  color: rgba(12, 15, 26, 0.5);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.chat-bubble.is-me small { color: rgba(245, 236, 217, 0.65); }
.chat-typing {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--app-border);
  border-top-left-radius: 4px;
  border-radius: 14px;
  padding: 10px 14px;
  display: inline-flex;
  gap: 4px;
}
.chat-typing span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--app-muted);
  animation: typing-dot 1.4s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-typing span { animation: none; }
}
.support-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--app-border);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.support-foot input {
  flex: 1;
  border: none;
  background: var(--app-surface-2);
  border-radius: 999px;
  padding: 9px 14px;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  color: var(--app-ink);
  pointer-events: none;
  font-style: italic;
}
.support-foot input::placeholder { color: var(--app-muted); }
.support-foot button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--app-marine);
  color: #fdf6e3;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.support-foot button:hover { background: var(--app-bordeaux); }


/* ─────────────────────────────────────────────────────────────────
   27 · MISC — eyebrow chapter num, scroll reveal,
   bg sobre, dotted bg, sticky reveal-on-scroll
───────────────────────────────────────────────────────────────── */
.bg-app-dotted {
  background-color: var(--app-surface-2);
  background-image: radial-gradient(circle at 1px 1px, rgba(12, 15, 26, 0.06) 1px, transparent 0);
  background-size: 18px 18px;
}

.reveal-app {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-app.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-app { opacity: 1; transform: none; }
}

.chapter-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--app-muted);
  margin-bottom: 14px;
}
.chapter-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--app-bordeaux);
}
.chapter-eyebrow strong {
  color: var(--app-bordeaux);
  font-weight: 600;
}


/* ─────────────────────────────────────────────────────────────────
   28 · ACTIVITY FEED (timeline d'activités)
───────────────────────────────────────────────────────────────── */
.activity-feed {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.activity-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}
.activity-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 32px;
  bottom: -4px;
  width: 1px;
  background: var(--app-border-strong);
}
.activity-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--app-surface-2);
  border: 1.5px solid var(--app-border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--app-marine);
  font-size: 0.7rem;
  flex: none;
  z-index: 1;
}
.activity-item.is-success .activity-dot {
  background: rgba(107, 129, 105, 0.12);
  border-color: var(--app-sauge);
  color: var(--app-sauge);
}
.activity-content {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--app-ink);
  line-height: 1.45;
}
.activity-content strong { font-weight: 600; }
.activity-time {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  color: var(--app-muted);
  letter-spacing: 0.06em;
  margin-top: 2px;
}
