/* Maison de titres : « où sont vos avoirs ». Une animation d'environ cinq secondes montre
   l'écrin du client déposé à son nom, le mandat de gestion de MG Finance SA et le flux vers
   un tiers bloqué. Sans JavaScript, en mouvement réduit et en lecture calme : état final fixe.
   Couleurs par classes uniquement (inc/noir.php réécrit les attributs fill/stroke). */
.fxa{margin:8px 0 0;padding:32px 32px 28px;border:1px solid rgba(132,166,196,.18);border-radius:14px;background:radial-gradient(90% 80% at 50% 45%,#0f1d3f 0,#0b1633 55%,#070f26 100%);font-family:'DM Sans',sans-serif}
.fxa *{box-sizing:border-box}
.fxa-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}
.fxa-modes{display:flex;flex-wrap:wrap;gap:8px}
.fxa-btn{font:500 13px/1 'DM Sans',sans-serif;letter-spacing:.02em;color:#c9d3de;background:transparent;border:1px solid rgba(201,211,222,.32);border-radius:999px;padding:9px 16px;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.fxa-btn:hover{border-color:rgba(232,237,243,.6);color:#f3f5f9}
.fxa-btn[aria-pressed="true"]{background:rgba(232,237,243,.12);border-color:#e8edf3;color:#f3f5f9}
.fxa-btn:focus-visible{outline:2px solid #e8edf3;outline-offset:2px}
.fxa-replay{display:inline-flex;align-items:center;gap:8px}
.fxa-replay svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.fxa [hidden]{display:none!important}

.fxa-svg{display:block;width:100%;height:auto;overflow:visible}
.fxa-svg--tall{display:none;max-width:380px;margin:0 auto}

/* légendes : texte réel, synchronisé avec l'animation */
.fxa-caps{list-style:none;margin:22px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:rgba(132,166,196,.14);border:1px solid rgba(132,166,196,.14)}
.fxa-caps li{background:#0b1633;padding:16px 18px 18px;font-size:14px;line-height:1.6;color:#c6cfdd}
.fxa-caps b{display:block;font-weight:500;font-size:12px;letter-spacing:.04em;color:#84a6c4;margin-bottom:4px}
.fxa[data-mode="bank"] .fxa-m,.fxa[data-mode="mg"] .fxa-b{display:none}

/* éléments du schéma */
.fxa-box{fill:#132650;stroke:#c9d3de;stroke-opacity:.45;stroke-width:1}
.fxa-client .fxa-box{fill:#1b2d55;stroke-opacity:.7}
.fxa-vault{fill:#13234a;stroke:#e8edf3;stroke-opacity:.6;stroke-width:1.2}
.fxa-vault-in{fill:#0b1633;stroke:#b8cde0;stroke-opacity:.35;stroke-width:1}
.fxa-tiers .fxa-box{fill:rgba(132,166,196,.05);stroke:#84a6c4;stroke-opacity:.5;stroke-dasharray:4 4}
.fxa-name{font-family:'Cormorant Garamond',serif;font-weight:500;fill:#f3f5f9}
.fxa-role{font-family:'DM Sans',sans-serif;fill:#9fb6cf}
.fxa-lab{font-family:'DM Sans',sans-serif;fill:#c9d3de}
.fxa-lab--strong{fill:#e8edf3;font-weight:500}
.fxa-dim{fill:#84a6c4}
.fxa-trail{fill:none;stroke:#c9d3de;stroke-opacity:.45;stroke-width:1.2;stroke-dasharray:1;stroke-dashoffset:0}
.fxa-wire{fill:none;stroke:#e8edf3;stroke-opacity:.75;stroke-width:1.4;stroke-dasharray:1;stroke-dashoffset:0}
.fxa-try{fill:none;stroke:#84a6c4;stroke-width:1.4;stroke-dasharray:5 5;opacity:.4;transform-box:fill-box;transform-origin:0 0}
.fxa-stopbar{stroke:#e8edf3;stroke-width:2.6;stroke-linecap:round}
.fxa-stopc{fill:#0b1633;stroke:#e8edf3;stroke-width:1.4}
.fxa-stopx{fill:none;stroke:#e8edf3;stroke-width:1.6;stroke-linecap:round}
.fxa-stop{transform-box:fill-box;transform-origin:50% 50%}
.fxa-pill{fill:rgba(232,237,243,.12);stroke:#e8edf3;stroke-opacity:.7;stroke-width:1}
.fxa-ring{fill:none;stroke:#b8cde0;stroke-opacity:.6;stroke-width:1.2;stroke-dasharray:1;stroke-dashoffset:0}
.fxa-coin-o{fill:url(#fxaCoinG);stroke:#f3f5f9;stroke-width:1}
/* le schéma vertical a ses propres dégradés : ceux d'un SVG masqué ne s'affichent pas */
.fxa-svg--tall .fxa-coin-o{fill:url(#fxaCoinG2)}.fxa-svg--tall .fxa-glow{fill:url(#fxaGlowG2)}
.fxa-coin-i{fill:none;stroke:#0b1633;stroke-opacity:.45;stroke-width:1}
.fxa-c0{stop-color:#ffffff}.fxa-c1{stop-color:#d9e0e8}.fxa-c2{stop-color:#8e9cb0}
.fxa-glow{fill:url(#fxaGlowG)}
.fxa-g0{stop-color:#e8edf3;stop-opacity:.35}.fxa-g1{stop-color:#e8edf3;stop-opacity:0}
.fxa-name,.fxa-role,.fxa-lab{paint-order:stroke;stroke:#0b1633;stroke-width:5px;stroke-linejoin:round;stroke-opacity:.9}
/* position finale de l'écrin (état sans animation) */
.fxa-svg--wide .fxa-coin{transform:translate(560px,246px)}
.fxa-svg--tall .fxa-coin{transform:translate(180px,226px)}
.fxa-anim-o,.fxa-tag,.fxa-stop{transform-box:fill-box;transform-origin:50% 50%}

/* Animation : posée par fx-avoirs.js (.is-run), en pause tant que le schéma n'est pas à l'écran */
.fxa.is-run:not(.is-play) .fxa-svg *,.fxa.is-run:not(.is-play) .fxa-caps li{animation-play-state:paused!important}
.fxa.is-run .fxa-svg--wide .fxa-coin{animation:fxaCoinW 1.5s linear .2s both}
.fxa.is-run .fxa-svg--tall .fxa-coin{animation:fxaCoinT 1.5s linear .2s both}
.fxa.is-run .fxa-trail{animation:fxaDraw 1.5s cubic-bezier(.45,0,.3,1) .2s both}
.fxa.is-run .fxa-glow{animation:fxaGlow 1.2s ease-out 1.6s both}
.fxa.is-run .fxa-tag{animation:fxaPop .5s ease-out 1.8s both}
.fxa.is-run .fxa-mg{animation:fxaFade .5s ease-out 2.3s both}
.fxa.is-run .fxa-wire{animation:fxaDraw .7s ease-in-out 2.6s both}
.fxa.is-run .fxa-wlab{animation:fxaFade .5s ease-out 3s both}
.fxa.is-run .fxa-tiers{animation:fxaFade .4s ease-out 3.3s both}
.fxa.is-run .fxa-try{animation:fxaTry 1.4s ease-out 3.6s both}
.fxa.is-run .fxa-stop{animation:fxaStop .5s cubic-bezier(.3,1.4,.5,1) 4.1s both}
.fxa.is-run .fxa-tlab{animation:fxaFade .5s ease-out 4.3s both}
.fxa.is-run .fxa-ring{animation:fxaDraw .9s ease-in-out 2.4s both}
.fxa.is-run .fxa-rlab{animation:fxaFade .5s ease-out 3.1s both}
.fxa.is-run .fxa-caps li{animation:fxaCap .5s ease-out both}
.fxa.is-run .fxa-caps li:nth-child(1){animation-delay:1.8s}
.fxa.is-run .fxa-caps li:nth-child(2){animation-delay:2.6s}
.fxa.is-run .fxa-caps.fxa-b li:nth-child(3){animation-delay:4.1s}
.fxa.is-run .fxa-caps.fxa-m li:nth-child(3){animation-delay:3.2s}

/* trajectoire en arc (courbe de Bézier échantillonnée), lente au départ et à l'arrivée */
@keyframes fxaCoinW{0%{transform:translate(145px,250px);opacity:0}8%{opacity:1}30%{transform:translate(249px,202px)}50%{transform:translate(352px,186px)}70%{transform:translate(456px,204px)}100%{transform:translate(560px,246px)}}
@keyframes fxaCoinT{0%{transform:translate(180px,46px);opacity:0}8%{opacity:1}30%{transform:translate(202px,93px)}50%{transform:translate(210px,139px)}70%{transform:translate(202px,186px)}100%{transform:translate(180px,226px)}}
@keyframes fxaDraw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes fxaFade{from{opacity:0}to{opacity:1}}
@keyframes fxaPop{from{opacity:0;transform:translateY(6px) scale(.92)}to{opacity:1;transform:none}}
@keyframes fxaGlow{0%{opacity:0}35%{opacity:1}100%{opacity:.35}}
@keyframes fxaTry{0%{transform:scale(0);opacity:.9}45%{transform:scale(1);opacity:.9}65%{opacity:.9}100%{transform:scale(1);opacity:.4}}
@keyframes fxaStop{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
@keyframes fxaCap{from{opacity:.38}to{opacity:1}}
.fxa-glow{opacity:.35}

@media (max-width:900px){ .fxa{padding:24px 20px} }
/* Téléphone : schéma vertical, légendes empilées */
@media (max-width:767px){
.fxa{padding:20px 16px 18px}
.fxa-svg--wide{display:none}
.fxa-svg--tall{display:block}
.fxa-caps{grid-template-columns:1fr}
.fxa-bar{justify-content:flex-start}
.fxa-btn{font-size:12.5px;padding:8px 13px}
}
@media (prefers-reduced-motion:reduce){ .fxa .fxa-svg *,.fxa .fxa-caps li{animation:none!important} }
html.fx-calm .fxa .fxa-svg *,html.fx-calm .fxa .fxa-caps li{animation:none!important}
