/* ============ PAGE DEMOS — styles additionnels ============ */

.demo-hero{ padding:72px 0 56px; text-align:center; border-top:none; }
.demo-hero .hero-badge{ margin-bottom:22px; }
.demo-hero h1{ font-size:clamp(1.9rem,4vw,2.6rem); max-width:20ch; margin:0 auto 16px; }
.demo-hero p.lede{ max-width:48ch; margin: 0 auto }

.demo-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
@media (max-width:900px){ .demo-grid{ grid-template-columns:1fr; } }
.demo-grid.full{ grid-template-columns:1fr; }

.demo-card{ background:var(--card); border:1px solid var(--border); border-radius:var(--radius-xl); padding:30px; display:flex; flex-direction:column; }
.demo-card-head{ margin-bottom:22px; }
.demo-card-head h2{ font-size:1.2rem; margin-bottom:8px; }
.demo-card-head p{ color:var(--fg-soft); font-size:0.9rem; margin:0; line-height:1.6; }

/* -------- 1. MODE SOMBRE -------- */
.dm-mock{ border-radius:16px; border:1px solid var(--border); overflow:hidden; transition:background-color .4s ease, border-color .4s ease; background:#fff; }
.dm-mock .mockbar{ height:32px; background:#F2F2F2; display:flex; align-items:center; justify-content:space-between; padding:0 16px; border-bottom:1px solid var(--border); transition:background-color .4s ease, border-color .4s ease; }
.dm-mock .mockbar .dots{ display:flex; gap:6px; }
.dm-mock .mockbar .dots span{ width:8px; height:8px; border-radius:50%; background:#D8D8D8; }
.dm-switch{ position:relative; width:52px; height:30px; border-radius:999px; background:#DCDCDC; border:1px solid #CFCFCF; cursor:pointer; padding:0; transition:background-color .35s ease, border-color .35s ease; flex-shrink:0; }
.dm-switch .dm-thumb{ position:absolute; top:2px; left:2px; width:24px; height:24px; border-radius:50%; background:linear-gradient(180deg,#fdfdfd,#d8d8d8); border:1px solid #bcbcbc; box-shadow:0 2px 4px rgba(0,0,0,0.18); transition:transform .35s cubic-bezier(.4,0,.2,1); }
.dm-switch.on{ background:#0A0A0A; border-color:#0A0A0A; }
.dm-switch.on .dm-thumb{ transform:translateX(22px); background:linear-gradient(180deg,#e8e8e8,#bdbdbd); }
.dm-body{ padding:26px 24px; transition:background-color .4s ease; }
.dm-body .dm-logo{ width:64px; height:9px; border-radius:3px; background:#0A0A0A; margin-bottom:24px; transition:background-color .4s ease; }
.dm-body .dm-title{ width:70%; height:14px; border-radius:3px; background:#E3E3E3; margin-bottom:10px; transition:background-color .4s ease; }
.dm-body .dm-title.small{ width:46%; height:9px; background:#EEEEEE; margin-bottom:20px; }
.dm-body .dm-row{ display:flex; gap:10px; }
.dm-body .dm-row div{ flex:1; height:46px; border-radius:10px; background:#F2F2F2; transition:background-color .4s ease; }
.dm-mock.dark{ background:#141414; border-color:#2A2A2A; }
.dm-mock.dark .mockbar{ background:#1B1B1B; border-color:#2A2A2A; }
.dm-mock.dark .mockbar .dots span{ background:#3A3A3A; }
.dm-mock.dark .dm-logo{ background:#F2F2F2; }
.dm-mock.dark .dm-title{ background:#333333; }
.dm-mock.dark .dm-title.small{ background:#292929; }
.dm-mock.dark .dm-row div{ background:#1F1F1F; }
.dm-foot{ display:flex; align-items:center; justify-content:space-between; margin-top:20px; }
.dm-foot span{ font-size:0.85rem; color:var(--fg-soft); }
.dm-foot strong{ color:var(--fg); font-weight:600; }

/* -------- 2. BASE UTILISATEURS -------- */
.db-layout{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
@media (max-width:640px){ .db-layout{ grid-template-columns:1fr; } }
.db-form{ border:1px solid var(--border); border-radius:14px; padding:20px; background:var(--bg); }
.db-form .field{ margin-bottom:12px; }
.db-form .field label{ font-size:0.78rem; }
.db-form .field input{ height:38px; font-size:0.85rem; }
.db-status{ margin-top:10px; font-size:0.82rem; padding:9px 12px; border-radius:8px; display:none; }
.db-status.show{ display:block; background:#EAF6EC; color:#1E7B34; border:1px solid #BFE6C6; }
.db-table-wrap{ border:1px solid var(--border); border-radius:14px; overflow:hidden; }
.db-table-head{ background:var(--secondary); padding:12px 16px; font-size:0.78rem; font-weight:600; color:var(--fg-soft); text-transform:uppercase; letter-spacing:0.04em; }
table.db-table{ width:100%; border-collapse:collapse; font-size:0.82rem; }
table.db-table td{ padding:10px 16px; border-top:1px solid var(--border); color:var(--fg); }
table.db-table td.muted{ color:var(--fg-soft); }
table.db-table tr.new-row{ animation:rowIn .5s ease; }
@keyframes rowIn{ from{ opacity:0; transform:translateY(-6px);} to{ opacity:1; transform:translateY(0);} }
.db-avatar{ width:22px; height:22px; border-radius:50%; background:var(--brand-soft); color:var(--brand); font-size:0.68rem; font-weight:700; display:inline-flex; align-items:center; justify-content:center; margin-right:8px; }

/* -------- 3. SLIDER BROUILLON / FINALE -------- */
.dlss-labels{ display:flex; justify-content:space-between; font-size:0.82rem; font-weight:600; margin-bottom:10px; }
.dlss-labels .left{ color:var(--fg-soft); }
.dlss-labels .right{ color:var(--brand); }
.dlss-compare{ position:relative; width:100%; aspect-ratio:16/9; border-radius:16px; overflow:hidden; border:1px solid var(--border); cursor:ew-resize; user-select:none; background:#fff; }
.dlss-pane{ position:absolute; inset:0; }
.dlss-pane-after{ background:#fff; }
.dlss-pane-before{ width:38%; overflow:hidden; background:#fff; border-right:1px solid var(--border); }
.dlss-content{ height:100%; }

/* --- Site simple (pane gauche) --- */
.sm-mock{ height:100%; display:flex; flex-direction:column; background:linear-gradient(160deg,#F3F7FF 0%,#FFFFFF 55%); }
.sm-nav{ display:flex; align-items:center; justify-content:space-between; padding:18px 24px; }
.sm-logo{ width:64px; height:9px; border-radius:3px; background:var(--brand); }
.sm-cta{ width:60px; height:20px; border-radius:999px; background:#0A0A0A; }
.sm-hero{ flex:1; padding:6px 24px 24px; position:relative; display:flex; flex-direction:column; justify-content:center; }
.sm-badge{ width:88px; height:16px; border-radius:999px; background:var(--brand-soft); margin-bottom:16px; }
.sm-title{ width:80%; height:16px; border-radius:4px; background:#0A0A0A; margin-bottom:10px; }
.sm-title.small{ width:56%; height:10px; background:#C9D6EE; margin-bottom:22px; }
.sm-btn{ width:118px; height:34px; border-radius:999px; background:var(--brand); box-shadow:0 8px 18px -6px rgba(21,108,221,0.55); }
.sm-blob{ position:absolute; right:-30px; bottom:-30px; width:130px; height:130px; border-radius:50%; background:radial-gradient(circle at 30% 30%,#7FB4FF,#156CDD 70%); opacity:0.9; }

/* --- Site complet (pane pleine largeur, en dessous) --- */
.cx-mock{ height:100%; display:flex; flex-direction:column; background:#fff; }
.cx-nav{ height:44px; display:flex; align-items:center; gap:18px; padding:0 26px; border-bottom:1px solid var(--border); flex-shrink:0; }
.cx-logo{ width:60px; height:9px; border-radius:3px; background:#0A0A0A; }
.cx-pill{ width:44px; height:8px; border-radius:4px; background:#E3E3E3; }
.cx-cta{ margin-left:auto; width:70px; height:24px; border-radius:999px; background:var(--brand); }
.cx-hero{ padding:20px 26px 10px; }
.cx-h-title{ width:52%; height:14px; border-radius:4px; background:#0A0A0A; margin-bottom:9px; }
.cx-h-sub{ width:34%; height:9px; border-radius:3px; background:#E3E3E3; }
.cx-grid{ flex:1; display:grid; grid-template-columns:repeat(3,1fr); gap:14px; padding:14px 26px 22px; }
.cx-card{ border:1px solid var(--border); border-radius:10px; padding:10px; display:flex; flex-direction:column; gap:8px; }
.cx-card .thumb{ height:44px; border-radius:7px; }
.cx-card.c1 .thumb{ background:linear-gradient(135deg,#FFD9B8,#E8734A); }
.cx-card.c2 .thumb{ background:linear-gradient(135deg,#B9F3E4,#17A398); }
.cx-card.c3 .thumb{ background:linear-gradient(135deg,#D6CCFF,#7C5CFC); }
.cx-card .l1{ height:8px; width:75%; border-radius:3px; background:#E3E3E3; }
.cx-card .l2{ height:6px; width:45%; border-radius:3px; background:#EFEFEF; }

.dlss-handle{ position:absolute; top:0; bottom:0; left:38%; width:0; z-index:5; transform:translateX(-50%); }
.dlss-handle::before{ content:""; position:absolute; top:0; bottom:0; left:50%; width:2px; background:#fff; box-shadow:0 0 0 1px var(--border); transform:translateX(-50%); }
.dlss-knob{ position:absolute; top:50%; left:50%; width:42px; height:42px; border-radius:50%; background:#fff; border:1px solid var(--border); transform:translate(-50%,-50%); display:flex; align-items:center; justify-content:center; box-shadow:0 8px 20px rgba(13,13,13,0.16); }
.dlss-knob svg{ width:15px; height:15px; }
.dlss-caption{ text-align:center; font-size:0.85rem; color:var(--fg-soft); margin-top:16px; }

/* -------- 4. CHATBOT LIVE -------- */
.bot-demo .chat-body{ min-height:200px; }
.typing{ display:inline-flex; gap:4px; padding:11px 14px; background:#fff; border:1px solid var(--border); border-radius:14px; border-bottom-left-radius:4px; align-self:flex-start; }
.typing span{ width:6px; height:6px; border-radius:50%; background:#B8B8B8; animation:blink 1.2s infinite; }
.typing span:nth-child(2){ animation-delay:.2s; }
.typing span:nth-child(3){ animation-delay:.4s; }
@keyframes blink{ 0%,80%,100%{ opacity:.3; } 40%{ opacity:1; } }
.bot-quick{ display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
.bot-quick button{ font-size:0.8rem; padding:8px 14px; border-radius:999px; border:1px solid var(--border); background:var(--bg); color:var(--fg); cursor:pointer; }
.bot-quick button:hover{ background:var(--secondary); }

/* -------- 5. AUTOMATISATION -------- */
.auto-tabs{ display:inline-flex; border:1px solid var(--border); border-radius:999px; padding:3px; margin-bottom:22px; }
.auto-tabs button{ border:none; background:transparent; padding:8px 18px; font-size:0.82rem; font-weight:500; color:var(--fg-soft); border-radius:999px; cursor:pointer; }
.auto-tabs button.active{ background:var(--fg); color:#fff; }
.auto-steps{ list-style:none; margin:0 0 20px; padding:0; display:flex; flex-direction:column; gap:0; }
.auto-step{ display:flex; align-items:center; gap:14px; padding:13px 0; border-bottom:1px solid var(--border); opacity:0.4; transition:opacity .3s ease; }
.auto-step.active{ opacity:1; }
.auto-step .dot{ width:26px; height:26px; border-radius:50%; border:1.5px solid var(--border); display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:background-color .3s, border-color .3s; }
.auto-step.done .dot{ background:var(--brand); border-color:var(--brand); }
.auto-step.done .dot svg{ width:13px; height:13px; color:#fff; }
.auto-step span.label{ font-size:0.9rem; }
.auto-result{ font-size:0.85rem; color:var(--fg-soft); min-height:20px; }
.auto-result strong{ color:var(--brand); }

/* -------- 6. FLEXIBILITE -------- */
.flex-chips{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:20px; }
.flex-chips button{ font-size:0.85rem; padding:9px 16px; border-radius:999px; border:1px solid var(--border); background:var(--bg); color:var(--fg-soft); cursor:pointer; font-weight:500; }
.flex-chips button.active{ background:var(--fg); color:#fff; border-color:var(--fg); }
.flex-panel{ border:1px solid var(--border); border-radius:14px; padding:20px 22px; background:var(--bg); font-size:0.9rem; color:var(--fg-soft); line-height:1.6; min-height:64px; }
.flex-panel strong{ color:var(--fg); }

/* -------- 7. E-COMMERCE (filtre alphabétique + scroll infini) -------- */
.ecom-controls{ display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin-bottom:26px; }
.ecom-search{ position:relative; flex:1; min-width:240px; max-width:420px; }
.ecom-search svg{ position:absolute; left:14px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:var(--fg-soft); pointer-events:none; }
.ecom-search input{ width:100%; height:44px; padding:0 14px 0 40px; border:1px solid var(--border); border-radius:999px; background:var(--card); font-family:'Inter',sans-serif; font-size:0.88rem; color:var(--fg); }
.ecom-search input:focus{ outline:none; border-color:rgba(13,13,13,0.4); }
.ecom-count{ font-size:0.82rem; color:var(--fg-soft); }
.ecom-empty{ text-align:center; padding:30px 20px; color:var(--fg-soft); font-size:0.9rem; width:100%; }

.ecom-viewport{ overflow:hidden; -webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent); mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent); }
.ecom-track{ display:flex; gap:16px; width:max-content; animation:ecom-scroll 26s linear infinite; }
.ecom-track.paused{ animation-play-state:paused; }
.ecom-track.static{ animation:none; flex-wrap:wrap; width:100%; justify-content:center; }
@keyframes ecom-scroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

.ecom-card{ flex:0 0 auto; width:200px; background:var(--card); border:1px solid var(--border); border-radius:16px; padding:20px 18px; position:relative; transition:border-color .15s; }
.ecom-card:hover{ border-color:rgba(13,13,13,0.28); }
.ecom-icon{ width:38px; height:38px; border-radius:10px; background:var(--secondary); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.ecom-icon svg{ width:18px; height:18px; }
.ecom-card h3{ font-size:0.96rem; margin-bottom:6px; }
.ecom-card p{ font-size:0.8rem; color:var(--fg-soft); margin:0; line-height:1.5; }
.ecom-save{ position:absolute; top:14px; right:14px; width:28px; height:28px; border-radius:50%; border:1px solid var(--border); background:var(--card); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.ecom-save svg{ width:14px; height:14px; color:var(--fg-soft); transition:color .15s, transform .15s; }
.ecom-save.active{ border-color:var(--brand); }
.ecom-save.active svg{ color:var(--brand); transform:scale(1.15); }
.ecom-hint{ text-align:center; font-size:0.8rem; color:var(--fg-soft); margin-top:18px; }

/* -------- 8. GALERIE — UNE CARTE + FONDU + PAGINATION -------- */
.gallery-switch{ position:relative; height:440px; border-radius:24px; overflow:hidden; border:1px solid var(--border); }
.gallery-main{ position:absolute; inset:0; }
.gallery-bg{ position:absolute; inset:0; opacity:0; transition:opacity .6s ease; }
.gallery-bg.visible{ opacity:1; z-index:1; }
.gallery-main-label{ position:absolute; left:32px; bottom:32px; z-index:3; animation:galleryFade .5s ease; }
@keyframes galleryFade{ from{ opacity:0; transform:translateY(8px);} to{ opacity:1; transform:translateY(0);} }
.gallery-main-eyebrow{ font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:0.7rem; letter-spacing:0.08em; text-transform:uppercase; color:rgba(255,255,255,0.75); margin-bottom:6px; }
.gallery-main-title{ font-family:'Space Grotesk',sans-serif; font-size:1.7rem; font-weight:600; color:#fff; text-shadow:0 2px 12px rgba(0,0,0,0.35); }

.gallery-dots{ position:absolute; left:20px; top:50%; transform:translateY(-50%); display:flex; flex-direction:column; align-items:center; gap:12px; z-index:3; }
.gallery-dot{ width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,0.45); border:none; padding:0; cursor:pointer; transition:width .25s ease, height .25s ease, background-color .25s ease; }
.gallery-dot.active{ width:12px; height:12px; background:#fff; box-shadow:0 0 0 4px rgba(255,255,255,0.22); }

.gallery-arrow{ position:absolute; bottom:20px; width:42px; height:42px; border-radius:50%; border:1px solid rgba(255,255,255,0.5); background:rgba(0,0,0,0.28); backdrop-filter:blur(4px); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:4; transition:background-color .15s, border-color .15s; }
.gallery-arrow svg{ width:18px; height:18px; }
.gallery-arrow:hover{ background:rgba(0,0,0,0.45); border-color:#fff; }
.gallery-arrow.left{ right:78px; }
.gallery-arrow.right{ right:20px; }
.gallery-thumb-wrap{ position:absolute; right:110px; top:50%; transform:translateY(-50%); width:128px; height:156px; z-index:3; overflow:visible; }
.gallery-thumb{ position:absolute; inset:0; border-radius:18px; border:2px solid rgba(255,255,255,0.8); cursor:pointer; overflow:hidden; box-shadow:0 14px 34px -12px rgba(0,0,0,0.5); transition:transform .45s cubic-bezier(.4,0,.2,1), opacity .45s ease; }
.gallery-thumb::after{ content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(0,0,0,0.4),transparent 55%); }
.gallery-thumb span{ position:absolute; left:0; right:0; bottom:0; padding:10px 12px 9px; font-size:0.8rem; font-weight:600; color:#fff; z-index:1; text-align:left; }

.gallery-thumb-hint{ position:absolute; top:6px; right:6px; width:18px; height:18px; z-index:2; opacity:0.85; }
