/* ============================================
   Belambra Agents — Design System
   Ascenzia / Belambra Clubs & Hôtels
   ============================================ */

/* ---------- Tokens ---------- */
:root {
  /* Palette officielle (charte belambra.fr) */
  --teal: #008280;
  --teal-600: #016d6b;
  --teal-50: #e6f2f2;
  --teal-100: #ccecea;
  --deep: #2e4941;
  --deep-2: #203c36;
  --deep-3: #172d29;
  --ink: #1d2a30;
  --ink-2: #3a4a52;
  --ink-3: #667680;
  --ink-4: #98a4ac;
  --ink-5: #c9d1d6;
  --line: #e6e9eb;
  --line-2: #eef0f1;
  --paper: #ffffff;
  --stone: #f7f6f2;      /* fond doux, sable */
  --stone-2: #efede6;
  --red: #c8102e;
  --red-soft: #fde7ea;
  --amber: #b8741f;
  --amber-soft: #fbeed8;
  --mint: #128a6f;
  --mint-soft: #dff4ec;

  /* Typographie */
  --display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --text: "Inter", ui-sans-serif, system-ui, sans-serif;

  /* Espacements — échelle 4 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;

  /* Rayons */
  --r-1: 6px;
  --r-2: 10px;
  --r-3: 14px;
  --r-4: 20px;
  --r-pill: 999px;

  /* Ombres — très douces, teintées vert profond */
  --shadow-sm: 0 1px 2px rgba(32, 60, 54, 0.05), 0 1px 1px rgba(32, 60, 54, 0.03);
  --shadow-md: 0 2px 4px rgba(32, 60, 54, 0.05), 0 6px 16px -6px rgba(32, 60, 54, 0.10);
  --shadow-lg: 0 4px 8px rgba(32, 60, 54, 0.06), 0 20px 40px -12px rgba(32, 60, 54, 0.16);

  --sidebar-w: 260px;
  --topbar-h: 68px;
}

