/* =========================================================================
   C&P Performance Center® — Design System (thème clair)
   Palette : blanc cassé (crème) · vert Cavallin · graphite. Calme, premium.
   ========================================================================= */
:root {
  /* Surfaces */
  --bg:            #f1eee6;   /* plane contenu (blanc cassé chaud) */
  --plane:         #f7f5ef;   /* sidebar */
  --surface:       #ffffff;   /* cartes */
  --surface-2:     #ffffff;
  --surface-3:     #efebe2;   /* puces / icônes */
  --track:         #e7e3d9;
  --hover:         rgba(31,138,91,0.06);
  --line:          rgba(24,42,32,0.10);
  --line-strong:   rgba(24,42,32,0.16);

  /* Encre */
  --ink:           #17251d;
  --ink-2:         #52605a;
  --ink-muted:     #8b948b;

  /* Marque */
  --brand:         #1f8a5b;   /* vert Cavallin (contraste texte) */
  --brand-bright:  #2f9e6b;
  --brand-deep:    #0f5c3c;
  --brand-glow:    rgba(47, 158, 107, 0.14);
  --cream:         #f4f1ea;

  /* Statuts (assombris pour lisibilité sur pastilles claires) */
  --good:          #1f9a63;
  --warn:          #b07d00;
  --serious:       #c96a34;
  --critical:      #c9432f;

  /* Catégoriel (litiges) — validé CVD sur fond clair */
  --cat-1:#2a78d6; --cat-2:#eb6834; --cat-3:#1baf7a; --cat-4:#eda100; --cat-5:#e87ba4; --cat-6:#008300;

  --radius:   16px;
  --radius-sm:11px;
  --shadow:   0 1px 2px rgba(24,42,32,0.05), 0 14px 34px -20px rgba(24,42,32,0.20);
  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  letter-spacing: -0.006em;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }
::selection { background: var(--brand-glow); }
.tabular { font-variant-numeric: tabular-nums; }

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #d8d3c7; border-radius: 20px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #c7c1b2; background-clip: content-box; }

/* ============================ CONNEXION ============================ */
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(47,158,107,0.16), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(47,158,107,0.10), transparent 55%),
    var(--bg);
}
.login-card {
  width: 100%; max-width: 400px; background: linear-gradient(180deg, #ffffff, #fcfbf8);
  border: 1px solid var(--line); border-radius: 22px; padding: 40px 34px;
  box-shadow: var(--shadow); animation: rise 0.7s var(--ease) both;
}
.brandmark { display: flex; align-items: center; gap: 11px; margin-bottom: 26px; }
.brandmark .logo {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--brand), var(--brand-deep));
  border: 1px solid rgba(0,0,0,0.06); color: #fff;
  font-family: var(--serif); font-weight: 600; font-size: 15px;
}
.brandmark .txt b { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; display: block; }
.brandmark .txt span { font-size: 12px; color: var(--ink-muted); }
.login-card h1 { font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.2; margin-bottom: 8px; letter-spacing: -0.01em; }
.login-slogan { color: var(--ink-2); font-size: 14px; margin-bottom: 28px; }
.login-slogan b { color: var(--brand); font-weight: 600; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 7px; font-weight: 500; }
.field input {
  width: 100%; background: #fcfbf8; border: 1px solid var(--line-strong); color: var(--ink);
  padding: 12px 14px; border-radius: 11px; font-size: 14px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }
.btn-primary {
  width: 100%; background: linear-gradient(180deg, var(--brand-bright), var(--brand));
  color: #ffffff; font-weight: 700; font-size: 14px; padding: 13px; border-radius: 11px;
  margin-top: 8px; transition: transform 0.15s var(--ease), filter 0.2s; box-shadow: 0 6px 16px -8px rgba(31,138,91,0.6);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:active { transform: translateY(1px); }
.login-error { color: var(--critical); font-size: 13px; margin-top: 14px; min-height: 18px; text-align: center; }
.login-hint {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-muted); text-align: center; line-height: 1.7;
}
.login-hint code { color: var(--ink-2); background: var(--surface-3); padding: 1px 6px; border-radius: 5px; }

