.page-projet-sonsoee {
  background-color: white;
  color: black;
  font-family: 'Asap', sans-serif;
  font-weight: 300;
  padding: 2rem;
  margin: 0;
}



/* Menu et navigation */
.page-projet-sonsoee .site-name,
.page-projet-sonsoee .burger,
.page-projet-sonsoee .menu a,
.page-projet-sonsoee .language-selector a,
.page-projet-sonsoee .language-selector,
.page-projet-sonsoee .copyright{
  color: black;
  background-color: transparent;
}

.page-projet-sonsoee .burger {
  background-color: black;
}

.page-projet-sonsoee .menu {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid black;
}

.page-projet-sonsoee .menu a:hover {
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

/* Structure principale */
.projet-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 6rem;
  padding-bottom: 5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.projet-texte h1 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.projet-texte h2 {
  font-size: 1.2rem;
  font-weight: normal;
  margin-bottom: 2rem;
}

.projet-texte p {
  margin-bottom: 1rem;
  line-height: 1.6;
  display: flex;
  gap: 1rem;
}

.projet-texte strong {
  font-weight: bold;
  display: inline-block;
  width: 80px;
}

/* Image à droite du texte */

.projet-main {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.projet-image {
  flex: 0 0 30%; /* L’image prend 40% de la ligne */
  max-width: 300px; /* et ne dépassera pas cette taille */
  margin-right: 10rem; /* repousse l’image légèrement vers la gauche */
}

.projet-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.projet-texte {
  flex: 1;
}

.projet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 4rem 0;
  align-items: end;
}

.projet-grid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.projet-grid div:nth-child(even) {
  transform: translateY(60px); /* décale vers le bas */
}

.projet-grid div:nth-child(odd) {
  transform: translateY(0);
}

.retour-production {
  margin-top: 4rem;
  text-align: center;
}

.btn-retour {
  display: inline-block;
  background-color: black;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-retour:hover {
  background-color: #333;
  color: white;
}



@media screen and (min-width: 1024px) and (max-width: 1599px) {
  .projet-texte {
    padding-left: 4rem; /* ou 3rem selon l'effet désiré */
  }
}

/* Responsive mobile */
@media screen and (max-width: 768px) {
  .projet-wrapper {
    padding: 1.5rem 1rem 2rem 1rem; /* top, right, bottom, left */
    gap: 1rem;
  }

  .projet-main {
    flex-direction: column;
    margin-bottom: -4.8rem; /* réduit l'espace avant la grille */
  }

  .projet-texte p {
    flex-direction: column;
    gap: 0.2rem;
  }

  .projet-texte strong {
    width: auto;
  }

  .projet-image {
    width: 100%;
    margin-bottom: 1rem;
  }

  .projet-image img {
    border-radius: 0;
  }

  .projet-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .projet-grid img {
    width: 100%;
  }

   .projet-grid div {
    transform: none !important;
  }
}

/* Grands écrans */
@media screen and (min-width: 1600px) {
  body {
    font-size: 1.3rem;
  }

  .projet-texte h1 {
    font-size: 2.5rem;
    white-space: nowrap;
  }

  .projet-texte h2 {
    font-size: 1.5rem;
  }

  .projet-texte p {
    font-size: 1.3rem;
    line-height: 1.8;
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 3rem;
  }

   .projet-texte p strong {
    white-space: nowrap;
  }

   .projet-wrapper {
    padding-left: 4rem;
  }

  .projet-main {
    align-items: center;
  }

  .projet-image {
    flex: 0 0 45%;
    max-width: 500px;
    margin-left: 2rem;
  }

  .projet-texte {
    margin-top: -2rem; /* ajuste la valeur selon l’effet désiré */
    margin-left: -2rem;
  }

  .projet-grid {
    display: grid;
    grid-template-columns: repeat(4, auto); /* 👈 change ici */
    justify-content: start;         /* espace entre les images */
    gap: 4rem;
    padding: 6rem 5rem;
    max-width: 1800px;
    margin-left: -23rem; /* réalignement visuel de la grille avec le bloc texte sur très grands écrans */
  }

  .projet-grid img {
    width: 380px; /* 👈 taille fixe ou plus grande */
    height: auto;
    max-width: none;
    object-fit: cover;
  }
}