h5 {
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
}

.floated {
  float: left;
  padding-right: 1rem;
}

.logo_entreprise {
  width: 25vh;
}

#d1 {
  display: none;
}

h6 {
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.2rem;
}

h6 span {
  display: inline-block;
  margin-top: 1rem;
}

.iguane {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  justify-items: center;
}

.caisse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
}

.boat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
}

.one {
  grid-column: 1;
  grid-row: 1;
}

.two {
  grid-column: 2;
  grid-row: 1;
}

.three {
  grid-column: 1 / 3;
  align-items: center;
  grid-row: 2;
}

.modal-pop img {
  padding: 0.5rem;
  max-height: 60vh;
  text-align: center;
  border-color: #111;
  border-width: 0.1rem;
}

.modal-pop img .pop {
  padding: 1rem;
  max-width: 48%;
}

.modal-pop {
  display: block;
  text-align: justify;
  padding-left: 2rem;
  padding-right: 2rem;
  font-size: 0.8rem;
}

.contentproject {
  display: flex;
  justify-content: space-between;
}

.projects .contentproject {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  align-content: space-around;
}

.container {
  position: relative;
  width: 40%;
  padding: 1rem;
}

.image {
  display: flex;
  width: 100%;
  height: auto;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #070606cc;
  opacity: 0.7;
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: .5s ease;
}

.container:hover .overlay {
  height: 100%;
}

.texte {
  color: white;
  font-size: 1rem;
  text-transform: uppercase;
  position: absolute;
  letter-spacing: 0.15rem;
  font-weight: 500;
  top: 50%;
  max-height: 100%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

.texte h2 {
  text-transform: initial;
  font-size: 0.9rem;
  letter-spacing: 0;
  font-weight: lighter;
  padding: 0.5rem;
  white-space: nowrap;
}

.texte h2 span {
  white-space: normal;
  font-weight: 100;
  font-size: 1.2rem;
}

.texte h3 {
  padding: inherit;
  font-size: 0.8rem;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .projects .contentproject {
    width: 100%;
    padding: 1rem;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .container {
    width: 70%;
    padding: 0.75rem;
  }

  .boat {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
  }

  .modal-pop img {
    padding: 0;
  }

  .one {
    margin-bottom: 1rem;
  }

  .caisse {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
  }

  .iguane {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
  }
}

@media (max-width: 500px) {
  .container {
    width: 100%;
    margin-top: 1vh;
    margin-bottom: 1vh;
  }

  h5 {
    font-size: 1rem;
  }

  h6 {
    font-size: 0.8rem;
  }

  .container .overlay {
    height: 100%;
  }

  .modal-pop {
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
}
