/* ================================================================
 * ProVSup Design System — pv-configurateur.css
 * Page de configuration — stepper à 3 étapes
 * ================================================================ */

/* ── Container ────────────────────────────────────────────────── */

.pv-cfg-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  padding: 40px 24px 60px;
}

.pv-cfg-steps {
  position: relative;
  width: 100%;
  max-width: 640px;
}

/* Ligne de connexion — derrière les bulles, gradient qui s'efface */
.pv-cfg-steps::before {
  content: '';
  position: absolute;
  left: 21px;  /* centre de la bulle 44px − moitié de la ligne 2px */
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-soft) 15%, transparent 88%);
  z-index: 0;
}

/* ── Rangée étape ─────────────────────────────────────────────── */

.pv-cfg-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.pv-cfg-step--last {
  margin-bottom: 0;
}

/* ── Numéro / bulle ───────────────────────────────────────────── */

.pv-cfg-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 5px var(--accent-soft), var(--shadow-sm);
}

/* ── Carte ────────────────────────────────────────────────────── */

.pv-cfg-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.pv-cfg-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px var(--accent-ring);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

/* Carte multi (étape 3 — avec sous-liens internes) */
.pv-cfg-card--multi {
  flex-direction: column;
  align-items: stretch;
  cursor: default;
}

.pv-cfg-card--multi:hover {
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}

.pv-cfg-card-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ── Icône de carte ───────────────────────────────────────────── */

.pv-cfg-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: none;
}

/* ── Contenu texte ────────────────────────────────────────────── */

.pv-cfg-card-body {
  flex: 1;
}

.pv-cfg-step-lbl {
  display: block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 2px;
}

.pv-cfg-card-title {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 2px 0 6px;
  line-height: 1.2;
}

.pv-cfg-card-desc {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

/* ── Chevron (cartes cliquables) ──────────────────────────────── */

.pv-cfg-chevron {
  font-size: 15px;
  color: var(--muted);
  flex: none;
  transition: transform 0.15s, color 0.15s;
}

.pv-cfg-card:hover .pv-cfg-chevron {
  color: var(--accent);
  transform: translateX(4px);
}

/* ── Sous-liens (étape 3) ─────────────────────────────────────── */

.pv-cfg-sublinks {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pv-cfg-sublink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: background 0.14s, border-color 0.14s, color 0.14s, transform 0.10s;
}

.pv-cfg-sublink:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}

.pv-cfg-sublink .fa-chevron-right {
  font-size: 11px;
  margin-left: 2px;
  transition: transform 0.14s;
}

.pv-cfg-sublink:hover .fa-chevron-right {
  transform: translateX(3px);
}
