/* ===== Design tokens ===== */
:root {
  --canvas: #0a0a0a;
  --canvas-alt: #0e0e10;
  --canvas-card: #161618;
  --hairline: #212327;
  --hairline-soft: #1a1b1e;
  --ink: #ffffff;
  --body: #dadbdf;
  --mute: #7d8187;
  --pill-border: rgba(255, 255, 255, 0.25);
  --radius: 10px;
  --radius-pill: 9999px;
  --maxw: 1200px;
  --pad-x: clamp(20px, 5vw, 40px);
  --band: clamp(64px, 9vw, 110px);
  --font: "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  /* Accent unique : bleu -> violet */
  --acc: #7a5cff;
  --acc-blue: #4c6fff;
  --acc-soft: #b3a6ff;
  --acc-dim: rgba(122, 92, 255, 0.12);
  --grad: linear-gradient(120deg, #4c6fff, #a78bfa);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ===== Layout ===== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.container--narrow { max-width: 880px; }
.band { padding-top: var(--band); padding-bottom: var(--band); }
.band--sm { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(28px, 4vw, 44px); }
.band--alt { background: var(--canvas-alt); border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); }
.band--hero { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }

/* Aurora (fond animé du hero) */
.band--hero::before, .band--hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  width: clamp(420px, 55vw, 820px); height: clamp(420px, 55vw, 820px);
  filter: blur(70px); will-change: transform;
}
.band--hero::before {
  top: -35%; left: -12%;
  background: radial-gradient(circle, rgba(76, 111, 255, 0.16), transparent 62%);
  animation: aurora-a 18s ease-in-out infinite alternate;
}
.band--hero::after {
  top: 5%; right: -18%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.13), transparent 62%);
  animation: aurora-b 22s ease-in-out infinite alternate;
}
@keyframes aurora-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(9%, 12%) scale(1.18); } }
@keyframes aurora-b { from { transform: translate(0, 0) scale(1.12); } to { transform: translate(-11%, -7%) scale(0.94); } }
.hero-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(72% 62% at 58% 28%, #000, transparent 76%);
  mask-image: radial-gradient(72% 62% at 58% 28%, #000, transparent 76%);
}
.band--hero .container { position: relative; z-index: 1; }

/* ===== Typography ===== */
.eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: 1.4px; font-size: 12.5px; color: var(--mute); display: block; }
.eyebrow::before { content: ""; display: inline-block; width: 20px; height: 1px; background: var(--grad); vertical-align: middle; margin-right: 10px; }
.display-xl { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 400; }
.display-md { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 400; }
.lead { font-size: clamp(16.5px, 1.8vw, 18.5px); line-height: 1.6; color: var(--body); }
.small { font-size: 14px; line-height: 1.55; }
.muted { color: var(--mute); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Pills ===== */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 14px; line-height: 20px; font-weight: 400;
  padding: 11px 20px; border-radius: var(--radius-pill);
  border: 1px solid var(--pill-border); color: var(--ink); background: transparent;
  cursor: pointer; transition: background-color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.pill:hover { background: rgba(255, 255, 255, 0.06); }
.pill--primary { background: var(--ink); color: #0a0a0a; border-color: var(--ink); font-weight: 500; transition: background-color .18s ease, box-shadow .3s ease; }
.pill--primary:hover { background: #f0f0ee; box-shadow: 0 0 28px rgba(122, 92, 255, 0.35); }
.pill--lg { padding: 14px 26px; font-size: 15px; }

/* ===== Cards ===== */
.card {
  position: relative;
  background: var(--canvas-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px;
  overflow: hidden;
}
.card__title { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 8px; line-height: 1.3; }
.card__intro { margin-bottom: 12px; }
.card__tag {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--acc-soft); background: var(--acc-dim); border: 1px solid rgba(122, 92, 255, .25);
  border-radius: var(--radius-pill); padding: 3px 10px;
}
.icon-chip {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: var(--acc-dim); color: var(--acc-soft);
  border: 1px solid rgba(122, 92, 255, 0.22);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.card:hover .icon-chip { transform: scale(1.08); }

/* Spotlight : halo qui suit la souris sur les cartes */
.card:not(.cta)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(122, 92, 255, 0.10), transparent 65%);
}
.card:not(.cta):hover::after { opacity: 1; }
.card > *:not(.card__tag) { position: relative; z-index: 1; }
.card > .card__tag { z-index: 1; }

/* ===== Callouts ===== */
.callout {
  margin-top: 32px; padding: 20px 24px;
  border: 1px solid rgba(122, 92, 255, 0.24); border-left: 3px solid var(--acc);
  border-radius: var(--radius); background: rgba(122, 92, 255, 0.05);
}
.callout p { font-size: 15px; color: var(--body); line-height: 1.65; max-width: 78ch; }
.callout strong { color: var(--ink); font-weight: 500; }
.callout--plain { border-color: var(--hairline); border-left-color: var(--acc); background: var(--canvas-card); }

/* ===== Nav ===== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10,10,10,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hairline); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.nav__brand { font-size: 18px; letter-spacing: -0.02em; font-weight: 500; }
.nav__menu { display: flex; gap: 26px; }
.nav__link { font-size: 14px; color: var(--body); transition: color .15s ease; }
.nav__link:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; background: none; border: 0; }
.nav__toggle span { width: 22px; height: 1.5px; background: var(--ink); display: block; }

/* ===== Hero ===== */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-top: 22px; }
.hero__sub { margin-top: 22px; max-width: 54ch; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__proof { margin-top: 20px; }
.hero__visual { position: relative; }
.hero__visual::before {
  content: ""; position: absolute; inset: -12%;
  background: radial-gradient(55% 55% at 60% 40%, rgba(76, 111, 255, 0.10), transparent 70%);
  pointer-events: none;
}

/* ===== Mockup assistant ===== */
.mock {
  position: relative;
  background: #121214;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.4);
}
.mock__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--canvas-card);
  border-bottom: 1px solid var(--hairline);
}
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 9px; height: 9px; border-radius: 50%; background: #2c2c30; }
.mock__title { font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: .04em; }
.mock__badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  color: #86e3a1; background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: var(--radius-pill); padding: 4px 10px; white-space: nowrap;
}
.mock__pulse { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: pulse-dot 2.2s ease-in-out infinite; }
.mock__body { padding: 20px; display: flex; flex-direction: column; gap: 13px; }
.msg { max-width: 86%; font-size: 13.5px; line-height: 1.55; }
.msg--user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink);
  padding: 10px 14px; border-radius: 13px 13px 4px 13px;
}
.msg--bot {
  align-self: flex-start;
  background: var(--canvas-card);
  border: 1px solid var(--hairline);
  color: var(--body);
  padding: 12px 14px; border-radius: 13px 13px 13px 4px;
}
.msg--bot sup { font-size: 9px; }
.msg__sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg__chip {
  font-family: var(--mono); font-size: 10px; color: var(--acc-soft);
  background: var(--acc-dim); border: 1px solid rgba(122, 92, 255, 0.24);
  border-radius: 6px; padding: 3px 8px;
}
.msg--typing { padding: 14px 16px; }
.typing { display: flex; gap: 5px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); animation: typing-bounce 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ===== Stats strip ===== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stat { padding: 28px 28px; }
.stat + .stat { border-left: 1px solid var(--hairline); }
.stat__num { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; }
.stat__label { margin-top: 8px; max-width: 26ch; }

