*{box-sizing:border-box}body{margin:0;background:#f4f6f9;color:#182033;font-family:Inter,system-ui,sans-serif}button,input,select{font:inherit}header{height:68px;display:flex;justify-content:space-between;align-items:center;padding:0 24px;background:#111827;color:#fff}header strong{color:#3798c8;font-size:22px}header nav{display:flex;gap:16px}header a{color:#fff;text-decoration:none}main{display:grid;grid-template-columns:240px 1fr;min-height:calc(100vh - 68px)}aside{padding:20px;background:#1f2937;color:#fff}aside h2{margin-top:0}aside>a{display:block;color:#d1d5db;padding:11px;border-radius:8px;text-decoration:none;margin-bottom:5px}aside>a.active{background:#3798c8;color:#fff}aside form{margin-top:28px;border-top:1px solid #374151;padding-top:18px}input,select{width:100%;padding:11px;border:1px solid #d1d5db;border-radius:8px;background:#fff}button{border:0;border-radius:8px;padding:11px 16px;background:#3798c8;color:#fff;font-weight:750;cursor:pointer}.content{padding:25px;min-width:0}.page-title,.card-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.page-title h1{margin:0}.tabs{display:flex;gap:7px;margin:22px 0}.tabs button{background:#e5e7eb;color:#374151}.tabs button.active{background:#111827;color:#fff}.tab{display:none}.tab.active{display:block}.card{background:#fff;border-radius:15px;padding:22px;margin-bottom:18px;box-shadow:0 8px 25px #0f172a0b}.card h2{margin-top:0}.card p{color:#6b7280}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:28px}.scene-editor{display:grid;gap:10px}.scene-row{display:grid;grid-template-columns:42px 100px 1fr 150px;gap:12px;align-items:center;padding:10px;border:1px solid #e5e7eb;border-radius:10px;background:#fafafa}.scene-row.dragging{opacity:.45}.drag{cursor:grab;font-size:24px;text-align:center}.scene-row img{width:100px;height:55px;object-fit:cover;border-radius:7px}.badge{font-size:12px;padding:5px 8px;border-radius:999px;background:#dcfce7;color:#166534}.logo-preview{height:200px;display:grid;place-items:center;background:#111827;border-radius:12px;margin-bottom:14px}.logo-preview img{max-width:180px;max-height:180px}.card label{display:block;margin:15px 0 5px;font-weight:650}.card input[type=range]{padding:0}.check{font-weight:500!important}.check input{width:auto}.share-box{display:flex;gap:8px}.share-box input{flex:1}.alert,#notice:not(:empty){padding:11px;border-radius:8px;background:#fef3c7;color:#92400e;margin:10px 0}.login-page{min-height:100vh;display:grid;place-items:center;background:#111827}.login-card{width:min(380px,calc(100% - 30px));padding:30px;background:#fff;border-radius:18px}.login-card input{margin:15px 0}.login-card button{width:100%}@media(max-width:850px){
  main{grid-template-columns:1fr}
  aside{position:fixed;top:68px;left:0;bottom:0;width:min(280px,82vw);z-index:60;transform:translateX(-105%);transition:transform .28s cubic-bezier(.22,.8,.22,1);overflow-y:auto;box-shadow:12px 0 40px #0006}
  body.drawer-open aside{transform:translateX(0)}
  body.drawer-open .aside-backdrop{opacity:1;pointer-events:auto}
  header .menu-toggle{display:inline-flex}
  .grid2{grid-template-columns:1fr}
  .scene-row{grid-template-columns:34px 80px 1fr}
  .scene-row .badge{display:none}
  .content{padding:14px}
}
code{padding:2px 5px;border-radius:5px;background:#eef2f7}
.presentation-preview,.plan-preview{min-height:260px;display:grid;place-items:center;border-radius:13px;background:#111827;color:#fff;overflow:hidden;text-align:center;padding:20px}
.plan-preview img{max-width:100%;max-height:320px;object-fit:contain;background:#fff;border-radius:8px}
.mini-house{width:230px;height:155px;display:grid;place-items:center;border:2px solid #3798c8;border-radius:16px;transform:perspective(600px) rotateX(12deg) rotateY(-14deg);box-shadow:25px 25px 0 #3798c830;font-weight:900;letter-spacing:.12em}

.plan-preview-tabs{display:flex;gap:8px;margin-bottom:12px}
.plan-preview-tabs button{background:#374151}

input[type="color"]{appearance:none;-webkit-appearance:none;width:100%;height:52px;padding:4px;border:1px solid #d1d5db;border-radius:9px;background:#fff;cursor:pointer}
input[type="color"]::-webkit-color-swatch-wrapper{padding:0}
input[type="color"]::-webkit-color-swatch{border:0;border-radius:6px}
input[type="color"]::-moz-color-swatch{border:0;border-radius:6px}

/* V0.7 — éditeur de hotspots */
.hotspot-toolbar{display:grid;grid-template-columns:1.2fr 1.2fr auto auto auto;gap:10px;align-items:end;margin:18px 0}
.hotspot-toolbar label{margin:0}
.hotspot-toolbar .danger{background:#b91c1c}
.hotspot-toolbar button:disabled{opacity:.45;cursor:not-allowed}
.hotspot-message{margin:8px 0 14px;padding:10px 12px;border-radius:8px;background:#eef2ff;color:#3730a3}
.hotspot-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:15px}
.hotspot-viewer{height:560px;min-height:420px;border-radius:13px;overflow:hidden;background:#111}
.hotspot-list{display:block!important;padding:0!important;background:transparent!important;color:inherit!important}
.hotspot-item{display:grid;grid-template-columns:1fr auto;gap:7px;align-items:center;padding:10px;margin-bottom:8px;border:1px solid #e5e7eb;border-radius:9px;background:#fafafa;cursor:pointer}
.hotspot-item.active{border-color:#3798c8;background:#fff7ed}
.hotspot-item small{display:block;color:#6b7280;margin-top:3px}
.hotspot-item button{padding:6px 9px}
.editor-hotspot{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#3798c8;border:2px solid #fff;box-shadow:0 4px 16px #0008;cursor:pointer}
.editor-hotspot::before{content:"›";font-size:34px;line-height:1;color:#fff;margin-top:-4px}
.editor-hotspot.selected{outline:4px solid #60a5fa}
@media(max-width:1100px){
 .hotspot-toolbar{grid-template-columns:1fr 1fr}
 .hotspot-layout{grid-template-columns:1fr}
 .hotspot-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important}
}

/* V0.8 — navigation mobile : menu tiroir + onglets défilants */
.menu-toggle{display:none;align-items:center;gap:7px;height:42px;margin-right:10px;padding:0 14px;border-radius:10px;background:#3798c8;color:#fff;font-size:16px;font-weight:800;line-height:1;border:0;cursor:pointer;white-space:nowrap}
.brand-title{flex:1;min-width:0}
.aside-backdrop{position:fixed;inset:68px 0 0 0;z-index:55;background:rgba(0,0,0,.5);opacity:0;pointer-events:none;transition:opacity .25s}

.tabs-wrap{position:relative;margin:22px 0}
.tabs-wrap .tabs{margin:0;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}
.tabs-wrap .tabs::-webkit-scrollbar{display:none}
.tabs-wrap .tabs button{flex:0 0 auto;white-space:nowrap}
.tabs-more{display:none;position:absolute;right:0;top:0;height:100%;width:46px;border:0;border-radius:0 8px 8px 0;background:linear-gradient(90deg,transparent,#f4f6f9 34%);color:#111827;font-size:26px;line-height:1;cursor:pointer;align-items:center;justify-content:flex-end;padding-right:8px}
.tabs-wrap.can-scroll .tabs-more{display:flex}
.tabs-wrap.scrolled-end .tabs-more{opacity:0;pointer-events:none}

/* V0.9 — bloc code d'intégration */
.embed-box{align-items:flex-start}
.embed-box textarea{flex:1;min-height:96px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.5;padding:10px;border:1px solid #d1d5db;border-radius:8px;background:#0b1220;color:#e2e8f0}
.hint{color:#6b7280;font-size:13px;margin:6px 0 0}
.who{color:#9aa7b8;font-weight:600;font-size:14px;align-self:center}

.editor-hotspot.hs-left::before{content:"\2039"}
