/* Tableau de bord client Naciri AI — System 1 (live naciri.ai design system).
   Source of truth: assets/naciri-brand-2026/tokens/tokens.css → docs/BRAND-GUIDELINES.md,
   extracted from live naciri.ai. Restyled 2026-07-22 FROM the retired brand-lock v1
   (Geist/Inter, #0C111B / #F4F1EA, slate-blue) TO the locked System 1 (Arial, Paper
   #f2efe8 / Ink #25231f, one blue #1f47d6, thin editorial headings, warm shadows).
   One design system across the website and this portal — zero drift. No web fonts. */

:root {
  /* System 1 palette — dashboard token NAMES kept, values remapped to the live site */
  --paper: #f2efe8;
  --paper-card: #fbfaf6;
  --limestone: #e5ded1;      /* warm light on ink surfaces (matches site footer mark) */
  --warm-stone: #a49f95;     /* muted warm on dark */
  --ink: #25231f;
  --graphite: #3a372f;       /* ink-soft */
  --slate: #57534b;          /* grey (secondary text) */
  --link: #1f47d6;           /* THE one accent blue */
  --link-deep: #173aad;
  --muted: #6f6b62;
  --hairline: rgba(37, 35, 31, 0.18);
  --hairline-soft: rgba(37, 35, 31, 0.10);
  --success: #1f7a45;        /* GO */
  --warning: #b06a12;        /* SLOW */
  --error: #a1361f;          /* STOP */
  --wash: rgba(31, 71, 214, 0.08);
  --error-wash: rgba(161, 54, 31, 0.08);

  /* Type — Arial only (no web fonts), mono stack for data/labels */
  --font-display: Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --font-body: Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --r: 12px;
  --r-sm: 8px;
  --r-pill: 999px;
  /* warm brown-based shadows — never neutral-grey, never hard offset */
  --shadow-overlay: 0 8px 24px rgba(74, 60, 40, 0.12), 0 2px 6px rgba(74, 60, 40, 0.06);
  --shadow-warm: 0 1px 2px rgba(56, 48, 32, 0.05), 0 8px 28px rgba(56, 48, 32, 0.08);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
  font-family: var(--font-body);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
h1 { font-weight: 350; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 12px 18px; background: var(--ink); color: var(--limestone); border-radius: var(--r);
  font-family: var(--font-display); font-weight: 500;
  transform: translateY(-160%); transition: transform 160ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.card {
  border: 1px solid var(--hairline); background: var(--paper-card); border-radius: var(--r);
  padding: 20px 22px;
}
.kicker { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; color: var(--slate); margin: 0 0 6px; }
.muted { color: var(--muted); font-size: 13px; }
.micronote { font-size: 12px; color: var(--muted); }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid transparent; border-radius: var(--r);
  background: var(--ink); color: var(--limestone);
  font-family: var(--font-display); font-weight: 500; padding: 10px 18px; cursor: pointer; text-decoration: none; text-align: center;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms var(--ease);
}
.button:hover { background: var(--graphite); transform: translateY(-1px); text-decoration: none; }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.button.ghost:hover { border-color: var(--ink); background: rgba(37, 35, 31, 0.04); }
.button.small { min-height: 44px; padding: 0 16px; font-size: 13px; }
.button.danger { color: var(--error); background: transparent; border-color: var(--error); }
.button.danger:hover { background: var(--error); color: #fff; }

/* Bandeau démo non retirable */
[data-demo-banner] {
  background: var(--error-wash); color: var(--error); font-weight: 500; letter-spacing: 0.02em; border-bottom: 1px solid var(--error);
  padding: 10px 16px; text-align: center; position: relative; z-index: 5;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; }
.brand .mark { display: grid; place-items: center; } .brand .mark svg { display: block; }
.brand--login { margin-bottom: 14px; font-size: 18px; }

/* ------------------------------------------------------------- connexion */
.login-view { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px; }
.login-card { width: 100%; max-width: 460px; }
.login-card h1 { margin: 2px 0 6px; font-size: 30px; }
.login-lede { color: var(--muted); margin: 0 0 18px; }
#login-form { display: grid; gap: 12px; }
#login-form label { display: grid; gap: 5px; font-weight: 500; font-size: 13px; color: var(--ink); }
#login-form input {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--r-sm); background: var(--paper-card);
  padding: 12px 14px; transition: border-color 150ms ease;
}
#login-form input:focus { outline: 2px solid var(--link); outline-offset: 1px; border-color: transparent; }
.login-error { color: var(--error); font-weight: 600; margin: 0; }
.login-demo-note { margin-top: 20px; border-top: 1px solid var(--hairline); padding-top: 14px; }
.login-demo-note ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.login-demo-note li { margin-bottom: 5px; }
code { font-family: var(--font-mono); background: var(--limestone); padding: 2px 6px; border-radius: 4px; font-size: 12px; }

/* ------------------------------------------------------------- header */
.dash-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 66px; padding: 10px 22px; border-bottom: 1px solid var(--hairline);
  background: rgba(242, 239, 232, 0.86); backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  position: sticky; top: 0; z-index: 4;
}
.header-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bell-button {
  position: relative; border: 1px solid var(--hairline); background: var(--paper-card); border-radius: var(--r-pill);
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  transition: border-color 150ms ease, transform 150ms var(--ease);
}
.bell-button:hover { border-color: var(--ink); transform: translateY(-1px); }
.bell-count {
  position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: var(--r-pill); background: var(--error); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.bell-panel {
  position: absolute; top: 62px; right: 22px; z-index: 10; width: 300px; max-height: 340px; overflow-y: auto;
  border: 1px solid var(--hairline); background: var(--paper-card); border-radius: var(--r); box-shadow: var(--shadow-overlay);
  padding: 14px 16px;
}
.bell-panel ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.bell-panel li a {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 600; transition: background 120ms ease;
}
.bell-panel li a:hover { background: var(--wash); }
.bell-panel li a .muted { font-weight: 400; font-size: 12px; }

.search-box { position: relative; }
.search-box input {
  font-family: var(--font-body); border: 1px solid var(--hairline); border-radius: var(--r-pill); background: var(--paper-card);
  padding: 10px 16px; font-size: 16px; width: 180px; transition: width 200ms ease, border-color 150ms ease;
}
.search-box input:focus { width: 240px; outline: none; border-color: var(--link); box-shadow: 0 0 0 3px var(--wash); }
.search-results a[aria-selected="true"] { background: var(--wash); }
.search-results {
  position: absolute; top: 44px; left: 0; z-index: 10; width: 280px; max-height: 320px; overflow-y: auto;
  border: 1px solid var(--hairline); background: var(--paper-card); border-radius: var(--r); box-shadow: var(--shadow-overlay);
  padding: 8px;
}
.search-results a {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 600; transition: background 120ms ease;
}
.search-results a:hover { background: var(--wash); }
.search-results a .muted { font-weight: 400; font-size: 12px; }
.search-results p.muted { padding: 8px 10px; margin: 0; }
.client-chip { font-family: var(--font-mono); border: 1px solid var(--hairline); background: var(--paper-card); border-radius: var(--r-pill); padding: 6px 14px; font-size: 12px; font-weight: 500; }
.user-box { display: flex; flex-direction: column; line-height: 1.15; text-align: right; }
.user-name { font-weight: 600; font-size: 13px; }
.user-role { font-size: 11px; color: var(--muted); }

/* ------------------------------------------------------------- shell */
.dash-shell { display: grid; grid-template-columns: 232px 1fr; align-items: start; }
.dash-nav {
  position: sticky; top: 66px; align-self: start;
  display: flex; flex-direction: column; gap: 2px; padding: 12px;
  border-right: 1px solid var(--hairline); background: var(--limestone); min-height: calc(100vh - 66px);
}
.dash-nav a {
  padding: 11px 14px; text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: 14px; border-radius: var(--r-sm);
  display: flex; align-items: center; gap: 10px; color: var(--graphite);
  transition: background 140ms ease, color 140ms ease;
}
.dash-nav a:hover { background: var(--paper-card); color: var(--ink); text-decoration: none; }
.dash-nav a[aria-current="page"] { background: var(--ink); color: var(--limestone); }
.nav-ico { display: inline-grid; place-items: center; width: 20px; font-size: 15px; }

.dash-main { max-width: 1080px; padding: 26px 30px 60px; }
.module-h1 { font-size: 30px; margin: 0 0 16px; }
.load-state { color: var(--muted); }
/* --error (#DC2626) directly on --paper (not a card) measures ~4.28:1, under
   WCAG AA 4.5:1 for normal text. This darker shade measures ~5.7:1 on --paper. */
.load-state.error { color: #B91C1C; font-weight: 600; }

/* --slate directement sur --paper (pas --paper-card) mesure ~4.48:1, sous le
   seuil AA 4.5:1 texte normal (audit contrast-audit.mjs, 2026-07-21) — ces
   deux titres sont TOUJOURS posés à même le fond --paper (dash-main), jamais
   dans une .card, donc pas de risque de double-application. --muted (déjà
   dans la palette verrouillée brand-lock v1) mesure ~7.67:1 au même endroit. */
.section-title { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; border-bottom: 1px solid var(--hairline); padding-bottom: 8px; margin: 34px 0 16px; color: var(--muted); }
.sub-title { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; margin: 28px 0 12px; color: var(--muted); }

/* --------------------------------------------------- vue d'ensemble */
.hero-grid { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 22px; }
.hero-score { background: var(--ink); color: var(--limestone); }
/* --slate sur --ink (fond de la carte hero-score) mesure ~3.74:1, sous 4.5:1.
   --warm-stone est déjà utilisé sur ce même fond ink pour .hero-score
   .micronote (~8.66:1) — réutilisé ici plutôt qu'une nouvelle teinte. */
.hero-score .kicker { color: var(--warm-stone); }
.score-big { font-family: var(--font-display); font-size: 62px; font-weight: 600; margin: 6px 0 2px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.score-big small { font-size: 20px; font-weight: 400; color: var(--warm-stone); }
.tier-chip--go{background:rgba(31,122,69,.12);color:var(--success)}
.tier-chip--slow{background:rgba(176,106,18,.12);color:var(--warning)}
.tier-chip--stop{background:var(--error-wash);color:var(--error)}
.tier-chip { font-family: var(--font-mono); display: inline-block; background: var(--limestone); color: var(--ink); font-weight: 500; padding: 5px 14px; margin: 6px 0 10px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; border-radius: var(--r-pill); }
.hero-score .micronote { color: var(--warm-stone); }
.hero-track h2 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 6px; color: var(--slate); }
.summary { color: var(--graphite); }
.next-actions { margin-top: 14px; }
.next-actions .phase-tag { font-family: var(--font-mono); display: inline-block; background: var(--link); color: #fff; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px; border-radius: var(--r-pill); }

.dims { display: grid; gap: 0; border: 1px solid var(--hairline); background: var(--paper-card); border-radius: var(--r); padding: 8px 18px; }
.dim-row { display: grid; grid-template-columns: 250px 1fr 96px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.dim-row:last-child { border-bottom: 0; }
.dim-name strong { display: block; }
.dim-name span { font-size: 12px; color: var(--muted); }
.dim-code { font-family: var(--font-mono); display: inline-block; background: var(--ink); color: var(--limestone); font-size: 11px; font-weight: 500; padding: 2px 7px; margin-right: 6px; border-radius: 4px; }
.dim-bar { display: inline-block; height: 14px; border-radius: var(--r-pill); background: var(--hairline); overflow: hidden; }
.dim-fill { display: inline-block; height: 100%; background: var(--link); border-radius: var(--r-pill); }
.dim-fill.capped { background: var(--error); }
.dim-score { font-family: var(--font-mono); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.cap-note { display: block; font-size: 10px; color: var(--error); font-weight: normal; }
.vigilance-block { margin-top: 20px; }
.vigilance { margin: 0; padding: 0 0 0 18px; }
.vigilance li { margin-bottom: 6px; color: var(--error); }

/* --------------------------------------------------- diagnostic */
.diag-list { display: grid; gap: 12px; }
.diag-item { border: 1px solid var(--hairline); background: var(--paper-card); border-radius: var(--r); overflow: hidden; }
.diag-summary { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; }
.diag-summary::-webkit-details-marker { display: none; }
.diag-item .dim-bar { width: 180px; }
.diag-score-badge { font-family: var(--font-mono); font-weight: 600; }
.diag-body { padding: 0 18px 16px; border-top: 1px solid var(--hairline); }
.diag-body p { margin: 10px 0 0; color: var(--graphite); }
.diag-flag { color: var(--error); font-weight: 700; }

/* --------------------------------------------------- feuille de route */
.roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.phase-card { border: 1px solid var(--hairline); background: var(--paper-card); border-radius: var(--r); padding: 18px 20px; }
.phase-card .phase-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--link); font-weight: 500; }
.status-chip { font-family: var(--font-mono); display: inline-block; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 10px; margin-left: 8px; border-radius: var(--r-pill); border: 1px solid var(--hairline); }
.status-chip.en_cours { background: var(--limestone); border-color: transparent; color: var(--ink); }
.status-chip.fait { background: var(--ink); color: var(--limestone); border-color: transparent; }
.status-chip.a_venir { background: var(--paper); color: var(--muted); }
.killswitch { margin-top: 22px; border-color: var(--error); }
.killswitch .kicker { color: var(--error); }
.killswitch h2 { font-size: 17px; margin: 2px 0 8px; }
.killswitch ul { margin: 10px 0 0 18px; padding: 0; }
.killswitch li { margin-bottom: 6px; color: var(--graphite); }

.table-wrap { overflow-x: auto; border: 1px solid var(--hairline); background: var(--paper-card); border-radius: var(--r); }
.matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
.matrix th, .matrix td { border-bottom: 1px solid var(--hairline); padding: 10px 14px; text-align: left; vertical-align: top; }
.matrix th { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; background: var(--limestone); color: var(--graphite); font-weight: 500; }
.matrix tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------- documents / offres */
.doc-grid, .lane-grid, .contract-grid, .trust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.doc-card, .lane-card, .contract-card, .trust-card { border: 1px solid var(--hairline); background: var(--paper-card); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; transition: border-color 150ms ease, transform 150ms var(--ease); }
.doc-card:hover, .lane-card:hover, .contract-card:hover, .trust-card:hover { border-color: var(--ink); transform: translateY(-1px); }
.doc-card h3, .lane-card h3, .contract-card h3, .trust-card h3 { margin: 0; font-size: 15px; }
.doc-kind { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate); }
.doc-status { font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; align-self: flex-start; border-radius: var(--r-pill); border: 1px solid var(--hairline); padding: 3px 10px; }
.doc-status.genere { background: var(--limestone); border-color: transparent; color: var(--ink); }
.doc-status.specimen { background: transparent; color: var(--error); border-color: var(--error); }
.doc-status.modele { background: var(--paper); }
.doc-card .button, .lane-card .button { margin-top: auto; }

.lane-card.locked { background: var(--paper); }
.lane-status { font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 11px; align-self: flex-start; border-radius: var(--r-pill); border: 1px solid var(--hairline); }
.lane-status.owned { background: var(--limestone); border-color: transparent; color: var(--ink); }
.lane-status.locked { background: transparent; color: var(--muted); }
.lane-card ul { margin: 4px 0; padding-left: 18px; font-size: 13px; color: var(--graphite); }
.lane-price { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.lane-when { color: var(--muted); font-size: 13px; margin: 0; }

/* --------------------------------------------------- rapports */
.report-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 18px; }
.report-status { font-size: 13px; font-weight: 600; color: var(--graphite); }
.report-history ul { margin: 6px 0 0 18px; padding: 0; font-size: 13px; color: var(--graphite); }
.report-history li { margin-bottom: 5px; }
.report-preview { margin-top: 20px; }
.report-preview iframe { width: 100%; height: 620px; border: 1px solid var(--hairline); background: var(--paper-card); border-radius: var(--r); }

/* --------------------------------------------------- trust center */
.contract-status { font-size: 12px; font-weight: 600; }
.contract-status.specimen { color: var(--error); text-transform: uppercase; letter-spacing: 0.04em; }
.contract-meta { font-size: 12px; color: var(--muted); }
.trust-card ul { margin: 4px 0 0 18px; padding: 0; font-size: 13px; color: var(--graphite); }
.trust-card li { margin-bottom: 5px; }
.trust-card li.extra { display: none; }
.trust-card.expanded li.extra { display: list-item; }
.trust-more { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--link); cursor: pointer; text-align: left; }
.compliance ul, .platform ul { margin: 6px 0 0 18px; padding: 0; }
.compliance li, .platform li { margin-bottom: 7px; color: var(--graphite); }
.truth-note { border-left: 3px solid var(--slate); background: var(--wash); padding: 10px 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 13px; color: var(--graphite); }

/* --------------------------------------------------- paramètres */
.profile-grid { display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; font-size: 14px; }
.profile-grid dt { color: var(--muted); }
.profile-grid dd { margin: 0; font-weight: 600; }
.member-list { display: grid; gap: 8px; }
.member-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--hairline); padding-bottom: 8px; flex-wrap: wrap; }
.member-row:last-child { border-bottom: 0; }
.member-role { font-size: 12px; color: var(--muted); }
.settings-security { display: grid; gap: 16px; }
.isolation-panel { border-left: 3px solid var(--slate); background: var(--wash); padding: 12px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 13px; color: var(--graphite); }
.isolation-panel strong { color: var(--link-deep); }
.access-log ul { margin: 6px 0 0 18px; padding: 0; font-size: 13px; max-height: 180px; overflow-y: auto; color: var(--graphite); }
.inline-label { display: inline-flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; }
.inline-label select { font-family: var(--font-body); font-size: 16px; min-height: 44px; border: 1px solid var(--hairline); border-radius: var(--r-sm); background: var(--paper-card); padding: 9px 11px; }
.data-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.data-actions h3 { margin: 0 0 4px; font-size: 15px; }
.delete-state { margin-top: 8px; color: var(--error); font-weight: 600; font-size: 13px; }

