:root{
  --bg:#0b1020;
  --card:#121830;
  --muted:#9aa3b2;
  --text:#e7eefc;
  --accent:#4f46e5;
  --z1:#e11d48;
  --z2:#fb923c;
  --z3:#3b82f6;
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:0 16px;
}

/* Topbar */

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(11,16,32,.7);
  backdrop-filter: blur(8px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.topbar .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 16px;
}
.brand{ font-weight:700; letter-spacing:.3px; }
.menu a{
  color:var(--text);
  text-decoration:none;
  margin-left:16px;
  opacity:.9;
}
.menu a:hover{ opacity:1; }

/* Hero */

.hero{
  padding:48px 0 24px;
  background: radial-gradient(1200px 500px at 50% -100px, rgba(79,70,229,.35), transparent);
}
.hero .container{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.hero h1{
  margin:0 0 8px;
  font-size:28px;
}
.hero p{
  margin:0 0 16px;
  color:var(--muted);
}

/* Bloc recherche code postal */

.cp-checker{
  margin-top:18px;
  width:100%;
  max-width:640px;
  background:rgba(15,23,42,.85);
  border-radius:14px;
  border:1px solid rgba(148,163,184,.35);
  padding:12px 14px;
  font-size:14px;
  margin-left:auto;
  margin-right:auto;
}
.cp-checker label{
  display:block;
  margin-bottom:6px;
  color:var(--muted);
  text-align:left;
}
.cp-row{
  display:flex;
  gap:8px;
  margin-bottom:6px;
}
.cp-row input{
  flex:1;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.6);
  background:rgba(15,23,42,.9);
  color:var(--text);
}
.cp-row input:focus{
  outline:none;
  border-color:var(--accent);
}
.cp-row button{
  border:none;
  border-radius:10px;
  padding:8px 12px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  background:var(--accent);
  color:#fff;
  white-space:nowrap;
}
.cp-result{
  min-height:18px;
  font-size:13px;
  color:var(--muted);
  text-align:left;
}
.cp-result strong{
  color:var(--text);
}
.cp-result-error{
  color:#fecaca;
}

/* Sections */

#map-section{
  padding:12px 0 36px;
}
.panel{
  background:var(--card);
  border:1px solid rgba(255,255,255,.06);
  border-radius:18px;
  padding:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.panel-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.panel h2{
  margin:0;
  font-size:20px;
}

.map{
  height:520px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.06);
  margin-bottom:12px;
}

.legend{
  margin-top:8px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:12px;
}
.legend h3{
  margin:0 0 8px;
  font-size:16px;
}
.legend-row{
  display:flex;
  gap:10px;
  margin:8px 0;
}
.sw{
  width:18px;
  height:12px;
  border-radius:3px;
  border:1px solid rgba(0,0,0,.25);
  flex:0 0 18px;
  margin-top:4px;
}
.legend-note{
  color:var(--muted);
  font-size:13px;
  margin:6px 0 0;
}

.bullets{
  margin:8px 0 0;
  padding-left:18px;
  color:var(--text);
}
.bullets li{
  margin:6px 0;
}

/* Footer */

.footer{
  padding:18px 0 32px;
  color:var(--muted);
}

/* Tooltips Leaflet */

.leaflet-tooltip.lbl{
  background:rgba(255,255,255,.9);
  border:1px solid rgba(0,0,0,.25);
  color:#111827;
  border-radius:6px;
  padding:2px 6px;
  font-size:12px;
}
