/* Animation promo Gsoft ERP : scène fixe 540 × 960, mise à l'échelle dans .promo-frame par promo.js.
   Tous les sélecteurs sont préfixés par .stage pour ne pas déborder sur le reste du site.
   La scène garde la palette de l'application, quel que soit le thème. */
.stage{
  --s-bg:#f4f5f7; --s-ink:#101828; --s-ink2:#344054; --s-muted:#667085; --s-faint:#98a2b3; --s-line:#e4e7ec; --s-line2:#f2f4f7;
  --s-blue:#2563eb; --s-soft:#eef4ff; --s-green:#067647; --s-green-soft:#ecfdf3; --s-green-line:#abefc6;
  --s-red:#b42318; --s-red-soft:#fef3f2; --s-red-line:#fecdca; --s-amber:#b54708; --s-amber-soft:#fffaeb; --s-amber-line:#fedf89; --s-white:#ffffff;
  --f-display:"Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-ui:Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
  position:absolute;left:0;top:0;width:540px;height:960px;transform-origin:0 0;background:var(--s-bg);color:var(--s-ink);font-family:var(--f-ui);font-size:15px;line-height:1.35;overflow:hidden;text-align:left
}
.stage *{box-sizing:border-box}
.stage em{font-style:normal}
.stage .bg{position:absolute;inset:0;pointer-events:none}
.stage .blob{position:absolute;left:0;top:0;width:600px;height:600px;margin:-300px 0 0 -300px;border-radius:50%}
.stage .b1{background:radial-gradient(circle,rgba(37,99,235,.17) 0%,rgba(37,99,235,0) 62%)}
.stage .b2{background:radial-gradient(circle,rgba(139,92,246,.15) 0%,rgba(139,92,246,0) 62%)}
.stage .ic{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

.stage .brandbar{position:absolute;top:30px;left:40px;display:flex;align-items:center;gap:9px;font:700 17px/1 var(--f-display);letter-spacing:-.01em;color:var(--s-ink);z-index:5;visibility:hidden}
.stage .brandbar .erp{color:var(--s-blue)}
.stage .mini-tile{width:30px;height:30px;border-radius:9px;background:linear-gradient(140deg,#e6e4ff,#f7e9fb);display:grid;place-items:center;flex:none}
.stage .mini-tile svg{width:22px;height:22px}
.stage .mini-tile path,.stage .g path{fill:none;stroke:var(--s-blue);stroke-width:12}

/* Sans GSAP, seule la scène de fin reste visible (affiche fixe) ; GSAP réécrit la visibilité en ligne */
.stage .scene{position:absolute;inset:0;padding:96px 40px 44px;display:flex;flex-direction:column;gap:26px;visibility:hidden}
.stage #s9{visibility:visible}
.stage .s-center{justify-content:center;align-items:center;text-align:center;padding-top:40px;gap:16px}
.stage .head{display:flex;flex-direction:column;gap:14px}
.stage .eyebrow{display:flex;align-items:center;gap:11px;font-weight:500;font-size:14px;color:var(--s-muted);letter-spacing:.07em;text-transform:uppercase}
.stage .pastille{width:38px;height:38px;border-radius:11px;background:var(--s-soft);color:var(--s-blue);display:grid;place-items:center;flex:none}
.stage .pastille svg{width:21px;height:21px}
.stage .hl{margin:0;font-family:var(--f-display);font-weight:760;font-size:46px;line-height:1.04;letter-spacing:-.028em;color:var(--s-ink);text-wrap:balance}
.stage .hl em,.stage .tagline em{color:var(--s-blue)}
.stage .m{display:inline-block;overflow:hidden;vertical-align:top;padding:.08em .02em .12em;margin:-.08em 0 -.12em}
.stage .w{display:inline-block}
.stage .w.acc{color:var(--s-blue)}

.stage .card{position:relative;background:var(--s-white);border:1px solid var(--s-line);border-radius:22px;box-shadow:0 30px 60px -30px rgba(16,24,40,.28),0 2px 6px rgba(16,24,40,.04)}
.stage .card-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 20px 14px;font-size:16px}
.stage .chips{display:flex;gap:6px}
.stage .chip{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px;border-radius:999px;background:var(--s-bg);border:1px solid var(--s-line);font-size:12.5px;color:var(--s-muted);font-weight:500;white-space:nowrap}
.stage .chip.live{background:var(--s-green-soft);border-color:var(--s-green-line);color:var(--s-green)}
.stage .chip.live i{width:7px;height:7px;border-radius:50%;background:currentColor}
.stage .rip{position:absolute;left:50%;top:50%;width:70px;height:70px;margin:-35px 0 0 -35px;border-radius:50%;background:rgba(37,99,235,.32);pointer-events:none;visibility:hidden;opacity:0}

/* Point de vente */
.stage .pos{padding:16px}
.stage .pos-bar{display:flex;gap:10px;align-items:center;margin-bottom:14px}
.stage .search{flex:1;height:40px;border-radius:12px;background:var(--s-bg);border:1px solid var(--s-line);display:flex;align-items:center;gap:8px;padding:0 12px;color:var(--s-faint);font-size:14px}
.stage .search svg{width:17px;height:17px}
.stage .tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.stage .tile{position:relative;overflow:hidden;border:1px solid var(--s-line);border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:6px;background:var(--s-white)}
.stage .thumb{width:40px;height:40px;border-radius:11px;background:var(--c);color:var(--t);display:grid;place-items:center;font-weight:700;font-size:14px}
.stage .tn{font-size:13px;font-weight:500;line-height:1.25;min-height:2.5em}
.stage .tp{font-size:14px;font-weight:700;color:var(--s-blue);font-variant-numeric:tabular-nums}
.stage .ticket{margin-top:14px;border-top:1px dashed #d0d5dd;padding-top:12px}
.stage .tk-h{display:flex;justify-content:space-between;font-size:14px;color:var(--s-muted);margin-bottom:4px}
.stage .tk-h b{color:var(--s-ink)}
.stage .tk-line{display:grid;grid-template-columns:34px 1fr auto;gap:8px;font-size:14px;padding:5px 0;font-variant-numeric:tabular-nums}
.stage .tk-line .q{color:var(--s-blue);font-weight:700}
.stage .tk-sum{margin-top:6px;padding-top:8px;border-top:1px solid var(--s-line);font-size:13px;color:var(--s-muted);display:grid;gap:3px}
.stage .tk-sum div,.stage .tk-total{display:flex;justify-content:space-between;font-variant-numeric:tabular-nums}
.stage .tk-total{align-items:baseline;margin-top:6px;font-size:15px;font-weight:500}
.stage .tk-total b{font-size:26px;font-weight:700;letter-spacing:-.01em}
.stage .pay{position:relative;overflow:hidden;margin-top:12px;height:50px;border-radius:14px;background:var(--s-blue);color:var(--s-white);display:grid;place-items:center;font-weight:700;font-size:16px}
.stage .pay .rip{background:rgba(255,255,255,.35)}
.stage .toast{position:absolute;left:0;right:0;bottom:84px;margin:auto;width:max-content;display:flex;align-items:center;gap:10px;padding:10px 18px 10px 10px;border-radius:999px;background:var(--s-ink);color:var(--s-white);font-size:15px;box-shadow:0 16px 30px -12px rgba(16,24,40,.55)}
.stage .toast b{font-variant-numeric:tabular-nums}
.stage .ok-ic{width:30px;height:30px;border-radius:50%;background:#17b26a;display:grid;place-items:center}
.stage .ok-ic svg{width:17px;height:17px}
.stage .ok-ic path{fill:none;stroke:#ffffff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:24}

/* Documents */
.stage .docs{position:relative;height:440px}
.stage .doc{position:absolute;left:0;right:0;top:62px;padding:20px;transform-origin:50% 0}
.stage .doc-h{display:flex;align-items:center;gap:12px}
.stage .doc-ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--c);color:var(--t);flex:none}
.stage .doc-ic svg{width:22px;height:22px}
.stage .doc-t{flex:1;min-width:0}
.stage .doc-t b{display:block;font-size:18px}
.stage .doc-t small{color:var(--s-muted);font-size:13px;letter-spacing:.04em;font-variant-numeric:tabular-nums}
.stage .pill{height:26px;padding:0 10px;border-radius:999px;font-size:12.5px;font-weight:700;display:inline-flex;align-items:center;gap:5px}
.stage .pill svg{width:13px;height:13px}
.stage .pill.blue{background:var(--s-soft);color:var(--s-blue)}
.stage .pill.amber{background:var(--s-amber-soft);color:var(--s-amber)}
.stage .pill.green{background:var(--s-green-soft);color:var(--s-green)}
.stage .doc-client{margin:16px 0 10px;padding:10px 12px;border-radius:12px;background:var(--s-bg);display:flex;justify-content:space-between;font-size:14px}
.stage .doc-client span{color:var(--s-muted)}
.stage .dl{display:grid;grid-template-columns:1fr 40px 92px;gap:8px;font-size:14px;padding:7px 2px;border-bottom:1px solid var(--s-line2);font-variant-numeric:tabular-nums}
.stage .dl span:nth-child(n+2){text-align:right}
.stage .dl.th{font-size:11.5px;color:var(--s-muted);text-transform:uppercase;letter-spacing:.06em;border-bottom-color:var(--s-line)}
.stage .doc-tot{display:flex;justify-content:space-between;align-items:baseline;margin-top:12px;font-size:14px;color:var(--s-muted)}
.stage .doc-tot b{font-size:22px;color:var(--s-ink);font-variant-numeric:tabular-nums}
.stage .pdf{position:absolute;right:-8px;bottom:-4px;display:flex;align-items:center;gap:12px;padding:12px 16px 12px 12px;border-radius:16px;background:var(--s-white);border:1px solid var(--s-line);box-shadow:0 22px 40px -18px rgba(16,24,40,.5)}
.stage .pdf-ic{width:40px;height:48px;border-radius:8px;background:#fee4e2;color:var(--s-red);font-weight:800;font-size:12px;letter-spacing:.04em;display:grid;place-items:center}
.stage .pdf b{display:block;font-size:15px}
.stage .pdf small{color:var(--s-muted);font-size:12.5px}
.stage .chain{display:flex;align-items:center;gap:8px}
.stage .step{height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--s-line);background:var(--s-white);display:inline-flex;align-items:center;font-weight:500;font-size:14px;color:var(--s-muted)}
.stage .link{flex:1;height:3px;border-radius:2px;background:var(--s-line);overflow:hidden}
.stage .link b{display:block;height:100%;background:var(--s-blue);transform-origin:0 50%}

/* Stock */
.stage .stock{padding-bottom:6px}
.stage .srow{padding:12px 20px 14px;border-top:1px solid var(--s-line2)}
.stage .s-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;font-size:15px}
.stage .sn{display:flex;align-items:center;gap:8px;font-weight:500}
.stage .sq{position:relative;color:var(--s-muted);font-size:14px;font-variant-numeric:tabular-nums}
.stage .sq b{color:var(--s-ink);font-size:18px;margin-right:3px}
.stage .delta{position:absolute;right:0;top:-22px;font-style:normal;font-weight:700;font-size:12.5px;padding:2px 8px;border-radius:999px;visibility:hidden;opacity:0;white-space:nowrap}
.stage .delta.neg{background:var(--s-red-soft);color:var(--s-red)}
.stage .delta.pos{background:var(--s-green-soft);color:var(--s-green)}
.stage .sbar{height:8px;border-radius:99px;background:var(--s-line2);overflow:hidden}
.stage .sbar i{display:block;height:100%;width:100%;border-radius:99px;background:var(--s-blue);transform-origin:0 50%}
.stage .low{font-size:11.5px;font-weight:700;color:var(--s-amber);background:var(--s-amber-soft);border:1px solid var(--s-amber-line);padding:2px 8px;border-radius:999px}
.stage .inv{padding:16px 18px}
.stage .inv-h{display:flex;align-items:center;gap:10px;font-size:15px;margin-bottom:12px}
.stage .inv-h .pastille{width:32px;height:32px;border-radius:9px}
.stage .inv-h .pastille svg{width:18px;height:18px}
.stage .inv-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.stage .inv-grid div{padding:10px 12px;border-radius:12px;background:var(--s-bg)}
.stage .inv-grid small{display:block;color:var(--s-muted);font-size:12.5px}
.stage .inv-grid b{font-size:22px;font-variant-numeric:tabular-nums}
.stage .inv-grid .ok{background:var(--s-green-soft)}
.stage .inv-grid .ok b{color:var(--s-green)}

/* Caisse */
.stage .cash{padding-bottom:16px}
.stage .solde{padding:0 20px 16px}
.stage .solde small{display:block;color:var(--s-muted);font-size:12.5px;text-transform:uppercase;letter-spacing:.07em;margin-bottom:2px}
.stage .solde b{font-family:var(--f-display);font-size:50px;font-weight:760;letter-spacing:-.025em;font-variant-numeric:tabular-nums;color:var(--s-ink)}
.stage .solde span{font-size:18px;color:var(--s-muted);margin-left:6px;font-weight:500}
.stage .entries{display:grid;gap:8px;padding:0 16px}
.stage .entry{display:grid;grid-template-columns:40px 1fr auto;gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--s-line);border-radius:14px}
.stage .e-ic{width:40px;height:40px;border-radius:11px;display:grid;place-items:center}
.stage .e-ic svg{width:20px;height:20px}
.stage .e-ic.in{background:var(--s-green-soft);color:var(--s-green)}
.stage .e-ic.out{background:var(--s-red-soft);color:var(--s-red)}
.stage .entry b{display:block;font-size:15px}
.stage .entry small{color:var(--s-muted);font-size:13px}
.stage .amt{font-weight:700;font-size:17px;font-variant-numeric:tabular-nums}
.stage .amt.in{color:var(--s-green)}
.stage .amt.out{color:var(--s-red)}
.stage .chart{margin:14px 16px 0;padding:14px 14px 10px;border-radius:14px;background:var(--s-bg)}
.stage .chart small{color:var(--s-muted);font-size:12.5px}
.stage .bars{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;height:132px;margin-top:10px}
.stage .bar-col{display:flex;flex-direction:column;align-items:center;gap:6px;height:100%}
.stage .bar-track{flex:1;width:100%;display:flex}
.stage .bar{display:block;width:100%;height:100%;border-radius:8px 8px 4px 4px;background:#c7d7fe;transform-origin:50% 100%}
.stage .bar.today{background:var(--s-blue)}
.stage .bar-col span{font-size:12px;color:var(--s-muted)}
.stage .bar-col.now span{color:var(--s-blue);font-weight:700}

/* Départements & droits */
.stage .depts{display:grid;gap:10px}
.stage .dept{position:relative;background:var(--s-white);border:1px solid var(--s-line);border-radius:16px;padding:12px 14px}
.stage .dept-in{display:grid;grid-template-columns:40px 1fr auto;gap:12px;align-items:center}
.stage .dept .pastille{width:40px;height:40px}
.stage .dept b{display:block;font-size:15.5px}
.stage .dept small{color:var(--s-muted);font-size:12.5px}
.stage .dv{font-weight:700;font-size:15px;font-variant-numeric:tabular-nums;text-align:right}
.stage .dv small{display:block;font-weight:500}
.stage .lock{position:absolute;right:14px;top:50%;margin-top:-17px;height:34px;padding:0 12px;border-radius:999px;background:var(--s-red-soft);color:var(--s-red);border:1px solid var(--s-red-line);display:flex;align-items:center;gap:6px;font-weight:700;font-size:13px}
.stage .lock svg{width:15px;height:15px}
.stage .user{padding:18px}
.stage .u-h{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.stage .avatar{width:46px;height:46px;border-radius:50%;background:linear-gradient(140deg,#dbe6ff,#ede9fe);color:var(--s-blue);display:grid;place-items:center;font-weight:700;flex:none}
.stage .u-h b{display:block;font-size:17px}
.stage .u-h small{color:var(--s-muted);font-size:13px}
.stage .scopes-h{font-size:11.5px;text-transform:uppercase;letter-spacing:.07em;color:var(--s-muted);margin-bottom:8px}
.stage .scopes{display:grid;gap:8px}
.stage .scope{position:relative;overflow:hidden;display:grid;grid-template-columns:1fr auto;align-items:center;padding:10px 12px;border-radius:12px;border:1px solid var(--s-green-line);background:var(--s-green-soft);font-size:14.5px;font-weight:500}
.stage .scope em{grid-area:1/2;font-style:normal;font-size:13px;font-weight:700;display:inline-flex;align-items:center;gap:5px;justify-self:end}
.stage .scope em svg{width:15px;height:15px}
.stage .st-ok{color:var(--s-green)}
.stage .st-no{color:var(--s-red);visibility:hidden;opacity:0}
.stage .scope .rip{background:rgba(180,35,24,.22)}

/* Mobile */
.stage .phone-wrap{display:flex;justify-content:center}
.stage .phone{width:280px;height:560px;border-radius:46px;background:#101828;padding:10px;box-shadow:0 40px 70px -30px rgba(16,24,40,.6)}
.stage .screen{position:relative;height:100%;border-radius:37px;background:var(--s-bg);overflow:hidden;padding:12px 14px}
.stage .notch{position:absolute;top:10px;left:50%;width:92px;margin-left:-46px;height:26px;border-radius:14px;background:#101828}
.stage .m-status{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;font-weight:700;padding:3px 12px 0;height:26px}
.stage .m-head{display:flex;justify-content:space-between;align-items:center;margin:16px 4px 12px}
.stage .m-head b{font-family:var(--f-display);font-size:25px;letter-spacing:-.02em}
.stage .m-list{display:grid;gap:8px}
.stage .m-row{display:grid;grid-template-columns:34px 1fr auto;gap:10px;align-items:center;padding:10px;border-radius:14px;background:var(--s-white);border:1px solid var(--s-line)}
.stage .m-row > div{min-width:0}
.stage .m-ic{width:34px;height:34px;border-radius:10px;background:var(--c);color:var(--t);display:grid;place-items:center;font-weight:700;font-size:11.5px}
.stage .m-row b{display:block;font-size:13px;font-variant-numeric:tabular-nums}
.stage .m-row small{display:block;font-size:11.5px;color:var(--s-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stage .m-amt{font-size:12.5px;font-weight:700;font-variant-numeric:tabular-nums}
.stage .notif{position:absolute;left:8px;right:8px;top:42px;display:grid;grid-template-columns:36px 1fr;gap:10px;padding:12px;border-radius:20px;background:rgba(255,255,255,.97);box-shadow:0 18px 36px -12px rgba(16,24,40,.45);border:1px solid var(--s-line);overflow:hidden}
.stage .notif .mini-tile{width:36px;height:36px;border-radius:10px}
.stage .notif .mini-tile svg{width:26px;height:26px}
.stage .n-top{display:flex;justify-content:space-between;font-size:11.5px;color:var(--s-muted)}
.stage .n-top b{color:var(--s-ink)}
.stage .n-t{display:block;font-size:14px;margin-top:2px}
.stage .notif small{font-size:12.5px;color:var(--s-muted);line-height:1.3;display:block}

/* Assistant IA */
.stage .chat{display:flex;flex-direction:column;overflow:hidden}
.stage .chat-h{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--s-line)}
.stage .chat-h b{display:block;font-size:16px}
.stage .chat-h small{display:flex;align-items:center;gap:6px;color:var(--s-muted);font-size:12.5px}
.stage .dot{width:7px;height:7px;border-radius:50%;background:#17b26a}
.stage .chat-body{display:flex;flex-direction:column;gap:14px;padding:18px;min-height:372px}
.stage .bubble{max-width:84%;padding:12px 15px;border-radius:18px;font-size:15px;line-height:1.4}
.stage .me{align-self:flex-end;background:var(--s-blue);color:var(--s-white);border-bottom-right-radius:6px;min-height:45px}
.stage .caret{display:inline-block;width:2px;height:1.05em;background:var(--s-white);vertical-align:-2px;margin-left:2px}
.stage .bot-slot{display:grid}
.stage .bot-slot > *{grid-area:1/1;align-self:start;justify-self:start}
.stage .typing{display:flex;gap:5px;background:var(--s-white);border:1px solid var(--s-line);border-bottom-left-radius:6px;padding:15px 16px}
.stage .typing i{width:8px;height:8px;border-radius:50%;background:var(--s-faint)}
.stage .ans{width:84%;background:var(--s-white);border:1px solid var(--s-line);border-bottom-left-radius:6px;padding:14px 16px}
.stage .ans small{color:var(--s-muted);font-size:13px;display:block}
.stage .big{display:block;font-family:var(--f-display);font-size:38px;font-weight:760;letter-spacing:-.025em;margin:2px 0 8px;font-variant-numeric:tabular-nums}
.stage .trend{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:700;color:var(--s-green);background:var(--s-green-soft);padding:4px 10px;border-radius:999px}
.stage .trend svg{width:14px;height:14px}
.stage .spark{display:block;width:100%;height:auto;margin-top:12px}
.stage .spark-line{fill:none;stroke:var(--s-blue);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.stage .spark-area{fill:rgba(37,99,235,.10)}
.stage .spark-dot{fill:var(--s-blue);stroke:var(--s-white);stroke-width:3}
.stage .chat-input{margin:auto 14px 14px;height:46px;border-radius:14px;border:1px solid var(--s-line);display:flex;align-items:center;justify-content:space-between;padding:0 6px 0 14px;color:var(--s-faint);font-size:14px}
.stage .send{width:34px;height:34px;border-radius:10px;background:var(--s-soft);color:var(--s-blue);display:grid;place-items:center}
.stage .send svg{width:17px;height:17px}

/* Intro / fin */
.stage .logo-tile{position:relative;width:150px;height:150px;border-radius:38px;background:linear-gradient(140deg,#e6e4ff 0%,#efe6ff 55%,#f7e9fb 100%);display:grid;place-items:center;box-shadow:0 30px 60px -28px rgba(76,61,190,.45)}
.stage .logo-tile svg{width:108px;height:108px}
.stage .halo{position:absolute;inset:-12px;border-radius:48px;border:2px solid rgba(37,99,235,.5);visibility:hidden;opacity:0}
.stage .wordmark{display:flex;gap:14px;font-family:var(--f-display);font-weight:800;font-size:64px;letter-spacing:-.035em;line-height:1;margin-top:12px}
.stage .wordmark span{display:inline-block}
.stage .wordmark .erp{color:var(--s-blue)}
.stage .tagline{margin:0;font-family:var(--f-display);font-weight:500;font-size:27px;line-height:1.22;color:var(--s-ink2);max-width:400px;text-wrap:balance}
.stage .recap{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:430px}
.stage .recap li{height:34px;padding:0 14px;border-radius:999px;background:var(--s-white);border:1px solid var(--s-line);display:inline-flex;align-items:center;font-size:14px;font-weight:500;color:var(--s-ink2)}
.stage .cta{margin-top:20px;height:58px;padding:0 26px;border-radius:999px;background:var(--s-blue);color:var(--s-white);display:inline-flex;align-items:center;gap:10px;font-weight:700;font-size:20px;box-shadow:0 18px 36px -14px rgba(37,99,235,.65)}
.stage .cta svg{width:20px;height:20px}
.stage .cta-sub{color:var(--s-muted);font-size:15px}
