body {
  font-family: 'Segoe UI', sans-serif;
  background: #f5f5f5;
  margin: 0;
  padding: 0;
}

.simulator-container {
  max-width: 1300px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.simulator-header h2 {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
}
.simulator-header .highlight {
  color: #244A84;
}

.simulator-content {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.simulator-left {
  flex: 1;
  min-width: 600px;
  box-shadow: 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.15);
  border-radius: 2.1875rem;
  padding: 2.25rem;
  background-color: #f8f9fa;
}

.simulator-summary {
  background: #244A84;
  color: white;
  border-radius: 20px;
  padding: 25px;
  max-width: 380px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: -webkit-fill-available;
}

.step {
  margin-bottom: 25px;
}
.step-number {
  background: #3A5C91;
  color: white;
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 50%;
  text-align: center;
  margin-right: 10px;
  display: inline-block;
  font-weight: bold; /* optional: for better visual */
}

.credit-types {
  display: flex;
  flex-wrap: wrap;
  width: 350px;
  align-items: center;
}

.credit-types button,
.monthly-options button {
  margin: 8px 8px 0 0;
  padding: 12px 18px;
  border-radius: 30px;
  border: none;
  background: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16);
  border: 1px solid #f5f5f5;
  min-height: 3rem;
}
.credit-types button.active,
.monthly-options button.active {
  background: #244A84;
  color: white;
}

.amount-input {
  display: flex;
  align-items: center;
  gap: 10px;
}
.amount-input input {
  padding: 10px;
  font-size: 16px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 30px;
}
.amount-input .round {
  background: #244A84;
  color: white;
  width: 30px;
  height: 25px;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 3px;
  text-align: center;
  display: inline-block;
  cursor: pointer;
  padding: 0;
}
.amount-input .round:hover {
  opacity: 50%;
}

.monthly-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 350px;
}
.monthly-options button {
  text-align: center;
  line-height: 1.3;
  font-weight: bold;
}
.monthly-options button small {
  font-weight: normal;
  font-size: 13px;
}

.simulator-summary ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.simulator-summary li {
  margin-bottom: 10px;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
}

.monthly-total {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  margin-bottom: 15px;
  font-size: 18px;
}

.cta {
  background: #3A5C91;
  background-color: #3A5C91 !important;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}
.cta:hover {
  background: #D3191E !important;
  opacity: 0.6;
}
@media (max-width: 768px) {
  .simulator-body {
    flex-direction: column;
  }

  .simulator-left,
  .simulator-summary {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
  }

  .simulator-left {
    box-shadow: 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.15);
    border-radius: 2.1875rem;
    padding: 2.25rem;
    background-color: #f8f9fa;
  }

  .credit-types button,
  .monthly-options button {
    width: 100%;
    max-width: 100%;
    display: block;
    margin-bottom: 10px;
  }

  .amount-input {
    width: 100%;
    display: flex;
    gap: 10px;
  }

  .amount-input input {
    width: 100%;
  }

  .simulator-summary {
    margin-top: 30px;
  }

  .monthly-total {
    font-size: 16px;
    padding: 12px;
  }

  .cta {
    font-size: 15px;
    padding: 12px;
  }
  .sim-left-global {
    display: flex;
    align-items: stretch;
    text-align: left;
    margin-bottom: 0;
    padding-bottom: 0;
    justify-content: flex-start;
    flex-direction: column;
  }
  .credit-types {
    display: flex;
    flex-wrap: wrap;
    width: fit-content;
    align-items: center;
    flex-direction: column;
  }

  .step-carre {
    width: fit-content;
  }
  .sim-left-left {
    width: fit-content;
  }
  .step-title {
    width: -webkit-fill-available;
  }
  .simulator-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    flex-direction: column;
  }
  .monthly-options {
    min-width: auto;
    max-width: 100%;
    display: ruby;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
  }

  input#_amount {
    width: 100% !important;
    margin-left: 0%;
  }
  .monthly-options button {
    width: fit-content;
  }

  .stepp {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    text-align: center !important;
    line-height: 40px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
    transition: all 0.3s ease !important;
    margin: 0 10px !important;
  }
  .line {
    height: 4px;
    width: 1px !important;
  }
  p {
    width: -webkit-fill-available;
  }
  .simulator-left {
    padding: 15px !important;
  }
  .btn_empreint {
    border-radius: 10px !important;
    height: 100px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    width: 150px !important;
  }
  .credit-summary {
    display: flex;
    align-items: center;
    flex-direction: column;
  }
  .credit-details {
    display: grid !important;
    width: 100%;
  }
  .step-number {
    width: 35px;
    height: 25px;
    line-height: 23px;
  }
  .arrow {
    width: 30px;
    height: 25px;
  }
  .amount-input .round {
    width: 35px;
    height: 25px;
    line-height: 23px;
  }
}

