/*
 * realisations.css — Galerie de réalisations LATRACTION
 * =========================================================
 */

.real-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
}

.real-filter-btn {
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  padding: .55rem 1.1rem;
  border-radius: 100px;
  border: 1.5px solid var(--border-color, #e5e7eb);
  background: #fff;
  color: var(--text-dark, #1f2937);
  cursor: pointer;
  transition: all .2s ease;
  min-height: 44px;
}

.real-filter-btn:hover {
  border-color: var(--primary-color, #2563eb);
  color: var(--primary-color, #2563eb);
}

.real-filter-btn.active {
  background: var(--primary-color, #2563eb);
  border-color: var(--primary-color, #2563eb);
  color: #fff;
}

.real-count {
  font-size: .85rem;
  color: var(--text-light, #6b7280);
  margin-bottom: 1.25rem;
}

.real-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}

.real-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-light, #f3f4f6);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-color, #e5e7eb);
  transition: transform .2s ease, box-shadow .2s ease;
}

.real-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0,0,0,.1));
}

.real-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.real-card-video {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: linear-gradient(135deg, var(--primary-color, #2563eb) 0%, var(--primary-dark, #1e40af) 100%);
  color: #fff;
}

.real-play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.real-play-icon svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.real-card-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
  padding: 0 1rem;
  opacity: .92;
}

.real-card-badge {
  position: absolute;
  top: .6rem;
  right: .6rem;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .25rem .55rem;
  border-radius: 100px;
  background: rgba(0,0,0,.55);
  color: #fff;
}

.real-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light, #6b7280);
  font-size: .95rem;
}

/* ── Lightbox ── */
.real-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  padding: 1.5rem;
  align-items: center;
  justify-content: center;
}

.real-lightbox.open {
  display: flex;
}

.real-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.88);
}

.real-lightbox-content {
  position: relative;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.real-lightbox-content img,
.real-lightbox-content video {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  display: block;
}

.real-lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
}

.real-lightbox-close:hover {
  background: rgba(255,255,255,.25);
}

.real-lightbox-close svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .real-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .7rem;
  }
  .real-play-icon {
    width: 40px;
    height: 40px;
  }
  .real-lightbox-close {
    top: -2.75rem;
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .real-card {
    transition: none;
  }
}
