@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg:      #050510;
  --bg2:     #08081a;
  --bg3:     #0d0d24;
  --bg4:     #12122e;
  --bg5:     #181838;
  --border:  #181830;
  --brd2:    #22224a;
  --brd3:    #30305a;
  --accent:  #3b82f6;
  --accent2: #1d4ed8;
  --accent3: #60a5fa;
  --accentg: rgba(59,130,246,.2);
  --accentl: rgba(59,130,246,.08);
  --text:    #e2e2f0;
  --text2:   #b0b0d0;
  --muted:   #5a5a85;
  --dim:     #30305a;
  --green:   #22c55e;
  --yellow:  #eab308;
  --red:     #ef4444;
  --orange:  #f97316;
  --font:    'Inter', system-ui, sans-serif;
  --mono:    'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 14px; min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent3); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }
.accent { color: var(--accent3); }
.muted  { color: var(--muted); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.empty  { color: var(--muted); font-size: 13px; padding: 1rem 0; }

input, select, textarea, button { font-family: var(--font); font-size: 14px; }
input, select, textarea {
  background: var(--bg4); border: 1px solid var(--brd2);
  color: var(--text); border-radius: 6px; padding: 9px 13px;
  width: 100%; outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
select option { background: var(--bg4); }
textarea { resize: vertical; min-height: 80px; width: 100%; display: block; }
input[type="color"] { padding: 4px; height: 36px; cursor: pointer; }
input[type="file"] { padding: 6px 10px; }

/* ── NAVBAR ── */
.navbar {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 0 1.5rem; display: flex; align-items: center;
  justify-content: space-between; height: 60px; min-height: 60px; max-height: 60px;
  overflow: hidden; flex-wrap: nowrap;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 20px rgba(0,0,0,.6);
}
.nav-brand { display: flex; align-items: center; gap: .875rem; flex-shrink: 0; }
.nav-logo {
  width: 38px; height: 38px; border: 2px solid var(--accent2);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--accent3); font-size: 10px; font-weight: 800; letter-spacing: .05em;
  background: var(--accentl); font-family: var(--mono); flex-shrink: 0;
}
.nav-brand-text { display: flex; flex-direction: column; gap: 1px; }
.nav-title { font-size: 15px; font-weight: 800; letter-spacing: .15em; color: var(--text); font-family: var(--mono); }
.nav-subtitle { font-size: 9px; color: var(--muted); letter-spacing: .08em; }
.nav-links { display: flex; align-items: center; gap: .15rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em;
  padding: 5px 10px; border-radius: 5px; transition: all .15s; white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--bg4); }
.nav-link.active { color: var(--accent3); background: var(--accentl); }
.nav-admin { color: var(--yellow) !important; }
.nav-admin.active { background: rgba(234,179,8,.1) !important; }
.nav-user { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; padding-left: 1rem; border-left: 1px solid var(--border); }
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accentl);
  border: 1.5px solid var(--accent2); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--accent3); flex-shrink: 0;
}
.nav-user-info { display: flex; flex-direction: column; gap: 1px; }
.nav-user-name { font-size: 12px; font-weight: 600; color: var(--text2); }
.nav-user-mat  { font-size: 10px; color: var(--muted); font-family: var(--mono); }
.btn-logout {
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; border-radius: 6px;
  padding: 5px 10px; font-size: 16px; transition: all .15s; flex-shrink: 0;
}
.btn-logout:hover { border-color: var(--red); color: var(--red); }

