/* =========================================================
   RÉALISATIONS — PAGE
========================================================= */

.page-head {
  padding-top: 110px;
}


/* =========================================================
   FILTRES
========================================================= */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter {
  padding: 10px 12px;
  border: 1px solid rgba(42, 42, 42, 0.9);
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.5);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;

  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.filter:hover {
  border-color: rgba(198, 167, 94, 0.35);
  color: var(--text);
  transform: translateY(-1px);
}

.filter.active {
  border-color: rgba(198, 167, 94, 0.65);
  background: rgba(198, 167, 94, 0.08);
  color: var(--gold-2);
}


/* =========================================================
   CARDS PROJET
========================================================= */

.project {
  overflow: hidden;
  cursor: pointer;
}

.project.zooming {
  z-index: 50;
  transform: scale(1.08);
  transition: transform 0.35s cubic-bezier(.16, 1, .3, 1);
}

.project .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 0, 0, 0.7)
  );
}

.project .thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transform: scale(1.04);
  transition: transform 0.6s var(--ease);
}

.project:hover .thumb video {
  transform: scale(1.08);
}

.project .body {
  padding: 16px;
}

.project .body .t {
  margin: 0 0 8px;
  color: var(--gold-2);
  font-family: "Cinzel", "Playfair Display", Georgia, serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}


/* =========================================================
   BOUTON PLAY
========================================================= */

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 54px;
  height: 54px;
  border: 1px solid rgba(198, 167, 94, 0.55);
  border-radius: 999px;

  background: rgba(10, 10, 10, 0.55);
  color: rgba(198, 167, 94, 0.95);
  cursor: pointer;

  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transform: translate(-50%, -50%);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}

.play-btn svg {
  width: 22px;
  height: 22px;
  transform: translateX(1px);
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
  border-color: rgba(198, 167, 94, 0.85);
  background: rgba(198, 167, 94, 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .play-btn {
    display: none;
  }
}


/* =========================================================
   LIGHTBOX
========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  perspective: 1200px;

  transition: opacity 0.22s cubic-bezier(.16, 1, .3, 1);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox .panel {
  width: min(980px, calc(100% - 36px));
  overflow: hidden;
  border: 1px solid rgba(198, 167, 94, 0.45);
  border-radius: 22px;

  background: rgba(12, 12, 12, 0.92);
  box-shadow:
    0 0 0 1px rgba(198, 167, 94, 0.08),
    0 25px 60px rgba(0, 0, 0, 0.6);

  opacity: 0;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0) scale(1.08);

  transition:
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.55s cubic-bezier(.16, 1, .3, 1),
    opacity 0.35s ease;
}

.lightbox.open .panel {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.lightbox .top {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px;
  border-bottom: 1px solid rgba(42, 42, 42, 0.85);
}

.lightbox .content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.lightbox .media {
  min-height: 360px;
  overflow: hidden;

  background:
    radial-gradient(
      600px 260px at 20% 20%,
      rgba(198, 167, 94, 0.25),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(25, 25, 25, 0.9),
      rgba(10, 10, 10, 0.9)
    );
}

.lightbox .media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox .desc {
  padding: 18px;
}


/* =========================================================
   BOUTON FERMETURE
========================================================= */

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;
  border: 1px solid rgba(198, 167, 94, 0.35);
  border-radius: 14px;

  background: rgba(15, 15, 15, 0.6);
  cursor: pointer;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: rgba(198, 167, 94, 0.9);
  transition: stroke 0.35s var(--ease);
}

.icon-btn:hover {
  background: rgba(198, 167, 94, 0.08);
  border-color: rgba(198, 167, 94, 0.75);
  transform: translateY(-1px);
}

.icon-btn:hover svg {
  stroke: rgba(198, 167, 94, 1);
}


/* =========================================================
   CTA
========================================================= */

.launch-cta {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
  .lightbox .content {
    grid-template-columns: 1fr;
  }

  .lightbox .media {
    min-height: 240px;
  }
}
