/* Page « Comment obtenir un prêt » — styles dédiés (Corporate, sans glassmorphism) */
/* Sora chargée depuis base.html — pas de @import nécessaire ici */
:root {
  --htl-green:       var(--color-primary);
  --htl-green-hover: var(--color-primary-hover);
  --htl-green-dark:  var(--color-primary-dark);
  --htl-blue:        var(--color-secondary);
  --htl-blue-light:  var(--color-secondary-mid);
  --htl-blue-pale:   var(--color-secondary-pale);
  --htl-text-dark:   var(--color-text-dark);
  --htl-text-mid:    var(--color-text-mid);
  --htl-text-light:  var(--color-text-light);
  --htl-white:       var(--color-white);
  --htl-bg-light:    var(--color-bg-light);
  --htl-grad:        var(--color-grad-brand);
  --htl-space-xs:    var(--space-xs);
  --htl-space-sm:    var(--space-sm);
  --htl-space-md:    var(--space-md);
  --htl-space-lg:    var(--space-lg);
  --htl-space-xl:    var(--space-xl);
}

.how-to-loan-page {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  color: var(--htl-text-dark);
  background: var(--htl-white);
  overflow-x: hidden;
}

.how-to-loan-page a { text-decoration: none; color: var(--htl-blue); }
.how-to-loan-page a:hover { text-decoration: underline; }

.how-to-loan-page .hero {
  background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB3aWR0aD0iMTM0OSIgaGVpZ2h0PSI1NDQiIHZpZXdCb3g9IjAgMCAxMzQ5IDU0NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMzE2LjU4IDQ2Mi42MTRDMTMyMy41NCA0ODYuNzE1IDEzMDguNzQgNTAwLjU2MSAxMjgzLjY4IDQ5My4zODRMMTE4NS40MSA0NjUuMjM3QzExNjAuMzUgNDU4LjA2IDExNTQuNjYgNDM4LjM0MSAxMTcyLjc1IDQyMS40MTdMMTI0My43MSA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  margin-top: calc(120px + 2.5rem);
  /* 100% : évite le dépassement horizontal lié à 100vw + barre de défilement */
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.how-to-loan-page .hero-inner {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem clamp(15px, 4vw, 48px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 400px) minmax(200px, min(44vw, 520px));
  gap: 1.5rem 2rem;
  align-items: start;
  box-sizing: border-box;
}

.how-to-loan-page .hero-text {
  min-width: 0;
}

.how-to-loan-page .hero-text h1 {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--htl-text-dark);
  margin-bottom: 2rem;
}

.how-to-loan-page .hero-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--htl-text-dark);
}

.how-to-loan-page .hero-text p {
  font-size: 1rem;
  color: var(--htl-text-mid);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.how-to-loan-page .hero-calc {
  min-width: 0;
}

.how-to-loan-page .hero-character {
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 0;
}

.how-to-loan-page .hero-character-img {
  max-height: min(66vh, 620px);
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(16, 24, 40, 0.12));
}

.how-to-loan-page .calc-box {
  background: var(--htl-white);
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10);
  padding: 2rem;
  margin-bottom: 2rem;
  max-width: 100%;
  box-sizing: border-box;
}

.how-to-loan-page .calc-title {
  color: var(--htl-blue-light);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.how-to-loan-page .slider-block { margin-bottom: 1.5rem; }

.how-to-loan-page .slider-val {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  color: var(--htl-blue-light);
  margin-bottom: 0.75rem;
}

.how-to-loan-page .range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #98A2B3;
  margin-top: 8px;
}

.how-to-loan-page .calc-btn {
  display: block;
  width: 100%;
  background: var(--htl-green-dark);
  color: var(--htl-white);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin: 1.5rem 0 0.75rem;
  text-align: center;
}

.how-to-loan-page .calc-btn:hover { background: var(--htl-green-hover); text-decoration: none; }

.how-to-loan-page .calc-disclaimer {
  font-size: 0.72rem;
  color: #9b9b9b;
  text-align: center;
}

.how-to-loan-page .section-checks {
  padding: 3rem 15px;
  background: var(--htl-white);
  text-align: center;
}

.how-to-loan-page .section-checks h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.how-to-loan-page .checks-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.how-to-loan-page .check-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--htl-bg-light);
  border-radius: 1rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.how-to-loan-page .check-item > span {
  min-width: 0;
  text-align: left;
  flex: 1;
}

.how-to-loan-page .check-icon {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--htl-grad);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.how-to-loan-page .check-icon i { color: var(--htl-blue-light); font-size: 1.1rem; }

.how-to-loan-page .section-checks-inner {
  max-width: 1088px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

.how-to-loan-page .btn-apply-big {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--htl-green-dark);
  color: var(--htl-text-dark);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 2rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: center;
  margin-top: 0.5rem;
}

.how-to-loan-page .btn-apply-big:hover { background: var(--htl-green-hover); text-decoration: none; }

.how-to-loan-page .section-conditions {
  padding: 3rem 15px;
  background: var(--htl-grad);
  text-align: center;
}

