/* ═══════════════════════════════════════════════════════════════
   PERSUADES.AI — cinématique électrique
   Palette de marque : noir #0C0E12 · surface #14171E · ligne #232833
   bleu électrique #4E6BFF · blanc cassé #EDF1F6 · gris #7C8698
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #0C0E12;
  --bg-2: #14171E;
  --surface: #171B23;
  --line: #232833;
  --line-strong: #2E3442;
  --ink: #EDF1F6;
  --ink-2: #B7BFCC;
  --dim: #7C8698;
  --faint: #5D6675;
  --blue: #4E6BFF;
  --blue-2: #7B90FF;
  --blue-glow: rgba(78, 107, 255, 0.55);
  --display: "Inter Tight", system-ui, -apple-system, sans-serif;
  --body: "Inter Tight", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 76px;
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (hover: hover) and (pointer: fine) { body { cursor: none; } body a, body button { cursor: none; } }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }

/* ─── Grain + progress + cursor ─── */
.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 60; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-2%,3%)} 80%{transform:translate(4%,-1%)} 100%{transform:translate(0,0)} }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px var(--blue-glow); }

.cursor { position: fixed; top: 0; left: 0; z-index: 80; pointer-events: none; mix-blend-mode: normal; }
.cursor-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); transform: translate(-50%, -50%); box-shadow: 0 0 18px var(--blue-glow); transition: width .25s var(--ease-out), height .25s var(--ease-out), background .25s; }
.cursor-ring { position: absolute; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(237,241,246,.55); transform: translate(-50%, -50%); transition: width .35s var(--ease-out), height .35s var(--ease-out), border-color .35s, opacity .35s; }
.cursor.is-hover .cursor-dot { width: 6px; height: 6px; }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; border-color: var(--blue); }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ─── Nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(12,14,18,.92), rgba(12,14,18,0));
  transition: background .4s, backdrop-filter .4s, height .4s var(--ease-out);
}
.nav.is-scrolled { background: rgba(12,14,18,.82); backdrop-filter: blur(14px); height: 64px; border-bottom: 1px solid rgba(35,40,51,.8); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.mark { width: 30px; height: 30px; color: var(--ink); }
.mark-dot { transform-origin: 32px 32px; animation: dot-breathe 3.2s var(--ease-io) infinite; }
@keyframes dot-breathe { 0%,100%{transform:scale(1)} 50%{transform:scale(1.28)} }
.wordmark .dim { color: var(--dim); font-weight: 500; }
.links { display: flex; gap: 26px; margin-left: 12px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.links a { position: relative; padding: 6px 0; transition: color .25s; }
.links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--blue); transition: right .35s var(--ease-out); }
.links a:hover { color: var(--ink); }
.links a:hover::after { right: 0; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--ink-2); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 12px; transition: border-color .25s, color .25s; }
.lang:hover { border-color: var(--blue); color: var(--ink); }
.burger { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ─── Boutons ─── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--body); font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  padding: 15px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .35s var(--ease-out), background .3s, border-color .3s, color .3s, box-shadow .35s;
  will-change: transform;
}
.btn.small { padding: 9px 16px; font-size: 13.5px; }
.btn.large { padding: 19px 32px; font-size: 17px; }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: #fff; box-shadow: 0 10px 40px rgba(78,107,255,.28); }
.btn.ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(20,23,30,.6); }
.btn.ghost:hover { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(78,107,255,.12); }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue-glow); transition: transform .35s var(--ease-out); }
.btn:hover .dot { transform: scale(1.6); }

