/* Inter auto-hébergée (police variable, graisses 100 à 900) — pas d'appel aux serveurs Google (RGPD) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #14181f;
  --ink-soft: #4b5563;
  --bg: #f7f8fa;
  --card: #ffffff;
  --accent: #CC3366;
  --accent-dark: #a82652;
  --line: #e5e8ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 24, 31, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 110px; /* place pour la barre d'estimation */
}

/* ---------- Topbar ---------- */
.topbar { border-bottom: 1px solid var(--line); background: var(--card); }
.topbar-inner {
  max-width: 760px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.brand { font-weight: 800; letter-spacing: 0.04em; font-size: 15px; }
.brand em { font-style: normal; color: var(--accent); }
.topbar-note { font-size: 13px; color: var(--ink-soft); }

/* ---------- Écrans ---------- */
.screen { display: none; flex: 1; }
.screen.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Intro ---------- */
.intro { max-width: 640px; margin: 0 auto; padding: 72px 20px 40px; text-align: center; }
.intro h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.intro-sub { font-size: 17px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 32px; }
.intro-note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

/* ---------- Boutons ---------- */
.btn {
  font-family: inherit; font-size: 16px; font-weight: 600;
  border: none; border-radius: 999px; padding: 14px 32px; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(204, 51, 102, 0.35); }
.btn-primary:hover:not(:disabled) { background: var(--accent-dark); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); }

/* ---------- Funnel ---------- */
.progress-wrap { max-width: 640px; margin: 32px auto 0; padding: 0 20px; display: flex; align-items: center; gap: 14px; }
.progress-bar { flex: 1; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 0.35s ease; }
.progress-label { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }

.question-zone { max-width: 640px; margin: 0 auto; padding: 36px 20px 8px; }
.q-title { font-size: clamp(22px, 4vw, 30px); font-weight: 700; margin-bottom: 8px; }
.q-subtitle { color: var(--ink-soft); font-size: 15px; margin-bottom: 26px; }

.options { display: grid; gap: 12px; }
.option {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer; text-align: left; width: 100%;
  font-family: inherit; font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.option:hover { border-color: #c9ced9; transform: translateY(-1px); }
.option.selected { border-color: var(--accent); box-shadow: 0 4px 14px rgba(204, 51, 102, 0.15); }
.option-check {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); display: grid; place-items: center;
  font-size: 12px; color: #fff; transition: all 0.15s ease;
}
.option.multi .option-check { border-radius: 6px; }
.option.selected .option-check { background: var(--accent); border-color: var(--accent); }
.option-text strong { display: block; font-weight: 600; }
.option-text span { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }

.funnel-nav { max-width: 640px; margin: 0 auto; padding: 24px 20px 40px; display: flex; justify-content: space-between; }

/* ---------- Estimation live ---------- */
.estimate {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: 12px 26px; display: none; flex-direction: column; align-items: center; gap: 1px;
  box-shadow: 0 12px 30px rgba(20, 24, 31, 0.35); z-index: 50; min-width: 300px; text-align: center;
}
.estimate.visible { display: flex; animation: slideUp 0.4s ease; }
@keyframes slideUp { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
.estimate-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.65; }
.estimate-value { font-size: 20px; font-weight: 800; transition: opacity 0.2s ease; }
.estimate-value.bump { animation: bump 0.45s ease; }
@keyframes bump { 30% { transform: scale(1.08); color: #ff8fb3; } }
.estimate-note { font-size: 11.5px; opacity: 0.65; }

/* ---------- Résultat ---------- */
.result { max-width: 720px; margin: 0 auto; padding: 48px 20px 60px; }
.result-eyebrow { text-align: center; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.result h2 { text-align: center; font-size: clamp(26px, 5vw, 38px); font-weight: 800; margin-bottom: 6px; }
.result-label { text-align: center; color: var(--ink-soft); font-size: 16px; margin-bottom: 18px; }
.result-price { text-align: center; font-size: clamp(24px, 4vw, 32px); font-weight: 800; color: var(--accent); margin-bottom: 18px; }
.result-message {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 16px 20px; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 28px;
}
.result-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 20px; }
.result-card h3 { font-size: 17px; margin-bottom: 14px; }
.result-card ul { list-style: none; display: grid; gap: 10px; }
.result-card li { padding-left: 28px; position: relative; font-size: 15px; color: var(--ink-soft); }
.result-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.result-upsell { font-size: 14.5px; color: var(--ink-soft); background: #fdf2f6; border-radius: 10px; padding: 14px 18px; margin-bottom: 28px; }
.result-cta { text-align: center; margin-bottom: 34px; }
.result-cta .btn { font-size: 17px; padding: 16px 40px; text-decoration: none; display: inline-block; }
.result-cta p { margin-top: 10px; font-size: 13px; color: var(--ink-soft); }

/* ---------- Formulaire lead ---------- */
.lead-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.lead-form h3 { font-size: 17px; margin-bottom: 6px; }
.lead-form > p { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.lead-fields { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.lead-fields input {
  font-family: inherit; font-size: 15px; padding: 13px 16px;
  border: 2px solid var(--line); border-radius: 10px; width: 100%;
  transition: border-color 0.15s ease;
}
.lead-fields input:focus { outline: none; border-color: var(--accent); }
.lead-fields .full { grid-column: 1 / -1; }
.lead-form .btn { margin-top: 16px; width: 100%; }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent); }
.lead-status { margin-top: 12px; font-size: 14px; text-align: center; }
.lead-status.ok { color: #15803d; }
.lead-status.err { color: #b91c1c; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 26px 20px; font-size: 13px; color: var(--ink-soft); }
.footer a { color: var(--accent); text-decoration: none; }

@media (max-width: 560px) {
  .lead-fields { grid-template-columns: 1fr; }
  .topbar-note { display: none; }
  .estimate { min-width: 0; width: calc(100% - 32px); }
}
