/**
 * Bensaid Lead-gen — modal de capture lead
 * Identité Quiet Luxury : ivoire / encre / bronze, Cormorant + Inter
 */

/* ─── Trigger zone (post-calcul) ─── */
.ba-leadgen-zone {
  margin: 32px 0 8px;
  padding: 24px;
  background: rgba(243, 239, 230, 0.5);
  border: 1px solid rgba(139, 111, 71, 0.18);
  border-radius: 6px;
  font-family: 'Inter', system-ui, sans-serif;
}

.ba-leadgen-zone-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: #0a0a0a;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.ba-leadgen-zone-lede {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(10, 10, 10, 0.72);
  margin: 0 0 18px;
}

.ba-leadgen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ba-leadgen-btn {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 4px;
  border: 1px solid #0a0a0a;
  background: #0a0a0a;
  color: #fafaf9;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}
.ba-leadgen-btn:hover { background: #2a2a2a; transform: translateY(-1px); }
.ba-leadgen-btn--ghost { background: transparent; color: #0a0a0a; }
.ba-leadgen-btn--ghost:hover { background: rgba(10,10,10,0.05); }
.ba-leadgen-btn .ba-arrow { font-size: 14px; line-height: 1; }

/* ─── Banner mis en avant si seuil de complexité franchi (sobre) ─── */
.ba-leadgen-premium-banner {
  display: none;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(10,10,10,0.10);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(10,10,10,0.72);
  font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
}
.ba-leadgen-premium-banner.is-active { display: block; }

/* ─── Modal overlay ─── */
.ba-leadgen-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 220ms ease;
  padding: 20px;
}
.ba-leadgen-overlay.is-open { display: flex; opacity: 1; }

.ba-leadgen-modal {
  background: #fafaf9;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: 36px 36px 32px;
  font-family: 'Inter', system-ui, sans-serif;
  position: relative;
  transform: translateY(12px);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ba-leadgen-overlay.is-open .ba-leadgen-modal { transform: translateY(0); }

.ba-leadgen-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  color: rgba(10,10,10,0.55);
  line-height: 1;
}
.ba-leadgen-close:hover { color: #0a0a0a; }

.ba-leadgen-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b6f47;
  margin-bottom: 8px;
  font-weight: 500;
}
.ba-leadgen-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: #0a0a0a;
  margin: 0 0 12px;
}
.ba-leadgen-lede {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(10,10,10,0.72);
  margin: 0 0 24px;
}

.ba-leadgen-field { margin-bottom: 14px; }
.ba-leadgen-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.7);
  margin-bottom: 6px;
  font-weight: 500;
}
.ba-leadgen-field input,
.ba-leadgen-field textarea,
.ba-leadgen-field select {
  width: 100%;
  padding: 11px 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  border: 1px solid rgba(10,10,10,0.22);
  border-radius: 4px;
  background: #fff;
  color: #0a0a0a;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  box-sizing: border-box;
}
.ba-leadgen-field input:focus,
.ba-leadgen-field textarea:focus,
.ba-leadgen-field select:focus {
  outline: none;
  border-color: #8b6f47;
  box-shadow: 0 0 0 3px rgba(139,111,71,0.12);
}
.ba-leadgen-field textarea { min-height: 80px; resize: vertical; }
.ba-leadgen-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .ba-leadgen-row { grid-template-columns: 1fr; }
  .ba-leadgen-modal { padding: 28px 22px; }
  .ba-leadgen-title { font-size: 22px; }
}

