/* main.css — Panopticon — Reset + Variables + Globe + Layout */

/* ------------------------------------------------------------------ */
/* Polices self-hosted                                                   */
/* ------------------------------------------------------------------ */

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/JetBrainsMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('../assets/fonts/SpaceMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('../assets/fonts/SpaceMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ */
/* Variables CSS — Palette Panopticon                                    */
/* ------------------------------------------------------------------ */

:root {
  --bg:        #0a0e14;
  --text:      #e0f0ff;
  --cyan:      #00d4ff;
  --green:     #39ff14;
  --amber:     #ffb700;
  --danger:    #ff3333;
  --panel-bg:  rgba(10, 20, 35, 0.85);
  --border:    rgba(0, 212, 255, 0.2);

  --header-h:  56px;
  --statusbar-h: 32px;
  --panel-w:   320px;

  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-title: 'Space Mono', 'Courier New', monospace;
}

/* ------------------------------------------------------------------ */
/* Reset                                                                 */
/* ------------------------------------------------------------------ */

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  color: inherit;
}

/* ------------------------------------------------------------------ */
/* Globe plein écran                                                     */
/* ------------------------------------------------------------------ */

#cesium-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg);
  z-index: 0;
}

/* Masquer la barre de crédit CesiumJS */
.cesium-widget-credits {
  display: none !important;
}

/* ------------------------------------------------------------------ */
/* Erreur globe                                                          */
/* ------------------------------------------------------------------ */

.globe-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--danger);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 32px;
}

.globe-error-icon {
  font-size: 32px;
  opacity: 0.7;
}

.globe-error-msg {
  opacity: 0.9;
  max-width: 400px;
  line-height: 1.6;
}
