/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: Inter, Arial, sans-serif;
  background: #fff;
  color: #111;
  opacity: 0;
  transition: opacity 1s ease;
}
 
body.loaded {
  opacity: 1;
}

/* ================= HEADER (INCHANGÉ) ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #fff; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 48px 24px;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.site-header.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
  color: #111;
}

.logo span {
  margin-left: 6px;
}

.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 32px;
}

.main-nav a {
  text-decoration: none;
  color: #111;
  font-size: 16px;
  padding-bottom: 6px;
}

.main-nav a.active {
  border-bottom: 2px solid #111;
}

/* ================= PROJECT GALLERY ================= */

.project-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 80px 40px;
}


/* ITEM */
.project-item {
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  will-change: opacity, transform;
}

.project-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* IMAGE */
.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.project-item:hover img {
  transform: scale(1.02);
}

/* RATIOS */
/* normal */
.project-item.landscape {
  aspect-ratio: 3 / 2;
}

.project-item.landscape img {
  aspect-ratio: 3 / 2;
  object-position: center 65%;
}


/* large */
.project-item.landscape-large {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.project-item.landscape-small {
  grid-column: span 0.5;
  aspect-ratio: 16 / 9;
}

.project-item.landscape-large img {
    object-position: center 65%;
}

.project-item.landscape-largee {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.project-item.landscape-largee img {
  object-position: center 65%;
  }

/* très large (hero shots) */
.project-item.landscape-xl {
  grid-column: span 4;
  aspect-ratio: 16 / 9;
  object-position: center 65%;

}

.project-item .project-item.landscape-xl img {
  object-position: center 75%;
}

/* vertical (détails, intérieurs) */
.project-item.portrait {
  aspect-ratio: 2 / 3;
}

/* ================= LIGHTBOX ================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.35s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.lightbox img.fade {
  opacity: 0;
}

/* CLOSE */
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ARROWS (DISCRETE) */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 34px;
  color: #fff;
  padding: 12px;
  cursor: pointer;
  user-select: none;
  opacity: 0.35;
  transition: opacity 0.25s ease;
}

.lightbox-arrow:hover {
  opacity: 0.7;
}

.lightbox-arrow.left {
  left: 24px;
}

.lightbox-arrow.right {
  right: 24px;
}

/* ================= PROJECT NAV ================= */

.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
  padding: 0 80px 60px;
}

.project-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  transition: none;
}

/* flèches */
.project-nav a.left::before {
  content: '< ';
  font-weight: 700;
}

.project-nav a.right::after {
  content: ' >';
  font-weight: 700;
}

/* BURGER */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 600;
  position: relative;
}

.mobile-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #111;
  border-radius: 2px;
  transition: all 0.3s ease;
}

body.menu-open .mobile-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

body.menu-open .mobile-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .mobile-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* MOBILE MENU OVERLAY */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 400;
}

body.menu-open .mobile-menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-overlay a {
  font-size: 20px;
  color: #111;
  text-decoration: none;
  letter-spacing: 2px;
  transition: color 0.3s ease;
}

.mobile-menu-overlay a:hover {
  color: #555;
} 

.site-footer {
  text-align: center;
  padding: 16px 0;
  font-size: 12px;
  color: #555;
  background: #fff;
  border-top: 1px solid #eee;
}

.insta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #111;
  cursor: pointer;
  transition: all 0.3s ease;
}

.insta-btn:hover {
  background: #111;
}

.insta-btn svg {
  width: 22px;
  height: 22px;
  fill: #111;
  transition: fill 0.3s ease;
}

.insta-btn:hover svg {
  fill: #fff;
}


.project-nav {
  display: flex;
  justify-content: space-between; /* séparation gauche / droite */
  align-items: center;
  margin-top: 60px;
  padding: 0 80px 60px; /* gauche / droite bien décollé */
}

.project-nav a {
  font-family: 'Roboto', sans-serif;
  font-size: 32px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  transition: none;
}


@media (max-width: 768px) {

  .mobile-toggle { display: flex; }
  .main-nav,
  .insta-btn { display: none; }

  .project-gallery {
    display: grid; /* important */
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes pour landscape normaux */
    gap: 12px;
    padding: 48px 16px;
  }
  
   /* Les grandes images prennent toute la largeur */
  .project-item.landscape-large,
  .project-item.landscape-largee {
    grid-column: span 2;
  }
}

  /* normales = 2 par ligne */
  .project-item {
    flex: 1 1 calc(50% - 12px);
    aspect-ratio: 3 / 2;
  }

  /* grandes = 1 par ligne */
  .project-item.landscape-largee {
    flex: 1 1 100%;
    aspect-ratio: 16 / 9;
  }

  .project-nav {
    padding: 0 24px 40px;
  }

  .project-nav a {
    font-size: 22px;
  }


@media (max-width: 480px) {
  .project-item {
    flex: 1 1 100%;
  }
}
