:root{
  --bg: #0b0f12;
  --card:#111a20;
  --line:#20303a;
  --text:#e7e2d6;
  --muted:#b7b0a1;
  --accent:#c7a24a;
  --accent2:#7fd1c7;
  --shadow: 0 18px 40px rgba(0,0,0,.45);
  --radius: 16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #070a0c 100%);
}

a{ color: inherit; text-decoration:none; }

.app{
  min-height:100vh;
  display:grid;
  grid-template-columns: 280px 1fr;
}

/* ===== Sidebar ===== */
.sidebar{
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  border-right: 1px solid var(--line);

  /* fond sobre, l'image n'est plus ici */
  background: linear-gradient(180deg, rgba(15,21,26,.96), rgba(11,15,18,.92));
  overflow: hidden;
}

/* Bloc image en haut */
.sidebar-hero{
  height: 220px;              /* ajuste: 180-280px selon ton goût */
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  margin-bottom: 12px;

  background:
    radial-gradient(600px 280px at 25% 15%, rgba(199,162,74,.12), transparent 60%),
    radial-gradient(520px 260px at 80% 35%, rgba(127,209,199,.08), transparent 65%),
	linear-gradient(180deg, rgba(10,14,17,.18), rgba(10,14,17,.45)),
	url("azoth_putrefaction.jpg");
  background-size: contain;   /* image entière */
  background-repeat: no-repeat;
  background-position: center;
}

/* Brand */
.brand{
  display:flex;
  gap:12px;
  align-items:center;
  padding:14px 12px;
  border: 1px solid rgba(199,162,74,.22);
  border-radius: var(--radius);
  background: rgba(17,26,32,.65);
  box-shadow: var(--shadow);
}

.sigil{
  width:42px; height:42px;
  display:grid; place-items:center;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 20%, rgba(199,162,74,.35), rgba(17,26,32,.2));
  border: 1px solid rgba(199,162,74,.35);
  font-size: 22px;
  color: var(--accent);
}

.brand-title{ font-weight:700; letter-spacing:.4px; }
.brand-subtitle{ color: var(--muted); font-size:13px; margin-top:2px; }

/* Nav sous l'image */
.nav{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.nav-link{
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(17,26,32,.55);
  color: var(--muted);
}

.nav-link:hover{
  border-color: rgba(199,162,74,.35);
  color: var(--text);
}

.nav-link.active{
  color: var(--text);
  border-color: rgba(199,162,74,.65);
  background: linear-gradient(90deg, rgba(199,162,74,.18), rgba(17,26,32,.50));
}

/* Footer collé en bas */
.sidebar-footer{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.10);
  text-align: center;
}

.seal{
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(231,226,214,.75);
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ===== Content ===== */
.content{ padding: 22px 22px 40px; }

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin: 6px 0 18px;
}

.crumbs{
  color: rgba(231,226,214,.6);
  font-family: var(--mono);
  font-size: 12px;
}

.card{
  background: linear-gradient(180deg, rgba(17,26,32,.86), rgba(17,26,32,.55));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.card h1{ margin: 0 0 10px; font-size: 22px; letter-spacing: .3px; }
.card p{ margin: 10px 0; color: rgba(231,226,214,.86); }
.muted{ color: rgba(231,226,214,.62); }

.footer{
  margin-top: 8px;
  color: rgba(231,226,214,.55);
  font-size: 12px;
  font-family: var(--mono);
}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .app{ grid-template-columns: 1fr; }
  .sidebar{ position:relative; height:auto; }
  .sidebar-footer{ position:relative; left:auto; right:auto; bottom:auto; margin-top: 12px; }
  .sidebar-hero{ height: 180px; }
}

.footer a{
  color: rgba(199,162,74,.95);
  text-decoration: none;
  border-bottom: 1px dashed rgba(199,162,74,.55);
}
.footer a:hover{
  border-bottom-style: solid;
}