/* ===================== TOKENS - Charte TopLocal ===================== */
:root {
  --blue: #2563EB;            /* Bleu TopLocal - boutons, liens, accents */
  --blue-light: #60A5FA;      /* hover, éléments secondaires */
  --blue-grad: #2563EB;       /* remplace l'ancien dégradé : aplat, sans dégradé */
  --green: #22C55E;           /* Vert Performance - succès, progression (jamais les boutons) */
  --navy: #16294A;            /* sections sombres */
  --navy-deep: #0F1D36;
  --footer: #0B1526;
  --ink: #111827;             /* texte principal */
  --ink-soft: #374151;        /* titres secondaires */
  --gray: #6B7280;            /* texte secondaire */
  --gray-light: #9CA3AF;
  --bg-light: #ffffff;
  --bg-lighter: #F8FAFC;      /* fond principal */
  --border: #E5E7EB;
  --card-shadow: 0 10px 30px rgba(15, 29, 54, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --maxw-narrow: 1000px;
  --font-head: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--maxw-narrow); }
.center { text-align: center; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  text-align: center;
  justify-content: center;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--blue-grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 99, 235, 0.32); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; padding: 16px 24px; }

/* ===================== HEADER ===================== */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(20,35,60,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand-logo { height: 42px; width: auto; }
.header-tagline { color: var(--gray); font-size: .98rem; }
.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 30px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(37,99,235,.25);
}
.btn-phone:hover { transform: translateY(-1px); }

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(120deg, #16294A 0%, #1E3A6E 60%, #16294A 100%);
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  padding: 64px 24px 72px;
}
.hero-text h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 20px;
}
.hero-sub { font-size: 1.1rem; color: #d6e0ec; max-width: 540px; margin: 0 0 28px; }
.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 0;
  margin: 26px 0 0;
  font-size: .92rem;
  color: #c3d0e0;
}
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.hero-media { display: flex; justify-content: center; }
.hero-media img {
  max-width: 300px;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
  transform: rotate(2deg);
}

