/* Page Fonctionnalités : visuels animés (CSS pur + assets/features-page.js pour les compteurs et la révélation).
   Chargée en plus de assets/site-marketing.css. Sans JavaScript, tout reste visible (aucune opacité forcée). */
.fx { --fx-ease: cubic-bezier(.2,.8,.2,1); }
.fx section { position: relative; }
.fx-js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease var(--d, 0ms), transform .7s var(--fx-ease) var(--d, 0ms); }
.fx-js [data-reveal].in { opacity: 1; transform: none; }

/* ── Héros ── */
.fx-hero { padding: 150px 6vw 3rem; overflow: hidden; }
.fx-hero::before { content: ''; position: absolute; inset: -10% -10% auto; height: 520px; pointer-events: none; background: radial-gradient(ellipse 520px 260px at 20% 30%, rgba(8,191,47,.2), transparent 70%), radial-gradient(ellipse 480px 240px at 85% 20%, rgba(57,135,229,.16), transparent 70%); animation: fxGlow 10s ease-in-out infinite alternate; }
@keyframes fxGlow { to { transform: translateY(18px) scale(1.06); opacity: .85; } }
.fx-cta-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }
.fx-btn-ghost { display: inline-flex; align-items: center; padding: .75rem 1.4rem; border: 1px solid var(--border); border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 700; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; transition: border-color .2s, transform .2s; }
.fx-btn-ghost:hover { border-color: var(--green); transform: translateY(-2px); }

/* aperçu du dashboard */
.fx-dash { position: relative; max-width: 980px; margin: 3rem auto 0; border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(180deg, rgba(17,17,17,.95), rgba(10,10,10,.95)); box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(8,191,47,.08); padding: 1.1rem; }
.fx-dash-bar { display: flex; align-items: center; gap: .45rem; padding: 0 .3rem .9rem; }
.fx-dash-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.15); } .fx-dash-bar i:first-child { background: #e66767; } .fx-dash-bar i:nth-child(2) { background: #e0a82e; } .fx-dash-bar i:nth-child(3) { background: var(--green); }
.fx-dash-bar span { margin-left: auto; font-size: .72rem; color: var(--grey); letter-spacing: .08em; text-transform: uppercase; }
.fx-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.fx-tile { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--black-card); padding: .9rem 1rem; text-align: left; transition: transform .25s, border-color .25s; }
.fx-tile:hover { transform: translateY(-4px); border-color: rgba(8,191,47,.5); }
.fx-tile::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--acc, var(--green)); }
.fx-tile .k { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.fx-tile .v { font-family: 'Bebas Neue', sans-serif; font-size: 1.9rem; line-height: 1.1; margin-top: .2rem; white-space: nowrap; }
.fx-tile .s { font-size: .7rem; color: var(--grey); margin-top: .1rem; }
.fx-tile svg.spark { display: block; width: 100%; height: 34px; margin-top: .4rem; }
.fx-tile .gauge { position: absolute; right: .7rem; bottom: .6rem; }
.fx-chart { margin-top: .8rem; border: 1px solid var(--border); border-radius: 14px; background: var(--black-card); padding: .8rem 1rem 1rem; position: relative; }
.fx-chart h4 { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); font-weight: 600; text-align: left; margin-bottom: .3rem; }
.fx-chart svg { width: 100%; height: 150px; display: block; }
.fx-float { position: absolute; right: 7%; top: 28%; background: rgba(8,191,47,.16); border: 1px solid rgba(8,191,47,.5); color: var(--green); font-weight: 800; font-size: .82rem; padding: .3rem .8rem; border-radius: 100px; animation: fxBob 3.4s ease-in-out infinite; backdrop-filter: blur(4px); }
@keyframes fxBob { 50% { transform: translateY(-8px); } }
/* tracés qui se dessinent / barres qui montent / anneaux qui se remplissent (au passage .in) */
.fx-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.in .fx-draw, .fx-draw.in { animation: fxDraw 1.8s .2s var(--fx-ease) forwards; }
@keyframes fxDraw { to { stroke-dashoffset: 0; } }
.fx-fade { opacity: 0; } .in .fx-fade { animation: fxIn .9s 1.1s ease forwards; } @keyframes fxIn { to { opacity: 1; } }
.fx-rise { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); } .in .fx-rise { animation: fxRise .9s var(--d, 0ms) var(--fx-ease) forwards; } @keyframes fxRise { to { transform: scaleY(1); } }
.fx-ring { stroke-dasharray: 0 200; } .in .fx-ring { animation: fxRing 1.4s .3s var(--fx-ease) forwards; } @keyframes fxRing { to { stroke-dasharray: var(--len) 200; } }