.dash-footer { border-top: 1px solid var(--hairline); background: var(--limestone); padding: 18px 24px 26px; font-size: 12px; color: var(--muted); }

/* --------------------------------------------------- responsive */
.nav-more { display: none; }

@media (max-width: 900px) {
  .dash-shell { grid-template-columns: 1fr; }
  /* En-tête mobile compressé (audit 2026-07-21 : la pile bandeau + logo +
     recherche + cloche + chip + utilisateur mangeait ~40% du premier écran). */
  .dash-header { padding: 8px 14px; gap: 8px; min-height: 0; }
  .header-right { gap: 8px; }
  .search-box input { width: 108px; }
  .search-box input:focus { width: 170px; }
  .client-chip { padding: 5px 10px; font-size: 11px; }
  .user-box { flex-direction: row; align-items: baseline; gap: 5px; text-align: left; }
  .user-role::before { content: "· "; }
  .dash-nav {
    position: static; flex-direction: row; flex-wrap: wrap; overflow-x: visible; min-height: 0;
    border-right: 0; border-bottom: 1px solid var(--hairline); top: 0;
    gap: 4px; padding: 10px 12px;
  }
  .dash-nav a { white-space: nowrap; padding: 10px 14px; flex: none; }
  /* Nav réduite mobile : seuls les modules prioritaires visibles par défaut
     (Vue d'ensemble/Diagnostic/Documents/Confiance) — le reste est derrière
     « Plus », pas compressé dans une bande à défilement horizontal. */
  .dash-nav a:not([data-priority]) { display: none; }
  .dash-nav.nav-expanded a:not([data-priority]) { display: flex; }
  .nav-more {
    display: inline-flex; align-items: center; border: 1px solid var(--hairline); background: var(--paper-card);
    border-radius: var(--r-pill); padding: 10px 16px; font-family: var(--font-display); font-size: 14px; font-weight: 500;
    color: var(--graphite); cursor: pointer; flex: none;
  }
  .dash-main { padding: 22px 18px 50px; }
  .hero-grid { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .data-actions { grid-template-columns: 1fr; }
  .dim-row { grid-template-columns: 1fr; gap: 6px; }
  .dim-score { text-align: left; }
  .diag-summary { grid-template-columns: 1fr; }
  .diag-item .dim-bar { width: 100%; }
  .module-h1 { font-size: 25px; }
  .dash-header { flex-wrap: wrap; min-height: 0; }
  .user-box { text-align: left; }
}
