/* ============================================================
   EARL DREVET · Pilotage — feuille de style unique
   Maquette statique (démonstration) — RETRP
   ============================================================ */

:root {
  color-scheme: light;
  --green-950: #0F2B20;
  --green-900: #163A2C;
  --green:     #1F4D3A;
  --green-600: #2B6B50;
  --green-400: #4E9472;
  --green-100: #DDEBE2;
  --green-050: #EEF5F0;
  --wheat:     #C9A14A;
  --wheat-600: #A98332;
  --wheat-100: #F4EACF;
  --wheat-050: #FBF6E8;

  --bg:        #F4EFE4;
  --bg-2:      #ECE5D6;
  --card:      #FFFDF9;
  --card-2:    #FAF6EE;
  --ink:       #17221C;
  --ink-2:     #4E5A53;
  --muted:     #8A948D;
  --line:      #E7E0D1;
  --hair:      rgba(23, 34, 28, 0.08);
  --grid:      #ECE6D9;
  --axis:      #D4CCBB;

  --good:      #1E8E3E;
  --good-bg:   #E3F3E7;
  --warning:   #D99A1A;
  --warning-bg:#FBF0D6;
  --serious:   #D9703A;
  --serious-bg:#FBE6DA;
  --critical:  #C8372D;
  --critical-bg:#F9E0DD;
  --info:      #3A7BD5;
  --info-bg:   #E2ECFA;

  /* cultures (ordre fixe, palette validée) */
  --c-ble: #D9A630; --c-orge: #9E4A1F; --c-colza: #A9B225; --c-feverole: #B06BBE;
  --c-tournesol: #C8502F; --c-luzerne: #4F9BE8; --c-mais: #1F7A3A; --c-pois: #44B5AF; --c-jachere: #B9B3A6;
  --c-paille: #CFC2A0;
  --water: #2F7FB8; --water-100: #D9E9F5; --rain: #5B8DB8;

  --sidebar-bg: #163A2C;
  --sidebar-ink: #E9F0EA;
  --sidebar-muted: #9DB7A8;

  --shadow-sm: 0 1px 2px rgba(23, 34, 28, 0.04), 0 2px 8px rgba(23, 34, 28, 0.04);
  --shadow:    0 1px 2px rgba(23, 34, 28, 0.04), 0 10px 30px -12px rgba(23, 34, 28, 0.14);
  --shadow-lg: 0 2px 4px rgba(23, 34, 28, 0.05), 0 24px 60px -20px rgba(23, 34, 28, 0.22);
  --r: 18px; --r-sm: 12px; --r-xs: 8px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --sidebar-w: 268px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0F1613; --bg-2: #141C18; --card: #182019; --card-2: #1E2822;
    --ink: #F1EEE6; --ink-2: #B9BDB5; --muted: #7E867F; --line: #26302A; --hair: rgba(255,255,255,0.08);
    --grid: #222B25; --axis: #33403A;
    --green-100: #1E3A2D; --green-050: #192E24; --wheat-100: #3A3120; --wheat-050: #2A2418; --wheat: #D8B35C;
    --good: #3FB463; --good-bg: #173524; --warning: #E7B04A; --warning-bg: #3A2E14; --serious: #E8865A; --serious-bg: #3C2418;
    --critical: #E05A50; --critical-bg: #3C1C1A; --info: #6AA2E8; --info-bg: #1A2A3F;
    --c-ble: #B98A14; --c-orge: #B04E1E; --c-colza: #919413; --c-feverole: #9B55A5;
    --c-tournesol: #D4512C; --c-luzerne: #3B86D6; --c-mais: #277C41; --c-pois: #1AA7A7; --c-jachere: #5E5A52; --c-paille: #8A7E5E;
    --water: #4F9BD9; --water-100: #16293A; --rain: #6FA3D4;
    --sidebar-bg: #0B120E; --sidebar-ink: #E9F0EA; --sidebar-muted: #86A092;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3); --shadow: 0 12px 32px -14px rgba(0,0,0,0.6); --shadow-lg: 0 24px 60px -20px rgba(0,0,0,0.7);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 100% -10%, rgba(201,161,74,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(31,77,58,0.10), transparent 60%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.small { font-size: 12.5px; }
.xs { font-size: 11.5px; }
.mono { font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--sidebar-bg); color: var(--sidebar-ink); padding: 22px 18px 18px;
  display: flex; flex-direction: column; gap: 22px;
  background-image:
    radial-gradient(500px 300px at 120% 0%, rgba(201,161,74,0.18), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 14px);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(145deg, var(--wheat), #E8C877); display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgba(201,161,74,0.8); flex: none; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { font-weight: 800; letter-spacing: 0.02em; font-size: 14.5px; line-height: 1.15; }
.brand-name small { display: block; font-weight: 500; font-size: 11.5px; color: var(--sidebar-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-section { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sidebar-muted); padding: 14px 12px 6px; font-weight: 700; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: var(--sidebar-ink); font-weight: 600; font-size: 14px; position: relative;
  transition: background .18s ease, transform .18s ease;
}
.nav a svg { width: 19px; height: 19px; color: var(--sidebar-muted); transition: color .18s ease; flex: none; }
.nav a:hover { background: rgba(255,255,255,0.06); }
.nav a:hover svg { color: var(--wheat); }
.nav a.active { background: rgba(255,255,255,0.10); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.nav a.active::before { content: ""; position: absolute; left: -18px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--wheat); }
.nav a.active svg { color: var(--wheat); }
.nav .badge { margin-left: auto; font-size: 11px; font-weight: 800; background: var(--wheat); color: #2B2410; padding: 2px 8px; border-radius: 999px; }

.sidebar-card {
  margin-top: auto; border-radius: 14px; padding: 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
}
.sidebar-card .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sidebar-muted); font-weight: 700; }
.sidebar-card .val { font-weight: 800; font-size: 20px; margin-top: 4px; }
.sidebar-card .bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.10); margin-top: 10px; overflow: hidden; }
.sidebar-card .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--wheat), #E8C877); }
.sidebar-credit { font-size: 11px; color: var(--sidebar-muted); line-height: 1.45; padding: 4px 6px 0; }
.sidebar-credit strong { color: var(--sidebar-ink); font-weight: 700; }

