/**
 * Credit Express — Simulator CSS
 * Compiled from LP _scss/sim/ sources
 * Variables: primary=#5DB3B6, secondary=#FBC900, dark=#01202C
 */

/* ================================================================
   ICONS FONT
   ================================================================ */
@font-face {
  font-family: "icons";
  src: url("../fonts/icons.eot#iefix") format("embedded-opentype"),
       url("../fonts/icons.woff2") format("woff2"),
       url("../fonts/icons.woff") format("woff"),
       url("../fonts/icons.ttf") format("truetype"),
       url("../fonts/icons.svg#icons") format("svg");
}

i[class^="be2ds-sim-icon-"],
i[class*=" be2ds-sim-icon-"] {
  pointer-events: none;
}

i[class^="be2ds-sim-icon-"]:before,
i[class*=" be2ds-sim-icon-"]:before {
  font-family: icons !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.be2ds-sim-icon-expert:before { content: "\f101"; }
.be2ds-sim-icon-gt:before { content: "\f102"; }
.be2ds-sim-icon-left-arrow:before { content: "\f103"; }
.be2ds-sim-icon-lt:before { content: "\f104"; }
.be2ds-sim-icon-minus:before { content: "\f105"; }
.be2ds-sim-icon-offre:before { content: "\f106"; }
.be2ds-sim-icon-pa:before { content: "\f107"; }
.be2ds-sim-icon-pat:before { content: "\f108"; }
.be2ds-sim-icon-plus:before { content: "\f109"; }
.be2ds-sim-icon-ptr:before { content: "\f10a"; }
.be2ds-sim-icon-regr:before { content: "\f10b"; }
.be2ds-sim-icon-right-arrow:before { content: "\f10c"; }
.be2ds-sim-icon-taux:before { content: "\f10d"; }
.be2ds-sim-icon-traitement:before { content: "\f10e"; }

/* ================================================================
   GLOBAL — Simulator container
   ================================================================ */
#be2ds-sim {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.875rem 0.4rem;
  color: #000;
  width: 100%;
}

#be2ds-sim .hide {
  opacity: 0;
  visibility: hidden;
  animation: hide 250ms;
}

#be2ds-sim label {
  display: block;
  margin: 0.4rem 0;
  font-weight: 700;
  font-size: 0.875rem;
  color: #35363A;
}

#be2ds-sim label span {
  margin-right: 0.4rem;
}

#be2ds-sim select {
  width: 100%;
  padding: 0.875rem;
  -webkit-appearance: none;
  appearance: none;
  background-color: white;
  border: 0;
  border-radius: 0.781rem;
  box-shadow: 0 0 12px 0 rgba(93, 179, 182, 0.3);
  padding-right: 1.86rem;
}

#be2ds-sim .step {
  margin-bottom: 0.94rem;
}

#be2ds-sim .step > div {
  display: flex;
  flex-direction: row;
}

#be2ds-sim .step > div.minus-plus {
  align-items: center;
}

#be2ds-sim .step > div.minus-plus > div.selectWrapper {
  width: calc(100% - 0.875rem);
}

/* Plus / Minus buttons */
#be2ds-sim .minus,
#be2ds-sim .plus {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  margin: 0 0.625rem;
  position: relative;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1);
  transition: transform 100ms linear;
  background-color: #fff;
  vertical-align: middle;
  cursor: pointer;
  color: #5DB3B6;
  box-shadow: 0 0 12px 0 rgba(93, 179, 182, 0.3);
}

#be2ds-sim .minus:hover,
#be2ds-sim .minus:active,
#be2ds-sim .plus:hover,
#be2ds-sim .plus:active {
  color: #5DB3B6;
  background-color: #d9d9d9;
}

#be2ds-sim .minus:active,
#be2ds-sim .plus:active {
  transform: scale(0.94);
}

#be2ds-sim .minus.actif,
#be2ds-sim .plus.actif {
  color: #5DB3B6;
  transform: scale(0.94);
  background-color: #fef8d9;
}

#be2ds-sim .minus > i,
#be2ds-sim .plus > i {
  display: block;
}

#be2ds-sim .minus {
  margin-left: 0;
}

#be2ds-sim .plus {
  margin-right: 0;
}

/* Select wrapper with dropdown icon */
#be2ds-sim .selectWrapper {
  position: relative;
}

#be2ds-sim .selectWrapper::after {
  content: "\f101";
  font-family: icons !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: absolute;
  top: calc(50% - 0.425rem);
  right: 0.625rem;
  transform: rotate(90deg);
  color: #5DB3B6;
  pointer-events: none;
}

/* ================================================================
   LOADER
   ================================================================ */
#be2ds-sim #be2ds-loaderContainer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  z-index: 10;
}

#be2ds-sim #be2ds-loaderContainer div {
  border: 0.437rem solid #eee;
  border-top: 0.437rem solid #0a35f5;
  border-radius: 50%;
  width: 1.875rem;
  height: 1.875rem;
  animation: spin 2s linear infinite;
}

/* ================================================================
   STEP RESUME
   ================================================================ */
#be2ds-sim .step.resume {
  display: flex;
  flex-direction: column;
  margin-top: 0.875rem;
}

#be2ds-sim .step.resume > div {
  flex-direction: column;
  padding: 0.5rem 0.4rem;
  margin-left: -0.4rem;
  margin-right: -0.4rem;
  line-height: 0.625rem;
}

#be2ds-sim .step.resume > div span {
  color: #1a5c5e;
}

#be2ds-sim .step.resume > div strong {
  color: #fff;
}

#be2ds-sim .step.resume p {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0.7rem;
}

