/**
 * Composant Cards — Panneaux, cartes et grilles.
 *
 * Styles pour les panneaux (.panel-card), grilles de layout,
 * cartes statistiques, barres de progression, et stepper.
 *
 * @component cards
 */

/* ─── Grille de panneaux ─── */
.panel-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 1024px) {
  .panel-grid { grid-template-columns: 1fr; }
}

/* ─── Carte/panneau ─── */
.panel-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.panel-body {
  padding: 24px;
}

/* ─── Carte statistique ─── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  text-align: center;
  min-width: 120px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Grille de stats (4 colonnes) ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ─── Barre de progression ─── */
.progress-bar-bg {
  background: var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* ─── Stepper (étapes workflow) ─── */
.workflow-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.stepper-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.stepper-step.completed .stepper-dot {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.stepper-step.active .stepper-dot {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.stepper-line {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  margin: 0 -4px;
  margin-bottom: 24px;
}

.stepper-line.completed {
  background: var(--success);
}

.stepper-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stepper-step.completed .stepper-label,
.stepper-step.active .stepper-label {
  color: var(--text-main);
}
