/* YOULISE — charte : Deep Navy #04285D, Electric Blue #1F6BFF — style "dashboard" clair */
:root {
  --navy: #04285D; --blue: #1F6BFF; --blue-2: #4C8BFF; --blue-soft: #EEF3FF; --blue-line: #D6E2FF;
  --bg: #F5F7FC; --line: #E8ECF4; --line-2: #F0F2F7;
  --ink: #111C33; --ink-2: #3A4660; --muted: #7A869C; --white: #fff;
  --ok: #16A34A; --ok-bg: #E8F8EE; --warn: #E27B00; --warn-bg: #FFF4E5; --bad: #E5383B; --bad-bg: #FDECEC;
  --violet: #7C5CFC; --violet-bg: #F1EDFF; --grey-bg: #F1F3F7;
  --k-grey: #F4F5F8; --k-blue: #EEF4FF; --k-yellow: #FFF7E6; --k-green: #ECFAF1;
  --surface: #fff; --surface-2: #FAFBFD; --hover: #F8FAFF; --grey-hover: #E6EAF1; --line-3: #D7DEEA; --topbar: rgba(255,255,255,.85); --glass: rgba(255,255,255,.7);
  --tint-violet: #FBFAFF; --tint-warn: #FFFCF7; --tint-bad: #FFFBFB; --tint-ok: #FAFDFB; --track: #EEF1F7; --prev: #C9D3E3; --sk1: #EDF0F6; --sk2: #F7F9FC;
  color-scheme: light;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17,28,51,.04), 0 6px 24px rgba(17,28,51,.05);
  --shadow-lg: 0 12px 40px rgba(17,28,51,.14);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
svg.i { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
#app { display: flex; min-height: 100vh; }

/* ===== sidebar ===== */
.sidebar { width: 248px; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; flex-shrink: 0; z-index: 40; }
.sidebar[hidden] { display: none; }
.brand { padding: 22px 24px 18px; }
.brand img { height: 32px; display: block; }
nav { padding: 6px 14px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; flex: 1; }
nav a { color: var(--ink-2); padding: 10px 14px; border-radius: 10px; display: flex; align-items: center; gap: 12px; font-weight: 500; transition: background .15s, color .15s; }
nav a svg.i { color: var(--muted); }
nav a:hover { background: var(--grey-bg); color: var(--ink); }
nav a.active { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
nav a.active svg.i { color: var(--blue); }
nav a[hidden] { display: none; }
.side-card { margin: 14px; border-radius: 16px; padding: 18px; color: #fff; background: linear-gradient(150deg, #5B8CFF 0%, #1F6BFF 45%, #3B2FD9 100%); position: relative; overflow: hidden; }
.side-card:empty { display: none; }
.side-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.1); }
.side-card .sc-ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.18); display: grid; place-items: center; margin-bottom: 10px; }
.side-card b { display: block; font-size: 15px; }
.side-card .sc-v { font-size: 20px; font-weight: 800; margin: 4px 0 2px; }
.side-card p { margin: 0 0 12px; font-size: 12.5px; opacity: .85; }
.side-card a { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); color: var(--blue); font-weight: 600; font-size: 12.5px; padding: 7px 12px; border-radius: 8px; position: relative; z-index: 1; }
.side-card a svg.i { width: 14px; height: 14px; }