/* ============================ APP SHELL ============================ */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--plane); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 20px 16px;
}
.sidebar .brandmark { margin-bottom: 30px; padding: 0 6px; }
.nav-group-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.11em; color: var(--ink-muted); margin: 18px 10px 8px; font-weight: 600; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500; margin-bottom: 2px;
  transition: background 0.18s, color 0.18s; position: relative;
}
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.9; }
.nav-item:hover { background: var(--surface-3); color: var(--ink); }
.nav-item.active { background: linear-gradient(90deg, var(--brand-glow), transparent); color: var(--brand-deep); font-weight: 600; }
.nav-item.active::before { content: ''; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; background: var(--brand); border-radius: 0 3px 3px 0; }
.nav-item.locked { opacity: 0.55; cursor: default; }
.nav-item.locked:hover { background: none; color: var(--ink-2); }
.nav-tag { margin-left: auto; font-size: 9.5px; background: var(--surface-3); color: var(--ink-muted); padding: 2px 6px; border-radius: 20px; letter-spacing: 0.03em; }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 6px; }
.user-chip .avatar { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(150deg, var(--brand-bright), var(--brand-deep)); display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; }
.user-chip .meta b { font-size: 13px; display: block; }
.user-chip .meta span { font-size: 11px; color: var(--ink-muted); }
.logout { font-size: 11.5px; color: var(--ink-muted); margin-top: 6px; padding: 6px; display: block; transition: color 0.18s; }
.logout:hover { color: var(--critical); }

.main { min-width: 0; }
.topbar {
  height: 62px; border-bottom: 1px solid var(--line); display: flex; align-items: center;
  justify-content: space-between; padding: 0 34px; position: sticky; top: 0; z-index: 20;
  background: rgba(241,238,230,0.82); backdrop-filter: blur(14px);
}
.topbar .company { display: flex; align-items: center; gap: 12px; }
.topbar .company .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(31,154,99,0.16); }
.topbar .company b { font-size: 14px; }
.topbar .company span { font-size: 12px; color: var(--ink-muted); }
.topbar .date { font-size: 12.5px; color: var(--ink-2); }
.view { padding: 34px; max-width: 1360px; animation: rise 0.55s var(--ease) both; }

/* ============================ COMPONENTS ============================ */
.hero-greet { font-family: var(--serif); font-weight: 500; font-size: 34px; letter-spacing: -0.01em; margin-bottom: 8px; }
.hero-sub { color: var(--ink-2); font-size: 15px; max-width: 720px; margin-bottom: 28px; }
.hero-sub b { color: var(--ink); font-weight: 600; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); font-weight: 600; margin: 34px 0 14px; }

