/**
 * Page Financement / simulateur leasing Cubner.
 */

body.cubner-financement-page {
  margin: 0;
  overflow-x: hidden;
  background: var(--cubner-bg-page, #fff);
  font-family: var(--cubner-font-family, "Switzer", Arial, sans-serif);
  color: var(--cubner-text-primary, #1c1c1b);
  --e-global-color-primary: var(--cubner-color-brand-blue, #00518c);
}

body.cubner-financement-page .site,
body.cubner-financement-page #page,
body.cubner-financement-page .site-main,
body.cubner-financement-page #content,
body.cubner-financement-page .page-content,
body.cubner-financement-page .page-header {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.cubner-financement,
.cubner-financement * {
  box-sizing: border-box;
}

.cubner-financement {
  width: 100%;
  background: var(--cubner-bg-page, #fff);
}

.cubner-financement__inner {
  width: min(100% - 48px, var(--cubner-container-max, 1400px));
  max-width: 1400px;
  margin-inline: auto;
  padding-top: 24px;
  padding-bottom: 96px;
}

.cubner-financement__title,
.cubner-financement__title .elementor-heading-title {
  margin: 0 0 16px;
  font-family: var(--cubner-font-family, "Switzer", Arial, sans-serif);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cubner-color-brand-blue, #00518c);
}

.cubner-financement__intro p {
  margin: 0 0 32px;
  font-size: 18px;
  line-height: 1.5;
  max-width: 52rem;
}

/* Priorité sur post-120541.css (420px / 360px tablette) */
body.cubner-financement-page .elementor-120541 .elementor-element.cubner-financement__hero-image {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 32px;
  align-self: center;
  text-align: center;
}

body.cubner-financement-page
  .elementor-120541
  .elementor-element.cubner-financement__hero-image
  .elementor-widget-container {
  width: 100%;
  text-align: center;
}

body.cubner-financement-page .elementor-120541 .elementor-element.cubner-financement__hero-image img {
  width: 560px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-inline: auto;
  border-radius: 8px;
}

/* Elementor `.e-con .elementor-widget` impose margin-block-end: 0 — un seul écart simulateur → texte */
body.cubner-financement-page .e-con .elementor-widget.cubner-financement__simulator {
  margin-block-end: 48px;
  margin-bottom: 48px;
}

body.cubner-financement-page .e-con .elementor-widget.cubner-financement__body {
  margin-block-start: 0;
  margin-top: 0;
}

.cubner-financement__body :where(p, h2, h3, ul, ol, blockquote) {
  margin: 0 0 16px;
}

.cubner-financement__body h2 {
  scroll-margin-top: 180px;
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--cubner-color-brand-blue, #00518c);
}

.cubner-financement__body .elementor-text-editor h2 {
  color: var(--cubner-color-brand-blue, #00518c);
}

.cubner-financement__body h3 {
  margin-top: 24px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cubner-text-primary, #1c1c1b);
}

.cubner-financement__body ul {
  padding-left: 1.25rem;
}

.cubner-financement__body blockquote {
  margin-top: 32px;
  padding: 20px 24px;
  border-left: 4px solid var(--cubner-brand-orange, #f49b27);
  background: var(--cubner-blue-050, #eaf6ff);
  border-radius: 0 8px 8px 0;
}

.cubner-financement__faq-title,
.cubner-financement__faq-title .elementor-heading-title {
  color: var(--cubner-color-brand-blue, #00518c);
}

.cubner-financement__faq-title {
  margin-top: 56px !important;
  margin-bottom: 24px !important;
}

.cubner-financement__faq .elementor-accordion-item {
  border-color: var(--cubner-neutral-250, #e0e8ed) !important;
}

.cubner-financement__faq .elementor-accordion-title {
  font-weight: 600;
  color: var(--cubner-color-brand-blue, #00518c);
}

.cubner-financement__faq .elementor-accordion-icon,
.cubner-financement__faq .elementor-accordion-icon svg {
  color: var(--cubner-color-brand-blue, #00518c);
  fill: var(--cubner-color-brand-blue, #00518c);
}

.cubner-financement__faq .elementor-active .elementor-accordion-title,
.cubner-financement__faq .elementor-active .elementor-accordion-icon,
.cubner-financement__faq .elementor-active .elementor-accordion-icon svg {
  color: var(--cubner-color-brand-blue, #00518c) !important;
  fill: var(--cubner-color-brand-blue, #00518c) !important;
}

/* Simulateur */
.cubner-leasing-simulator {
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
}

.cubner-leasing-simulator__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.cubner-leasing-simulator__title {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--cubner-text-primary, #1c1c1b);
}

.cubner-leasing-simulator__title-accent {
  color: var(--cubner-brand-orange, #f49b27);
}

.cubner-leasing-simulator__card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(244, 155, 39, 0.12);
  padding: 2rem 1.5rem;
  border: 1px solid var(--cubner-neutral-250, #e0e8ed);
}

.cubner-leasing-simulator__field {
  margin-bottom: 1.5rem;
}

.cubner-leasing-simulator__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cubner-leasing-simulator__input-wrap {
  position: relative;
}

.cubner-leasing-simulator__input {
  width: 100%;
  height: 3rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 0 2.5rem 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: inherit;
}

.cubner-leasing-simulator__input:focus {
  outline: none;
  border-color: var(--cubner-brand-orange, #f49b27);
  box-shadow: 0 0 0 3px rgba(244, 155, 39, 0.15);
}

.cubner-leasing-simulator__currency {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-weight: 600;
}

.cubner-leasing-simulator__table-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.625rem;
}

.cubner-leasing-simulator__rows {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.5rem;
}

.cubner-leasing-simulator__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #f9fafb;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
  /* Hello reset : button { color:#c36 } */
  color: var(--cubner-text-primary, #1c1c1b);
}

.cubner-leasing-simulator__row:hover {
  background: #fff4e5;
}

.cubner-leasing-simulator__row.is-active {
  background: #fff7ed;
  border-color: var(--cubner-brand-orange, #f49b27);
}

.cubner-leasing-simulator__row-dur {
  font-size: 0.9375rem;
  font-weight: 700;
}

.cubner-leasing-simulator__row.is-active .cubner-leasing-simulator__row-dur {
  color: var(--cubner-brand-orange, #f49b27);
}

.cubner-leasing-simulator__row-loyer {
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: right;
  color: var(--cubner-text-primary, #1c1c1b);
}

.cubner-leasing-simulator__row.is-active .cubner-leasing-simulator__row-loyer {
  color: var(--cubner-brand-orange, #f49b27);
  font-size: 1.0625rem;
}

.cubner-leasing-simulator__row-total {
  display: block;
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 400;
}

.cubner-leasing-simulator__summary {
  background: #f9fafb;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cubner-leasing-simulator__summary-label {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.cubner-leasing-simulator__summary-loyer {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--cubner-brand-orange, #f49b27);
  line-height: 1.1;
}

.cubner-leasing-simulator__summary-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.cubner-leasing-simulator__detail-label {
  display: block;
  color: #6b7280;
  font-size: 0.75rem;
}

.cubner-leasing-simulator__detail-value {
  font-weight: 700;
}

.cubner-leasing-simulator__disclaimer {
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #4b5563;
}

.cubner-leasing-simulator__disclaimer-title {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--cubner-text-primary, #1c1c1b);
}

.cubner-leasing-simulator__disclaimer-list {
  margin: 0;
  padding-left: 1.1rem;
}

.cubner-leasing-simulator__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cubner-leasing-simulator__cta[hidden] {
  display: none !important;
}

.cubner-leasing-simulator__table-section[hidden],
.cubner-leasing-simulator__summary[hidden],
.cubner-leasing-simulator__disclaimer[hidden] {
  display: none !important;
}

.cubner-leasing-simulator__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: var(--cubner-radius-button, 8px);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cubner-leasing-simulator__cta--idle {
  background: var(--cubner-color-blue-050, #eaf6ff);
  color: var(--cubner-color-brand-blue, #00518c);
  border: 1px solid var(--cubner-color-brand-blue, #00518c);
  opacity: 0.65;
  cursor: not-allowed;
}

.cubner-leasing-simulator__cta--active {
  background: var(--cubner-color-brand-orange, #f49b27);
  color: #fff;
  border: 1px solid var(--cubner-color-brand-orange, #f49b27);
}

/* Hello Elementor reset : button:hover { background:#c36 } — neutraliser */
body.cubner-financement-page .cubner-leasing-simulator__cta--idle:hover,
body.cubner-financement-page .cubner-leasing-simulator__cta--idle:focus,
body.cubner-financement-page .cubner-leasing-simulator__cta--idle:focus-visible {
  background-color: var(--cubner-color-blue-050, #eaf6ff);
  color: var(--cubner-color-brand-blue, #00518c);
  border-color: var(--cubner-color-brand-blue, #00518c);
  opacity: 0.85;
}

body.cubner-financement-page .cubner-leasing-simulator__cta--active:hover,
body.cubner-financement-page .cubner-leasing-simulator__cta--active:focus,
body.cubner-financement-page .cubner-leasing-simulator__cta--active:focus-visible {
  background-color: var(--cubner-color-brand-orange, #f49b27);
  color: #fff;
  border-color: var(--cubner-color-brand-orange, #f49b27);
  filter: brightness(0.92);
}

body.cubner-financement-page .cubner-leasing-simulator__row:hover,
body.cubner-financement-page .cubner-leasing-simulator__row:focus,
body.cubner-financement-page .cubner-leasing-simulator__row:focus-visible {
  background-color: #fff4e5;
  color: var(--cubner-text-primary, #1c1c1b);
}

body.cubner-financement-page .cubner-leasing-simulator__row:hover .cubner-leasing-simulator__row-dur,
body.cubner-financement-page .cubner-leasing-simulator__row:hover .cubner-leasing-simulator__row-loyer,
body.cubner-financement-page .cubner-leasing-simulator__row:focus .cubner-leasing-simulator__row-dur,
body.cubner-financement-page .cubner-leasing-simulator__row:focus .cubner-leasing-simulator__row-loyer,
body.cubner-financement-page .cubner-leasing-simulator__row:focus-visible .cubner-leasing-simulator__row-dur,
body.cubner-financement-page .cubner-leasing-simulator__row:focus-visible .cubner-leasing-simulator__row-loyer {
  color: var(--cubner-text-primary, #1c1c1b);
}

body.cubner-financement-page .cubner-leasing-simulator__row.is-active:hover,
body.cubner-financement-page .cubner-leasing-simulator__row.is-active:focus,
body.cubner-financement-page .cubner-leasing-simulator__row.is-active:focus-visible,
body.cubner-financement-page .cubner-leasing-simulator__row.is-active:hover .cubner-leasing-simulator__row-dur,
body.cubner-financement-page .cubner-leasing-simulator__row.is-active:hover .cubner-leasing-simulator__row-loyer,
body.cubner-financement-page .cubner-leasing-simulator__row.is-active:focus .cubner-leasing-simulator__row-dur,
body.cubner-financement-page .cubner-leasing-simulator__row.is-active:focus .cubner-leasing-simulator__row-loyer,
body.cubner-financement-page .cubner-leasing-simulator__row.is-active:focus-visible .cubner-leasing-simulator__row-dur,
body.cubner-financement-page .cubner-leasing-simulator__row.is-active:focus-visible .cubner-leasing-simulator__row-loyer {
  color: var(--cubner-brand-orange, #f49b27);
}

.cubner-leasing-simulator__cta-summary {
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0.95;
  margin-top: 0.25rem;
}

.cubner-leasing-simulator__footnote {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #6b7280;
  text-align: center;
}

.cubner-leasing-simulator__footnote-brand {
  display: block;
  margin-top: 0.25rem;
}

@media (max-width: 767px) {
  .cubner-financement__inner {
    width: min(100% - 32px, 1400px);
    padding-bottom: 64px;
  }

  .cubner-leasing-simulator__card {
    padding: 1.25rem 1rem;
  }

  .cubner-leasing-simulator__summary-loyer {
    font-size: 1.625rem;
  }
}
