/* ============================================================
   CALCULATEUR DE PRIMES VINCYMMO — Style inspiré de cleys.be
   ============================================================ */

:root {
  --calc-orange: #e87722;
  --calc-orange-dark: #c25e0f;
  --calc-orange-light: #fff4ec;
  --calc-text: #1a1a2e;
  --calc-text-soft: #5a6072;
  --calc-bg: #fafbfc;
  --calc-card: #ffffff;
  --calc-card-border: #e6e8ee;
  --calc-card-hover: #fff4ec;
  --calc-success: #2ecc71;
  --calc-shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --calc-shadow-strong: 0 6px 16px rgba(232,119,34,.18), 0 18px 40px rgba(0,0,0,.08);
}

/* ========== ALIGNEMENT NAV (1 seule ligne) ========== */
/* Forcer chaque lien nav sur une seule ligne */
.nav a {
  white-space: nowrap;
}
/* Réduire le gap quand le bouton CALCULATEUR est présent */
@media (min-width: 880px) and (max-width: 1199px) {
  .nav {
    gap: 18px !important;
  }
  .nav a {
    font-size: 13px !important;
  }
}
@media (min-width: 1200px) {
  .nav {
    gap: 26px !important;
  }
}

/* Bouton orange dans la nav (style cleys) */
.nav-cta-calc {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--calc-orange);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
  box-shadow: 0 4px 12px rgba(232,119,34,.35);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1;
}
@media (min-width: 880px) {
  .nav-cta-calc { display: inline-flex !important; }
}
.nav-cta-calc:hover {
  background: var(--calc-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232,119,34,.45);
}
.nav-cta-calc svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ============================================================
   PAGE CALCULATEUR
   ============================================================ */
/* On limite le fond clair uniquement à la zone calculateur, pas au footer */
body.calc-page .calc-wrap {
  background: var(--calc-bg);
  color: var(--calc-text);
  border-radius: 24px;
  margin-top: 0;
}

.calc-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  background: var(--calc-bg);
}
/* Le main qui contient le calc-wrap doit aussi avoir le fond clair */
body.calc-page main {
  background: var(--calc-bg);
}

.calc-hero {
  text-align: center;
  margin-bottom: 32px;
}
.calc-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 12px;
  color: var(--calc-text);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.calc-hero p {
  color: var(--calc-text-soft);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto;
}
.calc-hero .badge {
  display: inline-block;
  background: var(--calc-orange-light);
  color: var(--calc-orange-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
}

/* Layout : sidebar gauche + question droite */
.calc-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
}

/* SIDEBAR — progression style cleys */
.calc-sidebar {
  background: var(--calc-card);
  border: 1px solid var(--calc-card-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--calc-shadow);
  position: sticky;
  top: 100px;
}
.calc-sidebar h3 {
  margin: 0 0 18px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--calc-text-soft);
}
.calc-steps { list-style: none; padding: 0; margin: 0; }
.calc-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f1f4;
  position: relative;
}
.calc-steps li:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef0f5;
  color: var(--calc-text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  transition: all .2s;
}
.calc-steps li.active .step-num {
  background: var(--calc-orange);
  color: #fff;
  box-shadow: 0 0 0 4px var(--calc-orange-light);
}
.calc-steps li.done .step-num {
  background: var(--calc-success);
  color: #fff;
}
.calc-steps li.done .step-num::before {
  content: "✓";
  font-size: 14px;
}
.calc-steps li.done .step-num span { display: none; }
.step-info { flex: 1; min-width: 0; }
.step-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--calc-text);
  line-height: 1.3;
}
.step-value {
  display: none;
  font-size: 12px;
  color: var(--calc-orange-dark);
  font-weight: 600;
  margin-top: 2px;
}
.calc-steps li.done .step-value { display: block; }

/* Résultat temps réel */
.calc-result-live {
  margin-top: 20px;
  padding: 18px;
  background: linear-gradient(135deg, var(--calc-orange) 0%, var(--calc-orange-dark) 100%);
  border-radius: 12px;
  color: #fff;
  text-align: center;
  display: none;
}
.calc-result-live.show { display: block; }
.calc-result-live .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .9;
  margin-bottom: 4px;
}
.calc-result-live .price {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.calc-result-live .price small {
  font-size: 13px;
  font-weight: 600;
  opacity: .8;
}

/* MAIN — Question card */
.calc-main {
  background: var(--calc-card);
  border: 1px solid var(--calc-card-border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--calc-shadow);
  min-height: 520px;
}
@media (max-width: 600px) {
  .calc-main { padding: 24px; }
}

.calc-step-content { display: none; animation: fadeIn .25s ease; }
.calc-step-content.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.calc-question-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--calc-orange);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.calc-question {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--calc-text);
  line-height: 1.25;
  margin: 0 0 8px;
}
.calc-hint {
  color: var(--calc-text-soft);
  font-size: 15px;
  margin-bottom: 28px;
}

