/* Module pages built from Keystatic ("Pages modules",
   src/components/module-page/): the layout, the page menu and every section
   type the pages share. A demo type adds its own stylesheet (the hero
   animation and the interactive demo: public/data-quality.css...), listed in
   src/lib/module-page-vocabulary.ts.
   Every rule is scoped under .mp so nothing reaches the shared header and
   footer (public/styles.css). Class names that styles.css also defines
   (.hero, .eyebrow, .chip, .btn-primary...) are prefixed mp- or renamed here.
   The layout and page menu follow the AI Phone Agent page (phone-agent.css). */

.mp{
  --blue:#3148D0; --blue-dark:#232F9E; --mint:#8FF7C1; --amber:#FFC24B; --navy:#1B2585;
  --on-blue-soft:#C9D0FF; --on-blue-text:#DCE1FF; --glass:rgba(255,255,255,.1); --glass-line:rgba(255,255,255,.22);
  --bg:#F7F6FB; --surface:#FFFFFF; --sunk:#F0EFF8; --ink:#181A2A; --muted:#5A5D74; --ink-soft:#5A5D74; --line:#E3E3F0;
  --accent:#3148D0; --accent-soft:#EDEFFC; --on-accent:#FFFFFF;
  --ok:#19A653; --ok-soft:#E6F6EC; --warn:#CF501A; --warn-soft:#FBEBE3; --crit:#E0084F; --crit-soft:#FDE6EF;
  --term:#0B0E2A; --term-fg:#DDE1FF; --term-muted:#8890D6; --term-line:#20255A; --term-user:#1A1F52; --term-mint:#8FF7C1; --term-amber:#FFC98B;
  --shadow:0 10px 30px -12px rgba(35,47,158,.18);
  --f-display:"Sora", system-ui, sans-serif;
  --f-body:"Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:"JetBrains Mono", ui-monospace, Menlo, monospace;
  --r:14px;
  --mp-head:76px; /* header height, measured by module-page.js */
  color:var(--ink);font-family:var(--f-body);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased;
}
html:has(.mp){scroll-behavior:smooth;scroll-padding-top:calc(var(--mp-head, 76px) + 16px)}
.mp *{box-sizing:border-box}
.mp [hidden]{display:none!important}
.mp section.block:last-child{padding-bottom:76px}

/* ---------- Layout: content column + page menu outside it ----------
   Three columns across the whole viewport: the content in the middle, as wide
   as the site's .wrap content (1140px minus its 28px gutters), and the page
   menu in the right-hand margin, outside the content column.
   - >= 1560px: the full stepper (dots and labels) fits in the margin.
   - 1101-1559px: the margin only fits the dots; each label shows on hover or
     keyboard focus, over the edge of the content.
   - <= 1100px: a row of pills under the header (module-page.js keeps the
     current one in view - same 1100px breakpoint). */
.mp .mp-layout{display:grid;grid-template-columns:minmax(28px,1fr) minmax(0,1084px) minmax(28px,1fr);align-items:start;padding-top:8px}
.mp .mp-main{grid-column:2;grid-row:1;min-width:0}
.mp .mp-side{grid-column:3;grid-row:1;position:sticky;top:calc(var(--mp-head) + 24px);max-height:calc(100vh - var(--mp-head) - 48px);padding-left:28px}

/* Progress stepper: a dot on a vertical line, then the label. Steps before the
   current one are filled, the current one is bold with a larger dot, the
   rest are hollow. Classes set by module-page.js. */
.mp .mp-steps{list-style:none;margin:0;padding:4px 0}
.mp .mp-steps li{position:relative}
.mp .mp-steps li:not(:last-child)::after{content:"";position:absolute;left:8.25px;top:50%;height:100%;width:1.5px;background:var(--line)}
.mp .mp-steps li.is-done::after{background:var(--accent)}
.mp .mp-steps a{display:flex;flex-direction:row-reverse;align-items:center;justify-content:flex-end;gap:12px;padding:7px 0;text-decoration:none;font-size:13px;font-weight:600;line-height:1.3;color:var(--ink-soft);transition:color .15s}
.mp .mp-steps a:hover{color:var(--accent)}
.mp .mp-step-node{flex:none;position:relative;z-index:1;width:18px;height:18px;display:flex;align-items:center;justify-content:center}
.mp .mp-step-node::before{content:"";box-sizing:border-box;width:9px;height:9px;border-radius:50%;background:var(--bg);border:1.5px solid #CDD0E3;transition:width .2s,height .2s,background .2s,border-color .2s,box-shadow .2s}
.mp .mp-steps li.is-done .mp-step-node::before{width:10px;height:10px;background:var(--accent);border-color:var(--accent)}
.mp .mp-steps li.is-current a{color:var(--ink);font-weight:800}
.mp .mp-steps li.is-current .mp-step-node::before{width:16px;height:16px;background:var(--accent);border-color:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 20%,transparent)}

