/* COMMENT ÇA MARCHE : 3 étapes + carte animée du paiement bloqué (séquestre). */

.steps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; margin-top: 48px; }
.steps-grid > * { min-width: 0; }
@media (max-width: 980px) { .steps-grid { grid-template-columns: minmax(0, 1fr); } }

/* Étapes numérotées, reliées par un trait ; les pastilles se colorent une à une (.in) */
.steps { display: flex; flex-direction: column; position: relative; }
.step { display: flex; gap: 20px; padding: 22px 0; position: relative; }
.step + .step::before { content: ""; position: absolute; left: 21px; top: -22px; height: 44px; width: 2px; background: var(--line-2); }
.step-n {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2);
  display: grid; place-items: center; flex-shrink: 0; position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 800; color: var(--blue);
  transition: background .5s, border-color .5s, color .5s;
}
.steps.in .step-n { background: var(--blue); border-color: var(--blue); color: #fff; }
.steps.in .step:nth-child(2) .step-n { transition-delay: .4s; }
.steps.in .step:nth-child(3) .step-n { transition-delay: .8s; }
.step h3 { margin: 0 0 6px; font-size: 20px; }
.step p { margin: 0; color: var(--text-2); line-height: 1.5; font-size: 15.5px; }

/* Carte séquestre : la pièce voyage de « Vous » à « Artisan », le statut passe au vert */
.escrow { background: var(--ink); border-radius: 24px; padding: 32px; color: #fff; position: relative; overflow: hidden; min-height: 340px; display: flex; flex-direction: column; gap: 18px; }
.escrow-bg { position: absolute; inset: 0; background: radial-gradient(60% 60% at 90% 10%, rgba(29,95,209,.5), transparent 70%); }
.esc-top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.esc-top small { color: var(--muted-light); font-weight: 600; font-size: 13px; }
.price { font-family: var(--font-display); font-size: 64px; font-weight: 800; line-height: 1; position: relative; }
.price small { font-size: 16px; color: var(--muted-light); font-family: var(--font-body); font-weight: 600; display: block; margin-top: 6px; }

.status { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; position: relative; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transition: background .6s, border-color .6s; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); transition: background .6s; }
.status .t1, .status .t2 { transition: opacity .4s; }
.status .t2 { position: absolute; left: 34px; opacity: 0; }
.escrow.in .status { background: rgba(16,185,129,.18); border-color: rgba(16,185,129,.5); transition-delay: 1.6s; }
.escrow.in .status .dot { background: var(--green); transition-delay: 1.6s; }
.escrow.in .status .t1 { opacity: 0; transition-delay: 1.6s; }
.escrow.in .status .t2 { opacity: 1; transition-delay: 1.6s; }

.flow { display: flex; align-items: center; gap: 12px; margin-top: auto; position: relative; }
.node { flex: 1; min-width: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px; text-align: center; font-size: 13px; font-weight: 700; transition: border-color .5s, background .5s; }
.node small { display: block; color: var(--muted-light); font-weight: 600; font-size: 11.5px; margin-top: 3px; }
.escrow.in .node.a { border-color: var(--amber); transition-delay: .3s; }
.escrow.in .node.b { border-color: var(--green); background: rgba(16,185,129,.12); transition-delay: 1.6s; }
.arrow { color: var(--muted); }
.coin { width: 34px; height: 34px; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 12px; position: absolute; left: 0; top: 50%; transform: translate(0, -50%); opacity: 0; }
.escrow.in .coin { animation: travel 2.4s cubic-bezier(.4,0,.2,1) .2s forwards; }
@keyframes travel {
  0% { opacity: 0; left: 0; }
  10% { opacity: 1; }
  45% { left: calc(50% - 17px); }
  60% { left: calc(50% - 17px); }
  100% { left: calc(100% - 34px); opacity: 1; }
}
