/* ANEP – Gestion des projets MOD — design system (police unique : Cairo) */
:root {
  --bg: #eaeef8;
  --card: #ffffff;
  --ink: #1d2433;
  --ink-2: #4a5468;
  --muted: #98a2b6;
  --line: #e7eaf3;
  --line-2: #f1f3f9;
  --blue: #1a3cf0;
  --blue-2: #3b5bfd;
  --blue-soft: #e8ecff;
  --green: #1fbf5f;
  --green-soft: #e3f8ec;
  --purple: #8a2be2;
  --purple-soft: #f2e8fd;
  --yellow: #f6b318;
  --yellow-soft: #fff5dc;
  --red: #ec3f4f;
  --red-soft: #fde8ea;
  --orange: #f07c1b;
  --cyan: #12a3c4;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(31, 45, 110, .07);
  --shadow-lg: 0 24px 60px rgba(20, 30, 80, .18);
  --sidebar: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Cairo', system-ui, sans-serif; color: var(--ink); background: var(--bg);
  background-image: radial-gradient(1200px 600px at 100% -10%, #dfe5fb 0, transparent 60%), radial-gradient(900px 500px at -10% 110%, #e4e0fb 0, transparent 60%);
  background-attachment: fixed; font-size: 14px; line-height: 1.5;
}
button, input, select, textarea { font-family: 'Cairo', system-ui, sans-serif; font-size: 14px; color: inherit; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
h1 { font-size: 24px; } h2 { font-size: 19px; } h3 { font-size: 16px; } h4 { font-size: 14px; }
.muted { color: var(--muted); } .ink2 { color: var(--ink-2); }
.small { font-size: 12px; } .tiny { font-size: 11px; } .big { font-size: 28px; font-weight: 700; }
.b { font-weight: 700; } .sb { font-weight: 600; }
.green { color: var(--green); } .red { color: var(--red); } .blue { color: var(--blue); } .purple { color: var(--purple); } .orange { color: var(--orange); } .yellow { color: #c98a00; }
.nowrap { white-space: nowrap; } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.right { text-align: right; } .center { text-align: center; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 6px } .mt-2 { margin-top: 12px } .mt-3 { margin-top: 18px } .mt-4 { margin-top: 26px }
.mb-1 { margin-bottom: 6px } .mb-2 { margin-bottom: 12px } .mb-3 { margin-bottom: 18px }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 8px; }
.spacer { flex: 1; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; } .span-all { grid-column: 1 / -1; }

/* ---------- Layout ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); flex-shrink: 0; background: var(--card); margin: 16px 0 16px 16px; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 12px; display: flex; flex-direction: column; position: sticky; top: 16px; height: calc(100vh - 32px); overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 16px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.brand-logo { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--purple)); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .5px; }
.brand-t { font-weight: 800; font-size: 15px; line-height: 1.1; }
.brand-s { font-size: 11px; color: var(--muted); }
.nav-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); padding: 12px 10px 4px; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 13.5px; margin: 1px 0; position: relative; }
.nav a img { width: 24px; height: 24px; opacity: .9; }
.nav a:hover { background: var(--line-2); color: var(--ink); }
.nav a.router-link-active { background: var(--blue-soft); color: var(--blue); }
.nav a.router-link-active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--blue); }
.nav a .star { margin-left: auto; font-size: 10px; background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; padding: 0 7px; border-radius: 99px; }
.main { flex: 1; min-width: 0; padding: 16px 16px 40px 18px; }
.topbar { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 16px; display: flex; align-items: center; gap: 14px; margin-bottom: 18px; position: sticky; top: 16px; z-index: 30; }
.top-ico { display: flex; flex-direction: column; align-items: center; gap: 0; color: var(--muted); font-size: 11px; font-weight: 600; cursor: pointer; position: relative; padding: 2px 8px; border-radius: 10px; border: 0; background: none; }
.top-ico:hover { color: var(--ink); background: var(--line-2); }
.top-ico img { width: 26px; height: 26px; }
.top-ico .count { position: absolute; top: -2px; right: 6px; background: var(--red); color: #fff; font-size: 10px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; }
.search { flex: 1; max-width: 520px; position: relative; }
.search input { width: 100%; border: 1px solid var(--line); background: #fbfcff; border-radius: 99px; padding: 9px 40px 9px 18px; outline: none; box-shadow: 0 2px 10px rgba(30, 40, 100, .04); }
.search input:focus { border-color: var(--blue-2); }
.search svg { position: absolute; right: 14px; top: 10px; color: var(--muted); }
.search-res { position: absolute; top: 44px; left: 0; right: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 380px; overflow: auto; padding: 6px; z-index: 40; }
.search-res a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.search-res a:hover { background: var(--line-2); }
.project-sel { border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: #fbfcff; max-width: 280px; font-weight: 600; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #dfe6ff, #f1e6ff); display: grid; place-items: center; font-weight: 800; color: var(--blue); border: 3px solid #fff; box-shadow: 0 4px 14px rgba(26, 60, 240, .18); cursor: pointer; overflow: hidden; }
.avatar img { width: 30px; height: 30px; }
.weather-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border-radius: 99px; background: linear-gradient(135deg, #eef4ff, #f6f0ff); border: 1px solid var(--line); cursor: pointer; position: relative; }
.weather-chip .wi { font-size: 22px; line-height: 1; }
.weather-chip .wt { font-weight: 800; font-size: 15px; line-height: 1; }
.weather-chip .wl { font-size: 10.5px; color: var(--ink-2); line-height: 1.1; max-width: 120px; }
.weather-chip.alert { background: linear-gradient(135deg, #fff1f1, #fff6e6); border-color: #ffd0d0; }
.dropdown { position: absolute; top: 52px; right: 0; width: 380px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 50; padding: 12px; max-height: 70vh; overflow: auto; cursor: default; }
.notif { display: flex; gap: 10px; padding: 9px 8px; border-radius: 10px; cursor: pointer; }
.notif:hover { background: var(--line-2); }
.notif.unread { background: #f4f6ff; }
.notif .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-top: 7px; flex-shrink: 0; }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.card.pad-s { padding: 14px; } .card.pad-0 { padding: 0; }
.card-h { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.card-h .t { font-size: 17px; font-weight: 700; }
.card-h .s { font-size: 12.5px; color: var(--muted); }
.page-h { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-h img { width: 44px; height: 44px; }
.page-h .s { color: var(--muted); font-size: 13px; }
.hero { background: linear-gradient(120deg, #0f2fe0, #2f55ff 60%, #4a6bff); color: #fff; border-radius: var(--radius); padding: 20px; position: relative; overflow: hidden; box-shadow: 0 14px 34px rgba(26, 60, 240, .35); }
.hero::after { content: ''; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 80% 30%, rgba(255, 255, 255, .07) 0 2px, transparent 2px 18px); pointer-events: none; }
.hero.green { background: linear-gradient(120deg, #13a94f, #22c55e); box-shadow: 0 14px 34px rgba(31, 191, 95, .3); }
.hero.purple { background: linear-gradient(120deg, #6a1bd1, #9b3cf0); box-shadow: 0 14px 34px rgba(138, 43, 226, .3); }
.kpi { display: flex; align-items: center; gap: 14px; }
.kpi .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.kpi .ic img { width: 28px; height: 28px; }
.kpi .v { font-size: 22px; font-weight: 800; line-height: 1.1; }
.kpi .l { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.bg-blue { background: var(--blue-soft); } .bg-green { background: var(--green-soft); } .bg-purple { background: var(--purple-soft); } .bg-yellow { background: var(--yellow-soft); } .bg-red { background: var(--red-soft); }

/* ---------- Forms ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid transparent; border-radius: 10px; padding: 8px 15px; font-weight: 700; cursor: pointer; background: var(--blue); color: #fff; transition: .15s; white-space: nowrap; font-size: 13.5px; }
.btn:hover { filter: brightness(1.08); box-shadow: 0 6px 18px rgba(26, 60, 240, .25); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.sec { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.sec:hover { background: var(--line-2); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--blue); padding: 6px 10px; }
.btn.ghost:hover { background: var(--blue-soft); box-shadow: none; }
.btn.green { background: var(--green); } .btn.red { background: var(--red); } .btn.purple { background: var(--purple); } .btn.orange { background: var(--orange); } .btn.yellow { background: var(--yellow); color: #3b2a00; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.xs { padding: 2px 8px; font-size: 11.5px; border-radius: 7px; }
.btn img { width: 18px; height: 18px; }
.icon-btn { border: 0; background: transparent; cursor: pointer; padding: 4px 6px; border-radius: 8px; color: var(--muted); font-size: 16px; line-height: 1; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); min-width: 0; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; background: #fbfcff; outline: none; font-weight: 500; }
.input:focus { border-color: var(--blue-2); background: #fff; box-shadow: 0 0 0 3px rgba(59, 91, 253, .12); }
textarea.input { min-height: 80px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-weight: 600; font-size: 13px; }
.check input { width: 16px; height: 16px; accent-color: var(--blue); }
.seg { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 8px; cursor: pointer; font-weight: 700; color: var(--muted); font-size: 12.5px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(30, 40, 90, .1); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 9px 14px; cursor: pointer; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--blue); border-color: var(--blue); }
.tabs button .n { background: var(--line-2); padding: 0 7px; border-radius: 99px; font-size: 11px; margin-left: 4px; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fcfdff; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #f8f9ff; }
.tbl tfoot td { font-weight: 800; background: #fafbff; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.badge.blue { background: var(--blue-soft); color: var(--blue); } .badge.green { background: var(--green-soft); color: #108c43; } .badge.red { background: var(--red-soft); color: #c4192a; }
.badge.yellow { background: var(--yellow-soft); color: #9a6a00; } .badge.purple { background: var(--purple-soft); color: var(--purple); } .badge.orange { background: #ffeedd; color: #c25a00; } .badge.gray { background: #eef0f5; color: #6b7487; }
.badge.dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lot-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; }
.lot-chip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex-shrink: 0; }

/* ---------- Progress ---------- */
.bar { height: 8px; background: #edf0f7; border-radius: 99px; overflow: hidden; position: relative; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: var(--blue); transition: width .5s; }
.bar.thick { height: 14px; }
.hbar-row { display: grid; grid-template-columns: 1fr; gap: 3px; margin-bottom: 12px; }
.hbar-row .lbl { font-size: 13px; font-weight: 700; }

/* ---------- Modal / toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(18, 24, 50, .45); backdrop-filter: blur(3px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; max-width: 640px; animation: pop .18s ease-out; }
.modal.lg { max-width: 920px; } .modal.xl { max-width: 1200px; } .modal.sm { max-width: 440px; }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-h .t { font-size: 17px; font-weight: 800; flex: 1; }
.modal-b { padding: 18px 20px; }
.modal-f { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: #fcfdff; border-radius: 0 0 18px 18px; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0 } to { transform: none; opacity: 1 } }
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #1d2433; color: #fff; padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; max-width: 420px; animation: pop .2s; }
.toast.error { background: var(--red); } .toast.success { background: #10a34f; } .toast.warn { background: #d98200; }

/* ---------- Divers ---------- */
.empty { text-align: center; padding: 34px 10px; color: var(--muted); }
.empty img { width: 56px; opacity: .55; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }
.ico-tile { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; color: #fff; font-weight: 800; }
.ico-tile img { width: 24px; height: 24px; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 14px; }
.tl-item::before { content: ''; position: absolute; left: -20px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.tl-item.green::before { border-color: var(--green); } .tl-item.red::before { border-color: var(--red); } .tl-item.yellow::before { border-color: var(--yellow); } .tl-item.purple::before { border-color: var(--purple); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.thumbs img, .thumb { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; background: var(--line-2); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.photo-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.photo-card img { width: 100%; height: 160px; object-fit: cover; display: block; cursor: zoom-in; }
.photo-card .pc-b { padding: 9px 11px; }
.lightbox { position: fixed; inset: 0; background: rgba(5, 8, 20, .88); z-index: 300; display: grid; place-items: center; cursor: zoom-out; padding: 20px; }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 8px; }
.lightbox .cap { color: #fff; text-align: center; margin-top: 10px; }
.drop { border: 2px dashed #cdd4e8; border-radius: 12px; padding: 16px; text-align: center; color: var(--muted); cursor: pointer; background: #fbfcff; }
.drop:hover, .drop.over { border-color: var(--blue-2); background: var(--blue-soft); color: var(--blue); }
.alert { padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.alert.warn { background: var(--yellow-soft); color: #8a5d00; } .alert.danger { background: var(--red-soft); color: #b0121f; } .alert.info { background: var(--blue-soft); color: #1630c4; } .alert.ok { background: var(--green-soft); color: #0e7a3b; }
.pill-steps { display: flex; gap: 0; flex-wrap: wrap; }
.pill-step { flex: 1; min-width: 110px; text-align: center; padding: 10px 6px; position: relative; font-size: 12px; font-weight: 700; color: var(--muted); }
.pill-step .c { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 5px; display: grid; place-items: center; background: #eef0f6; color: var(--muted); font-weight: 800; position: relative; z-index: 1; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.pill-step::after { content: ''; position: absolute; top: 24px; left: 50%; width: 100%; height: 3px; background: #eef0f6; }
.pill-step:last-child::after { display: none; }
.pill-step.done .c { background: var(--green); color: #fff; } .pill-step.done { color: var(--ink); } .pill-step.done::after { background: var(--green); }
.pill-step.cur .c { background: var(--blue); color: #fff; box-shadow: 0 0 0 4px rgba(26, 60, 240, .2); } .pill-step.cur { color: var(--blue); }
.pill-step.bad .c { background: var(--red); color: #fff; } .pill-step.warn .c { background: var(--yellow); color: #fff; }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.login-art { background: linear-gradient(135deg, #0f2fe0, #6a1bd1); color: #fff; padding: 50px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art::after { content: ''; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 20% 80%, rgba(255, 255, 255, .06) 0 2px, transparent 2px 22px); }
.login-box { display: grid; place-items: center; padding: 30px; }
.login-card { width: 100%; max-width: 400px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; font-size: 13px; }
.kv > div:nth-child(odd) { color: var(--muted); font-weight: 600; }
.matrix td.cell { text-align: center; font-weight: 700; font-size: 12px; cursor: pointer; border: 2px solid #fff; border-radius: 6px; min-width: 52px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.gantt { position: relative; overflow-x: auto; }
.gantt-row { display: grid; grid-template-columns: 280px 1fr; align-items: center; border-bottom: 1px solid var(--line-2); min-height: 34px; }
.gantt-row .gl { padding: 4px 8px; font-size: 12.5px; font-weight: 600; }
.gantt-track { position: relative; height: 34px; }
.gantt-bar { position: absolute; top: 8px; height: 18px; border-radius: 6px; font-size: 10.5px; color: #fff; font-weight: 700; padding: 0 6px; overflow: hidden; white-space: nowrap; line-height: 18px; }
.gantt-bar .done { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(0, 0, 0, .22); }
.gantt-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); z-index: 2; }
.cal-head { display: flex; font-size: 10.5px; color: var(--muted); font-weight: 700; }
.stat-mini { padding: 10px 12px; border-radius: 12px; background: var(--line-2); }
.stat-mini .v { font-size: 18px; font-weight: 800; }
.stat-mini .l { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.risk-grid { display: grid; grid-template-columns: 26px repeat(5, 1fr); gap: 3px; font-size: 11px; }
.risk-grid div { aspect-ratio: 1.6; display: grid; place-items: center; border-radius: 5px; font-weight: 800; }
.chk-list label { display: flex; gap: 8px; align-items: center; padding: 5px 0; font-weight: 600; font-size: 13px; cursor: pointer; }
.sep { height: 1px; background: var(--line); margin: 14px 0; }

/* ---------- Tableau de bord modulable ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; align-items: stretch; grid-auto-flow: row dense; }
.dash-cell { min-width: 0; display: flex; flex-direction: column; border-radius: var(--radius); transition: outline-color .15s, transform .15s; }
.dash-cell > .card, .dash-cell > .h100 { flex: 1; }
.dash-edit { outline: 2px dashed #b9c4ec; outline-offset: 3px; }
.dash-edit:hover { outline-color: var(--blue-2); }
.dash-over { outline: 3px solid var(--blue); transform: scale(.985); }
.dash-bar { display: flex; align-items: center; gap: 4px; background: var(--blue-soft); color: var(--blue); border-radius: 10px; padding: 3px 6px; margin-bottom: 6px; }
.dash-handle { cursor: grab; font-size: 18px; line-height: 1; padding: 0 4px; }
.dash-edit .card { pointer-events: none; } .dash-edit .dash-bar { pointer-events: auto; }
@media (max-width: 1280px) { .dash-cell[style*="span 2"] { grid-column: span 3 !important; } .dash-cell[style*="span 3"] { grid-column: span 4 !important; } }
@media (max-width: 980px) { .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-cell { grid-column: span 2 !important; } .dash-cell[style*="span 2"], .dash-cell[style*="span 3"] { grid-column: span 1 !important; } }

/* ---------- Vue interactive ---------- */
.plan-wrap { position: relative; background: linear-gradient(#f7f9ff, #eef2fc); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.plan-svg { width: 100%; display: block; user-select: none; }
.plan-svg .blk { cursor: pointer; transition: filter .15s; }
.plan-svg .blk:hover { filter: brightness(1.06) drop-shadow(0 6px 10px rgba(20, 40, 120, .28)); }
.plan-svg .blk.sel rect.body, .plan-svg .blk.sel polygon.body { stroke: var(--ink); stroke-width: 3; }
.plan-svg .floor { cursor: pointer; transition: opacity .15s; }
.plan-svg .floor:hover { opacity: .82; }
.plan-svg .floor.sel { stroke: #111; stroke-width: 2.4; }
.plan-tip { position: absolute; pointer-events: none; background: rgba(20, 26, 50, .94); color: #fff; padding: 9px 12px; border-radius: 10px; font-size: 12px; min-width: 190px; z-index: 5; box-shadow: var(--shadow-lg); }
.elev { display: flex; flex-direction: column-reverse; gap: 4px; }
.elev-floor { display: grid; grid-template-columns: 56px 1fr 54px; align-items: center; gap: 8px; cursor: pointer; padding: 3px; border-radius: 9px; border: 2px solid transparent; }
.elev-floor:hover { background: var(--line-2); }
.elev-floor.sel { border-color: var(--blue); background: var(--blue-soft); }
.elev-floor .code { font-weight: 800; font-size: 12.5px; text-align: center; }
.elev-slab { height: 30px; border-radius: 6px; display: flex; overflow: hidden; background: #eef1f8; position: relative; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .06); }
.elev-slab span { height: 100%; }
.elev-slab .ph { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 8px; font-size: 11px; font-weight: 700; color: #1d2433; text-shadow: 0 0 4px #fff, 0 0 2px #fff; }
.elev-floor .flags { display: flex; gap: 3px; justify-content: flex-end; }
.flag { font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 5px; }
.lot-prog { display: grid; grid-template-columns: 190px 1fr 46px; gap: 10px; align-items: center; padding: 5px 0; font-size: 12.5px; }
.lot-prog.edit { grid-template-columns: 190px 1fr 46px 28px; }

@media (max-width: 1280px) { .g5 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px) {
  .sidebar { display: none; } .sidebar.open { display: flex; position: fixed; z-index: 90; left: 0; margin: 0; height: 100vh; top: 0; border-radius: 0; }
  .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; } .span2, .span3 { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; } .login-wrap { grid-template-columns: 1fr; } .login-art { display: none; }
  .main { padding: 10px; } .weather-chip .wl { display: none; } .top-ico span { display: none; }
}
.only-mobile { display: none; } @media (max-width: 980px) { .only-mobile { display: inline-flex; } }

/* ---------- Téléphone / tablette (usage terrain) ---------- */
@media (max-width: 980px) {
  .grid[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  .col[style*="sticky"], [style*="position:sticky"] { position: static !important; }
  .topbar { flex-wrap: wrap; gap: 8px; padding: 8px 10px; top: 0; border-radius: 0 0 var(--radius) var(--radius); margin: -10px -10px 14px; }
  .topbar .search { order: 10; flex-basis: 100%; max-width: none; }
  .topbar .project-sel { max-width: 140px; }
  .top-ico { padding: 2px 4px; }
  .top-ico img { width: 24px; height: 24px; }
  .weather-chip { padding: 3px 8px 3px 4px; }
  .dropdown { position: fixed; top: 60px; left: 8px; right: 8px; width: auto; }
  .page-h { gap: 10px; } .page-h h1 { font-size: 20px; } .page-h img { width: 36px; height: 36px; }
  .card { padding: 14px; }
  .kv { grid-template-columns: 120px 1fr; }
  .modal-bg { padding: 0; } .modal { border-radius: 0; min-height: 100vh; } .modal-f { border-radius: 0; position: sticky; bottom: 0; }
  .pill-step { min-width: 90px; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; } .tabs button { white-space: nowrap; }
  .sidebar.open { box-shadow: var(--shadow-lg); }
  select.input, input.input { min-width: 0 !important; max-width: 100% !important; }
}
@media (max-width: 560px) {
  .weather-chip .wt { font-size: 13px; }
  .top-ico:not(.keep) span.count { right: 0; }
  .tbl { font-size: 12px; } .tbl td, .tbl th { padding: 7px 6px; }
  .lot-prog { grid-template-columns: 110px 1fr 40px; } .lot-prog.edit { grid-template-columns: 110px 1fr 40px 26px; }
}

/* ---------- Impression ---------- */
.print-only { display: none; }
@media print {
  body { background: #fff !important; }
  .sidebar, .topbar, .no-print, .toasts, .modal-f { display: none !important; }
  .main { padding: 0; } .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .print-only { display: block; }
  .modal-bg { position: static; background: none; padding: 0; backdrop-filter: none; } .modal { box-shadow: none; max-width: none; }
  .modal-h { display: none; }
  body.printing-modal .shell { display: none; }
}
.paper { background: #fff; color: #111; padding: 40px 48px; font-size: 13.5px; line-height: 1.6; }
.paper h1 { font-size: 20px; text-align: center; text-transform: uppercase; margin: 16px 0; }
.paper .ph-head { display: flex; justify-content: space-between; border-bottom: 2px solid #1a3cf0; padding-bottom: 10px; margin-bottom: 18px; }
.paper table { width: 100%; border-collapse: collapse; } .paper td, .paper th { border: 1px solid #bbb; padding: 5px 7px; font-size: 12.5px; }
.paper th { background: #f0f3ff; }
/* photo de profil */
.avatar img.ph { width: 100%; height: 100%; object-fit: cover; }
.avatar-ph { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(26, 60, 240, .15); vertical-align: middle; }
.avatar-ph img.ph { width: 100%; height: 100%; object-fit: cover; }
.card.sel { outline: 2px solid var(--blue); outline-offset: -2px; }
/* ---------- Menu repliable ---------- */
.sidebar { position: sticky; transition: width .18s ease; }
.brand-img { width: 150px; margin: 0 auto; transition: width .18s ease; }
.nav-toggle { position: absolute; top: 10px; right: 8px; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-weight: 800; cursor: pointer; z-index: 2; line-height: 1; }
.nav-toggle:hover { color: var(--blue); border-color: var(--blue); }
.nav-sec { display: flex; align-items: center; cursor: pointer; user-select: none; border-radius: 8px; }
.nav-sec:hover { color: var(--ink-2); }
.nav-sec i { margin-left: auto; font-style: normal; font-size: 12px; transition: transform .15s; }
.nav-sec.closed i { transform: rotate(-90deg); }
.shell.nav-mini .sidebar { width: 76px; padding: 44px 8px 14px; overflow-x: hidden; }
.shell.nav-mini .brand { padding: 0 0 10px; }
.shell.nav-mini .brand-img { width: 52px; }
.shell.nav-mini .brand-txt, .shell.nav-mini .nav a span, .shell.nav-mini .sidebar > .small { display: none; }
.shell.nav-mini .nav-sec { padding: 0; margin: 8px 6px; height: 1px; background: var(--line); cursor: default; }
.shell.nav-mini .nav-sec span, .shell.nav-mini .nav-sec i { display: none; }
.shell.nav-mini .nav a { justify-content: center; padding: 8px 0; }
.shell.nav-mini .nav a.router-link-active::before { left: -8px; }
.only-desktop { display: inline-block; }
@media (max-width: 980px) { .only-desktop { display: none; } .shell.nav-mini .sidebar.open { width: var(--sidebar); padding: 18px 12px; } .shell.nav-mini .sidebar.open .brand-txt, .shell.nav-mini .sidebar.open .nav a span { display: initial; } }
@media (max-width: 980px) {
  .shell.nav-mini .sidebar.open .nav-sec { height: auto; background: none; margin: 0; padding: 12px 10px 4px; }
  .shell.nav-mini .sidebar.open .nav-sec span, .shell.nav-mini .sidebar.open .nav-sec i { display: initial; }
  .shell.nav-mini .sidebar.open .nav a { justify-content: flex-start; padding: 7px 10px; }
  .shell.nav-mini .sidebar.open .brand-img { width: 150px; }
}
.prof-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); }
@media (max-width: 1100px) { .prof-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 700px) { .prof-grid { grid-template-columns: minmax(0, 1fr); } }