/* ===================== SECTIONS ===================== */
.section { padding: 80px 0; }
.section-light { background: #fff; }
.section-lighter { background: var(--bg-lighter); }
.section-dark { background: linear-gradient(150deg, #16294A, #0F1D36); color: #fff; }
.section-logo { height: 64px; width: auto; margin: 0 auto 26px; }
.section-logo.on-dark { filter: brightness(0) invert(1); opacity: .95; }
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  text-align: center;
  margin: 0 auto 14px;
  max-width: 860px;
  color: var(--ink);
}
.section-title.light { color: #fff; }
.section-lead { text-align: center; color: var(--gray); font-size: 1.1rem; margin: 0 auto 40px; max-width: 680px; }
.section-lead.light { color: #cdd8e6; }

/* ===================== GRIDS ===================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Problem cards */
.problem-grid { margin-top: 40px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.problem-card { display: flex; gap: 16px; padding: 26px; align-items: flex-start; }
.problem-card h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; margin: 0 0 8px; color: var(--ink); }
.problem-card p { margin: 0; color: var(--gray); font-size: .96rem; }
.icon-circle {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1rem;
}
.icon-cross { background: #EFF6FF; color: var(--blue); }

.problem-grid + .center, .steps-grid + .center, .stats-grid + .center { margin-top: 0; }
.section .center { margin-top: 40px; }

/* Stats */
.stats-grid { margin-top: 12px; }
.stat-card {
  background: #fbfcfd;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 26px;
  text-align: center;
}
.stat-number { font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; color: var(--blue); line-height: 1; }
.stat-rule { display: block; width: 46px; height: 3px; background: #BFDBFE; border-radius: 3px; margin: 14px auto 18px; }
.stat-card p { margin: 0; color: var(--gray); font-size: .96rem; }
.callout {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius);
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  padding: 22px 28px;
  margin: 36px auto 0;
  max-width: 920px;
}

/* Steps */
.steps-grid { margin-top: 12px; position: relative; }
.step-card { padding: 36px 26px; text-align: center; position: relative; }
.step-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--blue-grad);
  display: grid; place-items: center;
  margin: 0 auto 18px;
  box-shadow: 0 10px 22px rgba(37,99,235,.25);
}
.step-label { color: var(--blue); font-weight: 700; font-size: .8rem; letter-spacing: .08em; }
.step-card h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; margin: 8px 0 12px; color: var(--ink); }
.step-card p { margin: 0; color: var(--gray); font-size: .95rem; }

/* Benefits (dark) */
.benefits-grid { margin-top: 12px; }
.benefit-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.benefit-card h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; margin: 0 0 8px; color: #fff; }
.benefit-card p { margin: 0; color: #bcc8d8; font-size: .95rem; }
.icon-check-o { background: rgba(96,165,250,.22); color: #fff; font-size: 1.1rem; }

/* Testimonials */
.testimonials {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  flex: 1;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 26px;
}
.testimonial-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: .85rem;
  flex: 0 0 auto;
}
.testimonial-head strong { display: block; font-family: var(--font-head); color: var(--ink); }
.muted { color: var(--gray); font-size: .88rem; }
.stars { color: #FBBC04; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.carousel-arrow {
  display: none; /* flèches inutiles en desktop : les 3 cartes sont visibles */
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: background .2s, color .2s;
}
.carousel-arrow:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.results-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px;
  background: #f1f4f8;
  border-radius: var(--radius);
  padding: 22px 28px;
  margin: 40px auto 0;
  color: var(--navy);
  font-size: 1rem;
}
.results-bar strong { color: var(--green); }

/* Pricing */
.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(37,99,235,.18);
  border: 1px solid #BFDBFE;
}
.pricing-head { background: var(--blue-grad); color: #fff; text-align: center; padding: 34px 28px 28px; }
.pricing-tag { font-weight: 700; letter-spacing: .1em; font-size: .82rem; opacity: .95; }
.pricing-price { margin: 12px 0 6px; }
.pricing-price .amount { font-family: var(--font-head); font-weight: 800; font-size: 3.2rem; }
.pricing-price .period { font-size: 1.1rem; font-weight: 500; }
.pricing-note { margin: 0; font-size: .95rem; opacity: .92; }
.pricing-body { background: #fff; padding: 30px 30px 32px; }
.check-list { list-style: none; padding: 0; margin: 0 0 26px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: .98rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--green);
  font-weight: 700;
}
.check-list.small li { font-size: .92rem; margin-bottom: 10px; }
.pricing-footnote { text-align: center; color: var(--gray); font-style: italic; margin: 22px 0 0; }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { transition: transform .25s ease; color: var(--gray); font-size: 1.2rem; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-body { padding: 0 24px 20px; color: var(--gray); }
.faq-body p { margin: 0; }

/* ===================== FINAL CTA + FORM ===================== */
.final-cta { padding-bottom: 90px; }
.form-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
  max-width: 620px;
  margin: 30px auto 0;
  padding: 34px 34px 38px;
  color: var(--ink);
}

/* Progress */
.form-progress { margin-bottom: 22px; }
.progress-dots {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin: 0;
  position: relative;
}
.progress-line {
  position: absolute;
  left: 18px; right: 18px;
  top: 18px;
  height: 3px;
  background: #e6e9ef;
  border-radius: 3px;
  z-index: 0;
}
.progress-fill { display: block; height: 100%; background: var(--blue); border-radius: 3px; transition: width .3s ease; }
.progress-dots li {
  position: relative;
  z-index: 1;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e0e4ea;
  color: #9aa3b2;
  display: grid; place-items: center;
  font-weight: 600;
  font-size: .9rem;
}
.progress-dots li.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.progress-dots li.done { background: var(--green); border-color: var(--green); color: #fff; font-size: 0; }
.progress-dots li.done::after { content: "✓"; font-size: .95rem; }
.progress-label { text-align: center; color: var(--gray); font-size: .9rem; margin: 12px 0 0; }
.cur-step { font-weight: 600; }

/* Form steps */
.form-step { display: none; animation: fade .25s ease; }
.form-step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.btn-back {
  background: none;
  border: none;
  color: var(--gray);
  font-size: .98rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
}
.btn-back:hover { color: var(--ink); }
.step-eyebrow { display: block; text-align: center; color: var(--blue); font-weight: 700; font-size: .82rem; letter-spacing: .08em; margin-bottom: 6px; }
.step-question {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--ink);
  text-align: center;
  margin: 0 0 6px;
}
.step-question.center-q { margin-bottom: 22px; }
.step-hint { text-align: center; color: var(--gray); margin: 0 0 22px; }

.choice-grid { gap: 14px; }
.choice {
  background: #fff;
  border: 1.5px solid #e3e7ee;
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  font-size: .98rem;
}
.choice:hover { border-color: var(--blue); box-shadow: 0 6px 16px rgba(37,99,235,.12); transform: translateY(-1px); }
.choice.selected { border-color: var(--blue); background: #EFF6FF; }
.choice-grid .choice { flex-direction: row; }
.choice-emoji { font-size: 1.4rem; flex: 0 0 auto; }
.choice-list { display: flex; flex-direction: column; gap: 14px; }
.choice-row { padding: 18px 20px; }

.field-label { display: block; text-align: center; font-weight: 600; color: var(--ink); margin: 14px 0 8px; font-size: .95rem; }
.form-step[data-step="5"] .field-label:first-of-type { margin-top: 4px; }
.text-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e3e7ee;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.text-input::placeholder { color: #a8b0bd; }
.text-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.btn-next, .btn-submit { margin-top: 20px; }
.form-reassurance { text-align: center; color: var(--gray); font-size: .85rem; margin: 16px 0 0; }

/* Thank you */
.thankyou { text-align: center; padding: 18px 6px; }
.thankyou-emoji { font-size: 2.4rem; }
.thankyou-title { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--ink); margin: 14px 0 12px; }
.thankyou p { color: var(--gray); margin: 0 auto 14px; max-width: 440px; }
.thankyou-sub { font-weight: 600; color: var(--ink) !important; }
.thankyou .check-list { display: inline-block; text-align: left; margin: 4px auto 18px; }
.thankyou-call { color: var(--blue) !important; font-weight: 600; }
.thankyou-call a { color: var(--blue); }

.call-direct { text-align: center; color: #cdd8e6; margin: 28px 0 0; }
.phone-link { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: #fff; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--footer); color: #c3cad8; padding: 56px 0 36px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo { height: 36px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p { margin: 0; color: #9aa3b2; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer-nav a { color: #c3cad8; font-size: .95rem; }
.footer-nav a:hover { color: #fff; }
.footer-rule { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 32px 0 22px; }
.footer-copy { text-align: center; color: #7a8499; font-size: .9rem; margin: 0; }

/* ===================== LEGAL PAGES ===================== */
.legal { padding: 60px 0 80px; background: #fff; }
.legal h1 { font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; color: var(--ink); margin: 0 0 30px; }
.legal h2 { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--ink); margin: 30px 0 10px; }
.legal p, .legal li { color: var(--gray); }
.legal a { color: var(--blue); }
.legal ul { padding-left: 20px; }
.legal .back-link { color: var(--gray); font-size: .95rem; display: inline-block; margin-bottom: 24px; }
.legal .back-link:hover { color: var(--ink); }
.legal strong { color: var(--ink-soft); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 48px 24px 56px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-badges { justify-content: center; }
  .hero-media { order: -1; margin-bottom: 8px; }
  .hero-media img { max-width: 240px; }
  .grid-2 { grid-template-columns: 1fr; }
  .testimonials-track { grid-template-columns: 1fr; }
  .testimonial-card { display: none; }
  .testimonial-card.active { display: block; }
  .carousel-arrow { display: block; }
  .results-bar { flex-direction: column; gap: 14px; text-align: center; }
}
@media (max-width: 760px) {
  .header-tagline { display: none; }
  .header-inner { padding-top: 16px; padding-bottom: 16px; }
  .btn-phone { padding: 10px 16px; font-size: .95rem; }
  .hero-media img { max-width: 180px; border-radius: 20px; }
  .hero-inner { padding: 40px 20px 48px; gap: 28px; }
  .section { padding: 56px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .choice-grid.grid-3 { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 24px 18px 28px; }
  .step-question { font-size: 1.25rem; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 460px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .brand-logo { height: 34px; }
  .btn-phone { padding: 9px 14px; font-size: .9rem; }
  .hero-media img { max-width: 160px; }
  .hero-text h1 { font-size: 1.75rem; }
  .hero-sub { font-size: 1rem; }
  .choice-grid.grid-3 { grid-template-columns: 1fr; }
  .stat-number { font-size: 2.8rem; }
}
