/*** Fenêtre modale ***/
.modal-container {
  visibility: hidden;
  position: fixed;
  top: 0;
  width: 100vw;
  height: 100vh;
  transition: visibility 0.4s;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-container.active {
  visibility: visible;
}
.overlay {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  transition: opacity 0.4s 0.2s ease-out;
}
.modal-container.active .overlay {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
.modal {
  width: fit-content;
  padding: 1vw 0.5vw;
  margin: 0 auto;
  border-radius: 6px;
  position: absolute;
  bottom: 1rem;
  right: -100%;
  transition: 1s ease-out;
  background: #f1f1f1;
  color: #987a50;

  border: solid 3px #a38254;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}
.modal p,
.modal a {
  color: #987a50;
}
.modal p,
.modal a {
  color: #7b6553;
}
.modal p {
  margin: 6px 1rem;
  overflow-wrap: break-word;
  text-align: center;
  line-height: 1;
}
.modal-container.active .modal {
  /*transition-delay: 0s !important;*/
  right: 10%;
}
.close-modal {
  padding: 3px 6px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  position: absolute;
  top: 5px;
  right: 5px;
  background: #b99a81;
  color: #fff;
  cursor: pointer;
}
.close-modal:hover {
  background: #8f7d6e;
}
@media screen and (max-width: 640px) {
  .close-modal {
    right: auto;
    left: 5px;
    top: -13px;
  }
  .modal-container.active .modal {
    bottom: 10%;
    width: 94%;
    right: auto;
    margin-inline: auto;
  }
  .modal {
    right: auto;
  }
}
