/**
 * COMPOSANTS RÉUTILISABLES - Barre de Progression
 * Design moderne avec animations
 */

.progress {
  width: 100%;
}

.progress__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

.progress__label-current {
  color: var(--color-primary);
  font-weight: var(--font-bold);
}

.progress__label-target {
  color: var(--color-text-muted);
}

.progress__track {
  width: 100%;
  height: 10px;
  background: var(--slate-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress__bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Animation de brillance */
.progress__bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.progress__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
}

.progress__percentage {
  color: var(--color-text-secondary);
  font-weight: var(--font-medium);
}

/* .progress__supporters retiré : l'affichage des donateurs n'existe plus dans l'UI (nettoyage) */

/* === VARIANTES === */
.progress--sm .progress__track {
  height: 6px;
}

.progress--lg .progress__track {
  height: 14px;
}

.progress--accent .progress__bar {
  background: var(--gradient-accent);
}

/* === STATS COMPLÉMENTAIRES === */
.progress__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.progress__stat {
  text-align: center;
}

.progress__stat-value {
  display: block;
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.progress__stat-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
