@import url(https://fonts.googleapis.com/css?family=Hind+Siliguri:300,600|Martel:400,900);

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

h2{
  font-family: Martel,Times New Roman,Times,serif;
  font-weight: 900;
  font-size: 40px;
  line-height: 1.1;
  color: #1763e9;
  align-items: center;
  text-align: center;
  padding: 40px;
}

.product-info h3{
  font-family: Martel,Times New Roman,Times,serif;
  font-weight: 900;
  font-size: 30px;
  line-height: 1.1;
  color: #ffffff;
  align-items: center;
  text-align: center;
  padding: 40px;
}

.product-hover h3{
  font-family: Martel,Times New Roman,Times,serif;
  font-weight: 900;
  font-size: 35px;
  line-height: 1.1;
  color: #1763e9;
  align-items: center;
  text-align: center;
  padding: 40px;
}

.h2:after, h2:after {
  content: "...";
  color: #1763e9;
  display: block;
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* alignement horizontal au centre */
  align-items: center;
  width: 100%;
}

.product {
  position: relative;
  width: 75%;
  height: 500px;
  margin: 20px;
  overflow: hidden;
  border-radius: 10px;
}

.product:hover .product-hover {
  opacity: 1;
}

.product-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.5s;
  z-index: 1;
}

.product-hover {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 2;
  transition: all 0.3s ease-in-out;
}

.hover-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hover-info h2 {
  margin-bottom: 1rem;
}

.hover-info p {
  margin-top: 5px;
  font-size: 20px;
  line-height: 1.5;
  font-family: Hind Siliguri, Helvetica, Arial, sans-serif;
}

.product:hover .product-info {
  transform: scale(1.1);
  visibility: hidden;
}

.product-info p {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.5;
  font-family: Hind Siliguri, Helvetica, Arial, sans-serif;
  background-color: #ffffff88;
  padding: 10px;
  border-radius: 10px;
}
.product-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease
}
.product-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.product:hover .product-image img {
  transform: scale(1.1);
}

.product button {
  background-color: #1763e9;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product:hover button {
  background-color: #fff;
  color: #1763e9;
  border: 2px solid #1763e9;
}

@media screen and (max-width: 768px) {
  .product-list {
    flex-direction: column;
    align-items: center;
  }
  
  .product {
    width: 80%;
    height: 350px;
  }
}

/* Footer */

.footer {
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    margin-top: 20px;
    background-color: rgba(21,51,229);
    font-family: Hind Siliguri, Helvetica, Arial, sans-serif;
    }
  
  .footer a {
    align-items: center center;
    text-align: center center;
    color: white;
    text-decoration: none;
  }
  
  .footer a:hover {
    color: rgb(193, 210, 251);
  }

  #navbar {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    background: linear-gradient(50deg, rgb(89, 109, 223) 20%, rgba(21,51,229) 80%);
    }
    
    #navbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    }
    
    #navbar li {
    margin-left: 30px;
    }
    
    #navbar li:last-child {
    margin-right: 0;
    }
    
    #navbar a:hover {
    text-decoration: underline;
    }
    
    #navbar ul {
    display: flex;
    align-items: center;
    }
    @media (min-width: 769px) {
    #navbar a {
        color: #fff;
        text-decoration: none;
        font-size: 1rem;
        font-family: Hind Siliguri,Helvetica,Arial,sans-serif;
    }
    #logo {
      display: flex;
      align-items: center;
      }
      
    #logo img {
    width: 70px;
    margin-top: 255px;
    margin-right: 20px;
    margin-left: 30px;
    border-radius: 10px;
    }

    }
    @media (max-width: 769px) {
    #navbar a {
        color: #fff;
        text-decoration: none;
        font-size: 0.8rem;
        font-family: Hind Siliguri,Helvetica,Arial,sans-serif;
    }
    #logo {
      display: flex;
      align-items: center;
      }
      
    #logo img {
      
      position: absolute;
      width: 50px;
      display: block;
      margin-top: 355px;
      margin-left: auto;
      margin-right: auto;
      margin-left: 37%;
      border-radius: 10px;
    }
    header{
      padding-top: 200px;
    }
    }