:root {
  --ink: #000000;
  --bg: #ffffff;
  --accent: #0000ee;
  --menu-size: 13px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ===== fixed menu, top-left ===== */
nav.menu {
  position: fixed;
  top: 24px;
  left: 26px;
  z-index: 300; /* stays above the project overlay so the highlight remains visible */
  color: var(--ink);
  font-size: var(--menu-size);
  line-height: 1.75;
  user-select: none;
}

nav.menu a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

nav.menu a:hover { color: var(--accent); }

nav.menu .head { margin-bottom: 14px; }
nav.menu .head .name {
  font-weight: 700;
  display: block;
}
nav.menu .head a { display: block; }

nav.menu .year {
  color: var(--ink);
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

nav.menu .proj { display: block; }

nav.menu .proj.active {
  color: var(--accent);
}

/* ===== image feed ===== */
.feed { position: relative; }

.slide {
  position: relative;
  height: 100vh;
  height: 100dvh; /* mobile: suit la barre d'adresse du navigateur */
  width: 100%;
  cursor: pointer;
  overflow: hidden;
}

.slide img.art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide img.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== project overlay (all pictures of one project) ===== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  overflow-y: auto;
  display: none;
}
.overlay.open { display: block; }

.overlay .close {
  position: fixed;
  top: 20px;
  right: 26px;
  z-index: 210;
  color: var(--ink);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.overlay .gallery-item {
  display: block;
  width: 100%;
  height: auto; /* image entière, pleine largeur, aucun espace entre les images */
}

.overlay .gallery-video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg);
}

.overlay .caption {
  color: var(--ink);
  font-size: var(--menu-size);
  padding: 24px 26px 60px;
  line-height: 1.7;
  max-width: 520px;
}

@media (max-width: 700px) {
  nav.menu { top: 16px; left: 16px; }
  .overlay .close { top: 14px; right: 16px; }

  /* smartphone : colonne continue — toutes les images à la même largeur,
     hauteur naturelle, aucun espace entre elles */
  .slide {
    height: auto;
  }
  .slide img.art {
    height: auto;
    object-fit: unset;
  }
}
