.main-content {
  transition: filter 0.3s ease; /* Transition pour l'effet de flou */
}

.popup {
  display: none; /* Masquer le popup par défaut */
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
  justify-content: center;
  align-items: center;
  z-index: 2; /* S'assurer que le popup est au-dessus */
}

.popup-content {
  background-color: #ffffffa8;
  padding: 10px;
  border-radius: 5px;
  text-align: left;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  max-width: 50%;
  width: 100%;
  height: 50%;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 29px;
  cursor: pointer;
  font-weight: bolder;
  font-family: arial;
}
/* Animation d'apparition */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.popup-content {
  animation: fadeIn 0.5s ease-in-out;
}
/* Appliquer un effet de flou au contenu principal lorsque le popup est visible */
.popup-visible .main-content {
  filter: blur(5px); /* Ajustez la valeur du flou selon vos besoins */
}
/* mise en forme dans popup*/
.image_popup {
  position: absolute;
  width: 30%;
  bottom: 34%;
  right: 11%;
}

.slogan {
  display: inline-block;
  font-family: arial;
  font-size: 2em;
  padding: 5px;
  margin: 2px;
  position: absolute;
  background-color: red;
  border-radius: 5px;
  left: 2%;
}
.horaires {
  display: inline-block;
  font-family: arial;
  font-size: 1.4em;
  position: absolute;
  left: 10%;
  top: 26%;
  text-align: center;
}
.avec_code,
.telephone1,
.telephone2 {
  display: inline-block;
  border-radius: 5px;
  font-family: arial;
  font-size: 1.3em;
  color: white;
  padding: 5px;
  text-align: center;
  background-color: red;
}
.telephone1,
.telephone2 {
  padding: 5px;
  padding-right: 2%;
  padding-left: 2%;
  position: absolute;
  top: 88%;
}

.avec_code {
  padding-right: 10%;
  padding-left: 10%;
  position: absolute;
  left: 3%;
  top: 73%;
  width: 74%;
}
.telephone1 {
  left: 8%;
}

.telephone2 {
  right: 8%;
}

@media only screen and (max-width: 1000px) and (orientation: portrait) {
  .popup-content {
    display: flex;
    width: 86vw;
    height: 79vh;
    top: 13vh;
    left: 5vw;
    position: fixed;
    flex-direction: column;
  }
  .close-btn {
    position: absolute;
    font-size: 4vh;
    cursor: pointer;
  }

  .slogan {
    font-size: 1.1em;
    margin: 4%;
  }

  .image_popup {
    width: 62%;
    top: 11%;
    padding: 5%;
    right: 12%;
  }
  .horaires {
    font-size: 2.5vh;
    text-align: center;
    top: 54%;
  }
  .avec_code,
  .telephone1,
  .telephone2 {
    margin: 2%;
    font-size: 3vh;
    font-weight: 700;
  }

  .avec_code {
    left: 3%;
    width: 70%;
    font-size: 1em;
    top: 75%;
  }

  .telephone1,
  .telephone2 {
    left: 10vw;
    font-size: 1em;
    width: 70%;
  }
  .telephone1 {
    top: 84%;
  }
  .telephone2 {
    top: 90%;
  }
}
@media only screen and (max-width: 1000px) and (orientation: landscape) {
  .popup {
    left: 2vw;
    top: 53vh;
    width: 75%;
    height: 15%;
  }
  .popup-content {
    max-width: 100vw;
    height: 63vh;
  }
  .close-btn {
    font-size: 8vh;
    cursor: pointer;
    top: 0vh;
  }
  .slogan {
    font-size: 3vw;
    margin: 0%;
    color: white;
    left: 12vw;
    top: 4vh;
  }
  .image_popup {
    width: 25vw;
    top: 10vh;
    right: 4vw;
  }
  .horaires {
    font-size: 1em;
    width: 40%;
    left: 12vw;
    top: 17vh;
  }
  .avec_code,
  .telephone1,
  .telephone2 {
    font-size: 2vw;
    color: white;
  }
  .telephone1,
  .telephone2 {
    top: 58vh;
    width: 20vw;
  }
  .avec_code {
    left: 7vw;
    width: 46vw;
    padding: 1%;
    top: 48vh;
  }
  .telephone1 {
    left: 7vw;
  }
  .telephone2 {
    left: 33vw;
  }
}
