/*** POPUP - ACCUEIL ***/
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 50%);
  z-index: 101;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.overlay.active {
  opacity: 1;
}

#popup-accueil {
  width: 1000px;
  height: auto;
  max-width: 80%;
  background-color: #fff;
  /* padding: 2em; */
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.5s ease 0.1s;
}

#popup-accueil.show {
  opacity: 1;
}

@media (min-width: 981px) {
  #popup-accueil {
    max-width: none;
  }
}

#popup-accueil .wrapper {}

#popup-accueil .wrapper .close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1;
  cursor: pointer;
  width: 30px;
  height: 30px;
  background-image: url(./img/close.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80%;
  /* border: 2px solid; */
  border-radius: 50%;
  opacity: 0.5;
  transform-origin: center;
  transition: all 0.5s ease;
}

#popup-accueil .wrapper .close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

#popup-accueil .wrapper .img-content {
  width: 100%;
  height: auto;
  /* margin-bottom: 2em; */
}

#popup-accueil .wrapper .img-content.desktop {
  display: none;
}

#popup-accueil .wrapper .img-content.mobile {
  display: block;
}

@media (min-width:576px) {
  #popup-accueil .wrapper .img-content.desktop {
    display: block;
  }

  #popup-accueil .wrapper .img-content.mobile {
    display: none;
  }
}

#popup-accueil .wrapper .img-content img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

#popup-accueil .wrapper .modal-footer {
  padding: 1em;
  background-color: var(--violet);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}

#popup-accueil .wrapper .modal-footer .popup-btn {
  text-align: center;
  padding: 5px 15px;
  border-radius: 4px;
  background-color: #fff;
  color: var(--violet);
  transition: box-shadow 0.3s ease;
  width: 100%;
}

@media (min-width: 576px) {
  #popup-accueil .wrapper .modal-footer .popup-btn {
    width: auto;
  }
}

#popup-accueil .wrapper .modal-footer .popup-btn:hover {
  box-shadow: 2px 4px 6px rgb(0 0 0 / 25%);
}
