/* ---------------- RESET ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------------- BODY / FADE IN ---------------- */
body {
  font-family: Inter, Arial, sans-serif;
  background: #fff;
  color: #111;
  opacity: 0;
  transition: opacity 1s ease;
}

body.loaded {
  opacity: 1;
} 

/* ---------------- HEADER ---------------- */
/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 48px 24px 48px; /* plus d'espace au-dessus et entre logo/nav */
  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;
}

/* NAV CENTRÉE */
.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: 8px;
}

.main-nav a.active {
  border-bottom: 2px solid #111;
}

/* ---------------- INSTAGRAM ---------------- */
.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;
}

/* ---------------- GALLERY ---------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 32px 60px 60px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Image */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Overlay */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 1;
}

/* Texte */
.overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  letter-spacing: 4px;
  color: #111;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  z-index: 2;
}

/* Hover */
.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover .overlay-text {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- FOOTER ---------------- */
.site-footer {
  text-align: center;
  padding: 16px 0;
  font-size: 12px;
  color: #555;
  background: #fff;
  border-top: 1px solid #eee;
}




/* 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;
} 

/* RESPONSIVE */
@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .main-nav { display: none; }
  .insta-btn { display: none; }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    padding: 32px 40px 50px;
  }
}


@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
    padding: 24px 20px 40px;
  }

  .logo {
    font-size: 24px;
  }

  .main-nav {
    gap: 20px;
  }

  .main-nav a {
    font-size: 14px;
  }

  .insta-btn {
    display: none;
  }

  .insta-btn svg {
    width: 20px;
    height: 20px;
  } 
}


