/* ============ FLEURANT RÉNOV — Funnel ============ */
:root {
  --navy: #112B4F;
  --navy-deep: #0C2140;
  --cream: #F9F2E4;
  --cream-soft: #FFFAEB;
  --gold: #CC983B;
  --orange: #E56A2E;
  --orange-dark: #C95522;
  --ink: #1A2333;
  --muted: #5A6A80;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(17, 43, 79, .12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .btn { font-family: 'Archivo', 'Inter', sans-serif; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* ---- Topbar ---- */
.topbar {
  padding: 18px 0;
  background: var(--cream);
  border-bottom: 1px solid rgba(17, 43, 79, .08);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; }
.topbar img { height: 62px; width: auto; display: block; }
.topbar .btn { padding: 12px 22px; font-size: 15px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .01em;
  padding: 18px 36px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 8px 24px rgba(229, 106, 46, .35);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(229, 106, 46, .4); }
.btn:active { transform: translateY(0); }
.btn-block { display: block; width: 100%; }

.reassurance {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.reassurance::before { content: "✓"; color: var(--gold); font-weight: 800; }

/* ---- Hero ---- */
.hero { padding: 64px 0 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(204, 152, 59, .12);
  border: 1px solid rgba(204, 152, 59, .35);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .sub {
  font-size: 18.5px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-cta { display: inline-flex; flex-direction: column; align-items: center; }
.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
  border: 6px solid #fff;
}
.hero-photo img { display: block; width: 100%; height: auto; }

/* ---- Section: Qui on est ---- */
.about { background: var(--navy); color: var(--cream); padding: 88px 0; }
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 22px;
  color: #fff;
}
.about h2 span { color: var(--gold); }
.about p { margin-bottom: 16px; font-size: 17px; color: rgba(249, 242, 228, .88); }
.about strong { color: var(--gold); font-weight: 700; }
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .35);
  transform: rotate(-1.5deg);
  border: 6px solid rgba(255, 255, 255, .95);
}
.about-photo img { display: block; width: 100%; height: auto; }
.about-cta { text-align: center; margin-top: 56px; }

/* ---- FAQ ---- */
.faq { padding: 88px 0; }
.faq h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 44px;
}
.faq-item {
  background: #fff;
  border: 1px solid rgba(17, 43, 79, .08);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(17, 43, 79, .05);
}
.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--orange);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; }

/* ---- Final CTA ---- */
.final-cta { padding: 24px 0 96px; text-align: center; }

/* ---- Footer ---- */
footer {
  background: var(--navy-deep);
  color: rgba(249, 242, 228, .55);
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
}
footer .copyright { margin-bottom: 14px; color: rgba(249, 242, 228, .75); }
footer .disclaimer { max-width: 640px; margin: 0 auto; line-height: 1.6; }

/* ---- Form page ---- */
.form-hero { text-align: center; padding: 56px 0 8px; }
.form-hero h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}
.form-hero p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto; }

/* ---- Parcours question par question ---- */
.quiz-head { padding: 34px 0 0; }
.quiz-head h1 {
  font-size: clamp(18px, 2.4vw, 21px);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 18px;
}
.quiz-head h1 span { color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; }

.quiz-bar { height: 6px; border-radius: 999px; background: rgba(17, 43, 79, .1); overflow: hidden; }
.quiz-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

.quiz-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin-top: 10px;
}
.quiz-back {
  background: none;
  border: none;
  padding: 6px 0;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.quiz-back:hover { color: var(--orange); }
.quiz-back[hidden] { display: none; }
.quiz-count { margin-left: auto; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.quiz-count b { color: var(--navy); font-size: 16.5px; }

.quiz-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 40px;
  margin: 22px auto 80px;
}

.step { display: none; }
.step.is-active { display: block; animation: stepIn .3s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.step::before {
  content: attr(data-group);
  display: block;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.step-q {
  font-size: clamp(21px, 2.9vw, 29px);
  line-height: 1.25;
  font-weight: 800;
  color: var(--navy);
}
.step-help { color: var(--muted); font-size: 15.5px; margin-top: 8px; }
.step .choices, .step textarea, .step .grid-2 { margin-top: 24px; }
.step .choice { padding: 16px 18px; font-size: 16px; }
.step .field { margin-bottom: 0; }
.step > .grid-2 + .field, .step > .field + .field { margin-top: 16px; }
.step-actions { margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  .step.is-active { animation: none; }
  .quiz-bar span { transition: none; }
}

.field { margin-bottom: 22px; }
.field > label.q {
  display: block;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--navy);
  margin-bottom: 10px;
}
.field .hint { font-weight: 400; color: var(--muted); font-size: 13.5px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 1.5px solid rgba(17, 43, 79, .18);
  border-radius: 12px;
  background: var(--cream-soft);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(229, 106, 46, .15);
}
textarea { resize: vertical; min-height: 110px; }

.choices { display: flex; flex-direction: column; gap: 10px; }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1.5px solid rgba(17, 43, 79, .15);
  border-radius: 12px;
  background: var(--cream-soft);
  cursor: pointer;
  font-size: 15.5px;
  transition: border-color .12s ease, background .12s ease;
}
.choice:hover { border-color: rgba(229, 106, 46, .5); }
.choice input { accent-color: var(--orange); width: 18px; height: 18px; flex-shrink: 0; }
.choice:has(input:focus-visible) {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(229, 106, 46, .15);
}
.choice:has(input:checked) {
  border-color: var(--orange);
  background: rgba(229, 106, 46, .07);
  font-weight: 600;
}

.form-error {
  display: none;
  background: rgba(200, 60, 40, .08);
  border: 1px solid rgba(200, 60, 40, .3);
  color: #A33322;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 15px;
}

.submit-zone { margin-top: 32px; text-align: center; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---- Question facultative ---- */
.step-skip {
  background: none; border: 0; padding: 4px 0;
  color: var(--muted); font: inherit; font-size: 15px;
  text-decoration: underline; cursor: pointer;
}

/* ---- Merci page ---- */
.merci { text-align: center; padding: 72px 0 96px; }
.merci .check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  box-shadow: 0 8px 24px rgba(229, 106, 46, .35);
}
.merci h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.merci p { color: var(--muted); font-size: 17.5px; max-width: 560px; margin: 0 auto 12px; }
.merci-photo {
  max-width: 420px;
  margin: 44px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  transform: rotate(-1.5deg);
}
.merci-photo img { display: block; width: 100%; height: auto; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-grid .about-photo { order: -1; max-width: 420px; margin: 0 auto; }
  .hero-photo { max-width: 420px; margin: 0 auto; }
  .quiz-card { padding: 26px 20px; }
  .quiz-head { padding-top: 22px; }
  .grid-2 { grid-template-columns: 1fr; }
  .topbar img { height: 48px; }
  .topbar .btn { display: none; }
}

/* Page de sortie (profil non retenu) */
.sortie .btn { margin: 12px 0; }
.sortie h1 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.25; max-width: 700px; margin-inline: auto; }
