/* ── CRM ADVICE Maroc — Styles spécifiques ── */

.admin-nav-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 12px 16px 4px;
}

/* Statut badges */
.badge-statut { font-size: 0.78rem; padding: 4px 10px; border-radius: 20px; font-weight: 500; }

/* Timeline activités */
.crm-timeline { position: relative; padding-left: 28px; }
.crm-timeline::before {
  content: '';
  position: absolute; left: 10px; top: 0; bottom: 0;
  width: 2px; background: #e5e7eb;
}
.crm-timeline-item { position: relative; margin-bottom: 1.25rem; }
.crm-timeline-dot {
  position: absolute; left: -24px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 2px currentColor;
}
.crm-timeline-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 10px; padding: 12px 16px;
  transition: box-shadow 0.15s;
}
.crm-timeline-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

/* Fiche bénéficiaire */
.crm-fiche-header {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  border-radius: 14px; padding: 24px; color: #fff; margin-bottom: 1.5rem;
}
.crm-fiche-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: #fff; font-weight: 700;
  border: 3px solid rgba(255,255,255,0.4);
}
.crm-stat-mini {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 12px 16px; text-align: center;
}
.crm-stat-mini .value { font-size: 1.5rem; font-weight: 700; color: #1e293b; }
.crm-stat-mini .label { font-size: 0.75rem; color: #6b7280; }

/* Progression phases */
.phase-steps { display: flex; gap: 4px; }
.phase-step {
  flex: 1; height: 6px; border-radius: 3px;
  background: #e5e7eb; transition: background 0.3s;
}
.phase-step.active { background: #0d6efd; }
.phase-step.done { background: #198754; }

/* Cards module */
.crm-module-card {
  border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.crm-module-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: #0d6efd; }
.crm-module-badge {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; background: #eff6ff; color: #1d4ed8;
}

/* Score donut mini */
.score-ring { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.score-ring canvas { display: block; }

/* KPI cards */
.crm-kpi-card {
  border-radius: 12px; padding: 20px 24px;
  border: 1px solid transparent;
}
.crm-kpi-card .kpi-value { font-size: 2rem; font-weight: 700; }
.crm-kpi-card .kpi-label { font-size: 0.82rem; opacity: 0.85; margin-top: 2px; }
.crm-kpi-card .kpi-icon { font-size: 2rem; opacity: 0.25; }

/* Alerte prochaine intervention */
.next-intervention {
  background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: 10px; padding: 12px 16px;
}

/* Print styles */
@media print {
  .admin-sidebar, .admin-topbar, .btn, form, .no-print { display: none !important; }
  .admin-main { margin: 0 !important; }
  .admin-content { padding: 0 !important; }
  .crm-fiche-header { background: #0d6efd !important; -webkit-print-color-adjust: exact; }
}

/* Diagnostic form public */
.diag-header {
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  padding: 32px; border-radius: 16px; color: #fff; margin-bottom: 2rem;
}
.diag-section {
  border-left: 4px solid #0d6efd;
  padding-left: 16px; margin-bottom: 1.5rem;
}
.diag-section-title { font-weight: 700; color: #1e293b; margin-bottom: 12px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
