/* ═══════════════════════════════════════════════════════════════════
   MN PRO GROUPE — Espace Client
   Navy #0A192F · Gold #D4AF37 · Inter + Playfair Display
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────────── */
:root {
  --navy:       #0A192F;
  --navy-light: #112240;
  --navy-mid:   #1a2f4a;
  --gold:       #D4AF37;
  --gold-light: #e8c84a;
  --gold-dim:   rgba(212,175,55,.12);
  --gold-glow:  rgba(212,175,55,.07);
  --teal:       #1a7f75;
  --teal-bg:    rgba(26,127,117,.1);
  --sand:       #F8F9FA;
  --bg:         #f4f5f7;
  --white:      #ffffff;
  --border:     #E5E7EB;
  --text:       #111827;
  --text-sec:   #374151;
  --text-muted: #6B7280;
  --green:      #065F46;
  --green-bg:   #D1FAE5;
  --red:        #991B1B;
  --red-bg:     #FEE2E2;
  --yellow:     #92400E;
  --yellow-bg:  #FEF3C7;
  --blue:       #1D4ED8;
  --blue-bg:    #DBEAFE;
  --sidebar-w:  256px;
  --r-sm:    8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-pill: 9999px;
  --shadow-sm: 0 1px 3px rgba(10,25,47,.06), 0 1px 2px rgba(10,25,47,.04);
  --shadow-md: 0 4px 20px rgba(10,25,47,.08), 0 1px 4px rgba(10,25,47,.04);
  --shadow-lg: 0 12px 40px rgba(10,25,47,.12), 0 4px 12px rgba(10,25,47,.06);
  --shadow-gold: 0 8px 32px rgba(212,175,55,.2);
  --trans: .22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* ═══════════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════════ */
.layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.main   { padding: 2rem 2rem 3rem; overflow-x: hidden; min-width: 0; }

.grid-main > *, .grid-2 > *, .grid-3 > *, .flex-col > *, .metric-row > * { min-width: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR — premium navy avec accents gold
   ═══════════════════════════════════════════════════════════════════ */
.sidebar {
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
  /* Barre gold en haut */
  border-right: 1px solid rgba(255,255,255,.04);
}
.sidebar::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(212,175,55,.3), transparent);
  flex-shrink: 0;
}
.sidebar::-webkit-scrollbar { display: none; }

/* Brand */
.s-brand {
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: .5rem;
  position: relative;
}
.s-brand::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, rgba(212,175,55,.06), transparent 70%);
}
.s-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
  line-height: 1.2;
}
.s-brand-name span { color: var(--gold); }
.s-brand-sub {
  font-size: 9.5px;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-top: 4px;
  display: block;
}
.s-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 4px 10px;
  background: var(--gold-dim);
  border: 1px solid rgba(212,175,55,.25);
  border-radius: var(--r-pill);
  font-size: 10px;
  color: rgba(212,175,55,.9);
  font-weight: 500;
  letter-spacing: .2px;
}

.s-nav { padding: 0 .75rem; flex: 1; }

.s-group {
  font-size: 9px;
  color: rgba(255,255,255,.2);
  padding: 0 .625rem;
  margin: 1.25rem 0 .375rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.s-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  cursor: pointer;
  transition: background var(--trans), color var(--trans);
  position: relative;
  margin-bottom: 1px;
}
.s-item i { font-size: 14px; width: 16px; text-align: center; flex-shrink: 0; }
.s-item:hover {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.8);
}
.s-item.active {
  background: var(--gold-dim);
  color: var(--gold);
  font-weight: 500;
}
.s-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
}
.s-item .pill-w {
  margin-left: auto;
  background: var(--gold-dim);
  color: var(--gold);
  border-radius: var(--r-pill);
  font-size: 9px;
  padding: 1px 7px;
  font-weight: 700;
}

.s-spacer { flex: 1; }

