/* ====================================================================
   Vue Commercial — progress card, paliers, breakdown
   ==================================================================== */

.progress-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.progress-bar {
  height: 8px;
  background: var(--paper-2);
  border-radius: 4px;
  overflow: hidden;
  margin: 16px 0 8px;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--role-commercial) 0%,
    #4a8a6f 100%
  );
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-marker {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 16px;
  background: var(--ink);
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-3);
  font-family: "JetBrains Mono", monospace;
}
.breakdown {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.breakdown > div {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}
.breakdown > div:last-child {
  border-right: none;
}

/* -------------- Paliers de prime -------------- */
.bonus-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.tier-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 20px;
  position: relative;
  transition: all 0.2s;
}
.tier-card .tier-status {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 8px;
}
.tier-card .tier-amount {
  font-family: "Fraunces", serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.tier-card .tier-threshold {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.tier-card .tier-label {
  font-size: 11px;
  color: var(--ink-3);
  font-style: italic;
}
.tier-card.unlocked {
  border-color: var(--role-commercial);
  background: var(--green-soft);
}
.tier-card.unlocked .tier-status {
  color: var(--role-commercial);
}
.tier-card.unlocked .tier-status::before {
  content: "✓ ";
}
.tier-card.unlocked .tier-amount {
  color: var(--role-commercial);
}
.tier-card.locked {
  opacity: 0.55;
  background: var(--paper-2);
}
.tier-card.locked .tier-status {
  color: var(--ink-4);
}
.tier-card.locked .tier-status::before {
  content: "🔒 ";
}
.tier-card.locked .tier-amount {
  color: var(--ink-3);
}

/* ====================================================================
   Responsive — vue commercial
   ==================================================================== */

@media (max-width: 1024px) {
  .breakdown {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .breakdown > div {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .breakdown > div:last-child {
    border-bottom: none;
  }
  .bonus-tiers {
    grid-template-columns: repeat(2, 1fr);
  }
  .progress-card {
    padding: 22px 20px;
  }
}

@media (max-width: 640px) {
  .breakdown {
    grid-template-columns: 1fr;
  }
  .breakdown > div {
    padding: 14px 18px;
  }
  .bonus-tiers {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }
  .tier-card {
    padding: 14px 16px;
  }
  .tier-card .tier-amount {
    font-size: 22px;
  }
  .progress-card {
    padding: 20px 16px;
    margin-bottom: 18px;
  }
}
