@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg:      #0a0614;
  --sidebar: 280px;
  --accent:  #f4c842;
  --accent2: #c084fc;
  --text:    #e8e0ff;
  --muted:   #9080b0;
  --border:  rgba(255,255,255,0.08);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Starfield canvas ── */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Sidebar ── */
.hs-sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar);
  z-index: 10;
  background: rgba(10,6,20,0.85);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.5rem;
}

.sidebar-top { display: flex; flex-direction: column; gap: 2.5rem; }
.hs-brand {
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.hs-nav-links {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.hs-nav-link {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: 4px;
  transition: all .2s;
  border-left: 2px solid transparent;
}
.hs-nav-link:hover, .hs-nav-link.active {
  color: var(--text);
  border-left-color: var(--accent);
  background: rgba(244,200,66,0.07);
}
.hs-back {
  font-size: .78rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.hs-back:hover { color: var(--accent); }

/* ── Main content ── */
.hs-main {
  margin-left: var(--sidebar);
  position: relative;
  z-index: 1;
}

/* ── Sections ── */
.hs-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 3rem;
}

#intro {
  background: radial-gradient(ellipse at 60% 40%, rgba(196,132,252,0.15) 0%, transparent 60%);
}
#histoire {
  background: radial-gradient(ellipse at 30% 60%, rgba(244,200,66,0.08) 0%, transparent 60%);
}
#meta {
  background: radial-gradient(ellipse at 70% 30%, rgba(196,132,252,0.08) 0%, transparent 60%);
}

.hs-section-inner {
  max-width: 680px;
  width: 100%;
}

/* ── Section 1: Intro ── */
.section-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hs-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hs-title em {
  font-style: normal;
  color: var(--accent2);
  display: block;
}
.hs-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 40ch;
  line-height: 1.65;
}
.scroll-hint {
  margin-top: 3rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  color: var(--accent);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* Eiffel decoration */
.eiffel-deco {
  position: absolute;
  right: -2rem;
  bottom: 0;
  height: 80vh;
  max-height: 500px;
  color: var(--accent2);
  pointer-events: none;
}
.eiffel-deco svg { height: 100%; width: auto; }

/* ── Section 2: Story ── */
.story-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-family: monospace;
}
.hs-story .event-body {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text);
}
.hs-story .event-body p {
  margin-bottom: 1.5rem;
  max-width: 60ch;
}
.hs-story .event-body p:last-child { margin-bottom: 0; }

/* ── Section 3: Meta ── */
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.meta-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: .8rem;
  padding: 1.2rem;
  transition: border-color .2s;
}
.meta-card:hover { border-color: rgba(244,200,66,0.3); }
.meta-icon { font-size: 1.5rem; margin-bottom: .5rem; }
.meta-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .2rem;
}
.meta-value { font-size: .9rem; font-weight: 500; color: var(--text); }

.meta-labels { margin-bottom: 2rem; }
.meta-label-title {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.label-tag {
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 2rem;
  background: rgba(244,200,66,0.1);
  border: 1px solid rgba(244,200,66,0.3);
  color: var(--accent);
  text-decoration: none;
  transition: all .2s;
}
.label-tag:hover { background: rgba(244,200,66,0.2); }

.hs-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.hs-cta:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 768px) {
  :root { --sidebar: 0px; }
  .hs-sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
  }
  .hs-nav-links { flex-direction: row; gap: 1rem; }
  .sidebar-top { flex-direction: row; align-items: center; gap: 1.5rem; }
  .hs-section { padding: 3rem 1.5rem; min-height: 80vh; }
  .meta-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hs-title { font-size: 2.5rem; }
  .meta-grid { grid-template-columns: 1fr; }
  .hs-section { padding: 2rem 1rem; min-height: 70vh; }
  .eiffel-deco { display: none; }
}

/* ── Lightbox ── */
#lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.9);
  z-index:9999;align-items:center;justify-content:center;
  flex-direction:column;gap:.5rem}
#lightbox img{max-width:90vw;max-height:80vh;object-fit:contain}
.lb-close{position:fixed;top:1rem;right:1.5rem;font-size:2.5rem;
  color:#fff;cursor:pointer;line-height:1;opacity:.8}
.lb-close:hover{opacity:1}
.lb-nav{position:fixed;top:50%;transform:translateY(-50%);font-size:3rem;
  color:#fff;cursor:pointer;padding:.5rem;user-select:none;opacity:.7}
.lb-nav:hover{opacity:1}
.lb-prev{left:1rem}.lb-next{right:1rem}
.lb-caption{color:#ccc;font-size:.9rem;text-align:center;max-width:80vw}

/* ── Collection links ── */
nav.event-collections{display:flex;flex-wrap:wrap;gap:.5rem 1rem;padding:1rem 1.5rem;border-top:1px solid rgba(128,128,128,.2);font-family:var(--font-head,sans-serif);font-size:.82rem}
nav.event-collections .ec-link{color:var(--accent,#f4c842);text-decoration:none;opacity:.8;transition:opacity .2s}
nav.event-collections .ec-link:hover{opacity:1}
