/* Page /cas-client-recrutement-franchise — étude de cas client anonymisée.
 * Réutilise le design system (audit-hero, expertises-cases, partners-cta-final)
 * + blocs "dashboard recréé" spécifiques : cc-* (chiffres réels anonymisés).
 * Aucune donnée nominative : client masqué, visuels reconstruits aux couleurs BoomMaker. */

/* === Bandeau KPI héro (3 chiffres forts sous le lead) === */
.cc-hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}
.cc-hero-kpi {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
  background: rgba(var(--violet-rgb), 0.05);
}
.theme-light .cc-hero-kpi {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
}
.cc-hero-kpi-value {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--violet-2), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cc-hero-kpi-label {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
  margin-top: 10px;
}

/* === Cadre "dashboard" (évoque le reporting client, anonymisé) === */
.cc-dash {
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  margin-top: 8px;
}
.theme-light .cc-dash {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
}
.cc-dash-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(var(--bg-rgb), 0.6);
}
.cc-dash-dots { display: flex; gap: 7px; }
.cc-dash-dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--line-strong);
}
.cc-dash-dots span:nth-child(1) { background: #FF5F57; }
.cc-dash-dots span:nth-child(2) { background: #FEBC2E; }
.cc-dash-dots span:nth-child(3) { background: #28C840; }
.cc-dash-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.02em;
}
.cc-dash-live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.cc-dash-live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 0 rgba(var(--cyan-rgb), 0.6);
  animation: cc-pulse 2s infinite;
}
@keyframes cc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--cyan-rgb), 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(var(--cyan-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--cyan-rgb), 0); }
}
.cc-dash-body { padding: 26px; }

/* Grille interne du dashboard */
.cc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.cc-grid-full { grid-column: 1 / -1; }

.cc-block {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 20px 22px;
  background: var(--surface);
}
.theme-light .cc-block {
  background: rgba(250, 250, 252, 0.9);
  border-color: rgba(0, 0, 0, 0.06);
}
.cc-block-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}
.cc-block-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin: 8px 0 18px;
  letter-spacing: -0.01em;
}