.card {
  background: linear-gradient(180deg, #ffffff, #fcfbf8);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow);
}
.grid { display: grid; gap: 16px; }

/* KPI héros */
.hero-kpis { grid-template-columns: repeat(3, 1fr); margin-bottom: 8px; }
.kpi-hero { position: relative; overflow: hidden; padding: 24px; }
.kpi-hero .glow { position: absolute; inset: 0; background: radial-gradient(400px 160px at 100% 0%, var(--brand-glow), transparent 70%); pointer-events: none; }
.kpi-hero .label { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.kpi-hero .label svg { width: 16px; height: 16px; color: var(--brand); }
.kpi-hero .value { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.kpi-hero .value small { font-size: 20px; color: var(--ink-2); font-weight: 600; }
.kpi-hero .note { font-size: 12.5px; color: var(--ink-muted); margin-top: 12px; }
.kpi-hero .delta { color: var(--good); font-weight: 700; }

/* Cartes chiffres */
.cards-grid { grid-template-columns: repeat(4, 1fr); }
.stat .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.stat .top .name { font-size: 12.5px; color: var(--ink-2); }
.stat .top .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--surface-3); display: grid; place-items: center; }
.stat .top .ic svg { width: 15px; height: 15px; color: var(--brand); }
.stat .val { font-size: 25px; font-weight: 700; letter-spacing: -0.015em; }
.stat .val small { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.stat .cap { font-size: 12px; color: var(--ink-muted); margin-top: 7px; line-height: 1.45; }
.stat .cap b { color: var(--ink-2); font-weight: 600; }
.chip-delta { font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.chip-delta.good { color: var(--good); background: rgba(31,154,99,0.12); }
.chip-delta.bad { color: var(--critical); background: rgba(201,67,47,0.12); }

/* Score */
.score-wrap { grid-template-columns: 300px 1fr; align-items: stretch; }
.score-gauge { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.score-gauge .num { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.score-gauge .num small { font-size: 22px; color: var(--ink-muted); font-weight: 600; }
.score-gauge .badge { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--brand-deep); background: var(--brand-glow); padding: 4px 12px; border-radius: 20px; }
.score-bars { display: flex; flex-direction: column; gap: 13px; justify-content: center; }
.sbar .head { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.sbar .head .n { color: var(--ink-2); }
.sbar .head .v { font-weight: 600; color: var(--ink); }
.sbar .head .v span { color: var(--ink-muted); font-weight: 400; }
.sbar .track { height: 7px; background: var(--track); border-radius: 20px; overflow: hidden; }
.sbar .fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); width: 0; transition: width 1.1s var(--ease); }
.reco-strip { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reco { display: flex; gap: 11px; align-items: flex-start; }
.reco .lv { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; background: rgba(176,125,0,0.12); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--warn); }
.reco .t b { font-size: 12.5px; display: block; margin-bottom: 2px; }
.reco .t span { font-size: 12px; color: var(--ink-muted); line-height: 1.4; }

/* Graphiques */
.charts-grid { grid-template-columns: 2fr 1fr; }
.chart-card .chead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.chart-card .chead .ct { font-size: 13.5px; font-weight: 600; }
.chart-card .chead .cv { font-size: 12.5px; color: var(--ink-muted); }
.chart-card .cbig { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; margin: 6px 0 2px; }
figure.chart { width: 100%; margin: 0; }
figure.chart svg { width: 100%; display: block; overflow: visible; }

/* Activité */
.activity-list { display: flex; flex-direction: column; }
.act-row { display: flex; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: center; }
.act-row:last-child { border-bottom: none; }
.act-ic { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; }
.act-ic svg { width: 15px; height: 15px; }
.act-row .t { font-size: 13px; flex: 1; min-width: 0; }
.act-row .time { font-size: 11.5px; color: var(--ink-muted); flex-shrink: 0; }
.act-row .who { font-size: 11px; color: var(--ink-muted); }
.i-pay { background: rgba(31,154,99,0.13); color: var(--good); }
.i-med { background: rgba(201,106,52,0.14); color: var(--serious); }
.i-neu { background: var(--surface-3); color: var(--brand); }
.i-legal { background: rgba(201,67,47,0.12); color: var(--critical); }

/* Équipe travaille sur */
.working { grid-template-columns: repeat(4, 1fr); }
.work-cell { text-align: left; padding: 18px 20px; }
.work-cell .n { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.work-cell .l { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.badge.risk-Faible { color: var(--good); background: rgba(31,154,99,0.12); }
.badge.risk-Moyen { color: var(--warn); background: rgba(176,125,0,0.13); }
.badge\.risk-Élevé, .badge.risk-Élevé { color: var(--critical); background: rgba(201,67,47,0.12); }
.badge.stage { color: var(--brand-deep); background: var(--brand-glow); }
.badge[data-st="En cours"] { color: var(--brand-deep); background: var(--brand-glow); }
.badge[data-st="Résolu"] { color: var(--good); background: rgba(31,154,99,0.12); }
.badge[data-st="Ouvert"] { color: var(--warn); background: rgba(176,125,0,0.13); }

/* Avatars équipe */
.av { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff; flex-shrink: 0; }

/* ============================ RECOVERY ============================ */
.filters { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.search { flex: 1; min-width: 220px; position: relative; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-muted); }
.search input { width: 100%; background: var(--surface); border: 1px solid var(--line); color: var(--ink); padding: 10px 14px 10px 38px; border-radius: 10px; font-size: 13.5px; }
.search input:focus { outline: none; border-color: var(--brand); }
.selectbox { background: var(--surface); border: 1px solid var(--line); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-size: 13px; cursor: pointer; }
.selectbox:focus { outline: none; border-color: var(--brand); }
.seg { display: inline-flex; background: var(--surface-3); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { padding: 7px 14px; border-radius: 8px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(24,42,32,0.10); }

.dossier-table { width: 100%; }
.dtr { display: grid; grid-template-columns: 1fr 108px 120px 96px 130px 40px; gap: 14px; align-items: center; padding: 13px 16px; border-radius: 12px; transition: background 0.15s; cursor: pointer; border: 1px solid transparent; }
.dtr:hover { background: var(--hover); border-color: var(--line); }
.dth { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-muted); cursor: default; padding: 6px 16px; }
.dth:hover { background: none; border-color: transparent; }
.dtr .deb { font-weight: 600; font-size: 13.5px; }
.dtr .deb small { display: block; color: var(--ink-muted); font-weight: 400; font-size: 11.5px; margin-top: 1px; }
.dtr .amt { font-weight: 700; font-size: 14px; }
.dtr .amt small { display: block; color: var(--ink-muted); font-weight: 400; font-size: 11px; }
.prog { height: 5px; background: var(--track); border-radius: 20px; overflow: hidden; margin-top: 5px; }
.prog i { display: block; height: 100%; background: var(--brand); border-radius: 20px; }
.owner-cell { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.chev { color: var(--ink-muted); justify-self: end; }

/* Dossier detail */
.back { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); margin-bottom: 18px; transition: color 0.15s; }
.back:hover { color: var(--ink); }
.dossier-layout { display: grid; grid-template-columns: 270px 1fr 240px; gap: 20px; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 14px; }
.info-list .row .k { font-size: 11.5px; color: var(--ink-muted); margin-bottom: 3px; }
.info-list .row .v { font-size: 14px; font-weight: 600; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 10px 13px; font-size: 13px; color: var(--ink-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color 0.15s; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--brand-deep); border-bottom-color: var(--brand); font-weight: 600; }
.frise { position: relative; padding-left: 4px; }
.frise .fstep { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.frise .fstep:last-child { padding-bottom: 0; }
.frise .fstep::before { content: ''; position: absolute; left: 8px; top: 20px; bottom: -2px; width: 2px; background: var(--line-strong); }
.frise .fstep:last-child::before { display: none; }
.frise .fdot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--line-strong); background: var(--surface); z-index: 1; margin-top: 1px; }
.frise .fstep.done .fdot { background: var(--brand); border-color: var(--brand); }
.frise .fstep.done::before { background: var(--brand); opacity: 0.5; }
.frise .fstep.current .fdot { background: var(--brand-bright); border-color: var(--brand-bright); box-shadow: 0 0 0 5px var(--brand-glow); }
.frise .fname { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.frise .fstep.done .fname, .frise .fstep.current .fname { color: var(--ink); }
.frise .fstep.current .fname { font-weight: 600; }
.frise .fstep.todo .fname { color: var(--ink-muted); }

.timeline-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { border: none; }
.timeline-item .tl-ic { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; }
.timeline-item .tl-ic svg { width: 14px; height: 14px; }
.timeline-item .tt b { font-size: 13px; }
.timeline-item .tt p { font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }
.timeline-item .tt .meta { font-size: 11px; color: var(--ink-muted); margin-top: 5px; display: flex; gap: 8px; align-items: center; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 8px; transition: border-color 0.15s; }
.doc-row:hover { border-color: var(--line-strong); }
.doc-row svg { width: 18px; height: 18px; color: var(--brand); }
.doc-row .dn { font-size: 13px; font-weight: 500; flex: 1; }
.doc-row .dm { font-size: 11.5px; color: var(--ink-muted); }

/* ============================ LITIGES ============================ */
.litiges-top { grid-template-columns: 380px 1fr; align-items: stretch; }
.donut-legend { display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.leg { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.leg .sw { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.leg .ln { flex: 1; color: var(--ink-2); }
.leg .lv { font-weight: 600; font-variant-numeric: tabular-nums; }
.leg .lc { color: var(--ink-muted); font-size: 11.5px; }
.litige-row { display: grid; grid-template-columns: 14px 1fr 120px 100px 96px 96px; gap: 14px; align-items: center; padding: 13px 16px; border-radius: 12px; border: 1px solid transparent; }
.litige-row:hover { background: var(--hover); border-color: var(--line); }
.litige-row .cat-dot { width: 11px; height: 11px; border-radius: 3px; }

/* Divers */
.pill-count { font-size: 12px; color: var(--ink-muted); font-weight: 500; margin-left: 8px; }
.empty { text-align: center; padding: 50px; color: var(--ink-muted); font-size: 14px; }
.tooltip {
  position: fixed; z-index: 100; pointer-events: none; background: #ffffff;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 12px; font-size: 12px;
  box-shadow: 0 12px 30px -10px rgba(24,42,32,0.28); transition: opacity 0.12s; max-width: 240px; color: var(--ink);
}
.tooltip b { font-size: 13px; }
.tooltip .tk { color: var(--ink-muted); }

/* Animations */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: rise 0.55s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: 0.05s; }
.stagger > *:nth-child(3) { animation-delay: 0.1s; }
.stagger > *:nth-child(4) { animation-delay: 0.15s; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Responsive */
@media (max-width: 1080px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid, .score-wrap, .litiges-top { grid-template-columns: 1fr; }
  .dossier-layout { grid-template-columns: 1fr; }
  .working { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 50; transform: translateX(-100%); transition: transform 0.3s var(--ease); width: 250px; }
  .sidebar.open { transform: none; }
  .hero-kpis { grid-template-columns: 1fr; }
  .view { padding: 20px; }
  .dtr, .dth { grid-template-columns: 1fr 90px 70px; }
  .dtr .stage-cell, .dtr .owner-cell, .dth.hide, .chev { display: none; }
  .menu-btn { display: grid !important; }
}
.menu-btn { display: none; width: 38px; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); place-items: center; }
.menu-btn svg { width: 18px; height: 18px; }
