/* ─────────────────────────────────────────────────────────────
   NeuraScan — site statique. Thème sombre, accent violet (#8B5CF6).
   Un seul fichier partagé par toutes les pages / langues.
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #09090f;
  --bg-elev: #12121f;
  --bg-card: #16162a;
  --border: #24243c;
  --text: #f5f5fa;
  --text-dim: #a0a0c0;
  --accent: #8b5cf6;
  --accent-2: #2563eb;
  --radius: 18px;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 9, 15, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.lang { display: flex; gap: 6px; font-size: 13px; }
.lang a { color: var(--text-dim); padding: 2px 6px; border-radius: 6px; }
.lang a.active { color: #fff; background: var(--accent); }
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 11px 20px; border-radius: 12px; font-weight: 700; font-size: 14px;
  transition: opacity .15s;
}
.btn:hover { opacity: .9; }
.btn-ghost { background: var(--bg-card); border: 1px solid var(--border); }

/* ── Hero ────────────────────────────────────────────── */
.hero { text-align: center; padding: 80px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 480px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(139,92,246,.28), transparent 70%);
  z-index: -1;
}
.hero .logo-big { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 22px; box-shadow: 0 12px 40px rgba(139,92,246,.35); }
.hero h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; letter-spacing: -1px; line-height: 1.08; }
.hero .accent { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { color: var(--text-dim); font-size: clamp(16px, 2.4vw, 20px); max-width: 620px; margin: 20px auto 32px; }
.cta-row { display: flex; gap: 16px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.badge { height: 54px; width: auto; display: block; border-radius: 9px; }
.badge-soon { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; }
.badge-soon .badge { opacity: .42; }
.badge-soon span { font-size: 12px; color: var(--text-dim); }

/* ── Phone coverflow (screenshots en 3D) ─────────────── */
.phone-carousel { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.coverflow { position: relative; width: 100%; height: 560px; perspective: 1500px; }
.cf-item {
  position: absolute; left: 50%; top: 50%; width: 250px;
  transition: transform .55s cubic-bezier(.2,.75,.2,1), opacity .55s ease, filter .55s ease;
  cursor: pointer; opacity: 0; z-index: 1;
}
.cf-item.active { transform: translate(-50%,-50%) rotateY(0) scale(1); opacity: 1; z-index: 3; }
.cf-item.prev   { transform: translate(-50%,-50%) translateX(-72%) rotateY(40deg) scale(.8); opacity: .55; filter: brightness(.6); z-index: 2; }
.cf-item.next   { transform: translate(-50%,-50%) translateX(72%) rotateY(-40deg) scale(.8); opacity: .55; filter: brightness(.6); z-index: 2; }
.cf-item.hidden { transform: translate(-50%,-50%) scale(.55); opacity: 0; z-index: 1; pointer-events: none; }

.phone {
  width: 100%;
  aspect-ratio: 9 / 19.3;
  background: #0b0b14;
  border-radius: 42px;
  padding: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 2px #2b2b40;
  position: relative;
}
.phone .notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 40%; height: 20px; background: #0b0b14; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--bg-elev); }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dots { display: flex; gap: 8px; }
.dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: var(--border); transition: background .2s, width .2s;
}
.dots button.active { background: var(--accent); width: 22px; border-radius: 5px; }

@media (max-width: 560px) {
  .coverflow { height: 440px; }
  .cf-item { width: 195px; }
  .cf-item.prev { transform: translate(-50%,-50%) translateX(-64%) rotateY(36deg) scale(.78); }
  .cf-item.next { transform: translate(-50%,-50%) translateX(64%) rotateY(-36deg) scale(.78); }
}

/* ── Sections ────────────────────────────────────────── */
section { padding: 64px 0; }
.section-title { text-align: center; font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--text-dim); max-width: 620px; margin: 0 auto 44px; }

/* ── Language chips ──────────────────────────────────── */
.lang-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lang-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 600;
}
.lang-chip .flag { width: 22px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.card .ico {
  width: 46px; height: 46px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(139, 92, 246, .14); color: var(--accent);
  margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; display: block; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 15px; }

/* ── Pricing ─────────────────────────────────────────── */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 760px; margin: 0 auto; }
.plan { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(139,92,246,.2); }
.plan h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
.plan .price { font-size: 40px; font-weight: 800; margin: 10px 0 2px; }
.plan .price small { font-size: 16px; color: var(--text-dim); font-weight: 500; }
.plan .note { color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plan li { color: var(--text-dim); font-size: 15px; padding-left: 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ── Privacy strip ───────────────────────────────────── */
.strip { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; text-align: center; }
.strip h3 { font-size: 22px; margin-bottom: 10px; }
.strip p { color: var(--text-dim); max-width: 640px; margin: 0 auto; }

/* ── Footer ──────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 44px 0; color: var(--text-dim); font-size: 14px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a:hover { color: var(--text); }

/* ── Legal / text pages ──────────────────────────────── */
.doc { max-width: 800px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: 34px; font-weight: 800; margin-bottom: 6px; }
.doc .updated { color: var(--text-dim); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 22px; font-weight: 700; margin: 34px 0 12px; }
.doc h3 { font-size: 16px; font-weight: 700; margin: 20px 0 6px; color: var(--text-dim); }
.doc p, .doc li { color: var(--text-dim); font-size: 15.5px; margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin-bottom: 12px; }
.doc a { color: var(--accent); }
.doc .box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; margin: 18px 0; }
.back { display: inline-block; margin-bottom: 24px; color: var(--text-dim); font-weight: 600; }

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
}
