/* Kit UI de geoany : les animations.
   GÉNÉRÉ par tools/snippets/construire-kit.mjs depuis Probo Brain (projets/agenda/web).
   Ne pas éditer ici : corriger la source, puis relancer le script. */
/*
 * Motion and brand pieces (see fx.js and Brand.jsx). Rectangles only: no
 * bounce, no round bubble. Durations follow the "Net" tempo of the design
 * direction; easing is --ease / --ease-in from styles.css.
 */

/* --- Layers created by fx.js ------------------------------------------- */
.fx-calque{position:fixed;z-index:80;pointer-events:none;overflow:visible}
.fx-page{overflow:hidden;z-index:5}
.fx-piece{position:absolute;left:0;top:0;display:block;will-change:transform}
.fx-trait{position:absolute;left:0;top:0;width:100%;height:2px;background:var(--acc);transform-origin:left;display:block}
.fx-onde{position:absolute;display:block;border:1.5px solid var(--acc);border-radius:2px}
.fx-bonus{position:absolute;left:0;top:0;font:600 11.5px/1 var(--fu);letter-spacing:.04em;color:var(--onacc);background:var(--opt);padding:4px 7px;border-radius:2px;white-space:nowrap}
.fx-paquet{position:absolute;left:0;top:0;width:10px;height:6px;background:var(--acc);display:block;transform-origin:left center}
.fx-fantome{transform-origin:top;background:var(--bg)}

/* --- The progress of the day: one 5 px segment per line to check -------- */
.prog{display:flex;gap:3px;width:100%;max-width:360px;margin-top:var(--s2)}
.prog i{flex:1;min-width:2px;height:5px;background:linear-gradient(var(--acc),var(--acc)) no-repeat left/0% 100%,var(--seg);transition:background-size .32s var(--ease)}
.prog i.on{background-size:100% 100%}
.prog i.bonus{flex:.55;background:linear-gradient(var(--opt),var(--opt)) no-repeat left/0% 100%;outline:1px dashed var(--opt);outline-offset:-1px}
.prog i.bonus.on{background-size:100% 100%;outline-style:solid}
.zh .meta.gagne{color:var(--acc);animation:fx-wipeR .42s var(--ease) both}

/* --- The launch -------------------------------------------------------------- */
.lancement{position:fixed;inset:0;z-index:100;background:var(--bg);display:flex;align-items:center;justify-content:center;gap:16px;color:var(--acc);transition:opacity .3s var(--ease)}
.lancement.sort{opacity:0}
.lancement .lnom{font:700 32px/1 var(--fl);letter-spacing:-.02em;color:var(--txt-strong);display:inline-block;animation:fx-wipeR .42s var(--ease) 1.25s both}
.lancement .elephant path{stroke-dasharray:1 1}
.lancement .b{animation:fx-trace .8s var(--ease) both}
.lancement .t{animation:fx-trace .26s var(--ease) .78s both}
.lancement .e{transform-box:fill-box;transform-origin:100% 55%;animation:fx-traceE .32s var(--ease) .9s both,fx-flap .5s var(--ease) 1.9s both}
.lancement .eye{transform-box:fill-box;transform-origin:center;animation:fx-pop .2s var(--ease) 1.15s both}
@media (max-width:860px){.lancement .lnom{font-size:24px}.lancement .elephant{width:68px;height:68px}}

@keyframes fx-trace{0%{stroke-dashoffset:1;opacity:0}1%{opacity:1}100%{stroke-dashoffset:0;opacity:1}}
@keyframes fx-traceE{0%{stroke-dashoffset:1;opacity:0}1%{opacity:.7}100%{stroke-dashoffset:0;opacity:.7}}
@keyframes fx-pop{from{transform:scale(0)}to{transform:scale(1)}}
@keyframes fx-flap{0%,100%{transform:none}40%{transform:rotate(-10deg)}}
@keyframes fx-wipeR{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 -6px 0 0)}}

/* --- The assistant thinks: three squares beat, the only loop in the app ---- */
.pense{display:inline-flex;gap:4px;align-items:center;height:20px}
.pense i{width:6px;height:6px;background:var(--acc);animation:fx-pense .9s var(--ease) infinite}
.pense i:nth-child(2){animation-delay:.15s}
.pense i:nth-child(3){animation-delay:.3s}
@keyframes fx-pense{0%,100%{transform:scaleY(.4);opacity:.4}40%{transform:scaleY(1.6);opacity:1}}
.caret-carre{display:inline-block;width:7px;height:14px;background:var(--acc);vertical-align:-2px;margin-left:3px;animation:fx-caret .9s steps(2,jump-none) 3 forwards}
@keyframes fx-caret{50%{opacity:0}100%{opacity:0}}

/* --- The settings window: the veil darkens, the window rises into place ---- */
.rg-voile{animation:fx-voile .16s ease both}
.rg-voile > .rg{animation:fx-fenetre .24s var(--ease) both}
@keyframes fx-voile{from{opacity:0}}
@keyframes fx-fenetre{from{opacity:0;transform:translateY(12px)}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0s!important}
  .lancement{display:none}
}
