@font-face {
  font-family: 'Interlope';
  src: url('font/Interlope-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Feroniapi';
  src: url('font/Feroniapi-MediumItalic.otf') format('opentype');
}

@font-face {
  font-family: 'Rubik';
  src: url('font/Rubik-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Rubik bold';
  src: url('font/Rubik-VariableFont_wght.ttf') format('truetype');
}



body.project-beige {
  --angle: 130deg;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgb(255, 227, 245), transparent 45%),
    linear-gradient(var(--angle), #ff7dbe, #ff4b8b);
  background-size: 180% 180%;
  background-attachment: fixed;
  color: #fff;
}

body.project-beige .name,
body.project-beige .job,
body.project-beige .menu a,
body.project-beige .project-tag,
body.project-beige .project-title,
body.project-beige .project-description {
  color: #fff;
}

.project-page {
  padding-top: 150px;
  padding-bottom: 80px;
}

.project-editorial {
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
}

.editorial-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.editorial-gallery {
  display: grid;
  gap: 1rem;
  align-items: start;
}

/* 1 image = pleine largeur */
.editorial-gallery--1 {
  grid-template-columns: 1fr;
}

/* 2 images = côte à côte */
.editorial-gallery--2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: start;
}

/* 3 images ou plus */
.editorial-gallery--many {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

.media-item {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.72) 100%
  );
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.10);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.media-item::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 30px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.55) 35%,
    rgba(255, 255, 255, 0.18) 60%,
    rgba(255, 255, 255, 0) 78%
  );
  opacity: 0.9;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.media-item:hover img,
.media-item:hover video {
  filter: grayscale(0%);
}

.media-item img,
.media-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  filter: grayscale(100%);
  transition: filter 0.35s ease, transform 0.35s ease;
}

.media-item:hover {
  transform: translateY(-10px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.82) 100%
  );
  box-shadow:
    0 18px 40px rgba(255, 255, 255, 0.16),
    0 0 24px rgba(255, 255, 255, 0.18);
}

.media-item:hover::before {
  transform: scale(1.03);
  opacity: 1;
}

.media-item:hover img,
.media-item:hover video {
  filter: grayscale(0%);
}


.media-item.landscape {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.media-portrait {
  aspect-ratio: 3 / 4;
  max-width: 100%;
  justify-self: end;
}


.media-landscape {
  aspect-ratio: 16/10;
}

.media-item.portrait {
  grid-column: span 1;
}

.media-item.video {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.lightbox-trigger {
  cursor: zoom-in;
}

.editorial-text {
  max-width: 450px;
  position: sticky;
  top: 2rem;
}

.project-title {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 0.92;
  margin: 0 0 26px;
}

.project-tag {
  font-family: 'Rubik bold', sans-serif;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin: 0 0 18px;
  opacity: 0.85;
}

.project-description {
  font-family: 'Rubik', sans-serif;
  max-width: 430px;
  line-height: 1.3;
  font-size: 1rem;
  margin: 0 0 1rem;
}

.menu-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.menu-list a {
  text-decoration: none;
  color: inherit;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(17, 8, 14, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: min(1100px, 90vw);
  max-height: 88vh;
  border-radius: 24px;
  display: block;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .editorial-layout {
    grid-template-columns: 1fr;
  }

  .editorial-gallery {
    grid-template-columns: 1fr;
  }

  .media-item.landscape,
  .media-item.portrait,
  .media-item.video {
    grid-column: span 1;
  }

  .editorial-text {
    position: static;
    max-width: 100%;
  }

  .project-page {
    padding-top: 110px;
  }
}