/* ETAPES STYLE CSS */

main {
    width: 100%;
    max-width: 1500px;
    min-height: 100vh;
    padding: 1.75em;
    margin: 0 auto;
    align-items: flex-start;
}

.illustration {
    position: sticky;
    top: 0;
    justify-content: center;
    align-items: center;
    flex: 7;
}

.illustration > img {
    width: 500px;
    margin-top: 180px;
}

main > .mtn-square {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    height: calc(100vh - 180px);
    z-index: -1;
}

.form {
    flex: 5;
    margin-top: 180px;
}

.nav-steps {
    width: 100%;
    padding: .5em;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    margin-top: .75em;
}

.nombre {
    padding: .1em;
}

h3, h4 {
    color: var(--black);
    position: relative;
}

.active h3, .active h4, .form > h3 {
    color: var(--blue);
}

@media screen and (max-width: 844px) {
    .nombre.active::after {
        position: absolute;
        content: "";
        bottom: -1em;
        transform: translateX(-50%);
        left: 50%;
        width: 0;
        height: 0;
        border: .33em solid transparent;
        border-color: var(--blue) transparent transparent transparent;
    } 
}

.nav-steps .mtn-simple {
    position: relative;
    transform: rotate(90deg);
    bottom: .25em;
    width: 1em;
    height: 0.5em;
}

.form.flex-col > div.mobile-only.flex-col > div {
    transform: rotate(180deg);
    width: 1em;
    height: 0.5em;
}

.step-link {
    text-decoration: none;
    align-items: baseline;
    gap: 1em;
}

form {
    align-items: flex-start;
    gap: 1em;
    margin-top: 3em;
}

form .flex-col-to-row {
    width: 100%;
    justify-content: space-between;
    gap: .5em 1em;
}

.form-item {
    width: 100%;
    gap: .5em;
}

.payment-list {
    justify-content: space-between;
    align-items: flex-start;
    max-width: 100%;
}

.payment-list > div {
    max-width: calc(50% - .5em);
}

.Pay {
    width: 50%;
    height: auto;
    padding: 0;
    flex: 1;
}

.Pay.not {
    opacity: .5;
}

.Pay:hover {
    opacity: 1;
}

p.form-text {
    font-weight: 500;
    margin: 0;
}

@media screen and (max-width: 844px) {
    .payment-list > div {
        max-width: 100%;
    }
}
/* The container */
.checkbox {
    display: block;
    position: relative;
    padding-left: 2.5em;
    margin-bottom: 1em;
    cursor: pointer;
    font-size: 1em;
    color: var(--black);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

/* Hide the browser's default checkbox */
.checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  
  /* Create a custom checkbox */
  .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 1.5em;
    width: 1.5em;
    background-color: var(--gray);
    border: 2px solid var(--blue);
    border-radius: 5px;
  }
  
  /* On mouse-over, add a grey background color */
  .checkbox:hover input ~ .checkmark {
    background-color: var(--blue);
  }
  
  /* When the checkbox is checked, add a blue background */
  .checkbox input:checked ~ .checkmark {
    background-color: var(--blue);
  }
  
  /* Create the checkmark/indicator (hidden when not checked) */
  .checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }
  
  /* Show the checkmark when checked */
  .checkbox input:checked ~ .checkmark:after {
    display: block;
  }
  
  /* Style the checkmark/indicator */
  .checkbox .checkmark:after {
    left: .5em;
    top: .25em;
    width: .25em;
    height: .5em;
    border: solid var(--white);
    border-width: 0 .2em .2em 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  .compte {
      align-items: baseline;
  }
  
  .compte > div {
      align-items: baseline;
      flex: 1;
  }

  .compte > div > div > * {
      width: 100%;
  }

  input:active, input:focus-visible, select:focus-visible {
      border-color: var(--black);
      outline: 0px;
  }

  .titre {
      margin-top: 180px;
  }

  .w-100 {
      width: 100%;
  }

 .compte ul .link {
      color: var(--black);
  }

 
.compte ul .link.lien-actif {
    color: var(--blue);
  }

  .option.active {
      display: flex;
  }

  .option {
      display: none;
  }

  .compte .link.attention {
    color: red;
}
