/* Galerie photos des réalisations */
a.project-card,
a.project-card.project-large {
  display: block;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a.project-card:hover img,
a.project-card:focus-visible img {
  transform: scale(1.04);
}
a.project-card:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 2px;
}

.gallery-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(16, 60, 36, 0.85);
  color: #fff;
  font: 700 10px/1 var(--sans);
  letter-spacing: 0.05em;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 14, 0.92);
  animation: lightboxIn 0.25s ease;
}
.lightbox[hidden] {
  display: none;
}
@keyframes lightboxIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lightbox-figure {
  margin: 0;
  max-width: min(1080px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 6px;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-figure figcaption {
  color: #d4dfd1;
  font: 600 13px/1.5 var(--sans);
  text-align: center;
  max-width: 70vw;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.lightbox-btn {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lightbox-prev {
  left: 18px;
}
.lightbox-next {
  right: 18px;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-counter {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  color: #c4d2c3;
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 10px;
  border-radius: 999px;
}
@media (max-width: 760px) {
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
  .lightbox-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .lightbox-figure img {
    max-height: 68vh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox {
    animation: none;
  }
}