/* NORTHSTAR PRO — structure du PRO 2Bgroups (menu latéral, KPI, panneaux), fond lumineux façon Creatis, DA noir/argent du logo. */
:root {
  --bg: #050506; --side: #000; --surface: #0f0f11; --surface2: #151518; --hover: #1a1a1d;
  --ink: #f5f5f7; --mute: #a1a1a6; --dim: #6e6e73;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.13);
  --silver: linear-gradient(100deg, #8e8e8e 0%, #f7f7f5 32%, #b4b4b2 52%, #fff 70%, #8a8a8a 100%);
  --green: #7fd6a4; --red: #ef8f8f; --amber: #e6c07b; --blue: #8fb8ee; --violet: #b9a6f2;
  --c1: #f5f5f7; --c2: #9a9aa0; --c3: #55555a;
  --r: 20px; --r-sm: 12px;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif; --serif: 'Cormorant Garamond', serif;
  --side-w: 248px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--sans); letter-spacing: -.006em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.muted { color: var(--mute); }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.num, td.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--green); } .neg { color: var(--red); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 99px; border: 0; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line2); font-size: 13px; font-weight: 500; cursor: pointer; transition: .2s; white-space: nowrap; }
.btn:hover { background: rgba(255,255,255,.12); }
.btn-primary { background: var(--ink); color: #000; box-shadow: none; }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.08), 0 8px 30px rgba(255,255,255,.15); }
.btn-danger { color: var(--red); background: rgba(239,143,143,.08); box-shadow: inset 0 0 0 1px rgba(239,143,143,.2); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }
.btn-lg { height: 50px; font-size: 15px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 0; background: none; color: var(--mute); cursor: pointer; transition: .2s; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }

/* Champs */
.f { display: flex; flex-direction: column; gap: 6px; }
.f > span { font-size: 12px; font-weight: 500; color: var(--mute); }
.f input, .f select, .f textarea, .search { height: 42px; border-radius: var(--r-sm); border: 0; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line2); padding: 0 13px; outline: 0; font-size: 14px; transition: box-shadow .2s, background .2s; color-scheme: dark; width: 100%; }
.f textarea { height: auto; min-height: 90px; padding: 11px 13px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus, .search:focus { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); background: rgba(255,255,255,.07); }
.f select option { background: #151518; }

/* ---------- Connexion ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; background: #000; }
.login-art { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 20% 10%, #141416, #000 60%); display: flex; flex-direction: column; justify-content: space-between; padding: 44px 52px 52px; }
.silk { position: absolute; inset: 0; width: 100%; height: 100%; }
.login-brand { position: relative; display: flex; flex-direction: column; gap: 10px; }
.login-brand img { height: 26px; width: auto; align-self: flex-start; }
.login-brand span { font-size: 11px; letter-spacing: .34em; color: var(--mute); }
.mock { position: relative; height: 280px; perspective: 1200px; }
.mock-card { position: absolute; width: 330px; padding: 18px 20px; border-radius: 22px; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 40px 80px -30px rgba(0,0,0,.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.mock-card p { font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 8px; }
.mock-card p i { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; }
.mock-card text { fill: rgba(255,255,255,.75); font: 600 9px var(--sans); letter-spacing: .14em; }
.mock-a { left: 0; top: 0; transform: rotateY(14deg) rotateX(6deg) rotate(-5deg); animation: floatA 9s ease-in-out infinite; }
.mock-b { left: 190px; top: 90px; transform: rotateY(-10deg) rotateX(4deg) rotate(3deg); animation: floatB 11s ease-in-out infinite; }
@keyframes floatA { 50% { transform: rotateY(10deg) rotateX(8deg) rotate(-4deg) translateY(-10px); } }
@keyframes floatB { 50% { transform: rotateY(-14deg) rotateX(2deg) rotate(2deg) translateY(8px); } }
.mock-bars { display: flex; align-items: flex-end; gap: 9px; height: 110px; margin-top: 16px; }
.mock-bars span { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #fff, rgba(255,255,255,.25)); }
.mock-bars span:nth-child(odd) { background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.1)); }
.login-claim { position: relative; max-width: 520px; }
.login-claim h1 { font-size: clamp(32px, 3.3vw, 46px); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; }
.login-claim em { font-family: var(--serif); font-weight: 400; font-size: 1.1em; letter-spacing: -.02em; background: var(--silver); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 10s linear infinite; }
@keyframes sheen { to { background-position: -220% 0; } }
.login-claim p { color: var(--mute); margin-top: 16px; font-size: 15px; max-width: 440px; }
.login-side { display: grid; place-items: center; padding: 30px; background: #070708; border-left: 1px solid var(--line); }
.login-box { width: min(380px, 100%); display: flex; flex-direction: column; gap: 16px; }
.login-star { width: 46px; animation: twinkle 3.5s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .55; transform: scale(.88) rotate(10deg); } }
.login-box h2 { font-size: 30px; font-weight: 600; letter-spacing: -.04em; }
.login-box .muted { margin-top: -10px; margin-bottom: 8px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 44px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: none; color: var(--dim); cursor: pointer; font-size: 13px; }
.eye:hover { color: var(--ink); }
.err { color: var(--red); font-size: 13px; min-height: 20px; }
.fine { color: var(--dim); font-size: 12px; text-align: center; }

/* ---------- Shell ---------- */
.shell { display: flex; min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 30; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 26px 22px 22px; }
.side-brand img { height: 17px; width: auto; }
.side-brand span { font-size: 9.5px; font-weight: 600; letter-spacing: .2em; padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.1); color: var(--ink); }
.side-nav { flex: 1; overflow-y: auto; padding: 4px 12px 20px; scrollbar-width: none; }
.side-group { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding: 18px 12px 8px; }
.nav-btn { display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; padding: 0 12px; border-radius: 11px; border: 0; background: none; color: var(--mute); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: .18s; text-align: left; position: relative; }
.nav-btn:hover { background: var(--hover); color: var(--ink); }
.nav-btn.on { background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.nav-btn.on::before { content: ''; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: #fff; box-shadow: 0 0 10px #fff; }
.nav-btn .cnt { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: rgba(255,255,255,.08); font-size: 11px; display: grid; place-items: center; color: var(--mute); }
.nav-btn .cnt.hot { background: #fff; color: #000; font-weight: 600; }
.side-foot { display: flex; align-items: center; gap: 8px; padding: 16px 14px 18px; border-top: 1px solid var(--line); }
.acct { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: linear-gradient(135deg, #fff, #8a8a8a); color: #000; flex: none; }
.acct b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct small { color: var(--dim); font-size: 11.5px; }
.main { flex: 1; margin-left: var(--side-w); min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 18px 34px; background: rgba(5,5,6,.78); backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px); border-bottom: 1px solid var(--line); min-height: 76px; }
.burger { display: none; }
.tb-titles { flex: 1; min-width: 0; }
.tb-titles h1 { font-size: 22px; font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
.tb-titles p { color: var(--dim); font-size: 12.5px; }
.tb-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.seg { display: inline-flex; padding: 3px; border-radius: 99px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { height: 30px; padding: 0 13px; border-radius: 99px; border: 0; background: none; color: var(--mute); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: .2s; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--ink); color: #000; }
.view { padding: 28px 34px 80px; max-width: 1560px; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.kpi { position: relative; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 18px 20px; cursor: pointer; transition: .25s; overflow: hidden; display: flex; flex-direction: column; min-height: 142px; }
.kpi:hover { background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line2); }
.kpi-top { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 12.5px; font-weight: 500; }
.kpi-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--ink); }
.kpi-ic .ico { width: 16px; height: 16px; }
.kpi-val { font-size: 30px; font-weight: 600; letter-spacing: -.045em; margin-top: auto; padding-top: 14px; line-height: 1.1; }
.kpi-sub { color: var(--dim); font-size: 12px; margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kpi-sub b { color: var(--mute); font-weight: 500; }
.chg { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: rgba(255,255,255,.06); }
.chg.up { color: var(--green); background: rgba(127,214,164,.1); } .chg.down { color: var(--red); background: rgba(239,143,143,.1); }
.kpi-hero { background: radial-gradient(130% 120% at 100% 0%, #2b2b2f, #121214 55%, #0d0d0f); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 30px 60px -40px rgba(255,255,255,.2); }
.kpi-hero .kpi-val { font-size: 40px; background: var(--silver); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 12s linear infinite; }
.spark { position: absolute; right: 16px; top: 14px; width: 30%; height: 38px; opacity: .9; }
.kpi-hero .kpi-val, .kpi-hero .kpi-sub { position: relative; }

/* ---------- Panneaux ---------- */
.grid-main { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.panel { border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.panel-h h3 { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.panel-h small { color: var(--dim); font-size: 12px; margin-left: 8px; font-weight: 400; }
.see { color: var(--mute); font-size: 12.5px; background: none; border: 0; cursor: pointer; }
.see:hover { color: var(--ink); }
.panel-b { padding: 12px 20px 20px; flex: 1; }
.panel-b.flush { padding: 6px 0 0; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--mute); padding: 0 20px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend span::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: var(--c); }

/* Graphique combiné */
.chart { width: 100%; height: 280px; display: block; }
.chart .grid line { stroke: rgba(255,255,255,.06); }
.chart .ax text { fill: var(--dim); font-size: 11px; }
.chart .bar { transition: opacity .2s; }
.chart g.col:hover .bar { opacity: .85; }
.chart .hit { fill: transparent; }
.chart g.col:hover .hit { fill: rgba(255,255,255,.03); }
.tip { position: fixed; z-index: 70; pointer-events: none; background: rgba(28,28,30,.92); backdrop-filter: blur(14px); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; box-shadow: inset 0 0 0 1px var(--line2), 0 20px 40px rgba(0,0,0,.5); min-width: 170px; opacity: 0; transition: opacity .15s; }
.tip.on { opacity: 1; }
.tip b { display: block; margin-bottom: 6px; font-size: 12px; color: var(--mute); font-weight: 500; }
.tip div { display: flex; justify-content: space-between; gap: 16px; }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; background: var(--c); }

/* Donut */
.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; padding-top: 6px; }
.donut { width: 190px; height: 190px; flex: none; }
.donut text.big { fill: var(--ink); font-size: 19px; font-weight: 600; letter-spacing: -.03em; }
.donut text.sm { fill: var(--dim); font-size: 10.5px; }
.dl { list-style: none; flex: 1; min-width: 180px; }
.dl li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.dl li:last-child { border-bottom: 0; }
.dl i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: none; }
.dl span { flex: 1; color: var(--mute); }
.dl small { color: var(--dim); width: 40px; text-align: right; }

/* Globe */
.globe-panel { position: relative; min-height: 420px; background: radial-gradient(90% 80% at 50% 40%, #141417, var(--surface) 70%); }
.globe-panel canvas { position: absolute; inset: 44px 0 0; width: 100%; height: calc(100% - 44px); }
.globe-list { position: absolute; left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; max-width: 60%; }
.globe-list button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 12px; border-radius: 12px; border: 0; background: rgba(20,20,22,.7); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; cursor: pointer; color: var(--mute); }
.globe-list button.on, .globe-list button:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.globe-list code { font: 600 11px ui-monospace, monospace; letter-spacing: .06em; color: var(--ink); }
.globe-empty { position: absolute; inset: 44px 0 0; display: grid; place-items: center; color: var(--dim); font-size: 13px; pointer-events: none; padding-top: 70%; }

/* Agenda */
.agenda { list-style: none; }
.agenda li { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 11px 20px; cursor: pointer; transition: background .15s; }
.agenda li:hover { background: var(--hover); }
.agenda .d { text-align: center; border-radius: 12px; background: rgba(255,255,255,.05); padding: 6px 0; }
.agenda .d b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.agenda .d small { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.agenda .t b { font-weight: 500; font-size: 13.5px; display: block; }
.agenda .t p { color: var(--dim); font-size: 12px; }
.none { padding: 34px 20px; color: var(--dim); text-align: center; font-size: 13px; }

/* Tables */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.search { width: 280px; height: 38px; border-radius: 99px; padding-left: 38px; background: rgba(255,255,255,.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='m20 20-4.5-4.5'/%3E%3C/svg%3E") 13px 50% / 16px no-repeat; }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; font-weight: 500; color: var(--dim); padding: 10px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13.5px; }
tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; transition: background .15s; }
tbody tr:hover { background: var(--hover); }
td .mn { font-weight: 500; }
td .sub { color: var(--dim); font-size: 12px; }
td.num, th.num { text-align: right; white-space: nowrap; }
.code { font: 600 12px ui-monospace, SFMono-Regular, monospace; letter-spacing: .06em; padding: 3px 8px; border-radius: 7px; background: rgba(255,255,255,.06); }
.st { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 11.5px; font-weight: 500; white-space: nowrap; color: var(--c, var(--mute)); background: color-mix(in srgb, var(--c, #888) 12%, transparent); }
.st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--mute)); box-shadow: 0 0 6px var(--c, transparent); }
.empty { padding: 70px 20px; text-align: center; color: var(--dim); }
.empty img { width: 40px; margin: 0 auto 14px; opacity: .6; }

/* Planning */
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-nav b { font-size: 15px; font-weight: 600; min-width: 150px; text-align: center; text-transform: capitalize; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 120px; padding: 8px; min-width: 0; }
.cal > div:nth-child(7n) { border-right: 0; }
.cal .dow { min-height: 0; font-size: 11px; font-weight: 500; color: var(--dim); padding: 10px 8px; }
.cal .out { background: rgba(0,0,0,.35); }
.cal .out .n { opacity: .3; }
.cal .n { font-size: 12.5px; font-weight: 500; color: var(--mute); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.cal .today .n { background: #fff; color: #000; }
.cal .ev { display: block; width: 100%; text-align: left; border: 0; border-radius: 7px; padding: 4px 7px; margin-top: 4px; font-size: 11.5px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: inset 2px 0 0 var(--c); }
.cal .ev:hover { background: color-mix(in srgb, var(--c) 26%, transparent); }

/* Réglages */
.pbody { padding: 14px 20px 22px; display: grid; gap: 14px; }
.users { list-style: none; }
.users li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.users li small { color: var(--dim); margin-left: 8px; }

/* ---------- Tiroir ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); animation: fade .25s; }
.drawer-in { position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(640px, calc(100% - 20px)); background: rgba(16,16,18,.94); backdrop-filter: blur(30px); border-radius: 26px; box-shadow: inset 0 0 0 1px var(--line2), 0 40px 100px rgba(0,0,0,.6); display: flex; flex-direction: column; animation: slide .4s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -.035em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; align-content: start; }
.drawer-body .wide { grid-column: 1 / -1; }
.drawer-body h4 { grid-column: 1 / -1; font-size: 14px; font-weight: 600; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer-foot { display: flex; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.drawer-foot .sp { flex: 1; }
.trk { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 16px; background: radial-gradient(120% 140% at 0 0, rgba(255,255,255,.1), rgba(255,255,255,.02)); box-shadow: inset 0 0 0 1px var(--line2); flex-wrap: wrap; }
.trk b { font: 600 22px ui-monospace, monospace; letter-spacing: .1em; }
.trk small { display: block; font-size: 11.5px; color: var(--dim); margin-bottom: 2px; }
.steps-ed { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.step-row { display: grid; grid-template-columns: 26px 1.4fr 1fr 1.1fr 28px; gap: 6px; align-items: center; }
.step-row input[type=text], .step-row input[type=datetime-local] { height: 36px; border-radius: 10px; border: 0; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); padding: 0 10px; font-size: 13px; outline: 0; color-scheme: dark; min-width: 0; }
.step-row input[type=checkbox] { width: 18px; height: 18px; accent-color: #fff; }
.step-row .rm { background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 18px; }
.step-row .rm:hover { color: var(--red); }
.meta { grid-column: 1 / -1; color: var(--dim); font-size: 12px; }
.leadbox { grid-column: 1 / -1; border-radius: 16px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); padding: 16px 18px; display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; font-size: 13.5px; }
.leadbox dt { color: var(--dim); font-size: 12px; padding-top: 1px; }
.leadbox dd { white-space: pre-wrap; word-break: break-word; }
.leadbox a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
.conv { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #000; padding: 12px 20px; border-radius: 99px; font-size: 13px; font-weight: 500; opacity: 0; transition: .3s; pointer-events: none; z-index: 80; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Barre d'onglets mobile */
.mtab { display: none; }

@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .kpi-hero { grid-column: span 3; }
}
@media (max-width: 1100px) {
  .grid-main, .grid-2 { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login-art { min-height: 46vh; }
  .mock { display: none; }
}
@media (max-width: 860px) {
  .side { transform: translateX(-100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); box-shadow: 30px 0 80px rgba(0,0,0,.6); }
  .shell.nav-open .side { transform: none; }
  .main { margin-left: 0; }
  .burger { display: grid; }
  .topbar { padding: 12px 16px; min-height: 64px; flex-wrap: wrap; }
  .tb-right { width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .view { padding: 18px 14px 110px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi-hero { grid-column: span 2; }
  .kpi-val { font-size: 24px; }
  .search { width: 100%; }
  .drawer-body { grid-template-columns: 1fr; }
  .cal > div { min-height: 64px; padding: 3px; }
  .cal .ev { font-size: 9.5px; padding: 2px 4px; }
  .step-row { grid-template-columns: 22px 1fr 26px; }
  .step-row .pl, .step-row .at { grid-column: 2; }
  .mtab { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; justify-content: space-around; padding: 6px; border-radius: 22px; background: rgba(20,20,22,.86); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px var(--line2), 0 20px 50px rgba(0,0,0,.6); }
  .mtab button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; color: var(--dim); font-size: 10px; font-weight: 500; padding: 6px 0; border-radius: 14px; cursor: pointer; }
  .mtab button.on { color: #fff; background: rgba(255,255,255,.08); }
  .login-side { border-left: 0; }
  .login-art { padding: 30px 24px; }
}

/* ===== v3 : photo de connexion, couleurs, mode exemple, fiches, calendrier ===== */
:root { --gold: #d9b77e; --sapphire: #7fa7f5; --emerald: #5fcb9a; --amethyst: #b497f0; --rose: #f08fa6; --cyan: #6fd3e0; }
.login-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.9) contrast(1.05); transform: scale(1.06); animation: kb 30s ease-out forwards; }
@keyframes kb { to { transform: scale(1); } }
.login-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent 30%, transparent 50%, rgba(0,0,0,.9)), linear-gradient(90deg, transparent 60%, rgba(0,0,0,.5)); pointer-events: none; }
.login-art > *:not(.login-photo) { position: relative; z-index: 1; }
.login-art .silk { position: absolute; z-index: 1; mix-blend-mode: screen; opacity: .7; }
.mock-live { position: relative !important; align-self: flex-end; width: 300px; margin-right: 6%; animation: floatA 9s ease-in-out infinite; transform: rotate(-2deg); }
.mock-live b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.03em; margin-top: 10px; }
.mock-live i { background: var(--gold) !important; box-shadow: 0 0 8px var(--gold) !important; }
.ml-route { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; font-size: 12.5px; color: rgba(255,255,255,.85); }
.ml-route em { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(255,255,255,.2)); position: relative; }
.ml-route s { position: absolute; left: 62%; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.mock-live small { color: rgba(255,255,255,.6); font-size: 12px; }
@keyframes floatA { 50% { transform: rotate(-1deg) translateY(-8px); } }

/* Interrupteur mode */
.mode { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 99px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); }
.mode button { height: 30px; padding: 0 12px; border-radius: 99px; border: 0; background: none; color: var(--mute); font-size: 12.5px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.mode button.on.demo { background: linear-gradient(135deg, #f0d7a4, #c99a52); color: #1a1205; }
.mode button.on.real { background: var(--ink); color: #000; }
.mode button i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.demo-band { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px 16px; border-radius: 14px; background: linear-gradient(90deg, rgba(217,183,126,.14), rgba(217,183,126,.03)); box-shadow: inset 0 0 0 1px rgba(217,183,126,.25); color: #ecd4a6; font-size: 13px; }
.demo-band b { font-weight: 600; }

/* Couleurs KPI */
.kpi-ic.t-gold { background: rgba(217,183,126,.14); color: var(--gold); }
.kpi-ic.t-sapphire { background: rgba(127,167,245,.14); color: var(--sapphire); }
.kpi-ic.t-emerald { background: rgba(95,203,154,.14); color: var(--emerald); }
.kpi-ic.t-amethyst { background: rgba(180,151,240,.14); color: var(--amethyst); }
.kpi-ic.t-rose { background: rgba(240,143,166,.14); color: var(--rose); }
.kpi-ic.t-cyan { background: rgba(111,211,224,.14); color: var(--cyan); }
.kpi-hero { background: radial-gradient(130% 120% at 100% 0%, rgba(217,183,126,.22), #141210 50%, #0d0d0f); box-shadow: inset 0 0 0 1px rgba(217,183,126,.25), 0 30px 60px -40px rgba(217,183,126,.35); }
.kpi-hero .kpi-val { background: linear-gradient(100deg, #b8915a, #f6e3bd 35%, #d9b77e 55%, #fff4dc 72%, #b08650); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; }
.nav-btn .ico { color: var(--tone, currentColor); }
.nav-btn.on::before { background: var(--tone, #fff); box-shadow: 0 0 10px var(--tone, #fff); }

/* Avatars */
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; color: #0b0b0c; flex: none; background: var(--a, #ddd); }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.who { display: flex; align-items: center; gap: 12px; }

/* Fiches (client / véhicule / salarié) */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); background: none; border: 0; cursor: pointer; font-size: 13px; margin-bottom: 14px; }
.back:hover { color: var(--ink); }
.prof { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: var(--r); background: radial-gradient(120% 140% at 0 0, color-mix(in srgb, var(--a, #888) 22%, transparent), var(--surface) 60%); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.prof h2 { font-size: 28px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.prof p { color: var(--mute); font-size: 13.5px; margin-top: 4px; }
.prof .sp { flex: 1; }
.prof .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; font-size: 13.5px; }
.kv dt { color: var(--dim); }
.kv dd { word-break: break-word; }
.vcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.vcard { border-radius: 16px; padding: 16px; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: .2s; position: relative; overflow: hidden; }
.vcard:hover { box-shadow: inset 0 0 0 1px var(--line2); transform: translateY(-2px); }
.vcard::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--a, #fff) 30%, transparent), transparent 70%); }
.vcard b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.vcard small { color: var(--dim); font-size: 12px; }
.vcard .row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 8px; }
.timeline { list-style: none; padding: 6px 20px 18px; }
.timeline li { position: relative; padding: 0 0 18px 26px; cursor: pointer; }
.timeline li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--c, #fff); box-shadow: 0 0 10px var(--c, #fff); }
.timeline li::after { content: ''; position: absolute; left: 6.5px; top: 18px; bottom: 0; width: 1px; background: var(--line2); }
.timeline li:last-child::after { display: none; }
.timeline b { font-weight: 500; font-size: 13.5px; }
.timeline p { color: var(--dim); font-size: 12px; }
.timeline li:hover b { color: #fff; }
.chip-plate { font: 600 11.5px ui-monospace, monospace; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: #f2f2f0; color: #111; }

/* Calendrier */
.cal .ev { box-shadow: inset 3px 0 0 var(--c); }
.cal .ev em { font-style: normal; opacity: .7; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.week > div { border-right: 1px solid var(--line); min-height: 460px; padding: 10px 8px; min-width: 0; }
.week > div:last-child { border-right: 0; }
.week h5 { font-size: 12px; font-weight: 500; color: var(--mute); margin-bottom: 10px; display: flex; gap: 6px; align-items: baseline; }
.week h5 b { font-size: 20px; color: var(--ink); font-weight: 600; }
.week .today h5 b { color: var(--gold); }
.wev { border-radius: 12px; padding: 9px 10px; margin-bottom: 8px; cursor: pointer; background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 3px 0 0 var(--c); transition: .15s; }
.wev:hover { background: color-mix(in srgb, var(--c) 24%, transparent); }
.wev small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.wev b { display: block; font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.wev span { display: block; font-size: 11.5px; color: var(--mute); margin-top: 2px; }
.alist .day { padding: 14px 20px 6px; font-size: 12px; font-weight: 600; color: var(--mute); text-transform: capitalize; border-top: 1px solid var(--line); }
.alist .day:first-child { border-top: 0; }
.alist .it { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; padding: 10px 20px; cursor: pointer; }
.alist .it:hover { background: var(--hover); }
.alist .it .k { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.alist .it b { font-weight: 500; }
.alist .it p { color: var(--dim); font-size: 12px; }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.fchips button { height: 28px; padding: 0 12px; border-radius: 99px; border: 0; cursor: pointer; font-size: 12px; font-weight: 500; color: var(--mute); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); display: inline-flex; align-items: center; gap: 7px; }
.fchips button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.fchips button.off { opacity: .4; }
@media (max-width: 860px) {
  .week { grid-template-columns: 1fr; } .week > div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .alist .it { grid-template-columns: 1fr; gap: 2px; }
  .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; }
  .mock-live { display: none; }
}
