/* ============================================================
   JUSTIF. — Landing. Reprend fidèlement le design system de l'app
   (mêmes tokens : flamme #f16034, Schibsted Grotesk, radii, ombres).
   ============================================================ */

:root {
  --black: #000; --white: #fff;
  --gray-950: #0a0a0b; --gray-900: #131315; --gray-800: #232427;
  --gray-500: #6b6e76; --gray-400: #8b8e96; --gray-300: #b3b6bd;
  --gray-200: #d4d6da; --gray-100: #e8e9eb; --gray-50: #f5f5f6;

  --flame-600: #d24e26; --flame-500: #f16034; --flame-400: #ff7a4d; --flame-100: #ffe3d8;
  --company-a: #4d8af0; --company-b: #9d7bf5; --company-c: #17b8a0;

  --text-primary: #000;
  --text-secondary: rgba(0, 0, 0, 0.6);
  --text-tertiary: rgba(0, 0, 0, 0.4);
  --text-accent: var(--flame-600);
  --accent: var(--flame-500);

  --surface-page: #fff;
  --surface-raised: var(--gray-50);
  --surface-accent: rgba(241, 96, 52, 0.1);
  --border-subtle: rgba(0, 0, 0, 0.09);
  --border-strong: rgba(0, 0, 0, 0.14);

  --font-sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Spline Sans Mono", "SFMono-Regular", Consolas, monospace;

  --tracking-heading: -0.02em; --tracking-caps: 0.08em;
  --radius-sm: 10px; --radius-md: 14px; --radius-lg: 20px; --radius-xl: 28px; --radius-pill: 999px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.07);
  --shadow-float: 0 24px 64px rgba(0, 0, 0, 0.14);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--surface-page);
  line-height: 1.5;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- marque ---------- */
.brand {
  font-weight: 800; font-size: 22px; letter-spacing: var(--tracking-heading);
  display: inline-flex; align-items: baseline;
}
.brand::after { content: "."; color: var(--accent); }
.brand.big { font-size: 34px; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-pill);
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s var(--ease-out), background 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
  white-space: nowrap;
}
.btn.primary { background: var(--black); color: var(--white); }
.btn.primary:hover { background: var(--gray-800); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn.ghost:hover { background: var(--surface-raised); }
.btn.flame { background: var(--accent); color: var(--white); box-shadow: 0 8px 24px rgba(241, 96, 52, 0.32); }
.btn.flame:hover { background: var(--flame-400); transform: translateY(-1px); }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(1.4) blur(20px);
  -webkit-backdrop-filter: saturate(1.4) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.link { font-size: 15px; color: var(--text-secondary); font-weight: 600; }
.nav-links a.link:hover { color: var(--text-primary); }
@media (max-width: 720px) { .nav-links a.link { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 88px 0 64px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--text-accent);
  text-transform: uppercase; letter-spacing: var(--tracking-caps);
  background: var(--surface-accent); padding: 7px 14px; border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 60px); font-weight: 800; line-height: 1.04;
  letter-spacing: var(--tracking-heading); margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent); }
.hero .lead { font-size: 19px; color: var(--text-secondary); line-height: 1.55; max-width: 30ch; margin-bottom: 30px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 18px; font-size: 13.5px; color: var(--text-tertiary); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .lead { max-width: none; }
  .phone-wrap { order: -1; }
}