/* Options cards (radio style cleys) */
.calc-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.calc-option {
  position: relative;
  cursor: pointer;
}
.calc-option input { position: absolute; opacity: 0; pointer-events: none; }
.calc-option-card {
  border: 2px solid var(--calc-card-border);
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: all .15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 100%;
}
.calc-option-card .icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--calc-orange-light);
  border-radius: 12px;
  color: var(--calc-orange);
}
.calc-option-card .icon svg { width: 28px; height: 28px; }
.calc-option-card .title {
  font-weight: 700;
  font-size: 15px;
  color: var(--calc-text);
  line-height: 1.3;
}
.calc-option-card .sub {
  font-size: 12px;
  color: var(--calc-text-soft);
}
.calc-option:hover .calc-option-card {
  border-color: var(--calc-orange);
  background: var(--calc-card-hover);
}
.calc-option input:checked + .calc-option-card {
  border-color: var(--calc-orange);
  background: var(--calc-orange);
  color: #fff;
  box-shadow: var(--calc-shadow-strong);
}
.calc-option input:checked + .calc-option-card .title,
.calc-option input:checked + .calc-option-card .sub { color: #fff; }
.calc-option input:checked + .calc-option-card .icon {
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* Slider */
.calc-slider-wrap {
  background: #f7f8fb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.calc-slider-wrap label {
  display: block;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--calc-text);
  font-size: 15px;
}
.calc-slider-row { display: flex; align-items: center; gap: 16px; }
.calc-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  background: #e0e3eb;
  border-radius: 999px;
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  background: var(--calc-orange);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(232,119,34,.5);
}
.calc-slider::-moz-range-thumb {
  width: 24px; height: 24px;
  background: var(--calc-orange);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(232,119,34,.5);
}
.calc-slider-value {
  min-width: 90px;
  text-align: center;
  background: var(--calc-orange);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
}

/* Navigation buttons */
.calc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eef0f5;
}
.btn-prev {
  background: transparent;
  border: none;
  color: var(--calc-text-soft);
  font-weight: 600;
  cursor: pointer;
  padding: 12px 16px;
  text-decoration: underline;
  font-size: 14px;
}
.btn-prev:hover { color: var(--calc-orange); }
.btn-next {
  background: var(--calc-orange);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .15s;
  box-shadow: 0 4px 12px rgba(232,119,34,.3);
}
.btn-next:hover {
  background: var(--calc-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232,119,34,.45);
}
.btn-next:disabled {
  background: #c8ccd6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* RESULT */
.calc-result-detail {
  background: linear-gradient(135deg, #fff4ec 0%, #fff 100%);
  border: 2px solid var(--calc-orange);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 28px;
}
.calc-result-detail h3 {
  margin: 0 0 8px;
  color: var(--calc-orange-dark);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.calc-result-detail .service-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--calc-text);
  margin-bottom: 18px;
}
.calc-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px dashed #e0e3eb;
}
.calc-line:last-of-type { border-bottom: none; }
.calc-line.deduction { color: var(--calc-success); font-weight: 600; }
.calc-line .label { color: var(--calc-text-soft); }
.calc-line .val { font-weight: 700; color: var(--calc-text); }
.calc-line.deduction .val { color: var(--calc-success); }
.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 6px;
  margin-top: 12px;
  border-top: 2px solid var(--calc-orange);
  border-bottom: none !important;
}
.calc-total .label {
  font-size: 16px;
  font-weight: 700;
  color: var(--calc-text);
}
.calc-total .val {
  font-size: 28px;
  font-weight: 800;
  color: var(--calc-orange);
  letter-spacing: -.02em;
}
.calc-total .val small {
  font-size: 14px;
  color: var(--calc-text-soft);
  font-weight: 500;
  display: block;
  text-align: right;
}

.calc-disclaimer {
  background: #fff8e6;
  border-left: 4px solid #f7b71d;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 13px;
  color: #6b5a13;
  margin: 18px 0;
  line-height: 1.5;
}
.calc-disclaimer strong { color: #5a4a08; }

/* Lead form */
.calc-lead-form { margin-top: 20px; }
.calc-lead-form h3 {
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--calc-text);
}
.calc-lead-form .hint-form {
  color: var(--calc-text-soft);
  font-size: 15px;
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-field { display: flex; flex-direction: column; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--calc-text);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  border: 1px solid var(--calc-card-border);
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--calc-text);
  transition: border-color .15s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--calc-orange);
  box-shadow: 0 0 0 3px var(--calc-orange-light);
}
.form-field textarea { min-height: 90px; resize: vertical; }
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 20px;
  font-size: 13px;
  color: var(--calc-text-soft);
}
.checkbox-row input { margin-top: 3px; }
.btn-submit {
  width: 100%;
  background: var(--calc-orange);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(232,119,34,.35);
  transition: all .15s;
}
.btn-submit:hover {
  background: var(--calc-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(232,119,34,.45);
}

/* Success state */
.calc-success {
  text-align: center;
  padding: 60px 20px;
}
.calc-success .check {
  width: 80px; height: 80px;
  background: var(--calc-success);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 20px;
}
.calc-success h2 {
  font-size: 28px;
  margin: 0 0 12px;
}
.calc-success p {
  color: var(--calc-text-soft);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 24px;
}

/* Honeypot */
.hp-field { position: absolute; left: -10000px; opacity: 0; pointer-events: none; }
