/* ============================================================
   ReputaGuard — main-v2.css (refonte V7 « modern », direction C3)
   DESIGN.md : dark #070B13 · Space Grotesk + IBM Plex Mono
   Signature : Reputation Radar. Contrats pricing.js intacts.
   ============================================================ */

/* Fonts self-hosted (pas de tiers — RGPD + fiabilité) */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/IBMPlexMono-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/IBMPlexMono-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/SpaceGrotesk-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/SpaceGrotesk-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/SpaceGrotesk-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #070B13;
  --bg-2: #0A0F1A;
  --panel: #0E1626;
  --panel-2: #121C31;
  --ink: #E9EFFB;
  --muted: #9AA7BD;
  --line: rgba(154, 167, 189, .16);
  --line-soft: rgba(154, 167, 189, .10);
  --accent: #6E8BFF;          /* liens, focus, icônes */
  --accent-clair: #9FB4FF;    /* hover, glow */
  --accent-btn: #4A63E7;      /* fond CTA (blanc ≥ 4.5:1) */
  --accent-soft: rgba(110, 139, 255, .13);
  --cyan: #67E8F9;            /* données live */
  --ok: #3DD68C;
  --warn: #FFC266;
  --danger: #FF8A8A;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --shadow-card: 0 1px 0 rgba(233, 239, 251, .03) inset, 0 12px 32px rgba(2, 5, 10, .45);
  --shadow-pop: 0 24px 64px rgba(2, 5, 10, .6);
  --glow: 0 0 0 1px rgba(110, 139, 255, .35), 0 12px 40px rgba(110, 139, 255, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .55em; letter-spacing: -.015em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }
::selection { background: rgba(110, 139, 255, .32); color: var(--ink); }

.container { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 780px; }
.mono { font-family: var(--mono); }

