/* Planche animée – jardin (complète planche-toiture.css)
   Étapes : st0 jardin qui déborde · st1 tonte · st2 débroussaillage des ronces · st3 taille de haie · st4 élagage · st5 déchets évacués */
.gj .pl-title text{fill:#2f7a2e}
.gj .gj-sac-t{font:800 7.5px var(--corps,'Instrument Sans'),sans-serif;letter-spacing:.08em;fill:#d9efc4}

/* nuages qui dérivent doucement */
.gj .gj-nuage{animation:gjNuage 16s ease-in-out infinite alternate}
.gj .gj-nuage.n2{animation-duration:21s}.gj .gj-nuage.n3{animation-duration:18s;animation-direction:alternate-reverse}
@keyframes gjNuage{from{transform:translateX(-10px)}to{transform:translateX(18px)}}

/* outils : visibles seulement pendant leur étape */
.gj .gj-outil{opacity:0;pointer-events:none}

/* 1 · tonte : herbe haute rasée de gauche à droite, puis bandes de tonte */
.gj .gj-tf{transform-box:fill-box;transform-origin:50% 100%;transition:transform .45s ease,opacity .45s ease}
.gj:not(.st0) .gj-tf{transform:scaleY(.22);opacity:.55}
.gj.st1 .gj-tf{transition-delay:var(--d)}
.gj .gj-bandes{opacity:0;transition:opacity 1.2s ease}
.gj:not(.st0) .gj-bandes{opacity:1}
.gj.st1 .gj-bandes{transition-delay:2.6s}
.gj.st1 .gj-tondeuse{opacity:1;animation:gjTonte 3.2s .2s cubic-bezier(.45,.05,.55,.95) both}
@keyframes gjTonte{from{transform:translateX(-70px)}to{transform:translateX(780px)}}

/* 2 · débroussaillage : la débroussailleuse balaie le roncier et le coupe à ras */
.gj .gj-rc{transform-box:fill-box;transform-origin:50% 100%;transition:transform .35s ease,opacity .35s ease}
.gj.st2 .gj-rc,.gj.st3 .gj-rc,.gj.st4 .gj-rc,.gj.st5 .gj-rc{transform:scaleY(.1);opacity:.5}
.gj.st2 .gj-rc{transition-delay:calc(var(--d) + .5s)}
.gj.st2 .gj-debrou{opacity:1;animation:gjDebrou 3.6s .3s linear both}
@keyframes gjDebrou{0%{transform:translate(290px,262px) rotate(0)}10%{transform:translate(326px,266px) rotate(-6deg)}20%{transform:translate(340px,270px) rotate(5deg)}30%{transform:translate(364px,266px) rotate(-6deg)}40%{transform:translate(378px,270px) rotate(5deg)}50%{transform:translate(402px,266px) rotate(-6deg)}60%{transform:translate(416px,270px) rotate(5deg)}70%{transform:translate(440px,266px) rotate(-6deg)}80%{transform:translate(454px,270px) rotate(5deg)}90%{transform:translate(468px,266px) rotate(-3deg);opacity:1}100%{transform:translate(500px,258px) rotate(0);opacity:0}}
.gj .gj-fil{animation:gjFil .18s linear infinite alternate}
@keyframes gjFil{from{opacity:.4}to{opacity:1}}
.gj .gj-projections{opacity:0}
.gj.st2 .gj-projections{animation:gjProj .3s linear infinite}
@keyframes gjProj{0%{opacity:1;transform:translate(0,0)}100%{opacity:0;transform:translate(10px,-8px)}}
.gj .gj-tas3{transition-delay:0s}
.gj.st2 .gj-tas3{opacity:1;transition-delay:3.4s}
.gj.st3 .gj-tas3,.gj.st4 .gj-tas3{opacity:1}

/* 3 · taille de la haie */
.gj .gj-haie-brute{transition:opacity 2.2s ease}
.gj .gj-haie-nette{opacity:0;transition:opacity 1.6s ease}
.gj.st3 .gj-haie-brute{transition-delay:.6s}
.gj.st3 .gj-haie-nette{transition-delay:.9s}
.gj.st3 .gj-haie-brute,.gj.st4 .gj-haie-brute,.gj.st5 .gj-haie-brute{opacity:0}
.gj.st3 .gj-haie-nette,.gj.st4 .gj-haie-nette,.gj.st5 .gj-haie-nette{opacity:1}
.gj.st3 .gj-taille-haie{opacity:1;animation:gjTaille 3s .3s ease-in-out both}
@keyframes gjTaille{0%{transform:translate(-20px,194px)}45%{transform:translate(110px,188px)}70%{transform:translate(140px,200px)}100%{transform:translate(200px,200px);opacity:0}}
.gj .gj-chute{opacity:0;transform-box:fill-box;transform-origin:50% 50%}
.gj.st3 .gj-chute{animation:gjChute 1.4s var(--k) ease-in both}
@keyframes gjChute{0%{opacity:0;transform:translate(0,0)}15%{opacity:1}100%{opacity:0;transform:translate(var(--dx),108px) rotate(160deg)}}
.gj.st3 .gj-tas1{opacity:1;transition-delay:2.2s}
.gj.st4 .gj-tas1{opacity:1}

/* 4 · élagage à la tronçonneuse */
.gj .gj-br{transform-box:view-box;transition:transform 1.3s cubic-bezier(.55,0,.8,.4),opacity 1.3s ease}
.gj .gj-br1{transform-origin:560px 196px}
.gj .gj-br3{transform-origin:562px 244px}
.gj .gj-br2{transform-origin:578px 214px}
.gj.st4 .gj-br1{transition-delay:1s}
.gj.st4 .gj-br3{transition-delay:2s}
.gj.st4 .gj-br2{transition-delay:3s}
.gj.st4 .gj-br1,.gj.st5 .gj-br1{transform:translate(-30px,150px) rotate(-28deg);opacity:0}
.gj.st4 .gj-br3,.gj.st5 .gj-br3{transform:translate(-10px,60px) rotate(-20deg);opacity:0}
.gj.st4 .gj-br2,.gj.st5 .gj-br2{transform:translate(30px,120px) rotate(30deg);opacity:0}
.gj.st4 .gj-scie{opacity:1;animation:gjScie 3.6s .2s ease-in-out both}
@keyframes gjScie{0%{transform:translate(400px,170px) scale(1,1);opacity:0}8%{transform:translate(438px,184px) scale(1,1);opacity:1}24%{transform:translate(446px,190px) scale(1,1)}34%{transform:translate(446px,250px) scale(1,1)}52%{transform:translate(452px,254px) scale(1,1)}62%{transform:translate(690px,214px) scale(-1,1)}82%{transform:translate(684px,216px) scale(-1,1);opacity:1}100%{transform:translate(706px,200px) scale(-1,1);opacity:0}}
.gj .gj-sciure{opacity:0}
.gj.st4 .gj-sciure{animation:gjSciure .9s var(--k) ease-out both}
@keyframes gjSciure{0%{opacity:0;transform:translate(0,0)}20%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy))}}
.gj.st4 .gj-tas2{opacity:1;transition-delay:3.4s}