.step-title p {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.sim-left-global {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start; /* important */
  text-align: left; /* évite le centrage du texte dans les enfants */
}

.step-title,
.sim-left-left {
  text-align: left; /* s'assurer que le texte interne est aligné à gauche */
}

.step-carre {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.selectedx {
  background-color: #244A84 !important;
  color: white !important;
  border: 2px solid #244A84 !important;
}
.selectedx > * {
  color: white !important;
}

.selectedx img {
  filter: invert(100%);
}

/* Couleur du <small> sélectionné */
.highlight-smallx {
  color: white !important;
  font-weight: bold !important;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center; /* centre les étapes */
  width: 100%;
  margin: 40px 0;
  box-sizing: border-box;
}

.step-wrapper {
  display: flex;
  align-items: center;
}

.stepp {
  width: 90px;
  height: 90px;
  background-color: #d3d7dc;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 90px;
  font-weight: bold;
  font-size: 24px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  margin: 0 20px; /* espace entre les cercles */
}

.stepp.active {
  background-color: #244A84;
}

.line {
  height: 4px;
  background-color: #d3d7dc;
  width: 100px; /* largeur fixe pour centrage équilibré */
}

.step-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin: 40px 0;
  flex-wrap: wrap;
}

.btn-step {
  background-color: #3A5C91;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 220px;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  gap: 10px;
  transition: background-color 0.3s ease;
}

.btn-step:hover {
  background-color: #45a049;
}

.arrow {
  background-color: white;
  color: #3A5C91;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

@media (max-width: 600px) {
  .step-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .btn-step {
    max-width: 100%;
    justify-content: space-between;
    margin: 10px;
    width: auto;
  }
}
.stepp.completed {
  background-color: #3A5C91; /* Rouge */
  color: #fff;
  font-weight: bold;
}

.credit-summary {
  padding: 20px;
}

.credit-summary .title {
  color: #3A5C91; /* vert */
  font-size: 20px;
  margin-bottom: 20px;
}

.credit-details {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.detail-block {
  flex: 1 1 30%;
  min-width: 150px;
  text-align: left;
}

.label {
  color: #666;
  margin-bottom: 5px;
}

.value {
  color: #333;
  font-weight: bold;
}

input,
select {
  /*width: 100%;*/
  padding: 12px 16px;
  border: 1px solid #ddd; /* gris très clair */
  border-radius: 999px; /* arrondi maximal */
  font-size: 14px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

input:focus,
select:focus {
  border-color: #aaa; /* bord un peu plus foncé au focus */
}
label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #555;
}
.row_btn_empreint {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 10px;
  box-sizing: border-box;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
}
.btn_empreint.selected {
  background-color: #244A84;
  border: 1px solid #244A84;
  color: white;
  font-weight: bold;
}
.form-check {
  display: flex;
  flex-direction: row;
}
.creditEnCours {
  width: 100%;
}

.monsuelCadre {
  font-size: 1.4375rem;
  color: white;
}
.classButCreditProjet {
  display: flex;
  flex-direction: column;
  align-content: center;
}

div.simulator-header > h2 > span {
  display: inline-block !important;
  background-color: #fff !important;
  border: none !important;
}
.simulator-header {
  padding-bottom: 5px;
}
.simulator-header h2 {
  color: #244A84;
}

li.ng-binding:before {
  list-style-type: none !important;
  content : none !important;
}