/* ---------- maquette téléphone (rendu CSS de l'écran d'accueil de l'app) ---------- */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 300px; background: #fff; border-radius: 40px; padding: 12px;
  border: 1px solid var(--border-subtle); box-shadow: var(--shadow-float);
  position: relative;
}
.phone .screen { background: #fff; border-radius: 30px; padding: 20px 16px 22px; overflow: hidden; }
.phone .notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 6px; border-radius: 999px; background: var(--gray-100); }
.ph-brand { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; margin: 8px 0 16px; }
.ph-brand::after { content: "."; color: var(--accent); }
.ph-alert { background: #fcefd7; color: #8a6100; font-size: 12.5px; font-weight: 600; padding: 10px 12px; border-radius: 12px; margin-bottom: 12px; }
.ph-stat { background: var(--black); color: #fff; border-radius: 18px; padding: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.ph-stat .n { font-size: 40px; font-weight: 800; line-height: 1; }
.ph-stat .t { font-size: 15px; font-weight: 700; }
.ph-stat .s { font-size: 11.5px; color: rgba(255, 255, 255, 0.55); }
.ph-card { border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; }
.ph-row { display: flex; align-items: center; gap: 10px; padding: 13px 14px; }
.ph-row + .ph-row { border-top: 1px solid var(--border-subtle); }
.ph-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ph-row .name { font-weight: 700; font-size: 13.5px; }
.ph-row .sub { font-size: 11px; color: var(--text-tertiary); }
.ph-row .amt { margin-left: auto; font-weight: 700; font-size: 13.5px; }
.ph-pill { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.ph-pill.ok { background: #dff5e9; color: #14914d; }
.ph-pill.miss { background: #fde5e5; color: #e03e3e; }

/* ---------- bandeau banques ---------- */
.banks { padding: 22px 0 8px; }
.banks p { text-align: center; color: var(--text-tertiary); font-size: 14px; }
.banks b { color: var(--text-secondary); font-weight: 700; }

/* ---------- sections ---------- */
section.block { padding: 84px 0; }
.section-head { max-width: 620px; margin: 0 auto 52px; text-align: center; }
.section-head .kicker { font-size: 13px; font-weight: 700; color: var(--text-accent); text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: var(--tracking-heading); line-height: 1.1; margin: 12px 0; }
.section-head p { font-size: 17px; color: var(--text-secondary); }

/* ---------- étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface-page); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card); }
.step .num { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent); }
.step h3 { font-size: 19px; font-weight: 800; margin: 14px 0 8px; letter-spacing: -0.01em; }
.step p { font-size: 15px; color: var(--text-secondary); line-height: 1.55; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- features ---------- */
.features { background: var(--surface-raised); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .grid3 { grid-template-columns: 1fr; } }
.feat { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 24px; }
.feat .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--surface-accent); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feat h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.feat p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.5; }

/* ---------- sécurité ---------- */
.security { background: var(--black); color: #fff; }
.security .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.security .kicker { color: var(--flame-400); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.security h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: var(--tracking-heading); line-height: 1.1; margin: 14px 0 16px; }
.security p { color: rgba(255, 255, 255, 0.66); font-size: 16.5px; line-height: 1.6; }
.security ul { list-style: none; display: grid; gap: 14px; }
.security li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: rgba(255, 255, 255, 0.9); }
.security li svg { flex: none; color: var(--flame-400); margin-top: 2px; }
@media (max-width: 820px) { .security .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- CTA final ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: var(--tracking-heading); line-height: 1.08; margin-bottom: 14px; }
.cta p { font-size: 18px; color: var(--text-secondary); margin-bottom: 30px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border-subtle); padding: 40px 0; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer .flinks { display: flex; gap: 24px; flex-wrap: wrap; }
footer .flinks a { font-size: 14px; color: var(--text-secondary); }
footer .flinks a:hover { color: var(--text-primary); }
footer .copy { font-size: 13px; color: var(--text-tertiary); }

/* ---------- pages légales ---------- */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 800; letter-spacing: var(--tracking-heading); margin-bottom: 8px; }
.legal .updated { color: var(--text-tertiary); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 21px; font-weight: 800; margin: 34px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { font-size: 15.5px; color: var(--text-secondary); line-height: 1.65; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 12px 20px; display: grid; gap: 6px; }
.legal strong { color: var(--text-primary); }
.legal .callout { background: var(--surface-accent); border-radius: var(--radius-md); padding: 16px 18px; font-size: 14px; color: var(--flame-600); margin: 20px 0; }
.legal a.inline { color: var(--flame-600); font-weight: 600; text-decoration: underline; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 28px; }
.back:hover { color: var(--text-primary); }
