/* Page démo animée : scène à taille fixe, mise à l'échelle par JS */
.demo-hero { padding-top: 56px; }
.dm-switch { display: flex; justify-content: center; gap: 6px; margin: 28px 0 18px; }
.dm-switch button { font: 600 13px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #CFCFCF; background: transparent; border: 1px solid var(--charcoal-line); padding: 10px 14px; cursor: pointer; }
.dm-switch button.is-on { background: #fff; color: var(--charcoal); border-color: #fff; }
.dm-wrap { position: relative; margin: 0 auto; overflow: hidden; }
.dm-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; font-family: var(--font-body); color: #1A1A1A; }
.dm-stage.mode-desktop { width: 1200px; height: 720px; }
.dm-stage.mode-mobile { width: 548px; height: 760px; }

/* --- Espace client */
.dm-app { position: absolute; background: #F4F4F2; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.5); }
.mode-desktop .dm-app { left: 0; top: 30px; width: 880px; height: 660px; border-radius: 12px; }
.mode-mobile .dm-app { left: 0; top: 0; width: 340px; height: 740px; border-radius: 44px; border: 10px solid #0B0B0B; box-shadow: 0 40px 90px rgba(0,0,0,.5), 0 0 0 2px #3A3A3A; }
.dm-app__chrome { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #E6E6E3; }
.dm-app__chrome i { width: 11px; height: 11px; border-radius: 50%; background: #C8C8C4; }
.dm-url { margin-left: 14px; flex: 1; background: #fff; border-radius: 6px; font-size: 13px; padding: 5px 12px; color: #555; }
.mode-mobile .dm-app__chrome { height: 50px; padding: 18px 16px 0; background: #fff; }
.mode-mobile .dm-app__chrome i { display: none; }
.mode-mobile .dm-url { margin: 0; text-align: center; background: #F0F0EE; font-size: 12px; }
.dm-app__body { display: flex; height: calc(100% - 38px); }
.mode-mobile .dm-app__body { height: calc(100% - 50px); }
.dm-side { width: 180px; background: #1A1A1A; color: #BDBDBD; padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.mode-mobile .dm-side { display: none; }
.dm-side__item { padding: 8px 10px; border-radius: 6px; }
.dm-side__item.is-on { background: #2C2C2C; color: #fff; }
.dm-logo { font-family: var(--font-display); font-weight: 900; font-size: 22px; color: #fff; margin-bottom: 18px; letter-spacing: -.02em; }
.dm-logo span, .dm-logo--form span { color: var(--red); }
.dm-logo--form { color: #1A1A1A; display: block; text-align: center; margin-bottom: 6px; }
.dm-main { position: relative; flex: 1; overflow: hidden; }
.dm-screen { position: absolute; inset: 0; padding: 30px 34px; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .45s; pointer-events: none; }
.mode-mobile .dm-screen { padding: 20px 18px; }
.dm-screen.is-on { opacity: 1; transform: none; }
.dm-screen h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; margin: 0 0 6px; }
.dm-head p { margin: 0 0 22px; color: #666; font-size: 15px; line-height: 1.45; }

/* formulaire */
.dm-form { max-width: 380px; margin: 10px auto 0; background: #fff; border-radius: 14px; padding: 26px 26px 24px; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.mode-mobile .dm-form { padding: 20px 18px; margin-top: 0; box-shadow: none; }
.dm-form h3 { text-align: center; margin-bottom: 16px; font-size: 20px; }
.dm-form label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 12px; }
.dm-input { display: block; height: 42px; margin-top: 5px; border: 1px solid #DADAD6; border-radius: 8px; padding: 0 12px; font-size: 15px; font-weight: 400; line-height: 40px; color: #1A1A1A; white-space: nowrap; overflow: hidden; }
.dm-input.is-focus { border-color: #1A1A1A; box-shadow: 0 0 0 3px rgba(26,26,26,.08); }
.dm-input.is-focus::after { content: ""; display: inline-block; width: 1.5px; height: 18px; background: #1A1A1A; vertical-align: -3px; margin-left: 1px; animation: dmblink 1s steps(1) infinite; }
@keyframes dmblink { 50% { opacity: 0; } }
.dm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; background: var(--red); color: #fff; font: 700 14px/1 var(--font-display); letter-spacing: .02em; border-radius: 8px; transition: transform .15s, background .2s; margin: 0 6px 8px 0; }
.dm-btn em { font-style: normal; }
.dm-btn--full { width: 100%; margin: 8px 0 0; }
.dm-btn--ghost { background: #fff; color: #1A1A1A; border: 1px solid #CFCFCB; }
.dm-btn.is-press { transform: scale(.96); }
.dm-btn.is-ok { background: #2E7D4F; }

/* univers */
.dm-univ { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mode-mobile .dm-univ { grid-template-columns: repeat(2, 1fr); gap: 9px; }
.dm-univ__tile { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 2px solid transparent; border-radius: 12px; padding: 16px 14px; font-weight: 600; font-size: 15px; transition: border-color .2s, transform .2s; }
.mode-mobile .dm-univ__tile { padding: 12px; flex-direction: row; align-items: center; font-size: 14px; }
.dm-univ__tile.is-on { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.dm-univ__dot { width: 34px; height: 34px; border-radius: 9px; display: block; flex: none; }
.u-immobilier { background: linear-gradient(135deg, #0F2A44, #C8A24A); }
.u-beaute { background: linear-gradient(135deg, #F3E9DF, #B08D57); }
.u-restaurant { background: linear-gradient(135deg, #3B2416, #D9822B); }
.u-courtier { background: linear-gradient(135deg, #10314F, #3BA3D0); }
.u-btp { background: linear-gradient(135deg, #222, #F2B705); }
.u-finance { background: linear-gradient(135deg, #0E3B34, #C9B37E); }
.u-travaux { background: linear-gradient(135deg, #2D3A2E, #E36B2C); }
.u-commerce { background: linear-gradient(135deg, #1A1A1A, #E31E24); }

/* onglets éditeur */
.dm-tabs { display: flex; gap: 4px; border-bottom: 1px solid #DDD; margin-bottom: 22px; font-size: 14px; font-weight: 600; color: #888; }
.dm-tabs span { padding: 0 10px 10px; }
.mode-mobile .dm-tabs span { padding: 0 7px 10px; font-size: 13px; }
.dm-tabs .is-on { color: #1A1A1A; box-shadow: inset 0 -3px 0 var(--red); }
.dm-label { margin: 18px 0 10px; font: 600 12.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #777; }
.dm-swatches { display: flex; gap: 12px; }
.dm-sw { width: 40px; height: 40px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #F4F4F2, 0 0 0 4px transparent; transition: box-shadow .2s; }
.dm-sw.is-on { box-shadow: 0 0 0 3px #F4F4F2, 0 0 0 5px #1A1A1A; }
.dm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2px solid #E2E2DE; border-radius: 10px; padding: 9px 13px; font-size: 14px; font-weight: 600; transition: border-color .2s; }
.dm-chip b { font-size: 18px; }
.dm-chip.is-on { border-color: var(--red); }

/* lignes de blocs */
.dm-rows { display: flex; flex-direction: column; gap: 8px; position: relative; }
.dm-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 10px 12px; font-size: 14.5px; font-weight: 600; box-shadow: 0 2px 6px rgba(0,0,0,.04); transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .2s, opacity .3s; }
.dm-row__grip { color: #AAA; letter-spacing: -2px; font-size: 14px; }
.dm-row__ico { width: 28px; height: 28px; border-radius: 7px; background: #F0EEE9; display: grid; place-items: center; font-size: 13px; }
.dm-row__name { flex: 1; }
.dm-row__w { display: flex; border: 1px solid #DDD; border-radius: 7px; overflow: hidden; font-size: 12px; }
.dm-row__w span { padding: 4px 8px; color: #888; }
.dm-row__w span.is-on { background: #1A1A1A; color: #fff; }
.dm-row.is-drag { box-shadow: 0 16px 34px rgba(0,0,0,.16); z-index: 3; position: relative; }
.dm-row.is-new { animation: dmin .5s both; }
@keyframes dmin { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.dm-addrow { position: relative; margin-top: 14px; }
.dm-picker { position: absolute; left: 0; top: 50px; display: flex; gap: 6px; background: #fff; border-radius: 10px; padding: 8px; box-shadow: 0 14px 30px rgba(0,0,0,.12); opacity: 0; transform: translateY(-6px); transition: .25s; }
.dm-picker.is-open { opacity: 1; transform: none; }
.dm-picker span { padding: 8px 10px; border-radius: 7px; font-size: 13.5px; font-weight: 600; background: #F4F4F2; }
.dm-picker span.is-hl { background: #1A1A1A; color: #fff; }

/* partage */
.dm-share { display: flex; gap: 28px; align-items: flex-start; }
.mode-mobile .dm-share { flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.dm-qr { width: 220px; height: 220px; background: #fff; padding: 16px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.08); flex: none; transform: scale(.85); opacity: 0; transition: .5s cubic-bezier(.2,.8,.2,1); }
.mode-mobile .dm-qr { width: 190px; height: 190px; }
.is-on .dm-qr { transform: none; opacity: 1; }
.dm-qr svg { width: 100%; height: 100%; display: block; }
.dm-link { font-family: var(--font-mono); font-weight: 600; font-size: 17px; margin: 0 0 18px; color: #1A1A1A; }

.dm-toast { position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: #1A1A1A; color: #fff; padding: 10px 16px; border-radius: 30px; font-size: 13.5px; font-weight: 600; opacity: 0; transition: .3s; white-space: nowrap; }
.dm-toast::before { content: "✓ "; color: #5BD08A; }
.dm-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --- Téléphone : carte publique */
.dm-phone { position: absolute; background: #0B0B0B; padding: 10px; border-radius: 46px; box-shadow: 0 40px 90px rgba(0,0,0,.55), inset 0 0 0 2px #3A3A3A; z-index: 2; }
.mode-desktop .dm-phone { left: 860px; top: 0; width: 330px; height: 700px; }
.mode-mobile .dm-phone { left: 320px; top: 250px; width: 228px; height: 490px; border-radius: 36px; padding: 8px; transform-origin: 100% 100%; }
.dm-phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 20px; background: #0B0B0B; z-index: 3; }
.mode-mobile .dm-phone::before { width: 62px; height: 18px; top: 14px; }
.dm-phone__screen { width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #fff; position: relative; }
.mode-mobile .dm-phone__screen { border-radius: 29px; }
.mode-mobile .dm-card { width: 310px; transform: scale(.682); transform-origin: 0 0; }

.dm-card { --bg: #F5F5F3; --fg: #1A1A1A; --muted: #8A8A8A; --accent: #E31E24; --surface: #fff; --hf: Montserrat, sans-serif; --bf: 'Hanken Grotesk', sans-serif;
  min-height: 100%; width: 310px; background: var(--bg); color: var(--fg); font-family: var(--bf); padding: 58px 20px 24px; transition: background .5s, color .5s; position: relative; }
.dm-card * { transition: background .5s, color .5s, border-color .5s; }
.dm-card.is-empty { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.dm-skel { width: 100%; height: 44px; border-radius: 10px; background: linear-gradient(90deg, #ECECEA 25%, #F6F6F4 50%, #ECECEA 75%); background-size: 200% 100%; animation: dmskel 1.4s infinite linear; }
.dm-skel--av { width: 92px; height: 92px; border-radius: 50%; margin-bottom: 8px; }
.dm-skel--t { width: 70%; height: 20px; }
.dm-skel--s { width: 45%; height: 14px; margin-bottom: 14px; }
@keyframes dmskel { to { background-position: -200% 0; } }
.dm-cover { position: absolute; left: 0; right: 0; top: 0; height: 0; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #000)); transition: height .5s; }
.dm-card.is-cover .dm-cover { height: 140px; }
.dm-card.is-cover { padding-top: 84px; }
.dm-av { position: relative; width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font: 600 34px/1 var(--hf); color: #fff;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent)); box-shadow: 0 0 0 4px var(--bg); }
.dm-name { position: relative; text-align: center; font: 700 27px/1.05 var(--hf); letter-spacing: -.01em; margin: 0; }
.dm-job { text-align: center; color: var(--muted); font-size: 14px; margin: 6px 0 2px; }
.dm-org { text-align: center; font: 600 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 8px 0 20px; }
.dm-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.dm-b { grid-column: span 2; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 12px; background: var(--surface); font-weight: 600; font-size: 14.5px; box-shadow: 0 2px 8px rgba(0,0,0,.05); animation: dmpop .45s both; }
.dm-b i { font-style: normal; width: 22px; text-align: center; color: var(--accent); }
.dm-b--accent { background: var(--accent); color: #fff; }
.dm-b--accent i { color: #fff; }
.dm-b--half { grid-column: span 1; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 8px; text-align: center; font-size: 13px; }
.dm-b--save { border: 1.5px solid var(--fg); background: transparent; box-shadow: none; }
.dm-b--save.is-pulse { animation: dmpulse 1.2s 2; }
@keyframes dmpulse { 50% { transform: scale(1.04); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); } }
.dm-hours { grid-column: span 2; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 12px; background: var(--surface); font-size: 13.5px; animation: dmpop .45s both; }
.dm-hours b { font-weight: 600; }
.dm-hours em { font-style: normal; font-size: 12px; font-weight: 700; color: #2E7D4F; background: #E4F3EA; padding: 3px 8px; border-radius: 20px; }
@keyframes dmpop { from { opacity: 0; transform: translateY(8px); } }
.dm-foot { text-align: center; font-size: 11px; color: var(--muted); margin-top: 18px; }

/* --- Curseur, fin */
.dm-cursor { position: absolute; left: 0; top: 0; z-index: 10; width: 26px; height: 26px; transition: transform .7s cubic-bezier(.45,.05,.25,1); pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.dm-cursor::after { content: ""; position: absolute; left: -10px; top: -10px; width: 26px; height: 26px; border-radius: 50%; background: rgba(227,30,36,.35); transform: scale(0); opacity: 0; }
.dm-cursor.is-click::after { animation: dmclick .45s; }
@keyframes dmclick { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.mode-mobile .dm-cursor { width: 34px; height: 34px; }
.mode-mobile .dm-cursor svg { display: none; }
.mode-mobile .dm-cursor::before { content: ""; position: absolute; left: -8px; top: -8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(26,26,26,.28); border: 2px solid rgba(255,255,255,.85); }
.dm-end { position: absolute; inset: 0; z-index: 12; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(20,20,20,.88); color: #fff; opacity: 0; pointer-events: none; transition: opacity .5s; border-radius: 14px; padding: 30px; }
.dm-end.is-on { opacity: 1; pointer-events: auto; }
.dm-end h2 { font-family: var(--font-display); font-weight: 900; font-size: 44px; text-transform: uppercase; margin: 6px 0 10px; }
.dm-end p { color: #CFCFCF; font-size: 19px; margin: 0 0 22px; }
.mode-mobile .dm-end h2 { font-size: 34px; }
.mode-mobile .dm-end .btn-row { flex-direction: column; }

/* étapes */
.dm-steps { list-style: none; padding: 0; margin: 26px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 980px; }
.dm-steps button { display: inline-flex; gap: 8px; align-items: center; background: transparent; border: 1px solid var(--charcoal-line); color: #BDBDBD; padding: 9px 13px; font: 600 13px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; position: relative; overflow: hidden; }
.dm-steps button span { color: var(--red); }
.dm-steps button.is-on { color: #fff; border-color: #fff; }
.dm-steps button.is-done { color: #fff; }
.dm-note { text-align: center; font-size: 13px; color: #8A8A8A; margin: 14px 0 0; }
@media (max-width: 640px) { .dm-steps button { font-size: 11.5px; padding: 8px 10px; } .dm-steps li:not(.is-cur) button span + * {} }
.mode-mobile .dm-card { min-height: 696px; }
