@import url('https://fonts.googleapis.com/css2?family=Exo:wght@400;500;700;900&display=swap');

/* ── FILTRES ── */
.valente-realisations {
  font-family: 'Exo', sans-serif;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.valente-filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.valente-filtre-btn {
  font-family: 'Exo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 9px 18px;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  background: #fff;
  color: #666;
  cursor: pointer;
  transition: all 0.15s;
}
.valente-filtre-btn:hover {
  border-color: #E8470A;
  color: #E8470A;
}
.valente-filtre-btn.active {
  background: #E8470A;
  border-color: #E8470A;
  color: #fff;
}

/* ── GRILLE MASONRY ── */
.valente-grille {
  columns: 3;
  column-gap: 14px;
}

.valente-item {
  break-inside: avoid;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  display: block;
}

.valente-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.valente-no-img {
  width: 100%;
  height: 200px;
  background: #F0F0F0;
}

/* ── OVERLAY AU SURVOL ── */
.valente-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
  gap: 4px;
  transition: background 0.25s ease;
}

.valente-item:hover .valente-overlay {
  background: rgba(0, 0, 0, 0.55);
}

.valente-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #E8470A;
  background: rgba(0,0,0,0.6);
  padding: 3px 8px;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
}

.valente-titre {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease 0.05s;
}

.valente-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E8470A;
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  line-height: 1;
}

.valente-item:hover img           { transform: scale(1.04); }
.valente-item:hover .valente-cat  { opacity: 1; transform: translateY(0); }
.valente-item:hover .valente-titre { opacity: 1; transform: translateY(0); }
.valente-item:hover .valente-zoom  { opacity: 1; }

/* ── LIGHTBOX ── */
.valente-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.valente-lightbox.open { display: flex; }

.valente-lb-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.valente-lb-img-wrap img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.valente-lb-close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.valente-lb-close:hover { background: #E8470A; border-color: #E8470A; }

.valente-lb-prev,
.valente-lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}
.valente-lb-prev { left: 16px; }
.valente-lb-next { right: 16px; }
.valente-lb-prev:hover,
.valente-lb-next:hover { background: #E8470A; border-color: #E8470A; }

.valente-lb-caption {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: 'Exo', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}
.valente-lb-caption .lb-cat {
  color: #E8470A;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 6px;
}

.valente-no-results {
  font-family: 'Exo', sans-serif;
  color: #888;
  font-size: 14px;
  text-align: center;
  padding: 40px 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .valente-grille { columns: 2; }
}
@media (max-width: 480px) {
  .valente-grille { columns: 1; }
  .valente-lb-prev { left: 6px; }
  .valente-lb-next { right: 6px; }
}
