/* Project Detail Hero Section */
.project-hero {
  position: relative;
  background: url('../images/background.png') top center / 100% 400px no-repeat;
  padding: 20px 20px 0;
  margin-top: 0;
}

.project-hero-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 50px 50px 0;
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-green);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 24px;
  transition: gap 0.3s ease;
}

.project-back-link:hover {
  gap: 12px;
}

.project-back-link svg {
  stroke: var(--primary-green);
}

.project-hero-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  color: #000;
  text-align: center;
  margin: 0 auto;
}

.project-hero-image {
  width: 100%;
  max-width: 1200px;
  height: 480px;
  margin-top: 40px;
  margin-bottom: -80px; /* Fait déborder l'image vers le bas sans casser le flux */
  position: relative;
  z-index: 10;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Project Content Section */
.project-content {
  background: white;
  padding: 140px 20px 80px; /* Espace suffisant après le dépassement de l'image */
}

.project-content-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 321px;
}

.content-section {
  margin-bottom: 60px;
}

.content-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #000;
  margin-bottom: 24px;
  line-height: 1.3;
}

.section-text {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 16px;
}

.section-text:last-child {
  margin-bottom: 0;
}

/* Quote Block */
.quote-block {
  border-left: 4px solid var(--primary-green);
  padding: 32px;
  margin: 40px 0;
}

.quote-text {
  font-size: 20px;
  line-height: 1.6;
  color: #1a1a1a;
  font-style: italic;
  margin-bottom: 16px;
  font-weight: 500;
}

.quote-author {
  font-size: 14px;
  color: #666;
  font-style: normal;
}

/* Content Image */
.content-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 40px 0;
  overflow: hidden;
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive for Project Detail */
@media (max-width: 768px) {
  .project-hero {
    padding: 80px 15px 120px;
  }

  .project-hero-title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 20px;
  }

  .project-back-link {
    font-size: 14px;
    margin-bottom: 20px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .project-hero-image {
    height: 250px;
    margin-top: 30px;
    margin-bottom: -40px;
    border-radius: 8px;
    overflow: hidden;
  }

  .project-content {
    padding: 80px 15px 60px;
    grid-template-columns: 1fr;
  }
  
  .project-content-container {
    padding: 0 15px;
    max-width: 100%;
  }

  .content-section {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 16px;
    line-height: 1.3;
  }

  .section-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .quote-block {
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
  }

  .quote-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  
  .quote-author {
    font-size: 13px;
  }

  .content-image {
    margin: 30px 0;
    border-radius: 8px;
  }
}

/* Tablet Responsive for Project Detail */
@media (min-width: 769px) and (max-width: 1024px) {
  .project-hero {
    padding: 100px 40px 0;
  }

  .project-hero-title {
    font-size: 36px;
  }

  .project-hero-image {
    height: 400px;
    margin-top: 25px;
    margin-bottom: -60px;
  }

  .project-content {
    padding: 120px 40px 80px;
  }
  
  .project-content-container {
    max-width: 800px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-text {
    font-size: 17px;
  }

  .quote-text {
    font-size: 19px;
  }
}

/* Small Mobile for Project Detail (< 480px) */
@media (max-width: 480px) {
  .project-hero {
    padding: 60px 12px 100px;
  }

  .project-hero-title {
    font-size: 20px;
  }

  .project-hero-image {
    height: 200px;
    margin-bottom: -30px;
  }

  .project-content {
    padding: 60px 12px 50px;
  }

  .project-content-container {
    padding: 0 8px;
  }

  .section-title {
    font-size: 18px;
  }

  .section-text {
    font-size: 14px;
  }

  .quote-block {
    padding: 16px;
    margin: 20px 0;
  }

  .quote-text {
    font-size: 15px;
  }
}
