/* Pulse · site de vente · même palette que le portail (dist/styles.css) */
:root {
  --bg: #eef0f4;
  --card: #ffffff;
  --card-soft: #f6f7fa;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #2b5cff;
  --accent-soft: #e6ecff;
  --accent-soft-ink: #1e40af;
  --dark: #0f1219;
  --ok: #166534; --ok-bg: #dcfce7;
  --warn: #92400e; --warn-bg: #fef3c7;
  --bad: #991b1b; --bad-bg: #fee2e2;
  --r-xl: 28px; --r-lg: 20px; --r-md: 14px; --r-pill: 999px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.12; }
h1 { font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.mono { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 56px 0; scroll-margin-top: 76px; }
.sec-head { max-width: 640px; margin: 0 auto 28px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.sec-head p { font-size: 17px; color: var(--ink-2); }
.eyebrow { display: inline-flex; align-self: center; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-soft-ink); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.grad, .card.grad { background: radial-gradient(120% 120% at 10% 0%, #5b7dff 0%, #2b5cff 45%, #1d3fd6 100%); color: #fff; }
.grad .muted { color: rgba(255,255,255,.78); }

/* Cartes */
.card { background: var(--card); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow); }
.card.soft { background: var(--card-soft); box-shadow: none; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: var(--r-pill); border: 0; background: var(--dark); color: #fff; font-weight: 650; cursor: pointer; transition: transform .08s, opacity .15s; white-space: nowrap; line-height: 1.2; }
.btn:hover { opacity: .92; } .btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.accent { background: var(--accent); }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn.white { background: #fff; color: var(--ink); }
.btn.lg { padding: 16px 26px; font-size: 17px; }
.btn.block { width: 100%; }
.btn .arrow { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.btn.white .arrow, .btn.ghost .arrow { background: var(--dark); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; background: var(--card-soft); color: var(--ink-2); white-space: nowrap; }
.pill.accent { background: var(--accent-soft); color: var(--accent-soft-ink); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }

/* En-tête */
.top { position: sticky; top: 0; z-index: 30; background: rgba(238,240,244,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 26px; width: auto; }
.brand .by { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; padding-left: 10px; border-left: 1px solid var(--line); }
.brand .by img { height: 14px; opacity: .8; }
.nav { display: none; gap: 4px; }
.nav a { padding: 9px 13px; border-radius: var(--r-pill); font-weight: 600; color: var(--ink-2); font-size: 14.5px; }
.nav a:hover { background: #fff; }
.top .btn { padding: 10px 16px; font-size: 14px; }
@media (min-width: 900px) { .nav { display: flex; } }

/* Héros */
.hero { padding: 40px 0 24px; }
.hero-card { border-radius: 32px; padding: 36px 24px 28px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; }
.hero-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.12); pointer-events: none; }
.hero-card h1 { font-size: 34px; }
.hero-card .hero-lead { font-size: 17px; line-height: 1.5; max-width: 560px; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hero-actions .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; font-size: 13.5px; color: rgba(255,255,255,.85); }
.hero-proof span { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof i { width: 6px; height: 6px; border-radius: 50%; background: #fff; display: inline-block; }
.hero-grid { display: grid; gap: 16px; }
.hero-side { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.hero-side .card { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--r-lg); }
.hero-side .v { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.hero-side .l { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) {
  .hero { padding: 56px 0 24px; }
  .hero-grid { grid-template-columns: 1.6fr 1fr; align-items: stretch; }
  .hero-card { padding: 52px 48px 40px; justify-content: center; }
  .hero-card h1 { font-size: 50px; max-width: 620px; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-side .card { flex: 1; justify-content: center; padding: 26px; }
  .hero-side .v { font-size: 40px; }
}

/* Comment ça marche */
.steps { display: grid; gap: 12px; counter-reset: step; }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.step .n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--dark); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.step.you .n { background: var(--accent); }
.step h3 { margin-bottom: 4px; }
.step .who { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.step.you .who { color: var(--accent); }
.step p { color: var(--ink-2); font-size: 15px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .step { flex-direction: column; gap: 14px; padding: 22px 20px; }
}

/* Un pulse */
.pulse-explain { display: grid; gap: 16px; }
.pulse-big { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.pulse-big .v { font-size: 56px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.pulse-big .v small { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-left: 6px; }
.pulse-big p { color: var(--ink-2); font-size: 15.5px; }
.grille { display: flex; flex-direction: column; gap: 0; }
.grille .fam { padding: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--muted); }
.grille .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.grille .row:last-child { border-bottom: 0; }
.grille .row .t { font-weight: 600; font-size: 15px; }
.grille .row .s { font-size: 13px; color: var(--muted); display: block; }
.grille .row .p { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grille .row .p small { font-weight: 600; color: var(--muted); font-size: 12.5px; margin-left: 3px; }
.grille-more { margin-top: 12px; }
.grille .hidden { display: none; }
.grille.open .hidden { display: flex; }
.grille.open .fam.hidden { display: block; }
@media (min-width: 900px) { .pulse-explain { grid-template-columns: 1fr 1.4fr; align-items: start; } }

/* Paliers */
.plans { display: grid; gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 26px 24px; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); position: relative; }
.plan.star { background: var(--dark); color: #fff; }
.plan.star .muted { color: rgba(255,255,255,.7); }
.plan .tag { position: absolute; top: 18px; right: 18px; }
.plan h3 { font-size: 22px; }
.plan .pulses { display: flex; align-items: baseline; gap: 8px; }
.plan .pulses b { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.plan .price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan .price b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan.star .price span { color: rgba(255,255,255,.7); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); margin-top: 2px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e40af' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E"); background-size: 11px; background-repeat: no-repeat; background-position: center; }
.plan.star li::before { background-color: rgba(255,255,255,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E"); }
.plan .btn { margin-top: auto; }
.plan.star .btn { background: var(--accent); }
.plan-notes { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.plan .ex { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.plan.star .ex { color: rgba(255,255,255,.7); }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } .plan.star { transform: translateY(-8px); } }

/* Sur mesure */
.custom { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; border-radius: var(--r-xl); }
.custom h2 { font-size: 26px; }
.custom p { max-width: 560px; color: rgba(255,255,255,.88); }
.custom .btn { align-self: flex-start; }
@media (min-width: 900px) { .custom { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px 44px; } .custom .btn { align-self: center; } }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--card-soft); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink-2); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--dark); color: #fff; }
.faq .a { padding: 0 0 20px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* Formulaire */
.lead { display: grid; gap: 20px; }
.lead-intro { display: flex; flex-direction: column; gap: 12px; }
.lead-intro h2 { font-size: 30px; }
.lead-intro p { color: var(--ink-2); }
.lead-intro .promise { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.lead-intro .promise span { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.lead-intro .promise i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
form.card { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.field label .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: #fff; outline: none; font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field textarea { min-height: 110px; resize: vertical; }
.field .help { font-size: 12.5px; color: var(--muted); }
.field.error input, .field.error select, .field.error textarea { border-color: #dc2626; }
.field .err { display: none; font-size: 12.5px; color: var(--bad); font-weight: 600; }
.field.error .err { display: block; }
.two { display: grid; gap: 14px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.planpick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.planpick label { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: 14.5px; }
.planpick label small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.planpick input { position: absolute; opacity: 0; width: 0; height: 0; }
.planpick label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-soft-ink); }
.planpick label:has(input:checked) small { color: var(--accent-soft-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 0; height: 0; }
.chips label:has(input:checked) { border-color: var(--accent); background: var(--accent); color: #fff; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.form-foot { display: flex; flex-direction: column; gap: 10px; }
.form-msg { display: none; padding: 12px 16px; border-radius: var(--r-md); background: var(--bad-bg); color: var(--bad); font-weight: 600; font-size: 14.5px; }
.form-msg.show { display: block; }
.legal { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.legal a { text-decoration: underline; }
.thanks { display: none; flex-direction: column; gap: 14px; align-items: flex-start; }
.thanks.show { display: flex; }
.thanks .ok-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; }
.thanks h3 { font-size: 24px; }
.thanks p { color: var(--ink-2); }
@media (min-width: 900px) { .lead { grid-template-columns: 1fr 1.25fr; align-items: start; } .lead-intro { position: sticky; top: 90px; } }

/* Pied de page */
footer { padding: 36px 0 44px; }
.foot { display: flex; flex-direction: column; gap: 18px; }
.foot .brand img { height: 22px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); }
.foot .links a:hover { text-decoration: underline; }
.foot .legal-line { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
@media (min-width: 900px) { .foot { flex-direction: row; justify-content: space-between; align-items: flex-start; } .foot .legal-line { max-width: 460px; text-align: right; } }

/* Barre d'action mobile */
.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25; display: flex; gap: 8px; padding: 6px; background: #fff; border-radius: var(--r-pill); box-shadow: 0 10px 40px rgba(15,23,42,.18); }
.mobile-cta .btn { flex: 1; }
.mobile-cta .btn.ghost { border: 0; }
.mobile-cta.hide { display: none; }
@media (min-width: 900px) { .mobile-cta { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 84px; } }

/* Page mentions */
.doc { max-width: 760px; margin: 0 auto; padding: 32px var(--gutter) 60px; display: flex; flex-direction: column; gap: 22px; }
.doc h1 { font-size: 30px; }
.doc h2 { font-size: 20px; margin-top: 10px; }
.doc p, .doc li { color: var(--ink-2); font-size: 15px; }
.doc ul { margin: 0; padding-left: 20px; }
.doc .todo { background: var(--warn-bg); color: var(--warn); padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 13px; }
.doc a { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
