/* Fiche produit · « Comment ça marche » en BD de 4 cases (photos de mise en scène dans les cases). */
.how-bd{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;max-width:1200px;margin:30px auto 10px;padding:14px 40px 0}
.how-bd-panel{position:relative;background:#fffaf0;border:4px solid #321b10;border-radius:20px;padding:14px 14px 18px;box-shadow:6px 7px 0 #321b10}
.how-bd-panel:nth-child(1){rotate:-1.4deg}
.how-bd-panel:nth-child(2){rotate:1deg;translate:0 10px}
.how-bd-panel:nth-child(3){rotate:-.7deg}
.how-bd-panel:nth-child(4){rotate:1.3deg;translate:0 6px}
.how-bd-scene{position:relative;aspect-ratio:4/3;border:3px solid #321b10;border-radius:13px;overflow:hidden;background:#f7e7c6;margin-bottom:12px}
.how-bd-scene>img{width:100%;height:100%;object-fit:cover;display:block;transition:scale .6s cubic-bezier(.22,1,.36,1)}
@media(hover:hover){.how-bd-panel:hover .how-bd-scene>img,.how-bd-panel:hover .how-art-scene{scale:1.05}}
.how-bd-num{position:absolute;top:-20px;left:-16px;z-index:2;width:50px;height:50px;border-radius:50%;background:#f37520;color:#fff3d9;border:3px solid #321b10;display:grid;place-items:center;font:900 26px/1 'Fraunces',Georgia,serif;box-shadow:2px 3px 0 #321b10;rotate:-8deg}
.how-bd-bubble{position:absolute;top:24px;right:20px;z-index:2;background:#fff;border:3px solid #321b10;border-radius:16px;padding:2px 12px;font:900 20px/1.3 'Fraunces',Georgia,serif;color:#321b10;rotate:6deg;box-shadow:2px 3px 0 #321b10;white-space:nowrap}
.how-bd-bubble::after{content:'';position:absolute;left:14px;bottom:-11px;width:14px;height:14px;background:#fff;border:3px solid #321b10;border-top:0;border-left:0;rotate:45deg;border-radius:0 0 4px 0}
.how-bd-panel:nth-child(even) .how-bd-bubble{rotate:-5deg}
.how-bd-panel h3{font:900 24px/1.1 'Fraunces',Georgia,serif;letter-spacing:-.03em;color:#321b10;margin:0 0 5px}
.how-bd-panel p{font:500 17px/1.4 'Barlow Condensed',Arial,sans-serif;color:#68503e;margin:0}

/* Entrée au scroll */
.how-bd.is-armed .how-bd-panel{opacity:0;translate:0 40px;scale:.94;transition:opacity .5s ease,translate .7s cubic-bezier(.3,1.5,.5,1),scale .7s cubic-bezier(.3,1.5,.5,1)}
.how-bd.is-armed .how-bd-bubble{opacity:0;scale:.3;transition:opacity .25s ease,scale .45s cubic-bezier(.3,1.8,.5,1)}
.how-bd.is-in .how-bd-panel{opacity:1;scale:1;translate:0 0}
.how-bd.is-in .how-bd-panel:nth-child(2){translate:0 10px}.how-bd.is-in .how-bd-panel:nth-child(4){translate:0 6px}
.how-bd.is-in .how-bd-bubble{opacity:1;scale:1}
.how-bd.is-in .how-bd-panel:nth-child(2){transition-delay:.15s}.how-bd.is-in .how-bd-panel:nth-child(3){transition-delay:.3s}.how-bd.is-in .how-bd-panel:nth-child(4){transition-delay:.45s}
.how-bd.is-in .how-bd-panel:nth-child(1) .how-bd-bubble{transition-delay:.55s}.how-bd.is-in .how-bd-panel:nth-child(2) .how-bd-bubble{transition-delay:.7s}
.how-bd.is-in .how-bd-panel:nth-child(3) .how-bd-bubble{transition-delay:.85s}.how-bd.is-in .how-bd-panel:nth-child(4) .how-bd-bubble{transition-delay:1s}

@media(max-width:1000px){.how-bd{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 26px;padding:14px 28px 0}}
@media(max-width:560px){
  .how-bd{grid-template-columns:1fr;gap:34px;padding:14px 22px 0}
  .how-bd-panel:nth-child(n),.how-bd.is-in .how-bd-panel:nth-child(n){translate:0 0}
  .how-bd-panel h3{font-size:23px}
}
@media(prefers-reduced-motion:reduce){.how-bd.is-armed .how-bd-panel,.how-bd.is-armed .how-bd-bubble{opacity:1;scale:1;transition:none}}
