/* progress.css — Barre de progression des sept carpes */

#koi-progress {
  grid-area: progress;
  z-index: var(--z-progress);
  padding: var(--space-4) var(--space-6) var(--space-3);
  background: rgba(26, 26, 20, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 165, 90, 0.10);
}

/* Barre linéaire discrète au-dessus des carpes */
.progress-track {
  max-width: 900px;
  margin: 0 auto var(--space-3);
  height: 1px;
  background: rgba(201, 165, 90, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-gold);
  border-radius: var(--radius-full);
  transition: width var(--duration-slower) var(--ease-out);
  box-shadow: 0 0 8px rgba(201,165,90,0.4);
}

/* Liste des sept carpes */
.koi-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

/* Chaque carpe */
.koi-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  cursor: default;
  position: relative;
}

/* SVG de la carpe */
.koi-svg-wrap {
  width: 40px;
  height: 40px;
  position: relative;
  transition: transform var(--duration-base) var(--ease-spring);
}

.koi-item.active .koi-svg-wrap {
  transform: scale(1.15);
}

.koi-item.completed .koi-svg-wrap {
  filter: drop-shadow(0 0 6px var(--koi-glow, rgba(201,165,90,0.5)));
}

.koi-svg {
  width: 100%;
  height: 100%;
  transition: all var(--duration-slow) var(--ease-out);
}

/* Carpe non acquise — silhouette fantôme */
.koi-item:not(.completed) .koi-svg {
  opacity: 0.25;
  filter: grayscale(1);
}

/* Carpe active (en cours) */
.koi-item.active:not(.completed) .koi-svg {
  opacity: 0.5;
  filter: grayscale(0.5);
  animation: koi-breathe 3s ease-in-out infinite;
}

/* Carpe acquise */
.koi-item.completed .koi-svg {
  opacity: 1;
  filter: none;
  animation: koi-swim 4s ease-in-out infinite;
}

/* Étiquette */
.koi-label {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--color-washi);
  opacity: 0.4;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity var(--duration-base) var(--ease-out);
  line-height: 1.3;
}

.koi-item.active .koi-label,
.koi-item.completed .koi-label {
  opacity: 0.9;
  color: var(--color-gold-light);
}

/* Numéro de l'étape */
.koi-step-num {
  position: absolute;
  top: -4px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-ink);
  border: 1px solid rgba(201,165,90,0.3);
  font-size: 8px;
  font-weight: 500;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-base);
}

.koi-item.active .koi-step-num,
.koi-item.completed .koi-step-num {
  opacity: 1;
}

.koi-item.completed .koi-step-num {
  background: var(--color-gold);
  color: var(--color-ink);
  border-color: var(--color-gold);
}

/* Animations */
@keyframes koi-breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.04) rotate(2deg); }
}

@keyframes koi-swim {
  0%, 100% { transform: translateX(0) rotate(-3deg); }
  25% { transform: translateX(2px) rotate(0deg); }
  50% { transform: translateX(3px) rotate(3deg); }
  75% { transform: translateX(1px) rotate(0deg); }
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  #koi-progress {
    padding: var(--space-3) var(--space-3) var(--space-2);
  }

  .koi-svg-wrap {
    width: 32px;
    height: 32px;
  }

  .koi-label {
    font-size: 7px;
    letter-spacing: 0.04em;
  }

  .koi-step-num {
    width: 12px;
    height: 12px;
    font-size: 7px;
  }
}

@media (max-width: 400px) {
  .koi-label {
    display: none;
  }
}