section[id] { scroll-margin-top: 84px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent-btn); color: #fff; padding: .65rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ============ Header (verre dépoli) ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 19, .74);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 2rem; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
}
.brand-mark { width: 24px; height: 24px; color: var(--accent); flex: none; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .18s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-auth-link { font-weight: 600; color: var(--ink); }
.nav-links .btn-sm { white-space: nowrap; }

/* ============ Boutons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: .62rem 1.15rem; font-weight: 600; font-size: .95rem;
  font-family: inherit; line-height: 1.4; text-decoration: none; cursor: pointer;
  transition: transform .16s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #5573F0, var(--accent-btn));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 10px 28px rgba(74, 99, 231, .28);
}
.btn-primary:hover { background: linear-gradient(180deg, #5C77F0, #4D69E9); box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 14px 36px rgba(74, 99, 231, .38); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: rgba(110, 139, 255, .09); color: #D4DEFF; border-color: rgba(110, 139, 255, .45); }
.btn-ghost:hover { background: rgba(110, 139, 255, .17); border-color: rgba(110, 139, 255, .68); color: #fff; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.04rem; border-radius: 12px; }
.btn-sm { padding: .42rem .9rem; font-size: .87rem; }
.btn-block { width: 100%; }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 5.5rem 0 4.5rem; min-height: 88vh; display: flex; align-items: center; }
.hero .container { width: 100%; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(52% 60% at 18% -6%, rgba(110, 139, 255, .17), transparent 70%),
    radial-gradient(38% 46% at 88% 12%, rgba(103, 232, 249, .07), transparent 70%),
    radial-gradient(60% 50% at 50% 118%, rgba(110, 139, 255, .10), transparent 70%),
    linear-gradient(180deg, #080D17, var(--bg));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(154,167,189,.05) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(154,167,189,.045) 0 1px, transparent 1px 72px);
  -webkit-mask-image: radial-gradient(70% 62% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 62% at 50% 30%, #000 30%, transparent 75%);
}
.hero-canvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.04fr .96fr; gap: 3.5rem; align-items: center; }
.hero-copy { max-width: 620px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 1.1rem;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px rgba(103, 232, 249, .9); animation: pulse 2.4s ease-in-out infinite; }
.hero h1 { font-size: clamp(2.35rem, 5vw, 3.85rem); font-weight: 700; line-height: 1.06; letter-spacing: -.022em; margin-bottom: 1.15rem; }
.hero-sub { font-size: 1.13rem; color: var(--muted); max-width: 560px; }
.hero-sub strong { color: var(--ink); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.hero-badges span {
  font-family: var(--mono); font-size: .78rem; color: #C7D4FF;
  background: rgba(110, 139, 255, .10); border: 1px solid rgba(110, 139, 255, .30);
  padding: .38rem .75rem; border-radius: 999px;
}
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin: 1.9rem 0 0; }
.hero-note { font-size: .85rem; color: var(--muted); opacity: .85; margin: 1rem 0 0; }

/* ---- SIGNATURE : Reputation Radar ---- */
.radar-console {
  position: relative;
  background: linear-gradient(180deg, rgba(18, 28, 49, .92), rgba(10, 15, 26, .96));
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-pop), 0 0 80px rgba(110, 139, 255, .10) inset;
  padding: 1.1rem 1.25rem 1.25rem;
  width: min(460px, 100%);
  justify-self: end;
}
.radar-head {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  padding-bottom: .85rem; border-bottom: 1px solid var(--line-soft);
}
.radar-live { display: inline-flex; align-items: center; gap: .45rem; color: var(--ok); font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px rgba(61, 214, 140, .9); animation: pulse 2.4s ease-in-out infinite; }
.radar-title { color: var(--muted); }
.radar-clock { margin-left: auto; color: var(--cyan); font-variant-numeric: tabular-nums; }
.radar-scope {
  position: relative; width: min(288px, 74%); aspect-ratio: 1;
  margin: 1.25rem auto 1.05rem; border-radius: 50%;
  color: var(--accent);
  background: radial-gradient(circle, rgba(110, 139, 255, .10), rgba(7, 11, 19, 0) 72%);
}
.radar-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.radar-sweep {
  position: absolute; inset: 4.5%; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(110, 139, 255, .04), rgba(110, 139, 255, .38) 26%, transparent 32%);
  -webkit-mask-image: radial-gradient(circle, #000 99%, transparent 100%);
  mask-image: radial-gradient(circle, #000 99%, transparent 100%);
  animation: sweep 18s linear infinite;
}
.blip { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.blip::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid currentColor; color: var(--cyan); opacity: 0;
  animation: ping 3.2s cubic-bezier(.2,.6,.35,1) infinite;
}
.blip-a { top: 33%; left: 67%; }
.blip-b { top: 55%; left: 31%; background: var(--danger); }
.blip-b::after { color: var(--danger); animation-delay: 1.1s; }
.blip-c { top: 64%; left: 62%; }
.blip-c::after { animation-delay: 2s; }
.radar-feed {
  list-style: none; position: relative; height: 2.3rem; overflow: hidden;
  border-top: 1px solid var(--line-soft); padding-top: .75rem;
  font-family: var(--mono); font-size: .74rem;
}
.radar-feed li {
  position: absolute; inset: .75rem 0 0; display: flex; align-items: center; gap: .6rem;
  opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease;
}
.radar-feed li.feed-in { opacity: 1; transform: none; }
.feed-tag { font-size: .64rem; font-weight: 600; letter-spacing: .08em; padding: .14rem .45rem; border-radius: 5px; white-space: nowrap; }
.tag-red { color: var(--danger); background: rgba(255, 138, 138, .12); }
.tag-amber { color: var(--warn); background: rgba(255, 194, 102, .12); }
.tag-blue { color: #8AB6FF; background: rgba(138, 182, 255, .12); }
.feed-txt { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-time { margin-left: auto; color: rgba(154, 167, 189, .65); font-variant-numeric: tabular-nums; }
.radar-note { font-size: .68rem; color: rgba(154, 167, 189, .6); margin: .8rem 0 0; }

/* ============ Sections ============ */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.section-sub { color: var(--muted); font-size: 1.06rem; max-width: 700px; margin: -.2em 0 2.4rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel) 38%);
  border: 1px solid rgba(154, 167, 189, .21); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: 0 10px 30px rgba(2, 5, 10, .35);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(110, 139, 255, .38); box-shadow: 0 18px 48px rgba(2, 5, 10, .55); }
.card h3 { margin: 0 0 .4rem; }
.card p { color: var(--muted); font-size: .93rem; margin: 0; }
.card-icon {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 11px; margin-bottom: 1rem;
  color: var(--accent); background: rgba(110, 139, 255, .11);
  border: 1px solid rgba(110, 139, 255, .28);
}
.card-icon svg { width: 21px; height: 21px; }

/* Photo bande (problem) — grading sombre uniforme */
.photo-band {
  margin: 0 0 2.4rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); position: relative;
  box-shadow: var(--shadow-card);
}
.photo-band img { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 500; object-fit: cover; }
.photo-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 19, .30), rgba(7, 11, 19, .12) 45%, rgba(7, 11, 19, .55));
}

