/* PROJET 1 - PAGE D'UN CHANTIER */

.projet-1 {
  padding: clamp(40px, 6vw, 80px) 5% clamp(60px, 8vw, 110px);
  background: var(--white);
}

.projet-1__inner {
  max-width: var(--max-content-width, 1200px);
  margin: 0 auto;
}

/* ============ FIL D'ARIANE ============ */
.projet-1__fil {
  margin-bottom: clamp(20px, 3vw, 34px);
}

.projet-1 a.projet-1__retour {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-modern);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.25s ease, gap 0.25s ease;
}

.projet-1 a.projet-1__retour:hover {
  color: var(--primary);
  gap: 12px;
}

.projet-1 a.projet-1__retour:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 4px;
}

.projet-1__retour svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============ EN-TETE ============ */
.projet-1__head {
  max-width: 70ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.projet-1 h1.projet-1__titre,
.projet-1 h1.projet-1__titre:hover {
  color: var(--black);
}

.projet-1 h1.projet-1__titre {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
}

.projet-1__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.projet-1__tag {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--secondary) 12%, transparent);
  color: var(--secondary);
  font-family: var(--font-modern);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.projet-1__description {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-dark);
}

/* ============ GALERIE ============ */
.projet-1__galerie {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.projet-1__photo {
  overflow: hidden;
  border-radius: 14px;
  background: var(--gray-light);
  aspect-ratio: 4 / 3;
}

/* La premiere photo sert d'ouverture : elle occupe toute la largeur. */
.projet-1__photo--large {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.projet-1__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.projet-1__photo:hover img {
  transform: scale(1.04);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .projet-1__galerie {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .projet-1__galerie {
    grid-template-columns: minmax(0, 1fr);
  }

  .projet-1__photo--large {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .projet-1__photo img,
  .projet-1 a.projet-1__retour {
    transition: none;
  }
}