/* ===== Section head ===== */
.head { max-width: 62ch; }
.head h2 { margin-top: 16px; }
.head .lead { margin-top: 18px; }

/* ===== Grids ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 44px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 44px; }
.grid-2 .card, .grid-3 .card, .grid-4 .card { transition: transform .35s cubic-bezier(.22,.61,.36,1), border-color .35s ease; }
.grid-2 .card:hover, .grid-3 .card:hover, .grid-4 .card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.16); }

/* ===== Listes ===== */
.dot-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.dot-list li { font-size: 14px; color: var(--body); display: flex; gap: 10px; line-height: 1.55; }
.dot-list li::before { content: "→"; color: var(--acc-soft); flex-shrink: 0; }

/* ===== Comparatif ===== */
.compare-wrap { margin-top: 48px; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { min-width: 620px; }
.crow { display: grid; grid-template-columns: 1.1fr 1fr 1.15fr; transition: background .15s; }
.crow + .crow { border-top: 1px solid var(--hairline); }
.crow:not(.crow--head):hover { background: rgba(255,255,255,.02); }
.ccell { padding: 16px 18px; font-size: 13.5px; display: flex; align-items: center; }
.cfeature { color: var(--ink); font-weight: 500; }
.crow--head .ccell { font-family: var(--mono); text-transform: uppercase; letter-spacing: .8px; font-size: 11px; color: var(--mute); background: rgba(255,255,255,.025); }
.celma { background: rgba(122, 92, 255, 0.06); position: relative; }
.crow--head .celma { color: var(--acc-soft); background: rgba(122, 92, 255, 0.11); }
.crow--head .celma::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); }
.ctext-good { color: var(--ink); }
.ctext-mute { color: var(--mute); }
.ccheck { color: var(--acc); font-weight: 700; margin-right: 8px; }
.compare__note { margin-top: 18px; max-width: 70ch; }

/* ===== Méthode (timeline) ===== */
.steps { margin-top: 44px; border-top: 1px solid var(--hairline); }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--hairline); }
.step__num {
  width: 46px; height: 46px; border-radius: var(--radius-pill);
  border: 1px solid var(--hairline); background: var(--canvas-card);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; color: var(--acc-soft);
}
.step__kicker { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); display: block; margin-bottom: 6px; }
.step__title { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 8px; }
.step p { max-width: 68ch; font-size: 14.5px; }
.step__link { color: var(--acc-soft); }
.step__link:hover { color: var(--acc); }

