.section-projets {
  display: flex;
  flex-direction: column;
  width: 92%;
  margin: auto;
  padding-bottom: 30px;
}

h1 {
  margin-left: 35px;
  margin-top: 30px;
  color: #403c33;
}
.prj {
  padding: 25px 30px;
}

.prj h2 {
  margin-bottom: 15px;
  background-color: rgba(148, 140, 121, 0.5);
  max-width: 250px;
  border-radius: 10px;
  padding: 5px;
  padding-left: 30px;
  color: #403c33;
}

.game p {
  color: #403c33;
}

.git {
  margin-top: 5px;
}

.git a {
  color: #403c33;
}

.git a:visited {
  color: rgb(112, 71, 145);
}

.git a:hover {
  color: blue;
}

.photo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 360px;
  gap: 15px;
  margin-top: 20px;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conteneur-photos {
  position: relative;
}

.photo-hover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
}

.conteneur-photos:hover .photo-hover {
  display: flex;
}

@media screen and (max-width: 900px) {
  .section-projets {
    width: 95%;
  }

  .photo {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
}

@media screen and (max-width: 600px) {
  .prj {
    padding: 20px;
  }

  .prj h2 {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .photo {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
    gap: 10px;
  }

  h1 {
    margin-left: 15px;
    margin-top: 20px;
  }
}