@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@900&family=Space+Mono:wght@400;700&display=swap');

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

:root {
  --black: #1a1a1a;
  --white: #f0efeb;
  --grey: #888;
  --font: 'Space Mono', monospace;
  --nav-size: 11px;
}

html, body {
  width: 100%;
  height: 100%;
  background: #f0efeb;
  color: var(--black);
  font-family: 'Space Mono', monospace;
  font-size: var(--nav-size);
  letter-spacing: 0.04em;
  overflow: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
button { cursor: none; }

/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  font-size: var(--nav-size);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
  transform: translate(6px, -6px);
  transition: opacity 0.15s;
  user-select: none;
}
#cursor.dot {
  transform: translate(-2px, -2px);
}
#cursor.dot::before {
  content: '';
  display: block;
  width: 5px; height: 5px;
  background: var(--black);
  border-radius: 50%;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 22px 0;
  background: #f0efeb;
}

.logo {
  font-size: var(--nav-size);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

nav a, nav button {
  font-size: var(--nav-size);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: none;
  border: none;
  font-family: 'Space Mono', monospace;
  color: var(--black);
  padding: 0;
  transition: opacity 0.2s;
  cursor: none;
}
nav a:hover, nav button:hover { opacity: 0.4; }

.lang-btn { color: var(--grey); }
.lang-btn:hover { color: var(--black) !important; opacity: 1 !important; }

/* ── SLIDESHOW (index only) ── */
.slideshow {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zone {
  position: fixed;
  top: 0; bottom: 0;
  width: 50%;
  z-index: 200;
  cursor: none;
}
.zone-prev { left: 0; }
.zone-next { right: 0; }

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s ease;
}
.slide.active {
  opacity: 1;
  pointer-events: all;
}

.slide img {
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  padding: 42px 0 36px;
  pointer-events: none;
  user-select: none;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  body { cursor: auto; overflow: auto; }
  #cursor { display: none; }
  nav a, nav button { cursor: pointer; }
  button { cursor: pointer; }

  /* Header plus compact */
  header {
    padding: 14px 16px 0;
  }
  nav { gap: 14px; }
  .logo { font-size: 12px; }
  nav a, nav button { font-size: 12px; }

  /* Slideshow : image prend toute la place */
  .slide img {
    padding: 52px 12px 20px;
    max-width: 100vw;
    max-height: 100vh;
  }

  /* Zones de clic pleine hauteur sur mobile */
  .zone { top: 0; bottom: 0; }
}