/* Full stepper: scrolls when taller than the viewport. Not below 1560px, where
   the labels are tooltips that must overflow to the left of the column. */
@media (min-width:1560px){
  .mp .mp-side{overflow-y:auto}
}

/* Dots only: the label becomes a tooltip to the left of its dot. */
@media (min-width:1101px) and (max-width:1559px){
  /* The right column holds the padding plus an 18px dot: 40px minimum, so the
     stepper never spills past the viewport edge on narrow desktops. */
  .mp .mp-layout{grid-template-columns:minmax(28px,1fr) minmax(0,1084px) minmax(40px,1fr)}
  .mp .mp-side{padding-left:18px}
  .mp .mp-steps a{position:relative;padding:9px 0}
  .mp .mp-step-lbl{position:absolute;right:calc(100% - 4px);top:50%;transform:translate(6px,-50%);white-space:nowrap;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:5px 10px;box-shadow:var(--shadow);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s,transform .15s,visibility .15s}
  .mp .mp-steps a:hover .mp-step-lbl,.mp .mp-steps a:focus-visible .mp-step-lbl{opacity:1;visibility:visible;transform:translate(0,-50%)}
}
/* It can't scroll here (that would clip the tooltips), so on a viewport too
   short for the dots it stops being sticky and scrolls with the page. */
@media (min-width:1101px) and (max-width:1559px) and (max-height:480px){
  .mp .mp-side{position:static;max-height:none}
}

/* Small screens: the menu becomes a row of pills under the header. */
@media (max-width:1100px){
  /* Room for the pill row too (70px, as headerOffset() in public/site.js). */
  html:has(.mp){scroll-padding-top:calc(var(--mp-head, 76px) + 70px)}
  .mp .mp-layout{grid-template-columns:28px minmax(0,1fr) 28px}
  .mp .mp-side{grid-column:1/-1;grid-row:1;top:var(--mp-head);z-index:70;max-height:none;background:var(--bg);padding:0 28px;border-bottom:1px solid var(--line)}
  .mp .mp-main{grid-row:2}
  .mp .mp-steps{display:flex;gap:6px;overflow-x:auto;padding:10px 0;scrollbar-width:none}
  .mp .mp-steps::-webkit-scrollbar{display:none}
  .mp .mp-steps li::after,.mp .mp-step-node{display:none}
  .mp .mp-steps a{white-space:nowrap;border:1.5px solid var(--line);border-radius:100px;padding:6px 12px}
  .mp .mp-steps li.is-current a{border-color:var(--accent);color:var(--accent);font-weight:700}
  .mp .mp-main{padding-top:16px}
}

@media (prefers-reduced-motion: reduce){ html:has(.mp){scroll-behavior:auto} .mp *{animation:none!important;transition:none!important} }
.mp h1,.mp h2,.mp h3,.mp h4{font-family:var(--f-display);line-height:1.15;margin:0;text-wrap:balance}
.mp p{margin:0}
.mp a{color:var(--accent)}
.mp button{font:inherit;color:inherit}
.mp :focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:6px}
.mp .muted{color:var(--muted)}
.mp .num{font-variant-numeric:tabular-nums}
.mp .kicker{display:inline-block;font-size:12px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;color:var(--accent)}
.mp .ico{width:38px;height:38px;border-radius:10px;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;flex:none}
.mp .ico svg{width:20px;height:20px}