.s-footer {
  padding: .875rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.s-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: .625rem .75rem;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  margin-bottom: 6px;
}
.s-user-av {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #b8912a);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(212,175,55,.3);
}
.s-user-name { font-size: 12px; color: rgba(255,255,255,.75); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-user-role { font-size: 10px; color: rgba(255,255,255,.28); }

.s-logout {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; border-radius: var(--r-sm);
  font-size: 12px; color: rgba(248,113,113,.65); cursor: pointer;
  transition: background var(--trans), color var(--trans);
}
.s-logout:hover { background: rgba(239,68,68,.08); color: #F87171; }
.s-logout i { font-size: 13px; width: 16px; text-align: center; }

/* ═══════════════════════════════════════════════════════════════════
   PAGE HEADER
   ═══════════════════════════════════════════════════════════════════ */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.page-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.2;
}
.page-header h2 span { color: var(--gold); }
.page-header p { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.page-header__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Trait gold sous les titres de page */
.page-title-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}
.page-title-bar::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ═══════════════════════════════════════════════════════════════════
   HERO CLIENT — glassmorphism navy/gold
   ═══════════════════════════════════════════════════════════════════ */
.client-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #0d2845 100%);
  border-radius: var(--r-xl);
  padding: 2rem 2rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(10,25,47,.3);
}
/* Cercles décoratifs */
.client-hero::before {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,.14);
  top: 50%; right: -80px;
  transform: translateY(-50%);
  pointer-events: none;
}
.client-hero::after {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,.08);
  top: 50%; right: -20px;
  transform: translateY(-50%);
  pointer-events: none;
}
.client-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 90% 50%, rgba(212,175,55,.09) 0%, transparent 65%);
  pointer-events: none;
}
.client-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  gap: 1.5rem;
}
.client-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(212,175,55,.25);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(212,175,55,.85);
  margin-bottom: 10px;
}
.client-hero__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
}
.client-hero__badge-dot::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .4;
  animation: ping 1.6s ease infinite;
}
.client-hero__text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 5px; line-height: 1.2;
}
.client-hero__text p { font-size: 12.5px; color: rgba(255,255,255,.5); }
.client-hero__stats {
  display: flex;
  gap: 1px;
  background: rgba(255,255,255,.05);
  border-radius: var(--r-lg);
  overflow: hidden;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.client-hero__stat {
  padding: 1rem 1.375rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.06);
}
.client-hero__stat:last-child { border-right: none; }
.client-hero__stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 4px;
}
.client-hero__stat-label {
  font-size: 10px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .7px;
}

@keyframes ping {
  0%,100% { transform: scale(1); opacity: .4; }
  50% { transform: scale(2.2); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   METRIC CARDS
   ═══════════════════════════════════════════════════════════════════ */
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 1.5rem; }
.metric {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.125rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--trans), transform var(--trans);
  position: relative;
  overflow: hidden;
}
.metric::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(212,175,55,.3));
  opacity: 0;
  transition: opacity var(--trans);
}
.metric:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.metric:hover::after { opacity: 1; }

