/* Zelsync : démo animée de Zelquote dans l'application Zelsync dans un téléphone (accueil et page Zelquote).
   Écrans recopiés de l'app (zelquote/v2/web) : mêmes couleurs, composants et libellés. */
.demo { position: relative; display: flex; align-items: center; justify-content: center; gap: 26px; margin: 0; padding-bottom: 40px; }
.demo-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: s; width: 190px; flex-shrink: 0; }
.demo-steps li { position: relative; padding: 12px 14px 12px 46px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--dim); box-shadow: inset 0 0 0 1px var(--line); transition: all .4s var(--ease); }
.demo-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 12px; top: 50%; margin-top: -12px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; box-shadow: inset 0 0 0 1px var(--line2); }
.demo-steps li small { display: block; font-weight: 400; font-size: 12px; }
.demo-steps li.on { color: var(--text); background: rgba(46,230,168,.07); box-shadow: inset 0 0 0 1px rgba(46,230,168,.4), 0 0 30px -10px var(--neon); }
.demo-steps li.on::before { background: var(--neon); color: #00170e; box-shadow: 0 0 16px -2px var(--neon); }
.demo-steps li.on small { color: var(--muted); }
.demo figcaption { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }

.phone { position: relative; width: 300px; height: 620px; flex-shrink: 0; border-radius: 48px; padding: 9px; background: linear-gradient(145deg, #1d2427, #0b0e10);
  box-shadow: inset 0 0 0 1.5px #343d41, inset 0 0 0 4px #0b0e10, 0 0 0 1px rgba(255,255,255,.05), 0 50px 120px -30px rgba(0,0,0,.95), 0 0 140px -40px rgba(46,230,168,.55);
  transform: perspective(1600px) rotateY(-9deg) rotateX(4deg); transition: transform .8s var(--ease); }
.demo:hover .phone { transform: perspective(1600px) rotateY(0) rotateX(0); }
.phone::before { content: ''; position: absolute; right: -3px; top: 140px; width: 3px; height: 60px; border-radius: 0 3px 3px 0; background: #2a3135; }
.phone::after { content: ''; position: absolute; inset: 9px; border-radius: 40px; pointer-events: none; z-index: 5; background: linear-gradient(125deg, rgba(255,255,255,.07) 0%, transparent 28%); }
.ph-screen { position: relative; width: 282px; height: 602px; border-radius: 40px; overflow: hidden; background: #0f0e17; }
.ph-canvas {
  /* Thème sombre de l'app (prefers-color-scheme: dark dans zelquote/v2/web/src/styles.css) */
  --a-bg: #0f0e17; --a-surface: #1a1a26; --a-surface2: #22222f; --a-fg: #f1f0f5; --a-muted: #a3a2ad; --a-line: #2f2e3c;
  --a-brand: #34c095; --a-brand-ink: #6fdcb8; --a-brand-soft: #123a30; --a-quote: #e0736f; --a-quote-soft: #3a1f22; --a-warn: #e3a94a; --a-warn-soft: #3a2d15;
  position: absolute; top: 0; left: 0; width: 375px; height: 801px; transform: scale(.752); transform-origin: 0 0;
  background: var(--a-bg); color: var(--a-fg); font-family: 'DM Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.5; overflow: hidden;
}
.a-status { height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px; font-weight: 700; font-size: 15px; }
.a-island { position: absolute; top: 11px; left: 50%; width: 112px; height: 32px; margin-left: -56px; border-radius: 20px; background: #000; z-index: 30; }
.a-status svg { display: block; }
.a-appbar { display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 10px; }
.a-logo { display: flex; align-items: center; gap: 8px; font: 700 18px 'DM Sans', sans-serif; letter-spacing: -.3px; }
.a-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--a-brand-soft); color: var(--a-brand-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.a-viewport { position: absolute; top: 104px; left: 0; right: 0; bottom: 78px; overflow: hidden; }
.a-scr { position: absolute; inset: 0; padding: 4px 16px 24px; display: flex; flex-direction: column; gap: 14px; opacity: 0; transform: translateX(40px); transition: opacity .35s ease, transform .45s var(--ease); pointer-events: none; }
.a-scr.on { opacity: 1; transform: none; }
.a-scr.out { opacity: 0; transform: translateX(-40px); }
.a-scroll { display: flex; flex-direction: column; gap: 14px; transition: transform .9s var(--ease); }
.a-h1 { font: 700 24px/1.2 'DM Sans', sans-serif; letter-spacing: -.5px; margin: 4px 0 0; }
.a-eyebrow { font: 500 11px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--a-muted); }
.a-card { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 16px; padding: 14px; }
.a-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.a-muted { color: var(--a-muted); }
.a-small { font-size: 12px; }
.a-mono { font-family: 'DM Mono', monospace; font-variant-numeric: tabular-nums; }
.a-link { color: var(--a-brand-ink); font: 600 13px 'DM Sans', sans-serif; padding: 4px 0; }
.a-pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; transition: all .3s; }
.a-p-todo { background: var(--a-warn-soft); color: var(--a-warn); }
.a-p-sent { background: var(--a-surface2); color: var(--a-muted); box-shadow: inset 0 0 0 1px var(--a-line); }
.a-create { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a-cbtn { position: relative; border-radius: 18px; padding: 16px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 128px; }
.a-cbtn .ic2 { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.a-cbtn b { font: 700 16px/1.2 'DM Sans', sans-serif; }
.a-cbtn small { font-size: 12.5px; line-height: 1.35; }
.a-cbtn.voice { background: var(--a-quote); color: #fff; }
.a-cbtn.voice .ic2 { background: rgba(255,255,255,.2); }
.a-cbtn.text { background: var(--a-surface); border: 1px solid var(--a-line); }
.a-cbtn.text .ic2 { background: var(--a-brand-soft); color: var(--a-brand-ink); }
.a-cbtn.text small { color: var(--a-muted); }
.a-badge { position: absolute; top: 12px; right: 12px; font: 600 10.5px 'DM Mono', monospace; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.22); }
.a-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 2px; }
.a-item .who { font-weight: 600; min-width: 0; }
.a-item .who small { display: block; color: var(--a-muted); font-weight: 400; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-item .amt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.a-waiting { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: var(--a-surface); border: 1px solid var(--a-line); }
.a-field { display: flex; flex-direction: column; gap: 5px; }
.a-field label { font-size: 13px; font-weight: 600; }
.a-input { border: 1px solid var(--a-line); border-radius: 12px; padding: 11px 12px; font-size: 16px; background: var(--a-surface); color: #6b6a76; min-height: 46px; }
.a-input.filled { color: var(--a-fg); }
.a-field small { color: var(--a-muted); font-size: 12px; }
.a-rec { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 12px 0 6px; text-align: center; }
.a-recbtn { width: 132px; height: 132px; border-radius: 50%; background: var(--a-quote); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 12px var(--a-quote-soft); transition: opacity .3s; }
.a-recbtn.on { animation: a-pulse 1.4s ease-in-out infinite; }
.a-recbtn.dis { opacity: .45; }
@keyframes a-pulse { 50% { box-shadow: 0 0 0 22px var(--a-quote-soft); } }
.a-timer { font: 500 28px 'DM Mono', monospace; }
.a-btn { border-radius: 14px; padding: 12px; font: 600 14px 'DM Sans', sans-serif; border: 1px solid var(--a-line); background: var(--a-surface); color: var(--a-fg); display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; transition: opacity .3s; }
.a-btn.primary { background: var(--a-brand); border-color: var(--a-brand); color: #fff; }
.a-btn.voice { background: var(--a-quote-soft); border-color: transparent; color: var(--a-quote); }
.a-btn.busy { opacity: .6; }
.a-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a-actions .wide, .a-actions .primary { grid-column: 1 / -1; }
.a-actions .danger { grid-column: 1 / -1; justify-self: center; color: var(--a-quote); font: 600 13px 'DM Sans', sans-serif; }
.a-lines { display: flex; flex-direction: column; gap: 10px; }
.a-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; opacity: 0; transform: translateY(8px); transition: all .45s var(--ease); }
.a-line.on { opacity: 1; transform: none; }
.a-line .l { font-weight: 600; }
.a-line .q { grid-column: 1 / 2; color: var(--a-muted); font-size: 12px; }
.a-line .t { grid-row: 1 / 3; grid-column: 2; align-self: center; white-space: nowrap; }
.a-totals .a-row { padding: 3px 0; }
.a-totals .grand { font-weight: 700; font-size: 17px; border-top: 1px solid var(--a-line); margin-top: 6px; padding-top: 8px; }
.a-notice { background: var(--a-brand-soft); color: var(--a-brand-ink); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.a-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.a-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #4a4958; flex-shrink: 0; margin-top: 1px; transition: all .2s; }
.a-radio.on { border: 6px solid var(--a-brand); }
.a-tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 78px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--a-line); background: var(--a-surface); padding: 8px 6px 20px; }
.a-tab { color: var(--a-muted); font: 600 11px 'DM Sans', sans-serif; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: color .3s; }
.a-tab svg { width: 22px; height: 22px; }
.a-tab.cur { color: var(--a-brand-ink); }
.a-home-ind { position: absolute; bottom: 7px; left: 50%; width: 134px; height: 5px; margin-left: -67px; border-radius: 5px; background: #f1f0f5; z-index: 40; }
/* visionneuse PDF de l'app */
.a-pdf { position: absolute; inset: 0; z-index: 20; background: #525659; display: flex; flex-direction: column; opacity: 0; transform: translateY(30px); transition: opacity .35s, transform .5s var(--ease); pointer-events: none; }
.a-pdf.on { opacity: 1; transform: none; }
.a-pdf-bar { display: flex; align-items: center; gap: 8px; padding: 56px 10px 8px; background: var(--a-surface); border-bottom: 1px solid var(--a-line); }
.a-pdf-bar .t { flex: 1; font-weight: 600; font-size: 15px; }
.a-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; }
.a-page { margin: 14px auto; width: 343px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); padding: 22px 20px; font-size: 8.5px; line-height: 1.45; color: #222; transform-origin: top center; transition: transform 1.4s var(--ease); }
.a-pdf.on .a-page { transform: scale(1.02); }
.pdf-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 10px; border-bottom: 3px solid #2f6db5; margin-bottom: 12px; }
.pdf-logo { display: flex; align-items: center; gap: 6px; font: 800 13px 'DM Sans', sans-serif; color: #2f6db5; letter-spacing: -.2px; }
.pdf-logo i { width: 22px; height: 22px; border-radius: 6px; background: #2f6db5; color: #fff; display: grid; place-items: center; font-style: normal; font-size: 9px; }
.pdf-title { text-align: right; }
.pdf-title b { display: block; font-size: 15px; color: #2f6db5; letter-spacing: .02em; }
.pdf-cols { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pdf-box { background: #f4f6f9; border-radius: 4px; padding: 6px 8px; min-width: 120px; }
.pdf-box b { display: block; font-size: 9px; }
.pdf-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.pdf-table th { background: #2f6db5; color: #fff; text-align: left; padding: 4px 5px; font-weight: 600; }
.pdf-table td { padding: 5px; border-bottom: 1px solid #e6e8ec; }
.pdf-table td:not(:first-child), .pdf-table th:not(:first-child) { text-align: right; white-space: nowrap; }
.pdf-tot { margin-left: auto; width: 150px; }
.pdf-tot div { display: flex; justify-content: space-between; padding: 2px 0; }
.pdf-tot .g { background: #2f6db5; color: #fff; padding: 4px 6px; border-radius: 3px; font-weight: 700; margin-top: 3px; }
.pdf-foot { margin-top: 16px; padding-top: 8px; border-top: 1px solid #e6e8ec; color: #777; font-size: 7.5px; }
.pdf-sign { display: flex; justify-content: space-between; margin-top: 12px; }
.pdf-sign div { width: 45%; height: 46px; border: 1px dashed #c9ccd2; border-radius: 4px; padding: 4px; color: #888; }
/* doigt virtuel */
.a-tap { position: absolute; z-index: 60; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255,255,255,.22); box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 6px 18px rgba(0,0,0,.5); opacity: 0; left: 50%; top: 60%; transition: left .6s var(--ease), top .6s var(--ease), opacity .3s, transform .15s; pointer-events: none; }
.a-tap.show { opacity: 1; }
.a-tap.press { transform: scale(.78); background: rgba(255,255,255,.4); }

@media (max-width: 1180px) { .demo-steps { display: none; } }
@media (max-width: 640px) { .phone { transform: none; } }