/* ---------- Reset doux ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--display); letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Typographie ---------- */
.display-1 { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; color: var(--deep-2); }
.display-2 { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; color: var(--deep-2); }
.h1 { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.2; color: var(--deep-2); }
.h2 { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--deep-2); }
.h3 { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--deep-2); }
.body { font-size: 15px; line-height: 1.55; color: var(--ink); }
.body-sm { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.caption { font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- Layout ---------- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: var(--deep-2);
  color: rgba(255,255,255,0.9);
  padding: 24px 18px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar__logo {
  padding: 6px 8px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 18px;
}
.sidebar__logo img { display: block; width: 138px; height: auto; }
.sidebar__section {
  margin-top: 16px;
}
.sidebar__section-title {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  padding: 0 10px 8px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  border-radius: var(--r-1);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  text-align: left;
  width: 100%;
}
.nav__item:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.95);
}
.nav__item.is-active {
  background: rgba(255,255,255,0.09);
  color: #fff;
  font-weight: 500;
}
.nav__item.is-active .nav__icon { color: var(--teal); }
.nav__icon { width: 16px; height: 16px; opacity: 0.85; flex-shrink: 0; }
.nav__badge {
  margin-left: auto;
  background: var(--teal);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--r-pill);
  font-family: var(--display);
}
.sidebar__spacer { flex: 1; }
.sidebar__user {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--deep) 100%);
  color: white; font-family: var(--display); font-weight: 600; font-size: 13px;
  display: grid; place-items: center; flex-shrink: 0;
}
.sidebar__user-info { min-width: 0; }
.sidebar__user-name { font-size: 13.5px; color: #fff; font-weight: 500; line-height: 1.2; }
.sidebar__user-role { font-size: 11.5px; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* Main */
.main {
  min-width: 0;
  background: var(--stone);
}
.topbar {
  height: var(--topbar-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar__crumbs {
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar__crumbs strong { color: var(--deep-2); font-weight: 600; }
.topbar__crumbs .sep { color: var(--ink-5); }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar__pill {
  background: var(--mint-soft);
  color: var(--mint);
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar__pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.screen {
  display: none;
  padding: 40px;
  max-width: 1440px;
}
.screen.is-active { display: block; }
.screen__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.screen__head-title { flex: 1 1 480px; min-width: 0; }
.screen__head-title { max-width: 720px; }
.screen__head-title .eyebrow { margin-bottom: 8px; }
.screen__head-title p { color: var(--ink-2); margin-top: 8px; font-size: 15px; }
.screen__head-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-2);
  transition: all 120ms ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary { background: var(--teal); color: white; }
.btn--primary:hover { background: var(--teal-600); }
.btn--ghost { background: transparent; color: var(--deep-2); border-color: var(--line); }
.btn--ghost:hover { background: white; border-color: var(--ink-5); }
.btn--dark { background: var(--deep-2); color: white; }
.btn--dark:hover { background: var(--deep-3); }
.btn--danger { background: var(--red); color: white; }
.btn--text { color: var(--teal); padding: 6px 4px; }
.btn--text:hover { color: var(--teal-600); text-decoration: underline; text-underline-offset: 3px; }
.btn--icon {
  width: 36px; height: 36px; padding: 0; justify-content: center;
  background: white; border: 1px solid var(--line); color: var(--ink-2);
}
.btn--icon:hover { border-color: var(--ink-5); color: var(--deep-2); }
.btn--sm { padding: 6px 12px; font-size: 13px; border-radius: var(--r-1); }
.btn--lg { padding: 13px 24px; font-size: 15px; }
.btn__icon { width: 15px; height: 15px; }

/* ---------- Cartes ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 24px;
}
.card--flat { border: 1px solid var(--line); box-shadow: none; }
.card--dark { background: var(--deep-2); color: #fff; border: none; }
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card__title { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--deep-2); }

/* ---------- Grille ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 11.5px;
  border-radius: var(--r-pill);
  letter-spacing: 0.01em;
  line-height: 1.5;
  white-space: nowrap;
}
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge--mint { background: var(--mint-soft); color: var(--mint); }
.badge--teal { background: var(--teal-50); color: var(--teal-600); }
.badge--amber { background: var(--amber-soft); color: var(--amber); }
.badge--red { background: var(--red-soft); color: var(--red); }
.badge--slate { background: #eef0f1; color: var(--ink-2); }
.badge--dark { background: var(--deep-2); color: white; }

/* Gamme (3B / 4B / 5B) — sobre, hôtellerie */
.gamme {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid currentColor;
  color: var(--ink-3);
  background: transparent;
  line-height: 1.4;
}
.gamme--3b { color: var(--ink-3); }
.gamme--4b { color: var(--teal-600); }
.gamme--5b { color: var(--deep); background: var(--teal-50); border-color: var(--teal-100); }

/* ---------- KPI ---------- */
.kpi {
  padding: 22px 24px;
}
.kpi__label {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.kpi__value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--deep-2);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.kpi__value--sm { font-size: 30px; }
.kpi__unit { font-size: 15px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.kpi__trend { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; margin-top: 10px; font-family: var(--display); }
.kpi__trend--up { color: var(--mint); }
.kpi__trend--down { color: var(--red); }
.kpi__trend--flat { color: var(--ink-3); }
.kpi__foot { color: var(--ink-3); font-size: 12.5px; margin-top: 8px; }

/* ---------- Tables (dense, Inter) ---------- */
.tbl {
  width: 100%;
  font-family: var(--text);
  font-size: 13.5px;
}
.tbl thead th {
  text-align: left;
  padding: 12px 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.tbl tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
  color: var(--ink);
}
.tbl tbody tr:hover td { background: rgba(0, 130, 128, 0.03); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl th.num { text-align: right; }
.tbl__club {
  display: flex; align-items: center; gap: 10px;
}
.tbl__club-name { color: var(--deep-2); font-weight: 500; }

/* ---------- Zone de dépôt ---------- */
.dropzone {
  border: 2px dashed var(--ink-5);
  border-radius: var(--r-3);
  padding: 40px;
  text-align: center;
  transition: all 150ms ease;
  background: white;
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-drag {
  border-color: var(--teal);
  background: var(--teal-50);
}
.dropzone__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--stone-2);
  display: inline-grid; place-items: center;
  margin-bottom: 12px;
  color: var(--deep);
}
.dropzone__title { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--deep-2); margin-bottom: 4px; }
.dropzone__hint { font-size: 13px; color: var(--ink-3); }
.dropzone.is-filled { border-style: solid; border-color: var(--mint); background: var(--mint-soft); }

/* ---------- Sparkline ---------- */
.spark {
  display: block;
  width: 100%;
  height: 60px;
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab {
  padding: 12px 16px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
}
.tab:hover { color: var(--deep-2); }
.tab.is-active { color: var(--deep-2); border-bottom-color: var(--teal); font-weight: 600; }

/* ---------- Segmented ---------- */
.seg {
  display: inline-flex;
  background: var(--stone-2);
  padding: 3px;
  border-radius: var(--r-2);
  gap: 2px;
}
.seg__btn {
  padding: 6px 14px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 7px;
}
.seg__btn.is-active {
  background: white;
  color: var(--deep-2);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

/* ---------- Toggle ---------- */
.toggle {
  width: 36px; height: 20px; border-radius: 999px; background: var(--ink-5);
  position: relative; cursor: pointer; transition: background 150ms;
  flex-shrink: 0;
}
.toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: white;
  transition: transform 150ms;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.toggle.is-on { background: var(--teal); }
.toggle.is-on::after { transform: translateX(16px); }

/* ---------- Input ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.input, .select, .textarea {
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 10px 12px;
  font-size: 14px;
  background: white;
  color: var(--ink);
  transition: border-color 120ms;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-50);
}
.textarea { min-height: 88px; font-family: var(--text); line-height: 1.55; resize: vertical; }

/* ---------- Hero (dashboard NPS) ---------- */
.hero {
  border-radius: var(--r-4);
  padding: 32px 36px;
  background: linear-gradient(135deg, var(--deep-2) 0%, var(--deep-3) 100%);
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}
.hero__photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: saturate(0.85);
}
.hero__grad {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--deep-3) 0%, rgba(23,45,41,0.85) 45%, rgba(23,45,41,0.35) 100%);
}
.hero__inner { position: relative; }
.hero .eyebrow { color: rgba(255,255,255,0.62); }
.hero__title { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.15; margin-top: 8px; color: white; }
.hero__sub { color: rgba(255,255,255,0.78); margin-top: 8px; font-size: 15px; max-width: 620px; }
.hero__cta { margin-top: 22px; display: flex; gap: 12px; }

/* ---------- Validation NPS (split view) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
}

/* Document mock */
.doc {
  background: white;
  border-radius: var(--r-3);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--line);
}
.doc__page {
  padding: 44px 52px;
  border-bottom: 1px dashed var(--line);
}
.doc__page:last-child { border-bottom: none; }
.doc__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--deep-2);
  margin-bottom: 28px;
}
.doc__logo img { width: 132px; height: auto; }
.doc__meta { text-align: right; }
.doc__meta .eyebrow { color: var(--ink-3); font-size: 10.5px; }
.doc__meta strong { font-family: var(--display); color: var(--deep-2); display: block; font-size: 15px; margin-top: 4px; }
.doc h1 { font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--deep-2); }
.doc h2 { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--deep-2); margin-top: 28px; margin-bottom: 14px; letter-spacing: 0; }
.doc__lead {
  font-family: var(--text);
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.65;
  margin-top: 14px;
}
.doc__nps-block {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  padding: 18px 20px;
  background: var(--stone);
  border-radius: var(--r-2);
  margin: 22px 0 8px;
  align-items: center;
}
.doc__nps-block .kpi__value { font-size: 44px; color: var(--deep-2); }
.doc__nps-block .kpi__label { margin-bottom: 6px; }

