/* Modal */
.modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  overflow: hidden;
}

/* Contenu du modal */
.modal-content {
  position: relative;
  padding: 2rem;
  width: min(750px, 90%);
  height: min(85vh, 700px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  box-sizing: border-box;
  background-color: var(--background-terminal);
  border: 1px solid var(--button-stroke);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  scrollbar-width: none;


  .process-header {
    padding-top: 0.5rem;
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;

    .process-label {
      font-size: 1.25rem;
      font-weight: bold;
      color: var(--text-tertiary-color);
      letter-spacing: 1px;
    }

    .process-label::after {
      content: "";
      display: block;
      height: 2px;
      background-color: var(--text-primary-color);
      width: 5%;
      margin-top: 0.5rem;
    }

    h2 {
      font-size: clamp(1.75rem, 3vw, 2rem);
      font-weight: bold;
      margin: 0;
      margin-top: 0.5rem;
      color: var(--text-secondary-color);
    }

    p {
      font-size: 1rem;
      color: var(--text-primary-color);
      margin-top: 0.75rem;
    }
  }
/* 
  .process-header::after {
    content: "";
    display: block;
    height: 1px;
    background-color: var(--button-stroke);
    margin: 1.5rem 0 1rem 0;
    width: 100%;
  } */

  .process-step {
    margin-bottom: 1.5rem;
    display: flex;

    .process-number {
      font-size: clamp(1.25rem, 2vw, 1.5rem);
      font-weight: bold;
      color: var(--text-tertiary-color);
      margin-right: 0.5rem;
    }

    h3 {
      font-size: 1.35rem;
      font-weight: bold;
      margin: 0.25rem 0;
      color: var(--text-secondary-color);
    }

    p {
      font-size: 1rem;
      color: var(--text-primary-color);
      margin-top: 0.5rem;
    }

    ul {
      list-style-type: disc;
      padding-left: 1.5rem;
      margin-top: 0.5rem;

      li {
        font-size: 0.95rem;
        color: var(--text-primary-color);
        margin-bottom: 0.5rem;

        strong {
          color: var(--text-secondary-color);
        }
      }
    }

    .process-link {
      display: inline-block;
      margin-top: 0.5rem;
      font-size: 0.95rem;
      color: var(--button-color-hover);
      text-decoration: none;
      transition: color 0.2s ease;

      &:hover {
        color: var(--text-secondary-color);
      }
    }

    .process-media {
      margin-top: 0.5rem;
      display: flex;
      flex-direction: column;
      align-items: center;

      .process-media-title {
        font-size: 1rem;
        font-weight: bold;
        color: var(--text-secondary-color);
        margin-top: 0.5rem;
      }

      .process-video {
        margin-top: 0.5rem;
        width: 100%;
        max-height: 100%;
        border-radius: 8px;
        background-color: var(--background-card);
      }
    }
  }

  .process-footer {
    font-size: 0.9rem;
    color: var(--text-tertiary-color);
    text-align: center;
  }
}

.close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  color: var(--text-tertiary-color);
  font-size: 48px;
  font-weight: bold;
  line-height: 1;
  transition: color 0.2s ease;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: var(--button-color-hover);
  text-decoration: none;
  cursor: pointer;
}


@media (max-width: 768px) {

  .modal-content {
    width: 100%;
    height: 100%;
  }
}