/* ── FLASH ── */
.flash { padding: .75rem 1.5rem; font-size: 13px; font-weight: 500; border-left: 3px solid; display: flex; align-items: center; gap: .5rem; }
.flash-success { background: rgba(34,197,94,.08); border-color: var(--green); color: #4ade80; }
.flash-error   { background: rgba(239,68,68,.08);  border-color: var(--red);   color: #f87171; }

/* ── LOGIN ── */
.login-body { background: var(--bg); display: flex; align-items: center; justify-content: center; min-height: 100vh; position: relative; overflow: hidden; }
.login-bg {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 30% 20%, rgba(59,130,246,.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(29,78,216,.04) 0%, transparent 50%);
}
.login-wrap { width: 100%; max-width: 400px; padding: 1rem; position: relative; z-index: 1; }
.login-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  padding: 2.5rem 2rem; box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.login-logo {
  width: 64px; height: 64px; border-radius: 12px; background: var(--accentl);
  border: 2px solid var(--accent2); display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: var(--accent3); font-family: var(--mono);
  letter-spacing: .08em; margin: 0 auto 1rem;
}
.login-title { text-align: center; font-size: 22px; font-weight: 800; letter-spacing: .2em; margin-bottom: .25rem; }
.login-sub   { text-align: center; font-size: 11px; color: var(--muted); letter-spacing: .08em; margin-bottom: 1.25rem; }
.login-divider { height: 1px; background: var(--border); margin-bottom: 1.5rem; }
.login-error { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.3); color: #f87171; border-radius: 6px; padding: .6rem 1rem; font-size: 13px; margin-bottom: 1rem; }
.login-field { margin-bottom: 1rem; }
.login-field label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--muted); margin-bottom: .4rem; }
.login-btn {
  width: 100%; background: var(--accent); color: #fff; border: none;
  border-radius: 8px; padding: 11px; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; cursor: pointer; transition: background .15s;
  margin-top: .5rem; box-shadow: 0 2px 16px rgba(59,130,246,.3);
}
.login-btn:hover { background: var(--accent2); }
.login-footer { text-align: center; font-size: 11px; color: var(--muted); margin-top: 1.25rem; }

