/* ============================================================
   FONTS — SuperGrotesk (fichiers locaux)
   ============================================================ */
@font-face {
  font-family: 'SuperGrotesk';
  src: url('../fonts/SuperGroteskTB-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'SuperGrotesk';
  src: url('../fonts/SuperGroteskTB-RegularItalic.otf') format('opentype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'SuperGrotesk';
  src: url('../fonts/SuperGroteskTB-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:        #ffffff;
  --wall:      #f3f2ef;
  --ink:       #15141a;
  --muted:     #8c8b86;
  --line:      #e4e3de;
  --accent:    #9a3b2e;
  --sidebar-w: 300px;
  --gap:       26px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --font:      'SuperGrotesk','Helvetica Neue',Arial,'Segoe UI',sans-serif;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img    { display: block; max-width: 100% }
figure { margin: 0 }
a      { color: inherit; text-decoration: none }
button { font-family: inherit; border: 0; background-color: unset }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--wall);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 47px 30px 28px;
  z-index: 40;
  transition: transform .55s var(--ease);
}
body.menu-closed .sidebar { transform: translateX(-100%) }

.sidebar__head {
  position: absolute;
  top: 20px;
  right: 22px;
}

/* bouton fermer */
.menu-close {
  appearance: none; border: 0; background: none; cursor: pointer;
  width: 34px; height: 34px; flex: 0 0 34px; margin: -4px -6px 0 0;
  color: var(--ink); border-radius: 50%;
  display: grid; place-items: center;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.menu-close:hover { background: rgba(0,0,0,.06); transform: rotate(90deg) }
.menu-close svg   { width: 18px; height: 18px }

/* navigation */
.nav { margin-top: 0; display: flex; flex-direction: column; gap: 2px }
.nav a {
  position: relative;
  font-size: 17px;
  line-height: 1.25;
  padding: 9px 0;
  color: var(--ink);
  transition: color .3s var(--ease);
}
.nav a .yr        { color: var(--muted); font-size: 13.5px }
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 5px;
  width: 0; height: 1px; background: var(--ink);
  transition: width .4s var(--ease);
}
.nav a:hover             { opacity: .6 }
.nav a:hover::after      { width: 1.4em }
.nav a.is-active::after  { width: 1.4em }

.sidebar__foot {
  margin-top: auto; padding-top: 24px;
  font-size: 12px; color: var(--muted); letter-spacing: .02em;
}
.sidebar__foot a { color: inherit; border-bottom: 1px solid transparent }
.sidebar__foot a:hover { border-color: var(--muted) }

/* bouton ouvrir (hamburger) */
.menu-open {
  position: fixed; top: 22px; left: 22px; z-index: 45;
  appearance: none; border: 1px solid var(--line);
  background: rgba(255,255,255,.85); backdrop-filter: blur(6px);
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: scale(.9);
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .25s var(--ease);
}
body.menu-closed .menu-open { opacity: 1; pointer-events: auto; transform: scale(1) }
.menu-open:hover              { background: #fff }
.menu-open span {
  display: block; width: 18px; height: 2px;
  background: var(--ink); position: relative;
}
.menu-open span::before,
.menu-open span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--ink);
}
.menu-open span::before { top: -6px }
.menu-open span::after  { top:  6px }

/* ============================================================
   CONTENU PRINCIPAL
   ============================================================ */
.content {
  margin-left: var(--sidebar-w);
  padding: 56px clamp(22px,5vw,72px) 120px;
  transition: margin-left .55s var(--ease);
}
body.menu-closed .content { margin-left: 0 }

/* intro */
.intro { max-width: 1500px; margin: 0 auto 72px }
.intro-title {
  margin-top: 28px;
}
.main-title {
  font-size: clamp(28px,4.5vw,52px);
  font-weight: 700; letter-spacing: -.02em;
  margin: 0; line-height: 1;
}
.main-sub {
  margin: 10px 0 0;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   VIDÉO HERO 16:9 — facade RGPD
   ============================================================ */
.video {
  position: relative; width: 100%; max-width: 560px;
  aspect-ratio: 16/9; background: #000;
  border: 1px solid var(--line); overflow: hidden;
  cursor: pointer;
  transition: max-width .55s var(--ease);
}
.video iframe          { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 }
.video-thumb           { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.video-play {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.22);
  border: 0; cursor: pointer; width: 100%; padding: 0;
  transition: background .3s var(--ease);
}
.video-play:hover      { background: rgba(0,0,0,.06) }
.video-play svg        { width: 58px; height: 58px; color: #fff; filter: drop-shadow(0 2px 14px rgba(0,0,0,.5)) }
.video.is-playing .video-thumb,
.video.is-playing .video-play { display: none }
body.menu-closed .video.is-playing { max-width: 780px; }

/* ============================================================
   GALERIE — masonry + parallaxe (positionnement JS)
   ============================================================ */
.gallery { position: relative; max-width: 1500px; margin: 0 auto; width: 100% }

.work {
  position: absolute; top: 0; left: 0;
  will-change: transform;
  opacity: 0;
  transition: opacity .75s var(--ease);
}
.work.is-visible { opacity: 1 }

.work__frame {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: transparent; cursor: zoom-in;
  overflow: hidden; outline: 0;
  transition: transform .55s var(--ease);
  transform-origin: center center;
}
.work__frame:hover       { transform: scale(1.05) }
.work__frame img {
  width: 100%; height: auto;
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
  transform: scale(1.001);
}
.work__frame:hover img   { transform: scale(1.10) }

/* voile + indice d'ouverture au survol */
.work__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,rgba(20,20,26,0) 55%,rgba(20,20,26,.22));
  opacity: 0; transition: opacity .6s var(--ease);
  pointer-events: none;
}
.work__frame:hover::after { opacity: 1 }

.work__hint {
  position: absolute; left: 14px; bottom: 13px; z-index: 2;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; opacity: 0; transform: translateY(6px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  display: flex; align-items: center; gap: 8px;
  pointer-events: none;
}
.work__hint svg                 { width: 14px; height: 14px }
.work__frame:hover .work__hint  { opacity: 1; transform: translateY(0) }

.work:hover { z-index: 10 }

figcaption { margin-top: 14px }
.work-title {
  display: block;
  font-size: 15px; line-height: 1.3; color: var(--ink);
}
.dim-block {
  display: block;
  font-size: 10.5px; color: var(--muted);
  margin-top: 4px; letter-spacing: .03em;
}

/* ============================================================
   LIGHTBOX — fond clair
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(248,247,244,.985);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: clamp(24px,5vw,72px);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible }
.lightbox img {
  max-width: 90vw; max-height: 78vh; width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.35);
  transform: scale(.985); opacity: 0;
  transition: transform .55s var(--ease), opacity .45s var(--ease);
}
.lightbox.is-open img { transform: scale(1); opacity: 1 }
.lightbox figcaption  { margin-top: 22px; font-size: 14px; color: var(--ink); text-align: center }

.lightbox__close {
  position: absolute; top: 28px; right: 32px;
  appearance: none; border: 0; background: none; padding: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--ink);
  transition: transform .3s var(--ease), opacity .25s;
}
.lightbox__close:hover { transform: rotate(90deg); opacity: .45 }
.lightbox__close svg   { width: 34px; height: 34px }

/* ============================================================
   PAGES TEXTE — lecture, biographie, contact, ausstellungen
   ============================================================ */
.page-content { max-width: 760px }

.page-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 18px;
}
.page-content h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 6px;
}
.page-content h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 48px 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.page-content article {
  margin-bottom: 72px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.page-content article:last-child { border-bottom: none }
.page-content .author {
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  margin: 24px 0 0;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
.contact-portrait {
  margin: 0;
  position: sticky;
  top: 32px;
}
.contact-portrait img {
  width: 100%;
  height: auto;
  display: block;
}
.contact-portrait figcaption {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
}
.contact-right .contact-email { margin-top: 0 }
@media (max-width: 680px) {
  .contact-layout { grid-template-columns: 1fr }
  .contact-portrait { position: static; width: 180px }
}
.contact-email {
  font-size: 20px;
  margin: 32px 0 48px;
}
.gallery-list {
  display: grid;
  gap: 28px;
  margin-top: 8px;
}
.gallery-list address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.7;
}
.gallery-list a { border-bottom: 1px solid var(--line) }
.gallery-list a:hover { border-color: var(--ink) }
.impressum {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

/* Ausstellungen */
.exh-year {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.exh-year:first-child { margin-top: 0 }
.exh-item {
  margin-bottom: 22px;
  font-size: 15px;
  line-height: 1.6;
}
.exh-item strong { display: block; margin-bottom: 2px }
.exh-item .place { font-size: 13px; color: var(--muted) }

/* Biographie */
.bio-collections {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.bio-collections h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.bio-collections ul { margin: 0; padding: 0; list-style: none }
.bio-collections li {
  font-size: 15px;
  line-height: 1.6;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.bio-collections li:last-child { border-bottom: none }

/* Edition / Vorsokratiker */
.edition-block {
  max-width: 640px;
  margin-bottom: 64px;
  padding: 28px 32px;
  background: var(--wall);
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.75;
}
.edition-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.edition-photos img {
  flex: 1 1 200px;
  max-width: 340px;
  height: auto;
  cursor: zoom-in;
  transition: opacity .25s;
}
.edition-photos img:hover { opacity: .82 }

/* ============================================================
   PAGES PLACEHOLDER
   ============================================================ */
.page-placeholder {
  max-width: 640px;
  padding-top: 80px;
  color: var(--muted);
  font-size: 15px;
}
.page-placeholder .main-title { margin-bottom: 24px }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .content { padding: 78px 20px 100px }
  .sidebar { width: 100%; transform: translateX(-100%); box-shadow: 0 0 60px rgba(0,0,0,.18) }
  body:not(.menu-closed) .sidebar { transform: translateX(0) }
  body:not(.menu-closed) .content { margin-left: 0 }
  .menu-open { opacity: 1; pointer-events: auto; transform: scale(1) }
  body:not(.menu-closed) .menu-open { opacity: 0; pointer-events: none }

  .main-title { font-size: clamp(24px,7vw,40px) }
  .nav a { font-size: 20px; padding: 12px 0 }
  .page-content p { font-size: 15px; line-height: 1.68 }
  .contact-email { font-size: 17px }
  .exh-item { font-size: 14px }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important }
  .work { transform: none !important }
}
