/* Bloc 4 : une seule carte par étape, pile mobile, grille sur ordinateur. */
.how .wrap{max-width:1200px}.how .sub{max-width:58ch}
.how-cards{list-style:none;display:grid;grid-template-columns:minmax(0,1fr);gap:24px;padding:0;margin:0 auto 24px;max-width:520px;text-align:left;counter-reset:how}
.how-card{display:grid;grid-template-rows:auto auto auto auto;gap:14px;padding:24px 20px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius-lg);min-width:0}
.step-number{display:grid;place-items:center;width:44px;height:44px;background:#0c1a3d;color:#fff;border-radius:50%;font:600 17px/1 var(--font-heading)}
.how-card h3{margin:0;font-size:clamp(20px,2vw,24px);line-height:1.25;text-wrap:balance;letter-spacing:0;word-spacing:0}
.how-card>p{margin:0;color:var(--mute);font-size:17px;line-height:1.6;text-wrap:pretty;max-width:40ch}
.step-preview{container-type:inline-size;width:100%;max-width:340px;aspect-ratio:404/858;justify-self:center;position:relative;overflow:hidden;margin-top:10px;border:3px solid #0c1a3d;border-radius:var(--radius-phone);background:#f3f0ff;box-shadow:none}
.step-preview iframe{position:absolute;top:0;left:0;width:390px;height:844px;border:0;display:block;max-width:none;transform:scale(var(--preview-scale,.7));transform-origin:0 0;pointer-events:none}
.how .phone-gallery-note{margin:0 auto 28px;font-size:14px;line-height:1.6;color:var(--mute);max-width:56ch}
.how .btns{margin-top:8px}
@media(min-width:1024px){.how-cards{max-width:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}.how-card{grid-template-rows:auto auto 1fr auto;padding:24px 16px}.how-card h3{font-size:22px}.how-card>p{font-size:17px}.step-preview{align-self:end}.how-card:nth-child(2) .step-preview{transform:translateY(4px)}.how-card:nth-child(3) .step-preview{transform:translateY(8px)}
@supports(grid-template-rows:subgrid){.how-card{grid-row:span 4;grid-template-rows:subgrid;row-gap:16px}}
}
.how-card.reveal-ready{opacity:1;transform:none}.how-card.reveal-ready.revealed{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.how-card.reveal-ready{opacity:1;transform:none;transition:none}.how-card:nth-child(n) .step-preview{transform:none}}
@media(max-width:1023px){.how-cards{grid-auto-rows:1fr}.how-card{grid-template-rows:auto auto 1fr auto}}

.how-card.is-entering{animation:howEnter 350ms ease-out}@keyframes howEnter{from{transform:translateY(8px)}to{transform:none}}
@media print{.how-card,.how-card.reveal-ready{opacity:1;transform:none;animation:none}}
@media(prefers-reduced-motion:reduce){.how-card.is-entering{animation:none}}
