@font-face {
  font-family: 'Outfit';
  src: url('fonts/outfit-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #0A1A47;
  --orange: #FF8A5C;
  --blue: #2563EB;
  --bg: #F7F8FC;
  --white: #FFFFFF;
  --soft: #F3F5FC;
  --line: #E9EDF8;
  --muted: #4B587B;
  --on-navy: #DCE4FA;
  --on-navy-soft: #C6D2F5;
  --gold: #FFC46B;
  --gold-dark: #B4650A;
  --link: #1D4ED8;
  --error: #B42318;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--navy);
  background: var(--bg);
}
h1, h2, h3, p { margin: 0; }
a { color: var(--link); }
a:hover { color: #1E3A8A; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.hero :focus-visible:not(.quiz *), .parents :focus-visible, .final :focus-visible { outline-color: var(--gold); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.wrap-narrow { width: 100%; max-width: 840px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Bandeaux */
.test-banner { display: none; background: var(--navy); color: var(--white); text-align: center; font-size: 14px; padding: 6px 16px; }
.is-test .test-banner { display: block; }
.urgency { background: var(--orange); color: var(--navy); padding: 10px 20px; text-align: center; font-weight: 700; font-size: 16px; }

/* Haut de page */
.hero { background: var(--navy); color: var(--white); }
.hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-top: 20px; }
.logo { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.logo span { color: var(--orange); }
.hero-link { color: var(--white); font-weight: 600; font-size: 15px; }
.hero-link:hover { color: var(--on-navy); }
.hero-main { display: flex; flex-wrap: wrap; gap: 44px; align-items: flex-start; padding-top: 44px; padding-bottom: 130px; }
.hero-text { flex: 1 1 440px; min-width: 0; padding-top: 10px; }
.hero-place { margin-bottom: 16px; font-weight: 500; font-size: 18px; color: var(--on-navy-soft); }
h1 { font-size: clamp(48px, 6.6vw, 92px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 800; text-wrap: balance; }
h1 span { color: var(--orange); }
.hero-sub { margin-top: 22px; font-size: 20px; color: var(--on-navy); max-width: 500px; }
.hero-rating { margin-top: 22px; font-weight: 600; }
.stars { color: var(--gold); }
.stars-dark { color: var(--gold-dark); }
.hero-urgency { margin-top: 10px; font-weight: 600; color: var(--gold); max-width: 500px; }

/* Quiz */
.quiz { flex: 1 1 400px; max-width: 480px; min-width: 0; background: var(--white); color: var(--navy); border-radius: 28px; padding: 28px; scroll-margin-top: 16px; }
.progress { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.progress-track { flex: 1; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 8px; width: 5%; background: var(--orange); border-radius: 4px; transition: width 450ms ease-out; }
.progress-label { font-size: 15px; font-weight: 700; white-space: nowrap; }
.quiz-q { margin-bottom: 16px; font-size: 28px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; outline: none; }
.quiz-note { margin-bottom: 8px; color: var(--muted); font-size: 15px; font-weight: 600; }
.options { display: grid; gap: 10px; }
.option { min-height: 58px; text-align: left; font-weight: 600; font-size: 18px; color: var(--navy); background: var(--soft); border: 0; border-radius: 16px; padding: 14px 20px; cursor: pointer; transition: background-color 120ms ease; }
.option:hover { background: #E4E9F8; }
.option[aria-pressed="true"] { background: #FFE3D7; }
.field-label { display: block; margin-bottom: 10px; font-weight: 600; font-size: 15px; }
.input { display: block; width: 100%; min-height: 54px; margin-top: 4px; font-weight: 500; font-size: 17px; background: var(--soft); border: 2px solid transparent; border-radius: 16px; padding: 12px 16px; }
.input[aria-invalid="true"] { border-color: var(--error); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; color: var(--muted); margin: 4px 0 12px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.submit { width: 100%; min-height: 60px; font-weight: 700; font-size: 19px; color: var(--navy); background: var(--orange); border: 0; border-radius: 16px; cursor: pointer; }
.submit:hover { background: #FF7A47; }
.submit[disabled] { opacity: 0.65; cursor: wait; }
.back { min-height: 44px; margin-top: 8px; font-weight: 600; font-size: 15px; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; }
.back:hover { color: var(--navy); }
.error { display: block; color: var(--error); font-size: 14.5px; font-weight: 500; }
.error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done-mark { width: 52px; height: 52px; margin-bottom: 14px; display: block; }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: -60px; }
.stat { background: var(--white); border-radius: 24px; padding: 26px; }
.stat b { display: block; font-size: 50px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.stat span { display: block; margin-top: 8px; color: var(--muted); }
.stat-blue { background: var(--blue); color: var(--white); }
.stat-blue span { color: var(--white); }
.stat-orange { background: var(--orange); }
.stat-orange span { color: var(--navy); }

/* Sections */
.band { padding-top: 44px; padding-bottom: 44px; }
.band-white { background: var(--white); margin-top: 44px; }
.band h2, .final h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.band h3 { font-weight: 700; letter-spacing: -0.02em; }
.cta { display: inline-block; margin-top: 18px; padding: 18px 32px; font-weight: 700; font-size: 19px; color: var(--navy); background: var(--orange); border-radius: 16px; text-decoration: none; }
.cta:hover { background: #FF7A47; color: var(--navy); }
.text-link { display: inline-block; margin-top: 16px; font-weight: 600; }

.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; }
.step-num-orange { background: var(--orange); color: var(--navy); }
.steps h3 { margin: 14px 0 4px; font-size: 24px; }
.steps p { color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; margin-top: 28px; }
.plan { background: var(--white); border-radius: 24px; padding: 28px; }
.plan-dark { background: var(--navy); color: var(--white); }
.plan-hours { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan-tag { margin: 6px 0 16px; font-weight: 600; }
.plans-note { margin-top: 18px; font-weight: 600; }

.pay { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.pay-main { flex: 3 1 340px; min-width: 0; background: var(--blue); color: var(--white); border-radius: 24px; padding: 30px; }
.pay-kicker { font-weight: 600; font-size: 19px; }
.pay-amount { margin: 8px 0 10px; font-size: clamp(50px, 6vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
.pay-side { flex: 2 1 280px; min-width: 0; background: var(--white); border-radius: 24px; padding: 30px; }
.pay-side h3 { font-size: 28px; font-weight: 800; }
.pay-side p { margin-top: 10px; color: var(--muted); }

.reviews-score { margin-top: 12px; font-size: 19px; font-weight: 600; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; margin-top: 22px; }
.card { background: var(--white); border-radius: 24px; padding: 26px; }
.card h3 { margin-bottom: 8px; font-size: 24px; line-height: 1.15; }
.card p { color: var(--muted); }

.parents { background: var(--navy); color: var(--white); border-radius: 28px; padding: clamp(28px, 4vw, 52px); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.parents > div { flex: 1 1 340px; min-width: 0; }
.parents-kicker { margin-bottom: 10px; font-weight: 600; color: var(--on-navy-soft); }
.band .parents h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; }
.parents .cta { margin-top: 22px; padding: 17px 28px; font-size: 18px; }
.parents-list { display: grid; gap: 16px; }
.parents-list h3 { margin-bottom: 2px; font-size: 21px; letter-spacing: 0; }
.parents-list p { color: var(--on-navy); }

.place { display: flex; flex-wrap: wrap; gap: 14px; }
.place-main { flex: 3 1 360px; min-width: 0; background: var(--white); border-radius: 24px; padding: 30px; }
.place-address { margin-top: 16px; font-size: 24px; font-weight: 600; line-height: 1.25; }
.place-phone { margin-top: 10px; font-size: 20px; font-weight: 600; }
.place-phone a { color: inherit; }
.place-main .text-link { margin-top: 12px; }
.place-side { flex: 2 1 280px; min-width: 0; background: var(--line); border-radius: 24px; padding: 30px; display: grid; gap: 22px; align-content: start; }
.place-side h3 { margin-bottom: 10px; font-size: 21px; letter-spacing: 0; }
.hours { display: grid; gap: 7px; margin: 0; }
.hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; }
.map { margin-top: 20px; background: var(--line); border-radius: 18px; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; }
.map p { font-size: 14.5px; color: var(--muted); }
.map-button { min-height: 44px; padding: 8px 20px; font-weight: 700; color: var(--white); background: var(--navy); border: 0; border-radius: 12px; cursor: pointer; }
.map-loaded { padding: 0; overflow: hidden; min-height: 300px; }
.map-loaded iframe { display: block; width: 100%; height: 300px; border: 0; }

.band-faq { padding-bottom: 60px; }
.faq { display: grid; gap: 10px; margin-top: 18px; }
.faq details { background: var(--white); border-radius: 18px; padding: 18px 22px; }
.faq summary { font-weight: 600; font-size: 18px; cursor: pointer; }
.faq p { margin-top: 8px; color: var(--muted); }

.final { background: var(--navy); color: var(--white); padding: 56px 0 26px; }
.final-text { margin-top: 14px; font-size: 20px; color: var(--on-navy); max-width: 620px; }
.final .cta { margin-top: 22px; }
.final-legal { margin-top: 46px; font-size: 14.5px; color: var(--on-navy-soft); display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.final-legal a, .linklike { color: var(--on-navy-soft); }
.linklike { background: none; border: 0; padding: 0; font-size: inherit; text-decoration: underline; cursor: pointer; }

/* Fenêtre « Être rappelé » */
.chat-panel { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 340px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--white); color: var(--navy); border-radius: 22px; box-shadow: 0 16px 48px rgba(10, 26, 71, 0.32); }
.chat-panel[hidden], .chat-bubble[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; background: var(--navy); color: var(--white); border-radius: 22px 22px 0 0; }
.chat-who { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; }
.chat-icon { display: flex; width: 32px; height: 32px; flex: none; align-items: center; justify-content: center; background: var(--orange); color: var(--navy); border-radius: 50%; }
.chat-min { display: flex; width: 44px; height: 44px; flex: none; align-items: center; justify-content: center; background: none; border: 0; border-radius: 12px; cursor: pointer; }
.chat-min:hover { background: rgba(255, 255, 255, 0.14); }
.chat-min span { display: block; width: 16px; height: 3px; background: var(--white); border-radius: 2px; }
.chat-min:focus-visible { outline-color: var(--gold); }
.chat-body { padding: 16px; }
.chat-title { margin-bottom: 12px; font-size: 19px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; outline: none; }
.chat-text { color: var(--muted); }
.chat-options { display: grid; gap: 8px; }
.chat-option { min-height: 48px; text-align: left; font-weight: 600; color: var(--navy); background: var(--soft); border: 0; border-radius: 14px; padding: 10px 16px; cursor: pointer; }
.chat-option:hover { background: #E4E9F8; }
.chat-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14.5px; }
.chat-input { display: block; width: 100%; min-height: 48px; margin-top: 3px; font-size: 16px; font-weight: 500; background: var(--soft); border: 2px solid transparent; border-radius: 14px; padding: 8px 14px; }
.chat-input[aria-invalid="true"] { border-color: var(--error); }
.chat-check { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 10px; font-size: 13.5px; line-height: 1.35; color: var(--muted); cursor: pointer; }
.chat-check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.chat-error { display: block; color: var(--error); font-size: 13.5px; font-weight: 500; }
.chat-error:empty { display: none; }
.chat-check + .chat-error:not(:empty) { margin-bottom: 8px; }
.chat-submit { width: 100%; min-height: 52px; font-weight: 700; font-size: 17px; color: var(--navy); background: var(--orange); border: 0; border-radius: 14px; cursor: pointer; }
.chat-submit:hover { background: #FF7A47; }
.chat-submit[disabled] { opacity: 0.65; cursor: wait; }
.chat-back { min-height: 40px; margin-top: 4px; font-weight: 600; font-size: 14.5px; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; }
.chat-bubble { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 20px; font-weight: 700; color: var(--navy); background: var(--orange); border: 0; border-radius: 26px; box-shadow: 0 8px 24px rgba(10, 26, 71, 0.3); cursor: pointer; }
.chat-bubble:hover { background: #FF7A47; }

/* Pages légales */
.legal { max-width: 720px; margin: 0 auto; padding: 48px 20px 64px; }
.legal h1 { font-size: 40px; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 20px; }
.legal h2 { font-size: 22px; margin: 26px 0 8px; font-weight: 700; }
.legal p, .legal ul { margin: 0 0 10px; }
.verify { display: inline-block; background: #FFE3D7; border-radius: 8px; padding: 4px 10px; font-size: 14.5px; font-weight: 600; }

/* Téléphone : le titre puis le quiz, sans attendre */
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .urgency { font-size: 14.5px; padding: 8px 16px; }
  .hero-top { padding-top: 14px; }
  .hero-link { display: none; }
  .hero-main { gap: 22px; padding-top: 18px; padding-bottom: 90px; }
  .hero-text { flex-basis: 100%; padding-top: 0; }
  .hero-place { margin-bottom: 8px; font-size: 16px; }
  h1 { font-size: 46px; }
  .hero-sub { margin-top: 12px; font-size: 17px; }
  .hero-rating { margin-top: 10px; }
  .hero-urgency { display: none; }
  .quiz { flex-basis: 100%; max-width: none; padding: 20px; border-radius: 22px; }
  .quiz-q { font-size: 24px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: -50px; }
  .stat { padding: 18px; border-radius: 20px; }
  .stat b { font-size: 36px; }
  .band { padding-top: 34px; padding-bottom: 34px; }
  .band-white { margin-top: 34px; }
  .cta { display: block; text-align: center; padding-left: 16px; padding-right: 16px; }
  .chat-panel { left: 12px; right: 12px; bottom: 12px; width: auto; max-height: calc(100vh - 24px); }
  .chat-bubble { right: 12px; bottom: 12px; }
  .plan, .pay-main, .pay-side, .place-main, .place-side, .card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
