html {
  font-family: Arial;
}

header {
  margin-top: 1rem;
  text-align: center;
}

.titre {
  clear: right;
}

.titre > h1 {
  font-weight: 600;
  color: #e50051;
  font-size: 2.5rem;
}

.md { 
  padding: 1rem 0;
}

.logo1 {
  width: 20rem; 
  float: right;
  margin-right: 1rem;
}

.logo2 {
  width: 25rem;
  margin-bottom: 1rem;
}

ul {
  padding-left: 0;
}

li > p {
  text-align: center;
  font-size: 1rem;
}

.contain {
  position: relative;
  width: ;
}

.image {
  display: block;
  width: 100%;
  height: auto;
}

.overlay1 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #009fe3;
  opacity: 70%;
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: .5s ease;
}

.contain:hover .overlay1 {
  height: 100%;
}

.text {
  white-space: nowrap; 
  color: white;
  font-size: 1.5rem;
  position: absolute;
  overflow: hidden;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}   

.overlay2 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #e94364;
  opacity: 70%;
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: .5s ease;
}

.contain:hover .overlay2 {
  height: 100%;
}

.overlay3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #3caa37;
  opacity: 70%;
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: .5s ease;
}

.contain:hover .overlay3 {
  height: 100%;
}

.overlay4 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #b9378c;
  opacity: 70%;
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: .5s ease;
}

.contain:hover .overlay4 {
  height: 100%;
}

@media (max-width: 1000px) {
  .titre > h1 {
    font-size: 2rem;
  }
  .titre > p {
    font-size: 0.8rem;
  }
  .logo1 {
    width: 15rem;
  }
  .logo2 {
    width: 15rem;
  }
  .text {
    font-size: 1.25rem;
  }
}