#be2ds-sim .step.resume div > p:first-child {
  font-weight: 700;
}

#be2ds-sim .step.resume #be2ds-cta {
  border-radius: 0.781rem;
  text-transform: uppercase;
}

#be2ds-sim .step.resume #be2ds-cta span {
  display: block;
  text-transform: lowercase;
  font-size: 0.8rem;
}

/* ================================================================
   CTA BUTTONS
   ================================================================ */
#be2ds-cta,
#be2ds-cta-fixed {
  display: block;
  width: 100%;
  padding: 1.25rem 1.875rem 1.25rem 1.25rem;
  position: relative;
  outline: none;
  border: 0;
  background: #FBC900;
  color: #000;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
}

#be2ds-cta {
  overflow: hidden;
  transition: transform 250ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: scale(1);
}

#be2ds-cta::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to left, rgba(229, 142, 142, 0), rgba(255, 255, 255, 0.3) 50%, rgba(229, 142, 142, 0));
  transform: translateX(0rem);
  animation: be2dsctashine 14s infinite;
}

#be2ds-cta::before {
  content: "\f102";
  font-family: icons !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1.25rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: absolute;
  right: 0.625rem;
  top: calc(50% - 0.625rem);
  font-size: 1.25rem;
  animation: be2dsctaarrow 14s infinite;
}

#be2ds-cta:active {
  transform: scale(0.96);
  background: #e5b600;
}

#be2ds-cta-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding-right: 1.875rem;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);
  transition: all 300ms;
  transition-property: transform;
  transition-timing-function: cubic-bezier(.1, .31, .18, 1.56);
  transform: translateX(-104%);
  z-index: 999;
}

#be2ds-cta-fixed.be2ds-show {
  transform: translateX(0);
}

#be2ds-cta-fixed::after {
  content: "\f102";
  font-family: icons !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1.25rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: absolute;
  right: 1rem;
  top: calc(50% - 0.625rem);
  font-size: 1.25rem;
  animation: be2dsctaarrow 14s infinite;
}

/* ================================================================
   PRODUCT LIST
   ================================================================ */
#be2ds-sim ul.productsList {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 2.2em;
  color: #5DB3B6;
  padding-inline-start: 0;
}

#be2ds-sim ul.productsList li {
  background-color: #fff;
  border: 2px solid #fff;
  border-radius: 0.781rem;
  text-align: center;
  font-size: 0.725rem;
  box-shadow: 0 0 12px 0 rgba(93, 179, 182, 0.3);
  margin-bottom: 1.2em;
  margin-top: 0.7em;
}

#be2ds-sim ul.productsList li.active {
  border: 2px solid #5DB3B6;
  background-color: #d9eeef;
}

#be2ds-sim ul.productsList li > a {
  display: block;
  width: 110px;
  max-width: 110px;
  padding: 0.781rem 0.187rem;
  color: #5DB3B6;
  text-decoration: none;
}

#be2ds-sim ul.productsList li > a > * {
  pointer-events: none;
}

#be2ds-sim ul.productsList li.active > a {
  color: #5DB3B6;
}

#be2ds-sim ul.productsList li i,
#be2ds-sim ul.productsList li span {
  display: block;
}

#be2ds-sim ul.productsList li i {
  font-size: 1.875rem;
}

#be2ds-sim ul.productsList li span {
  font-weight: 700;
}

/* ================================================================
   LEGAL TEXT
   ================================================================ */
.be2ds-legaltxt {
  font-size: 0.625rem;       /* 10px — taille reduite pour mention legale dense */
  font-style: italic;
  text-align: justify;
  line-height: 1.15;          /* interligne resserre */
  color: #5c5d60;
}

.be2ds-legaltxt p {
  margin-bottom: 0.4rem;      /* espace inter-paragraphe reduit */
}

.be2ds-legaltxt strong {
  font-size: 0.75rem;         /* etait 1rem — proportionnel a la nouvelle base */
  font-weight: 700;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
/* Tablette/mobile (<lg) : 4 cartes toujours sur une ligne, partage equitable
   de la largeur disponible. Les cartes a 110px ne tiennent pas dans le
   simulateur dans certains containers etroits — flex-wrap: nowrap + flex:1
   garantit une ligne unique quelle que soit la largeur du parent. */
@media screen and (max-width: 991.98px) {
  #be2ds-sim .step {
    margin-bottom: 0.2em;
  }

  #be2ds-sim ul.productsList {
    column-gap: 0.4rem;
    margin-bottom: 0;
    flex-wrap: nowrap;
  }

  #be2ds-sim ul.productsList li {
    font-size: 0.6rem;
    flex: 1 1 0;
    min-width: 0;
  }

  #be2ds-sim ul.productsList li > a {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.25rem;
  }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes hide {
  0% { opacity: 1; visibility: visible; }
  99% { opacity: 0; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes be2dsctaarrow {
  0% { transform: translateX(0); }
  45% { transform: translateX(0); }
  48% { transform: translateX(-0.225rem); }
  50% { transform: translateX(0.225rem); }
  52% { transform: translateX(-0.225rem); }
  54% { transform: translateX(0.225rem); }
  56% { transform: translateX(-0.225rem); }
  58% { transform: translateX(0.225rem); }
  60% { transform: translateX(-0.225rem); }
  62% { transform: translateX(0.225rem); }
  64% { transform: translateX(-0.225rem); }
  66% { transform: translateX(0.225rem); }
  68% { transform: translateX(0); }
  100% { transform: translateX(0); }
}

@keyframes be2dsctashine {
  0% { transform: translateX(-100%); }
  52% { transform: translateX(-100%); }
  55% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
