/* =========================================
   STYLE PROJET DÉTAILLÉ (MODERNE)
   ========================================= */

/* --- UTILITAIRES SPÉCIFIQUES --- */
.text-container {
  max-width: 1210px; /* Pour une lecture confortable, jamais trop large */
  margin-inline: auto;
}

.my-large {
  margin-block: 4rem;
}

.section-title {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: var(--accent); /* Ton vert lime */
}

/* --- 1. HERO SECTION --- */
.case-hero {
  padding-top: 4rem;
  padding-bottom: 2rem;
  background: #ffffff;
}

.case-hero-content {
  text-align: center;
  margin-bottom: 3rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.back-link:hover {
  color: var(--accent);
}

.case-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive font size */
  line-height: 1.1;
  margin: 0 auto 2.5rem;
  max-width: 900px;
}

.highlight {
  color: var(--text-muted);
  opacity: 0.6;
  font-weight: 300;
}

/* Barre d'infos (Client, Année...) */
.case-meta-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding-block: 1.5rem;
  max-width: 800px;
  margin-inline: auto;
}

.meta-box {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-box .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.meta-box .value {
  font-weight: 600;
  font-size: 1rem;
}

/* Image Hero */
.case-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  display: block;
}

/* --- 2. CONTEXTE --- */
.case-context {
  padding-block: 4rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
}

/* --- 3. GALERIE MODULAIRE (BENTO) --- */
.case-gallery {
  padding-bottom: 4rem;
}

.gallery-row {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Configuration des colonnes */
.two-cols {
  grid-template-columns: 1fr 1fr;
}

.full-width {
  grid-template-columns: 1fr;
}

.asymetric {
  grid-template-columns: 1.5fr 1fr; /* Gauche plus large */
}

/* Style des items */
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg); /* Placeholder color */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Petite légende sous l'image */
.caption {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Hauteur forcée pour l'asymétrie pour aligner */
.asymetric .gallery-item {
  min-height: 400px;
}

.asymetric .gallery-item img {
  height: 100%;
}

/* --- 4. IMMERSIVE BANNER --- */
.case-immersive {
  width: 100%;
  height: 60vh; /* Prend 60% de la hauteur écran */
  overflow: hidden;
  margin-block: 3rem;
}

.case-immersive img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* --- 5. NEXT PROJECT --- */
.next-project {
  padding: 6rem 0;
  background: var(--bg-green); /* Ton vert très clair */
  text-align: center;
  cursor: pointer;
  transition: background 0.3s;
}
.next-label {
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.next-link {
  text-decoration: none;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.next-link h2 {
  font-size: 3rem;
  margin: 0;
  transition: transform 0.3s;
}

.next-link .arrow {
  font-size: 3rem;
  transition: transform 0.3s;
}

.next-project:hover h2 {
  transform: translateX(-10px);
}
.next-project:hover .arrow {
  transform: translateX(10px);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .case-title {
    font-size: 2.2rem;
  }
  
  .case-meta-grid {
    gap: 1.5rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .two-cols, .asymetric {
    grid-template-columns: 1fr; /* Tout sur 1 colonne sur mobile */
  }

  .asymetric .gallery-item {
    min-height: auto;
  }
}

/* --- ANIMATIONS AJOUTÉES --- */
/* Petit délai pour effet cascade */
.reveal.delay-1 {
  transition-delay: 0.2s;
}