.single-projet-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 1rem;
  font-family: 'Montserrat', sans-serif;
	background :#fff;
	border-radius: 1rem;
	height: auto;
}

.projet-title {
  font-family: 'MuseoModerno', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2rem;
color: #29265B;
}

.projet-thumbnail img {
  border-radius: 1rem;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 2rem;
}

.projet-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  text-align: justify;
	color: #29265B;
	font-family:'Montserrat', sans-serif;
}

.projet-meta {
  font-size: 1rem;
  color: #29265B;
}

.projet-retour {
  margin-top: 3rem;
  text-align: center;
	color: #29265B;
}

.projet-retour a {
  color: #29265B;
  text-decoration: none;
  font-weight: bold;
}

.fade-in-wrapper {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-wrapper.show {
  opacity: 1;
  transform: translateY(0);
}

.related-projects-wrapper {
  overflow: hidden;
  max-width: 100%;
  margin-top: 40px;
}

.related-projects-wrapper h2{
	color: #29265B;
	font-family: 'Museomoderno', sans-serif;
	font-weight: 800;
	margin-bottom: 30px;
}

.related-projects-carousel {
  display: flex;
  gap: 30px;
  animation: scroll-loop 20s linear infinite;
}

.carousel-item {
  flex: 0 0 auto;
  width: 300px;
  height: auto;
}

.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Animation */
@keyframes scroll-loop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


@media screen and (max-width: 768px) {
  .related-projects-carousel {
    animation: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 10px;
  }

  .carousel-item {
    flex: 0 0 auto;
    width: 80%;
    max-width: 280px;
    scroll-snap-align: center;
  }

  .carousel-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3; /* <- pour garder une forme régulière */
    object-fit: cover;   /* <- évite les déformations */
    border-radius: 12px;
  }
}

