/* ============================================================
   CHB — Consortium Hugo Battoue · Carte Monde 2026
   Charte : noir profond, océan bleu, accent vert flèche (logo CHB).
   ============================================================ */

:root {
  /* Fonds — bleu océan profond */
  --bg-0: oklch(0.12 0.04 245);
  --bg-1: oklch(0.17 0.06 240);
  --bg-2: oklch(0.22 0.07 230);
  --bg-grad: radial-gradient(ellipse at 50% 40%, oklch(0.22 0.09 225) 0%, oklch(0.10 0.035 250) 70%);

  /* CHB — gradient signature (vert flèche → turquoise → écume) */
  --wave-1: oklch(0.78 0.21 145);    /* vert CHB (flèche) */
  --wave-2: oklch(0.68 0.17 210);    /* turquoise */
  --wave-3: oklch(0.85 0.14 175);    /* écume lumineuse */
  --wave-grad: linear-gradient(100deg, var(--wave-1) 0%, var(--wave-2) 60%, var(--wave-3) 100%);

  /* Traits et surfaces */
  --line: oklch(0.32 0.04 240);
  --line-2: oklch(0.42 0.05 235);

  /* Typo */
  --ink-0: oklch(0.98 0.01 230);
  --ink-1: oklch(0.86 0.025 230);
  --ink-2: oklch(0.68 0.035 230);
  --ink-3: oklch(0.52 0.04 235);

  /* Accents */
  --accent: oklch(0.78 0.17 200);     /* turquoise vif */
  --accent-2: oklch(0.74 0.21 45);    /* corail */
  --accent-soft: oklch(0.78 0.17 200 / 0.14);
  --accent-line: oklch(0.78 0.17 200 / 0.45);

  /* USTS — vert signature pour les implantations du groupe */
  --usts-green: oklch(0.78 0.21 145);
  --usts-green-soft: oklch(0.78 0.21 145 / 0.16);
  --usts-green-line: oklch(0.78 0.21 145 / 0.55);

  --warn: oklch(0.82 0.15 80);

  --radius: 6px;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Outfit", "Inter", ui-sans-serif, system-ui, sans-serif;
  --serif: "Fraunces", "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg-0);
  background-image: var(--bg-grad);
  color: var(--ink-1);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.mono { font-family: var(--mono); }

/* Layout ------------------------------------------------------ */
.app {
  display: grid;
  grid-template-columns: 300px 1fr 460px;
  grid-template-rows: 68px 1fr 36px;
  grid-template-areas:
    "header header header"
    "sidebar stage detail"
    "footer footer footer";
  height: 100vh;
  width: 100vw;
}
.app.no-detail { grid-template-columns: 300px 1fr 0; }
.app.no-detail .detail { display: none; }

/* Header — branding USTS ------------------------------------- */
.header {
  grid-area: header;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: oklch(0.10 0.035 248 / 0.85);
  backdrop-filter: blur(14px);
  gap: 22px;
  position: relative;
}
.header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--wave-grad);
  opacity: 0.7;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.brand-logo svg { display: block; }
.brand-logo-img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title {
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--ink-0);
  font-weight: 600;
  font-family: var(--sans);
}
.brand-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 3px;
}

