/* Styles for the step pages */
@import url('styleguide.css');
@import url('header.css');
@import url('footer.css');

/* Step navigation */
.step-navigation {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 40px;
}
.step-button-number{
    display: none;
}

.step-buttons-container {
  display: flex;
  gap: 10px;
}

.step-button-wrapper {
  width: 180px;
}

.step-button-wrapper a {
  text-decoration: none;
  display: block;
}

.step-button {
  border: 2px solid var(--black);
  border-radius: 30px;
  padding: 10px 16px;
  text-align: center;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media screen and (min-width: 1280px) and (max-width: 1650px) {
  .step-button {
    min-height: 80px;
  }
}

.step-button-active {
  background: var(--royal-blue);
  color: var(--white);
  border: 2px solid var(--royal-blue);
}

.step-button-wrapper a:hover .step-button:not(.step-button-active) {
  background: var(--royal-blue);
  color: var(--white);
  border-color: var(--royal-blue);
}

/* Contenu principal */
.step-main-content {
  padding: 50px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.step-title-section {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 50px;
}

.step-subtitle {
  font-size: var(--font-size-l);
  color: var(--black);
  margin-bottom: 20px;
  font-weight: bold;
  font-family: "Oscine", Helvetica;
}

.step-definition {
  margin-bottom: 40px;
  font-size: 20px;
  line-height: 24px;
}

.step-title {
  color: var(--royal-blue);
  margin: 0;
  font-size: var(--font-size-xxxxl);
}

/* Progress Indicator */
.step-progress {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.step-progress-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-progress-arrow {
  text-decoration: none;
  color: var(--royal-blue);
  font-size: 20px;
}

.step-progress-text {
  color: var(--black);
}

.step-progress-bar {
  border: 2px solid var(--royal-blue);
  height: 12px;
  width: 512px;
  position: relative;
  background: var(--white);
  overflow: hidden;
}

.step-progress-bar-fill {
  height: 100%;
  background: var(--royal-blue);
}

/* Hide progress bar below 998px */
@media screen and (max-width: 998px) {
  .step-progress {
    display: none;
  }
}

/* Colonnes de texte */
.step-text-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.step-text {
  font-size: var(--font-size-l);
  line-height: 1.6;
  margin: 0 0 30px 0;
}

.step-text strong {
  font-weight: 700;
}

.step-text-columns ul.step-text {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.step-text-columns ol.step-text {
  list-style: decimal;
  padding-left: 32px;
  margin: 0 0 30px 0;
}

.step-text-columns ol.step-text li {
  margin-bottom: 12px;
}

.step-text-columns ul.step-text li {
  position: relative;
  padding-left: 20px;
}

.step-text-columns ul.step-text li::before {
  content: "-";
  position: absolute;
  left: 0;
}

.step-text:last-child {
  margin-bottom: 0;
}

.step-label {
  text-align: center;
  margin-bottom: 5px;
}

.step-mobile-current { display: none; opacity: 0; visibility: hidden; }
.step-mobile-current.visible { opacity: 1; visibility: visible; }

.step-navigation-arrows {
  display: none;
}

/* Default: show desktop version, hide responsive version */
.step-button-text-responsive {
  display: none;
}

.step-button-text-desktop {
  display: block;
}

/* Medium screen breakpoint - switch step 5 text variant */
@media screen and (max-width: 1538px) {
  .step-button-text {
    display: block;
  }

  .step-button-text-desktop {
    display: none;
  }

  .step-button-text-responsive {
    display: block;
  }
}

/* Additional breakpoint for smaller screens to ensure uniform heights */
@media screen and (max-width: 1389px) {
  .step-button {
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

/* Hide arrows and center carousel between 660px and 769px */
@media screen and (min-width: 660px) and (max-width: 769px) {
  .step-navigation-arrows {
    display: none !important;
  }
  
  .step-navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .step-buttons-container {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: auto;
    touch-action: pan-x;
    width: 100%;
  }
  
  .step-buttons-container::-webkit-scrollbar {
    display: none;
  }
  
  .step-mobile-current {
    text-align: left;
    align-self: flex-start;
    width: 100%;
  }
}

/* Carousel navigation between 768px and 1389px */
@media screen and (min-width: 769px) and (max-width: 1389px) {
  .header-navigation {
    margin-bottom: 0;
  }
  .step-navigation {
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .step-navigation-arrows {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    gap: 10px;
  }
  
  .step-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    user-select: none;
    font-size: 0;
  }
  
  .step-nav-arrow:first-child {
    margin-right: auto;
  }
  
  .step-nav-arrow:last-child {
    margin-left: auto;
  }
  
  .step-nav-arrow:first-child::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='59.965' height='39.559' viewBox='0 0 59.965 39.559'%3E%3Cg id='Groupe_103' data-name='Groupe 103' transform='translate(-831.256 -2822.635)'%3E%3Cpath id='Trac%25C3%25A9_330' data-name='Trac%25C3%25A9 330' d='M296.426.354,319.5,19.361,296.426,38.369' transform='translate(570.146 2823.053)' fill='none' stroke='%23000' stroke-miterlimit='10' stroke-width='2'/%3E%3Cline id='Ligne_10' data-name='Ligne 10' x2='58.393' transform='translate(831.256 2842.414)' fill='none' stroke='%23000' stroke-miterlimit='10' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
    display: block;
    transform: rotate(180deg) scale(0.6);
  }
  
  .step-nav-arrow:last-child::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='59.965' height='39.559' viewBox='0 0 59.965 39.559'%3E%3Cg id='Groupe_103' data-name='Groupe 103' transform='translate(-831.256 -2822.635)'%3E%3Cpath id='Trac%25C3%25A9_330' data-name='Trac%25C3%25A9 330' d='M296.426.354,319.5,19.361,296.426,38.369' transform='translate(570.146 2823.053)' fill='none' stroke='%23000' stroke-miterlimit='10' stroke-width='2'/%3E%3Cline id='Ligne_10' data-name='Ligne 10' x2='58.393' transform='translate(831.256 2842.414)' fill='none' stroke='%23000' stroke-miterlimit='10' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
    display: block;
    transform: scale(0.6);
  }
  
  .step-buttons-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
    touch-action: pan-x;
  }
  
  .step-buttons-container::-webkit-scrollbar {
    display: none;
  }
  
  .step-button-wrapper {
    flex: 0 0 auto;
    width: 180px;
    min-width: 180px;
    flex-shrink: 0;
  }
  
  .step-label {
    display: none;
  }
  
  .step-mobile-current {
    display: block;
    font-size: 16px;
    color: var(--black);
    margin-top: 10px;
    font-family: var(--font-family-oscine-bold);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease;
  }
  
  .step-mobile-current.visible {
    opacity: 1;
    visibility: visible;
  }
}

@media screen and (max-width: 768px) {
  .step-navigation {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .step-navigation-arrows {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    gap: 10px;
  }
  
  .step-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    user-select: none;
    font-size: 0;
  }
  
  .step-nav-arrow:first-child {
    margin-right: auto;
  }
  
  .step-nav-arrow:last-child {
    margin-left: auto;
  }
  
  .step-nav-arrow:first-child::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='59.965' height='39.559' viewBox='0 0 59.965 39.559'%3E%3Cg id='Groupe_103' data-name='Groupe 103' transform='translate(-831.256 -2822.635)'%3E%3Cpath id='Trac%25C3%25A9_330' data-name='Trac%25C3%25A9 330' d='M296.426.354,319.5,19.361,296.426,38.369' transform='translate(570.146 2823.053)' fill='none' stroke='%23000' stroke-miterlimit='10' stroke-width='2'/%3E%3Cline id='Ligne_10' data-name='Ligne 10' x2='58.393' transform='translate(831.256 2842.414)' fill='none' stroke='%23000' stroke-miterlimit='10' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
    display: block;
    transform: rotate(180deg) scale(0.6);
  }
  
  .step-nav-arrow:last-child::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='59.965' height='39.559' viewBox='0 0 59.965 39.559'%3E%3Cg id='Groupe_103' data-name='Groupe 103' transform='translate(-831.256 -2822.635)'%3E%3Cpath id='Trac%25C3%25A9_330' data-name='Trac%25C3%25A9 330' d='M296.426.354,319.5,19.361,296.426,38.369' transform='translate(570.146 2823.053)' fill='none' stroke='%23000' stroke-miterlimit='10' stroke-width='2'/%3E%3Cline id='Ligne_10' data-name='Ligne 10' x2='58.393' transform='translate(831.256 2842.414)' fill='none' stroke='%23000' stroke-miterlimit='10' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
    display: block;
    transform: scale(0.6);
  }
  
  .step-buttons-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
    touch-action: pan-x;
  }
  
  .step-buttons-container::-webkit-scrollbar {
    display: none;
  }
  
  .step-button-wrapper {
    flex: 0 0 auto;
    width: 60px;
    flex-shrink: 0;
  }
  
  .step-label {
    display: none;
  }
  
  .step-button-wrapper a {
    display: block;
  }
  
  .step-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px !important;
    height: 60px !important;
    min-height: 60px !important;
    border-radius: 50%;
    border: 2px solid var(--black);
    padding: 0;
    font-size: 0;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    position: relative;
    overflow: hidden;
    flex-direction: row;
  }
  
  .step-button-active {
    background: var(--royal-blue);
    color: var(--white);
    border-color: var(--royal-blue);
  }
  
  .step-button::before {
    content: attr(data-step-button);
    display: block;
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
  }
  
  .step-button * {
    opacity: 0 !important;
    visibility: hidden !important;
  }
  
  .step-mobile-current {
    display: block;
    font-size: 16px;
    color: var(--black);
    margin-top: 10px;
    font-family: var(--font-family-oscine-bold);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease;
  }
  
  .step-mobile-current.visible {
    opacity: 1;
    visibility: visible;
  }
  
  .step-progress {
    display: none;
  }
  
  .header-navigation {
    margin-bottom: 0;
  }
  
  .step-title {
    font-size: 40px;
    line-height: 48px;
  }
  
  .step-subtitle {
    font-size: 16px !important;
    line-height: 26px;
  }
  
  .step-text {
    font-size: 16px;
    line-height: 26px;
  }
  
  .step-definition {
    font-size: 16px !important;
    line-height: 26px;
  }

  .step-main-content {
    padding: 50px 20px;
  }
  
  /* Make step text layout single-column on mobile */
  .step-text-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Link styles */
.step-text a {
  color: var(--royal-blue);;
}

/* Bottom navigation (without progress bar) */
.step-bottom-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 60px;
  padding-top: 40px;
}

.step-bottom-nav-arrow {
  text-decoration: none;
  color: var(--royal-blue);
  font-size: 20px;
}

.step-bottom-nav-text {
  color: var(--black);
}

@media screen and (max-width: 998px) {
  .step-bottom-nav {
    margin-top: 40px;
    padding-top: 30px;
  }
}


