/* ─────────────────────────────────────────────────────────────────────────────
   multika.app — feuille unique.
   Design system de l'application (cobalt, soft-cloud, ink, Inter + JetBrains
   Mono vendorées) : le site EST l'app, même langage visuel.
   ──────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  --cobalt: #0064e0;
  --cobalt-deep: #0457cb;
  --cobalt-soft: rgba(0, 145, 255, 0.12);
  --cloud: #f1f4f7;
  --ink: #0a1317;
  --slate: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --hairline: #e2e8f0;
  --panel: #f8fafc;
  --success: #31a24c;
  --attention: #f2a918;
  --critical: #e41e3f;
  --critical-deep: #a30022;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--slate);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
header { border-bottom: 1px solid var(--hairline); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--slate); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--cobalt);
  color: #fff; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.brand-name { font-weight: 700; font-size: 17px; }
.nav-link { font-size: 14px; color: var(--muted); }
.nav-link:hover { color: var(--cobalt); text-decoration: none; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 56px; }
.kicker {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--cobalt);
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(34px, 5.5vw, 56px); font-weight: 700;
  line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 20px;
}
.lede { font-size: 18px; color: var(--body); max-width: 640px; margin-bottom: 14px; }
.free-note { font-size: 15px; color: var(--muted); max-width: 640px; margin-bottom: 32px; }
.free-note strong { color: var(--slate); }

.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--slate); color: #fff; font-weight: 700; font-size: 15px;
  padding: 14px 24px; border-radius: 999px;
}
.cta:hover { text-decoration: none; opacity: 0.92; }
.cta svg { flex-shrink: 0; }
.cta-side { font-size: 13px; color: var(--faint); }

/* ── Bande maquettes ────────────────────────────────────────────────────── */
.phones-band { background: var(--panel); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 44px; padding: 64px 0; }
.phone-fig { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone {
  width: 260px; padding: 10px; border-radius: 38px; background: #0f172a;
  box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.35); position: relative;
}
.phone-notch {
  position: absolute; left: 50%; transform: translateX(-50%); top: 10px; z-index: 2;
  width: 86px; height: 20px; background: #0f172a; border-radius: 0 0 12px 12px;
}
.phone-screen {
  width: 240px; height: 500px; border-radius: 30px; overflow: hidden;
  background: var(--cloud); position: relative;
}
.phone-cap { font-size: 13px; color: var(--muted); text-align: center; max-width: 240px; line-height: 1.4; }

