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

:root {
  --cream: #f5f3ef;
  --ink: #1a1a18;
  --ink-light: rgba(26,26,24,0.4);
  --font: 'Georgia', serif;
  --sans: system-ui, -apple-system, sans-serif;
  --transition: 1.1s cubic-bezier(0.76, 0, 0.24, 1);
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
}

/* Canvas Three.js */
#c {
  position: fixed;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
  pointer-events: none;
}

/* Espace de navigation */
#space {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#world {
  position: absolute;
  width: 300vw;
  height: 300vh;
  top: -100vh;
  left: -100vw;
  will-change: transform;
  transition: transform var(--transition);
}

/* Sections */
.section {
  position: absolute;
  pointer-events: auto;
  max-width: 480px;
  padding: 0 24px;
}

#home    { top: calc(100vh + 0px);   left: calc(100vw + 0px);   }
#angebot { top: calc(100vh + 0px);   left: calc(100vw + 100vw); }
#agenda  { top: calc(100vh + 100vh); left: calc(100vw + 0px);   }
#kontakt { top: calc(100vh + 0px);   left: calc(100vw - 100vw); }

/* Typo */
.section-title {
  font-family: var(--font);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 1.4rem;
  line-height: 1.1;
}

.section-body {
  font-family: var(--sans);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  line-height: 1.8;
  color: var(--ink-light);
}

/* Angebot */
.angebot-list { display: flex; flex-direction: column; gap: 2rem; }
.angebot-titre {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.angebot-body {
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-light);
}

/* Agenda */
.agenda-list { list-style: none; display: flex; flex-direction: column; gap: 1.4rem; }
.agenda-item { display: grid; grid-template-columns: 100px 1fr; gap: 0.4rem 1rem; }
.agenda-date {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-light);
  padding-top: 2px;
}
.agenda-titre {
  font-family: var(--font);
  font-size: 1rem;
}
.agenda-desc {
  grid-column: 2;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-light);
  line-height: 1.6;
}

/* Kontakt */
.kontakt-mail {
  font-family: var(--font);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-light);
  padding-bottom: 2px;
  transition: border-color 0.3s;
}
.kontakt-mail:hover { border-color: var(--ink); }

/* Nav */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  pointer-events: auto;
}

#nav-logo {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

#nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

#nav-links li a {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.4s;
  user-select: none;
}

#nav-links li a.inactive { color: var(--ink-light); }
#nav-links li a:hover    { color: var(--ink); }

@media (max-width: 700px) {
  #nav { padding: 20px 24px; }
  #nav-links { gap: 20px; }
  #angebot { top: calc(100vh + 0px);   left: calc(100vw + 100vw); }
  #agenda  { top: calc(100vh + 100vh); left: calc(100vw + 0px);   }
  #kontakt { top: calc(100vh + 0px);   left: calc(100vw - 100vw); }
}