/* Lisa Academy — UI Central (V1)
   Charte: noir tamisé + or, sobre, premium, mobile-first
*/
:root{
  --bg0:#07070a;
  --bg1:#0c0c12;

  --panel: rgba(10,10,14,.64);
  --stroke: rgba(255,255,255,.08);
  --stroke2: rgba(199,154,45,.22);

  --txt:#f3f0e8;
  --muted: rgba(243,240,232,.72);

  --gold:#c79a2d;
  --gold2:#e2bf6b;

  --blue:#3aa6ff;

  --shadow: 0 18px 70px rgba(0,0,0,.55);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--txt);
  background:
    radial-gradient(1200px 700px at 50% 35%, rgba(199,154,45,.11), transparent 62%),
    radial-gradient(900px 520px at 70% 70%, rgba(58,166,255,.10), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  overflow:hidden;
}

/* Topbar */
.topbar{
  position:fixed; inset:0 0 auto 0;
  height:68px;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 14px;
  background: linear-gradient(180deg, rgba(8,8,10,.92), rgba(8,8,10,.58));
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  z-index:50;
}

.brand{
  display:flex; align-items:center; gap:12px;
  min-width: 240px;
  max-width: 55vw;
}
.brandLogo{
  width:44px; height:44px; border-radius: 12px;
  border:1px solid rgba(199,154,45,.26);
  background: rgba(10,10,14,.55);
  box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset;
}
.brandText{ min-width:0; }
.brandTitle{
  font-weight:900;
  letter-spacing:.8px;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brandSub{
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.topActions{
  display:flex; gap:10px; align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.pill{
  display:flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(10,10,14,.55);
  border:1px solid rgba(255,255,255,.08);
  font-size:12px;
}
.pill .k{ color:var(--muted); }
.pill .v{ font-weight:850; }

.btn{
  cursor:pointer;
  border-radius:999px;
  padding:9px 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,10,14,.55);
  color:var(--txt);
  font-weight:750;
  font-size:12px;
  letter-spacing:.2px;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
  user-select:none;
}
.btn:hover{ border-color: rgba(199,154,45,.26); background: rgba(10,10,14,.72); }
.btn:active{ transform: scale(.98); }

.btn.primary{
  border-color: rgba(199,154,45,.38);
  background: linear-gradient(180deg, rgba(199,154,45,.16), rgba(10,10,14,.62));
  box-shadow: 0 0 0 1px rgba(199,154,45,.10) inset, 0 12px 30px rgba(0,0,0,.35);
}

/* Layout */
.app{
  position:fixed;
  inset: 68px 0 34px 0;
  padding: 14px;
}

.center{
  position:relative;
  height:100%;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(199,154,45,.18);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(12,12,18,.92), rgba(7,7,10,.92));
}

.centerTop{
  position:absolute; inset:0 0 auto 0;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px;
  z-index:8;
  background: linear-gradient(180deg, rgba(8,8,10,.72), rgba(8,8,10,.08));
  border-bottom:1px solid rgba(255,255,255,.05);
}
.centerTitle{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.centerTitle .t{ font-weight:950; letter-spacing:.5px; font-size:14px; }
.centerTitle .s{ color:rgba(243,240,232,.75); font-size:12px; }

.centerControls .btn{ padding:8px 10px; }

#map{
  position:absolute; inset:0;
  z-index:1;
  opacity:.88;
  filter: saturate(1.08) contrast(1.05);
}

/* Glow */
.centerGlow{
  position:absolute; inset:0;
  z-index:2;
  background:
    radial-gradient(560px 360px at 50% 52%, rgba(199,154,45,.22), transparent 62%),
    radial-gradient(820px 540px at 50% 50%, rgba(58,166,255,.10), transparent 68%);
  mix-blend-mode: screen;
  pointer-events:none;
}

/* Projecteur */
.projector{
  position:absolute; inset:0;
  z-index:9;
  display:none;
  padding: 64px 14px 14px 14px;
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(6px);
}
.projector.show{ display:block; }

.projectorInner{
  height:100%;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(10,10,14,.72);
  box-shadow: 0 22px 80px rgba(0,0,0,.62);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.projHeader{
  padding:14px 14px 10px 14px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(199,154,45,.10), rgba(10,10,14,.0));
}
.projTitle{
  font-weight:950;
  letter-spacing:.4px;
  font-size:14px;
}
.projMeta{
  margin-top:4px;
  font-size:12px;
  color:rgba(243,240,232,.72);
}

.projBody{
  padding: 12px 14px;
  overflow:auto;
  min-height:0;
}
.welcome h1{ margin:0 0 8px 0; font-size:18px; letter-spacing:.2px; }
.welcome p{ margin:0 0 10px 0; color:rgba(243,240,232,.78); }
.welcome ul{ margin:0; padding-left:18px; color:rgba(243,240,232,.78); }
.note{
  margin-top:12px;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(199,154,45,.18);
  background: rgba(199,154,45,.08);
  color:rgba(243,240,232,.86);
}

.projFooter{
  display:flex; gap:8px; flex-wrap:wrap;
  padding: 12px 14px 14px 14px;
  border-top:1px solid rgba(255,255,255,.06);
  background: rgba(10,10,14,.55);
}

/* Légende */
.legend{
  position:absolute;
  z-index:8;
  right:12px; bottom:12px;
  background: rgba(10,10,14,.55);
  border:1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding:10px 10px;
  backdrop-filter: blur(10px);
  max-width:260px;
}
.legend .row{
  display:flex; align-items:center; gap:8px;
  font-size:12px;
  color:rgba(243,240,232,.80);
  margin:6px 0;
}
.dotlg{
  width:10px; height:10px; border-radius:50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset;
}
.d-gold{ background: rgba(199,154,45,.95); }
.d-blue{ background: rgba(58,166,255,.95); }
.d-white{ background: rgba(243,240,232,.95); }

/* Footer */
.footer{
  position:fixed; inset:auto 0 0 0;
  height:34px;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 14px;
  color: rgba(243,240,232,.62);
  font-size:11px;
  border-top:1px solid rgba(255,255,255,.05);
  background: linear-gradient(180deg, rgba(8,8,10,.0), rgba(8,8,10,.55));
  z-index:40;
  pointer-events:none;
}

/* Responsive */
@media (max-width: 720px){
  .brandSub{ display:none; }
  .topActions .pill{ display:none; }
}