/* écrans miniatures — unités fixes, tout est dessiné en CSS */
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; }
.scr-pad { padding: 32px 12px 12px; gap: 10px; }
.mini-card {
  background: #fff; border-radius: 12px; padding: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex; flex-direction: column; gap: 7px;
}
.mini-row { display: flex; align-items: center; justify-content: space-between; }
.mini-label { color: #5d6c7b; font-size: 8px; }
.mini-faint { color: #8a98a5; font-size: 7.5px; }
.mini-strong { color: var(--ink); font-weight: 700; font-size: 9.5px; }
.mini-bar { height: 4px; border-radius: 999px; background: var(--cloud); overflow: hidden; }
.mini-bar span { display: block; height: 100%; background: var(--cobalt); }
.mini-cta {
  border-radius: 999px; background: var(--cobalt); color: #fff;
  font-weight: 700; font-size: 9px; letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: center; height: 28px;
}
.mini-cta.small { height: 24px; font-size: 8.5px; }
.mini-avatar-row { display: flex; align-items: center; gap: 8px; }
.mini-avatar {
  width: 26px; height: 26px; border-radius: 999px; background: var(--cobalt);
  font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.mini-id { display: flex; flex-direction: column; line-height: 1.15; }
.mini-id .app { color: #8a98a5; font-size: 7px; }
.mini-id .who { color: var(--ink); font-weight: 700; font-size: 12px; }
.mini-badge {
  margin-left: auto; border-radius: 999px; padding: 2px 8px;
  background: rgba(161, 33, 206, 0.12); color: #a121ce;
  font-weight: 700; font-size: 7px;
}
.mini-tabs {
  margin-top: auto; display: flex; gap: 4px; background: #fff;
  border-radius: 999px; padding: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.mini-tabs span {
  flex: 1; text-align: center; padding: 4px 0; border-radius: 999px;
  font-weight: 700; font-size: 6.5px; color: #8a98a5;
}
.mini-tabs span.on { background: var(--ink); color: #fff; }

.scr-dark { background: var(--ink); color: #fff; }
.scr-dark .track { height: 4px; background: rgba(255, 255, 255, 0.1); }
.scr-dark .track span { display: block; height: 100%; }
.scr-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 0; }
.scr-back {
  width: 18px; height: 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.1);
  font-size: 9px; display: flex; align-items: center; justify-content: center;
}
.scr-count { font-weight: 700; font-size: 10px; }
.scr-center {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; text-align: center; padding: 0 16px;
}
.scr-eyebrow { color: rgba(255, 255, 255, 0.4); font-size: 7px; letter-spacing: 0.12em; }
.scr-answer { font-family: var(--mono); font-weight: 700; font-size: 26px; }
.scr-given { color: rgba(255, 255, 255, 0.7); font-size: 10px; }
.scr-given em { font-style: normal; font-family: var(--mono); color: #ff6b81; }
.scr-pause { color: rgba(255, 255, 255, 0.4); font-size: 8px; }
.scr-numpad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 0 12px 16px; opacity: 0.4;
}
.scr-numpad span {
  height: 24px; border-radius: 8px; background: rgba(255, 255, 255, 0.08);
  font-weight: 700; font-size: 10px; display: flex; align-items: center; justify-content: center;
}

.heat-title { color: var(--ink); font-weight: 700; font-size: 14px; }
.heat-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; }
.heat-grid i { aspect-ratio: 1; border-radius: 2px; background: var(--cloud); }
.heat-grid i.g { background: var(--success); }
.heat-grid i.a { background: var(--attention); }
.heat-grid i.r { background: var(--critical); }
.heat-grid i.d { background: var(--critical-deep); }
.frag-row { display: flex; align-items: center; justify-content: space-between; }
.frag-pair { font-family: var(--mono); font-weight: 700; color: var(--ink); font-size: 10px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stat-cell { background: var(--cloud); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; }
.stat-cell b { font-family: var(--mono); color: var(--ink); font-size: 11px; }
.stat-cell i { font-style: normal; color: #8a98a5; font-size: 6.5px; }

/* ── Sections ───────────────────────────────────────────────────────────── */
section.block { padding: 64px 0; }
h2 {
  font-size: clamp(24px, 3.5vw, 34px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 36px;
}
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.feature h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── Bande prix (freemium D19) ──────────────────────────────────────────── */
.pricing-band { background: var(--panel); border-top: 1px solid var(--hairline); }
.pricing { max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.pricing h2 { margin-bottom: 20px; }
.pricing p { font-size: 15px; color: var(--body); line-height: 1.7; margin-bottom: 16px; }
.price-card {
  background: #fff; border: 1px solid var(--hairline); border-radius: 20px;
  padding: 28px; margin: 28px 0; text-align: center;
}
.price-line { display: flex; align-items: baseline; justify-content: center; gap: 12px; flex-wrap: wrap; }
.price-free { font-size: 22px; font-weight: 700; }
.price-arrow { color: var(--faint); }
.price-amount { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.price-sub { font-size: 14px; color: var(--muted); margin-top: 6px; }
.price-points {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  margin-top: 18px; font-size: 13px; color: var(--muted);
}
.price-points span::before { content: '✓ '; color: var(--success); font-weight: 700; }

/* ── Pages internes (aide, confidentialité) ─────────────────────────────── */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 16px; }
.page .intro { font-size: 15px; color: var(--body); margin-bottom: 48px; }
.page section { margin-bottom: 36px; }
.page h2 { font-size: 17px; margin-bottom: 10px; }
.page p, .page li { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 10px; }
.page .stamp { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-bottom: 40px; }
.page .divider { border-top: 1px solid var(--hairline); padding-top: 32px; margin-top: 48px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--hairline); background: var(--panel); }
.foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; padding: 32px 0;
}
.foot-brand { display: flex; flex-direction: column; gap: 2px; }
.foot-brand b { font-size: 16px; }
.foot-brand span { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.foot-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-links a { font-size: 13px; color: var(--faint); }
.foot-links a:hover { color: var(--cobalt); text-decoration: none; }
.foot-copy { font-size: 12px; color: var(--faint); }

@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  .phones { gap: 32px; padding: 48px 0; }
  section.block { padding: 48px 0; }
}