.brand-tagline {
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 300px;
  line-height: 1.25;
}
.brand-tagline em {
  background: var(--wave-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
  font-weight: 600;
}

.header-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.header-meta .chip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink-2);
}
.header-meta .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Sidebar ---------------------------------------------------- */
.sidebar {
  grid-area: sidebar;
  border-right: 1px solid var(--line);
  background: oklch(0.11 0.035 248 / 0.65);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.sidebar-head h2 {
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 6px;
}
.sidebar-head p {
  font-size: 20px;
  color: var(--ink-0);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-family: var(--sans);
}
.sidebar-head .meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.sidebar-head .meta b { color: var(--accent); font-weight: 500; }

.sidebar-groups { overflow-y: auto; flex: 1; padding: 8px 0 24px; }

.sidebar-group-title {
  padding: 16px 24px 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.territory-item {
  width: 100%;
  text-align: left;
  padding: 11px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 2px solid transparent;
  transition: background 0.18s, border-color 0.18s;
  color: var(--ink-1);
  position: relative;
}
.territory-item:hover { background: oklch(0.18 0.055 240 / 0.6); }
.territory-item.active {
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  border-left-color: var(--accent);
  color: var(--ink-0);
}
.territory-item .ti-code {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  width: 28px;
  letter-spacing: 0.06em;
}
.territory-item.active .ti-code { color: var(--accent); }
.territory-item .ti-body { flex: 1; min-width: 0; }
.territory-item .ti-name {
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  letter-spacing: -0.005em;
}
.territory-item .ti-sub {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  margin-top: 2px;
  text-transform: uppercase;
}
.territory-item .ti-badge {
  font-family: var(--mono);
  font-size: 9px;
  padding: 2px 5px;
  border: 1px solid var(--usts-green-line);
  border-radius: 3px;
  color: var(--usts-green);
  background: var(--usts-green-soft);
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.territory-item .ti-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--usts-green);
  box-shadow: 0 0 6px var(--usts-green);
}

/* Stage ------------------------------------------------------- */
.stage {
  grid-area: stage;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 50%, oklch(0.22 0.08 225) 0%, var(--bg-0) 75%);
}
.stage canvas { display: block; cursor: grab; }
.stage canvas:active { cursor: grabbing; }

.stage-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.stage-ui .corner { position: absolute; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.stage-ui .corner.tl { top: 0; left: 0; }
.stage-ui .corner.tr { top: 0; right: 0; align-items: flex-end; }
.stage-ui .corner.bl { bottom: 0; left: 0; }
.stage-ui .corner.br { bottom: 0; right: 0; align-items: flex-end; }
.stage-ui .corner b { color: var(--accent); font-weight: 500; letter-spacing: 0.12em; }

.stage-ui .hairline-h, .stage-ui .hairline-v { position: absolute; background: var(--line); opacity: 0.25; }
.stage-ui .hairline-h { left: 0; right: 0; height: 1px; }
.stage-ui .hairline-v { top: 0; bottom: 0; width: 1px; }

.stage-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  gap: 18px;
  padding: 6px 14px;
  background: oklch(0.11 0.035 248 / 0.7);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(8px);
}
.stage-hint .key {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  color: var(--ink-2);
  margin-right: 6px;
  font-size: 9px;
}

.tooltip {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 16px));
  background: oklch(0.11 0.035 248 / 0.95);
  border: 1px solid var(--accent-line);
  padding: 9px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--ink-0);
  white-space: nowrap;
  box-shadow: 0 12px 40px oklch(0.05 0.04 250 / 0.6), 0 0 30px var(--accent-soft);
  opacity: 0;
  transition: opacity 0.12s;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.tooltip.visible { opacity: 1; }
.tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: oklch(0.11 0.035 248 / 0.95);
  border-right: 1px solid var(--accent-line);
  border-bottom: 1px solid var(--accent-line);
}
.tooltip .t-cat {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 3px;
}
.tooltip .t-usts {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
  color: var(--usts-green);
}

/* Detail panel ----------------------------------------------- */
.detail {
  grid-area: detail;
  border-left: 1px solid var(--line);
  background: oklch(0.11 0.035 248 / 0.75);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.detail::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--wave-grad);
  opacity: 0.5;
}

.detail-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;
  width: 30px; height: 30px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: oklch(0.11 0.035 248 / 0.9);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.15s;
}
.detail-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.detail-head {
  padding: 26px 28px 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.detail-head .cat-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.detail-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg-0);
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--wave-grad);
  font-weight: 600;
}
.detail-code {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.14em;
}
.detail-name {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  margin-top: 12px;
  line-height: 1.05;
  font-family: var(--sans);
}
.detail-subtitle {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
}
.detail-ocean {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 12px;
}

.detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.detail-stat {
  padding: 12px 14px;
  background: oklch(0.10 0.035 248 / 0.5);
}
.detail-stat .k {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.detail-stat .v {
  font-size: 13px;
  color: var(--ink-0);
  font-weight: 500;
}
.detail-stat.hl .v {
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 600;
}

.detail-body {
  overflow-y: auto;
  flex: 1;
  padding: 22px 0 40px;
}

.detail-section { padding: 0 28px; margin-bottom: 28px; }
.detail-section h3 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.detail-section h3 .count { color: var(--ink-3); font-size: 10px; }

/* USTS entity card */
.usts-card {
  padding: 14px 16px;
  margin-bottom: 12px;
  background:
    linear-gradient(135deg, oklch(0.18 0.08 225 / 0.5) 0%, oklch(0.14 0.06 240 / 0.4) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.usts-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--usts-green);
}
.usts-card .u-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.usts-card .u-logo {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
}
.usts-card .u-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.usts-card .u-headtxt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.usts-card .u-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-0);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.usts-card .u-meta {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.usts-card .u-row {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-top: 3px;
}
.usts-card .u-row b { color: var(--ink-1); font-weight: 500; width: 64px; display: inline-block; }
.usts-card .u-row a { color: var(--usts-green); }
.usts-card .u-products {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.usts-card .u-product {
  font-family: var(--mono);
  font-size: 9.5px;
  padding: 3px 7px;
  border: 1px solid var(--usts-green-line);
  border-radius: 3px;
  color: var(--usts-green);
  background: var(--usts-green-soft);
  letter-spacing: 0.06em;
}
.usts-card .u-team {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.usts-card .u-team .p {
  display: flex;
  gap: 8px;
  font-size: 11.5px;
  align-items: baseline;
}
.usts-card .u-team .p .n { color: var(--ink-0); font-weight: 500; }
.usts-card .u-team .p .r { color: var(--ink-3); font-size: 10.5px; font-family: var(--mono); }

/* Officials */
.role {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.role:last-child { border-bottom: none; }
.role .r-title {
  font-size: 13px;
  color: var(--ink-0);
  font-weight: 500;
}
.role .r-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
}
.role .r-meta a, .role .r-meta .phone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-1);
  padding: 3px 7px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  transition: all 0.15s;
}
.role .r-meta a:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  text-decoration: none;
  background: var(--accent-soft);
}
.role .r-meta .phone { color: var(--ink-2); cursor: default; }
.role .r-meta .icon { width: 10px; height: 10px; opacity: 0.7; flex-shrink: 0; }

/* Enjeux */
.enjeux-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.enjeux-list li {
  position: relative;
  padding-left: 22px;
  font-size: 12.5px;
  color: var(--ink-1);
  line-height: 1.5;
}
.enjeux-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px;
  height: 2px;
  background: var(--wave-grad);
  border-radius: 2px;
}

/* Disclaimer */
.disclaimer {
  margin: 0 28px 20px;
  padding: 12px 14px;
  background: oklch(0.10 0.035 248 / 0.4);
  border: 1px solid var(--line);
  border-left: 2px solid var(--warn);
  border-radius: 3px;
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.55;
}
.disclaimer strong { color: var(--ink-1); font-weight: 500; }

