/* ===============================
   Fichier : landing-processus.css
   =============================== */

/* ========== Layout Principal ========== */
.landing__processus {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-large);
  text-align: center;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto; /* Center container */
}

/* ========== Titre ========== */
.landing__processus-title {
  text-align: center;
  width: 100%;
}

/* ========== Conteneur d'étapes ========== */
.processus-items {
  display: flex;
  flex-direction: column;
  align-items: center; /* center items on mobile */
  gap: var(--gap-large);
  width: 100%;
}

@media (min-width: 768px) {
  .processus-items {
    flex-direction: row;
    justify-content: center; /* center items on desktop */
    flex-wrap: wrap;
  }
}

/* ========== Étapes ========== */
.processus-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-medium);
  text-align: center;
  position: relative;
  width: 100%;
  padding: 2rem 0 1rem;
}

@media (min-width: 768px) {
  .processus-item {
    width: 30%;
    padding: 0;
  }
}

.processus-item p {
  max-width: 500px;
}

.processus-item .step-number {
  font-size: var(--font-h2);
  font-weight: var(--font-weight-black);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--gap-small);
}

.processus-item .step-description {
  font-size: var(--font-body);
  color: var(--text-color-secondary);
}

/* ========== Flèches ========== */
.processus-item::after {
  content: "";
  position: absolute;
  font-size: var(--font-h2);
  color: var(--primary-color);
}

@media (max-width: 767px) {
  .processus-item::after {
    content: "↓";
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    line-height: 1;
    height: 2rem;
  }

  .processus-item:last-child::after {
    content: none;
  }

  .processus-item:last-child {
    padding-bottom: 0;
  }
}

@media (min-width: 768px) {
  .processus-item::after {
    content: "→";
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .processus-item:last-child::after {
    content: none;
  }
}
