/* ─────────────────────────────────────────────────────────────────────────────
   Web-Client Radar — site vitrine
   Même système visuel que l'outil (public/style.css) : fond gris clair,
   surfaces blanches, accent #FB4935, arrondis 14/11/8, ombres discrètes.
   Fredoka partout (la police de l'outil) + IBM Plex Mono pour code et données.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --paper:      #f3f4f6;
  --paper-2:    #eceff3;
  --card:       #ffffff;
  --ink:        #1f2430;
  --ink-2:      #667085;
  --ink-3:      #98a1b0;
  --line:       #e6e8ec;
  --line-soft:  #eef0f3;

  --coral:      #FB4935;
  --coral-deep: #DE3623;
  --coral-soft: #FEEAE7;
  --signal:     #1f9d5b;
  --signal-soft:#e7f6ee;
  --amber:      #c07d00;
  --amber-soft: #fbf1dc;

  --r-lg: 14px;
  --r-md: 11px;
  --r-sm: 8px;

  --shadow-1: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.07);
  --shadow-2: 0 6px 20px rgba(16,24,40,.10);
  --shadow-pop: 0 10px 30px rgba(16,24,40,.16);

  --display: "Fredoka", -apple-system, "Segoe UI", sans-serif;
  --body: "Fredoka", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;

  --w: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.18; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--coral-deep); }
img, svg, canvas { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* Eyebrow « relevé GPS » : le dispositif structurel du site */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
}

/* ─── Boutons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s, border-color .12s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--coral-deep); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-small { font-size: 14px; padding: 9px 18px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ─── Topbar ─────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-in {
  max-width: var(--w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; }
.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.topnav a:hover { color: var(--ink); }
.topbar-cta { display: flex; gap: 10px; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero-sub { font-size: 19px; color: var(--ink-2); max-width: 34em; margin-bottom: 28px; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note::before { content: "✓"; color: var(--signal); font-weight: 800; }

.radar-frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  padding: 18px;
}
.radar-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  padding: 0 4px 12px;
}
.radar-head .live { color: var(--signal); }
#radar { display: block; width: 100%; height: auto; border-radius: var(--r-md); }
.radar-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  padding: 12px 4px 0;
}
.radar-foot strong { color: var(--amber); }

/* ─── Journal de balayage (reprend le log panel de l'outil) ──────────────── */

.scanlog { border-block: 1px solid var(--line); background: var(--card); }
.scanlog-in {
  max-width: var(--w);
  margin: 0 auto;
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-2);
  overflow-x: auto;
}
.scanlog-in .ok { color: var(--signal); font-weight: 700; }
.scanlog-in .num { color: var(--ink); font-weight: 700; }

/* ─── Sections génériques ────────────────────────────────────────────────── */

.section { padding: 84px 0; }
.section-alt { background: var(--card); border-block: 1px solid var(--line-soft); }
.section h2 { font-size: clamp(27px, 3.4vw, 38px); max-width: 22em; }
.section-lead { font-size: 18px; color: var(--ink-2); max-width: 38em; margin-bottom: 40px; }

/* ─── Avant / Après ──────────────────────────────────────────────────────── */

.mirror { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.mirror-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
}
.mirror-col.bad { border-top: 4px solid var(--ink-3); }
.mirror-col.good { border-top: 4px solid var(--signal); box-shadow: var(--shadow-1); }
.mirror-col h3 { font-size: 18px; margin-bottom: 18px; }
.mirror-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.mirror-col li { padding-left: 28px; position: relative; color: var(--ink-2); font-size: 15.5px; }
.mirror-col.bad li::before { content: "✕"; position: absolute; left: 0; color: var(--ink-3); font-weight: 800; }
.mirror-col.good li::before { content: "✓"; position: absolute; left: 0; color: var(--signal); font-weight: 800; }
.mirror-cost {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink-2);
}
.mirror-col.bad .mirror-cost b { color: var(--coral-deep); }
.mirror-col.good .mirror-cost b { color: var(--signal); }

/* ─── Méthode 01/02/03 ───────────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.step-n {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
  letter-spacing: .12em;
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 19px; }
.step p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

/* ─── Aperçu résultats ───────────────────────────────────────────────────── */

.preview {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 26px;
  margin-top: 40px;
}
.preview-head {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}
.lead-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 10px;
  border-top: 1px solid var(--line-soft);
}
.lead-score {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amber-soft);
  color: var(--ink);
  border: 2px solid var(--amber);
}
.lead-row:first-of-type .lead-score { background: var(--signal-soft); border-color: var(--signal); }
.lead-name { font-weight: 700; }
.lead-meta { font-size: 13.5px; color: var(--ink-2); font-family: var(--mono); }
.lead-badge {
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-deep);
  white-space: nowrap;
}

/* ─── Section API ────────────────────────────────────────────────────────── */

.api-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}
.api-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.api-points li { padding-left: 30px; position: relative; color: var(--ink-2); }
.api-points li::before { content: "→"; position: absolute; left: 0; color: var(--coral); font-weight: 800; }
.api-points b { color: var(--ink); }

