/* ---------- Vendre : méthode en 4 étapes (colonne collante + ligne de temps qui se remplit) ---------- */
.vm-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.vm-side { position: sticky; top: 110px; }
.vm-side .eyebrow { color: var(--accent); }
.vm-title { max-width: 13ch; margin-top: 12px; }
.vm-nav { list-style: none; margin: clamp(32px, 4vw, 52px) 0 36px; padding: 0; display: grid; gap: 4px; }
.vm-nav a { display: flex; align-items: center; gap: 14px; padding: 9px 0; color: var(--muted); font-size: 15.5px; transition: color .35s var(--ease); }
.vm-nav a span { font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .04em; width: 22px; opacity: .7; }
.vm-nav a::before { content: ""; width: 14px; height: 1.5px; border-radius: 2px; background: currentColor; opacity: .35; transition: width .5s var(--ease), opacity .35s; order: -1; }
.vm-nav a:hover { color: var(--ink); }
.vm-nav a.is-active { color: var(--accent); }
.vm-nav a.is-active::before { width: 34px; opacity: 1; }
.vm-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.vm-link { font-size: 15px; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line); transition: text-decoration-color .3s; }
.vm-link:hover { text-decoration-color: var(--accent); }

.vm-steps { position: relative; padding-left: clamp(36px, 4vw, 56px); }
.vm-line { position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--line); }
.vm-line-fill { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--vm-p, 0) * 100%); border-radius: inherit; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 40%, transparent), var(--accent)); }
.vm-line-dot { position: absolute; left: 50%; top: calc(var(--vm-p, 0) * 100%); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 16%, transparent), 0 6px 14px -4px rgba(20, 26, 56, .45); }

.vm-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 3vw, 44px); align-items: center; padding: clamp(28px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); }
.vm-step:first-of-type { padding-top: 0; }
.vm-step:last-of-type { border-bottom: 0; padding-bottom: 0; }
.vm-num { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--muted); background: var(--surface); border: 1px solid var(--line); transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s; }
.vm-step.is-active .vm-num { background: var(--accent); color: #fff; border-color: var(--accent); }
.vm-text h3 { margin: 18px 0 14px; font-size: clamp(1.45rem, 2.1vw, 1.95rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.12; color: var(--ink); }
.vm-text p { margin: 0; color: var(--ink-2); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; max-width: 44ch; }
.vm-text { opacity: .55; transition: opacity .6s var(--ease); }
.vm-step.is-active .vm-text { opacity: 1; }
.vm-media { margin: 0; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); clip-path: inset(6% 6% 6% 6% round 24px); transition: clip-path 1.2s var(--ease); }
.vm-step.is-in .vm-media { clip-path: inset(0 0 0 0 round 24px); }
.vm-media img { width: 100%; height: 115%; object-fit: cover; transform: translateY(var(--vm-y, -6%)) scale(1.12); transition: transform 1.4s var(--ease); will-change: transform; }
.vm-step.is-in .vm-media img { transform: translateY(var(--vm-y, -6%)) scale(1); }

@media (max-width: 960px) {
  .vm-grid { grid-template-columns: 1fr; }
  .vm-side { position: static; }
  .vm-nav { display: none; }
  .vm-actions { margin-top: 24px; }
  .vm-steps { padding-left: 34px; }
  .vm-line { left: 4px; }
  .vm-step { grid-template-columns: 1fr; gap: 20px; }
  .vm-step:first-of-type { padding-top: 8px; }
  .vm-media { aspect-ratio: 4 / 3; }
  .vm-text { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .vm-media, .vm-media img, .vm-text, .vm-nav a, .vm-nav a::before { transition: none; }
  .vm-media { clip-path: none; }
  .vm-media img { transform: none !important; height: 100%; }
}

/* ---------- Version collée au centre de l'écran (2.12.2026) ----------
   Le bloc se fige au milieu de la page, presque en 16/9. Les étapes défilent à droite,
   elles sortent en haut et entrent en bas dans un fondu. */
.vm.is-pin { --vm-stage: min(calc(100vh - 170px), calc(min(1320px, 100vw - 64px) * .6)); padding-top: clamp(24px, 4vw, 56px); }
.vm.is-pin .vm-pin { height: calc(var(--vm-stage) + 230vh); }
.vm.is-pin .vm-grid { position: sticky; top: calc(50vh - var(--vm-stage) / 2 + 20px); height: var(--vm-stage); align-items: stretch; }
.vm.is-pin .vm-side { position: static; align-self: center; }
.vm.is-pin .vm-steps { height: 100%; overflow: hidden; padding-left: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 76%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 76%, transparent 100%); }
.vm.is-pin .vm-track { position: relative; padding-left: clamp(36px, 4vw, 56px); will-change: transform; }
.vm.is-pin .vm-step, .vm.is-pin .vm-step:first-of-type, .vm.is-pin .vm-step:last-of-type { padding: clamp(22px, 3vw, 40px) 0; border-bottom: 0; }
.vm.is-pin .vm-media { aspect-ratio: 4 / 3; box-shadow: none; clip-path: none; }
.vm.is-pin .vm-media img { height: 100%; transform: none; }
.vm.is-pin .vm-text { opacity: .35; }
.vm.is-pin .vm-step.is-active .vm-text { opacity: 1; }
.vm.is-pin .vm-step .vm-media { opacity: .5; transition: opacity .6s var(--ease); }
.vm.is-pin .vm-step.is-active .vm-media { opacity: 1; }
.vm.is-pin .vm-line { display: none; } .vm.is-pin .vm-track { padding-left: 0; }

/* Réglages du 2.12.2026 : fondu haut et bas plus court, ligne de timeline revenue au centre */
.vm.is-pin .vm-steps {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 13%, #000 87%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 13%, #000 87%, transparent 100%); }
.vm.is-pin .vm-text { opacity: .5; }
.vm.is-pin .vm-step .vm-media { opacity: .7; }
.vm.is-pin .vm-step.is-active .vm-text, .vm.is-pin .vm-step.is-active .vm-media { opacity: 1; }
.vm.is-pin .vm-track { padding-left: clamp(40px, 4vw, 60px); }
.vm.is-pin .vm-line { display: block; left: 7px; }

/* Timeline retirée à la demande (2.12.2026) */
.vm.is-pin .vm-line { display: none; }
.vm.is-pin .vm-track { padding-left: 0; }