/* ---- Pipeline (5 étapes, file horizontal) ---- */
.pipeline {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem;
  margin: 2.6rem 0 0; position: relative;
}
.pipeline::before {
  content: ""; position: absolute; top: 17px; left: 2%; right: 23.5%;
  height: 1px; background: linear-gradient(90deg, rgba(110, 139, 255, .55), rgba(110, 139, 255, .30));
}
.pipeline li { counter-increment: step; position: relative; padding-top: 2.6rem; }
.pipeline li::before {
  content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--mono); font-size: .78rem; font-weight: 600;
  color: var(--cyan); letter-spacing: .08em;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid rgba(110, 139, 255, .45);
  box-shadow: 0 0 0 5px var(--bg-2), 0 0 18px rgba(110, 139, 255, .25);
}
.pipeline strong { display: block; margin-bottom: .35rem; font-size: 1rem; }
.pipeline span { color: var(--muted); font-size: .86rem; line-height: 1.5; display: block; }
.honesty-note {
  margin: 2.4rem 0 0; font-size: .88rem; color: var(--muted);
  border-left: 2px solid rgba(110, 139, 255, .55);
  background: linear-gradient(90deg, rgba(110, 139, 255, .07), transparent 65%);
  padding: .9rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---- Visuel section (solution) ---- */
.section-media {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-pop); position: relative;
}
.section-media img { display: block; width: 100%; height: auto; }
.section-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 19, .25), transparent 30%, transparent 70%, rgba(7, 11, 19, .35)),
             radial-gradient(80% 60% at 50% 0%, rgba(110, 139, 255, .08), transparent 70%);
}

