/* Landing Mizenplace : mêmes teintes que l'application (apps/web/src/shared/design/tokens.css).
   Manrope ; Instrument Serif en italique seulement sur les mots d'accent des titres.
   Polices hébergées ici (licence OFL, voir assets/fonts/LICENSES.md) : aucun appel à un service tiers. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
}

:root {
  --bg: #e9eaef;
  --surface: #ffffff;
  --ink: #1f2330;
  --ink-strong: #232838;
  --muted: #4a4f5e;
  --subtle: #6a6f7e;
  --border: #d9dbe3;
  --accent: #c9481f;
  --accent-bright: #d9542e;
  --accent-soft: #fdf3ef;
  --accent-text: #a13a1a;
  --success: #2f6b4b;
  --success-bg: #e1efe6;
  --soft: #f4f5f8;
  --dark: #1b2030;
  --radius: 28px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 5; background: rgba(233, 234, 239, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(31, 35, 48, 0.06); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark { display: block; width: 40px; height: 40px; }
.brand-name { font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: -0.04em; color: var(--ink-strong); }
.nav { display: flex; gap: 30px; font-size: 15px; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* Boutons : cibles de 48 px minimum */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 30px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; border: 1.5px solid transparent; transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 14px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-bright); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }

/* Hero */
.hero { padding: 56px 0 0; text-align: center; background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 62%, #939bb0 62%, #939bb0 100%); }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border-radius: 18px; background: var(--surface); font-size: 13px; font-weight: 700; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1 { margin: 26px auto 0; max-width: 980px; font-size: clamp(38px, 6.4vw, 84px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; text-wrap: balance; }
h1 .serif { font-size: 1.12em; }
.lead { margin: 26px auto 0; max-width: 640px; font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.note { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--subtle); }
.hero-shot { margin-top: 48px; padding-bottom: 56px; }
.device { margin: 0 auto; max-width: 1040px; border-radius: 26px; padding: 10px; background: var(--ink-strong); box-shadow: 0 40px 90px -30px rgba(27, 32, 48, 0.55); }
.device img { border-radius: 18px; }
.caption { margin-top: 14px; font-size: 13px; color: #fff; opacity: 0.9; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--dark); color: #fff; }
.dots { background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.1px, transparent 1.4px); background-size: 14px 14px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.section-dark .eyebrow { color: #f0a58a; }
h2 { max-width: 820px; font-size: clamp(30px, 4.4vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.08; text-wrap: balance; }
h2 .serif { font-size: 1.1em; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.lead-dark { margin-top: 18px; max-width: 640px; color: #c5c9d6; }
.muted { color: var(--muted); }
.fineprint { margin-top: 28px; max-width: 760px; font-size: 14px; color: var(--subtle); }
.section-dark .fineprint { color: #aab0c2; }

.two { display: grid; gap: 48px; align-items: start; grid-template-columns: 1fr 1fr; }
.two p { margin-top: 18px; max-width: 520px; color: var(--muted); }
.two h2 + p { margin-top: 24px; }

.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: none; }
.badge-ok { background: var(--success-bg); color: var(--success); }

.fits { display: grid; gap: 12px; }
.fits li { background: var(--surface); border-radius: 22px; padding: 20px 24px; color: var(--muted); }
.fits strong { color: var(--ink); }

/* Problème */
.problems { margin-top: 44px; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); counter-reset: p; }
.problems li { counter-increment: p; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 22px; padding: 24px; color: #e5e7ef; }
.problems li::before { content: counter(p, decimal-leading-zero); display: block; margin-bottom: 10px; font-size: 13px; font-weight: 800; color: #f0a58a; letter-spacing: 0.08em; }

/* Piliers */
.pillar { margin-top: 72px; display: grid; gap: 56px; align-items: center; grid-template-columns: 1fr 1.15fr; }
.pillar-rev { grid-template-columns: 1.15fr 1fr; }
.pillar-rev .pillar-text { order: 2; }
.num { font-size: 14px; font-weight: 800; color: var(--accent-text); letter-spacing: 0.08em; }
.pillar-text h3 { margin-top: 6px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; }
.pillar-text > p { margin-top: 16px; color: var(--muted); }
.ticks { margin-top: 20px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink); font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 8px; border-left: 3px solid var(--success); border-bottom: 3px solid var(--success); transform: rotate(-45deg); }
.ticks-soon li::before { border-color: var(--accent); }
.soon { margin-top: 20px; font-size: 15px; color: var(--subtle); }
.shot { border-radius: 24px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 70px -34px rgba(27, 32, 48, 0.5); border: 1px solid rgba(31, 35, 48, 0.08); }
.shot-phone { max-width: 340px; margin-inline: auto; border-radius: 34px; border: 8px solid var(--ink-strong); }
/* Recadrage sur la colonne des arrivées de la capture du service (x 72 % à 98,5 %, y 9 % à 51 %). */
.shot-crop { aspect-ratio: 543 / 640; max-width: 560px; margin-inline: auto; }
.shot-crop img { width: 377%; max-width: none; height: auto; margin-left: -271%; margin-top: -25.4%; }

/* Démonstration */
.demo { margin-top: 44px; display: grid; gap: 48px; align-items: center; grid-template-columns: 0.8fr 1.2fr; }
.steps { display: grid; gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 4px 60px; color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 2px; }

/* Liste d'attente */
.rules { display: grid; gap: 10px; counter-reset: r; }
.rules li { display: flex; align-items: center; gap: 16px; background: var(--surface); border-radius: 20px; padding: 18px 22px; font-weight: 600; }
.rules span { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-weight: 800; }

/* Rôles */
.roles { margin-top: 44px; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.roles article { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; padding: 28px; }
.roles p { margin-top: 10px; color: #c5c9d6; }

/* Disponible / bientôt */
.state { margin-top: 40px; display: grid; gap: 20px; grid-template-columns: 1.15fr 1fr; }
.state-col { background: var(--surface); border-radius: var(--radius); padding: 32px; }
.state-col .ticks { margin-top: 18px; }

/* Prix */
.pricing { margin-top: 44px; display: grid; gap: 20px; grid-template-columns: 1.1fr 1fr 0.8fr; align-items: stretch; }
.card { background: var(--surface); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.card-pilot { background: var(--ink-strong); color: #fff; }
.card-pilot .ticks li { color: #e5e7ef; }
.card-pilot .ticks li::before { border-color: #7fd0a2; }
.tag { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.card-pilot .tag { color: #f0a58a; }
.price strong { font-size: clamp(52px, 6vw, 72px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price span { font-size: 16px; color: var(--subtle); font-weight: 600; }
.card-pilot .price span { color: #c5c9d6; }
.card-pilot .btn { margin-top: auto; align-self: flex-start; }
.sms { margin-top: auto; padding: 20px 22px; border-radius: 20px; background: var(--soft); }
.sms h3 { font-size: 17px; }
.sms p { margin-top: 6px; font-size: 15px; color: var(--muted); }

.card-note { font-size: 14px; color: #c5c9d6; }
.how { margin-top: auto; padding: 22px; border-radius: 20px; background: var(--soft); }
.how h3 { font-size: 17px; }
.how ol { margin-top: 12px; display: grid; gap: 12px; counter-reset: h; }
.how li { counter-increment: h; position: relative; padding-left: 34px; font-size: 15px; color: var(--muted); }
.how li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.how strong { color: var(--ink); }

/* Option SMS : simulateur */
.sms-box { margin-top: 20px; display: grid; gap: 32px; grid-template-columns: 1.1fr 1fr; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 36px; }
.sms-box > *, .estimator > * { min-width: 0; }
.estimator select, .estimator input { width: 100%; max-width: 100%; }
.sms-text .eyebrow { margin-bottom: 8px; }
.sms-text h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.03em; }
.sms-text p { margin-top: 12px; color: var(--muted); }
.sms-text .fineprint { margin-top: 12px; font-size: 13px; }
.estimator { display: grid; gap: 14px; background: var(--soft); border-radius: 22px; padding: 24px; }
.estimator label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.estimator input, .estimator select { min-height: 52px; padding: 0 16px; border: 1.5px solid var(--border); border-radius: 14px; font: inherit; font-weight: 600; background: #fff; color: var(--ink); }
.estimate { font-size: 16px; color: var(--muted); }
.estimate strong { color: var(--ink); font-size: 20px; }

/* FAQ */
.faq-wrap { display: grid; gap: 48px; grid-template-columns: 0.8fr 1.2fr; align-items: start; }
.faq-wrap > div:first-child { position: sticky; top: 100px; }
.faq details { background: var(--surface); border-radius: 20px; margin-bottom: 10px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 500; color: var(--accent); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 640px; }

/* CTA final */
.final-in { display: grid; gap: 56px; grid-template-columns: 1fr 1fr; align-items: center; }
.form { display: grid; gap: 14px; background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 32px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.form input { min-height: 54px; padding: 0 18px; border: 1.5px solid var(--border); border-radius: 16px; font: inherit; font-weight: 500; background: #fff; color: var(--ink); }
.form input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .btn { width: 100%; margin-top: 4px; }
/* Champ piège anti-robot : hors de l'écran (pas `display: none`, que certains robots reconnaissent). */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--subtle); }
.form-note a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.form-msg a { text-decoration: underline; text-underline-offset: 3px; color: inherit; font-weight: 800; }
.form-msg { min-height: 1.4em; font-size: 14px; font-weight: 600; color: var(--muted); }
.form-msg.is-ok { color: var(--success); }
.form-msg.is-error { color: #b42318; }

/* Pages légales */
.legal { padding-block: clamp(40px, 6vw, 80px); max-width: 780px; }
.legal h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); text-align: left; }
.legal h2 { margin-top: 36px; font-size: 22px; letter-spacing: -0.02em; }
.legal p, .legal li { margin-top: 12px; color: var(--muted); }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.legal-date { margin-top: 12px; font-size: 14px; color: var(--subtle); }
.todo { background: #fff2c2; color: #5a4300; padding: 1px 6px; border-radius: 6px; font-weight: 800; }

/* Pied de page */
.foot { padding: 28px 0 40px; font-size: 14px; color: var(--subtle); }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.brand-text { font-weight: 800; letter-spacing: -0.04em; color: var(--ink-strong); }
.foot-links { display: flex; gap: 20px; flex-basis: 100%; }
.foot-links a { text-decoration: underline; text-underline-offset: 3px; }
.foot-links a:hover { color: var(--ink); }

/* Tablette et téléphone */
@media (max-width: 980px) {
  .nav { display: none; }
  .two, .demo, .state, .pricing, .faq-wrap, .final-in, .pillar, .pillar-rev, .sms-box { grid-template-columns: 1fr; }
  .pillar-rev .pillar-text { order: 0; }
  .pillar { gap: 32px; margin-top: 56px; }
  .problems, .roles { grid-template-columns: 1fr 1fr; }
  .faq-wrap > div:first-child { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-in { min-height: 64px; }
  .btn-sm { padding: 0 14px; font-size: 13px; }
  .hero { padding-top: 40px; }
  .cta-row .btn { width: 100%; }
  .problems, .roles { grid-template-columns: 1fr; }
  .state-col, .card, .form { padding: 24px; }
  .device { padding: 6px; border-radius: 18px; }
  .device img { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