.detail-empty {
  padding: 40px 28px;
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 40px;
}
.detail-empty .wavemark {
  width: 80px; height: 80px;
  display: grid; place-items: center;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.detail-empty .wavemark .brand-logo-img {
  width: 80px; height: 80px;
}
.detail-empty h4 {
  color: var(--ink-1);
  font-weight: 500;
  font-size: 16px;
  font-family: var(--sans);
}

/* Footer ----------------------------------------------------- */
.footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-top: 1px solid var(--line);
  background: oklch(0.10 0.035 248 / 0.9);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
  gap: 18px;
}
.footer .sep { opacity: 0.4; }
.footer .right { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.footer .ws-grad {
  background: var(--wave-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

/* Scrollbars ------------------------------------------------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-2); }

/* Responsive ------------------------------------------------- */
@media (max-width: 1200px) {
  .app { grid-template-columns: 280px 1fr 400px; }
  .brand-tagline { display: none; }
}
@media (max-width: 880px) {
  .app { grid-template-columns: 240px 1fr 0; }
  .detail {
    position: absolute;
    right: 0; top: 68px; bottom: 36px;
    width: 100%;
    max-width: 420px;
    border-left: 1px solid var(--line);
    z-index: 30;
  }
}

/* ----------------------------------------------------------
   SAIA vignettes — green labels, Innov + USTS only.
   ---------------------------------------------------------- */
.u-saia {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(78, 224, 124, 0.10);
  border: 1px solid rgba(78, 224, 124, 0.45);
  border-radius: 6px;
}
.u-saia-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #4ee07c;
  margin-bottom: 6px;
}
.u-saia-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  margin: 3px 6px 3px 0;
  background: #4ee07c;
  color: #061018;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.u-saia-row .n { color: #061018; font-weight: 700; }
.u-saia-row .r { color: rgba(6, 16, 24, 0.78); font-weight: 500; }

/* ----------------------------------------------------------
   Fly-to-Paris overlay — REWRITTEN from scratch.

   Two layers, both fullscreen:
     1. #paris-osm  — real OpenStreetMap iframe of 1 rue Fulton 75013,
                      recoloured to Matrix green/black via CSS filters.
     2. #matrix-rain — canvas with the dynamic digital-rain curtain.

   Opacity driven by --paris-opacity, set by globe.js based on camera Z.
   ---------------------------------------------------------- */
#paris-zoom {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: var(--paris-opacity, 0);
  transition: opacity 0.5s ease-out;
  background: #000704;
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Outfit', monospace;
}

/* Layer 1 — Real OSM tiles, fullscreen, recoloured to Matrix green/black.
   Sits at the very back of the overlay. The CSS filter pipeline maps the
   default map palette to a high-contrast green/black phosphor look. */
#paris-zoom #paris-osm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
  pointer-events: none;
  /* invert (white→black) then hue-rotate so streets/landmasses glow green */
  filter:
    invert(1)
    hue-rotate(82deg)
    saturate(2.6)
    contrast(1.35)
    brightness(0.82);
  opacity: 1;
}

/* Subtle green wash + dark vignette baked over the OSM tiles to lock the
   Matrix mood without obscuring the streets. */
#paris-zoom .osm-wash {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center,
      rgba(2, 16, 8, 0) 0%,
      rgba(2, 16, 8, 0.35) 60%,
      rgba(0, 6, 3, 0.85) 100%),
    linear-gradient(rgba(10, 70, 30, 0.12), rgba(10, 70, 30, 0.12));
  mix-blend-mode: multiply;
}

/* Layer 2 — Digital-rain canvas, fullscreen, on top of the OSM. */
#paris-zoom #matrix-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  opacity: 1;
}

/* Faint CRT scanlines for that terminal-monitor feel. */
#paris-zoom .scanlines {
  position: absolute; inset: 0;
  z-index: 6;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(78, 224, 124, 0.05) 0px,
    rgba(78, 224, 124, 0.05) 1px,
    transparent 1px, transparent 3px);
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* ----------------------------------------------------------
   Solar system — appears at max zoom-out. Planets sized
   relative to Earth. Earth-radius unit = --er.
   Saturn / Jupiter / Uranus / Neptune extend off-viewport on
   purpose — that's the visceral sense of true scale.
   ---------------------------------------------------------- */
#solar-system {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 7;
  opacity: var(--solar-opacity, 0);
  transition: opacity 0.9s ease-out;
  font-family: 'Outfit', system-ui, sans-serif;
}
#solar-system #solar-svg {
  width: 100%;
  height: 100%;
  display: block;
}
#solar-system .solar-caption {
  position: absolute;
  left: 50%; bottom: 48px;
  transform: translateX(-50%);
  color: rgba(234, 243, 255, 0.78);
  font-size: 11px;
  letter-spacing: 0.28em;
  padding: 9px 18px;
  background: rgba(10, 18, 32, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(78, 224, 124, 0.28);
  border-radius: 18px;
  white-space: nowrap;
}
