/* ==========================================================
   Démos du catalogue — tous les styles sont préfixés .dm-
   pour ne jamais interférer avec le reste du site.
   ========================================================== */
.stage { position: relative; overflow: hidden; min-height: 320px; padding: 28px; display: flex; align-items: center; justify-content: center; background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 12%, transparent) 1px, transparent 0) 0 0 / 18px 18px, var(--bg-2);
  border-radius: var(--radius); border: 1px solid var(--line); font-size: .95rem; line-height: 1.5; }
.stage * { box-sizing: border-box; }
.stage [hidden] { display: none !important; }
.stage-inner { width: 100%; max-width: 560px; margin: auto; }
.stage h4, .stage h5 { margin: 0 0 .35em; letter-spacing: -.01em; }
.stage p { margin: 0 0 .6em; }
.dm-muted { color: var(--muted); }
.dm-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dm-stack { display: grid; gap: 14px; }
.dm-ph { height: 12px; border-radius: 6px; background: var(--line); margin-bottom: 10px; }
.dm-link { color: var(--brand); font-weight: 650; text-decoration: none; }
.dm-link:hover { text-decoration: underline; }
.dm-x { background: transparent; border: 0; color: inherit; opacity: .6; cursor: pointer; font-size: 1rem; padding: 4px 8px; border-radius: 6px; }
.dm-x:hover { opacity: 1; background: rgba(127,127,127,.15); }
.dm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ----- Boutons ----- */
.dm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: inherit; font-weight: 650; font-size: .9rem; line-height: 1.2; padding: .65em 1.15em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, opacity .15s; color: var(--ink); background: var(--surface); }
.dm-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(27,26,34,.18); }
.dm-btn:active:not(:disabled) { transform: translateY(0) scale(.97); box-shadow: none; }
.dm-btn:disabled { opacity: .45; cursor: not-allowed; }
.dm-btn-primary { background: var(--brand); color: var(--on-brand); }
.dm-btn-secondary { background: var(--surface); border-color: var(--line); }
.dm-btn-ghost { background: transparent; border-color: var(--ink); }
.dm-btn-danger { background: var(--danger); color: #fff; }
.dm-btn-light { background: #fff; color: #1b1a22; }
.dm-btn-sm { font-size: .8rem; padding: .45em .9em; }
.dm-btn-lg { font-size: 1.05rem; padding: .85em 1.6em; }
.dm-btn.loading { pointer-events: none; opacity: .85; }

.dm-badge { display: inline-block; font-size: .72rem; font-weight: 750; padding: .2em .7em; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.dm-badge.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.dm-badge.warn { background: var(--js-soft); color: #9a6f00; }
.dm-badge.err { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
:root[data-theme="dark"] .dm-badge.warn { color: #ffd25a; }

/* ----- Chargeurs ----- */
@keyframes dm-spin { to { transform: rotate(360deg); } }
.dm-spin { width: 34px; height: 34px; border: 4px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: dm-spin .8s linear infinite; display: inline-block; }
.dm-spin-sm { width: 14px; height: 14px; border-width: 2px; border-color: rgba(255,255,255,.4); border-top-color: #fff; }
.dm-dots { display: inline-flex; gap: 6px; }
.dm-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--brand); animation: dm-bounce 1s ease-in-out infinite; }
.dm-dots i:nth-child(2) { animation-delay: .15s; } .dm-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dm-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-10px); opacity: 1; } }
.dm-pulse { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); animation: dm-pulse 1.2s ease-out infinite; }
@keyframes dm-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 60%, transparent); } 100% { box-shadow: 0 0 0 22px transparent; } }
.dm-skel-card { display: flex; gap: 14px; padding: 16px; background: var(--surface); border-radius: 14px; border: 1px solid var(--line); }
.dm-skel { background: linear-gradient(90deg, var(--line) 25%, color-mix(in srgb, var(--line) 40%, var(--surface)) 50%, var(--line) 75%); background-size: 200% 100%; animation: dm-shimmer 1.4s linear infinite; border-radius: 6px; }
@keyframes dm-shimmer { to { background-position: -200% 0; } }
.dm-progress { height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; }
.dm-bar { height: 100%; background: linear-gradient(90deg, var(--brand), var(--html)); border-radius: 999px; transition: width .2s; }

