﻿:root {
  --bg: #0b0e14;
  --panel: #12151d;
  --panel-2: #171b24;
  --line: #2a303d;
  --text: #f9fafb;
  --muted: #bec2ca;
  --accent: #06b6d4;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel) 0%, #0e1118 100%);
  border-right: 1px solid var(--line);
  overflow: auto;
  padding: 1rem;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--line);
  min-height: 58px;
}

.brand-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.7);
}

.brand-text {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  width: 210px;
  height: 34px;
  overflow: hidden;
}

.brand-logo {
  display: block;
  width: 210px;
  height: 34px;
  object-fit: contain;
  margin: 0;
  padding: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.85rem;
}

.sidebar-link {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  padding: 0.65rem 0.7rem;
  font-size: 0.9rem;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.sidebar-link.is-active {
  color: var(--accent);
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.35);
}

.sidebar-footer {
  margin-top: auto;
  padding: 0.8rem 0.7rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #10b981;
}

.app-main {
  min-width: 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 20, 0.9);
  backdrop-filter: blur(8px);
}

.app-header .header-shell {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 6px 18px rgba(0, 0, 0, 0.22);
}

.header-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.header-title {
  margin: 0.3rem 0 0;
  font-size: 1.2rem;
}

.page-content-wrap {
  padding: 1rem;
}

/* masque uniquement le chrome source interne */
.page-content-wrap > .source-body > aside,
.page-content-wrap > .source-body > header,
.page-content-wrap > .source-body > footer,
.page-content-wrap > .source-body > nav {
  display: none !important;
}

.page-content-wrap > .source-body.h-screen.flex.overflow-hidden > aside,
.page-content-wrap > .source-body.flex.h-screen.overflow-hidden > aside,
.page-content-wrap > .h-screen.flex.overflow-hidden > aside,
.page-content-wrap > .flex.h-screen.overflow-hidden > aside {
  display: none !important;
}

.page-content-wrap > .source-body.h-screen.flex.overflow-hidden > .flex-1 > header,
.page-content-wrap > .source-body.h-screen.flex.overflow-hidden > .flex-1 > footer,
.page-content-wrap > .source-body.flex.h-screen.overflow-hidden > .flex-1 > header,
.page-content-wrap > .source-body.flex.h-screen.overflow-hidden > .flex-1 > footer,
.page-content-wrap > .h-screen.flex.overflow-hidden > .flex-1 > header,
.page-content-wrap > .h-screen.flex.overflow-hidden > .flex-1 > footer,
.page-content-wrap > .flex.h-screen.overflow-hidden > .flex-1 > header,
.page-content-wrap > .flex.h-screen.overflow-hidden > .flex-1 > footer {
  display: none !important;
}

@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .app-header {
    padding: 0.65rem 0.85rem;
  }
}