.metric-icon {
  width: 40px; height: 40px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; margin-bottom: .75rem;
}
.metric-icon.gold  { background: var(--gold-dim);         color: var(--gold);  }
.metric-icon.navy  { background: rgba(10,25,47,.08);       color: var(--navy);  }
.metric-icon.green { background: #D1FAE5;                  color: #065F46;      }
.metric-icon.teal  { background: var(--teal-bg);           color: var(--teal);  }
.metric-icon.blue  { background: #DBEAFE;                  color: #1D4ED8;      }

.metric-label { font-size: 10.5px; color: var(--text-muted); margin-bottom: 3px; text-transform: uppercase; letter-spacing: .6px; font-weight: 500; }
.metric-val   { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 5px; }
.metric-sub   { font-size: 11.5px; color: var(--text-muted); }
.metric-sub.accent { color: var(--teal); }
.metric-sub.up     { color: #065F46; }
.metric-sub.warn   { color: #92400E; }

/* ═══════════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.125rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--trans), border-color var(--trans);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(212,175,55,.2);
}

.card-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border);
  gap: .5rem;
}
.card-hd h3 {
  font-size: 13.5px; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; gap: 7px;
}
.card-hd a { font-size: 12px; color: var(--gold); font-weight: 500; white-space: nowrap; transition: color var(--trans); }
.card-hd a:hover { color: var(--gold-light); }

/* ═══════════════════════════════════════════════════════════════════
   GRIDS
   ═══════════════════════════════════════════════════════════════════ */
.grid-main { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 14px; align-items: start; }
.grid-2    { display: grid; grid-template-columns: 1fr 1fr;   gap: 14px; margin-bottom: 14px; }
.grid-3    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.flex-col  { display: flex; flex-direction: column; gap: 14px; }

/* ═══════════════════════════════════════════════════════════════════
   DOSSIER ROW
   ═══════════════════════════════════════════════════════════════════ */
.dossier-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border);
}
.dossier-row:last-child { border-bottom: none; }
.dossier-info { flex: 1; min-width: 0; }
.dossier-info h4 {
  font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dossier-info p  { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }
.dossier-prog-wrap { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.dossier-prog-wrap .prog { flex: 1; max-width: 240px; }
.dossier-prog-wrap span { font-size: 11px; color: var(--text-muted); white-space: nowrap; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════
   PROGRESS BAR — gold gradient
   ═══════════════════════════════════════════════════════════════════ */
.prog { height: 5px; background: var(--border); border-radius: var(--r-pill); overflow: hidden; }
.prog-fill { height: 100%; background: linear-gradient(90deg, var(--gold), rgba(212,175,55,.6)); border-radius: var(--r-pill); transition: width .4s ease; }
.prog-fill.done { background: linear-gradient(90deg, #10B981, #34D399); }

/* ═══════════════════════════════════════════════════════════════════
   PIPELINE — étapes du dossier (suivi juridique)
   ═══════════════════════════════════════════════════════════════════ */
.pipeline { display: flex; align-items: flex-start; overflow-x: auto; padding-bottom: 4px; }
.pipeline-step { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 90px; text-align: center; position: relative; }
.pipeline-step__line {
  position: absolute; top: 13px; left: -50%; width: 100%; height: 2px;
  background: var(--border); z-index: 0;
}
.pipeline-step:first-child .pipeline-step__line { display: none; }
.pipeline-step.done .pipeline-step__line,
.pipeline-step.current .pipeline-step__line { background: var(--teal); }
.pipeline-step__dot {
  position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
  background: var(--white); border: 2px solid var(--border); color: var(--text-muted);
}
.pipeline-step.done .pipeline-step__dot { background: var(--teal); border-color: var(--teal); color: #fff; }
.pipeline-step.current .pipeline-step__dot { background: var(--white); border-color: var(--teal); color: var(--teal); }
.pipeline-step__label { font-size: 11px; margin-top: 6px; color: var(--text-muted); line-height: 1.3; }
.pipeline-step.done .pipeline-step__label,
.pipeline-step.current .pipeline-step__label { color: var(--navy); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════
   RDV ROW
   ═══════════════════════════════════════════════════════════════════ */
.rdv-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.rdv-row:last-child { border-bottom: none; }

.rdv-date {
  background: var(--gold-dim);
  border: 1px solid rgba(212,175,55,.2);
  border-radius: var(--r-md);
  padding: 8px 10px; text-align: center; min-width: 50px; flex-shrink: 0;
}
.rdv-date .day   { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1; }
.rdv-date .month { font-size: 9.5px; color: #92400E; text-transform: uppercase; letter-spacing: .6px; margin-top: 2px; font-weight: 600; }

.rdv-info { flex: 1; min-width: 0; }
.rdv-info p    { font-size: 13px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rdv-info span { font-size: 11.5px; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; letter-spacing: .2px; white-space: nowrap;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.badge-gold   { background: var(--gold-dim); color: #92400E; border: 1px solid rgba(212,175,55,.3); }
.badge-gold::before   { background: var(--gold); }
.badge-blue   { background: var(--blue-bg);   color: var(--blue); }
.badge-blue::before   { background: var(--blue); }
.badge-green  { background: var(--green-bg);  color: var(--green); }
.badge-green::before  { background: var(--green); }
.badge-red    { background: var(--red-bg);    color: var(--red); }
.badge-red::before    { background: var(--red); }
.badge-yellow { background: var(--yellow-bg); color: var(--yellow); }
.badge-yellow::before { background: var(--yellow); }
.badge-teal   { background: var(--teal-bg);   color: var(--teal); }
.badge-teal::before   { background: var(--teal); }
.badge-dark   { background: #C8E6C9; color: #1B5E20; }
.badge-dark::before   { background: #1B5E20; }
.badge-gray   { background: #F3F4F6; color: #6B7280; }
.badge-gray::before   { background: #9CA3AF; }

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 500; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--white); color: var(--text-sec);
  font-family: 'Inter', system-ui, sans-serif;
  transition: all var(--trans);
}
.btn:hover { border-color: rgba(212,175,55,.5); color: var(--navy); transform: translateY(-1px); }

.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 4px 16px rgba(10,25,47,.25); }
.btn-primary:hover { background: var(--navy-mid); border-color: var(--navy-mid); color: #fff; }

.btn-gold {
  background: var(--gold); color: var(--navy); border-color: var(--gold);
  font-weight: 600; box-shadow: var(--shadow-gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); transform: translateY(-1px); }

.btn-teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-teal:hover { opacity: .9; color: #fff; }

.btn-ghost { background: transparent; border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.8); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); color: #fff; }

.btn-sm   { padding: 5px 12px; font-size: 12px; }
.btn-danger { border-color: #FECACA; color: var(--red); }
.btn-danger:hover { background: var(--red-bg); border-color: #FCA5A5; }

/* ═══════════════════════════════════════════════════════════════════
   TABLE
   ═══════════════════════════════════════════════════════════════════ */
.tbl { width: 100%; font-size: 13px; border-collapse: collapse; }
.tbl thead th {
  font-size: 10.5px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .6px;
  padding: .875rem .75rem; text-align: left;
  border-bottom: 2px solid var(--border); white-space: nowrap; background: var(--sand);
}
.tbl tbody td {
  padding: .875rem .75rem; border-bottom: 1px solid var(--border);
  color: var(--text); vertical-align: middle; transition: background var(--trans);
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td { background: rgba(212,175,55,.03); }

/* ═══════════════════════════════════════════════════════════════════
   FILTERS
   ═══════════════════════════════════════════════════════════════════ */
.filters {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.filter-link {
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  border: 1.5px solid var(--border); background: var(--white);
  transition: all var(--trans);
}
.filter-link:hover { border-color: rgba(212,175,55,.5); color: var(--navy); }
.filter-link.active { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 4px 12px rgba(10,25,47,.2); }

/* ═══════════════════════════════════════════════════════════════════
   ROW ITEM
   ═══════════════════════════════════════════════════════════════════ */
.row-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.row-item:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════════════
   DETAIL PAGE
   ═══════════════════════════════════════════════════════════════════ */
.detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.detail-section { margin-bottom: 1.5rem; }
.detail-section h4 {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-muted); margin-bottom: .75rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.detail-section h4::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.detail-row { display: flex; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.detail-row:last-child { border-bottom: none; }
.detail-label { width: 160px; color: var(--text-muted); flex-shrink: 0; font-size: 12.5px; }
.detail-value { color: var(--text); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════════
   CELL HELPERS
   ═══════════════════════════════════════════════════════════════════ */
.cell-sub {
  font-size: 11.5px; color: var(--text-muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cell-email {
  font-size: 13px; font-weight: 600; color: var(--navy);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════
   CONTENT EMPTY
   ═══════════════════════════════════════════════════════════════════ */
.content-empty { text-align: center; padding: 2.5rem; color: var(--text-muted); font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════════
   ACTIONS RAPIDES
   ═══════════════════════════════════════════════════════════════════ */
.action-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--text-sec); font-size: 13px; font-weight: 500;
  transition: all var(--trans); cursor: pointer;
}
.action-btn:hover {
  border-color: rgba(212,175,55,.4);
  color: var(--navy);
  background: var(--gold-glow);
  transform: translateX(3px);
}
.action-btn i { font-size: 18px; width: 20px; text-align: center; flex-shrink: 0; color: var(--gold); }
.action-btn small { font-size: 11px; color: var(--text-muted); display: block; margin-top: 1px; font-weight: 400; }

/* ═══════════════════════════════════════════════════════════════════
   PROFIL
   ═══════════════════════════════════════════════════════════════════ */
.profil-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border: 3px solid rgba(212,175,55,.4);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700; color: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(10,25,47,.2);
}

/* ═══════════════════════════════════════════════════════════════════
   LOGIN — full-screen premium
   ═══════════════════════════════════════════════════════════════════ */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--navy); position: relative; overflow: hidden;
}
/* Cercles décoratifs inspirés du frontend */
.login-wrap::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  border: 1px solid rgba(212,175,55,.1);
  top: 50%; right: -240px; transform: translateY(-50%);
}
.login-wrap::after {
  content: '';
  position: absolute;
  width: 480px; height: 480px; border-radius: 50%;
  border: 1px solid rgba(212,175,55,.06);
  top: 50%; right: -120px; transform: translateY(-50%);
}
.login-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 80% at 80% 50%, rgba(212,175,55,.07) 0%, transparent 60%);
}
.login-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(212,175,55,.25);
}
.login-dot-a { width: 6px; height: 6px; top: 28%; left: 15%; }
.login-dot-b { width: 4px; height: 4px; top: 62%; left: 10%; opacity: .6; }

.login-card {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  border-radius: var(--r-xl);
  padding: 2.75rem 2.25rem;
  width: 420px;
  max-width: calc(100vw - 2rem);
  box-shadow: 0 32px 80px rgba(0,0,0,.4);
  position: relative; z-index: 1;
  border: 1px solid rgba(255,255,255,.15);
}

/* Trait gold en haut de la carte */
.login-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(212,175,55,.3), transparent);
  border-radius: 3px 3px 0 0;
  position: absolute;
  top: 0; left: 0; right: 0;
}

.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo-icon {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 32px rgba(10,25,47,.3);
  position: relative;
}
.login-logo-icon::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-md);
  border: 1px solid rgba(212,175,55,.3);
}
.login-logo-icon i { color: var(--gold); font-size: 22px; }
.login-logo h1 {
  font-family: 'Playfair Display', serif;
  font-size: 21px; color: var(--navy); margin-bottom: 4px; font-weight: 700;
}
.login-logo h1 span { color: var(--gold); }
.login-logo p { font-size: 12px; color: var(--text-muted); }

.form-group { margin-bottom: 1.125rem; }
.form-label {
  display: block; font-size: 11px; font-weight: 700; color: var(--text-sec);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: .7px;
}
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-size: 13.5px; font-family: 'Inter', system-ui, sans-serif; color: var(--text);
  transition: border-color var(--trans), box-shadow var(--trans); background: var(--white);
}
.form-control:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.12);
}
.form-error {
  background: var(--red-bg); color: var(--red); border-radius: var(--r-md);
  padding: .75rem 1rem; font-size: 12.5px; margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 7px; border-left: 3px solid var(--red);
}

.btn-login {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff; border: none; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600; font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer; transition: box-shadow var(--trans), transform var(--trans);
  box-shadow: 0 4px 20px rgba(10,25,47,.3); margin-top: .75rem;
  position: relative; overflow: hidden;
}
.btn-login::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(212,175,55,.08));
}
.btn-login:hover { box-shadow: 0 8px 28px rgba(10,25,47,.4); transform: translateY(-1px); }

.login-divider {
  text-align: center; font-size: 11.5px; color: var(--text-muted);
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
}
.login-back {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: .75rem; font-size: 12px; color: var(--text-muted);
}
.login-back a { color: var(--gold); font-weight: 500; }
.login-back a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  :root { --sidebar-w: 224px; }
  .main { padding: 1.5rem 1.5rem 2.5rem; }
  .metric-row { gap: 10px; margin-bottom: 1.25rem; }
  .grid-2, .grid-main { gap: 10px; }
}

@media (max-width: 1100px) {
  :root { --sidebar-w: 200px; }
  .grid-main { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .metric-val { font-size: 26px; }
  .client-hero__inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .client-hero__stats { align-self: stretch; }
}

@media (max-width: 980px) {
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .grid-2     { grid-template-columns: 1fr; }
  .grid-3     { grid-template-columns: repeat(2, 1fr); }
  .detail-label { width: 130px; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar  { display: none; }
  .layout   { grid-template-columns: 1fr; }
  .main     { padding: 1rem 1rem 2rem; }
  .metric-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .grid-3   { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .client-hero { padding: 1.25rem; }
  .client-hero__stats { flex-wrap: wrap; }
  .client-hero__stat  { flex: 1; min-width: 80px; padding: .75rem 1rem; }
  .client-hero__text h2 { font-size: 20px; }
}