.mp .btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:800;font-size:14.5px;line-height:1.2;padding:13px 22px;border-radius:12px;border:1.5px solid transparent;cursor:pointer;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s}
.mp .btn:hover{transform:translateY(-2px)}
.mp .btn-solid{background:var(--accent);color:var(--on-accent)}
.mp .btn-solid:hover{box-shadow:0 12px 26px -10px var(--accent)}
.mp .btn-white{background:#fff;color:#232F9E}
.mp .btn-white:hover{box-shadow:0 14px 30px -8px rgba(10,12,40,.45)}
.mp .btn-ghost{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.3)}
.mp .btn-ghost:hover{background:rgba(255,255,255,.16)}
.mp .btn-line{background:transparent;color:var(--ink);border-color:var(--line)}
.mp .btn-line:hover{border-color:var(--accent);color:var(--accent)}
.mp .btn-sm{padding:9px 16px;font-size:13.5px;border-radius:10px}
.mp .btn[disabled]{opacity:.45;cursor:default;transform:none;box-shadow:none}

/* Hero */
.mp .mp-hero{position:relative;overflow:hidden;background:linear-gradient(160deg,#232F9E 0%,#3148D0 62%,#5A6BE0 100%);border-radius:28px;margin-top:16px;padding:56px 48px 40px;color:#fff}
.mp .mp-hero::before{content:"";position:absolute;top:-120px;right:-100px;width:420px;height:420px;border-radius:50%;background:rgba(255,255,255,.08)}
.mp .mp-hero::after{content:"";position:absolute;bottom:-160px;left:-80px;width:340px;height:340px;border-radius:50%;background:rgba(255,255,255,.06)}
.mp .mp-hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:44px;align-items:center;position:relative;z-index:1}
.mp .mp-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:#C9D0FF;background:rgba(255,255,255,.1);padding:7px 14px;border-radius:100px;margin-bottom:20px}
.mp .mp-eyebrow .dot{width:6px;height:6px;border-radius:50%;background:#8FF7C1;box-shadow:0 0 0 4px rgba(143,247,193,.25)}
.mp .mp-hero h1{font-size:clamp(28px,3.8vw,42px);line-height:1.12;font-weight:800;margin-bottom:16px}
.mp .mp-hero h1 em{font-style:normal;color:#8FF7C1}
.mp .mp-hero .mp-lead{font-size:17px;color:#DCE1FF;max-width:540px;margin-bottom:28px}
.mp .mp-cta-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
@media (max-width:900px){ .mp .mp-hero{padding:36px 22px 28px;border-radius:22px} .mp .mp-hero-grid{grid-template-columns:1fr;gap:30px} }


/* Sections */
.mp section.block{padding-block:76px 0}
.mp .sec-h{display:grid;gap:12px;margin-bottom:34px;max-width:720px}
.mp .sec-h h2{font-size:clamp(26px,3.4vw,36px);font-weight:800}
.mp .sec-h p{color:var(--muted);font-size:17px}

/* Stakes */
.mp .stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.mp .stat{padding:24px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);display:grid;gap:10px;align-content:start}
.mp .stat b{font-family:var(--f-display);font-size:40px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.mp .stat.key{border:2px solid var(--accent);box-shadow:var(--shadow)}
.mp .stat.key b{color:var(--accent)}
.mp .stat p{color:var(--muted);font-size:15px}
.mp .src{font-size:12.5px;color:var(--muted);margin-top:14px}
@media (max-width:760px){ .mp .stats{grid-template-columns:1fr} .mp .stat b{font-size:34px} }

/* Pains */
.mp .pains{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.mp .pain{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:22px;display:flex;flex-direction:column;gap:12px;transition:transform .18s,box-shadow .18s}
.mp .pain:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.mp .pain q{font-family:var(--f-display);font-weight:700;font-size:17px;line-height:1.3;quotes:"« " " »"}
.mp .pain p{color:var(--muted);font-size:14.5px}
.mp .pain .fix{margin-top:auto;padding-top:12px;border-top:1px dashed var(--line);font-size:14px;color:var(--ink)}
.mp .pain .fix b{color:var(--accent)}
@media (max-width:1000px){ .mp .pains{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:560px){ .mp .pains{grid-template-columns:1fr} }


/* Capacités */
.mp .caps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.mp .cap{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:22px;display:flex;flex-direction:column;gap:8px}
.mp .cap .kicker{margin-top:6px}
.mp .cap h3{font-size:16.5px;font-weight:700}
.mp .cap p{color:var(--muted);font-size:14.5px;flex:1}
.mp .cap a{font-size:14px;font-weight:800;text-decoration:none}
@media (max-width:980px){ .mp .caps{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:520px){ .mp .caps{grid-template-columns:1fr} }

/* Harness */
.mp .harness-h{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:24px}
.mp .harness-h .sec-h{margin:0}
.mp .sov{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:800;color:var(--ok);background:var(--ok-soft);border-radius:100px;padding:7px 14px}
.mp .guards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.mp .guard{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:20px;display:grid;gap:8px;align-content:start}
.mp .guard svg{width:22px;height:22px;color:var(--accent)}
.mp .guard h3{font-size:15.5px}.mp .guard p{font-size:14px;color:var(--muted)}
@media (max-width:980px){ .mp .guards{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:520px){ .mp .guards{grid-template-columns:1fr} }

/* CTA test */
.mp .cta{background:linear-gradient(160deg,#232F9E 0%,#3148D0 62%,#5A6BE0 100%);color:#fff;border-radius:28px;padding:48px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:36px;align-items:center;position:relative;overflow:hidden}
.mp .cta::before{content:"";position:absolute;top:-140px;right:-100px;width:380px;height:380px;border-radius:50%;background:rgba(255,255,255,.07)}
.mp .cta > *{position:relative}
.mp .cta .kicker{color:#C9D0FF}
.mp .cta h2{font-size:clamp(26px,3.6vw,36px);line-height:1.15;font-weight:800;margin:10px 0 12px}
.mp .cta > div:first-child > p{color:#DCE1FF;font-size:16.5px;margin-bottom:22px;max-width:480px}
@media (max-width:860px){ .mp .cta{grid-template-columns:1fr;padding:32px 22px;border-radius:22px} }
.mp .after-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;counter-reset:s}
.mp .after-steps li{counter-increment:s;display:grid;grid-template-columns:30px minmax(0,1fr);gap:2px 12px;align-items:start}
.mp .after-steps li::before{content:counter(s);grid-row:1/3;width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;font-family:var(--f-display);font-weight:800;font-size:14px}
.mp .after-steps b{font-size:15px}.mp .after-steps span{font-size:14px;color:#DCE1FF}
.mp .lead-card{background:var(--surface);color:var(--ink);border-radius:16px;padding:24px;box-shadow:0 20px 40px -14px rgba(10,12,40,.4);display:grid;gap:14px}
.mp .lead-card h3{font-size:19px}
.mp .lead-sub{font-size:14px;color:var(--muted)}

/* Formulaire */
.mp .lf{display:grid;gap:14px}
.mp .lf-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
@media (max-width:520px){ .mp .lf-2{grid-template-columns:1fr} }
.mp .lf-row{display:flex;flex-direction:column;gap:6px;min-width:0}
.mp .lf-row label,.mp .lf-label{font-size:13px;font-weight:700}
.mp .lf-opt{font-weight:500;color:var(--ink-soft)}
.mp .req{color:var(--crit)}
.mp .lf-row input,.mp .lf-row select,.mp .lf-row textarea{font:inherit;font-size:14.5px;color:var(--ink);background:var(--bg);border:1.5px solid var(--line);border-radius:10px;padding:11px 13px;width:100%}
.mp .lf-row textarea{min-height:76px;resize:vertical}
.mp .lf-row input:focus,.mp .lf-row select:focus,.mp .lf-row textarea:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 25%,transparent)}
.mp .lf-row input[aria-invalid="true"]{border-color:var(--crit)}
.mp .pill-group{display:flex;flex-wrap:wrap;gap:8px}
.mp .pill-btn{cursor:pointer;font-size:13px;font-weight:700;padding:7px 13px;border-radius:100px;background:var(--surface);border:1.5px solid var(--line);color:var(--ink)}
.mp .pill-btn[aria-pressed="true"]{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.mp .hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.mp .lf-err{font-size:13.5px;color:var(--crit);font-weight:600}
.mp .lf-legal{font-size:12px;color:var(--muted)}
.mp .lf .btn{width:100%}
.mp .lead-done{display:grid;gap:10px;text-align:center;justify-items:center;padding-block:12px}
.mp .done-check{width:48px;height:48px;border-radius:50%;background:var(--ok-soft);color:var(--ok);display:grid;place-items:center;font-size:22px;font-weight:800}
.mp .lead-done p{color:var(--muted);font-size:14.5px;max-width:36ch}

/* Cockpit */
.mp .cockpit{display:flex;flex-wrap:wrap;gap:16px 32px;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:var(--r);padding:26px;background:var(--surface)}
.mp .cockpit > div{flex:1 1 420px;min-width:0;display:grid;gap:8px}
.mp .cockpit h3{font-size:20px;font-weight:800}
.mp .cockpit p{color:var(--muted);font-size:15.5px;max-width:70ch}

/* A link under a section's intro (the related catalogue use case). */
.mp .sec-h .sec-link{font-size:14.5px;font-weight:800;text-decoration:none}
.mp .sec-h .sec-link:hover{text-decoration:underline}

/* US quotation marks on the English page (the French ones above). The page
   is lang="en-US": :lang(en) matches it, html[lang="en"] wouldn't. */
.mp:lang(en) .pain q{quotes:"\201C" "\201D"}

/* A hero without an animation: the text takes the whole width. */
.mp .mp-hero-grid.solo{grid-template-columns:minmax(0,1fr)}

/* Key points under the hero's buttons. */
.mp .mp-pts{list-style:none;margin:28px 0 0;padding:20px 0 0;border-top:1px solid var(--glass-line);display:flex;flex-wrap:wrap;gap:10px 24px;font-size:14px;color:var(--on-blue-text)}
.mp .mp-pts li{display:flex;gap:8px;align-items:center}
.mp .mp-pts svg{width:18px;height:18px;color:var(--mint);flex:none}

/* Field insights with three cards: one row of three, then one column. */
.mp .pains.n3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:760px){ .mp .pains.n3{grid-template-columns:1fr} }

/* Simple cards and numbered steps (CardsBlock, StepsBlock). */
.mp .cards3{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.mp .card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:22px;display:flex;flex-direction:column;gap:12px;transition:transform .18s,box-shadow .18s}
.mp .card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.mp .card h3{font-size:17px;line-height:1.3}
.mp .card p{color:var(--muted);font-size:14.5px}
.mp .how-steps .n{align-self:flex-start;font:800 13px var(--f-mono);color:var(--accent);background:var(--accent-soft);border-radius:100px;padding:4px 11px}
@media (max-width:900px){ .mp .cards3{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:620px){ .mp .cards3{grid-template-columns:1fr} }

/* What you gain (GainsBlock): a blue box of gains, then the Cockpit line. */
.mp .why{background:linear-gradient(160deg,var(--blue-dark) 0%,var(--blue) 62%,#5A6BE0 100%);color:#fff;border-radius:28px;padding:48px;position:relative;overflow:hidden}
.mp .why::before{content:"";position:absolute;top:-140px;right:-100px;width:380px;height:380px;border-radius:50%;background:rgba(255,255,255,.07)}
.mp .why > *{position:relative}
.mp .why .kicker{color:var(--on-blue-soft)}
.mp .why h2{font-size:clamp(26px,3.4vw,36px);font-weight:800;margin:10px 0 0;max-width:22ch}
.mp .why-g{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:30px}
.mp .why-g div{background:var(--glass);border:1px solid var(--glass-line);border-radius:14px;padding:20px}
.mp .why-g svg{width:24px;height:24px;color:var(--mint);margin-bottom:10px}
.mp .why-g h3{font-size:16.5px;margin-bottom:6px}.mp .why-g p{font-size:14px;color:var(--on-blue-text)}
.mp .mod-line{display:flex;gap:10px;align-items:center;margin-top:24px;font-size:14.5px;color:var(--on-blue-text)}
.mp .mod-line svg{width:20px;height:20px;color:var(--mint);flex:none}
.mp .mod-line a{color:#fff;font-weight:700;text-underline-offset:3px;white-space:nowrap}
@media (max-width:980px){ .mp .why-g{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:860px){ .mp .why{padding:32px 22px;border-radius:22px} }
@media (max-width:520px){ .mp .why-g{grid-template-columns:1fr} }

/* Lead form: its steps as an icon list, and e-mail and phone side by side. */
.mp .get{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.mp .get li{display:flex;gap:12px;align-items:flex-start}
.mp .get-ic{flex:none;width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.14);color:var(--mint);display:grid;place-items:center}
.mp .get-ic svg{width:18px;height:18px}
.mp .get b{display:block;font-family:var(--f-display);font-size:15px}
.mp .get li > span:last-child > span{font-size:14px;color:var(--on-blue-text)}
.mp .lf.lf-wide{margin-top:14px}
