/* ===== « Qui sommes-nous » : feuilles qui tombent sous « Un jardin, c'est un lieu de vie », feuilles posées sur les tuiles, roseaux qui poussent de chaque côté du texte (un grand bouquet devant, un petit plus pâle derrière le texte) ===== */
#equipe{overflow-x:clip}
#equipe .wrap{position:relative}
.manifeste{position:relative}
.values li:nth-child(-n+2){position:relative}

/* feuilles en train de tomber / posées */
.jd-fall{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:5;overflow:visible}
.jd-fall .jd-leaf,.jd-rest{position:absolute;left:0;top:0;display:block;pointer-events:none;will-change:transform,opacity;transform-origin:50% 50%}
.jd-rest{z-index:2}

/* végétaux : un de chaque côté du texte (masqués quand l'écran est trop étroit pour qu'il y ait de la place).
   Chaque rose, feuille, bouton et la terre sont de petites couches indépendantes animées par transform / opacity (cartes graphiques) : fluide même sur Safari. */
.jd-veg{position:absolute;top:-14px;bottom:calc(-1 * var(--jd-gap,40px));z-index:4;width:max(0px,min(300px,calc((100vw - 38em)/2 - 16px)));pointer-events:none}
.jd-veg-d{left:100%;margin-left:14px}
.jd-veg-g{right:100%;margin-right:14px}
.jd-veg-in{position:relative;width:100%;height:100%}
.jd-veg-g .jd-veg-in{transform:scaleX(-1)}
.jd-pl{position:absolute;left:0;bottom:0;--s:1}
.jd-pl>*{position:absolute}
.jd-veg svg{display:block;width:100%;height:100%;overflow:visible}
.jd-pl>.jd-st{left:0;top:0;width:100%;height:100%}
.jd-veg .st{fill:none;stroke:var(--green);stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1}
.jd-veg .tg{stroke-width:2.2}
.jd-veg .l1{fill:var(--green)}
.jd-veg .l2{fill:#4E9B63}
.jd-veg .l3{fill:#78BD89}
.jd-veg .rib{fill:none;stroke:rgba(255,255,255,.34);stroke-width:.7;stroke-linecap:round}
.jd-bw{position:absolute}
.jd-veg .jd-bl{transform:scale(0);will-change:transform}
.jd-veg .l2{fill:#4E9B63}
.jd-veg .l3{fill:#78BD89}
.jd-veg .jd-rl{opacity:0;transform:scale(.05) rotate(-24deg);transform-origin:50% 50%;will-change:transform,opacity}
.jd-veg .jd-soil{opacity:0;transform:scale(.3,0);transform-origin:50% 81%;will-change:transform,opacity}
.jd-veg .jd-cr{opacity:0;will-change:transform,opacity}
.jd-veg.grow .st{animation:jdDraw var(--t,1s) cubic-bezier(.45,.05,.25,1) var(--d,0s) forwards}
.jd-veg.grow .jd-bl{animation:jdUnfurl 1.1s cubic-bezier(.25,.8,.3,1) var(--d,0s) forwards}
.jd-veg.grow .jd-rl{animation:jdBloom 1.5s cubic-bezier(.2,.85,.3,1.05) var(--d,0s) forwards}
.jd-veg.grow .jd-soil{animation:jdSoil .95s cubic-bezier(.2,.8,.3,1) var(--d,0s) forwards}
.jd-veg.grow .jd-cr{animation:jdCrumb 1.15s linear var(--d,0s) forwards}
@keyframes jdDraw{to{stroke-dashoffset:0}}
@keyframes jdUnfurl{to{transform:scale(1)}}
@keyframes jdSoil{0%{opacity:0;transform:scale(.3,0)}55%{opacity:1;transform:scale(1.07,1.14)}100%{opacity:1;transform:scale(1,1)}}
@keyframes jdCrumb{0%{opacity:0;transform:translate(0,calc(-6px * var(--s)));animation-timing-function:cubic-bezier(.2,.8,.4,1)}12%{opacity:1}42%{transform:translate(calc(var(--dx) * .62px * var(--s)),calc(-1px * var(--h) * var(--s)));animation-timing-function:cubic-bezier(.5,0,.9,.55)}100%{opacity:1;transform:translate(calc(var(--dx) * 1px * var(--s)),calc(var(--dy) * 1px * var(--s)))}}
@keyframes jdBloom{0%{opacity:0;transform:scale(.05) rotate(-24deg)}25%{opacity:1}100%{opacity:1;transform:scale(1) rotate(0)}}
/* état final (pousse terminée, appareil trop lent ou mouvement réduit) : plus d'animation, les couches sont libérées */
.jd-veg.fin .st{stroke-dashoffset:0;animation:none!important}
.jd-veg.fin .jd-bl{transform:none;animation:none!important;will-change:auto}
.jd-veg.fin .jd-rl{opacity:1;transform:none;animation:none!important;will-change:auto}
.jd-veg.fin .jd-soil{opacity:1;transform:none;animation:none!important;will-change:auto}
.jd-veg.fin .jd-cr{opacity:1;transform:translate(calc(var(--dx) * 1px * var(--s)),calc(var(--dy) * 1px * var(--s)));animation:none!important;will-change:auto}
/* plan arrière : plus petit, plus pâle, placé au plus près du texte et derrière lui ; son pied disparaît derrière le bord de la tuile */
.manifeste>:not(.jd-veg){position:relative;z-index:1}
.jd-veg-bk{z-index:0;bottom:calc(-1 * var(--jd-gap,40px) - 22px);width:max(0px,min(160px,calc(((100vw - 38em)/2 - 16px) * .52)))}
.jd-veg-d.jd-veg-bk{margin-left:-8px}
.jd-veg-g.jd-veg-bk{margin-right:-8px}
.jd-veg-bk .st{stroke:#6E9A7E;stroke-opacity:.55}
.jd-veg-bk .cl{fill:#80AB8E;fill-opacity:.5}
.jd-veg-bk .rib{stroke-opacity:.2}
.jd-veg-bk .jd-rl svg{opacity:.5}
@media (max-width:1000px){.jd-veg-bk{display:none}}
@media (max-width:700px){.jd-veg{display:none}}
@media (prefers-reduced-motion:reduce){
  .jd-veg .st{stroke-dashoffset:0;animation:none!important}
  .jd-veg .jd-bl{transform:none;animation:none!important;will-change:auto}
  .jd-veg .jd-rl{opacity:1;transform:none;animation:none!important;will-change:auto}
  .jd-veg .jd-soil{opacity:1;transform:none;animation:none!important;will-change:auto}
  .jd-veg .jd-cr{opacity:1;transform:translate(calc(var(--dx) * 1px * var(--s)),calc(var(--dy) * 1px * var(--s)));animation:none!important;will-change:auto}
  .jd-fall{display:none}
}
@media print{.jd-veg,.jd-fall,.jd-rest{display:none!important}}
/* Tuiles « Proximité » et « Soin » : pas d'apparition animée, elles restent en place (les roseaux y sont ancrés) */
#equipe .values li:nth-child(-n+2).reveal,#equipe .values li:nth-child(-n+2).reveal.pre{opacity:1!important;transform:none!important;transition:none!important}

/* mode simple (très vieux navigateurs) : roseaux dans leur état final, sans feuilles qui tombent */
html.legacy .jd-veg .st{stroke-dashoffset:0;animation:none!important}
html.legacy .jd-veg .jd-bl{transform:none;animation:none!important;will-change:auto}
html.legacy .jd-veg .jd-rl{opacity:1;transform:none;animation:none!important;will-change:auto}
html.legacy .jd-veg .jd-soil{opacity:1;transform:none;animation:none!important;will-change:auto}
html.legacy .jd-veg .jd-cr{opacity:1;transform:translate(calc(var(--dx) * 1px * var(--s)),calc(var(--dy) * 1px * var(--s)));animation:none!important;will-change:auto}
html.legacy .jd-fall{display:none}
