#activities {
  width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#etudes, #sports {
  margin-top: 30px;
  display: flex;
  gap: 10%;
  width: 80%; 
  font-size: 18px;
  margin-bottom: 20px;
}

#loisirs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

#etudes h3, #sports h3, #loisirs h3 {
  text-align: center;
}

#etudes ul, #sports ul, #loisirs ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sport-1 a {
  text-decoration: none;
  font-weight: 700;
  color: darkblue;
}

.sport-1 a:hover {
  color: darkmagenta;
}

.sport-1 a:focus {
  color: #433a39;
}

.sport-1 a:visited {
  color: darkblue;
}

.titre-etudes, .titre-sport, .titre-loisir {
  margin-top: 20px;
  font-size: 33px;
}

.etudes-soustitre, .activite-soustitre {
  margin-bottom: 30px;
  font-size: 20px;
}

.etudes-soutien, .etudes-ete, 
.sports-sport, .sports-entrainement {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
  width: 100%;
  border: 1px solid black;
  gap: 10px;
  border-radius: 10px;
  background-color: #e8d0c8;
  
  position: relative;
  margin-bottom: 40px;
}

.etude-book-icon { 
  width: 150px;
  position: absolute;
  bottom: -35px;
  right: -4em;
}

.karate-icon {
  width: 125px;
  position: absolute;
  bottom: 15px;
  right: 20px;
}

.etude-summer-icon {
  width: 160px;
  position: absolute;
  bottom: -45px;
  right: -4em;
}

.treadmill-icon {
  width: 125px;
  position: absolute;
  right: 10px;
  bottom: 10px;
}

.etudes-soutien h3, .etudes-ete h3, 
.sports-sport h3, .sports-entrainement h3,
.loisir-musique h3, .loisir-divers h3, .loisir-arts h3, .loisir-cuisine h3, .loisir-autres h3 {
  margin-bottom: 10px;
  font-size: 25px;
}

.loisir-musique, .loisir-arts, .loisir-divers, .loisir-cuisine, .loisir-autres {
  border-radius: 10px;
  background-color: #e8d0c8;
  border: 1px solid black;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  gap: 10px;
  margin-bottom: 20px;
  height: 350px;
  width: 33%;
  font-size: 19px;
  
  position: relative;
}

.loisir-autres ul li a {
  text-decoration: none;
  color: darkblue;
}

.loisir-autres ul li a:hover {
  color: darkmagenta;
}

.loisir-autres ul li a:visited {
  color: darkblue;
}

.music-icon, .art-icon, .chess-icon {
  width: 150px;
  position: absolute;
  bottom: -20px;
  right: -40px;
}

.apple-icon {
  width: 100px;
  position: absolute;
  bottom: -20px;
  right: -40px;
}

.water-icon {
  width: 100px;
  position: absolute;
  bottom: -20px;
  right: -100px;
}

#contacts {
  width: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#contacts-card {
  background-color: #e8d0c8;
  height: 60%;
  width: 55%;
  border: solid 1px black;
  border-radius: 10px;
  padding: 20px;
}

.titre-contacts {
  margin-bottom: 15px;
}

#contact-info {
  height: 80%;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#contact-info div {
  display: flex;
  gap: 10px;
}

#events {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 10px;
}



@media screen and (width <= 1350px) {
  .treadmill-icon {
    width: 100px;
    bottom: -10px;
    right: -20px;
  }
  
  .karate-icon {
    width: 100px;
    bottom: -10px;
    right: -20px;
  }
  
  .apple-icon {
    width: 90px;
    bottom: -40px;
    right: -40px;
  }

  .water-icon {
    width: 100px;
    bottom: -40px;
    right: -100px;
  }
}

@media screen and (width <= 1160px) {
  .karate-icon {
    bottom: -20px;
    right: -50px;
  }
  
  .treadmill-icon {
    bottom: -20px;
    right: -70px;
  }
}

@media screen and (width <= 950px) {
  #etudes, #sports {
    flex-direction: column;
    margin-bottom: 70px;
  }
  
  .treadmill-icon {
    width: 100px;
    bottom: -20px;
    right: -60px;
    
  }
  
  .apple-icon {
    right: -20px;
  }
  
  .water-icon {
    width: 90px;
    right: -70px;    
  }
  
  .karate-icon {
    width: 100px;
    bottom: 0;
    right: -60px;
  }
  
  .loisir-musique, .loisir-arts, .loisir-divers, .loisir-cuisine, .loisir-autres {
    margin-bottom: 20px;
    width: 40%;
  }
}

@media screen and (width <= 770px) {
  .loisir-musique, .loisir-arts, .loisir-divers, .loisir-cuisine, .loisir-autres {
    margin-bottom: 20px;
    width: 50%;
  }
}


@media screen and (width <= 650px) {
  .loisir-musique, .loisir-arts, .loisir-divers, .loisir-cuisine, .loisir-autres {
    margin-bottom: 20px;
    height: 400px;
  }
  
  .apple-icon {
    width: 70px;
    bottom: -20px;
    right: -50px;
  }

  .water-icon {
    width: 70px;
    bottom: -20px;
    right: -80px;
  }
  
  .etude-book-icon {
    right: -20px;
  }
  
  .etude-summer-icon {
    right: -20px;
  }
  
  #contacts-card {
    width: 100%;
  }  
  
  .titre-contacts {
    font-size: 25px;
  }
  
  #contact-info {
    font-size: 16px;
  }
  
  .treadmill-icon {
    bottom: -20px;
    position: absolute;
    right: -60px;
  }
}

@media screen and (width <= 600px) {
  .etude-book-icon {
    width: 125px;
  }
  
  .etude-summer-icon {
    width: 140px;
  }
}

@media screen and (width <= 550px) {
  .etude-book-icon {
    bottom: -70px;
    width: 125px;
  }
  
  .etude-summer-icon {
    width: 140px;
  }
  
  .treadmill-icon {
    width: 75px;
    bottom: -20px;
    right: -40px;
  }
  
  .karate-icon {
    width: 75px;
    bottom: 0;
    right: -40px;
  }
  
  .loisir-musique, .loisir-arts, .loisir-divers, .loisir-cuisine, .loisir-autres {
    margin-bottom: 20px;
    width: 80%;
  }
  
  .apple-icon {
    width: 70px;
    bottom: -20px;
    right: -30px;
  }

  .water-icon {
    width: 70px;
    bottom: -20px;
    right: -60px;
  }
}

@media screen and (width <= 475px) {
  .etudes-ete {
    margin-bottom: 70px;  
  }
  
  .etude-book-icon {
    bottom: -60px;
    width: 100px;
  }
  
  .etude-summer-icon {
    width: 100px;
    bottom: -65px;
  }
  
  .apple-icon {
    right: -10px;
  }
  
  .water-icon {
    right: -40px;
  }
  
  #contacts {
    padding: 0;
    height: 400px;
  }
}