.doc__quote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--deep);
  padding: 10px 0 10px 16px;
  border-left: 2px solid var(--teal);
  margin: 10px 0;
  font-size: 14px;
}

/* Panel action */
.panel {
  position: sticky;
  top: calc(var(--topbar-h) + 24px);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}
.panel__head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.panel__body { padding: 16px 20px; }
.panel__foot {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--stone);
}

.club-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-1);
  cursor: pointer;
  font-size: 13.5px;
}
.club-list__item:hover { background: var(--stone); }
.club-list__item.is-active { background: var(--teal-50); }
.club-list__item.is-active .club-list__name { color: var(--deep); font-weight: 600; }
.club-list__nps { margin-left: auto; font-family: var(--display); font-weight: 600; font-size: 13px; }
.club-list__nps--low { color: var(--red); }
.club-list__name { color: var(--ink); }

/* ---------- Timeline (exécution) ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.timeline__step {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 14px;
  position: relative;
}
.timeline__step .eyebrow { font-size: 10px; }
.timeline__step-label { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--deep-2); margin-top: 6px; }
.timeline__step-dur { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.timeline__step .dot { position: absolute; top: 14px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.timeline__step.is-failed .dot { background: var(--red); }
.timeline__step.is-current .dot { background: var(--teal); animation: pulse 1.5s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- Planning grille (RH) ---------- */
.planning {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}
.planning__legend {
  display: flex;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--stone);
  font-family: var(--display);
  font-size: 12px;
  color: var(--ink-2);
  align-items: center;
}
.planning__legend-item { display: flex; align-items: center; gap: 6px; }
.planning__legend-swatch { width: 12px; height: 12px; border-radius: 3px; }
.planning__scroll {
  overflow-x: auto;
}
.planning__grid {
  min-width: 900px;
  display: grid;
  grid-template-columns: 220px repeat(7, 1fr);
}
.planning__cell,
.planning__header {
  padding: 8px 10px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  min-height: 62px;
  font-size: 12.5px;
}
.planning__header {
  background: var(--stone);
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-2);
  min-height: auto;
  padding: 12px 10px;
  text-align: center;
}
.planning__header .day { color: var(--deep-2); }
.planning__header .date { font-weight: 500; color: var(--ink-3); font-size: 11px; }

