#grid{
  background-color: #ffffff;
  padding-top: 50px;

}
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 15px;
  padding: 15px;
  max-width:  var(--longeur-general);
  margin: auto;
  font-family: 'Roboto', sans-serif;
}

@media (max-width: 1081px) {
  .container {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    grid-gap: 8px;
    padding: 8px;
  }
}


.image {
  position: relative;
  overflow: hidden;
  /*border: 1px solid rgba(0, 0, 0, 0.2);*/
  border-radius: 16px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-out;
  
  
}


.image:hover {
  transform: scale(1.05);
}

.image img {
  display: block;
  width: 100%;
  height: auto;
  
}

.keywords {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  /*background-color: rgba(0, 0, 0, 0.6);*/
  color: #fff;
  padding: 10px;
  opacity: 1.0;
  
  transition: opacity 0.3s ease-out;
font-family: 'Roboto', sans-serif;
}

.image:hover .keywords {
  opacity: 0;
}

.keywords ul {
  margin: 0;
  padding: 0;
  margin-bottom: 20px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  
font-family: 'Roboto', sans-serif;
}

.keywords li {
  margin: 5px;
  padding: 5px 10px;
  background-color: rgba(255, 255, 255, 1.0);
  color: #ffffff;
  border-radius: 20px;
  font-size: 10px;
  white-space: nowrap;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
}



#buttonsGRID {
  display: flex;
  justify-content: center; /* Add this line */
  align-items: center;
}
#btnGRID {
  background-color: var(--couleur-general);
  color: #fff;
  padding: 10px 8px;
  border-radius: 6px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid var(--couleur-general);
  box-sizing: border-box;
}
#btnGRID:hover {
  background-color: #fff;
  color: var(--couleur-general);
  border: 2px solid var(--couleur-general);
  box-sizing: border-box; /* Add this line */
}

#posGRID {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  margin-top: 0;
  margin-bottom: 1px;
  position: relative; /* Ajout d'une position relative */
  color : var(--couleur-general);
}

#posGRID::before {
  content: ''; /* Ajout d'un pseudo-élément ::before */
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

#posGRID p {
  display: inline-block;
  vertical-align: middle;
}



#gridINFO1{
  /*background-color: rgba(83,83,112,1.0);*/
  background-color: rgb(255, 255, 255);
  margin: 0;
  padding: 0;
  color: var(--couleur-general);
  text-align: right;
  padding-top: 0px;
  padding-bottom: 5px;
  
  font-weight: bold;
  text-underline-offset: none;
  
}
#gridINFO2{
  /*background-color: rgba(83,83,112,1.0);*/
  background-color: rgb(255, 255, 255);
  margin: 0;
  padding: 0;
  padding-left: 20px;
  padding-right: 20px;
  color: #202020;
  text-align: jus;
  padding-top: 10px;
  padding-bottom: 0px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
  
}
#gridINFO3{
  /*background-color: rgba(83,83,112,1.0);*/
  background-color: rgb(255, 255, 255);
  margin: 0;
  padding: 0;
  color: #828282;
  text-align: right;
  padding-top: 0px;
  padding-bottom: 0px;
  text-underline-offset: none;
}

#gridAAA{
  text-decoration: none;
}
