.modale {
  position: fixed; /* Plutôt que absolute */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;

  &.information { /* les modales informatives courtes sont plutôt en haut de l'écran */
    align-items: flex-start;
    padding-top: 48px; 
  }

  &.action { /* les autres ont le comportement classique d'alignement vertical */
    align-items: center;
  }

  .backdrop {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 900;
  }

  .modale-contenu {
    background-color: #FFF;
    border-radius: 12px;
    max-width: 768px;
    width: 80%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-shadow: 0px 20px 24px -4px rgba(16, 24, 40, 0.08), 0px 8px 8px -4px rgba(16, 24, 40, 0.03);
    z-index: 1001;

    .modale-header {
      flex-shrink: 0;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 24px;

      svg {
        cursor: pointer;
        flex-shrink: 0;
      }
    }

    .modale-scrollable-content {
      overflow-y: auto;
      flex-grow: 1;
      margin-bottom: 24px;
      padding-left: 5px;
      padding-right: 5px;
    }

    .modale-boutons-action {
      flex-shrink: 0;
      display: flex;
      gap: 24px;

      button {
        flex: 1 1 0;

        @media (max-width: 600px) {
          flex: none;
        }
      }

      @media (max-width: 600px) {
        flex-direction: column-reverse;
        gap: 12px;
      }
    }
  }
}
