/* ========================================
   PARCOURS HYBRIDE - FORMA TERRITOIRES
   Version 600px max / left aligned
   ======================================== */

.ft-journey-section {
  padding: 20px;
  background-color: var(--bs-secondary-bg);

  width: fit-content !important;   /* Adjusts width to fit content */
  max-width: 100%;  
}

.ft-journey-section .container {
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.ft-journey-header {
  max-width: 600px;
  margin: 0 0 2rem 0;
  text-align: left;
}

.ft-journey-title {
  color: var(--theme-primary);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  text-align: left;
}

.ft-journey-kicker {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-secondary);
  text-align: left;
}

.ft-journey-intro-strong {
  color: var(--theme-primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: left;
}

.ft-journey-intro {
  color: var(--theme-text);
  max-width: 600px;
  margin: 0;
  text-align: left;
}

.ft-journey-component {
  max-width: 600px;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

.ft-journey-card {
  background-color: #fff;
  border: 1px solid rgba(var(--bs-primary-rgb), 0.08);
  border-radius: 0px;
  box-shadow: 0 12px 30px rgba(var(--bs-primary-rgb), 0.08);
  padding: 1.75rem;
  min-height: auto;
  text-align: left;
}

.ft-journey-card-top {
  margin-bottom: 1rem;
  text-align: left;
}

.ft-journey-step-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ft-journey-step-badge {
  display: flex;
  align-items: center;
  gap:10px;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background-color: rgba(var(--bs-secondary-rgb), 0.18);
  color: var(--bs-primary);
  font-weight: 700;
}

.ft-journey-step-label {
  font-size: 1.1em !important;
  font-weight: 700;
  text-transform: uppercase;

  letter-spacing: 0.03em;
  color: var(--bs-primary);
}

.ft-journey-card-title {
  color: var(--theme-primary);
  font-size: 0.95rem;
  font-weight: 700;
  margin:0px;
  text-align: left;
}

.ft-journey-card-description {
  color: var(--theme-text);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
  text-align: left;
}

.ft-journey-card-blocks {
  margin-top: 0.25rem;
}

.ft-journey-info-box {
  height: 100%;
  background-color: var(--bs-secondary-bg) !important;
  border: 0px !important;
  border-left: 10px solid var(--bs-secondary) !important;
  
  border-radius: 0px;
  padding: 0.75rem 0.75rem;
  text-align: left;
}

.ft-journey-info-box h4 {
  color: var(--theme-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: left;
}

.ft-journey-info-box p {
  margin-bottom: 0;
  color: var(--theme-text);
  text-align: left;
}

.ft-journey-controls {
  //display: flex;
  width:100%;
  margin-top: 20px;
/*  align-items: center;
  gap: 1rem;
  
  flex-wrap: wrap;
  */
}


.ft-journey-progress {
  width:100%;
}

.ft-journey-progress-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  position: relative;
  width: 100%;
}

.ft-journey-progress-list::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 10%;
  right: 10%;
  height: 2px;
  background-color: var(--bs-light);
  z-index: 1;
}

.ft-journey-progress-item {
  position: relative;
  z-index: 2;
  text-align: center;
}

.ft-journey-progress-dot {
  width: 22px;
  height: 22px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  border: 3px solid var(--bs-light);
  background-color: #fff;
  display: block;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ft-journey-progress-dot:hover,
.ft-journey-progress-dot:focus {
  border-color: var(--bs-secondary);
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-secondary-rgb), 0.2);
}

.ft-journey-progress-item.is-active .ft-journey-progress-dot {
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
}

.ft-journey-progress-label {
  display: block;
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--theme-text);
  text-align: center;
}

.ft-journey-progress-item.is-active .ft-journey-progress-label {
  color: var(--theme-primary);
}

.ft-journey-nav-btn {
    border-radius: 0px;
    }
}
@media (max-width: 767.98px) {
  .ft-journey-section {
    padding: 20px;
  }

  .ft-journey-section .container {
    max-width: 100%;
  }

  .ft-journey-card {
    padding: 1.35rem;
    min-height: auto;
  }

  .ft-journey-controls {
    justify-content: flex-start;
  }

.ft-journey-buttons {
  //display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 20px;
  border-radius: 0px;
}



.ft-journey-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  align-self: stretch;
  gap: 2rem;
}

  .ft-journey-progress-list {
    gap: 0.25rem;
  }

  .ft-journey-progress-list::before {
    left: 8%;
    right: 8%;
  }

  .ft-journey-progress-label {
    font-size: 0.78rem;
  }

  .ft-journey-progress-dot {
    width: 18px;
    height: 18px;
    margin-bottom: 0.45rem;
  }
}