.planning__row-lbl {
  padding: 10px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line-2);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
}
.planning__row-lbl .name { font-family: var(--display); font-weight: 600; font-size: 13.5px; color: var(--deep-2); }
.planning__row-lbl .role { font-size: 11.5px; color: var(--ink-3); }
.planning__row-lbl .flags { display: flex; gap: 4px; margin-top: 4px; }

.shift {
  display: block;
  padding: 6px 8px;
  border-radius: 5px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 11.5px;
  color: white;
  line-height: 1.2;
  margin: 2px 0;
  cursor: pointer;
  transition: all 100ms;
}
.shift:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.shift small { display: block; font-weight: 500; font-size: 10px; opacity: 0.85; margin-top: 1px; }
.shift.is-selected { outline: 2px solid var(--deep-2); outline-offset: 2px; }
.shift--salle { background: #0f766e; }
.shift--cuisine { background: #7c2d12; }
.shift--bar { background: #4c1d95; }
.shift--anim { background: #b45309; }
.shift--enfants { background: #be185d; }
.shift--off { background: transparent; color: var(--ink-4); border: 1px dashed var(--line); font-weight: 500; }

/* ---------- Chat (RH assistant) ---------- */
.chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}
.chat__head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.chat__body { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.chat__foot { padding: 14px 16px; border-top: 1px solid var(--line); }

.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: var(--r-3);
  font-size: 13.5px;
  line-height: 1.5;
}
.msg--user {
  align-self: flex-end;
  background: var(--teal);
  color: white;
  border-bottom-right-radius: 4px;
}
.msg--agent {
  align-self: flex-start;
  background: var(--stone);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.msg--agent .msg__badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--display); font-size: 10.5px; font-weight: 600;
  color: var(--teal-600); text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.msg__actions { display: flex; gap: 6px; margin-top: 10px; }
.msg__actions .btn { padding: 6px 12px; font-size: 12.5px; }
.chat__suggestions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chat__chip {
  border: 1px solid var(--line);
  background: white;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  font-family: var(--display);
  font-weight: 500;
}
.chat__chip:hover { background: var(--teal-50); border-color: var(--teal); color: var(--teal-600); }
.chat__input {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--stone);
  border-radius: var(--r-2);
  padding: 6px 6px 6px 14px;
}
.chat__input input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 8px 0;
  font-size: 14px;
}

/* ---------- Barre de progression / jauges ---------- */
.bar {
  height: 8px;
  background: var(--stone-2);
  border-radius: var(--r-pill);
  overflow: hidden;
  position: relative;
}
.bar__fill {
  height: 100%;
  background: var(--teal);
  border-radius: var(--r-pill);
}
.bar__fill--over { background: var(--red); }
.bar__fill--warn { background: var(--amber); }

/* ---------- Login banner ---------- */
.banner-demo {
  background: var(--amber-soft);
  color: var(--amber);
  padding: 8px 16px;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(184, 116, 31, 0.15);
}

/* ---------- Divers ---------- */
.hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
.dot-sep::before { content: "·"; margin: 0 8px; color: var(--ink-4); }
.pill-count {
  background: var(--stone-2);
  color: var(--ink-2);
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  margin-left: 6px;
}
.grow { flex: 1; }
.text-ink { color: var(--ink); }
.text-muted { color: var(--ink-3); }
.text-deep { color: var(--deep-2); }
.text-red { color: var(--red); }
.text-mint { color: var(--mint); }
.text-teal { color: var(--teal); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ---------- Scrollbars discrètes ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-5); border-radius: 999px; border: 3px solid var(--stone); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }
