/* Page « Mes récoltes » : pictos, apparitions au défilement et mouvements doux.
   Chargé seulement par cette page (assets/rec.css + assets/rec.js). Ne touche aucune autre page.
   Mouvement réduit demandé par le navigateur : tout est immobile. */

/* ---------- Bases ---------- */
html:has(.rec){scroll-behavior:smooth}
.rec{--rec-top:68px}
.rec [id]{scroll-margin-top:calc(var(--rec-top) + 84px)}
.rec .rx-i{display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.rec .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.rec .btn .rx-i{width:19px;height:19px;flex:none}
.rec h2.rx-h{display:flex;align-items:center;gap:12px}
.rec h2.rx-h .bx-ico{width:44px;height:44px;margin:0}
.rec h2.rx-h .bx-ico svg{width:23px;height:23px}
.rec-box h2.rx-h .bx-ico{width:40px;height:40px}.rec-box h2.rx-h .bx-ico svg{width:21px;height:21px}
@keyframes rx-up{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes rx-fade{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@keyframes rx-sway{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(7deg)}}
@keyframes rx-spin{to{transform:rotate(360deg)}}

/* ---------- Bandeau : photo qui se pose doucement, textes qui montent, feuilles et pétales qui tombent ---------- */
.rec .rec-hero img{transform-origin:70% 45%;animation:rx-kb 24s ease-out both}
@keyframes rx-kb{from{transform:scale(1.13)}to{transform:scale(1)}}
.rec-hero figcaption>*{animation:rx-up .8s cubic-bezier(.2,.7,.2,1) both}
.rec-hero figcaption>:nth-child(1){animation-delay:.05s}.rec-hero figcaption>:nth-child(2){animation-delay:.15s}.rec-hero figcaption>:nth-child(3){animation-delay:.28s}.rec-hero figcaption>:nth-child(4){animation-delay:.4s}
.rec-leaves{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.rec-leaf{position:absolute;top:0;left:var(--x,70%);width:var(--s,22px);opacity:0;color:#cdddb8;animation:rx-fall var(--d,16s) linear var(--dl,0s) infinite}
.rec-leaf svg{display:block;width:100%;height:auto;fill:currentColor}
@keyframes rx-fall{
0%{opacity:0;transform:translate(0,-34px) rotate(0)}
8%{opacity:.85}
30%{transform:translate(-30px,76px) rotate(70deg)}
55%{transform:translate(12px,158px) rotate(150deg)}
80%{opacity:.85;transform:translate(-32px,240px) rotate(235deg)}
100%{opacity:0;transform:translate(-12px,330px) rotate(300deg)}}

/* ---------- Sommaire : barre qui reste en haut, avec pictos et section en cours ---------- */
.rec .rec-nav{position:sticky;top:calc(var(--rec-top) + 8px);z-index:25;gap:4px;padding:6px;margin:0 0 20px;background:rgba(255,255,255,.93);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:999px;box-shadow:var(--sh);scroll-behavior:smooth}
.rec .rec-nav a{display:inline-flex;align-items:center;gap:7px;padding:8px 15px;background:transparent;box-shadow:none;transition:background .25s,color .25s,box-shadow .25s,transform .25s}
.rec .rec-nav a .rx-i{width:18px;height:18px;flex:none;transition:transform .35s ease}
.rec .rec-nav a:hover{background:var(--sky)}
.rec .rec-nav a:hover .rx-i{transform:scale(1.18) rotate(-8deg)}
.rec .rec-nav a.on{background:var(--sky);box-shadow:inset 0 0 0 1.5px rgba(92,127,79,.42)}
.rec .rec-nav a.hot{background:var(--blue);color:#fff;box-shadow:none}
.rec .rec-nav a.hot:hover{background:var(--navy)}
.rec .rec-nav a.hot.on{box-shadow:0 0 0 3px rgba(92,127,79,.3)}

/* ---------- Tisane sur mesure ---------- */
.rec .rec-feat{position:relative;overflow:hidden}
.rec-feat>*:not(.rx-bloom){position:relative;z-index:1}
.rx-bloom{position:absolute;right:-52px;top:-52px;width:230px;height:230px;color:#fff;opacity:.07;animation:rx-spin 90s linear infinite;pointer-events:none}
.rx-bloom ellipse{fill:currentColor}
.rec .rec-feat img{transition:transform .7s cubic-bezier(.2,.6,.2,1),box-shadow .5s}
.rec .rec-feat:hover img{transform:rotate(-1.6deg) scale(1.03);box-shadow:0 14px 34px rgba(0,0,0,.28)}
.rec .rec-facts li{display:inline-flex;align-items:center;gap:7px}
.rec .rec-facts li .rx-i{width:17px;height:17px;flex:none}

/* ---------- Mes tisanes ---------- */
.rec-cards .card{transition:transform .35s ease,box-shadow .35s ease}
.rec-cards .card:hover{transform:translateY(-6px);box-shadow:var(--sh2)}
.rec-cards .card .ph{position:relative;overflow:hidden}
.rec-cards .card .ph img{transition:transform 1.2s cubic-bezier(.2,.6,.2,1)}
.rec-cards .card:hover .ph img{transform:scale(1.07)}
.rec-mine .ph:after{animation:rx-pulse 2.8s ease-in-out infinite}
@keyframes rx-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
@keyframes rx-glow{0%,100%{box-shadow:0 0 0 2.5px var(--blue),0 0 0 0 rgba(92,127,79,.0),var(--sh)}50%{box-shadow:0 0 0 2.5px var(--blue),0 0 0 9px rgba(92,127,79,.2),var(--sh)}}
.rec-mine .meta span:last-child{display:inline-block;transition:transform .3s ease}
.rec-mine:hover .meta span:last-child{transform:translateX(5px)}
.rec .rec-notes{gap:12px 28px}
.rec .rec-notes p{display:flex;gap:12px;align-items:flex-start;font-size:14.5px}
.rec-notes .bx-ico{width:36px;height:36px;background:#fff}.rec-notes .bx-ico svg{width:19px;height:19px}
.rec-notes p>span:last-child{padding-top:2px}

/* ---------- Sirops et sels ---------- */
.rec-box{transition:transform .35s ease,box-shadow .35s ease}
.rec-box:hover{transform:translateY(-3px);box-shadow:var(--sh2)}
.rec .rx-soon{display:flex;align-items:center;gap:12px;margin:0;padding:11px 14px;background:var(--sky);border-radius:var(--r2);font-size:15px;line-height:1.5}
.rx-soon .bx-ico{width:38px;height:38px;background:#fff}.rx-soon .bx-ico svg{width:20px;height:20px}
.rx-soon.clock .bx-ico svg{animation:rx-sway 3.4s ease-in-out infinite;transform-origin:50% 55%}
.rec-pics figure{position:relative;overflow:hidden;border-radius:12px}
.rec .rec-pics img{border-radius:0;transition:transform 1.2s cubic-bezier(.2,.6,.2,1)}
.rec-pics figure:hover img{transform:scale(1.07)}
.rec-pics figcaption{position:absolute;left:0;right:0;bottom:0;margin:0;padding:22px 9px 7px;font-size:12.5px;font-weight:600;line-height:1.3;color:#fff;background:linear-gradient(transparent,rgba(32,44,26,.68))}

@media(min-width:901px){.rec-duo .rec-pics:not(.one) img{aspect-ratio:1/1}}

/* ---------- Commander : les trois étapes sur la frise aux petits pas ---------- */
.rec .rec-order{display:block;background:none;box-shadow:none;padding:0;border-radius:0}
.rx-ordhead{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:12px 28px;margin:0 0 6px}
.rx-ordhead h2{margin-bottom:4px}
.rx-ordhead p{margin:0;max-width:80ch;font-size:15.5px;line-height:1.5}
.prose .rec ol.rx-steps{margin:0}
.rec .rx-steps .bx-db span a{color:var(--navy);font-weight:700}
.rec .rx-steps .bx-t.bx-w{font-size:16px;color:var(--blue)}

/* ---------- Savoir-faire ---------- */
.rec-more summary{display:flex;align-items:center;gap:10px}
.rec-more summary::-webkit-details-marker{display:none}
.rec-more summary .bx-ico{width:34px;height:34px;background:var(--sky)}.rec-more summary .bx-ico svg{width:18px;height:18px}
.rec-more summary:after{content:"+";margin-left:auto;font-weight:800;color:var(--blue);font-size:22px;line-height:1}
.rec-more[open] summary:after{content:"−"}
.rec-more[open] summary .bx-ico{background:var(--navy);color:#fff}
.rec-more[open]>p{animation:rx-fade .4s ease both}
.rec-gal figure{overflow:hidden;border-radius:var(--r2)}
.rec .rec-gal img{border-radius:0;transition:transform 1.3s cubic-bezier(.2,.6,.2,1)}
.rec-gal figure:hover img{transform:scale(1.06)}

/* ---------- Questions ---------- */
.rec-faq summary{justify-content:flex-start;gap:12px}
.rec-faq summary .q{flex:1}
.rec-faq summary:after{margin-left:auto;transition:transform .3s}
.rec-faq summary .bx-ico{width:38px;height:38px;background:var(--sky);transition:transform .4s ease,background .3s,color .3s}
.rec-faq summary .bx-ico svg{width:20px;height:20px}
.rec-faq details{transition:transform .3s ease,box-shadow .3s ease}
.rec-faq details:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px var(--line),var(--sh)}
.rec-faq details:hover summary .bx-ico{transform:scale(1.1) rotate(-6deg)}
.rec-faq details[open]{box-shadow:inset 0 0 0 1.5px rgba(92,127,79,.45),var(--sh)}
.rec-faq details[open] summary .bx-ico{background:var(--navy);color:#fff}
.rec-faq details[open] summary:after{transform:rotate(180deg)}
.rec-faq details[open]>p{padding-left:50px;animation:rx-fade .4s ease both}

/* ---------- Apparition au défilement (navigateurs qui savent le faire ; ailleurs, tout est déjà visible) ---------- */
@supports (animation-timeline:view()){
.rec-feat,.rec-order,.rec-know>div,.rec-faq details,.rec-head,.rec-notes p,.rec-box{animation:bx-rise linear both;animation-timeline:view();animation-range:entry calc(var(--i,0)*4%) entry calc(55% + var(--i,0)*4%)}
.rec-cards .card{animation:bx-rise linear both;animation-timeline:view();animation-range:entry calc(var(--i,0)*5%) entry calc(60% + var(--i,0)*5%)}
.rec-cards .card.rec-mine{animation:bx-rise linear both,rx-glow 3.2s ease-in-out infinite;animation-timeline:view(),auto;animation-range:entry 0% entry 60%,normal}
.rec-cards .card:nth-child(2){--i:1}.rec-cards .card:nth-child(3){--i:2}.rec-cards .card:nth-child(4){--i:3}.rec-cards .card:nth-child(5){--i:4}.rec-cards .card:nth-child(6){--i:5}
.rec-faq details:nth-child(even){--i:1}
}
@supports not (animation-timeline:view()){
.rec-cards .card.rec-mine{animation:rx-glow 3.2s ease-in-out infinite}
}

/* ---------- Tablette et mobile ---------- */
@media(max-width:900px){
.rec .rec-nav{margin-bottom:16px}
.rec-faq details[open]>p{padding-left:0}
}
@media(max-width:640px){
.rec .rec-nav{padding:5px}
.rec .rec-nav a{padding:8px 13px}
.rec h2.rx-h{gap:10px}.rec h2.rx-h .bx-ico{width:38px;height:38px}.rec h2.rx-h .bx-ico svg{width:20px;height:20px}
.rx-ordhead .btn{width:100%}
}

/* ---------- Mouvement réduit ---------- */
@media(prefers-reduced-motion:reduce){
html:has(.rec){scroll-behavior:auto}
.rec *,.rec *:before,.rec *:after{animation:none!important;transition:none!important}
.rec .rec-nav{scroll-behavior:auto}
.rec-leaves{display:none}
}
@media print{.rec .rec-nav,.rec-leaves{display:none}}
