/* ======== Espace démo (après connexion) ======== */
.dash-body{height:100svh;display:flex;flex-direction:column;overflow:hidden}
.dash-top{display:flex;align-items:center;gap:1rem;padding:.8rem clamp(1rem,2.5vw,1.8rem);border-bottom:1px solid var(--line);background:var(--void)}
.dash-where{padding:.3rem .7rem;border:1px solid var(--line2);border-radius:999px;font-size:.8rem;color:var(--mist)}
.dash-user{margin-left:auto;display:flex;align-items:center;gap:.6rem;font-size:.9rem;color:var(--mist)}
.dash{flex:1;min-height:0;display:grid;grid-template-columns:330px 1fr}
.dash-side{border-right:1px solid var(--line);padding:1.6rem clamp(1rem,2vw,1.6rem);overflow-y:auto;display:flex;flex-direction:column;gap:1.2rem}
.dash-h{font:600 1.7rem/1.05 var(--disp);letter-spacing:0}
.dash-sub{color:var(--mist);font-size:.92rem;margin-top:-.6rem}
.dash-note{padding:.9rem 1rem;border-radius:14px;border:1px solid rgba(143,169,255,.35);background:rgba(58,103,238,.1);font-size:.86rem;line-height:1.5;color:#C9CDD8}
.dash-note b{display:block;color:var(--light);font:600 .98rem/1.3 var(--disp);margin-bottom:.25rem}
.dash-list{display:grid;gap:.6rem}
.shop{position:relative;display:grid;grid-template-columns:44px 1fr;gap:.2rem .9rem;align-items:center;text-align:left;padding:.85rem;border-radius:16px;border:1px solid var(--line);background:var(--panel);color:var(--light);cursor:pointer;transition:border-color .3s,background .3s,transform .4s var(--ease)}
.shop:hover{border-color:var(--line2);transform:translateX(3px)}
.shop[aria-selected=true]{border-color:var(--ion);background:rgba(77,124,255,.1)}
.shop-sw{grid-row:span 2;width:44px;height:44px;border-radius:12px;background:var(--bg);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);position:relative;overflow:hidden}
.shop-sw::after{content:"";position:absolute;right:0;bottom:0;width:50%;height:50%;background:var(--ac);border-top-left-radius:10px}
.shop-n{font:var(--tw,400) 1.35rem/1 var(--tf);letter-spacing:0}
.shop-k{font-size:.78rem;color:var(--mist)}
.dash-todo{margin-top:auto;padding:1.1rem;border-radius:16px;border:1px solid var(--line);background:#0A0C11}
.dash-todo h2{font:600 1rem var(--disp);margin-bottom:.7rem}
.dash-todo ol{margin:0;padding-left:1.2rem;display:grid;gap:.45rem;font-size:.88rem;color:#C9CDD8}
.dash-todo li::marker{color:var(--ion-l);font-weight:600}
.dash-main{min-width:0;display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 120%,rgba(77,124,255,.12),transparent 60%),var(--graphite)}
.dash-bar{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;padding:.8rem clamp(1rem,2vw,1.6rem);border-bottom:1px solid var(--line)}
.seg{display:inline-flex;padding:4px;border-radius:999px;background:#0A0C11;border:1px solid var(--line)}
.seg button{display:inline-flex;align-items:center;gap:.4rem;min-height:38px;padding:.3rem 1rem;border:0;border-radius:999px;background:none;color:var(--mist);font:500 .9rem var(--text);cursor:pointer;transition:background .3s,color .3s}
.seg button svg{width:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.seg button[aria-checked=true]{background:#fff;color:#07080B}
.dash-size{font-size:.82rem;color:var(--mist)}
.dash-acts{margin-left:auto;display:flex;gap:.5rem;align-items:center}
.ic-btn{width:40px;height:40px;border-radius:50%;border:1px solid var(--line2);background:none;color:var(--light);display:grid;place-items:center;cursor:pointer;transition:transform .5s var(--ease)}
.ic-btn:hover{transform:rotate(-90deg)}
.ic-btn svg{width:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.stage{flex:1;min-height:0;position:relative;display:grid;place-items:center;overflow:hidden;padding:1.4rem}
.device{position:absolute;left:50%;top:50%;transform-origin:center;transform:translate(-50%,-50%) scale(var(--s,1));background:#0B0D12;border:1px solid var(--line2);box-shadow:0 50px 100px -40px rgba(0,0,0,.95),0 0 0 8px #15181F;transition:width .6s var(--ease),height .6s var(--ease),transform .6s var(--ease),border-radius .6s var(--ease);overflow:hidden}
.device iframe{display:block;width:100%;height:100%;border:0;background:#fff}
.device.mobile{border-radius:46px;padding:12px}
.device.mobile iframe{border-radius:34px}
.device.tablet{border-radius:30px;padding:16px}
.device.tablet iframe{border-radius:14px}
.device.desktop{border-radius:12px;padding:0}
.dv-chrome{display:none;align-items:center;gap:7px;height:38px;padding:0 14px;background:#15181F;border-bottom:1px solid var(--line)}
.dv-chrome i{width:11px;height:11px;border-radius:50%;background:#2B303B}
.dv-chrome span{margin:0 auto;padding:.2rem 1.4rem;border-radius:7px;background:#0A0C11;color:var(--mist);font-size:.8rem}
.device.desktop .dv-chrome{display:flex}
.device.desktop iframe{height:calc(100% - 38px)}
.device.swap iframe{opacity:0}
.device iframe{transition:opacity .35s}
@media (max-width:900px){
  .dash-body{height:auto;overflow:auto}
  .dash{grid-template-columns:1fr}
  .dash-side{border-right:0;border-bottom:1px solid var(--line)}
  .dash-list{grid-auto-flow:column;grid-auto-columns:minmax(200px,1fr);overflow-x:auto;padding-bottom:.3rem}
  .dash-todo{margin-top:0}
  .stage{height:78svh;flex:none}
  .dash-where{display:none}
  .dash-user [data-hello]{display:none}
}

/* en-tête fixe sur mobile aussi : « Commander ma boutique » toujours visible */
.dash-top{position:sticky;top:0;z-index:20}
@media (max-width:560px){.dash-top{gap:.5rem;padding-inline:.8rem}.dash-user{gap:.4rem}.dash-user .btn-sm{padding-inline:.7rem;font-size:.82rem}.dash-top .logo{font-size:1rem}}
.lo-i{display:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dash-user .btn{white-space:nowrap}
@media (max-width:560px){
  .lo-i{display:block}.lo-t{display:none}
  .dash-user [data-logout]{width:40px;padding:0;justify-content:center}
}
/* mobile : les 4 boutiques de démo en 2 × 2 */
@media (max-width:900px){
  .dash-list{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-columns:auto;overflow:visible;padding-bottom:0}
}
@media (max-width:560px){
  .shop{grid-template-columns:32px minmax(0,1fr);gap:.15rem .6rem;padding:.7rem}
  .shop-sw{width:32px;height:32px;border-radius:9px}
  .shop-n{font-size:1.1rem;line-height:1.05;overflow-wrap:anywhere}
  .shop:hover{transform:none}
}
