/* -------------------- */
/* GLOBAL */
/* -------------------- */

body {
  margin: 0;
  background: white;
  font-family: sans-serif;
  color: #111;
}

a {
  color: inherit;
  text-decoration: none;
}

/* -------------------- */
/* HEADER */
/* -------------------- */

.top {
  padding: 40px 0 40px;
}

/* Structure alignée avec la galerie */
.brand {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Left block = logo + sub-image */
.left-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start; /* ✅ force tout à coller à gauche */
}

/* Logo principal */
.logo {
  height: 20px;
  width: auto;
  max-width: 100%;
  display: block;           /* ✅ évite les décalages inline */
  object-fit: contain;
  align-self: flex-start;   /* ✅ ancrage gauche */
}

/* Petite image sous le logo */
.sublogo {
  height: 18px;
  width: auto;
  max-width: 100%;
  display: block;           /* ✅ */
  opacity: 1;
  object-fit: contain;
  align-self: flex-start;   /* ✅ ancrage gauche */
}

/* CONTACT (à droite) */
.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.email,
.insta {
  font-size: 12px;
  text-decoration: underline;
}

/* -------------------- */
/* GALLERY */
/* -------------------- */

.gallery {
  max-width: 1800px;
  margin: 60px auto;
  padding: 0 40px;
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  column-gap: 90px;
  row-gap: 120px;
}

/* Chaque item */
.work {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Images fade-in */
.gallery img {
  width: 100%;
  display: block;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s ease, transform .35s ease;
}

.gallery img.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Caption sous chaque image */
.caption {
  margin-top: 15px;
  font-size: 12px;
  text-align: center;
  opacity: 1;
}

/* -------------------- */
/* MOBILE */
/* -------------------- */

@media (max-width: 850px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 10px;
    column-gap: 20px;
    row-gap: 30px;
  }

  .brand {
    padding: 0 10px;
  }

  .logo {
    height: 20px;
  }

  .sublogo {
    height: 18px;
  }
}

/* -------------------- */
/* LIGHTBOX */
/* -------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.97);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(900px, 90vw);
  max-height: 85vh;
  opacity: 0;
  transition: opacity .25s ease;
}

.lightbox.open img {
  opacity: 1;
}

/* Boutons */
.lb-btn,
.lb-close {
  color: #555 !important;
}

.lb-btn:hover,
.lb-close:hover {
  color: #000 !important;
}

@media (max-width: 700px) {
  .lb-prev,
  .lb-next {
    display: none !important;
  }
}