/* ===== FAQ ===== */
@keyframes flowY { 0% { background-position: 50% 0%; } 100% { background-position: 50% 300%; } }
.faq-card { margin-top: 44px; padding: 6px 32px; }
.faq2__item { border-top: 1px dotted rgba(255,255,255,.16); }
.faq2__item:first-child { border-top: 0; }
.faq2__trigger {
  position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: 0; color: var(--ink); font-family: var(--font); font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  text-align: left; padding: 22px 0; cursor: pointer; transition: color .2s ease;
}
.faq2__trigger:hover { color: var(--body); }
.faq2__chev { width: 18px; height: 18px; flex-shrink: 0; color: var(--mute); transition: transform .35s cubic-bezier(.22,.61,.36,1), color .25s ease; }
.faq2__item.is-open .faq2__chev { transform: rotate(180deg); color: var(--ink); }
.faq2__trigger::before {
  content: ""; position: absolute; left: -32px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(180deg, #4c6fff, #a78bfa, #4c6fff); background-size: 100% 300%;
  animation: flowY 5s linear infinite; transition: opacity .3s ease;
}
.faq2__item.is-open .faq2__trigger::before { opacity: 1; }
.faq2__content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s cubic-bezier(.22,.61,.36,1); }
.faq2__item.is-open .faq2__content { grid-template-rows: 1fr; }
.faq2__inner { overflow: hidden; }
.faq2__inner p { color: var(--body); font-size: 15px; line-height: 1.7; padding-bottom: 24px; max-width: 70ch; }
.faq__more { margin-top: 22px; }
.faq__more a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ===== CTA final (border beam) ===== */
@property --beam-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.cta { text-align: center; padding: clamp(40px, 6vw, 64px); overflow: visible; }
.cta::before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius); padding: 1px;
  background: conic-gradient(from var(--beam-angle), transparent 0turn 0.78turn, #4c6fff 0.87turn, #a78bfa 0.93turn, transparent 1turn);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam-spin 6s linear infinite;
  pointer-events: none;
}
@keyframes beam-spin { to { --beam-angle: 360deg; } }
.cta::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 70%; height: 55%; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0, rgba(122, 92, 255, 0.10), transparent 70%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { margin-top: 16px; max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta p.lead { margin-top: 20px; max-width: 54ch; margin-left: auto; margin-right: auto; }
.cta .pill { margin-top: 32px; }
.cta__micro { margin-top: 16px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--hairline); padding-top: 48px; padding-bottom: 40px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand { font-size: 18px; letter-spacing: -0.02em; font-weight: 500; margin-bottom: 10px; }
.footer__title { font-family: var(--mono); text-transform: uppercase; letter-spacing: 1px; font-size: 11.5px; color: var(--mute); margin-bottom: 14px; }
.footer__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__list a, .footer__list span { font-size: 14px; color: var(--body); }
.footer__list a:hover { color: var(--ink); }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer__bottom p { font-size: 13px; color: var(--mute); }

/* ===== Animations ===== */
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.reveal { opacity: 1; transform: translateY(0); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.is-pre { opacity: 0; transform: translateY(28px); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; width: 100%; justify-self: center; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav__menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 8px var(--pad-x) 16px; }
  .nav__menu.is-open { display: flex; }
  .nav__menu .nav__link { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
  .nav__toggle { display: flex; }
  .nav__cta-full { display: none; }
  .band--hero { padding-top: 40px; }
  .hero { gap: 36px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 22px 20px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--hairline); }
  .stat__label { max-width: none; }
  .step { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .compare { min-width: 560px; }
  .ccell { padding: 13px 14px; font-size: 13px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .display-xl { font-size: 31px; letter-spacing: -0.03em; }
  .display-md { font-size: 26px; }
  .lead { font-size: 15.5px; }
  .nav__brand { font-size: 16px; }
  .nav .pill--primary { padding: 8px 13px; font-size: 13px; }
  .hero__actions .pill { width: 100%; justify-content: center; }
  .hero__proof { font-size: 13px; }
  .mock__title { display: none; }
  .mock__body { padding: 16px; gap: 11px; }
  .msg { max-width: 92%; font-size: 13px; }
  .card { padding: 20px; }
  .callout { padding: 16px 18px; }
  .step__title { font-size: 18px; }
  .cta { padding: 36px 20px; }
  .cta .pill { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .faq-card { padding: 4px 20px; }
  .faq2__trigger { font-size: 15px; }
  .faq2__trigger::before { left: -20px; }
}

/* ===== Écrans tactiles (pas de hover) ===== */
@media (hover: none) {
  .grid-2 .card:hover, .grid-3 .card:hover, .grid-4 .card:hover { transform: none; border-color: var(--hairline); }
  .card:not(.cta):hover::after { opacity: 0; }
  .card:hover .icon-chip { transform: none; }
  .pill:hover { background: transparent; }
  .pill--primary:hover { box-shadow: none; background: var(--ink); }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-pre { opacity: 1; transform: none; transition: none; }
  .cta::before { animation: none; }
  .band--hero::before, .band--hero::after { animation: none; }
  .grid-2 .card:hover, .grid-3 .card:hover, .grid-4 .card:hover { transform: none; }
  .card:hover .icon-chip { transform: none; }
  .faq2__content, .faq2__chev { transition: none; }
  .faq2__trigger::before { animation: none; }
  .typing i, .mock__pulse { animation: none; }
}