/* ─── Hero ─── */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--nav-h) + 40px) var(--gutter) 80px; overflow: hidden; isolation: isolate; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.halo { position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; pointer-events: none; opacity: .55; }
.halo-a { width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; left: -18vw; top: -10vh; background: radial-gradient(circle, rgba(78,107,255,.45), rgba(78,107,255,0) 65%); animation: drift-a 22s var(--ease-io) infinite alternate; }
.halo-b { width: 48vw; height: 48vw; max-width: 640px; max-height: 640px; right: -14vw; bottom: -20vh; background: radial-gradient(circle, rgba(123,144,255,.35), rgba(123,144,255,0) 65%); animation: drift-b 28s var(--ease-io) infinite alternate; }
@keyframes drift-a { from{transform:translate(0,0) scale(1)} to{transform:translate(9vw,7vh) scale(1.15)} }
@keyframes drift-b { from{transform:translate(0,0) scale(1.1)} to{transform:translate(-8vw,-9vh) scale(.95)} }
/* min-width: 0 — un item de grille ne doit jamais s'élargir sous son mot le plus long. */
.hero-inner { position: relative; z-index: 2; max-width: 1180px; width: 100%; min-width: 0; text-align: left; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 26px; }
/* Inter Tight 800 : « on persuade. » (12 caractères) tient sur une ligne à toutes les largeurs. */
.display { font-size: clamp(44px, 8vw, 120px); line-height: .96; font-weight: 800; letter-spacing: -0.04em; }
.display .accent { white-space: nowrap; }
.display .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.display .word { display: inline-block; transform: translateY(110%); opacity: 0; animation: rise 1.1s var(--ease-out) forwards; }
.display .line:nth-child(2) .word { animation-delay: .12s; }
.display .accent { color: var(--blue); text-shadow: 0 0 40px rgba(78,107,255,.35); }
@keyframes rise { to { transform: translateY(0); opacity: 1; } }
.lede { max-width: 640px; margin-top: 34px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero .reveal { animation: fade-up 1s var(--ease-out) forwards; opacity: 0; }
.hero .eyebrow.reveal { animation-delay: .05s; }
.hero .lede.reveal { animation-delay: .45s; }
.hero .hero-cta.reveal { animation-delay: .6s; }
@keyframes fade-up { from{opacity:0; transform:translateY(22px)} to{opacity:1; transform:translateY(0)} }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 64px; background: var(--line-strong); overflow: hidden; z-index: 2; }
.scroll-hint span { position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--blue); animation: hint 2.2s var(--ease-io) infinite; }
@keyframes hint { to { top: 110%; } }

/* ─── Marquee ─── */
.marquee { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; }
.marquee .track { display: flex; align-items: center; gap: 36px; width: max-content; animation: scroll 38s linear infinite; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.marquee:hover .track { animation-play-state: paused; }
.marquee i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue-glow); flex: none; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ─── Sections ─── */
.section { position: relative; padding: clamp(96px, 12vw, 180px) var(--gutter); max-width: 1320px; margin: 0 auto; }
.section-head { max-width: 860px; margin-bottom: clamp(44px, 6vw, 80px); }
.title { font-size: clamp(34px, 5vw, 64px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; }
.sub { margin-top: 22px; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); max-width: 720px; }

