/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Raleway", sans-serif;
  background: #000000;
  color: #ffffff;
  overflow-x: hidden;
  background-image: url(./assets/images/background_crop.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Navigation */
.project-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 5vw;
  z-index: 100;
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
}

.back-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.back-btn:hover {
  color: #ffffff;
}

.back-btn:hover::after {
  width: 100%;
}

/* Hero Section */
.project-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 5vw 4rem;
  position: relative;
}

.hero-content {
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
}

.project-title-main {
  font-size: 4.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.project-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.project-year {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

.hero-image-wrapper {
  width: 90vw;
  height: 60vh;
  max-width: 1400px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.95);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-grain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4"/></filter><rect width="300" height="300" filter="url(%23noise)" opacity="0.15"/></svg>');
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: overlay;
}

/* Contenu principal */
.project-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8vh 5vw;
}

.content-section {
  margin-bottom: 12vh;
  opacity: 0;
  transform: translateY(40px);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.section-label h2 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  position: sticky;
  top: 2rem;
}

.section-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.section-text p {
  margin-bottom: 1rem;
}

.role-list {
  list-style: none;
  padding: 0;
}

.role-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.role-list li:last-child {
  border-bottom: none;
}

/* Galerie */
.project-gallery {
  display: grid;
  justify-items: center;
  grid-template-columns: 1fr;
  gap: 4vh;
  margin-bottom: 12vh;
}

.gallery-item {
  height: auto;
  max-height: auto;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(40px);
}

.gallery-img {
  height: auto;
  max-height: 60vh;
  width: auto;
  object-fit: cover;
  object-position: center;
}

.gallery-grain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4"/></filter><rect width="300" height="300" filter="url(%23noise)" opacity="0.15"/></svg>');
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: overlay;
}

/* Outils */
.tools-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tool-tag {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(15.9px);
  -webkit-backdrop-filter: blur(15.9px);
}

/* Video */
.project-video {
  margin: 12vh 0;
  opacity: 0;
  transform: translateY(40px);
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
}

/* Footer */
.project-footer {
  padding: 8vh 5vw;
  display: flex;
  justify-content: flex-end;
}

.next-project {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease, transform 0.3s ease;
}

.next-project:hover {
  color: #ffffff;
  transform: translateX(5px);
}

/* CTA Contact fixe */
.contact-cta {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(15.9px);
  -webkit-backdrop-filter: blur(15.9px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.contact-cta:hover {
  opacity: 1;
  transform: translateX(-5px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.contact-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.contact-cta:hover svg {
  transform: translateX(3px);
}

.contact-footer {
  padding: 4vh 5vw;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 1024px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-label h2 {
    position: relative;
    top: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .project-title-main {
    font-size: 2.5rem;
  }

  .hero-image-wrapper {
    height: 40vh;
  }

  .project-content {
    padding: 6vh 5vw;
  }

  .content-section {
    margin-bottom: 8vh;
  }

  .section-text {
    font-size: 1rem;
  }

  .gallery-item {
    height: 40vh;
  }
}
