/* =====================================================================
   Mersal — site vitrine
   ===================================================================== */
:root {
  --primary: #ea580c;
  --primary-ink: #c2410c;
  --primary-soft: #fff4ed;
  --ink: #101828;
  --text: #344054;
  --muted: #667085;
  --bg: #ffffff;
  --bg-alt: #f8f9fc;
  --border: #eaecf0;
  --wa: #25d366;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 16px/1.6 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; letter-spacing: -.02em; line-height: 1.2; }
img { max-width: 100%; display: block; }
a { color: var(--primary-ink); text-decoration: none; }
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.wrap.narrow { width: min(800px, 100% - 32px); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--primary-ink); cursor: pointer; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: filter .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 6px 18px rgba(234, 88, 12, .35); }
.btn-outline { background: #fff; color: var(--ink); border-color: #d0d5dd; }
.btn-outline:hover { background: var(--bg-alt); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-white { background: #fff; color: var(--primary-ink); }
.btn-white:hover { filter: brightness(.97); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-outline-white:hover { background: rgba(255, 255, 255, .1); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-right: auto; }
.nav-links a { color: var(--text); font-weight: 550; }
.nav-links a:hover { color: var(--primary-ink); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Héros */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #ffedd5 0%, transparent 60%), linear-gradient(180deg, #fff 0%, #fffaf5 100%); padding: 72px 0 88px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; }
.hl { color: var(--primary); }
.lead { font-size: 18px; color: var(--text); margin: 20px 0 28px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 24px 0 0; font-size: 14.5px; color: var(--muted); font-weight: 550; }
.hero-visual { position: relative; }
.browser { border-radius: 14px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #f2f4f7; border-bottom: 1px solid var(--border); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d0d5dd; }
.browser-bar span { margin-left: 12px; font-size: 12px; color: var(--muted); background: #fff; border-radius: 6px; padding: 2px 10px; }
.phone { position: absolute; right: -18px; bottom: -48px; width: 31%; border-radius: 22px; border: 6px solid var(--ink); box-shadow: var(--shadow-lg); background: #fff; }

/* Bandeau chiffres */
.strip { border-block: 1px solid var(--border); background: #fff; }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; }
.strip strong { display: block; font-size: 30px; color: var(--primary); font-weight: 800; }
.strip span { font-size: 14.5px; color: var(--muted); }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; margin: 14px 0 0; }

/* Fonctionnalités */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.f-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: var(--primary-soft); margin-bottom: 16px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); }
.tag-new { position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 700; color: var(--primary-ink); background: var(--primary-soft); border-radius: 99px; padding: 3px 10px; }

/* Points forts */
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.strength { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--primary); }
.strength h3 { font-size: 18px; margin-bottom: 8px; }
.strength p { margin: 0; color: var(--muted); font-size: 15px; }

/* Aperçu */
.shots-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.shot-tab { border: 1px solid var(--border); background: #fff; border-radius: 99px; padding: 9px 18px; font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--text); cursor: pointer; }
.shot-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.browser.big { max-width: 1040px; margin: 0 auto; }
.browser.big img { transition: opacity .2s; }
.shot-caption { text-align: center; color: var(--muted); margin: 18px auto 0; max-width: 680px; }

/* Étapes */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Tarifs */
.billing { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 36px; font-weight: 650; color: var(--muted); }
.billing-label.on { color: var(--ink); }
.save { font-style: normal; font-size: 13px; color: #067647; background: #ecfdf3; border-radius: 99px; padding: 3px 9px; margin-left: 4px; }
.switch { position: relative; width: 52px; height: 30px; border-radius: 99px; border: 0; background: #d0d5dd; cursor: pointer; transition: background .2s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--primary); }
.switch[aria-checked="true"] span { transform: translateX(22px); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 700; border-radius: 99px; padding: 4px 14px; white-space: nowrap; }
.plan h3 { font-size: 22px; }
.plan-desc { color: var(--muted); font-size: 14.5px; margin: 6px 0 20px; min-height: 44px; }
.plan-price { font-size: 38px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.plan-price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-sub { font-size: 14px; color: var(--muted); min-height: 22px; margin: 4px 0 22px; }
.plan-sub s { margin-right: 6px; }
.plan-sub b { color: #067647; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: '✓'; color: var(--primary); font-weight: 800; }
.plan li.off { color: #98a2b3; }
.plan li.off::before { content: '—'; color: #d0d5dd; }
.plan .btn { margin-top: auto; width: 100%; }
.plans-note { text-align: center; color: var(--muted); margin: 28px 0 44px; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.compare th, .compare td { padding: 13px 18px; border-bottom: 1px solid var(--border); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--bg-alt); color: var(--ink); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:nth-child(3) { background: #fffaf5; }

/* FAQ */
.faq { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--primary); font-size: 22px; line-height: 1; }
.faq[open] summary::after { content: '−'; }
.faq p { margin: 0 0 18px; color: var(--muted); }

/* Appel final */
.final { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-ink) 100%); color: #fff; padding: 80px 0; text-align: center; }
.final h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.final p { font-size: 18px; opacity: .92; margin: 14px 0 30px; }
.final .hero-cta { justify-content: center; }

/* Pied de page */
.footer { background: var(--ink); color: #d0d5dd; padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { height: 40px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; }
.footer p { color: #98a2b3; max-width: 360px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer a, .footer .link { display: block; color: #d0d5dd; margin-bottom: 9px; font-weight: 500; text-align: left; }
.footer a:hover, .footer .link:hover { color: #fff; }
.copyright { text-align: center; border-top: 1px solid #1d2939; padding: 22px 16px; font-size: 14px; color: #98a2b3; }
.copyright a { color: #fdba74; font-weight: 650; display: inline; margin: 0; }

/* ============ Assistant WhatsApp ============ */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 20px 0 14px;
  border: 0; border-radius: 99px; background: var(--wa); color: #fff; font-family: inherit; font-size: 15px; font-weight: 650; cursor: pointer; box-shadow: 0 10px 30px rgba(37, 211, 102, .45); }
.chat-fab svg { width: 32px; height: 32px; }
.chat-fab:hover { filter: brightness(1.05); }
.chat-fab::after { content: ''; position: absolute; top: 8px; left: 36px; width: 12px; height: 12px; border-radius: 50%; background: #f04438; border: 2px solid #fff; }
.chat-fab.seen::after { display: none; }
.chat { position: fixed; right: 22px; bottom: 96px; z-index: 81; width: min(380px, calc(100vw - 24px)); height: min(580px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: #efeae2; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; }
.chat[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #075e54; color: #fff; }
.chat-head strong { display: block; font-size: 15px; }
.chat-head span { font-size: 12.5px; opacity: .85; }
.chat-avatar img { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 4px; }
.chat-close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 14.5px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); white-space: pre-line; }
.msg.bot { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.msg.me { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 4px; }
.msg.typing { color: var(--muted); font-style: italic; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 100%; }
.choice { border: 1px solid #b7e4c7; background: #fff; color: #075e54; border-radius: 99px; padding: 7px 13px; font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.choice:hover { background: #f0fdf4; }
.wa-go { display: inline-flex; align-items: center; gap: 8px; align-self: center; margin-top: 6px; background: var(--wa); color: #fff; border: 0; border-radius: 99px;
  padding: 12px 20px; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; }
.chat-input { display: flex; gap: 8px; padding: 10px; background: #f0f2f5; }
.chat-input input { flex: 1; border: 0; border-radius: 99px; padding: 0 16px; height: 44px; font: inherit; outline: none; }
.chat-input button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #075e54; color: #fff; font-size: 17px; cursor: pointer; }
.chat-input input.invalid { box-shadow: 0 0 0 2px #f04438; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .features, .strengths { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .phone { right: 0; }
}
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 8px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-cta .btn-ghost, .nav-cta .btn-primary { display: none; }
  .burger { display: block; }
  .nav-inner { justify-content: space-between; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .features, .strengths, .steps { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .chat-fab-text { display: none; }
  .chat-fab { padding: 0 14px; }
  .chat { right: 12px; bottom: 90px; }
  .hero { padding-top: 44px; }
}
.chat-input[hidden] { display: none; }

/* Démo en libre accès */
.demo-try { background: linear-gradient(180deg, #fff 0%, #fff7ed 100%); }
.demo-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.demo-inner h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.demo-inner p { color: var(--muted); font-size: 17px; margin: 0 0 26px; }
.demo-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.demo-card-head { background: var(--ink); color: #fff; font-weight: 700; padding: 16px 22px; }
.demo-card dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; margin: 0; padding: 22px; font-size: 16px; }
.demo-card dt { color: var(--muted); }
.demo-card dd { margin: 0; font-weight: 700; color: var(--ink); }
.demo-card code { background: var(--primary-soft); color: var(--primary-ink); padding: 3px 10px; border-radius: 6px; font-size: 16px; }
.demo-card-note { margin: 0 !important; padding: 0 22px 22px; font-size: 14px !important; }
@media (max-width: 1024px) { .demo-inner { grid-template-columns: 1fr; } }