/* ---------- main / topbar ---------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: 14px 40px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair);
}
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs b { color: var(--ink); font-weight: 700; }
.crumbs span.sep { opacity: .6; }
.search { margin-left: auto; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; width: 300px; color: var(--muted); font-size: 13px; box-shadow: var(--shadow-sm); }
.search svg { width: 16px; height: 16px; flex: none; }
.icon-btn svg, .menu-btn svg { width: 18px; height: 18px; }
.search kbd { margin-left: auto; font-family: var(--font); font-size: 11px; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--muted); background: var(--card-2); }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--ink-2); position: relative; box-shadow: var(--shadow-sm); transition: transform .15s ease; }
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn .dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--critical); box-shadow: 0 0 0 2px var(--card); }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(145deg, var(--green), var(--green-600)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13.5px; letter-spacing: 0.04em; box-shadow: 0 8px 18px -8px rgba(31,77,58,0.7); }
.avatar.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 11.5px; }
.avatar.wheat { background: linear-gradient(145deg, var(--wheat-600), var(--wheat)); color: #2B2410; }
.avatar.slate { background: linear-gradient(145deg, #4E5A53, #7A867F); }
.user { display: flex; align-items: center; gap: 10px; }
.user .who { line-height: 1.15; }
.user .who b { display: block; font-size: 13.5px; }
.user .who span { font-size: 11.5px; color: var(--muted); }

.content { padding: 28px 40px 56px; display: flex; flex-direction: column; gap: 24px; max-width: 1480px; width: 100%; }

/* page header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head .eyebrow { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wheat-600); font-weight: 800; margin-bottom: 6px; }
.page-head h1 { font-family: var(--display); font-weight: 500; font-size: 34px; letter-spacing: -0.015em; line-height: 1.1; font-variation-settings: "opsz" 144, "SOFT" 30; }
.page-head h1 em { font-style: italic; color: var(--green-600); }
.page-head p { color: var(--ink-2); margin-top: 8px; max-width: 62ch; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 13.5px; border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: linear-gradient(135deg, var(--green), var(--green-600)); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -10px rgba(31,77,58,0.75); }
.btn.wheat { background: linear-gradient(135deg, var(--wheat), #E1BE63); border-color: transparent; color: #2B2410; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.sm { padding: 7px 12px; font-size: 12.5px; border-radius: 10px; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px 24px; position: relative; }
.card.flush { padding: 0; overflow: hidden; }
.card.tint-green { background: linear-gradient(160deg, var(--green-050), var(--card)); }
.card.tint-wheat { background: linear-gradient(160deg, var(--wheat-050), var(--card)); }
.card.dark { background: radial-gradient(600px 300px at 100% 0%, rgba(201,161,74,0.22), transparent 60%), linear-gradient(150deg, var(--green-900), var(--green)); color: #F1F5F1; border-color: transparent; }
.card.dark .muted, .card.dark .ink2 { color: #A9C2B3; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.card-head h2 { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.card-head .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.card-head .tools { display: flex; gap: 6px; align-items: center; flex: none; }
.card.flush .card-head { padding: 20px 24px 0; margin-bottom: 14px; }

.grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.content > * { min-width: 0; }
.main { overflow-x: clip; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-32 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.grid-23 { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.kpis.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kpi::after { content: ""; position: absolute; inset: auto -30px -40px auto; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, var(--kpi-glow, rgba(201,161,74,0.16)), transparent 70%); pointer-events: none; }
.kpi .lbl { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); letter-spacing: 0.02em; }
.kpi .lbl .ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--green-050); color: var(--green-600); }
.kpi .lbl .ic svg { width: 15px; height: 15px; }
.kpi .val { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.kpi .val small { font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.kpi .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.kpi .spark { height: 34px; width: 100%; }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; line-height: 1.3; }
.delta.up { color: var(--good); background: var(--good-bg); }
.delta.down { color: var(--critical); background: var(--critical-bg); }
.delta.flat { color: var(--ink-2); background: var(--bg-2); }
.delta svg { width: 11px; height: 11px; }

/* ---------- pills / chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.01em; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.good { color: var(--good); background: var(--good-bg); }
.pill.warning { color: var(--warning); background: var(--warning-bg); }
.pill.serious { color: var(--serious); background: var(--serious-bg); }
.pill.critical { color: var(--critical); background: var(--critical-bg); }
.pill.info { color: var(--info); background: var(--info-bg); }
.pill.neutral { color: var(--ink-2); background: var(--bg-2); }
.pill.green { color: var(--green-600); background: var(--green-100); }
.pill.wheat { color: var(--wheat-600); background: var(--wheat-100); }
.chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.chip i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---------- tables ---------- */
.table-wrap { overflow: auto; max-height: 640px; border-radius: 0 0 var(--r) var(--r); }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th { position: sticky; top: 0; z-index: 2; background: var(--card-2); color: var(--muted); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.right, .tbl td.right { text-align: right; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.tbl tbody tr { transition: background .15s ease; }
.tbl tbody tr:hover { background: var(--green-050); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td b { font-weight: 700; }
.tbl .cell-title { font-weight: 700; }
.tbl .cell-sub { color: var(--muted); font-size: 12px; margin-top: 1px; }
.tbl tfoot td { background: var(--card-2); font-weight: 800; border-top: 1px solid var(--line); position: sticky; bottom: 0; white-space: nowrap; }
.tbl td.num { white-space: nowrap; }
.tbl a.row-link { color: var(--green-600); font-weight: 700; }
.tbl a.row-link:hover { text-decoration: underline; }
.idx { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--c); }

/* progress bar inline */
.meter { height: 8px; border-radius: 8px; background: var(--bg-2); overflow: hidden; min-width: 80px; }
.meter i { display: block; height: 100%; border-radius: 8px; background: var(--green-600); }
.meter.wheat i { background: var(--wheat); }
.meter.water i { background: var(--water); }
.meter.warning i { background: var(--warning); }
.meter.critical i { background: var(--critical); }
.meter-row { display: flex; align-items: center; gap: 10px; }
.meter-row .num { min-width: 42px; text-align: right; font-size: 12.5px; color: var(--ink-2); font-weight: 700; }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: flex-start; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.list-item:first-child { padding-top: 0; }
.list-item .when { flex: none; width: 58px; font-size: 11.5px; font-weight: 800; color: var(--muted); padding-top: 3px; text-transform: uppercase; letter-spacing: 0.04em; }
.list-item .what b { display: block; font-size: 14px; }
.list-item .what span { color: var(--ink-2); font-size: 12.5px; }
.list-item .state { margin-left: auto; flex: none; }
.step { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.step svg { width: 15px; height: 15px; }
.step.fait { background: var(--good-bg); color: var(--good); }
.step.encours { background: var(--info-bg); color: var(--info); }
.step.aujourdhui { background: var(--wheat-100); color: var(--wheat-600); box-shadow: 0 0 0 4px var(--wheat-050); }
.step.prevu { background: var(--bg-2); color: var(--muted); }

.alert { display: flex; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--hair); background: var(--card-2); }
.alert .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.alert .ic svg { width: 18px; height: 18px; }
.alert.warning .ic { background: var(--warning-bg); color: var(--warning); }
.alert.serious .ic { background: var(--serious-bg); color: var(--serious); }
.alert.critical .ic { background: var(--critical-bg); color: var(--critical); }
.alert.info .ic { background: var(--info-bg); color: var(--info); }
.alert b { display: block; font-size: 13.5px; }
.alert p { color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.alert .cta { margin-left: auto; flex: none; align-self: center; }

/* ---------- charts (SVG) ---------- */
.chart-scroll { overflow-x: auto; overflow-y: hidden; }
.chart { width: 100%; height: auto; font-family: var(--font); }
.chart .grid-l { stroke: var(--grid); stroke-width: 1; }
.chart .axis-l { stroke: var(--axis); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .lbl { fill: var(--ink-2); font-size: 11.5px; font-weight: 700; }
.chart .lbl-strong { fill: var(--ink); font-size: 12px; font-weight: 800; }
.chart .mark { transition: opacity .15s ease, filter .15s ease; }
.chart g.hit:hover .mark { filter: brightness(1.08); }
.chart g.hit .tip { opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.chart g.hit:hover .tip { opacity: 1; }
.chart .tip rect { fill: var(--ink); rx: 7; }
.chart .tip text { fill: var(--card); font-size: 11.5px; font-weight: 700; }
.chart .tip .tv { fill: var(--wheat); }
.chart .quota { stroke: var(--critical); stroke-width: 1.5; stroke-dasharray: 5 4; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 12.5px; color: var(--ink-2); align-items: center; }
.legend .lg { display: inline-flex; align-items: center; gap: 7px; }
.legend .lg i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.legend .lg i.line { width: 16px; height: 2px; border-radius: 2px; }
.legend .lg i.dash { width: 16px; height: 0; border-top: 2px dashed var(--c); background: none; }
.legend .lg b { color: var(--ink); font-weight: 800; }

/* donut */
.donut-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.donut { width: 220px; height: 220px; }
.donut-center { text-anchor: middle; }
.donut-list { display: flex; flex-direction: column; gap: 9px; }
.donut-list .row { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 10px; align-items: center; font-size: 13px; }
.donut-list .row i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.donut-list .row .ha { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.donut-list .row .pct { font-weight: 800; min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }

/* small multiples */
.multi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.multi .cell { background: var(--card-2); border-radius: 14px; padding: 12px 14px 8px; border: 1px solid var(--hair); }
.multi .cell .t { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; font-weight: 800; }
.multi .cell .t span { color: var(--muted); font-weight: 600; font-size: 11.5px; }

/* ---------- parcel map ---------- */
.map-card { padding: 0; overflow: hidden; }
.map-stage { position: relative; background:
    radial-gradient(900px 500px at 80% 20%, rgba(201,161,74,0.10), transparent 60%),
    linear-gradient(180deg, var(--card-2), var(--card)); }
.map { width: 100%; height: auto; }
.map .terrain { fill: none; stroke: var(--line); stroke-width: 1; opacity: .8; }
.map .river { fill: none; stroke: var(--water); stroke-width: 5; stroke-linecap: round; opacity: .55; }
.map .river-glow { fill: none; stroke: var(--water); stroke-width: 14; stroke-linecap: round; opacity: .10; }
.map .road { fill: none; stroke: var(--axis); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.map .road-inner { fill: none; stroke: var(--card); stroke-width: 0.8; stroke-dasharray: 6 8; stroke-linecap: round; opacity: .9; }
.map .village circle { fill: var(--ink); }
.map .village text { fill: var(--ink-2); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.map .parcel { cursor: pointer; }
.map .parcel polygon { fill: var(--c); fill-opacity: .82; stroke: var(--card); stroke-width: 2.2; stroke-linejoin: round; transition: fill-opacity .18s ease, transform .18s ease, filter .18s ease; transform-box: fill-box; transform-origin: center; }
.map .parcel .hatch { fill: url(#hatchIrr); stroke: none; pointer-events: none; }
.map .parcel text { fill: #fff; font-size: 11.5px; font-weight: 800; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: rgba(0,0,0,0.28); stroke-width: 2.5px; }
.map .parcel text.ha { font-size: 10px; font-weight: 700; opacity: .92; }
.map .parcel:hover polygon { fill-opacity: 1; transform: scale(1.025); filter: drop-shadow(0 10px 14px rgba(23,34,28,0.28)); }
.map .parcel .mtip { opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.map .parcel:hover .mtip { opacity: 1; }
.map .mtip rect { fill: var(--ink); rx: 8; }
.map .mtip text { fill: var(--card); font-size: 11.5px; font-weight: 700; stroke: none; text-anchor: start; paint-order: normal; }
.map .mtip text.tv { fill: var(--wheat); }
.map .compass text { fill: var(--muted); font-size: 10px; font-weight: 800; }
.map .compass path { fill: var(--ink-2); }
.map .scale line { stroke: var(--ink-2); stroke-width: 1.5; }
.map .scale text { fill: var(--muted); font-size: 10px; font-weight: 700; }
.map-legend { position: absolute; left: 18px; bottom: 18px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--hair); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: repeat(3, auto); gap: 6px 16px; font-size: 12px; box-shadow: var(--shadow); }
.map-legend .lg { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink-2); }
.map-legend .lg i { width: 11px; height: 11px; border-radius: 3px; background: var(--c); }
.map-legend .lg i.hatch { background: repeating-linear-gradient(135deg, var(--ink-2) 0 1px, transparent 1px 4px); opacity: .7; }
.map-communes { position: absolute; left: 18px; top: 18px; display: flex; flex-direction: column; gap: 6px; }
.map-communes .cm { background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--hair); border-radius: 10px; padding: 6px 10px; font-size: 11.5px; font-weight: 700; display: flex; justify-content: space-between; gap: 14px; min-width: 190px; box-shadow: var(--shadow-sm); }
.map-communes .cm span { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- weather ---------- */
.weather { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wx { border-radius: 14px; padding: 12px 8px 10px; text-align: center; background: var(--card-2); border: 1px solid var(--hair); transition: transform .15s ease; }
.wx:hover { transform: translateY(-2px); }
.wx.today { background: linear-gradient(170deg, var(--wheat-100), var(--card-2)); border-color: rgba(201,161,74,0.4); }
.wx .d { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.wx svg { width: 38px; height: 38px; margin: 8px auto 6px; }
.wx .t { font-weight: 800; font-size: 14px; }
.wx .t span { color: var(--muted); font-weight: 600; }
.wx .r { font-size: 11px; color: var(--rain); font-weight: 700; margin-top: 4px; }
.wx .w { font-size: 10.5px; color: var(--muted); }

/* ---------- misc widgets ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.stat { background: var(--card-2); border-radius: 14px; padding: 14px 16px; border: 1px solid var(--hair); }
.stat .l { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.stat .v { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; line-height: 1.1; }
.stat .v small { font-size: 12.5px; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.stat .s { font-size: 12px; color: var(--ink-2); margin-top: 4px; }

.ring { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--bg-2); stroke-width: 12; }
.ring .prog { fill: none; stroke: var(--water); stroke-width: 12; stroke-linecap: round; }
.ring .center { text-align: center; position: relative; }
.ring .center b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.ring .center span { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

.timeline { position: relative; display: flex; flex-direction: column; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 70px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.tl { display: grid; grid-template-columns: 56px 30px 1fr; gap: 10px; align-items: flex-start; padding: 10px 0; }
.tl .date { font-size: 12px; font-weight: 800; color: var(--muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.tl .node { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--card); background: var(--green-600); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--green-100); position: relative; z-index: 1; }
.tl .node svg { width: 14px; height: 14px; color: #fff; }
.tl .node.prevu { background: var(--card); box-shadow: 0 0 0 3px var(--wheat-100); border-color: var(--wheat); }
.tl .node.prevu svg { color: var(--wheat-600); }
.tl .body b { display: block; font-size: 14px; }
.tl .body span { display: block; color: var(--ink-2); font-size: 12.5px; }
.tl .body .meta { color: var(--muted); font-size: 11.5px; margin-top: 2px; }

.toggle { display: inline-flex; align-items: center; width: 44px; height: 26px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); position: relative; cursor: pointer; transition: background .2s ease; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform .2s ease; }
.toggle.on { background: var(--green-600); border-color: var(--green-600); }
.toggle.on::after { transform: translateX(18px); }

.integration { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.integration:last-child { border-bottom: 0; }
.integration .logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 12px; color: #fff; }
.integration .txt b { display: block; font-size: 14px; }
.integration .txt span { color: var(--muted); font-size: 12.5px; }
.integration .toggle { margin-left: auto; }

.kv { display: grid; grid-template-columns: 180px 1fr; gap: 10px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; font-weight: 600; }
.kv dd .pill { vertical-align: middle; }

.tabs { display: inline-flex; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 12px; }
.tabs a { padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--ink-2); transition: background .15s ease, color .15s ease; }
.tabs a.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs a:hover:not(.active) { color: var(--ink); }

.gauge-list { display: flex; flex-direction: column; gap: 14px; }
.gauge { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.gauge .n { font-weight: 700; font-size: 13.5px; }
.gauge .n span { color: var(--muted); font-weight: 600; font-size: 12px; margin-left: 6px; }
.gauge .v { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.gauge .meter { grid-column: 1 / -1; height: 10px; }

.hero-num { font-size: 40px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.hero-num small { font-size: 16px; color: var(--muted); font-weight: 700; letter-spacing: 0; }

.credit { text-align: center; color: var(--muted); font-size: 12px; padding-top: 8px; }
.credit b { color: var(--ink-2); font-weight: 700; }

/* ---------- modal ---------- */
.modal-scrim { position: fixed; inset: 0; background: rgba(15, 22, 19, 0.45); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 60; padding: 20px; }
.modal-scrim.open { display: flex; }
.modal { background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lg); width: min(520px, 100%); padding: 26px 28px; border: 1px solid var(--hair); animation: pop .25s ease; }
.modal h3 { font-size: 18px; font-weight: 800; }
.modal p { color: var(--ink-2); margin-top: 8px; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- reveal animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal > * { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; }
  .reveal > *:nth-child(1) { animation-delay: .02s; } .reveal > *:nth-child(2) { animation-delay: .08s; }
  .reveal > *:nth-child(3) { animation-delay: .14s; } .reveal > *:nth-child(4) { animation-delay: .20s; }
  .reveal > *:nth-child(5) { animation-delay: .26s; } .reveal > *:nth-child(6) { animation-delay: .32s; }
  .reveal > *:nth-child(7) { animation-delay: .38s; } .reveal > *:nth-child(8) { animation-delay: .44s; }
  .reveal > *:nth-child(n+9) { animation-delay: .5s; }
  .content > .reveal:nth-of-type(2) > * { animation-delay: calc(var(--d, 0s) + .25s); }
  .chart .grow { transform-origin: bottom; animation: grow .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: .3s; }
  .chart .draw { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.6s ease-out forwards; animation-delay: .35s; }
  .chart .fade { animation: fadein .9s ease both; animation-delay: .9s; }
  .map .parcel polygon { animation: fadein .6s ease both; }
  .ring .prog { animation: ring 1.2s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes ring { from { stroke-dasharray: 0 1000; } }

/* ---------- responsive ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15,22,19,0.45); z-index: 40; display: none; }
@media (max-width: 1240px) {
  .kpis, .kpis.kpis-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-3 { grid-column: span 2; }
}
@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; width: 288px; transform: translateX(-100%); transition: transform .28s cubic-bezier(.2,.7,.2,1); box-shadow: var(--shadow-lg); }
  body.drawer-open .sidebar { transform: none; }
  body.drawer-open .scrim { display: block; }
  .menu-btn { display: inline-flex; }
  .topbar, .content { padding-left: 22px; padding-right: 22px; }
  .search { width: 220px; }
  .grid-32, .grid-23, .grid-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .weather { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .content { padding-top: 20px; gap: 18px; }
  .kpis, .kpis.kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { min-height: 136px; padding: 16px; }
  .kpi .val { font-size: 24px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .span-3 { grid-column: span 1; }
  .multi { grid-template-columns: 1fr 1fr; }
  .page-head h1 { font-size: 28px; }
  .search { display: none; }
  .user .who { display: none; }
  .card { padding: 18px; }
  .card.flush .card-head { padding: 18px 18px 0; }
  .weather { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wx:nth-child(n+5) { display: none; }
  .map-legend { position: static; margin: 0; border-radius: 0; border: 0; border-top: 1px solid var(--hair); grid-template-columns: repeat(2, auto); box-shadow: none; backdrop-filter: none; background: var(--card); }
  .map-communes { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 10px; }
  .tabs { width: 100%; overflow-x: auto; }
  .timeline::before { left: 58px; }
  .tl { grid-template-columns: 44px 30px 1fr; }
  .tl .date { font-size: 11px; }
  .list-item .when { width: 48px; }
  .list-item .state { display: none; }
  .hero-num { font-size: 32px; }
  .chart-scroll .chart { min-width: 540px; }
  .multi .cell .chart { min-width: 0; }
}

@media print {
  .sidebar, .topbar, .actions { display: none; }
  .app { grid-template-columns: 1fr; }
  .card, .kpi { box-shadow: none; break-inside: avoid; }
}


/* ============================================================
   Connexion (index.html) — EARL DREVET
   ============================================================ */
.login-body { margin: 0; background: var(--bg); color: var(--ink); min-height: 100vh; }
.login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }

.login-panel { position: relative; overflow: hidden; color: var(--sidebar-ink);
  background: radial-gradient(900px 520px at 110% 110%, rgba(201,161,74,.22) 0%, transparent 60%),
              radial-gradient(800px 500px at -10% -10%, #2B6B50 0%, transparent 55%),
              linear-gradient(160deg, var(--green-900) 0%, var(--green-950) 100%); }
.login-panel__inner { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100%; box-sizing: border-box; padding: clamp(28px, 4vw, 56px) clamp(24px, 5vw, 72px); }
.login-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 0; }
.login-brand .brand-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--wheat); display: grid; place-items: center; }
.login-brand .brand-mark svg { width: 24px; height: 24px; }
.login-brand .brand-name { font-weight: 800; letter-spacing: .02em; font-size: 1rem; display: grid; }
.login-brand .brand-name small { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .66rem; color: var(--sidebar-muted); }
.login-title { font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.08; margin: clamp(40px, 7vh, 90px) 0 18px; color: #fff; max-width: 15ch; letter-spacing: -.01em; }
.login-title em { font-style: italic; color: var(--wheat); }
.login-lead { font-size: 1.02rem; line-height: 1.65; color: var(--sidebar-ink); opacity: .85; max-width: 48ch; margin: 0 0 34px; }
.login-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 28px; justify-content: start; }
.login-stats li { display: grid; gap: 4px; padding-left: 14px; border-left: 2px solid rgba(201,161,74,.6); }
.login-stats strong { font-size: 1.45rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.login-stats span { font-size: .8rem; color: var(--sidebar-muted); }
.login-art { margin-top: auto; padding-top: 40px; }
.login-art__svg { width: 100%; max-width: 600px; height: auto; display: block; }
.login-credit { margin: 28px 0 0; font-size: .74rem; color: var(--sidebar-muted); }
.login-credit a { color: inherit; text-decoration: none; }
.login-credit strong { color: var(--wheat); font-weight: 700; }

.login-form-wrap { display: grid; place-items: center; padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 56px); background: var(--bg); }
.login-card { width: min(440px, 100%); box-sizing: border-box; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px -24px rgba(23,34,28,.28), 0 2px 8px rgba(23,34,28,.05); padding: clamp(26px, 3.4vw, 40px); display: grid; gap: 18px; animation: rise .55s cubic-bezier(.2,.7,.2,1) both; }
.login-card__head h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 2.1rem; margin: 6px 0 6px; letter-spacing: -.01em; color: var(--ink); }
.login-card__head p { margin: 0; color: var(--muted); font-size: .92rem; }
.login-kicker { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--green-600); }
.login-field { display: grid; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.login-field input { width: 100%; box-sizing: border-box; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); font: inherit; font-size: .95rem; transition: border-color .15s, box-shadow .15s, background .15s; }
.login-field input::placeholder { color: var(--muted); font-weight: 400; }
.login-field input:focus { outline: none; border-color: var(--green-600); background: var(--card); box-shadow: 0 0 0 4px var(--green-100); }
.login-pass { position: relative; display: block; }
.login-pass input { padding-right: 48px; }
.login-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.login-eye svg { width: 18px; height: 18px; }
.login-eye:hover { background: var(--bg-2); color: var(--ink); }
.login-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .84rem; }
.login-check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); cursor: pointer; }
.login-check input { accent-color: var(--green-600); width: 16px; height: 16px; }
.login-link { color: var(--green-600); text-decoration: none; font-weight: 600; }
.login-link:hover { text-decoration: underline; }
.login-error { margin: -6px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--critical-bg); color: var(--critical); font-size: .84rem; font-weight: 600; border: 1px solid rgba(200,55,45,.18); }
.login-btn { height: 50px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-size: .98rem; font-weight: 700; color: #fff; background: var(--green); border: 0; border-radius: 12px; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(31,77,58,.7); transition: background .15s, transform .15s; }
.login-btn:hover { background: var(--green-600); transform: translateY(-1px); }
.login-btn svg { width: 18px; height: 18px; transition: transform .2s; }
.login-btn:hover svg { transform: translateX(3px); }
.login-btn.is-loading { pointer-events: none; opacity: .85; }
.login-card.shake { animation: shake .4s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }
.login-foot { margin: 0; text-align: center; font-size: .74rem; color: var(--muted); }

@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-panel { min-height: auto; }
  .login-panel__inner { padding-bottom: 32px; }
  .login-title { margin-top: 28px; }
  .login-art { display: none; }
  .login-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .login-form-wrap { align-items: start; }
}
@media (max-width: 480px) {
  .login-stats { grid-template-columns: 1fr 1fr; }
  .login-row { flex-direction: column; align-items: flex-start; }
}

/* Déconnexion (barre latérale) */
.sidebar-logout { display: flex; align-items: center; gap: 10px; margin: 6px 14px 6px; padding: 9px 12px; border-radius: 8px; color: var(--sidebar-muted); text-decoration: none; font-size: .84rem; font-weight: 600; transition: background .15s, color .15s; }
.sidebar-logout svg { width: 18px; height: 18px; flex: none; }
.sidebar-logout:hover { background: rgba(255,255,255,.08); color: #fff; }
