:root{
  --bg:#0b1220;
  --panel:#0f1b31;
  --panel2:#0c162a;
  --line:rgba(255,255,255,.08);
  --text:#e7eefc;
  --muted:rgba(231,238,252,.72);
  --brand:#5eead4;
  --brand2:#60a5fa;
  --danger:#fb7185;
  --warn:#fbbf24;
  --ok:#34d399;
  --shadow:0 18px 60px rgba(0,0,0,.45);
  --r: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, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(94,234,212,.18), transparent 55%),
    radial-gradient(900px 500px at 80% 25%, rgba(96,165,250,.18), transparent 55%),
    linear-gradient(180deg, #070c15 0%, var(--bg) 100%);
}

a{color:inherit; text-decoration:none}
.container{max-width:1100px; margin:0 auto; padding:22px}
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(7,12,21,.55);
  border-bottom:1px solid var(--line);
  transition: all 0.3s ease;
}
.topbar.compact .brand img {
  height: 80px !important;
  transition: height 0.3s ease;
}
.topbar.compact .brand span {
  font-size: 28px !important;
  height: 80px !important;
  transition: all 0.3s ease;
}
.topbar .inner{display:flex; align-items:center; gap:14px; justify-content:space-between; padding:0 22px}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:900; letter-spacing:.4px;
  flex:1;
}
.brand img {
  transition: height 0.3s ease;
}
.brand span {
  transition: all 0.3s ease;
}
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 100;
}
.burger-menu span {
  width: 25px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.burger-menu.active span:nth-child(2) {
  opacity: 0;
}
.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}
.badge{
  padding:6px 10px; border:1px solid var(--line);
  border-radius:999px; font-size:12px; color:var(--muted);
  background: rgba(255,255,255,.03);
}
nav{display:flex; gap:10px; flex-wrap:wrap}
.navlink{
  padding:10px 12px; border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  font-weight:650;
}
.navlink:hover{border-color: rgba(94,234,212,.35)}
.navlink.active{
  border-color: rgba(94,234,212,.55);
  box-shadow: 0 0 0 3px rgba(94,234,212,.10);
}

@media (max-width: 768px) {
  .topbar .inner {
    flex-wrap: wrap;
  }
  .burger-menu {
    display: flex;
  }
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding: 15px 0;
    background: rgba(7,12,21,.95);
    border-top: 1px solid var(--line);
  }
  nav.active {
    display: flex;
  }
  .brand img {
    height: 80px !important;
  }
  .brand span {
    font-size: 24px !important;
    height: 80px !important;
  }
  .navlink {
    width: 100%;
    text-align: center;
  }
}

.hero{
  margin-top:18px;
  border:1px solid var(--line);
  border-radius:calc(var(--r) + 10px);
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero .pad{padding:26px}
.h-title{font-size:34px; margin:0 0 8px 0; line-height:1.15}
.h-sub{margin:0; color:var(--muted); max-width:78ch}

.grid{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:16px;
}
@media (max-width: 920px){
  .grid{grid-template-columns:1fr}
}

.card{
  border:1px solid var(--line);
  border-radius:var(--r);
  background: rgba(255,255,255,.03);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.card .hd{
  padding:16px 16px 10px 16px;
  display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
  border-bottom:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
}
.card .bd{padding:14px 16px 16px 16px}
.card h2{margin:0; font-size:18px}
.small{font-size:13px; color:var(--muted)}
.kpi{
  display:flex; gap:10px; flex-wrap:wrap; margin-top:10px
}
.pill{
  padding:7px 10px; border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  font-size:12px; color:var(--muted);
}

.search{
  display:flex; gap:10px; align-items:center;
  margin-top:14px;
}
.search input{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
}
.search input:focus{
  border-color: rgba(96,165,250,.55);
  box-shadow: 0 0 0 3px rgba(96,165,250,.12);
}
.btn{
  padding:12px 14px; border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text); font-weight:700;
}
.btn:hover{border-color: rgba(96,165,250,.45)}

.units{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
.unit{
  border:1px solid var(--line);
  border-radius:16px;
  background: rgba(255,255,255,.02);
  overflow:hidden;
}
.unit .u-top{
  padding:14px 14px 10px 14px;
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  border-bottom:1px solid var(--line);
}
.unit .u-name{
  font-weight:900; letter-spacing:.2px;
  font-size:16px; margin:0;
}
.unit .u-tag{
  font-size:12px; color:var(--muted);
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  padding:6px 10px; border-radius:999px;
}
.unit .u-body{padding:12px 14px 14px 14px; display:grid; gap:10px}
.cols{display:grid; grid-template-columns: 1fr 1fr 1fr; gap:10px}
@media (max-width: 820px){ .cols{grid-template-columns:1fr} }

.block{
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 10px 10px 12px;
  background: rgba(0,0,0,.18);
}
.block h3{margin:0 0 6px 0; font-size:12px; letter-spacing:.6px; text-transform:uppercase}
.block ul{margin:0; padding-left:18px; color:var(--muted); font-size:13px}
.block.ok h3{color: var(--ok)}
.block.warn h3{color: var(--warn)}
.block.bad h3{color: var(--danger)}

.footer{
  margin:18px 0 8px 0;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}

/* Footer complet */
.main-footer {
  margin-top: 60px;
  padding: 40px 0 0 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.2));
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 22px 30px 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h3 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.footer-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-bottom {
  padding: 20px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.15);
}

.footer-bottom a {
  color: var(--brand);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 920px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}