/* ── PAGE WRAP ── */
.page-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 2rem 1.5rem; flex: 1; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap; }
.page-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.page-sub   { color: var(--muted); font-size: 13px; margin-top: .2rem; display: block; }
.header-date { color: var(--muted); font-size: 12px; text-align: right; line-height: 1.4; }
.breadcrumb { color: var(--muted); font-size: 12px; margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.section-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: .5rem; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent); color: #fff; border: none; border-radius: 6px;
  padding: 9px 20px; cursor: pointer; font-weight: 600; font-size: 13px;
  display: inline-block; transition: all .15s; box-shadow: 0 1px 10px rgba(59,130,246,.3);
}
.btn-primary:hover { background: var(--accent2); color: #fff; }
.btn-secondary {
  background: var(--bg4); color: var(--text2); border: 1px solid var(--brd2);
  border-radius: 6px; padding: 9px 18px; cursor: pointer; font-size: 13px;
  display: inline-block; transition: all .15s;
}
.btn-secondary:hover { border-color: var(--brd3); color: var(--text); }
.btn-sm {
  background: var(--bg4); color: var(--text2); border: 1px solid var(--border);
  border-radius: 5px; padding: 4px 10px; cursor: pointer; font-size: 12px;
  display: inline-block; transition: all .15s;
}
.btn-sm:hover { border-color: var(--accent); color: var(--accent3); }
.btn-danger { border-color: transparent; background: rgba(239,68,68,.1); color: #f87171; }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm-pad { padding: 7px 14px !important; }
.btn-reset { background: var(--bg4); color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 9px 12px; cursor: pointer; font-size: 13px; }

/* ── FORMS ── */
.form-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 2rem; margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; width: 100%; min-width: 0; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.form-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.25rem; flex-wrap: wrap; }
.checkbox-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.checkbox-item { display: flex; align-items: center; gap: .4rem; background: var(--bg3); border: 1px solid var(--border); border-radius: 5px; padding: 5px 10px; cursor: pointer; font-size: 12px; }
.checkbox-item input[type="checkbox"] { width: 14px; height: 14px; flex-shrink: 0; }
.inline-form { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.inline-select { flex: 1; min-width: 140px; }
.inline-input  { flex: 1; min-width: 180px; }

/* ── SEARCH BAR ── */
.search-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: .75rem 1rem; }
.search-input  { flex: 2; min-width: 180px; }
.search-select { flex: 1; min-width: 130px; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { background: var(--bg3); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; padding: .6rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:hover td { background: var(--bg3); }
.table td form, .table .actions form { display: contents; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }

/* ── STATS GRID ── */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; text-align: center; border-top: 2px solid var(--accent2); }
.stat-icon { font-size: 24px; margin-bottom: .5rem; }
.stat-n { font-size: 42px; font-weight: 800; color: var(--accent3); font-family: var(--mono); line-height: 1; }
.stat-l { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--muted); margin-top: .4rem; }

/* ── DASHBOARD ── */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dash-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; }
.dash-card-full { grid-column: 1 / -1; }
.dash-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.dash-item { display: flex; align-items: center; gap: .75rem; padding: .6rem; border-radius: 6px; transition: background .12s; text-decoration: none; color: var(--text); }
.dash-item:hover { background: var(--bg3); }
.dash-item-info { flex: 1; min-width: 0; }
.dash-item-title { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-item-meta  { display: block; font-size: 11px; color: var(--muted); }

/* ── PRIORITY ── */
.priority-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.priority-dot.priority-critique { background: #ef4444; }
.priority-dot.priority-haute    { background: #f97316; }
.priority-dot.priority-normale  { background: #3b82f6; }
.priority-dot.priority-faible   { background: #6b7280; }
.priority-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .06em; font-family: var(--mono); }
.priority-badge.priority-critique { background: rgba(239,68,68,.15); color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.priority-badge.priority-haute    { background: rgba(249,115,22,.15); color: #fb923c; border: 1px solid rgba(249,115,22,.3); }
.priority-badge.priority-normale  { background: rgba(59,130,246,.15); color: #60a5fa; border: 1px solid rgba(59,130,246,.3); }
.priority-badge.priority-faible   { background: rgba(107,114,128,.15); color: #9ca3af; border: 1px solid rgba(107,114,128,.3); }

/* ── STATUTS ── */
.statut-badge, .rapport-statut {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; border: 1px solid;
}
.statut-actif,       .statut-en-cours    { background: rgba(34,197,94,.12); color: #4ade80; border-color: rgba(34,197,94,.3); }
.statut-planifiée,   .statut-planifiee   { background: rgba(59,130,246,.12); color: #60a5fa; border-color: rgba(59,130,246,.3); }
.statut-terminée,    .statut-terminee    { background: rgba(107,114,128,.12); color: #9ca3af; border-color: rgba(107,114,128,.3); }
.statut-annulée,     .statut-annulee     { background: rgba(239,68,68,.1);  color: #f87171; border-color: rgba(239,68,68,.25); }
.statut-soumis                           { background: rgba(59,130,246,.12); color: #60a5fa; border-color: rgba(59,130,246,.3); }
.statut-en-révision, .statut-en-revision { background: rgba(234,179,8,.12); color: #fbbf24; border-color: rgba(234,179,8,.3); }
.statut-approuvé,    .statut-approuve    { background: rgba(34,197,94,.12); color: #4ade80; border-color: rgba(34,197,94,.3); }
.statut-rejeté,      .statut-rejete      { background: rgba(239,68,68,.1);  color: #f87171; border-color: rgba(239,68,68,.25); }
.statut-brouillon                        { background: rgba(107,114,128,.12); color: #9ca3af; border-color: rgba(107,114,128,.3); }
.statut-inactif                          { background: rgba(107,114,128,.12); color: #9ca3af; border-color: rgba(107,114,128,.3); }
.statut-suspendu                         { background: rgba(239,68,68,.1);  color: #f87171; border-color: rgba(239,68,68,.25); }
.statut-dot { font-size: 12px; font-weight: 500; }

/* ── MEMBRES GRID ── */
.membres-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.membre-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  padding: 1.25rem; text-align: center; transition: all .2s; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
.membre-card:hover { border-color: var(--accent2); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(59,130,246,.1); }
.mc-photo { position: relative; flex-shrink: 0; }
.mc-photo img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brd2); }
.mc-initials { width: 72px; height: 72px; border-radius: 50%; background: var(--accentl); border: 2px solid var(--accent2); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: var(--accent3); }
.mc-statut { position: absolute; bottom: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bg2); }
.mc-statut.statut-actif    { background: var(--green); }
.mc-statut.statut-inactif  { background: var(--muted); }
.mc-statut.statut-suspendu { background: var(--red); }
.mc-info { width: 100%; }
.mc-name      { font-size: 14px; font-weight: 600; margin-bottom: .2rem; }
.mc-matricule { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.mc-grade     { font-size: 11px; color: var(--accent3); margin-top: .3rem; font-weight: 500; }
.mc-team      { font-size: 10px; border: 1px solid; border-radius: 4px; padding: 2px 8px; margin-top: .4rem; display: inline-block; font-weight: 600; letter-spacing: .04em; }

/* ── PROFIL DETAIL ── */
.profil-detail { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; }
.profil-sidebar { display: flex; flex-direction: column; gap: .75rem; }
.profil-photo-wrap { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.profil-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.profil-initials-big { width: 100%; aspect-ratio: 3/4; background: var(--accentl); display: flex; align-items: center; justify-content: center; font-size: 64px; font-weight: 700; color: var(--accent3); }
.profil-statut { text-align: center; padding: 6px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; border: 1px solid; }
.profil-grade { text-align: center; font-size: 12px; color: var(--accent3); font-weight: 600; }
.profil-team  { text-align: center; font-size: 12px; font-weight: 600; }
.profil-content { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; }
.profil-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.profil-nom { font-size: 22px; font-weight: 800; }
.profil-matricule { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.profil-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.profil-field { display: flex; flex-direction: column; gap: .25rem; }
.profil-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.profil-value { font-size: 14px; font-weight: 500; }
.profil-section { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.profil-bio { color: var(--text2); line-height: 1.7; font-size: 13px; }

/* ── ORGANIGRAMME ── */
.org-chart { display: flex; flex-direction: column; gap: 0; }
.org-level { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; }
.org-level-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--accent3); margin-bottom: 1rem; text-transform: uppercase; }
.org-level-members { display: flex; flex-wrap: wrap; gap: .75rem; }
.org-connector { width: 2px; height: 24px; background: var(--brd2); margin: 0 auto; }
.org-card {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 8px;
  padding: .875rem; text-align: center; min-width: 120px; max-width: 160px;
  transition: all .15s; text-decoration: none; color: var(--text);
}
.org-card:hover { border-color: var(--accent2); background: var(--bg4); }
.org-card-photo { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; margin: 0 auto .5rem; border: 1.5px solid var(--brd2); }
.org-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.org-initials { width: 48px; height: 48px; border-radius: 50%; background: var(--accentl); border: 1.5px solid var(--accent2); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: var(--accent3); }
.org-card-name { font-size: 12px; font-weight: 600; }
.org-card-mat  { font-size: 10px; color: var(--muted); font-family: var(--mono); }
.org-card-team { font-size: 10px; margin-top: .25rem; font-weight: 600; }
.org-level-directeur .org-card    { border-color: var(--accent2); background: var(--accentl); }
.org-level-adjoint .org-card      { border-color: var(--brd3); }
.equipes-org { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-top: 1rem; }
.equipe-org-card { background: var(--bg2); border: 1px solid; border-radius: 10px; overflow: hidden; }
.equipe-org-header { padding: .875rem 1rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid; }
.equipe-org-name { font-size: 14px; font-weight: 700; }
.equipe-org-code { font-size: 10px; color: var(--muted); font-family: var(--mono); }
.equipe-org-chef { font-size: 11px; color: var(--muted); padding: .5rem 1rem 0; }
.equipe-org-members { padding: .75rem 1rem; display: flex; flex-direction: column; gap: .4rem; }
.equipe-org-member { display: flex; align-items: center; gap: .5rem; font-size: 12px; text-decoration: none; color: var(--text2); padding: .3rem; border-radius: 4px; transition: background .12s; }
.equipe-org-member:hover { background: var(--bg3); }
.eom-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.eom-mat { margin-left: auto; font-size: 10px; color: var(--muted); font-family: var(--mono); }

/* ── MISSIONS GRID ── */
.missions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.mission-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  padding: 1.25rem; transition: all .2s; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: .75rem;
}
.mission-card:hover { border-color: var(--brd3); transform: translateY(-2px); }
.mc-top  { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.mc-title { font-size: 15px; font-weight: 600; }
.mc-desc  { font-size: 12px; color: var(--muted); line-height: 1.5; flex: 1; }
.mc-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; }
.mc-members { display: flex; }
.mc-avatar {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--bg2);
  background: var(--accentl); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--accent3); margin-left: -8px; overflow: hidden;
}
.mc-avatar:first-child { margin-left: 0; }
.mc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mc-more { background: var(--bg4); color: var(--muted); font-size: 10px; }

/* ── RAPPORT ── */
.rapport-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.rapport-meta   { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: 12px; margin-top: .4rem; }
.rapport-type   { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--accent3); background: var(--accentl); border: 1px solid rgba(59,130,246,.3); border-radius: 4px; padding: 2px 8px; }
.rapport-content { white-space: pre-wrap; line-height: 1.7; font-size: 14px; }
.rapport-cible { background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; padding: .6rem 1rem; margin-bottom: 1rem; font-size: 13px; }

/* ── ÉQUIPES ── */
.equipes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.equipe-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; }
.equipe-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: .75rem; gap: .5rem; }
.equipe-name { font-size: 16px; font-weight: 700; }
.equipe-code { font-size: 10px; color: var(--muted); font-family: var(--mono); }
.equipe-chef { font-size: 12px; color: var(--muted); margin-bottom: .5rem; }
.equipe-desc { font-size: 12px; color: var(--text2); margin-bottom: .75rem; }
.equipe-members-list { display: flex; flex-direction: column; gap: .3rem; }
.equipe-member-row { display: flex; align-items: center; gap: .5rem; font-size: 12px; text-decoration: none; color: var(--text2); padding: .3rem; border-radius: 4px; transition: background .12s; }
.equipe-member-row:hover { background: var(--bg3); }

/* ── INFORMATIONS ── */
.infos-list { display: flex; flex-direction: column; gap: .75rem; }
.info-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; border-left: 3px solid; }
.info-card.info-card-alerte      { border-left-color: var(--red); }
.info-card.info-card-information { border-left-color: var(--accent); }
.info-card.info-card-directive   { border-left-color: var(--yellow); }
.info-card.info-card-confidentiel { border-left-color: var(--orange); }
.info-card-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; flex-wrap: wrap; }
.info-card-type  { font-size: 10px; font-weight: 700; letter-spacing: .1em; padding: 2px 8px; border-radius: 3px; }
.info-information { background: rgba(59,130,246,.12); color: #60a5fa; }
.info-alerte      { background: rgba(239,68,68,.12);  color: #f87171; }
.info-directive   { background: rgba(234,179,8,.12);  color: #fbbf24; }
.info-confidentiel { background: rgba(249,115,22,.12); color: #fb923c; }
.info-card-meta  { display: flex; align-items: center; gap: .5rem; font-size: 11px; margin-left: auto; }
.info-card-title   { font-size: 15px; font-weight: 600; margin-bottom: .35rem; }
.info-card-content { font-size: 13px; color: var(--text2); line-height: 1.6; }
/* Dash info items */
.info-item { display: flex; align-items: center; gap: .75rem; padding: .6rem; border-radius: 6px; }
.info-item:hover { background: var(--bg3); }
.info-type  { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; white-space: nowrap; }
.info-title { flex: 1; font-size: 13px; font-weight: 500; }
.info-meta  { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ── TWO COL ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.empty-state { color: var(--muted); font-size: 13px; padding: 2rem; text-align: center; grid-column: 1/-1; }

/* ── FOOTER ── */
.footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: .75rem 1.5rem; display: flex; justify-content: space-between;
  color: var(--dim); font-size: 11px; letter-spacing: .05em;
  margin-top: auto; font-family: var(--mono);
}
.footer-id { color: var(--border); }

/* ── MISSION ASSIGN ── */
.assign-tabs { display:flex; gap:.75rem; flex-wrap:wrap; margin-top:.5rem; }
.assign-tab { display:flex; align-items:center; gap:.5rem; cursor:pointer; padding:.6rem 1.1rem; border:1px solid var(--brd2); border-radius:8px; font-size:13px; transition:border-color .15s, background .15s; }
.assign-tab:has(input:checked) { border-color:var(--accent); background:var(--accentl); color:var(--accent3); }
.assign-tab input[type=radio] { display:none; }
.assign-info { background:var(--accentl); border:1px solid var(--accentg); border-radius:8px; padding:.75rem 1rem; color:var(--accent3); font-size:13px; }

/* ── KUMO DOSSIERS ── */
.kumo-menace { display:inline-block; padding:2px 10px; border-radius:20px; font-size:11px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; }
.kumo-menace-faible    { background:#22c55e20; color:#22c55e; border:1px solid #22c55e40; }
.kumo-menace-modérée   { background:#eab30820; color:#eab308; border:1px solid #eab30840; }
.kumo-menace-modéree   { background:#eab30820; color:#eab308; border:1px solid #eab30840; }
.kumo-menace-élevée    { background:#f9731620; color:#f97316; border:1px solid #f9731640; }
.kumo-menace-elevee    { background:#f9731620; color:#f97316; border:1px solid #f9731640; }
.kumo-menace-critique  { background:#ef444420; color:#ef4444; border:1px solid #ef444440; }
.kumo-menace-extrême   { background:#a855f720; color:#a855f7; border:1px solid #a855f740; }
.kumo-menace-extreme   { background:#a855f720; color:#a855f7; border:1px solid #a855f740; }
.dossier-rang { background:var(--accentl); color:var(--accent3); border:1px solid var(--accentg); border-radius:4px; padding:3px 10px; font-size:12px; font-weight:600; }
.dossier-profile { display:flex; gap:2rem; align-items:flex-start; margin-bottom:2rem; }
.dossier-photo .profile-img { width:140px; height:140px; object-fit:cover; border-radius:12px; border:2px solid var(--brd2); }
.dossier-photo .profile-initials { width:140px; height:140px; border-radius:12px; background:var(--bg5); border:2px solid var(--brd2); display:flex; align-items:center; justify-content:center; font-size:48px; font-weight:700; color:var(--muted); }
.dossier-header-info { flex:1; }
.profile-sections { display:flex; flex-direction:column; gap:1.5rem; }
@media (max-width: 600px) { .dossier-profile { flex-direction:column; } .dossier-photo .profile-img, .dossier-photo .profile-initials { width:100px; height:100px; font-size:36px; } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .profil-detail { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 1rem; }
  .nav-brand-text .nav-subtitle { display: none; }
  .nav-links { gap: .1rem; }
  .nav-link  { padding: 5px 8px; font-size: 10px; }
  .page-wrap { padding: 1.25rem .875rem; }
  .stats-grid { grid-template-columns: repeat(3,1fr); }
  .membres-grid { grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .nav-user-info { display: none; }
}
