@charset "utf-8";
/* CSS Document */

.activity-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 10px;
}

.activity-block {
  border: 3px solid #009999;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  box-shadow: 0px 3px 6px rgba(0,0,0,0.16);
  transition: transform 0.3s ease;
}

.activity-block .block-image {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
}

.activity-block .block-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-block .text-bottom,
.activity-block .activity-title {
  position: relative;
  width: 100%;
  color: white;
  background-color: #009999;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.activity-block .text-top {
  position: relative;
  width: 100%;
  color: white;
  transition: background-image 2s ease-in-out; 
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.text-top {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 1);
}

.activity-block .text-top,
.activity-block .activity-title {
  font-weight: bold;
}

.activity-block .text-container {
  display: flex;
  align-items: center;
}

@media only screen and (max-width: 600px) {
  .activity-block {
    width: calc(50% - 10px);
  }
}

@media only screen and (min-width: 601px) {
  .activity-block {
    width: calc(33.33% - 20px);
  }
}

#container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden; 
}

#title-container {
  width: 100%;
  text-align: center;
}

.logo-image {
  max-width: 100%;
  height: auto;
  margin-top: 40px; /* Ajoute une marge en haut */
  margin-bottom: 20px; /* Ajoute une marge en bas */
}

.activity-block:hover {
  transform: scale(1.05);
}

.activity-block .text-container p.colorable-text {
  text-decoration: none;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  color: #009999; /* change this to the hex color code of the green color you want */
}

.activity-block a {
  text-decoration: none;
}

.activity-block a:hover {
  text-decoration: none;
}

/* Pour les écrans plus grands que 600px */
@media (min-width: 601px) {
  .activity-block:hover {
    transform: scale(1.05);
  }
}

/* Pour les écrans de 600px ou moins */
@media (max-width: 600px) {
  .activity-block:hover {
    transform: none;
  }
}

.description {
  font-family: 'Montserrat', sans-serif;
  border-top: 3px solid #00A693;
  border-bottom: 3px solid #00A693;
  padding: 10px 0;
  margin: 50px auto 50px;
  width: 95%;
  max-width: 800px;
  margin-bottom: 10px; 
  margin-top: 30px; 
  text-align: center;
}

.description p {
  margin-bottom: 20px;
}

main {
  margin-top: 50px;
}

.activity-image {
  transition: opacity 2s ease-in-out;
}

@media screen and (max-width: 768px) {
  .text-container {
    display: none !important;
  }
}