.ba-leadgen-rgpd {
  font-size: 11px;
  line-height: 1.45;
  color: rgba(10,10,10,0.55);
  margin: 8px 0 18px;
}
.ba-leadgen-rgpd a { color: #6b1f24; text-decoration: underline; }

.ba-leadgen-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  padding: 14px 22px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  border: 1px solid #0a0a0a;
  background: #0a0a0a;
  color: #fafaf9;
  cursor: pointer;
  transition: background 160ms ease;
}
.ba-leadgen-submit:hover { background: #2a2a2a; }
.ba-leadgen-submit:disabled {
  background: rgba(10,10,10,0.4);
  cursor: not-allowed;
}

.ba-leadgen-state {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
}
.ba-leadgen-state.is-success {
  display: block;
  background: rgba(139,111,71,0.10);
  border-left: 3px solid #8b6f47;
  color: #0a0a0a;
}
.ba-leadgen-state.is-error {
  display: block;
  background: rgba(107,31,36,0.08);
  border-left: 3px solid #6b1f24;
  color: #6b1f24;
}

/* ─── Honeypot anti-spam ─── */
.ba-leadgen-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ─── Verdict (arbres de décision diagnostic / quiz) ─── */
.ba-arbre-form-large {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 24px 0;
}
.ba-arbre-form-large .ba-arbre-question {
  background: #fafaf9;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-left: 3px solid #8b6f47;
  border-radius: 4px;
  padding: 18px 22px;
}
.ba-arbre-form-large .ba-arbre-legend {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b6f47;
  font-weight: 600;
  padding: 0;
  margin-bottom: 8px;
}
.ba-arbre-form-large .ba-arbre-q {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.4;
  color: #0a0a0a;
  margin: 0 0 6px;
}
.ba-arbre-form-large .ba-arbre-help {
  font-size: 12px;
  color: rgba(10, 10, 10, 0.65);
  line-height: 1.55;
  margin: 6px 0 12px;
}
.ba-arbre-form-large .ba-arbre-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #0a0a0a;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 4px;
}
.ba-arbre-form-large .ba-arbre-option:hover { background: rgba(139, 111, 71, 0.06); }
.ba-arbre-form-large .ba-arbre-option input[type="radio"] {
  margin: 4px 0 0;
  flex-shrink: 0;
  accent-color: #8b6f47;
}

.ba-arbre-incomplet {
  margin: 24px 0;
  padding: 14px 18px;
  background: rgba(243, 239, 230, 0.4);
  border-left: 3px solid rgba(10, 10, 10, 0.15);
  font-size: 13px;
  color: rgba(10, 10, 10, 0.65);
  font-style: italic;
}

.ba-arbre-verdict {
  margin: 32px 0 8px;
  padding: 24px 28px;
  border-radius: 6px;
  border-left-width: 4px;
  border-left-style: solid;
  font-family: 'Inter', system-ui, sans-serif;
  background: #fafaf9;
}
.ba-arbre-verdict--safe { border-left-color: #6b8e6b; background: rgba(107, 142, 107, 0.06); }
.ba-arbre-verdict--standard { border-left-color: #8b6f47; background: rgba(139, 111, 71, 0.06); }
.ba-arbre-verdict--warning { border-left-color: #c9a961; background: rgba(201, 169, 97, 0.10); }
.ba-arbre-verdict--critique { border-left-color: #6b1f24; background: rgba(107, 31, 36, 0.06); }
.ba-arbre-verdict--assujetti { border-left-color: #6b1f24; background: rgba(107, 31, 36, 0.06); }

.ba-arbre-verdict-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.6);
  margin-bottom: 8px;
  font-weight: 600;
}
.ba-arbre-verdict-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #0a0a0a;
  margin: 0 0 12px;
}
.ba-arbre-verdict-body {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(10, 10, 10, 0.85);
  margin: 0;
}
.ba-arbre-verdict-body strong { color: #0a0a0a; }

/* ─── Sim cards complémentaires (dt/dd) pour exit-tax ─── */
.ba-sim-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  color: #0a0a0a;
}
.ba-sim-card-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(10, 10, 10, 0.6);
  font-style: italic;
}
.ba-sim-card-rows {
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid rgba(10, 10, 10, 0.06);
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ba-sim-row-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(10, 10, 10, 0.7);
  margin: 0;
}
.ba-sim-row-line dt { font-weight: 400; }
.ba-sim-row-line dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; color: #0a0a0a; }
.ba-sim-card-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 6px;
  font-size: 13px;
  color: rgba(10, 10, 10, 0.7);
}
.ba-sim-card-total strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: #0a0a0a;
  font-variant-numeric: tabular-nums;
}
.ba-sim-checkbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(10, 10, 10, 0.85);
}
.ba-sim-checkbox input[type="checkbox"] { margin: 4px 0 0; accent-color: #8b6f47; }
