/* =========================================================
   Vendre mon appareil (/vendre) : simulateur de rachat
   ========================================================= */
.v-hero { background: linear-gradient(to left, #2f6aa8 0%, #6d99cf 30%, #b8cde8 62%, #dbe5f2 100%); padding: 56px 0 120px; }
.v-hero-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.v-hero h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; line-height: 1.04; }
.v-hero h1 em { font-style: normal; font-weight: 600; color: #6f7680; }
.v-how { list-style: none; counter-reset: h; background: #fff; border-radius: 16px; padding: 8px 22px; box-shadow: 0 24px 50px -24px rgba(20,50,90,.45); }
.v-how li { counter-increment: h; display: flex; align-items: center; gap: 14px; padding: 14px 0; font-size: 16px; color: var(--muted); }
.v-how li + li { border-top: 1px solid var(--line); }
.v-how li::before { content: counter(h); width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--ink); color: #fff; font-family: var(--head); font-weight: 800; font-size: 14px; }
.v-how b { color: var(--ink); }

.v-sim-sec { margin-top: -80px; padding-bottom: 80px; }
.v-sim { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px -40px rgba(17,18,20,.35); overflow: hidden; }
.v-steps { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--line); counter-reset: s; }
.v-steps li { counter-increment: s; padding: 16px 12px; font-size: 14px; font-weight: 600; color: #a3abb7; display: flex; align-items: center; gap: 8px; border-bottom: 3px solid transparent; }
.v-steps li::before { content: counter(s); width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid currentColor; font-size: 12px; }
.v-steps li.on { color: var(--ink); border-bottom-color: var(--blue); }
.v-steps li.done { color: var(--blue-d); }
.v-steps li.done::before { content: "✓"; background: var(--blue); border-color: var(--blue); color: #fff; }

.v-body { padding: 32px 36px 40px; min-height: 360px; }
.v-body h2 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.v-help { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }
.v-help a { color: var(--ink); text-decoration: underline; }
.v-loading, .v-down { color: var(--muted); padding: 24px 0; }
.v-body .back { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.v-body .back:hover { color: var(--ink); }

.v-fams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.v-fam { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 12px 20px; border: 1.5px solid var(--line); border-radius: 16px; font-weight: 700; font-size: 17px; transition: border-color .15s, background .15s; }
.v-fam svg { width: 96px; height: 80px; stroke-width: 1.1; color: #8a97a8; }
.v-fam:hover { border-color: var(--ink); background: var(--paper); }

.v-search { width: 100%; max-width: 520px; height: 46px; padding: 0 14px; border: 1px solid #d3dae4; border-radius: 12px; font: inherit; font-size: 16px; margin-bottom: 22px; }
.v-search:focus { outline: none; border-color: var(--ink); }
.v-models { max-height: 460px; overflow-y: auto; padding-right: 6px; }
.v-group + .v-group { margin-top: 20px; }
.v-group h3 { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.v-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.v-chips button { padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 15px; transition: border-color .15s, background .15s; }
.v-chips button:hover:not([disabled]) { border-color: var(--ink); }
.v-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.v-chips button[disabled] { opacity: .35; cursor: not-allowed; }
.v-dim { margin-bottom: 22px; }
.v-dim p { font-weight: 700; font-size: 15px; margin-bottom: 10px; }

.v-conds { display: grid; gap: 10px; max-width: 720px; }
.v-cond { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 14px; text-align: left; transition: border-color .15s, background .15s; }
.v-cond:hover { border-color: var(--ink); }
.v-cond[aria-pressed="true"] { border-color: var(--ink); background: var(--paper); }
.v-cond b { display: block; font-size: 16.5px; }
.v-cond small { color: var(--muted); font-size: 14.5px; }
.v-cond em { font-style: normal; font-weight: 700; white-space: nowrap; color: var(--blue-d); }

.v-q { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); max-width: 760px; }
.v-q p { font-size: 16px; }
.v-yn { display: flex; gap: 6px; flex: none; }
.v-yn button { min-width: 64px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 600; }
.v-yn button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.v-block { margin-top: 18px; max-width: 760px; padding: 14px 16px; border-radius: 12px; background: #fdecec; color: #9b1c1c; font-size: 15px; }
#v-questions-next, #v-config-next { margin-top: 24px; }
#v-questions-next[disabled], #v-config-next[disabled] { opacity: .4; pointer-events: none; }

.v-step[data-step="6"]:not([hidden]) { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }
.v-step[data-step="6"] .back { grid-column: 1 / -1; justify-self: start; margin-bottom: 0; }
.v-result { background: #0f2440; color: #fff; border-radius: 18px; padding: 28px; }
.v-result-label { color: #9fb0c6; font-size: 14px; font-weight: 600; }
.v-result-price { font-family: var(--head); font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 6px 0 12px; }
.v-result-recap { color: #c9d4e2; font-size: 15px; }
.v-result-lines { list-style: none; margin-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.v-result-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14.5px; color: #c9d4e2; border-bottom: 1px solid rgba(255,255,255,.08); }
.v-result-note { color: #8fa3bd; font-size: 13.5px; margin-top: 16px; }
.v-form h3 { font-size: 18px; font-weight: 800; margin-bottom: 14px; }

.v-faq { background: var(--paper); border-top: 1px solid var(--line); padding: 72px 0; }
.v-faq-in { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; }
.v-faq h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.v-faq dt { font-weight: 700; font-size: 17px; padding-top: 16px; }
.v-faq dd { color: var(--muted); padding: 4px 0 16px; border-bottom: 1px solid var(--line); }

@media (max-width: 1000px) {
  .v-hero-in, .v-faq-in { grid-template-columns: 1fr; gap: 28px; }
  .v-steps { grid-template-columns: repeat(6, auto); overflow-x: auto; }
  .v-steps li { white-space: nowrap; }
  .v-step[data-step="6"]:not([hidden]) { grid-template-columns: 1fr; }
  .v-fams { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .v-hero { padding: 36px 0 100px; }
  .v-body { padding: 22px 18px 28px; }
  .v-steps li { font-size: 0; padding: 12px 10px; gap: 0; }
  .v-steps li::before { font-size: 12px; }
  .v-steps li.on { font-size: 13.5px; gap: 8px; }
  .v-q { flex-direction: column; align-items: flex-start; gap: 10px; }
  .v-cond { flex-direction: column; align-items: flex-start; gap: 6px; }
  .v-result-price { font-size: 42px; }
}

/* Encadré des 3 étapes : titre au-dessus, précision en dessous */
.v-how li { align-items: center; padding: 16px 0; }
.v-how li span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v-how li b { font-size: 16.5px; color: var(--ink); }
.v-how li small { font-size: 14.5px; color: var(--muted); line-height: 1.4; }