/* Mini-stats amont (scrapés / enrichis / messages IA) */
.cc-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cc-mini {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 14px;
  background: rgba(var(--violet-rgb), 0.04);
}
.theme-light .cc-mini { background: #fff; border-color: rgba(0,0,0,0.06); }
.cc-mini-value {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cc-mini-label {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.4;
  margin-top: 8px;
}

/* Funnel LinkedIn (barres proportionnelles) */
.cc-funnel { display: flex; flex-direction: column; gap: 16px; }
.cc-funnel-row { display: flex; flex-direction: column; gap: 7px; }
.cc-funnel-head {
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: var(--sans);
}
.cc-funnel-label { font-size: 14px; color: var(--ink-2); }
.cc-funnel-val {
  font-size: 20px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.02em;
}
.cc-funnel-track {
  height: 34px; border-radius: 9px;
  background: rgba(var(--violet-rgb), 0.08);
  overflow: hidden;
}
.theme-light .cc-funnel-track { background: rgba(0,0,0,0.05); }
.cc-funnel-fill {
  height: 100%;
  border-radius: 9px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  display: flex; align-items: center; padding-left: 12px;
  min-width: 46px;
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.cc-funnel-fill span {
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 600;
  color: #0b0712; white-space: nowrap;
}

/* Cartes stat email */
.cc-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.cc-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 18px;
  background: rgba(var(--violet-rgb), 0.04);
}
.theme-light .cc-card { background: #fff; border-color: rgba(0,0,0,0.06); }
.cc-card-value {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 28px; line-height: 1; letter-spacing: -0.02em;
  color: var(--ink);
}
.cc-card-value em {
  font-style: normal;
  font-size: 15px; font-weight: 600;
  color: var(--cyan);
  margin-left: 6px;
}
.cc-card-label {
  font-family: var(--sans);
  font-size: 12.5px; color: var(--ink-2);
  margin-top: 9px; line-height: 1.4;
}

/* Pipeline CRM (étapes) */
.cc-pipe { display: flex; flex-direction: column; gap: 10px; }
.cc-pipe-step {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(var(--violet-rgb), 0.04);
}
.theme-light .cc-pipe-step { background: #fff; border-color: rgba(0,0,0,0.06); }
.cc-pipe-num {
  font-family: var(--mono); font-size: 11px;
  color: var(--mute); width: 26px; flex-shrink: 0;
}
.cc-pipe-name {
  font-family: var(--sans); font-size: 14px; color: var(--ink-2);
  flex: 1;
}
.cc-pipe-count {
  font-family: var(--sans); font-weight: 800; font-size: 18px;
  color: var(--ink); letter-spacing: -0.02em;
}
.cc-pipe-bar {
  width: 84px; height: 8px; border-radius: 5px; flex-shrink: 0;
  background: rgba(0,0,0,0.18);
  overflow: hidden;
}
.theme-light .cc-pipe-bar { background: rgba(0,0,0,0.07); }
.cc-pipe-bar span {
  display: block; height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

/* Sentiment (barre segmentée) */
.cc-sent-bar {
  display: flex; height: 40px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
}
.cc-seg { height: 100%; display: flex; align-items: center; justify-content: center; }
.cc-seg span {
  font-family: var(--mono); font-size: 12px; font-weight: 600; color: #0b0712;
}
.cc-seg-1 { background: #35D07F; }
.cc-seg-2 { background: var(--cyan); }
.cc-seg-3 { background: #8B8B9A; }
.cc-seg-4 { background: rgba(var(--violet-rgb), 0.35); }
.cc-sent-legend {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px;
}
.cc-sent-legend div {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 13px; color: var(--ink-2);
}
.cc-sent-legend i {
  width: 11px; height: 11px; border-radius: 3px; display: inline-block;
}

/* Note de bas de dashboard */
.cc-dash-note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--mute);
  margin-top: 20px;
  line-height: 1.5;
}

/* Parcours de recrutement (cycle long, étapes à venir) */
.cc-journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 6px;
}
.cc-journey-step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 15px;
  background: var(--surface);
}
.theme-light .cc-journey-step { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.06); }
.cc-journey-step.future { opacity: 0.55; border-style: dashed; }
.cc-journey-badge {
  font-family: var(--mono);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--cyan); font-weight: 600;
}
.cc-journey-step.future .cc-journey-badge { color: var(--mute); }
.cc-journey-count {
  font-family: var(--sans); font-weight: 800;
  font-size: 22px; line-height: 1; letter-spacing: -0.02em;
  color: var(--ink); margin-top: 9px;
}
.cc-journey-step.future .cc-journey-count {
  font-size: 13px; font-weight: 600; color: var(--mute);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.cc-journey-name {
  font-family: var(--sans); font-size: 12.5px;
  color: var(--ink-2); line-height: 1.35; margin-top: 6px;
}
@media (max-width: 900px) {
  .cc-journey { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cc-journey { grid-template-columns: 1fr; }
}

/* KPI de résultats (grille finale) */
.cc-kpis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cc-kpi {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px;
  background: var(--surface);
}
.theme-light .cc-kpi { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.06); }
.cc-kpi-value {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--violet-2), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cc-kpi-label {
  font-family: var(--sans);
  font-size: 14px; color: var(--ink-2);
  line-height: 1.45; margin-top: 12px;
}

/* Bénéfices (ce que ça change) */
.cc-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.cc-benefit {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--surface);
}
.theme-light .cc-benefit { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.06); }
.cc-benefit svg { flex-shrink: 0; margin-top: 2px; }
.cc-benefit h3 {
  font-family: var(--sans); font-size: 15.5px; font-weight: 700;
  color: var(--ink); margin-bottom: 5px;
}
.cc-benefit p {
  font-family: var(--sans); font-size: 14px; color: var(--ink-2);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1000px) {
  .cc-grid { grid-template-columns: 1fr; }
  .cc-hero-kpis { grid-template-columns: 1fr; }
  .cc-kpis-grid { grid-template-columns: repeat(2, 1fr); }
  .cc-benefits { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cc-dash-body { padding: 16px; }
  .cc-mini-grid { grid-template-columns: 1fr; }
  .cc-cards { grid-template-columns: 1fr; }
  .cc-kpis-grid { grid-template-columns: 1fr; }
  .cc-dash-title { display: none; }
}