/* ===== topbar ===== */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 14px 32px; background: var(--topbar); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.topbar[hidden] { display: none; }
.burger { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; border-radius: 8px; }
.burger svg.i { width: 22px; height: 22px; }
.search { position: relative; flex: 1; max-width: 460px; }
.search .s-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.search input { padding: 10px 14px 10px 42px; background: var(--grey-bg); border-color: transparent; border-radius: 12px; }
.search input:focus { background: var(--surface); }
.s-res { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 420px; overflow-y: auto; }
.s-res[hidden] { display: none; }
.s-res a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); }
.s-res a:hover, .s-res a.sel { background: var(--blue-soft); }
.s-res .t2 { font-size: 12px; color: var(--muted); }
.s-res .grp { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px 4px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--grey-bg); }
.icon-btn svg.i { width: 20px; height: 20px; }
.icon-btn .dot { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; line-height: 1; }
.user { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 12px; font: inherit; color: var(--ink); text-align: left; }
.user:hover { background: var(--grey-bg); }
.user .u-n { font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.user .u-r { font-size: 12px; color: var(--muted); }
.user svg.i { color: var(--muted); width: 16px; height: 16px; }
.pop-wrap { position: relative; }
.pop { position: absolute; right: 0; top: calc(100% + 8px); width: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 50; }
.pop[hidden] { display: none; }
.pop h4 { margin: 6px 8px 8px; font-size: 13px; }
.pop .pi { display: flex; gap: 10px; align-items: flex-start; padding: 9px 8px; border-radius: 10px; color: var(--ink); font-size: 13px; }
.pop a.pi:hover, .pop button.pi:hover { background: var(--grey-bg); }
.pop button.pi { width: 100%; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; align-items: center; }
#me-pop { width: 220px; }

/* ===== avatars & icon tiles ===== */
.av { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 12.5px; color: #fff; flex-shrink: 0; letter-spacing: .02em; }
.av.sm { width: 28px; height: 28px; font-size: 10.5px; }
.av.lg { width: 40px; height: 40px; font-size: 14px; }
.av.c0 { background: linear-gradient(135deg, #5B8CFF, #1F6BFF); } .av.c1 { background: linear-gradient(135deg, #34D399, #16A34A); }
.av.c2 { background: linear-gradient(135deg, #FDBA74, #F97316); } .av.c3 { background: linear-gradient(135deg, #A78BFA, #7C5CFC); }
.av.c4 { background: linear-gradient(135deg, #F472B6, #DB2777); } .av.c5 { background: linear-gradient(135deg, #22D3EE, #0891B2); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who > div { min-width: 0; }
.tile { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.tile.blue { background: var(--blue-soft); color: var(--blue); } .tile.green { background: var(--ok-bg); color: var(--ok); }
.tile.orange { background: var(--warn-bg); color: var(--warn); } .tile.violet { background: var(--violet-bg); color: var(--violet); }
.tile.red { background: var(--bad-bg); color: var(--bad); } .tile.grey { background: var(--grey-bg); color: var(--ink-2); }

/* ===== page head ===== */
.page-head { display: flex; align-items: flex-end; gap: 16px; padding: 26px 32px 4px; flex-wrap: wrap; }
.page-head[hidden] { display: none; }
.page-head > div:first-child { flex: 1; min-width: 220px; }
.page-head h1 { font-size: 24px; margin: 0; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head p:empty { display: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.view { padding: 20px 32px 60px; }

/* ===== buttons & forms ===== */
.btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 9px 16px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: all .15s; white-space: nowrap; }
.btn svg.i { width: 16px; height: 16px; }
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(31,107,255,.25); }
.btn.primary:hover { background: #1557d6; color: #fff; }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.navy:hover { background: #0a3a80; color: #fff; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); background: var(--bad-bg); }
.btn.sm { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.pill-select { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; color: var(--ink-2); }
.pill-select select { border: 0; padding: 9px 2px; width: auto; background: transparent; font-weight: 600; cursor: pointer; }
.pill-select select:focus { outline: none; }
.link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--blue); }
.link svg.i { width: 15px; height: 15px; }

input, select, textarea { width: 100%; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,107,255,.12); }
input:disabled, select:disabled, textarea:disabled { background: var(--grey-bg); color: var(--ink-2); }
textarea { min-height: 76px; resize: vertical; }
label.f { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
label.f span { display: block; margin-bottom: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.right { text-align: right; } .muted { color: var(--muted); } .bold { font-weight: 600; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ===== cards ===== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 20px; min-width: 0; }
.card h2 { font-size: 16px; margin: 0 0 16px; color: var(--ink); font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid > .card { margin-bottom: 0; }
.grid + .grid, .grid + .card { margin-top: 20px; }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.kpi .k-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.kpi .k-ic svg.i { width: 22px; height: 22px; }
.kpi .k-ic.blue { background: linear-gradient(135deg, #5B8CFF, #1F6BFF); box-shadow: 0 6px 16px rgba(31,107,255,.3); }
.kpi .k-ic.green { background: linear-gradient(135deg, #4ADE80, #16A34A); box-shadow: 0 6px 16px rgba(22,163,74,.28); }
.kpi .k-ic.orange { background: linear-gradient(135deg, #FDBA74, #F97316); box-shadow: 0 6px 16px rgba(249,115,22,.28); }
.kpi .k-ic.violet { background: linear-gradient(135deg, #A78BFA, #7C5CFC); box-shadow: 0 6px 16px rgba(124,92,252,.28); }
.kpi .k-ic.navy { background: linear-gradient(135deg, #1D4F9A, #04285D); }
.kpi > div:last-child { min-width: 0; }
.kpi .l { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.kpi .v { font-size: 22px; font-weight: 800; color: var(--ink); margin-top: 2px; white-space: nowrap; letter-spacing: -.01em; }
.kpi .v small { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi .s { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 12px; }
.trend.up { color: var(--ok); } .trend.down { color: var(--bad); } .trend.flat { color: var(--muted); }
.trend svg.i { width: 13px; height: 13px; stroke-width: 2.4; }
.dash-3 { grid-template-columns: 1.25fr 1fr 1.15fr; }
.dash-2 { grid-template-columns: 1fr 1.6fr; }
.two { grid-template-columns: 1.4fr 1fr; }

/* ===== tables ===== */
table.t { width: 100%; border-collapse: separate; border-spacing: 0; }
.t th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.t thead th:first-child { border-top-left-radius: 10px; } .t thead th:last-child { border-top-right-radius: 10px; }
.t td { padding: 12px 10px; font-size: 13.5px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tbody tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; } .t tr.click:hover td { background: var(--hover); }
.t .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.t tfoot td { font-weight: 700; color: var(--ink); background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 0; }
.t tfoot tr td:first-child { border-bottom-left-radius: 10px; } .t tfoot tr td:last-child { border-bottom-right-radius: 10px; }
.table-wrap { overflow-x: auto; }
.card > .table-wrap, .card > table.t { margin: -4px -6px; width: calc(100% + 12px); }
.empty { color: var(--muted); padding: 26px; text-align: center; }

/* ===== badges / pills ===== */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.nodot::before { display: none; }
.b-grey { background: var(--grey-bg); color: #5B6578; } .b-blue { background: var(--blue-soft); color: var(--blue); }
.b-ok { background: var(--ok-bg); color: var(--ok); } .b-warn { background: var(--warn-bg); color: var(--warn); } .b-bad { background: var(--bad-bg); color: var(--bad); }
.b-violet { background: var(--violet-bg); color: var(--violet); }
.meta { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.meta svg.i { width: 14px; height: 14px; }

/* ===== tabs ===== */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.tabs { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.tabs a:hover { background: var(--grey-bg); }
.tabs a.on { background: var(--blue); color: #fff; }
.tabs a .n { background: rgba(0,0,0,.06); border-radius: 999px; padding: 0 7px; font-size: 11.5px; }
.tabs a.on .n { background: rgba(255,255,255,.22); }

/* ===== progress ===== */
.prog-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.prog-item + .prog-item { border-top: 1px solid var(--line-2); }
.prog-item .pi-body { flex: 1; min-width: 0; }
.prog-item .pi-t { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-item .pi-pct { font-weight: 700; font-size: 13.5px; }
.bar { height: 7px; background: var(--grey-bg); border-radius: 999px; overflow: hidden; margin-top: 7px; position: relative; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--blue); }
.bar i.paid { background: var(--ok); }
.bar i.billed { background: #A9C4FF; }

/* ===== donut ===== */
.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.donut { position: relative; width: 170px; height: 170px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut .dc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut .dc b { font-size: 30px; font-weight: 800; line-height: 1; }
.donut .dc span { font-size: 12px; color: var(--muted); margin-top: 4px; }
.leg-list { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.leg-list div { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.leg-list div b { margin-left: auto; color: var(--ink); }
.leg-list i, .legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ===== week / agenda ===== */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; margin-bottom: 14px; }
.week .wd { font-size: 11.5px; color: var(--muted); }
.week .dn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; margin: 6px auto 4px; font-weight: 600; font-size: 13px; }
.week .on .dn { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(31,107,255,.35); }
.week .ed { width: 5px; height: 5px; border-radius: 50%; margin: 0 auto; background: transparent; }
.week .has .ed { background: var(--blue); }
.agenda { display: flex; flex-direction: column; }
.ag { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); color: var(--ink); }
.ag:hover .ag-t { color: var(--blue); }
.ag .ag-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.ag > div { flex: 1; min-width: 0; }
.ag .ag-t { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== watch list ===== */
.wl { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.wl + .wl { border-top: 1px solid var(--line-2); }
.wl > div { flex: 1; min-width: 0; }
.wl .wl-t { font-weight: 600; font-size: 13.5px; }
a.wl { color: var(--ink); }

/* ===== chart ===== */
.chart { position: relative; height: 230px; display: flex; gap: 10px; padding-left: 44px; padding-bottom: 24px; }
.chart .gl { position: absolute; left: 44px; right: 0; border-top: 1px dashed var(--line); }
.chart .gl span { position: absolute; left: -44px; top: -8px; width: 38px; text-align: right; font-size: 11px; color: var(--muted); }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; z-index: 1; }
.chart .pair { display: flex; gap: 4px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.chart .pair i { width: min(16px, 38%); border-radius: 6px 6px 3px 3px; min-height: 3px; transition: opacity .15s; }
.chart .pair i.in { background: linear-gradient(180deg, #4C8BFF, #1F6BFF); }
.chart .pair i.out { background: linear-gradient(180deg, #FFCB8A, #FFA94D); }
.chart .col:hover i { opacity: .75; }
.chart .lab { position: absolute; bottom: -22px; font-size: 11.5px; color: var(--muted); }
.chart .tip { display: none; position: absolute; bottom: calc(100% + 6px); background: var(--ink); color: #fff; font-size: 11.5px; padding: 6px 8px; border-radius: 8px; white-space: nowrap; z-index: 5; }
.chart .col:hover .tip { display: block; }

/* ===== kanban ===== */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 16px; overflow-x: auto; }
.kcol { border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 140px; }
.kcol.grey { background: var(--k-grey); } .kcol.blue { background: var(--k-blue); } .kcol.yellow { background: var(--k-yellow); } .kcol.green { background: var(--k-green); }
.kcol .kh { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; padding: 2px 4px 4px; white-space: nowrap; }
.kcol .kh .n { background: var(--surface); border-radius: 999px; padding: 1px 9px; font-size: 12px; color: var(--ink-2); }
.kcol .kh .s { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.kcol.blue .kh { color: var(--blue); } .kcol.yellow .kh { color: #B25E00; } .kcol.green .kh { color: var(--ok); }
.kcard { background: var(--surface); border-radius: 12px; padding: 12px; box-shadow: 0 1px 2px rgba(17,28,51,.05); border: 1px solid rgba(17,28,51,.04); color: var(--ink); display: flex; gap: 10px; transition: transform .12s, box-shadow .12s; }
.kcard:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(17,28,51,.08); }
.kcard > div { flex: 1; min-width: 0; }
.kcard .kt { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard .ks { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.kcard .km { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.kcard .ok-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.kcard .ok-ic svg.i { width: 16px; height: 16px; stroke-width: 2.6; }
.kadd { border: 1px dashed rgba(17,28,51,.12); background: var(--glass); border-radius: 10px; padding: 9px; text-align: center; color: var(--blue); font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.kadd:hover { background: var(--surface); }
.kempty { font-size: 12.5px; color: var(--muted); text-align: center; padding: 14px 4px; }

/* ===== lines editor ===== */
.lines td { padding: 6px; border-bottom: 1px solid var(--line-2); } .lines input { padding: 7px 9px; } .lines .desc { min-width: 220px; }
.totals { margin-left: auto; width: 340px; max-width: 100%; }
.totals div { display: flex; justify-content: space-between; padding: 7px 2px; border-bottom: 1px solid var(--line-2); }
.totals .grand { font-weight: 700; color: #fff; background: linear-gradient(135deg, #1F6BFF, #3B2FD9); padding: 11px 14px; border-radius: 12px; border: 0; margin-top: 8px; font-size: 15px; }

/* ===== info grid (fiche client) ===== */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px 20px; }
.info-grid .hint { display: block; margin-bottom: 3px; }

/* ===== modal & toast ===== */
.modal { position: fixed; inset: 0; background: rgba(17,28,51,.4); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; z-index: 80; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-box { background: var(--surface); border-radius: 18px; width: 660px; max-width: 100%; padding: 24px 26px; box-shadow: var(--shadow-lg); animation: pop .16s ease-out; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-box h3 { margin: 0 0 16px; color: var(--ink); font-size: 18px; font-weight: 800; }
.modal-box .row:last-child { margin-top: 8px; }
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 90; max-width: 380px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.toast.err { background: var(--bad); }
.toast[hidden] { display: none; }

/* ===== auth ===== */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; width: 100%; background: radial-gradient(1200px 600px at 10% -10%, #DCE7FF 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #E9E2FF 0%, transparent 60%), var(--bg); }
.auth .card { width: 420px; max-width: 100%; padding: 34px; border-radius: 22px; box-shadow: var(--shadow-lg); }
.auth img { height: 40px; margin-bottom: 22px; }
.auth h3 { font-size: 22px; font-weight: 800; margin: 0 0 4px; color: var(--ink); }
.auth .btn.primary { padding: 12px; margin-top: 6px; }

/* ===== files ===== */
.dropzone { border: 2px dashed var(--blue-line); border-radius: 14px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; background: var(--surface-2); display: flex; align-items: center; justify-content: center; gap: 10px; transition: all .15s; }
.dropzone svg.i { color: var(--blue); width: 22px; height: 22px; }
.dropzone u { color: var(--blue); }
.dropzone:hover, .dropzone.over { border-color: var(--blue); background: var(--blue-soft); }
.doclist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.doclist .d { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; }
.doclist .d .tile { width: 32px; height: 32px; border-radius: 8px; }
.doclist .d > div { flex: 1; min-width: 0; }
.doclist .d a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.doclist .d a:hover { color: var(--blue); }
.clip { display: inline-flex; color: var(--blue); }
.clip svg.i { width: 16px; height: 16px; }

.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-size: 13px; }
.alert > svg.i { margin: -2px 6px 0 0; }
.alert.warn { background: var(--warn-bg); color: #8A4B00; } .alert.info { background: var(--blue-soft); color: #1847A8; } .alert.bad { background: var(--bad-bg); color: #9B1C1F; } .alert.ok { background: var(--ok-bg); color: #106B35; }

/* ===== Printable invoice / quote (inchangé) ===== */
.paper { background: #fff; width: 210mm; min-height: 297mm; margin: 0 auto; padding: 14mm 16mm; box-shadow: var(--shadow); color: #1E2A3B; font-size: 10pt; position: relative; }
.paper .hd { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--navy); padding-bottom: 10px; margin-bottom: 14px; }
.paper .hd img { height: 46px; }
.paper .hd .ttl { text-align: right; }
.paper .hd .ttl h2 { margin: 0; font-size: 24pt; color: var(--navy); letter-spacing: .02em; }
.paper .hd .ttl div { font-size: 9.5pt; color: var(--muted); } .paper .hd .ttl b { color: var(--navy); }
.paper .parties { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid #DCE5F2; margin-bottom: 12px; }
.paper .parties > div { background: #F4F7FB; padding: 10px 12px; } .paper .parties > div + div { border-left: 1px solid #DCE5F2; }
.paper .lbl { font-size: 7.5pt; font-weight: 700; color: var(--blue); letter-spacing: .05em; }
.paper .nm { font-weight: 700; color: var(--navy); font-size: 11pt; margin: 2px 0 4px; }
.paper .small { font-size: 9pt; line-height: 1.45; }
.paper .obj { background: #F4F7FB; border-left: 4px solid var(--blue); padding: 7px 10px; margin-bottom: 12px; font-size: 9.5pt; }
.paper table.pl { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 9.5pt; }
.paper .pl th { background: var(--navy); color: #fff; text-align: left; padding: 7px 8px; font-size: 8.5pt; }
.paper .pl td { border: 1px solid #DCE5F2; padding: 7px 8px; vertical-align: top; }
.paper .pl .n { text-align: right; white-space: nowrap; }
.paper .pl .dt { color: var(--muted); font-size: 8.5pt; }
.paper .ptot { margin-left: auto; width: 46%; font-size: 9.5pt; }
.paper .ptot div { display: flex; justify-content: space-between; padding: 5px 10px; background: #F4F7FB; border: 1px solid #DCE5F2; border-top: 0; }
.paper .ptot div:first-child { border-top: 1px solid #DCE5F2; }
.paper .ptot .g { background: var(--navy); color: #fff; font-weight: 700; font-size: 11pt; padding: 8px 10px; border-color: var(--navy); }
.paper .words { margin: 12px 0; font-size: 9.5pt; color: var(--muted); } .paper .words b { color: var(--navy); }
.paper .pay { display: grid; grid-template-columns: 1.5fr 1fr; border: 1px solid #DCE5F2; margin-top: 12px; }
.paper .pay > div { padding: 10px 12px; font-size: 9pt; } .paper .pay > div:first-child { background: #F4F7FB; } .paper .pay > div + div { border-left: 1px solid #DCE5F2; text-align: center; min-height: 34mm; }
.paper .ft { position: absolute; left: 16mm; right: 16mm; bottom: 10mm; border-top: 1px solid #DCE5F2; padding-top: 6px; text-align: center; font-size: 7.5pt; color: var(--muted); }
.print-bar { max-width: 210mm; margin: 0 auto 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ===== responsive ===== */
@media (max-width: 1280px) {
  .dash-3 { grid-template-columns: 1fr 1fr; }
  .dash-3 > :last-child { grid-column: 1 / -1; }
}
@media screen and (max-width: 1300px) { .paper { width: 100%; } .print-bar { max-width: 100%; } }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-2 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .sidebar { position: fixed; left: -270px; transition: left .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { left: 0; }
  .scrim { position: fixed; inset: 0; background: rgba(17,28,51,.35); z-index: 35; display: none; }
  .sidebar.open + .scrim { display: block; }
  .burger { display: grid; place-items: center; }
  .topbar { padding: 10px 16px; gap: 10px; }
  .user .u-txt, .user > svg.i { display: none; }
  .page-head { padding: 18px 16px 0; } .page-head h1 { font-size: 20px; }
  .view { padding: 14px 16px 48px; }
  .two, .dash-3 { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(4, 78%); scroll-snap-type: x mandatory; }
  .kcol { scroll-snap-align: start; }
  .pop { width: min(320px, calc(100vw - 32px)); }
  .paper { width: 100%; padding: 16px; min-height: 0; } .paper .ft { position: static; margin-top: 16px; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr; }
  .kpi .v { font-size: 20px; }
  .search input { font-size: 13px; }
  .card { padding: 16px; }
}

@media print {
  @page { size: A4; margin: 0; }
  body { background: var(--surface); }
  .sidebar, .topbar, .page-head, .print-bar, .toast, .scrim { display: none !important; }
  .view { padding: 0; }
  .paper { box-shadow: none; margin: 0; width: 210mm; min-height: 297mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.nw { white-space: nowrap; }

/* ===================== Tableau de bord v2 ===================== */
.today-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-right: 6px; }
.today-chip svg.i { width: 14px; height: 14px; color: var(--blue); }
.dash .anim { animation: fadeUp .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d, 0) * 55ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dash .anim, .donut .arc { animation: none !important; } }
.dash-hero { grid-template-columns: minmax(300px, 1fr) 2fr; margin-bottom: 20px; }
.dash-b { grid-template-columns: 1.75fr 1fr; }
.dash-c { grid-template-columns: 1fr 1fr; }

/* héros trésorerie */
.hero { position: relative; overflow: hidden; border-radius: 20px; padding: 22px; color: #fff; display: flex; flex-direction: column; gap: 14px;
  background: radial-gradient(400px 220px at 110% -10%, rgba(255,255,255,.18), transparent 60%), linear-gradient(145deg, #2C7BFF 0%, #1F6BFF 35%, #3B2FD9 75%, #2A1E9E 100%);
  box-shadow: 0 18px 40px -12px rgba(31,107,255,.55); }
.hero::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255,255,255,.06); right: -80px; bottom: -90px; }
.hero-top { display: flex; align-items: center; gap: 12px; position: relative; }
.hero-ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.hero-ic svg.i { width: 22px; height: 22px; }
.hero-l { font-weight: 700; font-size: 15px; }
.hint-w { font-size: 12px; opacity: .78; }
.hero-v { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; position: relative; white-space: nowrap; }
.hero-stats { display: flex; flex-direction: column; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 4px 12px; position: relative; }
.hero-stats > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; min-width: 0; }
.hero-stats > div + div { border-top: 1px solid rgba(255,255,255,.14); }
.hero-stats span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; opacity: .88; white-space: nowrap; }
.hero-stats span svg.i { width: 15px; height: 15px; }
.hero-stats b { font-size: 14px; white-space: nowrap; }
.hero-spark { height: 54px; margin: auto -22px -22px; position: relative; }
.hero-spark svg { width: 100%; height: 100%; display: block; }

/* KPI v2 */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kpi2 { flex-direction: column; gap: 10px; position: relative; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.kpi2:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(17,28,51,.09); }
.kpi2 .kpi-top { display: flex; gap: 14px; align-items: center; width: 100%; }
.kpi2 .k-ic { width: 46px; height: 46px; }
.kpi2 .s { margin-top: 0; }
.k-spark { height: 40px; margin: auto -18px -18px; width: calc(100% + 36px); }
.k-spark svg { width: 100%; height: 100%; display: block; }
.k-prog { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: auto; }
.k-prog .bar { flex: 1; margin: 0; height: 8px; }

/* flux de trésorerie */
.cchart { position: relative; height: 250px; margin: 14px 0 26px 46px; }
.cchart .gl { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); }
.cchart .gl.zero { border-top: 1px solid var(--line-3); }
.cchart .gl span { position: absolute; left: -46px; top: -8px; width: 40px; text-align: right; font-size: 11px; color: var(--muted); }
.cline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.ccols { position: absolute; inset: 0; display: flex; }
.ccol { flex: 1; position: relative; border-radius: 8px; cursor: default; }
.ccol:hover { background: rgba(31,107,255,.05); }
.ccol.cur::after { content: ""; position: absolute; left: 50%; bottom: -24px; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); transform: translateX(-50%); }
.ccol i { position: absolute; width: min(12px, 26%); border-radius: 5px 5px 2px 2px; min-height: 2px; }
.ccol i.in { left: calc(50% - min(12px, 26%) - 1px); background: linear-gradient(180deg, #5B95FF, #1F6BFF); }
.ccol i.out { left: calc(50% + 1px); background: linear-gradient(180deg, #FFCB8A, #FF9F43); }
.cdot { position: absolute; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--violet); transform: translate(-50%, 50%); z-index: 3; box-shadow: 0 2px 6px rgba(124,92,252,.35); }
.ccol .lab { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: 11.5px; color: var(--muted); }
.ccol.cur .lab { color: var(--blue); font-weight: 700; }
.ccol .tip { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; padding: 10px 12px; border-radius: 10px; white-space: nowrap; z-index: 10; box-shadow: var(--shadow-lg); min-width: 190px; }
.ccol:first-child .tip, .ccol:nth-child(2) .tip { left: 0; transform: none; }
.ccol:last-child .tip, .ccol:nth-last-child(2) .tip { left: auto; right: 0; transform: none; }
.ccol:hover .tip { display: block; }
.ccol .tip b { display: block; margin-bottom: 6px; }
.ccol .tip div { display: flex; align-items: center; gap: 7px; padding: 2px 0; }
.ccol .tip div i { position: static; width: 8px; height: 8px; min-height: 0; border-radius: 50%; }
.ccol .tip div span { margin-left: auto; padding-left: 14px; font-weight: 700; }

/* donut v2 */
.donut .arc { animation: drawArc 1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes drawArc { from { stroke-dasharray: 0 999; } }
.donut .dc em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--blue); margin-top: 4px; }
.leg-list div b { margin-left: 12px; min-width: 14px; text-align: right; }

/* contrats & échéancier */
.ctr { padding: 4px 0 14px; }
.ctr + .ctr { border-top: 1px solid var(--line-2); padding-top: 16px; }
.ctr-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.ctr-head > .who { flex: 1; min-width: 220px; }
.ctr-t { font-size: 14.5px; }
.ctr-rings { display: flex; gap: 16px; }
.ring { display: flex; align-items: center; gap: 8px; }
.ring svg { width: 44px; height: 44px; }
.ring b { display: block; font-size: 14px; line-height: 1.1; }
.ring span { font-size: 11.5px; color: var(--muted); }
.steps { display: flex; overflow-x: auto; padding-bottom: 4px; }
.step { flex: 1; min-width: 165px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); position: relative; padding-right: 12px; }
.step::before { content: ""; position: absolute; top: 17px; left: 40px; right: 4px; border-top: 2px dashed var(--line-3); }
.step.done::before { border-top: 2px solid var(--ok); }
.step:last-child::before { display: none; }
.st-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; position: relative; z-index: 1; border: 2px solid transparent; }
.st-dot svg.i { width: 17px; height: 17px; stroke-width: 2.4; }
.step.ok .st-dot { background: var(--ok); color: #fff; box-shadow: 0 4px 12px rgba(22,163,74,.3); }
.step.bad .st-dot { background: var(--bad); color: #fff; box-shadow: 0 4px 12px rgba(229,56,59,.3); }
.step.warn .st-dot { background: #FF9F43; color: #fff; box-shadow: 0 4px 12px rgba(255,159,67,.35); }
.step.blue .st-dot { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(31,107,255,.3); }
.step.grey .st-dot { background: var(--surface); color: var(--muted); border-color: var(--line-3); }
.st-body { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; transition: border-color .15s, background .15s; }
.step:hover .st-body { border-color: var(--blue-line); background: var(--surface); }
.st-t { font-size: 12px; color: var(--muted); font-weight: 600; }
.st-a { font-weight: 800; font-size: 15px; }
.st-body .badge { margin-top: 2px; font-size: 11px; }

.wl-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.wl-grid .wl + .wl { border-top: 0; }
.wl-grid .wl { border-bottom: 1px solid var(--line-2); }
@media (max-width: 900px) { .wl-grid { grid-template-columns: 1fr; } }

/* activité */
.act { display: flex; gap: 12px; padding: 9px 0; color: var(--ink); position: relative; }
.act + .act::before { content: ""; position: absolute; left: 18px; top: -9px; height: 18px; border-left: 2px solid var(--line-2); }
.act .tile { width: 36px; height: 36px; }
.act .tile svg.i { width: 17px; height: 17px; }
.act > div { flex: 1; min-width: 0; }
.act-x { font-size: 13.5px; }
.act-d { background: var(--grey-bg); border-radius: 6px; padding: 1px 6px; font-size: 12px; font-weight: 600; }
a.act:hover .act-x { color: var(--blue); }

/* squelette de chargement */
.skel { display: flex; flex-direction: column; gap: 18px; }
.sk-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sk-row:nth-child(2) { grid-template-columns: 2fr 1fr; }
.sk { border-radius: 16px; background: linear-gradient(90deg, var(--sk1) 0%, var(--sk2) 40%, var(--sk1) 80%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; height: 16px; }
.sk-kpi { height: 112px; } .sk-big { height: 260px; } .sk-line { height: 54px; } .sk-short { width: 60%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

@media (max-width: 1280px) { .dash-hero { grid-template-columns: minmax(250px, .85fr) 1.6fr; } .dash-b { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .dash-c { grid-template-columns: 1fr; } .sk-row { grid-template-columns: 1fr 1fr; } .sk-row:nth-child(2) { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero-v { font-size: 28px; }
  .cchart { margin-left: 38px; height: 210px; }
  .cchart .gl span { left: -40px; width: 34px; font-size: 10px; }
  .ccol .lab { font-size: 9.5px; }
  .ctr-rings { width: 100%; }
  .today-chip { display: none; }
}

/* ===================== Mise en page tableau de bord (zones) ===================== */
.dash-main { grid-template-columns: 1.75fr 1fr; grid-template-areas: "flux fact" "ctr ech"; }
.a-flux { grid-area: flux; } .a-fact { grid-area: fact; } .a-ctr { grid-area: ctr; } .a-ech { grid-area: ech; }
@media (max-width: 1280px) { .dash-main { grid-template-columns: 1fr 1fr; grid-template-areas: "flux flux" "fact ech" "ctr ctr"; } }
@media (max-width: 900px) {
  .dash-hero { grid-template-columns: 1fr; }
  .dash-main { grid-template-columns: 1fr; grid-template-areas: "flux" "ech" "fact" "ctr"; }
}

/* ===================== Échéances interactives ===================== */
.cal-head { display: flex; align-items: center; gap: 6px; margin: -4px 0 12px; position: relative; }
.cal-head b { font-size: 13.5px; min-width: 110px; text-align: center; }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); }
.icon-btn.sm svg.i { width: 16px; height: 16px; }
.cal-pick span { display: inline; }
.cal-head b { white-space: nowrap; }
.cal-head .m-short { display: none; }
.cal-input { position: absolute; right: 0; top: 100%; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.week .wday { border: 0; background: transparent; font: inherit; cursor: pointer; padding: 6px 0 4px; border-radius: 12px; color: var(--ink); display: flex; flex-direction: column; align-items: center; transition: background .15s; }
.week .wday:hover { background: var(--grey-bg); }
.week .wday .dn { margin: 5px auto 4px; }
.week .wday.today .dn { background: var(--blue-soft); color: var(--blue); box-shadow: none; }
.week .wday.on .dn { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(31,107,255,.35); }
.week .wday .ed { width: 6px; height: 6px; }
.cal-filter { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 8px 10px; border-radius: 10px; background: var(--grey-bg); margin-bottom: 4px; flex-wrap: wrap; }
.cal-filter.on { background: var(--blue-soft); color: var(--blue); }
.cal-filter > span { display: inline-flex; align-items: center; gap: 6px; }
.cal-filter svg.i { width: 14px; height: 14px; }
.cal-filter .hint { font-weight: 500; }
.cal-filter button.link { border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700; color: var(--blue); }

/* ===================== Composants des pages ===================== */
#view > :not(.dash):not(.skel) { animation: fadeUp .45s cubic-bezier(.2,.7,.2,1) both; }
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.kpi2 .v .badge { font-size: 13px; }
.ch { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--ink); flex-wrap: wrap; }
.tile.sm-tile { width: 32px; height: 32px; border-radius: 9px; }
.tile.sm-tile svg.i { width: 16px; height: 16px; }
.cnt { background: var(--grey-bg); color: var(--ink-2); font-size: 12px; border-radius: 999px; padding: 1px 9px; font-weight: 700; }
.lc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.lc-search { position: relative; display: flex; align-items: center; }
.lc-search svg.i { position: absolute; left: 11px; color: var(--muted); width: 16px; height: 16px; }
.lc-search input { padding: 8px 12px 8px 34px; width: 230px; background: var(--grey-bg); border-color: transparent; }
.lc-search input:focus { background: var(--surface); }
.two-eq { grid-template-columns: 1fr 1fr; }
.two-side { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
.two-side > .card { margin-bottom: 0; }
.grid + .list-card, .kpi-row + .list-card { margin-top: 0; }
.dash > .grid { margin-bottom: 20px; }
.dash > .grid + .grid { margin-top: 0; }
.av.xl { width: 56px; height: 56px; font-size: 19px; }

/* fiche client */
.client-grid { grid-template-columns: minmax(280px, 1fr) minmax(0, 2.2fr); align-items: start; }
.profile { padding: 0; overflow: hidden; }
.pf-head { display: flex; align-items: center; gap: 14px; padding: 22px; background: linear-gradient(135deg, #EEF3FF, #F3EEFF); }
.pf-n { font-weight: 800; font-size: 17px; }
.pf-list { padding: 8px 22px; }
.pf-list > div { display: grid; grid-template-columns: 18px 90px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.pf-list > div:last-child { border-bottom: 0; }
.pf-list svg.i { width: 16px; height: 16px; color: var(--muted); margin-top: 1px; }
.pf-list span { color: var(--muted); }
.pf-list b { font-weight: 600; word-break: break-word; }
.pf-notes { margin: 0 22px 22px; padding: 12px 14px; background: var(--grey-bg); border-radius: 12px; font-size: 13px; white-space: pre-wrap; color: var(--ink-2); }
.card > .pf-notes { margin: 0; }
.ctr-x { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 220px; padding: 5px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 600; }
.doc-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-chip svg.i { width: 14px; height: 14px; }
.ctr-notes { font-size: 12.5px; color: var(--muted); padding: 0 0 14px; white-space: pre-wrap; }

/* détail facture */
.inv-meta { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; padding: 4px 0 16px; }
.inv-meta > div:last-child span { display: block; }
.pay-list { display: flex; flex-direction: column; gap: 10px; }
.pay-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.pay-item > div { flex: 1; min-width: 0; }

/* dépenses par catégorie */
.cat + .cat { margin-top: 14px; }
.cat-r { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.cat-r span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.cat-r i { width: 9px; height: 9px; border-radius: 3px; }
.cat .bar { margin-top: 6px; }

/* TVA */
.pchart { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.pc { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pc-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.pc-bars i { width: min(18px, 32%); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.pc-bars i.c { background: linear-gradient(180deg, #5B95FF, #1F6BFF); }
.pc-bars i.d { background: linear-gradient(180deg, #FFCB8A, #FF9F43); }
.pc span { font-size: 11.5px; color: var(--muted); padding-bottom: 6px; }
.pc.cur span { color: var(--blue); font-weight: 700; }
.t tr.row-cur td { background: var(--hover); }

/* preuves */
.file-cell { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 220px; }
.file-cell:hover .bold { color: var(--blue); }
.ftype { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: .03em; flex-shrink: 0; }
.ftype.blue { background: var(--blue-soft); color: var(--blue); } .ftype.violet { background: var(--violet-bg); color: var(--violet); }
.ftype.green { background: var(--ok-bg); color: var(--ok); } .ftype.orange { background: var(--warn-bg); color: var(--warn); } .ftype.grey { background: var(--grey-bg); color: var(--ink-2); }
.badge svg.i { width: 13px; height: 13px; }

/* paramètres */
.set-sec + .set-sec { border-top: 1px solid var(--line-2); padding-top: 14px; margin-top: 4px; }
.set-t { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.set-t svg.i { width: 16px; height: 16px; color: var(--blue); }
.user-list { display: flex; flex-direction: column; gap: 10px; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.user-row > div { flex: 1; min-width: 0; }
.user-row .hint { overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1100px) { .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .two-side, .client-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .two-eq { grid-template-columns: 1fr; } .lc-search, .lc-search input { width: 100%; } .lc-head .spacer { display: none; } }
@media (max-width: 700px) {
  .steps { flex-direction: column; overflow: visible; }
  .step { flex-direction: row; min-width: 0; padding: 0 0 14px; gap: 12px; }
  .step::before { top: 40px; bottom: 2px; left: 17px; right: auto; border-top: 0; border-left: 2px dashed var(--line-3); }
  .step.done::before { border-top: 0; border-left: 2px solid var(--ok); }
  .st-body { flex: 1; }
  .ctr-head > .who { min-width: 0; flex-basis: 100%; }
}
@media (max-width: 560px) {
  .kpi-row { grid-template-columns: 1fr; gap: 14px; }
  .cal-pick span { display: none; }
  .cal-head { flex-wrap: wrap; }
  .cal-head b { order: -1; flex-basis: 100%; text-align: left; margin-bottom: 4px; font-size: 14.5px; }
  .pf-list > div { grid-template-columns: 18px 80px 1fr; }
}

/* ===================== Impôts & échéances ===================== */
.side-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.side-stack > .card { margin-bottom: 0; }
.tx-list { display: flex; flex-direction: column; gap: 10px; }
.tx-item { display: grid; grid-template-columns: 58px 38px minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.tx-item:hover { border-color: var(--blue-line); box-shadow: 0 6px 18px rgba(17,28,51,.06); }
.tx-item.retard { border-color: #F6C9CA; background: var(--tint-bad); }
.tx-item.paye { background: var(--tint-ok); }
.tx-item.paye .tx-date { background: var(--ok-bg); color: var(--ok); }
.tx-item.retard .tx-date { background: var(--bad-bg); color: var(--bad); }
.tx-item.en_cours .tx-date { background: var(--violet-bg); color: var(--violet); }
.tx-date { width: 58px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); text-align: center; padding: 6px 0; line-height: 1.1; }
.tx-date b { display: block; font-size: 20px; font-weight: 800; }
.tx-date span { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; }
.tx-date em { display: block; font-style: normal; font-size: 10.5px; opacity: .75; }
.tx-body { min-width: 0; }
.tx-body .bold { font-size: 13.5px; }
.tx-note { margin-top: 5px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.tx-note.ok { color: var(--ok); font-weight: 600; }
.tx-note svg.i { width: 13px; height: 13px; }
.tx-amt { text-align: right; white-space: nowrap; }
.tx-amt b { display: block; font-size: 15px; }
.rule-card { border-radius: 20px; padding: 20px; color: #fff; background: linear-gradient(145deg, #1D4F9A 0%, #04285D 100%); box-shadow: 0 16px 36px -14px rgba(4,40,93,.6); position: relative; overflow: hidden; }
.rule-card::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; border: 28px solid rgba(255,255,255,.06); right: -60px; top: -60px; }
.rule-card .hero-top b { font-size: 15px; }
.rule-card p { margin: 12px 0 0; font-size: 13px; opacity: .92; position: relative; }
.rule-split { display: grid; grid-template-columns: minmax(78px, 1fr) 5fr; margin-top: 14px; border-radius: 10px; overflow: hidden; font-size: 11.5px; }
.rule-split div { padding: 8px 10px; }
.rule-split div:first-child { background: #FF9F43; }
.rule-split div:last-child { background: rgba(255,255,255,.16); }
.rule-split span { display: block; opacity: .85; } .rule-split b { font-size: 13px; }
.exo + .exo { border-top: 1px solid var(--line-2); margin-top: 12px; padding-top: 12px; }
.exo-h { display: flex; gap: 12px; align-items: center; }
.exo-h b { font-size: 13.5px; }
.exo .k-prog { margin-top: 10px; }
.checks { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--ink-2); }
.fc { color: var(--violet); font-weight: 600; }
.isx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.isx { border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.isx.cur { border-color: #CFC3FF; box-shadow: 0 0 0 3px var(--violet-bg); }
.isx-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.isx-calc > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.isx-calc > div span { color: var(--ink-2); }
.isx-calc > div.sum { font-weight: 700; } .isx-calc > div.sum span { color: var(--ink); }
.isx-calc .grand { border: 0; margin-top: 8px; padding: 11px 14px; border-radius: 12px; background: linear-gradient(135deg, #7C5CFC, #3B2FD9); color: #fff; font-weight: 700; }
.isx-calc .grand span { color: #fff; }
.isx-ac { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.isx-ac > div { border-radius: 10px; background: var(--grey-bg); padding: 8px; text-align: center; font-size: 12px; }
.isx-ac > div.paye { background: var(--ok-bg); color: var(--ok); }
.isx-ac > div.retard { background: var(--bad-bg); color: var(--bad); }
.isx-ac span, .isx-ac em { display: block; color: var(--muted); font-style: normal; font-size: 11px; }
.isx-ac b { display: block; margin: 2px 0; }
@media (max-width: 900px) {
  .tx-item { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; }
  .tx-item > .tile { display: none; }
  .tx-item .badge { grid-column: 2; justify-self: start; }
  .tx-item > .btn, .tx-item > .tx-act { grid-column: 3; }
  .tx-date { width: 52px; }
}
@media (max-width: 560px) { .isx-ac { grid-template-columns: 1fr 1fr; } .isx-grid { grid-template-columns: 1fr; } }

/* ===================== Contrôles maison (aucun élément natif) ===================== */
[hidden] { display: none !important; }
::selection { background: #D6E2FF; color: var(--ink); }
* { scrollbar-width: thin; scrollbar-color: #C9D3E3 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CFD8E6; border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #AEBBD0; background-clip: padding-box; border: 3px solid transparent; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--ink); }
input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 18px !important; height: 18px; padding: 0; margin: 0 8px 0 0; border: 1.5px solid var(--line-3); border-radius: 6px; background: var(--surface); display: inline-grid; place-content: center; vertical-align: -4px; cursor: pointer; transition: all .15s; flex-shrink: 0; }
input[type=checkbox]::before { content: ""; width: 9px; height: 5px; border-left: 2.2px solid #fff; border-bottom: 2.2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; transition: opacity .12s; }
input[type=checkbox]:checked { background: var(--blue); border-color: var(--blue); }
input[type=checkbox]:checked::before { opacity: 1; }
input[type=checkbox]:focus-visible { box-shadow: 0 0 0 3px rgba(31,107,255,.2); outline: none; }
label.f:has(> input[type=checkbox]) { display: flex; align-items: center; font-weight: 500; cursor: pointer; }

/* champ maison (date / liste) */
.ui-date, .ui-select { position: relative; width: 100%; }
.ui-field { width: 100%; display: flex; align-items: center; gap: 8px; font: inherit; text-align: left; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; min-height: 40px; }
.ui-field:hover:not(:disabled) { border-color: var(--line-3); }
.ui-field:focus-visible, .ui-field[aria-expanded="true"] { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,107,255,.12); }
.ui-field:disabled { background: var(--grey-bg); color: var(--ink-2); cursor: not-allowed; }
.ui-field > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-field .ph { color: var(--muted); }
.ui-field svg.i { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.ui-date-btn svg.i { color: var(--blue); }
.ui-field[aria-expanded="true"] > svg.i:last-child { transform: rotate(180deg); }
.ui-native { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; left: 12px; bottom: 0; }
.ui-select.in-pill { width: auto; }
.ui-select.in-pill .ui-field { border: 0; background: transparent; padding: 9px 2px; min-height: 0; font-weight: 600; box-shadow: none; gap: 6px; }
.ui-select.in-pill .ui-field > span { overflow: visible; }
.lines .ui-field { min-height: 34px; padding: 6px 9px; }

/* popover commun */
.ui-pop { position: fixed; z-index: 120; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(17,28,51,.18); opacity: 0; transform: translateY(-4px) scale(.98); transition: opacity .12s, transform .12s; }
.ui-pop.in { opacity: 1; transform: none; }
.ui-list { padding: 6px; max-width: min(420px, calc(100vw - 16px)); }
.ui-list-o { max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.ui-list-s { position: relative; margin-bottom: 6px; }
.ui-list-s svg.i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.ui-list-s input { padding: 8px 10px 8px 32px; background: var(--grey-bg); border-color: transparent; }
.ui-opt { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; font: inherit; text-align: left; padding: 9px 10px; border-radius: 9px; cursor: pointer; color: var(--ink); }
.ui-opt span { flex: 1; }
.ui-opt:hover, .ui-opt:focus-visible { background: var(--grey-bg); outline: none; }
.ui-opt.on { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.ui-opt.ph { color: var(--muted); }
.ui-opt svg.i { width: 16px; height: 16px; }
.ui-opt:disabled { opacity: .45; cursor: not-allowed; }

/* calendrier */
.dp { width: 296px; padding: 12px; user-select: none; }
.dp-h { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.dp-t { flex: 1; border: 0; background: none; font: inherit; font-weight: 700; font-size: 14px; padding: 7px; border-radius: 9px; cursor: pointer; color: var(--ink); }
.dp-t:hover { background: var(--grey-bg); }
.dp-n { width: 32px; height: 32px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.dp-n:hover { border-color: var(--blue); color: var(--blue); }
.dp-n svg.i { width: 16px; height: 16px; }
.dp-w { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; padding: 4px 0; }
.dp-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-g3 { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px 0; }
.dp-d { position: relative; height: 36px; border: 0; background: none; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.dp-d:hover:not(:disabled) { background: var(--grey-bg); }
.dp-d:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.dp-d.out { color: #B4BECD; font-weight: 500; }
.dp-d.today { color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue-line); }
.dp-d.on { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(31,107,255,.35); }
.dp-d.mk::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--warn); transform: translateX(-50%); }
.dp-d.on.mk::after { background: var(--surface); }
.dp-d:disabled { opacity: .35; cursor: not-allowed; }
.dp-c { height: 44px; border: 0; background: var(--grey-bg); border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); text-transform: capitalize; }
.dp-c:hover { background: var(--blue-soft); color: var(--blue); }
.dp-c.on { background: var(--blue); color: #fff; }
.dp-f { display: flex; justify-content: space-between; border-top: 1px solid var(--line-2); margin-top: 8px; padding-top: 8px; }
.dp-f button { border: 0; background: none; font: inherit; font-weight: 700; font-size: 13px; color: var(--blue); cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.dp-f button:hover { background: var(--blue-soft); }
.dp-f [data-clear] { color: var(--muted); }

/* infobulle */
.ui-tip { position: fixed; z-index: 130; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; padding: 7px 10px; border-radius: 8px; max-width: 320px; white-space: pre-line; pointer-events: none; opacity: 0; transition: opacity .12s; box-shadow: 0 8px 24px rgba(17,28,51,.25); }
.ui-tip.in { opacity: 1; }

/* erreurs de formulaire */
.has-err input:not([type=checkbox]), .has-err select, .has-err textarea, .has-err .ui-field { border-color: var(--bad) !important; box-shadow: 0 0 0 3px rgba(229,56,59,.12) !important; }
.ui-err { display: flex; align-items: center; gap: 5px; color: var(--bad); font-size: 12px; font-weight: 600; margin-top: 5px; animation: fadeUp .2s both; }
.ui-err::before { content: "!"; width: 15px; height: 15px; border-radius: 50%; background: var(--bad); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }

/* barre de filtres des listes */
.lc-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -2px 0 14px; padding: 10px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; }
.lc-tools .lc-search { flex: 1; min-width: 220px; }
.lc-tools .lc-search input { width: 100%; background: var(--surface); border-color: var(--line); }
.lc-dates { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lc-dates .ui-field { width: auto; min-height: 38px; padding: 8px 12px; }
.lc-preset { font-weight: 600; }
.lc-preset svg.i:first-child { color: var(--blue); }
.lc-d { min-width: 118px; }
.lc-d.on, .lc-preset.on { border-color: var(--blue-line); background: var(--blue-soft); color: var(--blue); }
.lc-arrow { color: var(--muted); }
.lc-reset { color: var(--bad); }
.lc-reset svg.i { width: 14px; height: 14px; }
.cnt.on { background: var(--blue); color: #fff; }
@media (max-width: 700px) {
  .lc-tools .lc-search { min-width: 100%; }
  .lc-dates { width: 100%; }
  .lc-dates .lc-preset { flex-basis: 100%; }
  .lc-dates .lc-d { flex: 1; min-width: 0; }
}

/* ===================== Salaires & références ===================== */
.ref-chip { display: inline-flex; align-items: center; font-family: "JetBrains Mono", Consolas, ui-monospace, monospace; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--violet); background: var(--violet-bg); border: 1px solid #DDD3FF; border-radius: 7px; padding: 2px 8px; vertical-align: middle; white-space: nowrap; }
.ref-chip.sm { font-size: 11px; padding: 1px 6px; }
.modal-box h3 .ref-chip { margin-left: 8px; }
.sal-box { border: 1px solid #DDD3FF; background: linear-gradient(180deg, #F8F5FF, #fff); border-radius: 14px; padding: 14px 14px 4px; margin: 4px 0 14px; }
.sal-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; color: var(--violet); }
.sal-h svg.i { width: 17px; height: 17px; }
.sal-h b { color: var(--ink); }
.sal-h .hint { flex-basis: 100%; }
.people { display: flex; flex-direction: column; gap: 8px; }
.person { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font: inherit; text-align: left; cursor: pointer; color: var(--ink); transition: border-color .15s, background .15s; }
.person:hover { border-color: #CFC3FF; background: var(--tint-violet); }
.person > div { flex: 1; min-width: 0; }
.person b { white-space: nowrap; }

/* ===================== Rapport mensuel ===================== */
.month-nav { display: inline-flex; align-items: center; gap: 6px; }
.month-nav .icon-btn.sm { display: grid; place-items: center; color: var(--ink-2); }
.month-pick { width: auto; min-width: 190px; font-weight: 700; text-transform: capitalize; }
.month-pick svg.i:first-child { color: var(--blue); }
.rep-head { display: flex; align-items: center; gap: 22px; padding: 22px 24px; margin-bottom: 20px; border-radius: 20px; background: radial-gradient(500px 200px at 100% 0%, #E9E2FF 0%, transparent 70%), linear-gradient(135deg, #EEF3FF, #fff); border: 1px solid var(--blue-line); }
.rep-head img { height: 44px; }
.rep-head > div { border-left: 2px solid var(--blue-line); padding-left: 22px; }
.rep-k { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }
.rep-m { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; margin: 2px 0; }
.rep-sum { font-size: 14px; line-height: 1.7; color: var(--ink-2); margin: 0 0 16px; }
.rep-sum b { color: var(--ink); } .rep-sum .pos { color: var(--ok); } .rep-sum .neg, .rep-sum b.neg { color: var(--bad); }
.rep-h3 { font-size: 14px; margin: 18px 0 10px; color: var(--ink-2); }
.rep-foot { text-align: center; margin-top: 8px; }
.report .ag > b { font-size: 13px; }
@media (max-width: 700px) {
  .rep-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .rep-head > div { border-left: 0; padding-left: 0; }
  .month-pick { min-width: 0; }
}
@media print {
  .report { padding: 10mm 12mm; }
  .report .card, .report .kpi, .rep-head { box-shadow: none !important; break-inside: avoid; page-break-inside: avoid; }
  .report .kpi-row { grid-template-columns: repeat(4, 1fr) !important; gap: 8px; margin-bottom: 8px; }
  .report .grid.two-side, .report .grid.two-eq { grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .report .card { margin-bottom: 8px; padding: 12px 14px; }
  .report .kpi { padding: 10px; } .report .kpi .v { font-size: 15px; } .report .k-ic { width: 32px !important; height: 32px !important; }
  .report .t td, .report .t th { padding: 5px 6px; font-size: 10.5px; }
  .dash .anim, #view > * { animation: none !important; }
  .report a { color: inherit; }
  .ui-tip, .ui-pop { display: none !important; }
}
.exp-layout { grid-template-columns: 1fr; }
.exp-layout > .side-stack { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 900px) { .exp-layout > .side-stack { grid-template-columns: 1fr; } }
@media (max-width: 1350px) { .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpi-row { grid-template-columns: 1fr; } }
.t tr.row-off td { background: var(--tint-violet); }
.t tr.row-off td:first-child { box-shadow: inset 3px 0 0 var(--violet); }

/* ===================== Logos clients & justificatifs ===================== */
.av.logo { background: var(--surface) !important; border: 1px solid var(--line); overflow: hidden; padding: 0; }
.av.logo img { width: 100%; height: 100%; object-fit: contain; padding: 2px; display: block; }
.logo-pick { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px dashed var(--blue-line); border-radius: 14px; background: var(--surface-2); margin-bottom: 14px; }
.logo-prev { width: 72px; height: 72px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.logo-prev img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.logo-prev .ph svg.i { width: 24px; height: 24px; color: var(--muted); }
.need-proof { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; transition: filter .15s, transform .15s; }
.need-proof:hover { filter: brightness(.95); transform: translateY(-1px); }
.need-proof svg.i { width: 13px; height: 13px; }
.tabs a.tab-warn:not(.on) { color: var(--warn); }
.tabs a.tab-warn:not(.on) .n { background: var(--warn-bg); color: var(--warn); }
.tabs a svg.i { width: 15px; height: 15px; }

/* ===================== Pagination des listes ===================== */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 4px 0; margin-top: 10px; border-top: 1px solid var(--line-2); }
.pager:empty { display: none; }
.pages { display: flex; align-items: center; gap: 4px; }
.pg { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; font: inherit; font-weight: 600; font-size: 13px; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.pg:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.pg.on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(31,107,255,.3); }
.pg:disabled { opacity: .4; cursor: not-allowed; }
.pg svg.i { width: 15px; height: 15px; }
.pg-dots { color: var(--muted); padding: 0 4px; }
.pp { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pp .ui-select { width: 78px; }
.pp .ui-field { min-height: 34px; padding: 6px 10px; }

/* ===================== Calendrier fiscal par année ===================== */
.tx-year + .tx-year { margin-top: 10px; }
.tx-yh { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font: inherit; cursor: pointer; color: var(--ink); text-align: left; }
.tx-yh:hover { border-color: var(--blue-line); background: var(--surface); }
.tx-yh b { font-size: 16px; }
.tx-yh > svg.i { width: 17px; height: 17px; color: var(--muted); transition: transform .2s; }
.tx-year.open .tx-yh > svg.i { transform: rotate(180deg); }
.tx-year.open .tx-yh { background: var(--surface); border-color: var(--blue-line); }
.tx-year:not(.open) .tx-list { display: none; }
.tx-year .tx-list { margin-top: 10px; }
.btn.subtle { background: var(--grey-bg); border-color: transparent; color: var(--muted); }
.btn.subtle:hover { background: var(--grey-hover); color: var(--ink-2); border-color: transparent; }
.tx-item.next { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,107,255,.1); }

/* ===================== Fiche client ===================== */
.av.xxl { width: 84px; height: 84px; font-size: 28px; border-radius: 22px; }
.av.xxl.logo { border-radius: 22px; }
.cl-hero { display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap; padding: 24px; margin-bottom: 20px; border-radius: 22px; border: 1px solid var(--blue-line);
  background: radial-gradient(520px 220px at 100% 0%, #EDE7FF 0%, transparent 70%), radial-gradient(420px 200px at 0% 100%, #E3EDFF 0%, transparent 70%), #fff; box-shadow: var(--shadow); }
.cl-id { display: flex; gap: 20px; align-items: flex-start; flex: 1; min-width: 280px; }
.cl-txt { min-width: 0; }
.cl-name { font-size: 24px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl-sub { margin-top: 4px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; }
.cl-sub svg.i { width: 15px; height: 15px; color: var(--violet); }
.dot-sep { color: var(--muted); }
.cl-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.cl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; max-width: 100%; }
.cl-chip span { color: var(--muted); } .cl-chip b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.cl-chip svg.i { width: 13px; height: 13px; color: var(--blue); }
.cl-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.cl-fin { display: flex; align-items: center; gap: 20px; padding: 16px 20px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.cl-ring { position: relative; width: 116px; height: 116px; }
.cl-ring svg { width: 100%; height: 100%; }
.cl-ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cl-ring b { font-size: 24px; font-weight: 800; line-height: 1; } .cl-ring span { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.cl-fin-l { display: flex; flex-direction: column; gap: 8px; min-width: 180px; }
.cl-fin-l div { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.cl-fin-l span { color: var(--muted); } .cl-fin-l b { font-size: 14px; } .cl-fin-l .pos { color: var(--ok); } .cl-fin-l .neg { color: var(--warn); }
.cl-tabs a { padding: 8px 14px; }
@media (max-width: 700px) {
  .cl-hero { padding: 18px; } .cl-id { flex-direction: column; gap: 12px; min-width: 0; }
  .cl-name { font-size: 20px; } .cl-fin { width: 100%; justify-content: center; }
  .av.xxl { width: 68px; height: 68px; font-size: 22px; }
}
.tx-year:not(.all) .tx-more { display: none; }
.tx-showmore { width: 100%; margin-top: 10px; padding: 10px; border: 1px dashed var(--blue-line); border-radius: 12px; background: var(--surface-2); color: var(--blue); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.tx-showmore:hover { background: var(--blue-soft); }
.tx-showmore svg.i { width: 15px; height: 15px; transition: transform .2s; }
.tx-year.all .tx-showmore svg.i { transform: rotate(180deg); }

/* ===================== Visionneuse de documents ===================== */
body.no-scroll { overflow: hidden; }
.viewer { position: fixed; inset: 0; z-index: 100; background: rgba(13,20,36,.82); backdrop-filter: blur(4px); display: flex; flex-direction: column; animation: fadeUp .18s both; }
.vw-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.vw-t { min-width: 0; display: flex; flex-direction: column; max-width: 46vw; }
.vw-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-t span { font-size: 12px; color: var(--muted); }
.vw-tools { display: flex; align-items: center; gap: 6px; background: var(--grey-bg); border-radius: 10px; padding: 3px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.vw-tools span { min-width: 46px; text-align: center; }
.vw-b { width: 32px; height: 32px; border: 0; background: var(--surface); border-radius: 8px; cursor: pointer; font: inherit; font-size: 17px; font-weight: 700; color: var(--ink); display: grid; place-items: center; box-shadow: 0 1px 2px rgba(17,28,51,.08); }
.vw-b:hover { color: var(--blue); }
.vw-b svg.i { width: 16px; height: 16px; }
.vw-x { width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--grey-bg); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.vw-x:hover { background: var(--bad-bg); color: var(--bad); }
.vw-body { flex: 1; overflow: auto; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.vw-page, .vw-img { max-width: none; background: var(--surface); box-shadow: 0 10px 40px rgba(0,0,0,.35); border-radius: 4px; display: block; }
.vw-img { height: auto; }
.vw-sheet { width: min(920px, 100%); flex: 1; display: flex; flex-direction: column; min-height: 70vh; background: var(--surface); border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.35); overflow: hidden; }
.vw-sheet.wide { width: min(1200px, 100%); }
.vw-doc { border: 0; width: 100%; flex: 1; min-height: 70vh; background: var(--surface); }
.vw-sh { flex: 1; display: flex; }
.vw-tabs { display: flex; gap: 4px; padding: 8px; background: var(--grey-bg); flex-wrap: wrap; }
.vw-tabs button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.vw-tabs button.on { background: var(--surface); color: var(--blue); box-shadow: 0 1px 2px rgba(17,28,51,.1); }
.vw-load { color: #fff; display: flex; align-items: center; gap: 10px; margin-top: 18vh; font-weight: 600; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.vw-empty { margin-top: 14vh; background: var(--surface); border-radius: 18px; padding: 30px 36px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; max-width: 420px; }
.vw-empty > svg.i { width: 36px; height: 36px; color: var(--blue); }
.vw-empty span { color: var(--muted); font-size: 13px; }
.proof-view { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
.proof-view:hover { filter: brightness(.95); }
.proof-view svg.i { width: 13px; height: 13px; }
.doclist .d .btn.sm { flex-shrink: 0; }
@media (max-width: 700px) { .vw-bar { padding: 10px 12px; gap: 8px; } .vw-t { max-width: 60vw; } .vw-bar .btn span { display: none; } .vw-body { padding: 12px; } }

/* ===================== Abonnements ===================== */
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.sub-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.sub-card.soon { border-color: #FFC27A; box-shadow: 0 0 0 3px rgba(255,159,67,.15); }
.sub-card.off { opacity: .6; }
.sub-top { display: flex; align-items: center; gap: 12px; }
.sub-top > div { flex: 1; min-width: 0; }
.sub-mid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.sub-mid > div { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.sub-mid span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.sub-mid b { font-size: 17px; margin-top: 2px; }
.sub-mid em { font-style: normal; font-size: 12px; color: var(--muted); }
.sub-date.soon { background: var(--warn-bg) !important; border-color: #FFD9A8 !important; } .sub-date.soon em { color: var(--warn); font-weight: 700; }
.sub-date.late { background: var(--bad-bg) !important; border-color: #F6C9CA !important; } .sub-date.late em { color: var(--bad); font-weight: 700; }
.sub-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sub-foot .hint { display: inline-flex; align-items: center; gap: 5px; }
.sub-foot svg.i { width: 14px; height: 14px; }

/* ===================== Rappels ===================== */
.nav-n { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.rem-g + .rem-g { margin-top: 18px; }
.rem-gt { font-weight: 700; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .04em; }
.tx-item.rem.soon { border-color: #FFC27A; background: var(--tint-warn); }
.tx-item.rem.soon .tx-date { background: var(--warn-bg); color: var(--warn); }
.tx-amt b.pos { color: var(--ok); }
a.tx-body:hover .bold { color: var(--blue); }

/* ===================== Comparaison ===================== */
.cmp-head { display: flex; flex-direction: column; gap: 14px; }
.cmp-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmp-pick .icon-btn.sm { display: grid; place-items: center; color: var(--ink-2); }
.cmp-d { width: auto; min-width: 140px; }
.cmp-vs { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.cmp-vs > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 18px; text-align: center; min-width: 200px; box-shadow: var(--shadow); }
.cmp-vs > div.b { border-color: var(--blue-line); background: var(--blue-soft); }
.cmp-vs span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.cmp-vs b { font-size: 16px; }
.cmp-vs em { font-style: normal; font-weight: 800; color: var(--muted); }
.kpi .s .hint { margin-left: 4px; }
.cc { display: flex; align-items: flex-end; gap: 8px; height: 220px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.cc-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.cc-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.cc-bars i { width: min(14px, 30%); border-radius: 5px 5px 2px 2px; min-height: 2px; }
.cc-bars i.c { background: linear-gradient(180deg, #5B95FF, #1F6BFF); }
.cc-bars i.p { background: var(--prev); }
.cc-bars i.neg { background: linear-gradient(180deg, #FF8A8C, #E5383B); }
.cc-col > span { font-size: 11px; color: var(--muted); padding-bottom: 6px; }
.cc-col .tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; padding: 9px 11px; border-radius: 10px; white-space: nowrap; z-index: 10; min-width: 170px; }
.cc-col:hover .tip { display: block; }
.cc-col .tip b { display: block; margin-bottom: 4px; }
.cc-col .tip div { display: flex; align-items: center; gap: 6px; }
.cc-col .tip i { width: 8px; height: 8px; border-radius: 50%; }
.cc-col .tip span { margin-left: auto; padding-left: 12px; font-weight: 700; }

/* ===================== Notes de frais ===================== */
.ndf-act { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.ndf-act .btn:disabled { opacity: .5; }
.sig2 { display: grid; grid-template-columns: 1fr 1fr; padding: 0 !important; }
.sig2 > div { padding: 10px 12px; min-height: 34mm; display: flex; flex-direction: column; justify-content: space-between; text-align: center; }
.sig2 > div + div { border-left: 1px solid #DCE5F2; }
.sig2 span { font-size: 8.5pt; color: var(--muted); }
.ndf-paper .pay { grid-template-columns: 1.2fr 1.3fr; }
@media print { .no-print { display: none !important; } }
.ndf-grid { grid-template-columns: 1fr; }

/* ===================== Menu latéral v2 : groupes, mode réduit, indicateur ===================== */
.sidebar { transition: width .28s cubic-bezier(.2,.7,.2,1); }
.brand { position: relative; display: flex; align-items: center; min-height: 72px; }
.brand .brand-mini { display: none; height: 34px; }
.side-toggle { position: absolute; right: -13px; top: 26px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(17,28,51,.12); z-index: 5; transition: transform .2s, color .15s, border-color .15s; }
.side-toggle:hover { color: var(--blue); border-color: var(--blue); transform: scale(1.08); }
.side-toggle svg.i { width: 14px; height: 14px; }
nav { position: relative; gap: 2px; padding: 6px 12px 12px; }
nav a { position: relative; z-index: 1; padding: 9px 12px; white-space: nowrap; }
nav a.active { background: transparent; }
nav a .nl { overflow: hidden; text-overflow: ellipsis; transition: opacity .18s; }
.nav-ind { position: absolute; left: 0; top: 0; border-radius: 10px; background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); opacity: 0; pointer-events: none; z-index: 0;
  transition: transform .38s cubic-bezier(.3,1.25,.4,1), height .25s ease, width .25s ease, opacity .2s; }
.nav-g { margin-top: 6px; }
.nav-gh { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 12px 6px; border: 0; background: none; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-radius: 8px; }
.nav-gh:hover { color: var(--ink); }
.nav-gh span { flex: 1; text-align: left; }
.nav-chev { width: 15px !important; height: 15px !important; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.nav-g.closed .nav-chev { transform: rotate(-90deg); }
.nav-gb { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .28s cubic-bezier(.2,.7,.2,1), opacity .2s; }
.nav-g.closed .nav-gb { grid-template-rows: 0fr; opacity: 0; }
.nav-gi { overflow: hidden; display: flex; flex-direction: column; gap: 2px; min-height: 0; }
nav a .nav-n { margin-left: auto; }
/* mode réduit (icônes seules) */
body.side-mini .sidebar { width: 78px; }
body.side-mini .brand { padding: 20px 0 14px; justify-content: center; }
body.side-mini .brand .brand-full { display: none; }
body.side-mini .brand .brand-mini { display: block; }
body.side-mini nav { padding: 6px 10px 12px; }
body.side-mini nav a { justify-content: center; padding: 11px 0; }
body.side-mini nav a .nl { display: none; }
body.side-mini nav a .nav-n { position: absolute; top: 3px; right: 6px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
body.side-mini .nav-gh { justify-content: center; padding: 6px 0; pointer-events: none; }
body.side-mini .nav-gh span, body.side-mini .nav-chev { display: none; }
body.side-mini .nav-gh::before { content: ""; display: block; width: 26px; border-top: 1px solid var(--line); margin: 4px 0; }
body.side-mini .nav-g.closed .nav-gb { grid-template-rows: 1fr; opacity: 1; }
body.side-mini .side-card { display: none; }
body.side-mini .nav-ind { box-shadow: none; }
@media (max-width: 900px) {
  .side-toggle { display: none; }
  body.side-mini .sidebar { width: 248px; }
  body.side-mini .brand .brand-full { display: block; } body.side-mini .brand .brand-mini { display: none; }
  body.side-mini nav a { justify-content: flex-start; padding: 9px 12px; } body.side-mini nav a .nl { display: inline; }
  body.side-mini .nav-gh span, body.side-mini .nav-chev { display: inline; } body.side-mini .nav-gh::before { display: none; } body.side-mini .nav-gh { pointer-events: auto; justify-content: flex-start; padding: 9px 12px 6px; }
}

/* ===================== Transitions entre pages ===================== */
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: linear-gradient(90deg, #5B8CFF, #1F6BFF, #7C5CFC); box-shadow: 0 0 10px rgba(31,107,255,.6); opacity: 0; pointer-events: none; transition: opacity .25s; }
#progress.go { animation: progGo 1.6s cubic-bezier(.1,.6,.3,1) forwards; }
#progress.done { width: 100% !important; transition: width .2s ease, opacity .25s .1s; animation: none; }
@keyframes progGo { from { width: 0; } to { width: 82%; } }
.view.page-in { animation: pageIn .42s cubic-bezier(.2,.7,.2,1) both; }
.page-head.page-in { animation: headIn .38s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes headIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view.page-in, .page-head.page-in, #progress.go, .nav-ind, .nav-gb, .sidebar { animation: none !important; transition: none !important; } }

/* ===================== Menu : plus d'espace entre les groupes ===================== */
.nav-g { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.nav-gh { padding: 4px 12px 8px; }
.nav-gi { padding-bottom: 2px; }
body.side-mini .nav-g { margin-top: 10px; padding-top: 6px; border-top: 0; }

/* ===================== Mode sombre ===================== */
.logo-d, .brand .brand-full.logo-d, .brand .brand-mini.logo-d { display: none; }
.theme-btn svg.i { transition: transform .4s cubic-bezier(.3,1.4,.5,1); }
.theme-btn:hover svg.i { transform: rotate(-25deg) scale(1.08); }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .35s ease, border-color .35s ease, color .35s ease, fill .35s ease, box-shadow .35s ease !important; }
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A1020; --surface: #111A2D; --surface-2: #0E1628; --hover: #16213A; --grey-hover: #223050; --line: #1F2B45; --line-2: #19233A; --line-3: #2A3A5C;
  --ink: #E8EEF9; --ink-2: #B6C1D6; --muted: #7F8BA6; --navy: #8FB0F0;
  --blue-soft: rgba(56,120,255,.16); --blue-line: rgba(91,140,255,.38); --grey-bg: #18233A;
  --ok: #34D27A; --ok-bg: rgba(34,197,94,.15); --warn: #FFAE45; --warn-bg: rgba(255,159,67,.15); --bad: #FF6B6E; --bad-bg: rgba(229,56,59,.17);
  --violet: #A08BFF; --violet-bg: rgba(124,92,252,.18);
  --k-grey: #121C30; --k-blue: rgba(31,107,255,.10); --k-yellow: rgba(255,159,67,.09); --k-green: rgba(34,197,94,.09);
  --topbar: rgba(13,20,36,.82); --glass: rgba(17,26,45,.75);
  --tint-violet: rgba(124,92,252,.08); --tint-warn: rgba(255,159,67,.08); --tint-bad: rgba(229,56,59,.08); --tint-ok: rgba(34,197,94,.07);
  --track: #22304D; --prev: #34446A; --sk1: #141E33; --sk2: #1C2842;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 26px rgba(0,0,0,.28); --shadow-lg: 0 18px 50px rgba(0,0,0,.55);
}
html[data-theme="dark"] .logo-l, html[data-theme="dark"] .brand .brand-full.logo-l, html[data-theme="dark"] .brand .brand-mini.logo-l { display: none; }
html[data-theme="dark"] .logo-d { display: block; }
html[data-theme="dark"] .brand .brand-full.logo-d { display: block; }
html[data-theme="dark"] body.side-mini .brand .brand-full.logo-d { display: none; }
html[data-theme="dark"] body.side-mini .brand .brand-mini.logo-d { display: block; }
html[data-theme="dark"] .btn.primary:hover { background: #3a7dff; }
html[data-theme="dark"] .btn.navy { background: #1D4F9A; border-color: #1D4F9A; }
html[data-theme="dark"] .kpi .k-ic.navy { background: linear-gradient(135deg, #2D63C4, #1D4F9A); }
html[data-theme="dark"] .alert.warn { color: #FFC98A; } html[data-theme="dark"] .alert.info { color: #A9C4FF; }
html[data-theme="dark"] .alert.bad { color: #FF9EA0; } html[data-theme="dark"] .alert.ok { color: #7BE3A6; }
html[data-theme="dark"] .b-grey { color: #AEB8CC; }
html[data-theme="dark"] .kcol.yellow .kh { color: #FFB65C; }
html[data-theme="dark"] .rep-head { background: radial-gradient(500px 200px at 100% 0%, rgba(124,92,252,.18) 0%, transparent 70%), linear-gradient(135deg, rgba(31,107,255,.12), var(--surface)); }
html[data-theme="dark"] .cl-hero { background: radial-gradient(520px 220px at 100% 0%, rgba(124,92,252,.16) 0%, transparent 70%), radial-gradient(420px 200px at 0% 100%, rgba(31,107,255,.14) 0%, transparent 70%), var(--surface); }
html[data-theme="dark"] .pf-head { background: linear-gradient(135deg, rgba(31,107,255,.14), rgba(124,92,252,.12)); }
html[data-theme="dark"] .sal-box { background: linear-gradient(180deg, rgba(124,92,252,.10), var(--surface)); border-color: rgba(124,92,252,.35); }
html[data-theme="dark"] .ref-chip { border-color: rgba(160,139,255,.35); }
html[data-theme="dark"] .auth { background: radial-gradient(1200px 600px at 10% -10%, rgba(31,107,255,.18) 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, rgba(124,92,252,.16) 0%, transparent 60%), var(--bg); }
html[data-theme="dark"] .modal { background: rgba(3,7,18,.6); }
html[data-theme="dark"] .ui-tip, html[data-theme="dark"] .toast, html[data-theme="dark"] .ccol .tip, html[data-theme="dark"] .cc-col .tip, html[data-theme="dark"] .chart .tip { background: #24314F; }
html[data-theme="dark"] .dp-d.out { color: #4A5878; }
html[data-theme="dark"] input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--surface) inset; -webkit-text-fill-color: var(--ink); }
html[data-theme="dark"] ::selection { background: rgba(56,120,255,.4); color: #fff; }
html[data-theme="dark"] .tx-item.paye .tx-date { background: var(--ok-bg); }
html[data-theme="dark"] .vw-bar { background: var(--surface); }
html[data-theme="dark"] .vw-b { background: var(--grey-bg); color: var(--ink); }
/* les documents (facture, devis, note de frais) restent sur papier blanc */
html[data-theme="dark"] .paper { --navy: #04285D; --blue: #1F6BFF; --muted: #6B7A90; --ink: #1E2A3B; color: #1E2A3B; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
html[data-theme="dark"] .paper .logo-l { display: block; } html[data-theme="dark"] .paper .logo-d { display: none; }
@media print { html[data-theme="dark"] { --bg: #fff; --surface: #fff; --ink: #1E2A3B; } }
html:not([data-theme="dark"]) .logo-d { display: none !important; }
html[data-theme="dark"] .logo-l { display: none !important; }

/* ===================== Menu : page en cours sur un groupe replié ===================== */
.nav-cur { display: none; font-style: normal; text-transform: none; letter-spacing: 0; font-size: 11.5px; font-weight: 600; color: #fff; background: var(--blue); border-radius: 999px; padding: 2px 9px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 3px 10px rgba(31,107,255,.3); }
.nav-g.closed.has-active .nav-cur { display: inline-block; animation: curIn .28s cubic-bezier(.3,1.4,.5,1) both; }
.nav-g.closed.has-active .nav-gh { color: var(--blue); }
.nav-g.has-active .nav-gh span { position: relative; }
.nav-g.has-active .nav-gh span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin: 0 7px 1px 0; vertical-align: middle; }
.nav-gh { position: relative; z-index: 1; }
.nav-ind.on-group { box-shadow: inset 3px 0 0 var(--blue); }
body.side-mini .nav-cur { display: none !important; }
@keyframes curIn { from { opacity: 0; transform: translateX(-6px) scale(.9); } to { opacity: 1; transform: none; } }

/* ===================== Suppression de document ===================== */
.doc-del { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: all .15s; }
.doc-del svg.i { width: 16px; height: 16px; }
.doc-del:hover { color: var(--bad); background: var(--bad-bg); border-color: rgba(229,56,59,.25); }
.doc-del:focus-visible { outline: 2px solid var(--bad); outline-offset: 1px; }
.doclist .d { transition: border-color .15s, background .15s; }
.doclist .d:hover { border-color: var(--blue-line); background: var(--surface-2); }
.danger-ov { position: fixed; inset: 0; z-index: 110; background: rgba(17,28,51,.5); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fadeUp .16s both; }
.danger-ov.out { opacity: 0; transition: opacity .15s; }
.danger-box { width: 460px; max-width: 100%; background: var(--surface); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-lg); text-align: center; border-top: 4px solid var(--bad); animation: pop .2s ease-out; }
.danger-ic { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: var(--bad-bg); color: var(--bad); box-shadow: 0 0 0 8px rgba(229,56,59,.08); }
.danger-ic svg.i { width: 26px; height: 26px; }
.danger-box h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.danger-box p { margin: 0 0 12px; color: var(--ink-2); word-break: break-word; }
.danger-warn { display: flex; gap: 8px; align-items: center; justify-content: center; text-align: left; background: var(--bad-bg); color: var(--bad); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin: 4px 0 16px; }
.danger-warn svg.i { width: 18px; height: 18px; flex-shrink: 0; }
.danger-f { text-align: left; }
.danger-code { display: block; font-family: "JetBrains Mono", Consolas, ui-monospace, monospace; font-size: 18px; letter-spacing: .08em; text-align: center; padding: 10px; margin-bottom: 8px; border-radius: 10px; background: var(--grey-bg); color: var(--ink); user-select: none; }
.danger-f input { text-align: center; font-family: "JetBrains Mono", Consolas, ui-monospace, monospace; letter-spacing: .06em; }
.danger-f.ok input { border-color: var(--ok); box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
.danger-actions { display: flex; gap: 10px; justify-content: center; margin-top: 6px; flex-wrap: wrap; }
.btn.danger-solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger-solid:hover:not(:disabled) { filter: brightness(.92); color: #fff; }
.btn.danger-solid:disabled { opacity: .45; }

/* ===================== Confirmation « modification » (orange) & verrou ===================== */
.danger-ov.tone-warn .danger-box { border-top-color: var(--warn); }
.danger-ov.tone-warn .danger-ic { background: var(--warn-bg); color: var(--warn); box-shadow: 0 0 0 8px rgba(255,159,67,.1); }
.danger-ov.tone-warn .danger-warn { background: var(--warn-bg); color: var(--warn); }
.danger-ov.tone-warn .btn.danger-solid { background: var(--warn); border-color: var(--warn); }
.lock-fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.lock-fs:disabled input, .lock-fs:disabled .ui-field { background: var(--surface-2); color: var(--ink-2); border-style: dashed; cursor: not-allowed; }
.lock-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--grey-bg); color: var(--muted); }
.lock-pill svg.i { width: 14px; height: 14px; }
.lock-pill.open { background: var(--warn-bg); color: var(--warn); animation: curIn .3s both; }
.lock-note { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-3); color: var(--ink-2); font-size: 13px; margin-bottom: 16px; }
.lock-note svg.i { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.lock-actions { margin-top: 6px; }

/* ===================== Listes : défilement seulement au-delà de 10 lignes ===================== */
.list-card.pp-big .table-wrap { max-height: 620px; overflow: auto; }
.list-card.pp-big thead th { position: sticky; top: 0; z-index: 2; }

/* ===================== Devis / factures : fiche avec aperçu ===================== */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.doc-preview .paper { width: 100%; min-height: 0; padding: 28px 34px; box-shadow: var(--shadow); border-radius: 6px; }
.doc-preview .paper .ft { position: static; margin-top: 18px; }
.doc-preview.draft .paper { position: relative; }
.doc-preview.draft .paper::after { content: "BROUILLON"; position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%) rotate(-24deg); font-size: 64px; font-weight: 800; letter-spacing: .12em; color: rgba(31,107,255,.07); pointer-events: none; white-space: nowrap; }
.doc-card .doc-preview .paper { box-shadow: none; border: 1px solid #DCE5F2; }
.btn.wide { width: 100%; justify-content: center; padding: 11px; }
.form-actions { justify-content: flex-end; margin-top: 4px; }
.sum-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; align-items: center; }
.sum-list > div:last-child { border-bottom: 0; }
.sum-list span { color: var(--muted); } .sum-list b { text-align: right; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sum-list > div.big b { font-size: 17px; color: var(--blue); }
.stepper { display: flex; align-items: flex-start; gap: 0; }
.stp { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; width: 64px; text-align: center; }
.stp-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grey-bg); color: var(--muted); border: 2px solid var(--line); transition: all .3s; }
.stp-dot svg.i { width: 16px; height: 16px; }
.stp-l { font-size: 11.5px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.stp.done .stp-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.stp.done .stp-l { color: var(--ok); }
.stp.cur .stp-dot { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 5px rgba(31,107,255,.15); animation: stpPulse 2s ease-in-out infinite; }
.stp.cur .stp-l { color: var(--blue); }
.stp.fail .stp-dot { background: var(--bad); border-color: var(--bad); color: #fff; }
.stp.fail .stp-l { color: var(--bad); }
.stp-bar { flex: 1; height: 3px; border-radius: 3px; background: var(--line); margin-top: 16px; min-width: 12px; }
.stp-bar.done { background: var(--ok); }
@keyframes stpPulse { 50% { box-shadow: 0 0 0 9px rgba(31,107,255,.06); } }
@media (max-width: 1100px) { .doc-layout { grid-template-columns: 1fr; } .doc-layout > .side-stack { order: -1; } }
@media (max-width: 560px) { .doc-preview .paper { padding: 16px; } .stp { width: 52px; } .stp-l { font-size: 10.5px; } }
.doc-card .doc-preview { max-width: 880px; margin: 0 auto; }

/* ===================== Fenêtres : même style que la confirmation ===================== */
.modal-box { --mt: var(--blue); --mtb: var(--blue-soft); margin: auto; border-radius: 20px; border-top: 4px solid var(--mt); padding: 26px 28px; }
.modal-box.tone-bad { --mt: var(--bad); --mtb: var(--bad-bg); }
.modal-box.tone-warn { --mt: var(--warn); --mtb: var(--warn-bg); }
.modal-box.tone-ok { --mt: var(--ok); --mtb: var(--ok-bg); }
.mh { text-align: center; margin: 0 0 18px; }
.mh-ic { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: var(--mtb); color: var(--mt); box-shadow: 0 0 0 8px color-mix(in srgb, var(--mt) 9%, transparent); }
.mh-ic svg.i { width: 26px; height: 26px; }
.modal-box .mh h3 { margin: 0; font-size: 19px; }
.mh .mh-sub { margin: 6px auto 0; color: var(--ink-2); max-width: 520px; font-size: 13.5px; }
#modal-body form > .row:last-child, #modal-body > .row:last-child { justify-content: center; border-top: 1px solid var(--line-2); padding-top: 16px; margin-top: 14px; flex-wrap: wrap; }
#modal-body form > .row:last-child .spacer { display: none; }
#modal-body form > .row:last-child .btn.primary, #modal-body form > .row:last-child .btn.navy { background: var(--mt); border-color: var(--mt); color: #fff; }
.modal-box.tone-blue #modal-body form > .row:last-child .btn.navy { background: var(--navy); border-color: var(--navy); }
.danger-ov.tone-blue .danger-box { border-top-color: var(--blue); }
.danger-ov.tone-blue .danger-ic { background: var(--blue-soft); color: var(--blue); box-shadow: 0 0 0 8px rgba(31,107,255,.08); }
.danger-ov.tone-blue .btn.danger-solid { background: var(--blue); border-color: var(--blue); }
.danger-ov.tone-ok .danger-box { border-top-color: var(--ok); }
.danger-ov.tone-ok .danger-ic { background: var(--ok-bg); color: var(--ok); box-shadow: 0 0 0 8px rgba(22,163,74,.08); }
.danger-ov.tone-ok .btn.danger-solid { background: var(--ok); border-color: var(--ok); }

/* ===================== Salariés ===================== */
.form-sec { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0 10px; padding-top: 6px; }
.form-sec svg.i { width: 15px; height: 15px; color: var(--blue); }
.form-sec .hint { text-transform: none; letter-spacing: 0; font-weight: 500; }
.emp-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-2); padding: 0 2px 10px; }
.emp-meta span { display: inline-flex; align-items: center; gap: 5px; }
.emp-meta svg.i { width: 14px; height: 14px; color: var(--muted); }
.emp-empty { text-align: center; padding: 38px 24px; }
.emp-empty-ic { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); box-shadow: 0 0 0 10px rgba(31,107,255,.06); }
.emp-empty-ic svg.i { width: 30px; height: 30px; }
.emp-empty h3 { margin: 0 0 8px; font-size: 18px; }
.emp-empty p { max-width: 560px; margin: 0 auto 16px; color: var(--ink-2); }
.emp-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); margin: 4px 0 2px; }
.emp-total b { font-size: 18px; color: var(--blue); }

/* ===================== Aperçu « voir comme » ===================== */
#preview-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(90deg, var(--warn-bg), var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); color: var(--ink); animation: fadeUp .25s both; }
#preview-bar > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
#preview-bar > div span { color: var(--ink-2); }
#preview-bar .pv-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--warn); color: #fff; flex-shrink: 0; }
#preview-bar .pv-ic svg.i { width: 20px; height: 20px; }
body.previewing .user { box-shadow: 0 0 0 2px var(--warn); }
@media (max-width: 640px) { #preview-bar { flex-wrap: wrap; } #preview-bar .btn { width: 100%; justify-content: center; } }

/* ===================== Comptable : espace & déclarations ===================== */
.cp-links { display: flex; flex-direction: column; gap: 8px; }
.cp-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); color: inherit; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.cp-link:hover { background: var(--surface-2); border-color: var(--blue-line); transform: translateX(2px); }
.cp-link > div { flex: 1; display: flex; flex-direction: column; } .cp-link > svg.i { color: var(--muted); width: 16px; height: 16px; }
.tx-note.decl { color: var(--violet); }
.tx-note .badge { vertical-align: middle; }
tr.clk { cursor: pointer; }
.req { color: var(--bad); font-weight: 700; }
.dropzone.need { border-color: var(--bad); background: var(--bad-bg); animation: shake .3s; }
.dropzone.ok { border-color: var(--ok); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ===================== Connexion (écran partagé) ===================== */
#view:has(> .auth2) { padding: 0; max-width: none; }
.auth2 { display: grid; grid-template-columns: 47.5% 1fr; min-height: 100vh; width: 100%; background: #F3F6FC; }

/* --- panneau marque --- */
.as-side { position: relative; overflow: hidden; color: #fff; padding: 44px 56px 0 76px; display: flex; flex-direction: column; isolation: isolate;
  background: linear-gradient(150deg, #061A4A 0%, #0A2E86 38%, #0D45D6 72%, #1E63FF 100%); }
.as-blob { position: absolute; border-radius: 50%; z-index: -1; pointer-events: none; }
.as-blob.b1 { width: 520px; height: 520px; top: -230px; right: -250px; background: radial-gradient(circle at 30% 70%, rgba(110,160,255,.55), rgba(40,100,255,.25) 60%, transparent 72%); }
.as-blob.b2 { width: 300px; height: 300px; top: 40px; right: -170px; background: linear-gradient(200deg, rgba(150,190,255,.45), rgba(60,120,255,.15)); filter: blur(1px); }
.as-blob.b3 { width: 760px; height: 420px; bottom: -250px; left: -220px; border-radius: 48% 52% 40% 60% / 60% 55% 45% 40%;
  background: linear-gradient(20deg, rgba(60,130,255,.55), rgba(80,140,255,.12) 70%); transform: rotate(-8deg); }
.as-grid { position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: radial-gradient(rgba(255,255,255,.13) 1px, transparent 1px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 70%); mask-image: linear-gradient(180deg, #000 10%, transparent 70%); }
.as-brand { display: flex; align-items: center; gap: 12px; }
.as-brand img { width: 50px; height: 50px; object-fit: contain; }
.as-brand b { display: block; font-size: 27px; line-height: 1; font-weight: 800; letter-spacing: .01em; }
.as-brand span { display: block; font-size: 22px; line-height: 1.15; font-weight: 400; }
.as-brand.on-dark { color: #fff; }
.as-pitch { margin-top: 44px; max-width: 520px; padding-left: 20px; }
.as-kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #DCE7FF;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(160,190,255,.45); padding: 6px 14px; border-radius: 99px; }
.as-pitch h2 { font-size: clamp(30px, 3.1vw, 46px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; margin: 22px 0 14px; }
.as-pitch h2 em { font-style: normal; color: #6FA2FF; }
.as-pitch > p { color: #E3EBFF; font-size: 16px; margin: 0 0 22px; line-height: 1.45; max-width: 470px; }
.as-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.as-feats li { display: flex; gap: 16px; align-items: center; }
.as-feats li > span { width: 54px; height: 50px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(255,255,255,.08); border: 1px solid rgba(170,200,255,.3); color: #E3ECFF; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.as-feats li > span svg.i { width: 22px; height: 22px; }
.as-feats b { display: block; font-size: 17px; } .as-feats small { color: #D3DFFA; font-size: 14px; }

/* --- maquette 3D --- */
.as-scene { position: relative; margin: auto 0 0 40px; height: 290px; max-width: 540px; perspective: 1200px; }
.as-mock { position: absolute; left: 0; top: 24px; width: 440px; max-width: 86%; padding: 18px 20px 20px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(120,160,255,.38), rgba(40,90,230,.32)); border: 1.5px solid rgba(180,205,255,.45);
  box-shadow: 0 40px 70px rgba(3,15,60,.45), inset 0 1px 0 rgba(255,255,255,.25); backdrop-filter: blur(8px);
  transform: rotateX(12deg) rotateY(14deg) rotateZ(-3deg); transform-origin: left center; animation: asFloat 8s ease-in-out infinite; }
.am-head { display: flex; gap: 7px; margin-bottom: 14px; } .am-head i { width: 10px; height: 10px; border-radius: 50%; background: rgba(220,232,255,.6); }
.am-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.am-kpi { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 7px; }
.am-kpi s { height: 6px; width: 50%; border-radius: 4px; background: rgba(230,238,255,.55); }
.am-kpi b { height: 8px; width: 85%; border-radius: 4px; background: linear-gradient(90deg, #8DB3FF, #C08CFF); }
.am-chart { height: 104px; display: flex; align-items: flex-end; gap: 12px; padding: 0 2px; }
.am-chart span { flex: 1; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #9CBEFF, rgba(110,160,255,.45)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  transform-origin: bottom; animation: asBar .9s cubic-bezier(.2,.8,.2,1) both; }
.am-chart span:nth-child(2n) { animation-delay: .08s; } .am-chart span:nth-child(3n) { animation-delay: .16s; }
.as-mini { position: absolute; left: min(400px, 74%); top: 92px; width: 124px; padding: 14px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(90,130,240,.7), rgba(30,70,200,.7)); border: 1.5px solid rgba(180,205,255,.5);
  box-shadow: 0 24px 50px rgba(3,15,60,.5); backdrop-filter: blur(10px); transform: rotateY(-8deg) rotateZ(-2deg); animation: asFloat2 7s ease-in-out infinite; }
.am-pie { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 12px;
  background: conic-gradient(#C3A6FF 0 22%, #8FB4FF 22% 48%, #2F6BFF 48% 100%); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.am-leg { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.am-leg i { width: 9px; height: 9px; border-radius: 3px; background: #8FB4FF; } .am-leg s { flex: 1; height: 6px; border-radius: 4px; background: rgba(230,238,255,.6); }
@keyframes asFloat { 50% { transform: rotateX(12deg) rotateY(14deg) rotateZ(-3deg) translateY(-8px); } }
@keyframes asFloat2 { 50% { transform: rotateY(-8deg) rotateZ(-2deg) translateY(-12px); } }
@keyframes asBar { from { transform: scaleY(0); } }

/* --- côté formulaire --- */
.as-main { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 48px 32px; isolation: isolate; }
.as-deco { position: absolute; border-radius: 50%; z-index: -1; pointer-events: none; }
.as-deco.d1 { width: 520px; height: 520px; right: -200px; bottom: -300px; background: linear-gradient(160deg, #E4ECFC, #EEF3FD); }
.as-deco.d2 { width: 380px; height: 380px; right: 120px; bottom: -280px; background: linear-gradient(200deg, #E8EEFB, rgba(232,238,251,.3)); }
.as-dots { position: absolute; right: 30px; bottom: 54px; width: 92px; height: 72px; z-index: -1;
  background-image: radial-gradient(#B6C6F0 2.2px, transparent 2.6px); background-size: 20px 20px; }
.as-theme { position: absolute; top: 28px; right: 28px; width: 50px; height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(17,28,51,.06); transition: background .15s, transform .15s; }
.as-theme:hover { background: var(--hover); transform: translateY(-1px); }
.as-box { width: 100%; max-width: 592px; background: var(--surface); border: 1px solid #EDF1F8; border-radius: 26px; padding: 46px 54px 40px;
  box-shadow: 0 30px 70px rgba(17,28,51,.08), 0 2px 6px rgba(17,28,51,.03); animation: asIn .5s cubic-bezier(.2,.8,.2,1) both; }
.as-mbrand { display: none; margin-bottom: 26px; color: var(--ink); }
.as-mbrand img { width: 40px; height: 40px; } .as-mbrand b { font-size: 22px; } .as-mbrand span { font-size: 17px; color: var(--muted); }
.as-hello { font-size: 20px; font-weight: 700; color: #0B5CFF; margin-bottom: 6px; }
.as-title { font-size: clamp(26px, 2.3vw, 34px); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.as-sub { color: var(--muted); margin: 0 0 30px; font-size: 17px; }
.af-form { display: flex; flex-direction: column; gap: 20px; }
.af { display: block; } .af-l { display: block; font-size: 15px; font-weight: 600; color: var(--ink-2); margin-bottom: 9px; }
.af-w { position: relative; display: flex; align-items: center; }
.af-w > svg.i { position: absolute; left: 17px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; transition: color .15s; }
.af-w input { width: 100%; height: 54px; padding: 0 52px 0 54px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1.5px solid #DCE2EC; border-radius: 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
.af-w input::placeholder { color: var(--muted); opacity: .75; }
.af-w input:hover { border-color: var(--blue-line); }
.af-w input:focus { border-color: #0B5CFF; box-shadow: 0 0 0 4px rgba(11,92,255,.13); }
.af-w:focus-within > svg.i { color: #0B5CFF; }
.af-eye { position: absolute; right: 8px; width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.af-eye svg.i { width: 20px; height: 20px; }
.af-eye:hover { background: var(--grey-bg); color: var(--ink); }
.af-caps, .af-err { display: flex; align-items: center; gap: 8px; font-size: 14px; border-radius: 11px; padding: 11px 14px; }
.af-caps { color: var(--warn); background: var(--warn-bg); } .af-err { color: var(--bad); background: var(--bad-bg); font-weight: 500; }
.af-caps[hidden], .af-err[hidden] { display: none; }
.as-btn { height: 60px; width: 100%; justify-content: center; gap: 12px; font-size: 18px; font-weight: 700; border-radius: 13px; margin-top: 6px;
  background: #0B5CFF; border-color: #0B5CFF; box-shadow: 0 10px 24px rgba(11,92,255,.28); position: relative; transition: background .15s, box-shadow .15s, transform .15s; }
.as-btn:hover { background: #0A52E6; box-shadow: 0 14px 28px rgba(11,92,255,.34); transform: translateY(-1px); }
.as-btn svg.i { width: 20px; height: 20px; transition: transform .2s; } .as-btn:hover svg.i { transform: translateX(3px); }
.as-btn.loading { pointer-events: none; opacity: .85; } .as-btn.loading > * { visibility: hidden; }
.as-btn.loading::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: asSpin .7s linear infinite; }
.as-help { text-align: center; color: var(--muted); font-size: 15px; margin: 6px 0 0; line-height: 1.6; }
.as-secure { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; text-align: center; }
.as-secure svg.i { width: 18px; height: 18px; color: var(--ok); }
.af-form.shake { animation: shake .35s; }
@keyframes asIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes asSpin { to { transform: rotate(360deg); } }

html[data-theme="dark"] .auth2 { background: var(--bg); }
html[data-theme="dark"] .as-box { border-color: var(--line); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
html[data-theme="dark"] .as-deco.d1, html[data-theme="dark"] .as-deco.d2 { background: rgba(60,100,200,.08); }
html[data-theme="dark"] .as-dots { background-image: radial-gradient(rgba(140,170,240,.35) 2.2px, transparent 2.6px); }
html[data-theme="dark"] .af-w input { border-color: var(--line-3); }

@media (max-width: 1200px) { .as-side { padding: 40px 36px 0 44px; } .as-pitch { padding-left: 0; } .as-scene { margin-left: 10px; } .as-box { padding: 38px 36px 32px; } }
@media (max-height: 820px) and (min-width: 961px) { .as-scene { height: 220px; } .as-pitch { margin-top: 28px; } .as-feats { gap: 10px; } }
@media (max-width: 960px) {
  .auth2 { grid-template-columns: 1fr; }
  .as-side { display: none; }
  .as-mbrand { display: flex; }
  .as-main { align-items: flex-start; padding: 84px 16px 32px; }
  .as-box { padding: 30px 22px 26px; border-radius: 22px; }
  .as-theme { top: 18px; right: 16px; width: 44px; height: 44px; }
  .as-hello { font-size: 17px; } .as-sub { font-size: 15px; margin-bottom: 24px; }
  .as-btn { height: 54px; font-size: 16px; }
  .as-help, .as-secure { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .as-mock, .as-mini, .am-chart span, .as-box { animation: none; } }

/* ===================== Export comptable ===================== */
.ex-card { display: flex; flex-direction: column; gap: 18px; }
.ex-card > h2 { margin-bottom: 0; }
.ex-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-chip { border: 1px solid var(--line-3); background: var(--surface); color: var(--ink-2); border-radius: 99px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.ex-chip:hover { border-color: var(--blue-line); background: var(--hover); }
.ex-chip.on { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); font-weight: 600; }
.ex-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ex-dates label.f { margin: 0; }
.ex-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface-2); }
.ex-check span { display: flex; flex-direction: column; } .ex-check small { color: var(--muted); font-size: 12.5px; }
.ex-check input { margin-top: 3px; }
.ex-sum { transition: opacity .2s; min-height: 120px; } .ex-sum.loading { opacity: .45; }
.ex-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ex-kpi { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.ex-kpi > div { display: flex; flex-direction: column; min-width: 0; } .ex-kpi b { font-size: 17px; } .ex-kpi small { color: var(--muted); font-size: 12px; }
.ex-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 11px 14px; border-radius: 12px; font-size: 13px; }
.ex-foot > span { flex: 1; } .ex-foot.ok { background: var(--ok-bg); color: var(--ok); } .ex-foot.warn { background: var(--warn-bg); color: var(--warn); }
.ex-go { height: 50px; justify-content: center; gap: 10px; font-size: 15px; font-weight: 700; border-radius: 12px; position: relative; }
.ex-go.loading { pointer-events: none; opacity: .85; } .ex-go.loading > * { visibility: hidden; }
.ex-go.loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: asSpin .7s linear infinite; }
.ex-inside { display: flex; flex-direction: column; gap: 12px; }
.ex-row { display: flex; gap: 12px; align-items: center; } .ex-row > div { display: flex; flex-direction: column; }
@media (max-width: 640px) { .ex-dates, .ex-grid { grid-template-columns: 1fr; } }

/* ===================== Connexion : version mobile ===================== */
.as-mhero { display: none; }
@media (max-width: 960px) {
  .as-main { display: block; padding: 0 0 28px; min-height: 100vh; }
  .as-deco, .as-dots { display: none; }
  .as-mhero { display: block; position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 26px 22px 96px;
    background: linear-gradient(150deg, #061A4A 0%, #0A2E86 45%, #0D45D6 80%, #1E63FF 100%); border-radius: 0 0 30px 30px; }
  .as-mhero::before { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -130px; border-radius: 50%; z-index: -1;
    background: radial-gradient(circle at 30% 70%, rgba(110,160,255,.55), rgba(40,100,255,.2) 60%, transparent 72%); }
  .as-mhero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 20px 20px; }
  .as-mhero .as-brand img { width: 40px; height: 40px; } .as-mhero .as-brand b { font-size: 21px; } .as-mhero .as-brand span { font-size: 16px; }
  .as-mhero h2 { font-size: 25px; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; margin: 24px 0 14px; }
  .as-mhero h2 em { font-style: normal; color: #7FAAFF; }
  .as-mchips { display: flex; flex-wrap: wrap; gap: 8px; }
  .as-mchips span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 99px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(170,200,255,.35); color: #E3ECFF; }
  .as-mchips svg.i { width: 14px; height: 14px; }
  .as-mbrand { display: none !important; }
  .as-theme { top: 20px; right: 18px; width: 42px; height: 42px; z-index: 3; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; box-shadow: none; }
  .as-theme:hover { background: rgba(255,255,255,.2); }
  .as-box { position: relative; z-index: 2; width: auto; max-width: 520px; margin: -68px 16px 0; padding: 28px 22px 24px; border-radius: 22px; box-shadow: 0 24px 50px rgba(6,26,74,.16); }
  html[data-theme="dark"] .as-box { box-shadow: 0 24px 50px rgba(0,0,0,.45); }
}
@media (max-width: 960px) and (min-width: 560px) { .as-box { margin-left: auto; margin-right: auto; } }

/* Connexion : logo officiel complet */
.as-side > .as-logo { height: 54px; width: auto; align-self: flex-start; display: block; }
.as-mhero .as-logo { height: 40px; width: auto; display: block; }
.as-mbrand img { height: 34px; width: auto; }

/* ===================== Calendrier fiscal : actions ===================== */
.tx-act { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 104px; }
.tx-act .btn { justify-content: center; white-space: nowrap; gap: 6px; }
.tx-act .btn svg.i { width: 14px; height: 14px; }
@media (max-width: 560px) {
  .tx-item { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .tx-item > .tx-act { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; min-width: 0; padding-top: 8px; border-top: 1px dashed var(--line); }
  .tx-item > .tx-act .btn { flex: 1; max-width: 170px; }
}

/* ===================== Alertes : lu / non lu ===================== */
#bell-pop { width: min(360px, calc(100vw - 24px)); padding: 8px 6px; }
#bell-pop .bp-h { display: flex; align-items: center; gap: 8px; padding: 4px 8px 8px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
#bell-pop .bp-h h4 { margin: 0; flex: 1; display: flex; align-items: center; gap: 7px; font-size: 14px; }
#bell-pop .bp-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
#bell-pop .bp-all { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--blue); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 5px 8px; border-radius: 8px; }
#bell-pop .bp-all:hover { background: var(--blue-soft); }
#bell-pop .bp-all svg.i { width: 14px; height: 14px; }
#bell-pop .bp-list { max-height: min(380px, 60vh); overflow-y: auto; padding-top: 4px; }
.pi-row { position: relative; border-radius: 10px; transition: opacity .2s, transform .2s, max-height .2s; max-height: 140px; }
.pi-row > .pi { padding-right: 46px !important; }
.pi-row.out { opacity: 0; transform: translateX(18px); }
.pi-row.is-read > .pi { opacity: .62; }
.pi-row.is-read > .pi:hover { opacity: 1; }
.pi-mk { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-3, var(--line)); background: var(--surface);
  color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .15s, color .15s, border-color .15s; }
.pi-mk svg.i { width: 15px; height: 15px; }
.pi-mk:hover, .pi-mk:focus-visible { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.pi-row.is-read .pi-mk:hover, .pi-row.is-read .pi-mk:focus-visible { background: var(--blue-soft); color: var(--blue); border-color: var(--blue); }
#bell-pop .bp-tog { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-top: 1px solid var(--line); background: none; margin-top: 6px;
  padding: 10px 8px 6px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
#bell-pop .bp-tog:hover { color: var(--blue); }
#bell-pop .bp-tog svg.i { width: 14px; height: 14px; }
#bell-pop .bp-read { border-radius: 10px; background: var(--surface-2, var(--grey-bg)); padding: 4px; margin-top: 4px; }
@media (max-width: 640px) {
  #bell-pop { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; }
}

/* ===================== Alertes : lien historique + page ===================== */
#bell-pop .bp-hist { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; padding: 10px 8px 6px; border-top: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--blue); }
#bell-pop .bp-hist:hover { text-decoration: underline; }
#bell-pop .bp-hist svg.i { width: 14px; height: 14px; }
.al-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .al-grid { grid-template-columns: 1fr; } }
.al-list { display: flex; flex-direction: column; gap: 8px; }
.al-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); transition: opacity .18s, transform .18s, border-color .15s; }
.al-row:hover { border-color: var(--blue-line); }
.al-row.out { opacity: 0; transform: translateX(14px); }
.al-row.gone { background: var(--surface-2, var(--grey-bg)); }
.al-row.gone .al-body b { color: var(--muted); }
.al-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: inherit; }
a.al-body:hover b { color: var(--blue); }
.al-body b { font-size: 13.5px; }
.al-at { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ok); font-weight: 600; margin-top: 2px; }
.al-at svg.i { width: 12px; height: 12px; }
.al-row .btn { white-space: nowrap; gap: 6px; }
.al-row .btn svg.i { width: 14px; height: 14px; }
@media (max-width: 560px) {
  .al-row { grid-template-columns: 34px minmax(0, 1fr); }
  .al-row > .btn, .al-row > .badge { grid-column: 1 / -1; justify-self: stretch; justify-content: center; text-align: center; }
}
