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

:root {
  --black: #0f0f0f;
  --white: #ffffff;
  --gray: #888;
  --header-h: 72px;
}

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

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  background: var(--white);
  color: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── HEADER ─────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  padding: 0 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8e8e8;
}

.nav-contact {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  color: var(--black);
  transition: color 0.2s;
}

.nav-contact:hover,
.nav-contact.active {
  color: var(--gray);
}

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  color: var(--black);
}

/* ─── GALLERY ─────────────────────────────────── */
main {
  flex: 1;
  margin-top: var(--header-h);
}

.gallery {
  padding: 80px 80px 120px;
}

.series {
  margin-bottom: 140px;
}

.series-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.photo-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
}

.caption {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--gray);
}

/* ─── CONTACT PAGE ────────────────────────────── */
.contact-page {
  flex: 1;
  margin-top: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px;
}

.contact-wrap {
  max-width: 520px;
  width: 100%;
}

.contact-wrap h1 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--gray);
  margin-bottom: 48px;
}

.contact-info {
  margin-bottom: 56px;
}

.contact-info a {
  display: block;
  font-size: 15px;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.contact-info a:hover {
  color: var(--gray);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 16px 0;
  font-size: 14px;
  font-family: inherit;
  font-weight: 300;
  background: transparent;
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #bbb;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--black);
}

.contact-form textarea {
  resize: none;
  height: 120px;
}

.contact-form button {
  margin-top: 32px;
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: inherit;
  font-weight: 400;
  color: var(--white);
  background: var(--black);
  border: none;
  padding: 14px 32px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact-form button:hover {
  opacity: 0.7;
}

/* ─── FOOTER ──────────────────────────────────── */
footer {
  padding: 28px 48px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

footer p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--gray);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--black);
}

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1100px) {
  .gallery {
    padding: 60px 48px 100px;
  }
  .series {
    margin-bottom: 100px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0 24px;
  }

  .gallery {
    padding: 40px 0 80px;
  }

  .series {
    margin-bottom: 64px;
  }

  /* ── Carousel horizontal sur mobile ── */
  .series-row {
    flex-wrap: nowrap;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 0 24px;
    margin-bottom: 12px;
    /* Cache la scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .series-row::-webkit-scrollbar {
    display: none;
  }

  .photo-item {
    flex: 0 0 78vw !important;
    margin-left: 0 !important;
    scroll-snap-align: start;
  }

  /* Dernière photo snap vers le bord */
  .photo-item:last-child {
    scroll-snap-align: end;
  }

  footer {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-page {
    padding: 48px 24px;
  }
}
