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

:root {
  --cream: #1a473b;
  --ink: #f9efbe;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--cream);
  font-family: 'DM Sans', sans-serif;
  cursor: none;
}

html, body {
  cursor: none;
}

.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s ease, height .2s ease;
}

.cursor.hover {
  width: 24px;
  height: 24px;
}

a, button, .photo-card {
  cursor: none;
}

*, *::before, *::after {
  cursor: none !important;
}

nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  padding: 2.5rem 2.5rem;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav a {
  font-size: 15px;
  color: #a8b58c;
  text-decoration: none;
  opacity: .6;
  transition: opacity .25s;
}

nav a:hover { opacity: 1; }

.logo {
  position: fixed;
  top: -1rem;
  left: -1.7rem;
  z-index: 100;
  padding: 2rem 2.5rem;
}

.logo img {
  height: 65px;
  width: auto;
}

.name {
  position: fixed;
  bottom: 5%;
  left: 4%;
  transform: none;
  z-index: 1;
  pointer-events: none;
}

.name img {
  width: clamp(20rem, 45vw, 50rem);
  height: auto;
}

.carousel-viewport {
  pointer-events: auto;
}

.carousel-track {
  position: absolute;
  top: -1rem;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1.5rem;
  padding: 0 60vw 0 2rem;
  will-change: transform;
}

.card-wrapper {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.card-wrapper.small  { width: 200px; margin-top:  4vh; }
.card-wrapper.medium { width: 260px; margin-top: -3vh; }
.card-wrapper.large  { width: 300px; margin-top: -6vh; }

.card-wrapper .titre {
  display: block;
  font-size: 11px;
  color: #a8b58c;
  margin-bottom: .3rem;
}

.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: none;
}

.photo-card.small  { width: 200px; height: 280px; }
.photo-card.medium { width: 260px; height: 340px; }
.photo-card.large  { width: 300px; height: 400px; }

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* centre horizontal et vertical */
  display: block;
  filter: saturate(.85) contrast(1.05);
  transform: scale(1.04);
}

.photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 60%, rgba(26, 24, 20, .25));
  pointer-events: none;
}

.menu-btn { display: none; }

.menu-mobile {
  display: flex;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--cream);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-1rem);
  transition: opacity .4s ease, transform .4s ease;
}

.menu-mobile.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-mobile a {
  font-size: 2rem;
  color: var(--ink);
  text-decoration: none;
  opacity: .8;
}

.menu-mobile a:hover { opacity: 1; }

@media (max-width: 768px) {
  html, body {
    cursor: auto;
    overflow: hidden;
  }

  *, *::before, *::after {
    cursor: auto !important;
  }

  nav { display: none; }

  .cursor, .cursor-ring {
    display: none !important;
  }

  .menu-btn {
    display: block;
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    z-index: 200;
    background: none;
    border: none;
    cursor: pointer !important;
    padding: 0;
  }

  .menu-btn img {
    width: 44px;
    height: 44px;
    object-fit: contain;
  }

  .logo {
    top: 0rem;
    left: 0rem;
    padding: 1rem 1.2rem;
  }

  .logo img {
    height: 50px;
  }

  .name {
    top: auto;
    bottom: 8%;
    left: 5%;
  }

  .name img {
    width: clamp(14rem, 85vw, 22rem);
  }

  .carousel-viewport {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .carousel-viewport::-webkit-scrollbar { display: none; }

  .carousel-track {
    position: relative;
    transform: none !important;
    padding: 0 2rem 0 1.5rem;
    top: 0;
    align-items: center;
    height: 100%;
  }

  .card-wrapper.small  { width: 65vw; margin-top: 0; }
  .card-wrapper.large  { width: 75vw; margin-top: 0; }

  .card-wrapper.last {
    margin-right: 2rem;
  }

  .photo-card {
    width: 100% !important;
    height: 55vh !important;
  }
}