/* ── Bande de chiffres ── */
.fx-band { padding: 1rem 6vw 3rem; }
.fx-band-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.fx-band-item { padding: 1.3rem .6rem; border: 1px solid var(--border); border-radius: 16px; background: var(--black-card); transition: transform .25s, border-color .25s; }
.fx-band-item:hover { transform: translateY(-4px); border-color: rgba(8,191,47,.5); }
.fx-band-item b { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 2.8rem; color: var(--green); line-height: 1; }
.fx-band-item span { font-size: .78rem; color: var(--grey); text-transform: uppercase; letter-spacing: .07em; }

/* ── Blocs de fonctionnalités ── */
.fx-block { padding: 3.2rem 6vw; }
.fx-row { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; }
.fx-row.flip .fx-text { order: 2; }
.fx-tag { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--acc, var(--green)); margin-bottom: .8rem; }
.fx-tag svg { width: 18px; height: 18px; }
.fx-text h2 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: .03em; line-height: 1.05; color: var(--text-wall); margin-bottom: .8rem; }
.fx-text p { color: var(--grey); font-size: 1rem; line-height: 1.7; }
.fx-points { list-style: none; margin-top: 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.fx-points li { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; color: var(--text); }
.fx-points li::before { content: ''; width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; border-radius: 50%; background: rgba(8,191,47,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308BF2F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.fx-pro { display: inline-block; margin-left: .4rem; font-size: .62rem; font-weight: 800; letter-spacing: .06em; padding: .12rem .5rem; border-radius: 100px; background: rgba(245,183,0,.16); color: #f5b700; vertical-align: middle; }
.fx-visual { position: relative; border: 1px solid var(--border); border-radius: 22px; background: radial-gradient(ellipse 320px 200px at 80% 0%, color-mix(in srgb, var(--acc, var(--green)) 18%, transparent), transparent 70%), var(--black-card); padding: 1.4rem; min-height: 300px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .9rem; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); transition: transform .3s, border-color .3s; }
.fx-visual:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--acc, var(--green)) 55%, transparent); }
.acc-green { --acc: #08BF2F; } .acc-blue { --acc: #3987e5; } .acc-violet { --acc: #9085e9; } .acc-amber { --acc: #e0a82e; }

/* modules qu'on réorganise */
.fx-mods { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; width: 100%; max-width: 420px; position: relative; }
.fx-mod { border: 1px solid var(--border); border-radius: 12px; background: var(--black); padding: .7rem; min-height: 86px; display: flex; flex-direction: column; gap: .3rem; font-size: .7rem; color: var(--grey); }
.fx-mod b { color: var(--text); font-size: .78rem; } .fx-mod svg { width: 100%; height: 38px; }
.fx-mod.drag { position: relative; z-index: 2; border-color: var(--green); box-shadow: 0 14px 30px rgba(8,191,47,.25); animation: fxDrag 5s ease-in-out infinite; }
@keyframes fxDrag { 0%, 12% { transform: translate(0,0) rotate(0); } 30%, 55% { transform: translate(104%, 12px) rotate(3deg); } 75%, 100% { transform: translate(0,0) rotate(0); } }
/* devises */
.fx-fx { position: relative; height: 150px; width: 100%; max-width: 360px; }
.fx-fx-pair { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .9rem; font-family: 'Bebas Neue', sans-serif; font-size: 2.1rem; opacity: 0; animation: fxCycle 9s infinite; }
.fx-fx-pair:nth-child(2) { animation-delay: 3s; } .fx-fx-pair:nth-child(3) { animation-delay: 6s; }
.fx-fx-pair .a { padding: .4rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--black); } .fx-fx-pair .b { padding: .4rem 1rem; border-radius: 12px; border: 1px solid rgba(8,191,47,.5); background: rgba(8,191,47,.1); color: var(--green); } .fx-fx-pair .arrow { color: var(--grey); animation: fxNudge 1.2s ease-in-out infinite; }
@keyframes fxCycle { 0% { opacity: 0; transform: translateY(14px); } 6%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes fxNudge { 50% { transform: translateX(6px); } }
.fx-fx-note { font-size: .78rem; color: var(--grey); }
/* staking */
.fx-stk { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: .9rem; text-align: left; }
.fx-stk-row { font-size: .72rem; color: var(--grey); display: flex; justify-content: space-between; margin-bottom: .3rem; } .fx-stk-row b { color: var(--text); }
.fx-bar { height: 10px; border-radius: 10px; background: rgba(255,255,255,.1); overflow: hidden; } .fx-bar i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--acc), #6af58b); width: 0; }
.in .fx-bar i.f100 { animation: fxBarGrow 1.4s .3s var(--fx-ease) forwards; --w: 100%; } .in .fx-bar i.f30 { animation: fxBarGrow 1.4s .6s var(--fx-ease) forwards; --w: 30%; }
@keyframes fxBarGrow { to { width: var(--w); } }
.fx-stk-result { display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(8,191,47,.45); border-radius: 14px; padding: .8rem 1rem; background: rgba(8,191,47,.08); }
.fx-stk-result > span { font-size: .72rem; color: var(--grey); text-transform: uppercase; letter-spacing: .06em; } .fx-stk-result b { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--green); line-height: 1; }
.fx-chips { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.fx-chip { font-size: .72rem; font-weight: 700; padding: .25rem .75rem; border-radius: 100px; border: 1px solid var(--border); background: var(--black); color: var(--grey); }
.fx-chip.g { color: var(--green); border-color: rgba(8,191,47,.5); background: rgba(8,191,47,.1); }
/* amis */
.fx-friends { position: relative; width: 100%; max-width: 400px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; }
.fx-av { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; color: var(--green); background: rgba(8,191,47,.14); border: 2px solid rgba(8,191,47,.5); } .fx-av.b { color: #9085e9; background: rgba(144,133,233,.14); border-color: rgba(144,133,233,.5); }
.fx-link { position: relative; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 6px, transparent 6px 12px); } .fx-link i { position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: fxTravel 2.6s ease-in-out infinite; } @keyframes fxTravel { 0% { left: 0; } 50% { left: calc(100% - 10px); } 100% { left: 0; } }
.fx-deal { width: 100%; max-width: 400px; border: 1px solid var(--border); border-radius: 14px; background: var(--black); padding: .8rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-size: .82rem; }
.fx-deal em { font-style: normal; position: relative; display: inline-block; min-width: 108px; height: 24px; }
.fx-deal em span { position: absolute; right: 0; top: 0; padding: .15rem .7rem; border-radius: 100px; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.fx-deal em .p { background: rgba(144,133,233,.16); color: #9085e9; animation: fxSwapA 5s infinite; } .fx-deal em .c { background: rgba(8,191,47,.16); color: var(--green); opacity: 0; animation: fxSwapB 5s infinite; }
@keyframes fxSwapA { 0%, 45% { opacity: 1; transform: none; } 50%, 95% { opacity: 0; transform: translateY(-8px); } 100% { opacity: 1; transform: none; } }
@keyframes fxSwapB { 0%, 45% { opacity: 0; transform: translateY(8px); } 50%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* profil */
.fx-prof { width: 100%; max-width: 380px; text-align: center; }
.fx-prof-av { position: relative; width: 84px; height: 84px; margin: 0 auto .6rem; } .fx-prof-av::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--green), rgba(8,191,47,.05) 40%, #6af58b 65%, rgba(8,191,47,.05) 88%, var(--green)); animation: fxSpin 6s linear infinite; } .fx-prof-av span { position: absolute; inset: 4px; border-radius: 50%; background: var(--black-card); display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--green); }
@keyframes fxSpin { to { transform: rotate(360deg); } }
.fx-prof h4 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 1.8rem; letter-spacing: .04em; }
.fx-rooms { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: .7rem 0; }
.fx-room { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; padding: .25rem .65rem .25rem .3rem; border-radius: 100px; border: 1px solid var(--border); background: var(--black); animation: fxBob 4s ease-in-out infinite; } .fx-room:nth-child(2n) { animation-delay: -1.3s; } .fx-room:nth-child(3n) { animation-delay: -2.4s; }
.fx-room i { width: 20px; height: 20px; border-radius: 6px; color: #fff; font-style: normal; font-weight: 800; font-size: .62rem; display: inline-flex; align-items: center; justify-content: center; }
.fx-mini-tiles { display: flex; justify-content: center; gap: .5rem; } .fx-mini-tiles div { flex: 1; border: 1px solid var(--border); border-radius: 12px; padding: .5rem .3rem; background: var(--black); } .fx-mini-tiles b { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; line-height: 1; } .fx-mini-tiles span { font-size: .6rem; color: var(--grey); text-transform: uppercase; letter-spacing: .06em; }
/* sécurité */
.fx-otp { display: flex; gap: .4rem; justify-content: center; } .fx-otp span { width: 42px; height: 52px; border-radius: 11px; border: 1.5px solid var(--border); background: var(--black); display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', sans-serif; font-size: 1.7rem; color: var(--text); animation: fxDigit 6s infinite; }
.fx-otp span:nth-child(1) { animation-delay: .0s; } .fx-otp span:nth-child(2) { animation-delay: .25s; } .fx-otp span:nth-child(3) { animation-delay: .5s; } .fx-otp span:nth-child(4) { animation-delay: .75s; } .fx-otp span:nth-child(5) { animation-delay: 1s; } .fx-otp span:nth-child(6) { animation-delay: 1.25s; }
@keyframes fxDigit { 0%, 4% { color: transparent; border-color: var(--border); transform: none; } 8% { color: var(--text); border-color: rgba(8,191,47,.7); transform: translateY(-3px); } 12%, 70% { color: var(--green); border-color: var(--green); background: rgba(8,191,47,.1); transform: none; } 80%, 100% { color: transparent; border-color: var(--border); background: var(--black); } }
.fx-shield { position: relative; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; color: var(--green); } .fx-shield::before, .fx-shield::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 2px solid rgba(8,191,47,.5); animation: fxPulse 2.6s ease-out infinite; } .fx-shield::after { animation-delay: 1.3s; } .fx-shield svg { width: 34px; height: 34px; position: relative; } @keyframes fxPulse { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.fx-photos { display: flex; gap: .5rem; } .fx-photos i { width: 54px; height: 54px; border-radius: 12px; border: 1px solid var(--border); background: linear-gradient(135deg, rgba(224,168,46,.25), rgba(8,191,47,.12)); position: relative; animation: fxBob 3.6s ease-in-out infinite; } .fx-photos i:nth-child(2) { animation-delay: -1.2s; } .fx-photos i:nth-child(3) { animation-delay: -2.4s; } .fx-photos i::after { content: ''; position: absolute; left: 22%; right: 22%; top: 30%; bottom: 30%; border: 2px solid rgba(255,255,255,.5); border-radius: 6px; }

/* ── Modules ── */
.fx-modules { padding: 3rem 0 1rem; overflow: hidden; }
.fx-marq { display: flex; width: max-content; gap: .7rem; animation: fxMarq 55s linear infinite; margin-bottom: .7rem; } .fx-marq.rev { animation-direction: reverse; animation-duration: 65s; }
.fx-marq span { font-size: .85rem; padding: .5rem 1.1rem; border-radius: 100px; border: 1px solid var(--border); background: var(--black-card); color: var(--text); white-space: nowrap; transition: border-color .2s, color .2s; } .fx-marq span:hover { border-color: var(--green); color: var(--green); }
@keyframes fxMarq { to { transform: translateX(-50%); } }
.fx-modules:hover .fx-marq { animation-play-state: paused; }
.module-grid .module-card { transition: transform .25s, border-color .25s; } .module-grid .module-card:hover { transform: translateY(-4px); border-color: rgba(8,191,47,.5); }

/* ── Tarifs ── */
.fx-price { padding: 3rem 6vw; }
.fx-price-grid { max-width: 980px; margin: 2rem auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.fx-pc { position: relative; text-align: center; border: 1px solid var(--border); border-radius: 20px; background: var(--black-card); padding: 1.6rem 1.2rem; transition: transform .25s, border-color .25s; display: flex; flex-direction: column; gap: .4rem; align-items: center; }
.fx-pc:hover { transform: translateY(-5px); border-color: rgba(8,191,47,.5); }
.fx-pc h3 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 1.7rem; letter-spacing: .03em; }
.fx-pc .amt { font-size: 2rem; font-weight: 800; } .fx-pc .amt small { font-size: .8rem; font-weight: 500; color: var(--grey); }
.fx-pc p { font-size: .82rem; color: var(--grey); }
.fx-pc.best { border: 2px solid var(--green); background: linear-gradient(160deg, rgba(8,191,47,.14), var(--black-card)); box-shadow: 0 20px 50px rgba(8,191,47,.16); }
.fx-pc .ribbon { font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #0a0a0a; background: linear-gradient(90deg, var(--green), #6af58b); padding: .22rem .8rem; border-radius: 100px; animation: fxRibbon 2.4s ease-in-out infinite; } @keyframes fxRibbon { 50% { box-shadow: 0 0 0 7px rgba(8,191,47,0); } 0% { box-shadow: 0 0 0 0 rgba(8,191,47,.5); } }
.fx-pc s { color: var(--grey); opacity: .7; } .fx-pc .save { color: var(--green); font-weight: 800; font-size: .82rem; }
.fx-pc .btn-primary, .fx-pc .fx-btn-ghost { margin-top: auto; justify-content: center; }

@media (max-width: 900px) {
  .fx-tiles { grid-template-columns: repeat(2, 1fr); } .fx-band-grid { grid-template-columns: repeat(2, 1fr); }
  .fx-row, .fx-row.flip { grid-template-columns: 1fr; gap: 1.6rem; } .fx-row.flip .fx-text { order: 0; }
  .fx-price-grid { grid-template-columns: 1fr; max-width: 420px; } .fx-pc.best { order: -1; }
  .fx-float { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fx *, .fx *::before, .fx *::after { animation: none !important; transition: none !important; }
  .fx-js [data-reveal] { opacity: 1; transform: none; } .fx-draw { stroke-dashoffset: 0; } .fx-fade { opacity: 1; } .fx-rise { transform: none; } .fx-ring { stroke-dasharray: var(--len) 200; } .fx-bar i.f100 { width: 100%; } .fx-bar i.f30 { width: 30%; } .fx-fx-pair:first-child { opacity: 1; } .fx-deal em .c { opacity: 1; } .fx-deal em .p { opacity: 0; }
}
