/*
 * DSFR v1.0.0-rc1.0 | restricted use
 */
/* ------------------------------------ *\
  LOGO
\* ------------------------------------ */

.fr-modal {
  border: none;
  color: inherit;
  visibility: hidden;
  opacity: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4500;
  transition: opacity 0.3s, visibility 0.3s;
  /**
  * Modifier pour fixer la modale en haut en mobile (par defaut en bas)
  */
}

.fr-modal:focus {
  outline: none;
}

.fr-modal::before {
  display: block;
  content: "";
  width: 0;
  height: 2rem;
  flex: 1 0 2rem;
}

.fr-modal::after {
  display: block;
  width: 0;
  height: 2rem;
  flex: 1 0 2rem;
}

.fr-modal--top::before {
  content: none;
}

.fr-modal--top::after {
  content: '';
}

.fr-modal--opened {
  visibility: inherit;
  opacity: 1;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s, visibility 0.3s;
}

.fr-modal__body {
  overflow-y: auto;
  flex: 1 1 auto;
  max-height: calc(100vh - 2rem);
  box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.1), 0 8px 16px -16px rgba(0, 0, 0, 0.32);
}

.fr-modal__header {
  flex: auto 0 0;
  display: flex;
  align-items: center;
  padding: 1rem 1rem 0.5rem;
}

.fr-modal__content {
  padding-left: 1rem;
  padding-right: 1rem;
  margin-bottom: 3.5rem;
}

.fr-modal__footer {
  flex: auto 0 0;
  display: flex;
  padding: 1rem;
  margin-top: -2.5rem;
  position: sticky;
  bottom: 0;
  transition: box-shadow 0.3s;
  z-index: 6000;
}

.fr-modal__footer .fr-btns-group {
  margin-bottom: -1rem;
  width: calc(100% + 1rem);
}

.fr-modal__title {
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.75rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.fr-modal__title [class*="fr-fi-"] {
  margin-right: 0.5rem;
}

.fr-modal {
  background-color: var(--overlay);
}

.fr-modal__body {
  background-color: var(--w);
}

.fr-modal__body.fr-scroll-shadow .fr-modal__footer {
  box-shadow: 0 -8px 8px 0 rgba(0, 0, 0, 0.1), 0 -8px 16px -16px rgba(0, 0, 0, 0.32);
  background-color: var(--w-g750);
}

.fr-modal__footer {
  background-color: var(--w);
}

@media (min-width: 48em) {
  .fr-modal--top::before {
    content: '';
  }

  .fr-modal::before {
    width: 0;
    height: 10vh;
    flex: 1 0 10vh;
  }

  .fr-modal::after {
    content: "";
    width: 0;
    height: 10vh;
    flex: 1 0 10vh;
  }

  .fr-modal__body {
    max-height: 80vh;
  }

  .fr-modal__content {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .fr-modal__content {
    margin-bottom: 4rem;
  }

  .fr-modal__footer {
    padding: 2rem;
  }

  .fr-modal__footer {
    margin-top: -3rem;
  }

  .fr-modal__title {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .fr-modal__title {
    margin-bottom: 1rem;
  }
}