/* 5 · déchets verts évacués */
.gj .gj-tas{opacity:0;transition:opacity 1s ease,transform 1.2s ease}
.gj .gj-sac{opacity:0;transform-box:fill-box;transform-origin:50% 100%;transform:scaleY(.4);transition:opacity .8s ease,transform 1.2s cubic-bezier(.2,.8,.2,1)}
.gj.st5 .gj-sac{opacity:1;transform:none;transition-delay:.3s}
.gj.st5 .gj-tas1{transform:translate(160px,-6px) scale(.3);opacity:0;transition-delay:1s}
.gj.st5 .gj-tas3{transform:translate(-104px,-34px) scale(.3);opacity:0;transition-delay:1.4s}
.gj.st5 .gj-tas2{transform:translate(-280px,-10px) scale(.3);opacity:0;transition-delay:1.8s}
.gj .gj-ok{opacity:0;transform-box:fill-box;transform-origin:50% 50%;transform:scale(.4);transition:opacity .6s ease,transform .8s cubic-bezier(.2,1.4,.4,1)}
.gj.st5 .gj-ok{opacity:1;transform:none;transition-delay:2.8s}

@media (prefers-reduced-motion:reduce){.gj .gj-outil,.gj .gj-chute,.gj .gj-sciure{display:none}.gj .gj-nuage{animation:none}}
