/* Franck's Ajouter flow inside the prototype phone. CSS only, one 16 s loop, paused by the control below the phone. */
.flow-figure .iphone-display{background:var(--deep)}
.flow{position:absolute;inset:0;container-type:size;overflow:hidden;isolation:isolate}
.flow > *,.flow-route > *{position:absolute;opacity:0}
.flow img{display:block;max-width:none}
.flow .flow-route{inset:0;opacity:1;z-index:1}
.flow .system-status{left:0;width:100%;z-index:4;pointer-events:none;background-image:url('assets/flow/home-before.webp');background-size:100% auto}
.flow .system-status{top:0;height:calc(60 / 956 * 100%)}
.flow .l-home-before{opacity:1}
.flow .layer{inset:0;width:100%;height:100%;object-fit:cover;object-position:top}
.flow .press{border-radius:999px;background:rgb(6 45 37 / .16)}
.flow .key{border-radius:calc(12 / 440 * 100cqw);background:#ddece4;mix-blend-mode:multiply}  /* lands on #d3e4d9, Sol's pressed key */
.flow .ring{box-sizing:border-box;border:calc(3 / 440 * 100cqw) solid var(--apricot);border-left-color:transparent;border-radius:50%}
.flow .confirmation-hero{background:var(--deep)}
.flow .confirmation-hero img{position:absolute;display:block;max-width:none}
.flow-control{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;font-weight:500;cursor:pointer;text-decoration:underline;text-underline-offset:.24em;text-decoration-thickness:.075em}
.flow-control svg{width:20px;height:20px}
.flow-figure figcaption{text-align:center}
.flow-paused{display:none}
.flow-pause:checked ~ .flow-figure .flow-playing{display:none}
.flow-pause:checked ~ .flow-figure .flow-paused{display:inline-flex}
.flow-pause:checked ~ .flow-figure .flow,.flow-pause:checked ~ .flow-figure .flow *{animation-play-state:paused}
.flow-pause:focus-visible ~ .flow-figure .flow-control{outline:3px solid currentColor;outline-offset:6px;border-radius:3px}
.flow .touch-cursor{left:0;top:0;width:calc(38 / 440 * 100cqw);height:calc(38 / 440 * 100cqw);border-radius:50%;background:rgb(128 136 140 / .42);border:1px solid rgb(255 255 255 / .28);box-sizing:border-box;pointer-events:none;z-index:2;animation:f-touch 16s linear 1 both}
@keyframes f-touch{0.000%{opacity:0;transform:translate(calc(128.488 / 440 * 100cqw),calc(297.898 / 956 * 100cqh)) translate(-50%,-50%) scale(1)}5.000%{opacity:0;transform:translate(calc(128.488 / 440 * 100cqw),calc(297.898 / 956 * 100cqh)) translate(-50%,-50%) scale(1)}6.250%{opacity:1;transform:translate(calc(120.488 / 440 * 100cqw),calc(289.898 / 956 * 100cqh)) translate(-50%,-50%) scale(1);animation-timing-function:ease-in-out}8.438%{opacity:1;transform:translate(calc(104.488 / 440 * 100cqw),calc(273.898 / 956 * 100cqh)) translate(-50%,-50%) scale(1)}9.062%{opacity:1;transform:translate(calc(104.488 / 440 * 100cqw),calc(273.898 / 956 * 100cqh)) translate(-50%,-50%) scale(0.78);animation-timing-function:ease-out}9.625%{opacity:1;transform:translate(calc(104.488 / 440 * 100cqw),calc(273.898 / 956 * 100cqh)) translate(-50%,-50%) scale(1);animation-timing-function:ease-in-out}10.375%{opacity:0;transform:translate(calc(104.488 / 440 * 100cqw),calc(273.898 / 956 * 100cqh)) translate(-50%,-50%) scale(1)}12.187%{opacity:0;transform:translate(calc(110.316 / 440 * 100cqw),calc(722.008 / 956 * 100cqh)) translate(-50%,-50%) scale(1)}13.438%{opacity:1;transform:translate(calc(102.316 / 440 * 100cqw),calc(714.008 / 956 * 100cqh)) translate(-50%,-50%) scale(1);animation-timing-function:ease-in-out}15.625%{opacity:1;transform:translate(calc(86.3164 / 440 * 100cqw),calc(698.008 / 956 * 100cqh)) translate(-50%,-50%) scale(1)}16.250%{opacity:1;transform:translate(calc(86.3164 / 440 * 100cqw),calc(698.008 / 956 * 100cqh)) translate(-50%,-50%) scale(0.78);animation-timing-function:ease-out}16.812%{opacity:1;transform:translate(calc(86.3164 / 440 * 100cqw),calc(698.008 / 956 * 100cqh)) translate(-50%,-50%) scale(1);animation-timing-function:ease-in-out}18.750%{opacity:1;transform:translate(calc(219.996 / 440 * 100cqw),calc(759.008 / 956 * 100cqh)) translate(-50%,-50%) scale(1)}19.375%{opacity:1;transform:translate(calc(219.996 / 440 * 100cqw),calc(759.008 / 956 * 100cqh)) translate(-50%,-50%) scale(0.78);animation-timing-function:ease-out}19.938%{opacity:1;transform:translate(calc(219.996 / 440 * 100cqw),calc(759.008 / 956 * 100cqh)) translate(-50%,-50%) scale(1);animation-timing-function:ease-in-out}21.875%{opacity:1;transform:translate(calc(219.996 / 440 * 100cqw),calc(881.008 / 956 * 100cqh)) translate(-50%,-50%) scale(1)}22.500%{opacity:1;transform:translate(calc(219.996 / 440 * 100cqw),calc(881.008 / 956 * 100cqh)) translate(-50%,-50%) scale(0.78);animation-timing-function:ease-out}23.062%{opacity:1;transform:translate(calc(219.996 / 440 * 100cqw),calc(881.008 / 956 * 100cqh)) translate(-50%,-50%) scale(1);animation-timing-function:ease-in-out}34.688%{opacity:1;transform:translate(calc(220 / 440 * 100cqw),calc(617.508 / 956 * 100cqh)) translate(-50%,-50%) scale(1)}35.312%{opacity:1;transform:translate(calc(220 / 440 * 100cqw),calc(617.508 / 956 * 100cqh)) translate(-50%,-50%) scale(0.78);animation-timing-function:ease-out}35.875%{opacity:1;transform:translate(calc(220 / 440 * 100cqw),calc(617.508 / 956 * 100cqh)) translate(-50%,-50%) scale(1);animation-timing-function:ease-in-out}36.625%{opacity:0;transform:translate(calc(220 / 440 * 100cqw),calc(617.508 / 956 * 100cqh)) translate(-50%,-50%) scale(1)}68.750%{opacity:0;transform:translate(calc(244 / 440 * 100cqw),calc(857 / 956 * 100cqh)) translate(-50%,-50%) scale(1)}70.000%{opacity:1;transform:translate(calc(236 / 440 * 100cqw),calc(849 / 956 * 100cqh)) translate(-50%,-50%) scale(1);animation-timing-function:ease-in-out}72.188%{opacity:1;transform:translate(calc(220 / 440 * 100cqw),calc(833 / 956 * 100cqh)) translate(-50%,-50%) scale(1)}72.812%{opacity:1;transform:translate(calc(220 / 440 * 100cqw),calc(833 / 956 * 100cqh)) translate(-50%,-50%) scale(0.78);animation-timing-function:ease-out}73.375%{opacity:1;transform:translate(calc(220 / 440 * 100cqw),calc(833 / 956 * 100cqh)) translate(-50%,-50%) scale(1);animation-timing-function:ease-in-out}74.125%{opacity:0;transform:translate(calc(220 / 440 * 100cqw),calc(833 / 956 * 100cqh)) translate(-50%,-50%) scale(1)}100.000%{opacity:0;transform:translate(calc(220 / 440 * 100cqw),calc(833 / 956 * 100cqh)) translate(-50%,-50%) scale(1)}}
.flow .confirmation-hero{left:0.000%;top:15.167%;width:100.000%;height:16.109%}
.flow .hero-title{inset:0;width:100%;height:100%}
.flow .hero-symbol{left:40.909%;top:3.896%;width:18.636%;height:auto}
.flow .ring{left:43.636%;top:32.741%;width:12.727%;height:5.858%}
.flow .prep-title{left:0.000%;top:41.109%;width:100.000%;height:5.649%}
.flow .p-home{left:5.449%;top:26.035%;width:36.824%;height:5.335%}
.flow .p-pay{left:5.449%;top:61.664%;width:89.329%;height:5.962%}
.flow .p-account{left:5.449%;top:84.205%;width:89.329%;height:5.962%}
.flow .k0{left:35.831%;top:88.965%;width:28.336%;height:6.381%}
.flow .k1{left:5.449%;top:69.823%;width:28.336%;height:6.381%}
.flow .k5{left:35.831%;top:76.204%;width:28.336%;height:6.381%}
@keyframes f-home-before{0.000%{opacity:1}13.125%{opacity:1}13.188%{opacity:0}96.875%{opacity:0}96.938%{opacity:1}100.000%{opacity:1}}
@keyframes f-tap-home{0.000%{opacity:0}8.750%{opacity:0}9.062%{opacity:1}9.750%{opacity:1}10.375%{opacity:0}100.000%{opacity:0}}
@keyframes f-amount-empty{0.000%{opacity:0}11.188%{opacity:0}11.250%{opacity:1}38.438%{opacity:1}38.500%{opacity:0}100.000%{opacity:0}}
@keyframes f-amount-1{0.000%{opacity:0}16.750%{opacity:0}16.812%{opacity:1}38.438%{opacity:1}38.500%{opacity:0}100.000%{opacity:0}}
@keyframes f-amount-15{0.000%{opacity:0}19.875%{opacity:0}19.938%{opacity:1}38.438%{opacity:1}38.500%{opacity:0}100.000%{opacity:0}}
@keyframes f-amount-150{0.000%{opacity:0}23.000%{opacity:0}23.062%{opacity:1}38.438%{opacity:1}38.500%{opacity:0}100.000%{opacity:0}}
@keyframes f-amount-ready{0.000%{opacity:0}26.500%{opacity:0}26.562%{opacity:1}38.438%{opacity:1}38.500%{opacity:0}100.000%{opacity:0}}
@keyframes f-key-1{0.000%{opacity:0}15.687%{opacity:0}15.937%{opacity:1}16.812%{opacity:1}17.562%{opacity:0}100.000%{opacity:0}}
@keyframes f-key-5{0.000%{opacity:0}18.812%{opacity:0}19.062%{opacity:1}19.938%{opacity:1}20.688%{opacity:0}100.000%{opacity:0}}
@keyframes f-key-0{0.000%{opacity:0}21.938%{opacity:0}22.188%{opacity:1}23.062%{opacity:1}23.812%{opacity:0}100.000%{opacity:0}}
@keyframes f-tap-pay{0.000%{opacity:0}35.000%{opacity:0}35.312%{opacity:1}36.000%{opacity:1}36.625%{opacity:0}100.000%{opacity:0}}
@keyframes f-preparing{0.000%{opacity:0}36.875%{opacity:0}38.438%{opacity:1}58.750%{opacity:1}58.812%{opacity:0}100.000%{opacity:0}}
@keyframes f-prep-title{0.000%{opacity:0}36.875%{opacity:0}38.438%{opacity:1}50.938%{opacity:1}51.000%{opacity:0}100.000%{opacity:0}}
@keyframes f-ring{0.000%{opacity:0}36.875%{opacity:0}38.438%{opacity:1}50.938%{opacity:1}51.000%{opacity:0}100.000%{opacity:0}}
@keyframes f-ring-spin{to{rotate:360deg}}
@keyframes f-hero{0.000%{opacity:0}50.875%{opacity:0}50.938%{opacity:1}76.875%{opacity:1}76.938%{opacity:0}100.000%{opacity:0}}
@keyframes f-hero-move{0.000%{translate:0 calc(150 / 956 * 100cqh)}54.688%{translate:0 calc(150 / 956 * 100cqh);animation-timing-function:cubic-bezier(.16,1,.3,1)}58.750%{translate:0 0}100.000%{translate:0 0}}
@keyframes f-symbol{0.000%{opacity:.4;scale:.85}50.938%{opacity:.4;scale:.85;animation-timing-function:ease-out}52.813%{opacity:1;scale:1}100.000%{opacity:1;scale:1}}
@keyframes f-receipt{0.000%{opacity:0}54.688%{opacity:0;animation-timing-function:ease-out}58.750%{opacity:1}76.875%{opacity:1}76.938%{opacity:0}100.000%{opacity:0}}
@keyframes f-tap-account{0.000%{opacity:0}72.500%{opacity:0}72.812%{opacity:1}73.500%{opacity:1}74.125%{opacity:0}100.000%{opacity:0}}
@keyframes f-home-after{0.000%{opacity:0;translate:calc(-110 / 440 * 100cqw) 0}74.938%{opacity:0;translate:calc(-110 / 440 * 100cqw) 0}75.000%{opacity:1;translate:calc(-110 / 440 * 100cqw) 0;animation-timing-function:cubic-bezier(.32,.72,0,1)}76.875%{opacity:1;translate:0 0}100.000%{opacity:1;translate:0 0}}
@keyframes f-route{0.000%{translate:100% 0}11.250%{translate:100% 0;animation-timing-function:cubic-bezier(.32,.72,0,1)}13.125%{translate:0 0}75.000%{translate:0 0;animation-timing-function:cubic-bezier(.32,.72,0,1)}76.875%{translate:100% 0}100.000%{translate:100% 0}}
.flow .flow-route{animation:f-route 16s linear infinite both}
.flow .l-home-before{animation:f-home-before 16s linear infinite both}
.flow .p-home{animation:f-tap-home 16s linear infinite both}
.flow .l-amount-empty{animation:f-amount-empty 16s linear infinite both}
.flow .l-amount-1{animation:f-amount-1 16s linear infinite both}
.flow .l-amount-15{animation:f-amount-15 16s linear infinite both}
.flow .l-amount-150{animation:f-amount-150 16s linear infinite both}
.flow .l-amount-ready{animation:f-amount-ready 16s linear infinite both}
.flow .l-preparing{animation:f-preparing 16s linear infinite both}
.flow .l-receipt{animation:f-receipt 16s linear infinite both}
.flow .l-home-after{animation:f-home-after 16s linear infinite both}
.flow .k1{animation:f-key-1 16s linear infinite both}
.flow .k5{animation:f-key-5 16s linear infinite both}
.flow .k0{animation:f-key-0 16s linear infinite both}
.flow .p-pay{animation:f-tap-pay 16s linear infinite both}
.flow .prep-title{animation:f-prep-title 16s linear infinite both}
.flow .ring{animation:f-ring-spin 1.05s linear infinite,f-ring 16s linear infinite both}
.flow .confirmation-hero{animation:f-hero 16s linear infinite both,f-hero-move 16s linear infinite both}
.flow .hero-symbol{animation:f-symbol 16s linear infinite both}
.flow .p-account{animation:f-tap-account 16s linear infinite both}
@media (prefers-reduced-motion: reduce){
.flow,.flow *{animation:none!important}
.flow .l-home-before{opacity:0}
.flow .l-receipt{opacity:1}
.flow-control,.flow-pause{display:none}
}

/* The phone is the control; no separate visible buttons. */
[data-flow-phone]{cursor:pointer}
[data-flow-phone]:focus-visible{outline:3px solid var(--deep);outline-offset:8px;border-radius:3rem}
[data-flow-phone] .flow *{animation-iteration-count:1}
[data-flow-phone]:not([data-state="playing"]):not([data-state="paused"]) .flow *{animation:none!important;opacity:0}
[data-flow-phone]:not([data-state]) .l-home-after,
[data-flow-phone][data-state="complete"] .l-home-after,
[data-flow-phone][data-state="restarting"] .l-home-after,
[data-flow-phone][data-state="idle"] .l-home-before{opacity:1!important}
[data-flow-phone][data-state="paused"] .flow *{animation-play-state:paused!important}
[data-flow-phone] .ring{animation-iteration-count:infinite,1}
@keyframes f-home-before{0%{opacity:1;translate:0 0}11.25%{opacity:1;translate:0 0;animation-timing-function:cubic-bezier(.32,.72,0,1)}13.125%{opacity:1;translate:-25% 0}13.188%,100%{opacity:0;translate:-25% 0}}
.flow .l-replay-home{z-index:3}
[data-flow-phone][data-state="restarting"] .flow .l-replay-home{animation:f-replay .32s ease-in-out both!important}
@keyframes f-replay{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){
[data-flow-phone]{cursor:default}
[data-flow-phone] .flow *{animation:none!important;opacity:0!important}
[data-flow-phone] .flow .l-home-after{opacity:1!important}
}

/* Live amount masks align to the measured 440 × 956 home capture. */
.flow .live-balance{position:absolute;box-sizing:border-box;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:500;letter-spacing:-.02em;animation:f-home-after 16s linear 1 both}
.flow .balance-total{left:5.449%;top:17.992%;width:89.102%;height:5.534%;background:#0b2821;color:white;font-size:calc(46 / 440 * 100cqw);line-height:1.15}
.flow .balance-euro{left:8.176%;top:43.033%;width:32.733%;height:3.034%;background:white;color:var(--deep);font-size:calc(22 / 440 * 100cqw);line-height:calc(29 / 440 * 100cqw)}
.flow .balance-euro small{font-size:calc(14 / 440 * 100cqw)}
[data-flow-phone][data-state="complete"] .live-balance,
[data-flow-phone][data-state="restarting"] .live-balance{opacity:1!important}
[data-flow-phone][data-state="complete"] .live-balance *,
[data-flow-phone][data-state="restarting"] .live-balance *{opacity:1!important}
@media(prefers-reduced-motion:reduce){[data-flow-phone] .flow .live-balance{display:none!important}}
[data-flow-phone] .flow .system-status{opacity:1!important}