/* Reveal au scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal { transform: none; transition: none; }

/* ─── Bento services ─── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative; grid-column: span 2; overflow: hidden;
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px 32px;
  transition: transform .5s var(--ease-out), border-color .35s, box-shadow .5s var(--ease-out);
  transform-style: preserve-3d;
}
.card.big { grid-column: span 4; grid-row: span 2; padding: 40px 38px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; }
.card.wide { grid-column: span 6; display: grid; grid-template-columns: auto 1fr 2fr; gap: 28px; align-items: center; }
.card.wide h3 { margin-bottom: 0; }
.card.wide p { margin-top: 0; }
.card:hover { border-color: rgba(78,107,255,.6); box-shadow: 0 30px 80px -30px rgba(78,107,255,.35), 0 0 0 1px rgba(78,107,255,.15) inset; }
.card .num { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--blue-2); }
.card h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; margin: 14px 0 12px; letter-spacing: -0.03em; }
.card.big h3 { font-size: clamp(36px, 4vw, 56px); }
.card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.card.big p { font-size: 17px; max-width: 520px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 11px; }
.card-glow { position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .45s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(78,107,255,.22), transparent 55%); }
.card:hover .card-glow { opacity: 1; }
.card.big::after { content: "[ • ]"; position: absolute; top: 28px; right: 34px; font-family: var(--display); font-weight: 800; font-size: 88px; color: rgba(78,107,255,.14); letter-spacing: -0.06em; pointer-events: none; }

/* ─── Système ─── */
.system { padding-top: clamp(80px, 10vw, 140px); }
.pipeline { display: flex; align-items: center; gap: 0; margin: 0 0 clamp(40px, 5vw, 64px); overflow-x: auto; padding: 6px 2px 14px; }
.pipe-node { flex: none; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line-strong); background: var(--bg-2); border-radius: 999px; padding: 10px 16px; }
.pipe-node.accent { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 0 30px rgba(78,107,255,.45); }
.pipe-line { position: relative; flex: 1 1 60px; min-width: 40px; height: 1px; background: var(--line-strong); overflow: hidden; }
.pipe-line .pulse { position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: linear-gradient(90deg, transparent, var(--blue), transparent); animation: pulse-run 2.4s linear infinite; }
.pipe-line:nth-of-type(4) .pulse { animation-delay: .6s; } .pipe-line:nth-of-type(6) .pulse { animation-delay: 1.2s; } .pipe-line:nth-of-type(8) .pulse { animation-delay: 1.8s; }
@keyframes pulse-run { to { left: 100%; } }
.access { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.access-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 32px 28px 30px; min-height: 280px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px;
  transition: transform .5s var(--ease-out), border-color .35s, box-shadow .5s var(--ease-out), background .35s;
}
.access-card:hover { border-color: rgba(78,107,255,.6); background: var(--surface); box-shadow: 0 30px 80px -30px rgba(78,107,255,.4); }
.access-card.featured { background: linear-gradient(160deg, rgba(78,107,255,.18), var(--bg-2) 60%); border-color: rgba(78,107,255,.45); }
.access-card .mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; color: var(--blue-2); }
.access-card h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.access-card p { color: var(--ink-2); font-size: 15px; flex: 1; }
.go { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.go::after { content: "→"; color: var(--blue); transition: transform .35s var(--ease-out); }
.access-card:hover .go::after { transform: translateX(6px); }
.go.muted { color: var(--dim); } .go.muted::after { content: "·"; }

/* ─── Approche ─── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { position: relative; padding: 36px 26px 44px 0; border-right: 1px solid var(--line); margin-right: 26px; }
.step:last-child { border-right: 0; margin-right: 0; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: var(--blue); transition: width 1.2s var(--ease-out) .2s; }
.step.is-visible::before { width: calc(100% + 26px); }
.step-n { font-family: var(--display); font-weight: 800; font-size: 56px; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px var(--line-strong); transition: color .6s, -webkit-text-stroke-color .6s; }
.step.is-visible .step-n { color: var(--blue); -webkit-text-stroke-color: var(--blue); }
.step h3 { font-size: 24px; margin: 18px 0 12px; }
.step p { color: var(--ink-2); font-size: 15.5px; }

/* ─── Manifeste ─── */
.manifesto { padding: clamp(80px, 12vw, 200px) var(--gutter); background: radial-gradient(1200px 600px at 50% 120%, rgba(78,107,255,.22), transparent 60%); text-align: center; }
.big-quote { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 7.2vw, 108px); line-height: .98; letter-spacing: -0.045em; max-width: 1200px; margin: 0 auto; }
.q-line { display: block; }
.q-line.accent { color: var(--blue); }
.q-line:nth-child(2) { transition-delay: .12s; } .q-line:nth-child(3) { transition-delay: .24s; }

/* ─── Contact ─── */
.contact { padding-top: 0; }
.contact-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: clamp(36px, 5vw, 72px); border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(140deg, var(--surface), var(--bg-2)); position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(78,107,255,.35), transparent 65%); filter: blur(30px); }
.contact-card > * { position: relative; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.mail { font-family: var(--mono); font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: color .25s, border-color .25s; }
.mail:hover { color: var(--ink); border-color: var(--blue); }

/* ─── Footer ─── */
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 40px var(--gutter) 48px; border-top: 1px solid var(--line); max-width: 1320px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.footer-brand .mark { width: 24px; height: 24px; }
.footer-links { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); margin-left: auto; }
.footer-links a:hover { color: var(--ink); }
.legal { width: 100%; font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .02em; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card, .card.big, .card.wide { grid-column: span 2; grid-row: auto; }
  .card.wide { grid-template-columns: 1fr; gap: 10px; }
  .card.big { min-height: 360px; }
  .access { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; margin-right: 0; }
  .contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .links, .nav-actions .ghost, .nav-actions .solid { display: none; }
  .burger { display: flex; }
  .nav.is-open .links { display: flex; flex-direction: column; position: fixed; inset: var(--nav-h) 0 0; background: rgba(12,14,18,.97); padding: 28px var(--gutter); gap: 22px; font-size: 22px; margin: 0; }
  .nav.is-open .links a::after { display: none; }
  .nav.is-open .nav-actions .ghost, .nav.is-open .nav-actions .solid { display: inline-flex; position: fixed; left: var(--gutter); bottom: 32px; }
  .nav.is-open .nav-actions .ghost { left: auto; right: var(--gutter); }
  .bento { grid-template-columns: 1fr; }
  .card, .card.big, .card.wide { grid-column: span 1; }
  .card.big::after { font-size: 56px; top: 20px; right: 22px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; margin-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); }
  .step.is-visible::before { width: 100%; }
  .pipeline { justify-content: flex-start; }
  .display { font-size: clamp(40px, 12vw, 84px); }
  .eyebrow { font-size: 11px; letter-spacing: .14em; }
  .scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .display .word { transform: none; opacity: 1; }
}