.how-to-loan-page .section-conditions h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.how-to-loan-page .conditions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1088px;
  margin: 0 auto 0.75rem;
}

.how-to-loan-page .cond-card {
  background: var(--htl-white);
  border-radius: 1.5rem;
  padding: 1.5rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 4px 0 #f9f9fb;
}

.how-to-loan-page .conditions-note {
  font-size: 0.8rem;
  color: #818a91;
  max-width: 1088px;
  margin: 0.75rem auto 0;
  text-align: center;
  padding: 0 1rem;
}

.how-to-loan-page .section-why-wrap {
  padding: 3rem 15px;
  background: var(--htl-white);
}

.how-to-loan-page .section-why {
  padding: 0;
  max-width: 1088px;
  margin: 0 auto;
}

.how-to-loan-page .section-why h2 {
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 1.5rem;
}

.how-to-loan-page .htl-accordion-item {
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
}

.how-to-loan-page .htl-accordion-item:last-child { border-bottom: none; }

.how-to-loan-page .htl-accordion-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.75rem 0;
  gap: 0.5rem;
  min-width: 0;
}

.how-to-loan-page .htl-accordion-title h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--htl-text-dark);
  flex: 1;
  min-width: 0;
  padding-inline-end: 0.75rem;
  line-height: 1.35;
}

.how-to-loan-page .htl-accordion-title i {
  color: var(--htl-blue-light);
  font-size: 1.2rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.how-to-loan-page .htl-accordion-title.open i { transform: rotate(180deg); }

.how-to-loan-page .htl-accordion-content {
  display: none;
  padding: 0.5rem 0 0.5rem;
  font-size: 0.95rem;
  color: var(--htl-text-mid);
  line-height: 1.6;
}

.how-to-loan-page .htl-accordion-content p { margin-bottom: 0.75rem; }
.how-to-loan-page .htl-accordion-content p:last-child { margin-bottom: 0; }
.how-to-loan-page .htl-accordion-content.open { display: block; }

.how-to-loan-page .section-howto {
  padding: 3rem 15px;
  background: var(--htl-grad);
}

.how-to-loan-page .section-howto > h2 {
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 2rem;
}

.how-to-loan-page .howto-inner {
  max-width: 1088px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.how-to-loan-page .steps-list { flex: 1; list-style: none; }

.how-to-loan-page .steps-list li {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.how-to-loan-page .step-num {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  margin-inline-end: 1.5rem;
  background: linear-gradient(-90deg, #99DF2B 20%, #448DBF 75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 90px;
  text-align: end;
}

.how-to-loan-page .step-text { font-size: 1.2rem; font-weight: 600; }
.how-to-loan-page .howto-calc { flex: 0 0 380px; }

.how-to-loan-page .section-trust {
  padding: 2.5rem 15px;
  background: var(--htl-white);
}

.how-to-loan-page .trust-inner {
  max-width: 1088px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.how-to-loan-page .trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 200px;
}

.how-to-loan-page .trust-icon {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: var(--htl-grad);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.how-to-loan-page .trust-icon i { color: var(--htl-blue-light); font-size: 1.3rem; }
.how-to-loan-page .trust-text { font-size: 0.9rem; line-height: 1.4; color: var(--htl-text-mid); }
.how-to-loan-page .trust-text strong { color: var(--htl-text-dark); }

.how-to-loan-page .htl-monthly-hint {
  text-align: center;
  color: var(--htl-blue-light);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.5rem;
}

@media (max-width: 1100px) {
  .how-to-loan-page .hero { margin-top: calc(120px + 3.5rem); }
  .how-to-loan-page .hero-inner {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .how-to-loan-page .hero-calc { width: 100%; max-width: 400px; margin: 0 auto; }
  .how-to-loan-page .hero-character {
    justify-content: center;
    order: 3;
    margin-top: 0.5rem;
  }
  .how-to-loan-page .hero-character-img {
    max-height: min(50vh, 460px);
  }
  .how-to-loan-page .conditions-grid { grid-template-columns: 1fr 1fr; }
  .how-to-loan-page .howto-inner { flex-direction: column; }
  .how-to-loan-page .howto-calc { width: 100%; flex: unset; max-width: 100%; }
}

@media (max-width: 600px) {
  .how-to-loan-page .hero-text h1 { font-size: 2rem; }
  .how-to-loan-page .conditions-grid { grid-template-columns: 1fr; }
  .how-to-loan-page .checks-row { flex-direction: column; align-items: stretch; }
  .how-to-loan-page .hero-character-img { max-height: 380px; }
  .how-to-loan-page .btn-apply-big {
    display: flex;
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .how-to-loan-page .calc-box { padding: 1.5rem 1rem; }
  .how-to-loan-page .slider-val { font-size: 1.45rem; word-break: break-word; }
  .how-to-loan-page .steps-list li {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .how-to-loan-page .step-num {
    margin-inline-end: 0;
    margin-bottom: 0.35rem;
    text-align: start;
    min-width: 0;
    font-size: clamp(2.5rem, 12vw, 5rem);
  }
  .how-to-loan-page .trust-item {
    flex: 1 1 100%;
    min-width: 0;
  }
}