.code {
  background: var(--ink);
  color: #E8EEF0;
  border-radius: var(--r-lg);
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  overflow-x: auto;
  box-shadow: var(--shadow-2);
}
.code .c { color: #6E8494; }
.code .g { color: #6FCF97; }
.code .y { color: #F2C46D; }
.code .r { color: #FF8A7A; }
.code-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 10px;
}

/* ─── ROI ────────────────────────────────────────────────────────────────── */

.roi {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  background: var(--ink);
  color: #F2F6F5;
  border-radius: var(--r-lg);
  padding: 44px 48px;
  margin-top: 40px;
}
.roi-item { text-align: center; }
.roi-item b { display: block; font-family: var(--mono); font-size: 34px; }
.roi-item span { font-size: 14.5px; color: #A9BCC6; }
.roi-vs { font-family: var(--display); font-size: 22px; color: var(--amber); }

/* ─── Tarifs ─────────────────────────────────────────────────────────────── */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; align-items: stretch; }
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-hot { border: 2px solid var(--coral); box-shadow: var(--shadow-2); }
.plan-tag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { font-size: 19px; margin-bottom: 4px; }
.plan-price { font-family: var(--display); font-size: 40px; margin: 10px 0 2px; }
.plan-price small { font-family: var(--body); font-size: 15px; color: var(--ink-2); font-weight: 600; }
.plan-per { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); margin-bottom: 20px; }
.plan ul { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 11px; }
.plan li { padding-left: 26px; position: relative; font-size: 14.5px; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--signal); font-weight: 800; }
.plan .btn { margin-top: auto; }
.plans-note { text-align: center; font-size: 14.5px; color: var(--ink-2); margin-top: 26px; }
.plans-note b { color: var(--signal); }

/* ─── FAQ ────────────────────────────────────────────────────────────────── */

.faq { max-width: 760px; margin: 40px auto 0; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  padding: 18px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--coral); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--ink-2); }

/* ─── CTA final ──────────────────────────────────────────────────────────── */

.cta-final { text-align: center; padding: 90px 0; }
.cta-final h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 0 auto 16px; }
.cta-final p { color: var(--ink-2); font-size: 18px; margin-bottom: 30px; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.footer { background: var(--ink); color: #A9BCC6; padding: 48px 0 36px; font-size: 14.5px; }
.footer-in {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer .brand { color: #fff; margin-bottom: 10px; }
.footer nav { display: grid; gap: 8px; }
.footer nav strong { color: #E8EEF0; margin-bottom: 4px; }
.footer a { color: #A9BCC6; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-legal {
  max-width: var(--w);
  margin: 32px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  color: #7D93A0;
}
.made-by { font-size: 13.5px; }
.made-by a { color: #E8EEF0; font-weight: 600; text-decoration: underline; }

/* ─── Bloc équipe / agence ───────────────────────────────────────────────── */

.team {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px;
  align-items: center;
}
.team-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 28px 30px;
}
.team-card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.team-card .sig { margin-top: 16px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); }

/* ─── Pages compte (connexion / dashboard) ───────────────────────────────── */

.auth-shell { min-height: calc(100vh - 61px); display: grid; place-items: center; padding: 48px 24px; }
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 36px;
}
.auth-card h1 { font-size: 24px; font-family: var(--display); }
.auth-tabs { display: flex; gap: 8px; margin: 18px 0 24px; }
.auth-tab {
  flex: 1;
  padding: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.auth-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 14px; }
.field input {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
}
.field input:focus { border-color: var(--coral); outline: none; }
.form-error {
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
}
.form-hint { font-size: 13.5px; color: var(--ink-2); text-align: center; margin-top: 14px; }

/* Service indisponible (mode sans achats) */
.notice-card { max-width: 520px; }
.notice-card p:not(.eyebrow) { color: var(--ink-2); }
.notice-card .btn { margin-top: 10px; }
.eyebrow.warn { color: var(--amber); }
.eyebrow.warn::before { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }

/* Dashboard */
.dash { max-width: var(--w); margin: 0 auto; padding: 40px 24px 80px; }
.dash h1 { font-family: var(--display); font-size: 28px; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0; }
.dash-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.dash-card h2 { font-size: 15px; font-family: var(--body); font-weight: 800; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.balance-big { font-family: var(--mono); font-size: 42px; font-weight: 700; color: var(--ink); line-height: 1; }
.balance-big small { font-size: 15px; color: var(--ink-3); font-weight: 400; }
.dash-wide { grid-column: 1 / -1; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.table .pos { color: var(--signal); font-weight: 700; font-family: var(--mono); }
.table .neg { color: var(--coral-deep); font-weight: 700; font-family: var(--mono); }

.key-secret {
  background: var(--amber-soft);
  border: 1px dashed var(--amber);
  border-radius: var(--r-sm);
  padding: 14px;
  font-family: var(--mono);
  font-size: 13px;
  word-break: break-all;
  margin: 14px 0;
}
.pack-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.pack-row b { font-family: var(--mono); }

/* ─── Docs & légal ───────────────────────────────────────────────────────── */

.doc { max-width: 820px; margin: 0 auto; padding: 56px 24px 100px; }
.doc h1 { font-family: var(--display); font-size: 34px; }
.doc h2 { font-family: var(--display); font-size: 23px; margin-top: 48px; }
.doc h3 { font-size: 17px; margin-top: 30px; }
.doc p, .doc li { color: var(--ink-2); }
.doc .code { margin: 18px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 18px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); }
.doc th { background: var(--paper-2); font-family: var(--mono); font-size: 12.5px; }
.endpoint {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--paper-2);
  border-radius: var(--r-sm);
  padding: 8px 14px;
  display: inline-block;
  margin: 20px 0 6px;
}
.endpoint .m { color: var(--coral-deep); font-weight: 700; }
.legal-updated { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.todo-fill { background: var(--amber-soft); padding: 1px 6px; border-radius: 4px; font-weight: 700; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero-grid, .api-grid, .team { grid-template-columns: 1fr; gap: 36px; }
  .steps, .plans, .dash-grid { grid-template-columns: 1fr; }
  .mirror { grid-template-columns: 1fr; }
  .roi { grid-template-columns: 1fr; padding: 36px 28px; }
  .topnav { display: none; }
  .plan-hot { order: -1; }
}
@media (max-width: 560px) {
  .hero { padding-top: 44px; }
  .section { padding: 60px 0; }
  .hero-actions .btn { width: 100%; }
}
