.thieffry-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  /* cachée au début */
  opacity: 0;
  transition: opacity 0.4s ease;
}

/*   transition: opacity 1.4s ease; */

.thieffry-modal-overlay.visible {
  display: flex;
  opacity: 1;
}

.thieffry-modal {
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
  width: 80%;
  height: 80%;
  margin: 10% auto;
  border: 1px solid black;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);

  /* opacity: 0; */
  /* transition: opacity 0.4s ease, transform 1.4s ease; */

  right: -400px;
  transition: right 2s;

}

/* transition: max-height 5s ease; */

.thieffry-modal.notrailer {
  height: unset;
}

.thieffry-modal.visible {
  right: 0;
  opacity: 1;
}

.thieffry-modal.auto {
  width: unset;
  height: unset;
}

.thieffry-modal.fullscreen {
  width: 100%;
  height: 100%;
  margin: unset;
  padding-top: 2em;
}

.thieffry-modal-header {
  background-color: ghostwhite;
  border-radius: 0.5em 0.5em 0 0;
  border-bottom: 1px solid black;
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 1.5em;
}

.thieffry-modal-header>div {
  padding: 0.5rem;
}

.thieffry-modal-title {
  font-weight: bold;
  flex: 1;
}

.thieffry-modal-close {
  cursor: pointer;
  text-align: center;
}

.thieffry-modal-close svg {
  display: block;
  margin: auto;
}

.thieffry-modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* padding: 0.5rem; */
  /* gap: 0.5rem; */
  overflow-y: auto;
}

.thieffry-modal-footer {
  background-color: ghostwhite;
  border-top: 1px solid black;
  border-radius: 0 0 0.5em 0.5em;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  font-size: 1em;
}

.thieffry-modal-footer * {
  text-align: center;
  color: #4a90e2;
  padding: 0.5rem;
}

.thieffry-modal-footer *:hover {
  cursor: pointer;
}