.hebergement-block {
  border: 3px solid #00A693;
  border-radius: 10px;
  margin: 20px auto; /* Ajoute une marge de 20px en haut et en bas */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 90%; /* Largeur de 90% */
  max-width: 800px; /* Largeur maximale de 800px */
}

/* Reste du code CSS... */



.hebergement-block-image {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 50%;
  overflow: hidden;
}

.hebergement-block-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; /* Assure que l'image est en dessous du texte */
}

.hebergement-text-top,
.hebergement-text-bottom {
  position: absolute;
  width: 100%;
  color: white;
  background-color: rgba(0, 166, 147, 0.5);
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  z-index: 1; /* Assure que le texte est au-dessus de l'image */
}

.hebergement-text-top {
  top: 0;
  left: 0;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
}

.hebergement-text-bottom {
  bottom: 0;
  left: 0;
}

.hebergement-text-container {
  background-image: url('images/imagebackgroundcolor/backdefault1.gif');
  background-size: cover; /* This will scale the background image to be as large as possible */
  background-repeat: no-repeat;
  background-position: center;
  transition: background 2s ease-in-out;
  padding: 10px 20px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
	 text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* This will make the text inside .hebergement-mobile-info bold */
.hebergement-text-container .hebergement-mobile-info {
  font-weight: bold;
}

/* This will ensure that the text inside .hebergement-full-info is not bold */
.hebergement-text-container .hebergement-full-info {
  font-weight: normal;
}




.hebergement-text-container h3,
.hebergement-text-container p {
  margin: 0;
}

@media only screen and (max-width: 600px) {
  .hebergement-mobile-info {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .hebergement-mobile-info p {
    margin: 5px 0;
  }

  .hebergement-full-info {
    display: none;
  }
}

#hebergement-title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%; 
  overflow: hidden; 
}

.hebergement-logo-image {
  width: 100%; /* Définit la largeur du logo à 50% de la largeur de la fenêtre */
  height: auto; /* Assure que l'image conserve ses proportions */
  margin: 30px auto; /* Ajoute une marge de 20px en haut et en bas, et centre l'image horizontalement */
  display: block; /* Nécessaire pour que la marge automatique fonctionne */
}