/* ----- Structure ----- */
.dm-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; flex-wrap: wrap; }
.dm-header nav { display: flex; gap: 6px; }
.dm-header nav a, .dm-logo { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; font-weight: 600; }
.dm-header nav a:hover { background: var(--bg-2); color: var(--ink); }
.dm-logo { color: var(--ink); font-weight: 800; padding-left: 0; }
.dm-hero { text-align: center; padding: 44px 24px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #5b3df5, #ff6b3d); }
.dm-hero h4 { font-size: 1.9rem; line-height: 1.15; margin: 10px 0; }
.dm-hero p { opacity: .9; }
.dm-hero .dm-row { justify-content: center; margin-top: 16px; }
.dm-hero .dm-badge { background: rgba(255,255,255,.22); color: #fff; }
.dm-hero .dm-btn-primary { background: #fff; color: #5b3df5; }
.dm-hero .dm-btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.dm-footer { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; padding: 26px; background: #17161d; color: #cfcce0; border-radius: 14px; }
.dm-footer h5 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.dm-footer a { display: block; color: #cfcce0; text-decoration: none; margin: 4px 0; } .dm-footer a:hover { color: #fff; }
.dm-footer small { grid-column: 1 / -1; border-top: 1px solid #2c2a3a; padding-top: 12px; color: #8f8ca3; }
.dm-layout { display: grid; grid-template-columns: 170px 1fr; min-height: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dm-aside { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--bg-2); border-right: 1px solid var(--line); }
.dm-aside a { padding: 8px 12px; text-decoration: none; color: var(--muted); border-radius: 8px; font-weight: 600; transition: .2s; }
.dm-aside a:hover { background: var(--surface); color: var(--ink); }
.dm-aside a.active { background: var(--brand); color: var(--on-brand); }
.dm-main { padding: 18px; }
.dm-grid { display: grid; gap: 10px; transition: .3s; }
.dm-cell { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 0; text-align: center; font-weight: 750; color: var(--brand); }

/* ----- Navigation ----- */
.dm-navbar { display: flex; gap: 6px; padding: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; justify-content: center; flex-wrap: wrap; }
.dm-navbar a { position: relative; padding: 8px 10px; color: var(--muted); text-decoration: none; font-weight: 650; }
.dm-navbar a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.dm-navbar a:hover, .dm-navbar a.active { color: var(--ink); }
.dm-navbar a:hover::after, .dm-navbar a.active::after { transform: scaleX(1); }
.dm-burger-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dm-burger-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; }
.dm-burger { width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; display: grid; place-content: center; gap: 5px; border-radius: 10px; }
.dm-burger:hover { background: var(--bg-2); }
.dm-burger span { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .2s; }
.dm-burger-wrap.open .dm-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.dm-burger-wrap.open .dm-burger span:nth-child(2) { opacity: 0; }
.dm-burger-wrap.open .dm-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.dm-burger-menu { display: grid; max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.dm-burger-wrap.open .dm-burger-menu { max-height: 200px; }
.dm-burger-menu a { padding: 12px 18px; color: var(--ink); text-decoration: none; font-weight: 600; border-top: 1px solid var(--line); }
.dm-burger-menu a:hover { background: var(--bg-2); }
.dm-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.dm-breadcrumb a { color: var(--brand); text-decoration: none; font-weight: 600; } .dm-breadcrumb a:hover { text-decoration: underline; }
.dm-breadcrumb span { color: var(--muted); } .dm-breadcrumb [aria-current] { color: var(--ink); font-weight: 700; }
.dm-tabs { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dm-tablist { display: flex; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.dm-tablist button { flex: 1; padding: 12px 8px; border: 0; background: transparent; cursor: pointer; font: inherit; font-weight: 650; color: var(--muted); border-bottom: 3px solid transparent; transition: .2s; }
.dm-tablist button:hover { color: var(--ink); }
.dm-tablist button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); background: var(--surface); }
.dm-tabpanel { padding: 20px; animation: dm-fade .3s; }
@keyframes dm-fade { from { opacity: 0; transform: translateY(6px); } }
.dm-pagination { display: flex; gap: 6px; flex-wrap: wrap; }
.dm-pagination button { min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 650; cursor: pointer; transition: .15s; }
.dm-pagination button:hover:not(:disabled):not(.active) { border-color: var(--brand); color: var(--brand); }
.dm-pagination button.active { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.dm-pagination button:disabled { opacity: .4; cursor: not-allowed; }
.dm-dropdown { position: relative; display: inline-block; }
.dm-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 190px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 5; animation: dm-fade .18s; }
.dm-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 550; }
.dm-menu a:hover { background: var(--brand-soft); color: var(--brand); }
.dm-drawer-ov { position: absolute; inset: 0; background: rgba(10,10,20,.45); z-index: 8; animation: dm-fade .25s; }
.dm-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(280px, 80%); background: var(--surface); padding: 18px; display: flex; flex-direction: column; gap: 6px; transform: translateX(105%); transition: transform .35s cubic-bezier(.2,.8,.2,1); z-index: 9; box-shadow: -12px 0 30px rgba(0,0,0,.2); }
.dm-drawer.open { transform: none; }
.dm-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

/* ----- Actions ----- */
.dm-fab-zone { position: absolute; inset: 0; padding: 22px; }
.dm-fab-menu { position: absolute; right: 22px; bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dm-fab, .dm-fab-item { border: 0; border-radius: 50%; cursor: pointer; color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.28); font: inherit; }
.dm-fab { width: 58px; height: 58px; background: var(--brand); font-size: 1.9rem; line-height: 1; transition: transform .3s; color: var(--on-brand); }
.dm-fab:hover { transform: scale(1.08); }
.dm-fab-menu.open .dm-fab { transform: rotate(45deg); }
.dm-fab-item { width: 44px; height: 44px; background: var(--html); transform: translateY(20px) scale(0); opacity: 0; transition: .3s; pointer-events: none; }
.dm-fab-menu.open .dm-fab-item { transform: none; opacity: 1; pointer-events: auto; }
.dm-fab-menu.open .dm-fab-item:nth-child(1) { transition-delay: .06s; }
.dm-fab-menu .dm-fab-item:nth-child(2) { background: var(--css); }
.dm-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; position: relative; }
.dm-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.dm-switch .dm-track { width: 48px; height: 28px; background: var(--line); border-radius: 999px; padding: 3px; transition: background .25s; flex: none; }
.dm-switch .dm-thumb { display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.3); transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.dm-switch input:checked + .dm-track { background: var(--brand); }
.dm-switch input:checked + .dm-track .dm-thumb { transform: translateX(20px); }
.dm-switch input:focus-visible + .dm-track { outline: 3px solid var(--brand); outline-offset: 2px; }
.dm-cta { text-align: center; padding: 38px 24px; border-radius: 22px; background: var(--brand); color: var(--on-brand); }
.dm-cta h4 { font-size: 1.6rem; } .dm-cta p { opacity: .85; margin-bottom: 18px; }

/* ----- Surimpressions ----- */
.dm-tip { position: relative; }
.dm-tip::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px); background: #1b1a22; color: #fff; padding: 7px 11px; border-radius: 8px; font-size: .78rem; font-weight: 550; line-height: 1.35; width: max-content; max-width: 220px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .18s .1s, transform .18s .1s; z-index: 5; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.dm-tip::before { content: ""; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #1b1a22; opacity: 0; transition: opacity .18s .1s; z-index: 5; }
.dm-tip:hover::after, .dm-tip:focus-visible::after, .dm-tip:hover::before, .dm-tip:focus-visible::before { opacity: 1; }
.dm-tip:hover::after, .dm-tip:focus-visible::after { transform: translateX(-50%); }
.dm-tip-bottom::after { bottom: auto; top: calc(100% + 10px); } .dm-tip-bottom::before { bottom: auto; top: calc(100% + 4px); border-top-color: transparent; border-bottom-color: #1b1a22; }
.dm-tip-link { border-bottom: 2px dotted var(--brand); cursor: help; font-weight: 700; color: var(--brand); }
.dm-pop-wrap { position: relative; display: inline-block; }
.dm-popover { position: absolute; top: calc(100% + 10px); left: 0; width: 260px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 5; animation: dm-pop .18s ease-out; transform-origin: top left; }
.dm-popover::before { content: ""; position: absolute; top: -7px; left: 22px; width: 12px; height: 12px; background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
@keyframes dm-pop { from { opacity: 0; transform: scale(.95); } }
.dm-modal-ov { position: absolute; inset: 0; background: rgba(10,10,20,.55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; z-index: 10; animation: dm-fade .2s; }
.dm-modal { background: var(--surface); width: min(380px, 100%); padding: 24px; border-radius: 18px; box-shadow: var(--shadow); animation: dm-pop .25s cubic-bezier(.2,1.2,.4,1); }
.dm-toasts { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; z-index: 10; }
.dm-toast { background: #1b1a22; color: #fff; padding: 11px 16px; border-radius: 12px; font-weight: 600; font-size: .88rem; box-shadow: var(--shadow); transform: translateY(16px); opacity: 0; transition: .3s; border-left: 4px solid var(--ok); }
.dm-toast.err { border-left-color: var(--danger); } .dm-toast.in { transform: none; opacity: 1; }
.dm-alert { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px; border-left: 4px solid; background: var(--surface); }
.dm-alert p { margin: 0; flex: 1; } .dm-alert > span { font-weight: 800; }
.dm-alert.info { border-color: var(--css); background: var(--css-soft); } .dm-alert.ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, var(--surface)); }
.dm-alert.warn { border-color: var(--js); background: var(--js-soft); } .dm-alert.err { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
.dm-bell { position: relative; font-size: 1.1rem; }
.dm-dot { position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg-2); }
.dm-dot[hidden] { display: none; }

/* ----- Contenu ----- */
.dm-card-demo { display: grid; place-items: center; }
.dm-card { width: 290px; background: var(--surface); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.dm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.dm-card-img { height: 130px; background: linear-gradient(135deg, #5b3df5, #ff6b3d 60%, #f2b705); transition: transform .5s; }
.dm-card:hover .dm-card-img { transform: scale(1.06); }
.dm-card > .dm-card-img { overflow: hidden; }
.dm-card-body { padding: 16px; position: relative; background: var(--surface); } .dm-card-body h4 { margin: 8px 0 4px; }
.dm-like { border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; color: var(--muted); transition: transform .2s; line-height: 1; }
.dm-like:hover { transform: scale(1.2); } .dm-like[aria-pressed="true"] { color: var(--danger); animation: dm-pop2 .35s; }
@keyframes dm-pop2 { 50% { transform: scale(1.5); } }
.dm-acc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dm-acc-item + .dm-acc-item { border-top: 1px solid var(--line); }
.dm-acc-item > button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; border: 0; background: transparent; font: inherit; font-weight: 650; color: var(--ink); cursor: pointer; text-align: left; }
.dm-acc-item > button:hover { background: var(--bg-2); }
.dm-acc-item > button i { font-style: normal; font-size: 1.2rem; color: var(--brand); transition: transform .3s; }
.dm-acc-item.open > button i { transform: rotate(135deg); }
.dm-acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.dm-acc-panel > div { overflow: hidden; } .dm-acc-panel p { padding: 0 18px 16px; margin: 0; color: var(--muted); }
.dm-acc-item.open .dm-acc-panel { grid-template-rows: 1fr; }
.dm-carousel { position: relative; border-radius: 16px; overflow: hidden; outline-offset: 3px; }
.dm-viewport { overflow: hidden; border-radius: 16px; }
.dm-carousel .dm-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.dm-slide { flex: 0 0 100%; height: 200px; display: grid; place-content: center; text-align: center; color: #fff; user-select: none; }
.dm-slide b { font-size: 1.8rem; } .dm-slide span { opacity: .9; }
.dm-slide.s1 { background: linear-gradient(135deg, #5b3df5, #8b78ff); } .dm-slide.s2 { background: linear-gradient(135deg, #ff6b3d, #f2b705); }
.dm-slide.s3 { background: linear-gradient(135deg, #2f7cf6, #22c1c3); } .dm-slide.s4 { background: linear-gradient(135deg, #1f9d63, #b4e33d); }
.dm-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #1b1a22; font-size: 1.4rem; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.25); transition: transform .15s; z-index: 2; }
.dm-arrow:hover { transform: translateY(-50%) scale(1.1); } .dm-arrow.prev { left: 10px; } .dm-arrow.next { right: 10px; }
.dm-dots-nav { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.dm-dots-nav button { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: .3s; }
.dm-dots-nav button.on { background: #fff; width: 24px; }
.dm-play { position: absolute; top: 10px; right: 10px; font: 700 .72rem var(--font); border: 0; border-radius: 99px; padding: 6px 12px; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; z-index: 2; }
.dm-timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 3px solid var(--line); }
.dm-timeline li { position: relative; padding: 0 0 22px 6px; display: grid; } .dm-timeline li:last-child { padding-bottom: 0; }
.dm-timeline li::before { content: ""; position: absolute; left: -36px; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: var(--bg-2); border: 3px solid var(--line); }
.dm-timeline li.done::before { background: var(--brand); border-color: var(--brand); }
.dm-timeline li.now::before { background: var(--brand); border-color: var(--brand-soft); animation: dm-pulse 1.4s infinite; }
.dm-timeline b { font-size: 1.05rem; } .dm-timeline span { color: var(--muted); }
.dm-testi { margin: 0; padding: 26px; background: var(--surface); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }
.dm-stars { color: #f5b301; letter-spacing: 3px; }
.dm-testi blockquote { margin: 10px 0 18px; font-size: 1.12rem; line-height: 1.5; font-style: italic; }
.dm-testi figcaption { display: flex; align-items: center; gap: 12px; line-height: 1.3; }
.dm-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: inline-grid; place-items: center; font-weight: 750; font-size: .82rem; flex: none; }
.dm-pricing-top { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 600; }
.dm-sw-only .dm-track { width: 48px; }
.dm-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: center; }
.dm-pricing article { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 16px; text-align: center; position: relative; }
.dm-pricing article.pop { border: 2px solid var(--brand); transform: scale(1.05); box-shadow: var(--shadow); padding-top: 28px; }
.dm-price { font-size: 1.1rem; margin: 6px 0; } .dm-price b { font-size: 2.2rem; letter-spacing: -.03em; } .dm-price small { color: var(--muted); }
.dm-pricing ul { list-style: none; padding: 0; margin: 12px 0 16px; color: var(--muted); font-size: .85rem; } .dm-pricing li { padding: 3px 0; }
.dm-pricing li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.dm-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: var(--on-brand); font-size: .7rem; font-weight: 800; padding: 3px 12px; border-radius: 99px; text-transform: uppercase; letter-spacing: .05em; }
.dm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.dm-table { width: 100%; border-collapse: collapse; }
.dm-table th, .dm-table td { padding: 12px 16px; text-align: left; } .dm-table .num { text-align: right; }
.dm-table th { background: var(--bg-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); cursor: pointer; user-select: none; white-space: nowrap; }
.dm-table th:hover { color: var(--brand); } .dm-table th i { font-style: normal; opacity: .5; }
.dm-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--bg-2) 60%, transparent); } .dm-table tbody tr:hover { background: var(--brand-soft); }
.dm-avatars { display: flex; } .dm-avatars .dm-avatar + .dm-avatar { margin-left: -12px; } .dm-avatars .dm-avatar { border: 3px solid var(--bg-2); width: 46px; height: 46px; }
.dm-avatar.a1 { background: #5b3df5; color: #fff; } .dm-avatar.a2 { background: #ff6b3d; color: #fff; } .dm-avatar.a3 { background: #2f7cf6; color: #fff; } .dm-avatar.a4 { background: var(--line); color: var(--ink); }
.dm-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.dm-chip { font: 600 .84rem var(--font); padding: 6px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: .15s; display: inline-flex; align-items: center; gap: 6px; }
.dm-chip:hover { border-color: var(--brand); } .dm-chip.active { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.dm-chip.rem { cursor: default; background: var(--brand-soft); border-color: transparent; color: var(--brand); } .dm-chip.rem button { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0 2px; }
.dm-stepper { display: flex; list-style: none; margin: 0 0 16px; padding: 0; counter-reset: s; }
.dm-stepper li { flex: 1; display: grid; justify-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); position: relative; text-align: center; }
.dm-stepper li::after { content: ""; position: absolute; top: 15px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 3px; background: var(--line); border-radius: 2px; }
.dm-stepper li:last-child::after { display: none; } .dm-stepper li.done::after { background: var(--ok); }
.dm-stepper i { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-weight: 750; transition: .25s; }
.dm-stepper li.current { color: var(--ink); } .dm-stepper li.current i { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.dm-stepper li.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.dm-compare { position: relative; height: 180px; border-radius: 16px; overflow: hidden; user-select: none; }
.dm-after, .dm-before { position: absolute; inset: 0; display: grid; place-content: center; font-weight: 800; font-size: 1.7rem; letter-spacing: .1em; color: #fff; }
.dm-after { background: linear-gradient(135deg, #5b3df5, #ff6b3d 70%, #f2b705); } .dm-before { background: linear-gradient(135deg, #6c6a77, #9b99a6); }
.dm-handle { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 8px rgba(0,0,0,.4); }
.dm-handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #222; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0,0,0,.35); font-weight: 800; }
.dm-compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.dm-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dm-gallery button { aspect-ratio: 1; border: 0; border-radius: 12px; cursor: zoom-in; transition: transform .2s, filter .2s; }
.dm-gallery button:hover { transform: scale(1.06); filter: brightness(1.08); }
.g1 { background: linear-gradient(135deg, #5b3df5, #8b78ff); } .g2 { background: linear-gradient(135deg, #ff6b3d, #f2b705); } .g3 { background: linear-gradient(135deg, #2f7cf6, #22c1c3); } .g4 { background: linear-gradient(135deg, #1f9d63, #b4e33d); }
.dm-lb { position: absolute; inset: 0; background: rgba(8,8,14,.93); display: grid; place-items: center; z-index: 10; animation: dm-fade .25s; }
.dm-lb .dm-x { position: absolute; top: 10px; right: 12px; color: #fff; font-size: 1.3rem; z-index: 3; }
.dm-lb-img { width: 66%; height: 70%; border-radius: 14px; } .dm-lb-count { position: absolute; bottom: 12px; color: #fff; opacity: .8; font-weight: 600; font-size: .85rem; }

/* ----- Formulaires ----- */
.dm-form { display: grid; gap: 14px; background: var(--surface); padding: 22px; border-radius: 16px; border: 1px solid var(--line); }
.dm-field { display: grid; gap: 6px; } .dm-field label, .dm-range-demo label { font-weight: 650; font-size: .88rem; }
.dm-field input, .dm-search input, .dm-select { font: inherit; padding: .7em .95em; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); transition: border-color .15s, box-shadow .15s; width: 100%; }
.dm-select { width: auto; padding: .4em .7em; }
.dm-field input:focus, .dm-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.dm-field input.invalid { border-color: var(--danger); } .dm-field input.valid { border-color: var(--ok); }
.dm-help { font-size: .8rem; color: var(--muted); } .dm-help.ok { color: var(--ok); } .dm-help.err { color: var(--danger); }
.dm-fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); display: grid; gap: 10px; align-content: start; } .dm-fieldset legend { font-weight: 700; font-size: .8rem; padding: 0 6px; color: var(--muted); }
.dm-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 550; position: relative; }
.dm-check input { position: absolute; opacity: 0; }
.dm-check span { width: 22px; height: 22px; border: 2px solid var(--muted); border-radius: 7px; display: grid; place-items: center; transition: .18s; flex: none; }
.dm-check.radio span { border-radius: 50%; }
.dm-check span::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .18s cubic-bezier(.3,1.6,.5,1); }
.dm-check.radio span::after { width: 8px; height: 8px; border: 0; background: #fff; border-radius: 50%; transform: scale(0); margin: 0; }
.dm-check input:checked + span { background: var(--brand); border-color: var(--brand); } .dm-check input:checked + span::after { transform: rotate(-45deg) scale(1); }
.dm-check.radio input:checked + span::after { transform: scale(1); }
.dm-check input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.dm-range-demo { background: var(--surface); padding: 22px; border-radius: 16px; border: 1px solid var(--line); display: grid; gap: 12px; }
.dm-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--brand) var(--p, 50%), var(--line) var(--p, 50%)); outline: none; }
.dm-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); cursor: grab; box-shadow: 0 2px 8px rgba(0,0,0,.3); transition: transform .15s; }
.dm-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.dm-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); cursor: grab; }
.dm-search { position: relative; }
.dm-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 5; }
.dm-suggest li { padding: 9px 12px; border-radius: 8px; cursor: pointer; } .dm-suggest li.active, .dm-suggest li:hover { background: var(--brand-soft); } .dm-suggest li.none { color: var(--muted); cursor: default; }
.dm-suggest b { color: var(--brand); }
.dm-rating { display: inline-flex; gap: 4px; } .dm-rating button { border: 0; background: transparent; font-size: 2rem; color: var(--line); cursor: pointer; padding: 0 2px; transition: transform .15s, color .15s; line-height: 1; }
.dm-rating button.on { color: #f5b301; } .dm-rating button:hover { transform: scale(1.25) rotate(-8deg); }

/* ----- Animations ----- */
.dm-hover-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; }
.dm-hv { height: 100px; border-radius: 16px; display: grid; place-content: center; font-weight: 700; text-align: center; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, background .3s; position: relative; overflow: hidden; }
.dm-hv.lift:hover { transform: translateY(-10px); box-shadow: 0 18px 28px rgba(27,26,34,.25); }
.dm-hv.zoom span { transition: transform .4s; } .dm-hv.zoom:hover span { transform: scale(1.5); } .dm-hv.zoom:hover { background: var(--brand-soft); color: var(--brand); }
.dm-hv.fill span { position: relative; z-index: 1; transition: color .3s; } .dm-hv.fill::before { content: ""; position: absolute; inset: 0; background: var(--brand); transform: translateY(101%); transition: transform .35s; }
.dm-hv.fill:hover::before { transform: none; } .dm-hv.fill:hover span { color: var(--on-brand); }
.dm-hv.tilt:hover { transform: rotate(-5deg) scale(1.08); background: var(--js-soft); }
.dm-ease { display: grid; gap: 16px; background: var(--surface); padding: 20px; border-radius: 16px; border: 1px solid var(--line); }
.dm-ease label { font-weight: 600; font-size: .85rem; display: grid; gap: 4px; }
.dm-ease-track { position: relative; height: 40px; background: var(--bg-2); border-radius: 99px; }
.dm-ease-dot { position: absolute; left: 4px; top: 4px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.dm-keyframes { width: 40px; height: 40px; display: grid; place-items: end center; } .dm-keyframes i { width: 16px; height: 16px; border-radius: 50%; background: var(--html); animation: dm-ball 1s ease-in-out infinite; }
@keyframes dm-ball { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
.dm-scrollbox { width: 100%; height: 230px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; position: relative; }
.dm-scrollbox > p { padding: 14px; margin: 0; } .dm-scrollbox .center { text-align: center; }
.dm-rv-item { margin: 70px 20px; padding: 26px; background: var(--brand-soft); color: var(--brand); border-radius: 14px; font-weight: 700; opacity: 0; transform: translateY(40px) scale(.95); transition: opacity .6s, transform .6s cubic-bezier(.2,.8,.2,1); }
.dm-rv-item.in { opacity: 1; transform: none; }
.dm-parallax { padding: 0; }
.dm-par-scene { position: relative; height: 230px; overflow: hidden; }
.dm-par-layer { position: absolute; left: 0; right: 0; top: -320px; bottom: 0; will-change: transform; }
.dm-par-layer.l1 { background: linear-gradient(to bottom, #1b1060 0%, #5b3df5 45%, #ff9b6a 75%, #ffd479 100%); }
.dm-par-layer.l2 { background: #2a1d7a; clip-path: polygon(0 100%, 0 82%, 16% 68%, 34% 86%, 56% 64%, 78% 84%, 100% 70%, 100% 100%); }
.dm-par-layer.l3 { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 78px; color: #fff; font-weight: 900; letter-spacing: .16em; font-size: 2rem; text-shadow: 0 4px 16px rgba(0,0,0,.4); }
.dm-par-after { padding: 40px 20px 120px; text-align: center; background: var(--surface); position: relative; }
.dm-stk { margin: 0; } .dm-stk h5 { position: sticky; top: 0; margin: 0; padding: 10px 16px; background: var(--brand); color: var(--on-brand); z-index: 2; font-size: .95rem; }
.dm-stk p { margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dm-marquee { width: 100%; overflow: hidden; padding: 14px 0; background: var(--ink); color: var(--bg); border-radius: 12px; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.dm-marquee-track { display: flex; width: max-content; animation: dm-marq 16s linear infinite; }
.dm-marquee:hover .dm-marquee-track { animation-play-state: paused; }
.dm-marquee-track span { padding-right: 44px; font-weight: 700; white-space: nowrap; }
@keyframes dm-marq { to { transform: translateX(-50%); } }
.dm-type-line { font-size: clamp(1.3rem, 3.4vw, 1.9rem); font-weight: 750; text-align: center; letter-spacing: -.02em; min-height: 3.2em; } .dm-type { color: var(--brand); }
.dm-caret { display: inline-block; width: 3px; height: 1.1em; background: var(--brand); margin-left: 3px; vertical-align: text-bottom; animation: dm-blink 1s steps(1) infinite; }
@keyframes dm-blink { 50% { opacity: 0; } }
.dm-stats { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; } .dm-stats > div { flex: 1; min-width: 120px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 12px; display: grid; }
.dm-stats b { font-size: 2.3rem; letter-spacing: -.03em; color: var(--brand); font-variant-numeric: tabular-nums; } .dm-stats span { color: var(--muted); font-weight: 600; }
.dm-sortable { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dm-sortable li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: grab; transition: box-shadow .2s, opacity .2s; font-weight: 600; }
.dm-sortable li:hover { box-shadow: var(--shadow-sm); } .dm-sortable li span { color: var(--muted); letter-spacing: -.15em; }
.dm-sortable li.dragging { opacity: .35; border: 2px dashed var(--brand); }
.dm-themebox { --tb-bg: #fff; --tb-ink: #1b1a22; --tb-line: #e7e0d4; --tb-soft: #f3eee5; width: 100%; border-radius: 16px; overflow: hidden; border: 1px solid var(--tb-line); background: var(--tb-bg); color: var(--tb-ink); transition: background .4s, color .4s, border-color .4s; }
.dm-themebox[data-theme="dark"] { --tb-bg: #17161d; --tb-ink: #f1eff7; --tb-line: #34323f; --tb-soft: #23222c; }
.dm-themebar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--tb-soft); border-bottom: 1px solid var(--tb-line); transition: .4s; }
.dm-themebody { padding: 22px; } .dm-themebox .dm-btn-secondary { background: var(--tb-bg); color: var(--tb-ink); border-color: var(--tb-line); }
.dm-glass-stage { position: relative; width: 100%; height: 230px; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #1b1060, #5b3df5); display: grid; place-items: center; }
.dm-glass-stage i { position: absolute; border-radius: 50%; filter: blur(2px); animation: dm-float 7s ease-in-out infinite alternate; }
.dm-glass-stage .b1 { width: 130px; height: 130px; background: #ff6b3d; left: 14%; top: 12%; } .dm-glass-stage .b2 { width: 100px; height: 100px; background: #f2b705; right: 16%; bottom: 8%; animation-delay: -2s; } .dm-glass-stage .b3 { width: 80px; height: 80px; background: #22c1c3; right: 30%; top: 6%; animation-delay: -4s; }
@keyframes dm-float { to { transform: translate(26px, -22px) scale(1.12); } }
.dm-glass { position: relative; width: min(280px, 80%); padding: 22px; border-radius: 22px; color: #fff; background: rgba(255,255,255,.16); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border: 1px solid rgba(255,255,255,.4); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.dm-flip { width: 250px; height: 150px; perspective: 900px; border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; }
.dm-flip-in { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,1.2,.4,1); }
.dm-flip.flipped .dm-flip-in { transform: rotateY(180deg); }
.dm-flip-f, .dm-flip-b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 18px; display: grid; place-content: center; text-align: center; padding: 18px; font-weight: 750; font-size: 1.15rem; box-shadow: var(--shadow); }
.dm-flip-f { background: linear-gradient(135deg, #5b3df5, #8b78ff); color: #fff; } .dm-flip-f small { display: block; font-weight: 500; opacity: .8; margin-top: 6px; font-size: .78rem; }
.dm-flip-b { background: var(--surface); color: var(--ink); transform: rotateY(180deg); font-size: .95rem; font-weight: 600; border: 1px solid var(--line); }
.dm-heart { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--surface); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.dm-heart svg { fill: none; stroke: var(--muted); stroke-width: 2; transition: fill .2s, stroke .2s; } .dm-heart[aria-pressed="true"] svg { fill: var(--danger); stroke: var(--danger); }
.dm-heart.burst svg { animation: dm-heartpop .5s cubic-bezier(.34,1.56,.64,1); } @keyframes dm-heartpop { 0% { transform: scale(.6); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }
.dm-heart i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--danger); opacity: 0; }
.dm-heart i:nth-of-type(even) { background: var(--js); }
.dm-heart.burst i { animation: dm-spark .6s ease-out; } .dm-heart i:nth-of-type(1) { --a: 0deg; } .dm-heart i:nth-of-type(2) { --a: 60deg; } .dm-heart i:nth-of-type(3) { --a: 120deg; } .dm-heart i:nth-of-type(4) { --a: 180deg; } .dm-heart i:nth-of-type(5) { --a: 240deg; } .dm-heart i:nth-of-type(6) { --a: 300deg; }
@keyframes dm-spark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-14px); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-42px) scale(.4); } }
.dm-check-btn .dm-ok-ico { display: inline-block; width: 0; overflow: hidden; transition: width .3s; font-weight: 900; }
.dm-check-btn.done { background: var(--ok); } .dm-check-btn.done .dm-ok-ico { width: 1.1em; }

@media (max-width: 520px) {
  .stage { padding: 16px; }
  .dm-footer, .dm-grid2 { grid-template-columns: 1fr; }
  .dm-layout { grid-template-columns: 120px 1fr; }
}

/* Démos dont la racine est un bouton : on les centre */
.stage-inner > .dm-btn { display: flex; margin-inline: auto; }