/* ============ Console démo ============ */
.console {
  background: #0A0F1B; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-pop);
}
.console-chrome {
  display: flex; align-items: center; gap: .45rem;
  padding: .8rem 1.1rem; border-bottom: 1px solid var(--line-soft);
  background: rgba(18, 28, 49, .55);
}
.chrome-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(154, 167, 189, .25); }
.console-title { margin-left: .8rem; font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .05em; }
.demo-tabs {
  display: flex; flex-wrap: wrap; gap: .45rem; padding: 1rem 1.1rem 0;
  border-bottom: 1px solid var(--line-soft); margin: 0;
}
.demo-tabs button {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .02em;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: .5rem .85rem; border-radius: 8px; cursor: pointer;
  transition: color .16s, border-color .16s, background .16s;
}
.demo-tabs button:hover { color: var(--ink); border-color: rgba(110, 139, 255, .4); }
.demo-tabs button[aria-selected="true"] {
  color: #C9D6FF; background: rgba(110, 139, 255, .14);
  border-color: rgba(110, 139, 255, .5);
}
.demo-panel { padding: 1.8rem 1.75rem; margin: 0; }
.demo-alert-head { margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-family: var(--mono); font-size: .8rem; color: var(--ink); }
.demo-alert-head time { color: var(--muted); }
.demo-review {
  margin: 0; padding: 1rem 1.2rem; border-left: 2px solid var(--danger);
  background: rgba(255, 138, 138, .06); border-radius: 0 10px 10px 0;
  font-style: italic; color: #D7DEEC;
}
.demo-analyze-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem; margin-bottom: 1rem; }
.demo-stat {
  display: flex; flex-direction: column; gap: .45rem;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: .85rem .95rem;
}
.demo-label { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.demo-note { font-size: .82rem; color: var(--muted); margin: .8rem 0 0; }
.demo-evidence ul { margin: .6rem 0 0; padding-left: 1.15rem; color: var(--muted); font-size: .92rem; }
.demo-evidence li { margin-bottom: .45rem; }
.demo-evidence li strong, .demo-evidence p strong { color: var(--ink); }
.demo-response blockquote {
  margin: .6rem 0; padding: 1rem 1.2rem; border-left: 2px solid var(--accent);
  background: rgba(110, 139, 255, .07); border-radius: 0 10px 10px 0; color: #D7DEEC;
}
.demo-report p { color: var(--muted); font-size: .95rem; }
.demo-report p strong { color: var(--ink); }
.demo-disclaimer {
  font-size: .82rem; color: var(--muted); margin: 1.1rem 0 0;
  border-top: 1px dashed var(--line); padding-top: .9rem;
}
.pill {
  display: inline-block; padding: .2rem .65rem; border-radius: 999px;
  font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .03em;
  border: 1px solid transparent;
}
.pill-red { background: rgba(255, 138, 138, .13); color: #FFA3A3; border-color: rgba(255, 138, 138, .30); }
.pill-orange { background: rgba(255, 194, 102, .13); color: var(--warn); border-color: rgba(255, 194, 102, .30); }
.pill-grey { background: rgba(154, 167, 189, .14); color: #C4CFDF; border-color: rgba(154, 167, 189, .28); }
.pill-blue { background: rgba(138, 182, 255, .13); color: #9CC1FF; border-color: rgba(138, 182, 255, .30); }

/* ============ Pricing ============ */
.billing-toggle {
  display: inline-flex; gap: .3rem; padding: .3rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  margin: 0 0 1.5rem;
}
.toggle-btn {
  border: none; background: transparent; color: var(--muted);
  font-family: inherit; font-weight: 600; font-size: .92rem;
  padding: .55rem 1.3rem; border-radius: 999px; cursor: pointer;
  transition: color .16s, background .16s, box-shadow .16s;
}
.toggle-btn:hover { color: var(--ink); }
.toggle-btn.toggle-active {
  background: linear-gradient(180deg, #5573F0, var(--accent-btn)); color: #fff;
  box-shadow: 0 6px 18px rgba(74, 99, 231, .35);
}
.toggle-btn.toggle-active:hover { background: linear-gradient(180deg, #5876F1, #4D69E9); }
.save-badge {
  font-family: var(--mono); font-size: .66rem; background: rgba(7, 11, 19, .38);
  color: #9FE8C3; padding: .14rem .52rem; border-radius: 999px; margin-left: .5rem;
  display: inline-block; line-height: 1.5;
}
.toggle-btn:not(.toggle-active) .save-badge { background: rgba(61, 214, 140, .14); color: var(--ok); }
.launch-banner {
  text-align: center; font-size: .92rem; color: #CBD6E8;
  background: linear-gradient(180deg, rgba(110, 139, 255, .12), rgba(110, 139, 255, .05));
  border: 1px solid rgba(110, 139, 255, .35); border-radius: var(--radius);
  box-shadow: 0 0 48px rgba(110, 139, 255, .10) inset;
  padding: 1.05rem 1.4rem; margin: 0 auto 2.4rem; max-width: 680px;
}
.launch-banner strong { color: #fff; }
.pricing-grid { align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: .55rem; }
.plan .plan-price { min-height: 2.6rem; display: flex; align-items: baseline; flex-wrap: wrap; }
.plan-features { min-height: 9.2rem; }
.plan h3 { margin: 0; font-family: var(--mono); letter-spacing: .09em; font-size: .82rem; font-weight: 600; color: var(--muted); }
.plan-price { font-size: 1.95rem; font-weight: 700; letter-spacing: -.03em; margin: 0; font-variant-numeric: tabular-nums; }
.plan-period { font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: .3rem; letter-spacing: 0; }
.plan .price-strike { text-decoration: line-through; opacity: .5; font-size: .85em; margin-right: .45rem; font-weight: 500; }
.plan-eq { font-size: .78rem; color: var(--muted); margin: 0; font-family: var(--mono); }
.plan-features { list-style: none; flex: 1; display: grid; gap: .42rem; margin: .5rem 0 .8rem; }
.plan-features li { font-size: .86rem; color: var(--muted); padding-left: 1.15rem; position: relative; }
.plan-features li::before {
  content: ""; position: absolute; left: .25rem; top: .52em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.plan .btn { text-align: center; margin-top: auto; }
.plan-featured {
  border-color: rgba(110, 139, 255, .65); box-shadow: var(--glow), var(--shadow-card);
  background: linear-gradient(180deg, rgba(110, 139, 255, .10), var(--panel) 45%);
}
.plan-badge {
  position: absolute; top: -.72rem; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, #5573F0, var(--accent-btn)); color: #fff;
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  border-radius: 999px; padding: .2rem .75rem; margin: 0; letter-spacing: .06em;
  box-shadow: 0 6px 16px rgba(74, 99, 231, .4); white-space: nowrap;
}
.plan-featured h3 { color: var(--accent-clair); }
.pricing-footnote { color: var(--muted); font-size: .84rem; margin-top: 1.6rem; }

/* ============ FAQ ============ */
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:first-of-type { border-top: 1px solid var(--line-soft); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  font: inherit; font-weight: 600; font-size: 1.02rem; color: var(--ink);
  padding: 1.25rem .3rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.2rem;
}
.faq-q:hover { color: var(--accent-clair); }
.faq-q::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease; margin-right: 4px;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq-a { padding: 0 .3rem 1.35rem; color: var(--muted); max-width: 680px; }
.faq-a p { margin: 0; }
.faq-item h3 { margin: 0; font-size: 1.02rem; }
.faq-q { max-width: 680px; }

/* ============ CTA final ============ */
.cta-final { text-align: center; position: relative; }
.band-bg {
  background-image:
    radial-gradient(70% 90% at 50% 0%, rgba(110, 139, 255, .16), transparent 70%),
    linear-gradient(rgba(5, 8, 15, .90), rgba(5, 8, 15, .93)),
    url(/assets/band.webp);
  background-size: cover; background-position: center;
  border-top: 1px solid var(--line-soft);
}
.cta-final h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.cta-final p { color: var(--muted); font-size: 1.08rem; margin-bottom: 2rem; }

/* ============ Footer ============ */
.site-footer { background: #05080F; color: var(--muted); padding: 3.5rem 0 1.75rem; border-top: 1px solid var(--line-soft); }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; }
.footer-grid .brand { color: var(--ink); margin: 0 0 .5rem; font-size: 1.05rem; }
.footer-tag { margin: 0; font-size: .88rem; color: #7E8CA3; }
.footer-grid nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-grid nav a { color: #A9B5C9; text-decoration: none; font-size: .9rem; transition: color .16s; }
.footer-grid nav a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line-soft); margin-top: 2.5rem; padding-top: 1.4rem; font-size: .8rem; }
.footer-bottom p { margin: 0; }

/* ============ Apparitions ============ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s cubic-bezier(.2, .65, .3, 1) var(--d, 0s), transform .55s cubic-bezier(.2, .65, .3, 1) var(--d, 0s); }
.reveal.in, .noreveal .reveal { opacity: 1; transform: none; }
.noreveal .reveal { transition: none; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

/* ============ Responsive ============ */
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .radar-console { justify-self: center; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1.2rem; }
  .pipeline::before { display: none; }
}
@media (max-width: 880px) {
  .nav-links a[href^="#"] { display: none; }
  .nav { gap: 1rem; }
}
@media (max-width: 760px) {
  .section { padding: 4rem 0; }
  .hero { padding: 4.5rem 0 4rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .photo-band img { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .billing-toggle { display: flex; width: 100%; }
  .toggle-btn { flex: 1; padding: .55rem .6rem; }
  .footer-grid { flex-direction: column; }
}
@media (max-width: 480px) {
  .nav-links .nav-auth-link { display: none; }
  .demo-panel { padding: 1.3rem 1.05rem; }
  .demo-tabs { padding: .8rem .8rem 0; }
  .demo-tabs button { font-size: .72rem; padding: .45rem .6rem; }
}

/* ============ Widget CleverT — peau V7 (scopée à la landing) ============ */
.clevert-toggle {
  background: linear-gradient(180deg, #5573F0, var(--accent-btn));
  box-shadow: 0 10px 30px rgba(74, 99, 231, .45);
}
.clevert-toggle:hover { box-shadow: 0 14px 38px rgba(74, 99, 231, .55); }
.clevert-panel {
  background: #0C1322; color: var(--ink);
  border: 1px solid var(--line); font-family: var(--font);
  box-shadow: var(--shadow-pop);
}
.clevert-header { background: var(--panel-2); border-bottom: 1px solid var(--line-soft); }
.clevert-close { color: var(--muted); }
.clevert-close:hover { color: #fff; }
.clevert-messages { background: transparent; }
.clevert-bot .clevert-msg-content { background: var(--panel-2); color: var(--ink); }
.clevert-bot .clevert-msg-content strong { color: var(--ink); }
.clevert-user .clevert-msg-content { background: var(--accent-btn); color: #fff; }
.clevert-user .clevert-msg-content strong { color: #fff; }
.clevert-msg-content blockquote { border-left-color: var(--accent); background: rgba(110, 139, 255, .08); }
.clevert-msg-content code { background: rgba(154, 167, 189, .16); }
.clevert-msg-content hr { border-top-color: var(--line); }
.clevert-login-hint { border-top-color: var(--line-soft); background: rgba(14, 22, 38, .5); }
.clevert-cta { background: linear-gradient(180deg, #5573F0, var(--accent-btn)); }
.clevert-cta:hover { background: linear-gradient(180deg, #5876F1, #4D69E9); }
.clevert-login-link { color: var(--muted); }
.clevert-form { border-top-color: var(--line-soft); }
.clevert-input {
  background: var(--panel-2); color: var(--ink); border-color: var(--line);
}
.clevert-input::placeholder { color: rgba(154, 167, 189, .7); }
.clevert-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(110, 139, 255, .22); }
.clevert-send { background: linear-gradient(180deg, #5573F0, var(--accent-btn)); }
.clevert-send:hover { background: linear-gradient(180deg, #5876F1, #4D69E9); }

/* ============ Reduced motion : TOUT figer ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .radar-sweep { background: conic-gradient(from 0deg, rgba(110, 139, 255, .30), transparent 30%); }
  .radar-feed { height: auto; }
  .radar-feed li { position: static; opacity: 1; transform: none; }
  .radar-feed li + li { margin-top: .45rem; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   D1 « Salle de contrôle » — extension système : pages auth,
   panneaux app-lite (onboarding), prose légale, formulaire lead.
   Remplace app.css sur les pages auth (dépendance retirée).
   ============================================================ */

/* ---- Pages auth (login, signup, forgot, reset, verify) ---- */
.auth-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(50% 55% at 18% -4%, rgba(110, 139, 255, .14), transparent 70%),
    radial-gradient(34% 40% at 88% 8%, rgba(103, 232, 249, .06), transparent 70%),
    var(--bg);
}
.auth-wrap { width: 100%; max-width: 440px; }
.auth-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel) 42%);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 2rem 1.9rem; box-shadow: var(--shadow-pop);
}
.auth-card--wide { max-width: 560px; }
.auth-brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none;
  margin-bottom: 1.4rem;
}
.auth-brand svg { width: 24px; height: 24px; color: var(--accent); }
.auth-card h1 { font-size: 1.45rem; margin: 0 0 .4rem; }
.auth-sub { color: var(--muted); font-size: .93rem; margin: 0 0 1.5rem; }
.auth-field { margin-bottom: 1.05rem; }
.auth-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink); }
.field-hint { font-weight: 400; color: var(--muted); font-size: .8em; margin-left: .3rem; }
.auth-input, .auth-select, .auth-textarea {
  font: inherit; width: 100%; padding: .68rem .85rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--ink);
  transition: border-color .16s, box-shadow .16s;
}
.auth-input::placeholder, .auth-textarea::placeholder { color: rgba(154, 167, 189, .65); }
.auth-input:focus-visible, .auth-select:focus-visible, .auth-textarea:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(110, 139, 255, .22);
}
.auth-error, .form-error, .field-error {
  color: #FFA3A3; font-size: .86rem; background: rgba(255, 138, 138, .09);
  border: 1px solid rgba(255, 138, 138, .3); border-radius: var(--radius-sm);
  padding: .6rem .8rem; margin: 0 0 1rem;
}
.auth-ok-box {
  border: 1px solid rgba(61, 214, 140, .4); background: rgba(61, 214, 140, .08);
  border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; margin-bottom: 1.3rem;
}
.auth-ok-box h2, .auth-ok h2 { margin: 0 0 .4rem; font-size: 1.05rem; color: var(--ok); }
.auth-ok-box p, .auth-ok p { font-size: .9rem; color: var(--muted); }
.auth-foot { text-align: center; font-size: .86rem; color: var(--muted); margin-top: 1.2rem; }
.auth-foot a, .link-app { color: var(--accent-clair); text-decoration: none; font-weight: 500; }
.auth-foot a:hover, .link-app:hover { text-decoration: underline; }
.auth-help { font-size: .82rem; color: var(--muted); margin-top: .8rem; }
.form-note { font-size: .8rem; color: var(--muted); margin: .5rem 0 0; }
.token-box {
  background: rgba(110, 139, 255, .07); border: 1px solid rgba(110, 139, 255, .3);
  border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin: 1rem 0;
}
.token-box code {
  display: block; word-break: break-all; font-family: var(--mono); font-size: .8rem;
  margin-top: .5rem; background: rgba(7, 11, 19, .55); padding: .55rem .65rem; border-radius: 8px;
}
.app-loading { text-align: center; color: var(--muted); font-size: .9rem; padding: 1.5rem 0; }
.app-note, .app-note-info {
  font-size: .85rem; color: var(--muted); background: var(--panel);
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: .7rem .9rem; margin: 0 0 1rem;
}

/* ---- Boutons app (auth/onboarding) ---- */
.btn-app {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: .68rem 1.1rem; font: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; text-decoration: none;
  transition: transform .16s, box-shadow .16s, background .16s, border-color .16s;
}
.btn-app-primary {
  background: linear-gradient(180deg, #5573F0, var(--accent-btn)); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 10px 26px rgba(74, 99, 231, .28);
}
.btn-app-primary:hover { background: linear-gradient(180deg, #5C77F0, #4D69E9); transform: translateY(-1px); }
.btn-app-primary:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-app-ghost { background: rgba(110, 139, 255, .09); color: #D4DEFF; border-color: rgba(110, 139, 255, .45); }
.btn-app-ghost:hover { background: rgba(110, 139, 255, .17); color: #fff; }
.btn-app-block, .btn-block { width: 100%; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%;
  padding: .72rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: #1F2328; text-decoration: none; font-weight: 600; font-size: .93rem;
  transition: border-color .15s;
}
.btn-google:hover { border-color: #4285F4; }
.g-auth-sep { display: flex; align-items: center; gap: .8rem; margin: 1rem 0; color: var(--muted); font-size: .78rem; }
.g-auth-sep::before, .g-auth-sep::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---- Onboarding : panneaux + wizard ---- */
.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel) 42%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-card);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.kv-list { list-style: none; display: grid; gap: .55rem; margin: 0; padding: 0; font-size: .92rem; }
.kv-list li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line-soft); padding-bottom: .5rem; }
.kv-list li span:first-child { color: var(--muted); }
.wizard-steps { display: flex; gap: .5rem; margin: 0 0 1.4rem; list-style: none; padding: 0; }
.wizard-steps li {
  flex: 1; height: 4px; border-radius: 999px; background: var(--line-soft);
  font-size: 0; color: transparent;
}
.wizard-steps li.is-current { background: linear-gradient(90deg, var(--accent), var(--accent-clair)); box-shadow: 0 0 12px rgba(110, 139, 255, .5); }
.wizard-actions { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.6rem; }

/* ---- Prose légale / contenu éditorial ---- */
.legal-prose { max-width: 760px; }
.legal-prose h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal-prose h3 { font-size: 1.05rem; margin-top: 1.6rem; color: var(--ink); }
.legal-prose p, .legal-prose li { color: var(--muted); font-size: .95rem; }
.legal-prose a { color: var(--accent-clair); }
.legal-prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal-prose li { margin-bottom: .4rem; }
.last-updated { font-family: var(--mono); font-size: .78rem; color: var(--muted); letter-spacing: .05em; }

/* ---- Formulaire contact (POST /api/v1/leads) ---- */
.lead-form { display: grid; gap: 1rem; max-width: 560px; margin: 2.2rem 0 0; }
.lead-form .auth-field { margin: 0; }
.lead-ok {
  display: none; align-items: center; gap: .6rem;
  color: var(--ok); background: rgba(61, 214, 140, .08);
  border: 1px solid rgba(61, 214, 140, .4); border-radius: var(--radius-sm);
  padding: .85rem 1rem; font-size: .92rem;
}
.lead-ok.is-visible { display: flex; }
.lead-err {
  display: none; color: #FFA3A3; background: rgba(255, 138, 138, .09);
  border: 1px solid rgba(255, 138, 138, .3); border-radius: var(--radius-sm);
  padding: .85rem 1rem; font-size: .9rem;
}
.lead-err.is-visible { display: block; }
.hp-field { position: absolute; left: -9999px; opacity: 0; } /* honeypot anti-spam */

@media (max-width: 700px) {
  .grid-2 { grid-template-columns: 1fr; }
  .auth-card { padding: 1.6rem 1.3rem; }
  .wizard-actions { flex-direction: column-reverse; }
  .wizard-actions .btn-app { width: 100%; }
}

/* Liens dans le contenu (prose/cartes) — AA 8.99:1 sur fond */
.section a:not(.btn), .card a:not(.btn) { color: var(--accent-clair); }
.section a:not(.btn):hover, .card a:not(.btn):hover { color: #fff; }

/* ---- Porte langue (racine /) ---- */
.lang-gate {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(50% 55% at 18% -4%, rgba(110, 139, 255, .14), transparent 70%),
    radial-gradient(34% 40% at 88% 8%, rgba(103, 232, 249, .06), transparent 70%),
    var(--bg);
}
.lang-gate-card { text-align: center; max-width: 420px; }
.lang-gate-card h1 { font-size: 2rem; margin: .9rem 0 .2rem; }
.lang-gate-sub { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1.8rem; }
.lang-gate-links { display: grid; gap: .8rem; }

/* ---- Switcher langue (header, toujours visible) ---- */
.lang-switch {
  font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  color: var(--cyan) !important; border: 1px solid rgba(103, 232, 249, .4);
  border-radius: 6px; padding: .22rem .5rem; margin-right: .4rem;
  text-decoration: none; transition: background .15s, color .15s;
}
.lang-switch:hover { background: rgba(103, 232, 249, .12); color: #fff !important; }
