/* ============================================
   PROJECT SINGLE PAGE
   ============================================ */

/* ---- Hero ---- */
.project-hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  background: var(--bg-primary);
}

.project-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: brightness(0.75) saturate(0.9);
}

.project-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 15, 0.92) 0%,
    rgba(10, 10, 15, 0.4) 40%,
    rgba(10, 10, 15, 0.1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4xl) var(--space-4xl) var(--space-3xl);
}

.project-hero__badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--gradient-accent);
  color: #000;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  width: fit-content;
}

.project-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.05;
  margin-bottom: var(--space-md);
}

.project-hero__year {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

.project-hero__scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  right: var(--space-4xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-hero__scroll-hint::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

/* ---- Info section ---- */
.project-info {
  padding: var(--space-4xl) 0;
}

.project-info__grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-3xl);
  align-items: start;
}

.project-info__desc h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.project-info__desc p {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.project-info__desc p:last-child {
  margin-bottom: 0;
}

/* ---- Meta / Fiche technique ---- */
.project-meta {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: sticky;
  top: 100px;
}

.project-meta__title {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-lg);
}

.project-meta__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.project-meta__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-glass);
}

.project-meta__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-meta__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-meta__value {
  font-size: var(--fs-sm);
  color: var(--text-primary);
}

.project-meta .tech-tags {
  margin-top: var(--space-sm);
}

/* ---- Video player ---- */
.project-player {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border-glass);
}

.project-player__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}

.project-player__wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.project-player__wrapper + .project-player__wrapper {
  margin-top: var(--space-xl);
}

.project-player__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.project-player__label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: var(--space-sm);
  text-align: center;
}

/* ---- Image gallery ---- */
.project-gallery {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border-glass);
}

.project-gallery__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}

.project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.project-gallery__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  object-fit: cover;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base);
}

.project-gallery__img:hover {
  transform: scale(1.02);
}

/* ---- Carousels section ---- */
.project-carousels {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border-glass);
}

.project-carousels__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.project-carousels__subtitle {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
}

.carousels-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 600px;
  margin: 0 auto;
}

.carousel-block {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: var(--space-md);
}

.carousel-viewer {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.carousel-slide-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.carousel-arrow:hover {
  background: rgba(212, 160, 23, 0.7);
}

.carousel-arrow--prev {
  left: 8px;
}

.carousel-arrow--next {
  right: 8px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: var(--space-sm) 0 var(--space-xs);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.35;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  opacity: 1;
  background: var(--gold);
}

/* ---- Back nav ---- */
.project-nav {
  padding: var(--space-3xl) 0 var(--space-4xl);
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: center;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .project-hero__overlay {
    padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
  }

  .project-hero__scroll-hint {
    right: var(--space-xl);
  }

  .project-info__grid {
    grid-template-columns: 1fr;
  }

  .project-meta {
    position: static;
  }

  .carousels-grid {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .project-hero__title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .project-hero__overlay {
    padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  }

  .project-hero__scroll-hint {
    display: none;
  }
}
