/* ==========================================================
   LBD Agency — feuille de style
   ========================================================== */
:root {
  --indigo: #533afd;
  --indigo-hover: #7389ff;
  --ink: #061b31;
  --slate: #64748d;
  --steel: #50617a;
  --smoke: #839bc8;
  --white: #ffffff;
  --mist: #f8fafd;
  --frost: #e5edf5;
  --lavender: #b9b9f9;
  --lilac: #d6d9fc;
  --wash: #e8e9ff;
  --deep: #182659;
  --amethyst: #7f71e6;

  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 4px;
  --max: 1320px;
  --gap: 96px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-feature-settings: "ss01" on, "tnum" on;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-weight: 300; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--wash); color: var(--indigo); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Typographie ---------- */
.display { font-size: clamp(40px, 6vw, 72px); line-height: 1.03; letter-spacing: -0.03em; }
.h-lg { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--slate); line-height: 1.4; max-width: 560px; }
.sub { font-size: clamp(18px, 1.6vw, 22px); color: var(--slate); line-height: 1.4; max-width: 640px; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--smoke); font-weight: 400; }
.label--light { color: rgba(255,255,255,.7); }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- Barre de progression / halo ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 100; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--indigo), var(--indigo-hover)); transform-origin: left; transform: scaleX(0); }
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(83,58,253,.08), transparent 65%);
  transition: opacity .4s; opacity: 0;
}
body.has-pointer .cursor-glow { opacity: 1; }

/* ---------- Boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 400;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease);
  overflow: hidden; isolation: isolate;
}
.btn--lg { padding: 15px 24px; }
.btn--primary { background: var(--indigo); color: var(--white); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--primary:hover { background: #4329f0; }
.btn--primary:hover::before { transform: translateX(120%); }
.btn--ghost { color: var(--indigo); border-color: var(--lavender); background: transparent; }
.btn--ghost:hover { background: var(--wash); border-color: var(--indigo); }
.btn--white { background: var(--white); color: var(--indigo); }
.btn--white:hover { background: var(--wash); }
.chev { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .chev, .link:hover .chev { transform: translateX(4px); }

.link { color: var(--indigo); font-weight: 400; display: inline-flex; gap: 6px; align-items: center; position: relative; }
.link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: calc(100% - 14px);
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.link:hover::after { transform: scaleX(1); }

.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 9999px;
  background: rgba(255,255,255,.7); border: 1px solid var(--lilac); font-size: 13px; color: var(--indigo);
  font-weight: 400; backdrop-filter: blur(8px);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 0 rgba(83,58,253,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(83,58,253,0); } 100% { box-shadow: 0 0 0 0 rgba(83,58,253,0); } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 72px; display: flex; align-items: center;
  transition: background .3s, border-color .3s, transform .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(255,255,255,.78); backdrop-filter: saturate(180%) blur(14px); border-color: var(--frost); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 19px; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 8px; }
.nav__links a { position: relative; font-size: 14px; font-weight: 400; padding: 8px 12px; border-radius: var(--radius); transition: background .25s, color .25s; }
.nav__links a:hover { background: var(--frost); color: var(--indigo); }
.nav__cta { display: flex; gap: 8px; }
.nav__burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s; }
.nav__burger span:first-child { top: 15px; }
.nav__burger span:last-child { top: 23px; }
.nav.is-open .nav__burger span:first-child { top: 19px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; padding: 140px 0 120px; display: flex; align-items: center; overflow: hidden; }
.hero__mesh {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 92%);
  opacity: .9;
}
.hero__grid-lines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 92%);
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.hero__text .display { color: var(--ink); }
.hero .lead { color: var(--steel); }
.cta-pair { display: flex; gap: 8px; flex-wrap: wrap; }

/* Console animée */
.hero__visual { position: relative; perspective: 1200px; }
.console {
  background: rgba(255,255,255,.92); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.8);
  border-radius: 8px; overflow: hidden; transform-style: preserve-3d;
  outline: 1px solid var(--frost);
  transition: transform .2s ease-out;
}
.console__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--frost); background: var(--mist); }
.console__bar > span { width: 9px; height: 9px; border-radius: 50%; background: var(--frost); }
.console__bar p { margin-left: 10px; font-size: 12px; color: var(--slate); }
.live { margin-left: auto; font-style: normal; font-size: 11px; color: var(--indigo); font-weight: 400; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.console__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.msg {
  max-width: 85%; padding: 10px 14px; border-radius: var(--radius); font-size: 14px; line-height: 1.4;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease);
}
.msg.is-visible { opacity: 1; transform: none; }
.msg--in { background: var(--mist); border: 1px solid var(--frost); align-self: flex-start; }
.msg--out { background: var(--wash); color: var(--deep); align-self: flex-end; }
.msg.is-typing::after { content: "▍"; color: var(--indigo); animation: blink .8s infinite; margin-left: 1px; }
.console__chart { display: flex; align-items: flex-end; gap: 24px; padding: 16px 20px 20px; border-top: 1px solid var(--frost); }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.bars i { flex: 1; height: var(--h); background: linear-gradient(to top, var(--indigo), var(--indigo-hover)); border-radius: 2px 2px 0 0; transform: scaleY(0); transform-origin: bottom; transition: transform 1s var(--ease); }
.bars i:nth-child(odd) { opacity: .55; }
.console.is-ready .bars i { transform: scaleY(1); }
.console.is-ready .bars i:nth-child(2) { transition-delay: .08s; }
.console.is-ready .bars i:nth-child(3) { transition-delay: .16s; }
.console.is-ready .bars i:nth-child(4) { transition-delay: .24s; }
.console.is-ready .bars i:nth-child(5) { transition-delay: .32s; }
.console.is-ready .bars i:nth-child(6) { transition-delay: .40s; }
.console.is-ready .bars i:nth-child(7) { transition-delay: .48s; }
.console__kpi span { display: block; font-size: 32px; letter-spacing: -0.02em; color: var(--ink); }
.console__kpi small { font-size: 12px; color: var(--slate); }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13px; font-weight: 400;
  background: var(--white); border: 1px solid var(--frost); border-radius: var(--radius); white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip-1 { top: -22px; right: -12px; }
.chip-2 { bottom: 40px; left: -40px; animation-delay: -3s; }
@keyframes float { 50% { translate: 0 -10px; } }

/* ---------- Révélations au scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.split .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .word > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.split.in .word > span { transform: none; }

/* ---------- Logos ---------- */
.logos { padding: 32px 0 64px; border-bottom: 1px solid var(--frost); }
.logos .label { margin-bottom: 24px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { padding: 0 40px; font-size: 26px; letter-spacing: -0.02em; color: var(--smoke); transition: color .3s; white-space: nowrap; }
.marquee__track span:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: var(--gap) 0; border-bottom: 1px solid var(--frost); position: relative; }
.section--band { background: var(--mist); }
.section-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 64px; max-width: 820px; }

/* Cartes services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--frost); border: 1px solid var(--frost); border-radius: var(--radius); overflow: hidden; }
.card {
  position: relative; background: var(--white); padding: 32px; display: flex; flex-direction: column; gap: 12px;
  min-height: 300px; overflow: hidden; transition: background .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(83,58,253,.09), transparent 45%);
}
.card:hover::before { opacity: 1; }
.card__icon { width: 44px; height: 44px; margin-bottom: 20px; display: grid; place-items: center; border-radius: var(--radius); background: var(--wash); transition: transform .5s var(--ease), background .3s; }
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--indigo); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card__icon svg * { stroke-dasharray: 80; stroke-dashoffset: 0; }
.card:hover .card__icon { transform: translateY(-4px) rotate(-6deg); background: var(--indigo); }
.card:hover .card__icon svg { stroke: var(--white); }
.card:hover .card__icon svg * { animation: draw .9s var(--ease); }
@keyframes draw { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
.card__tag { font-size: 12px; color: var(--amethyst); font-weight: 400; letter-spacing: .02em; }
.card h3 { font-size: 26px; line-height: 1.12; letter-spacing: -0.01em; }
.card > p:not(.card__tag) { color: var(--steel); }
.card .link { margin-top: auto; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease); }
.card:hover .link { opacity: 1; transform: none; }

/* Statistiques */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { border-left: 1px solid var(--frost); padding-left: 24px; position: relative; }
.stat::before { content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 0; background: var(--indigo); transition: height 1.2s var(--ease) .3s; }
.stat.in::before { height: 100%; }
.stat__num { display: block; font-size: clamp(44px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.stat p { color: var(--slate); font-size: 16px; max-width: 220px; }

/* Méthode : défilement horizontal épinglé */
.method { position: relative; height: 320vh; border-bottom: 1px solid var(--frost); }
.method__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 56px; }
.method__head { display: flex; flex-direction: column; gap: 16px; }
.method__progress { height: 1px; background: var(--frost); max-width: 480px; margin-top: 8px; }
.method__progress span { display: block; height: 100%; background: var(--indigo); transform-origin: left; transform: scaleX(0); }
.method__track { display: flex; gap: 24px; padding-left: max(32px, calc((100vw - var(--max)) / 2 + 32px)); will-change: transform; }
.step {
  flex: 0 0 min(440px, 80vw); padding: 40px; border: 1px solid var(--frost); border-radius: var(--radius);
  background: var(--white); display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden;
  transition: border-color .3s, background .3s;
}
.step::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--indigo); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.step:hover { border-color: var(--lavender); background: linear-gradient(var(--white), var(--mist)); }
.step:hover::after { transform: scaleX(1); }
.step__num { font-size: 88px; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--lavender); transition: color .4s; }
.step:hover .step__num { color: var(--wash); }
.step h3 { font-size: 32px; letter-spacing: -0.02em; }
.step p { color: var(--steel); font-size: 17px; }
.step ul { list-style: none; padding: 16px 0 0; margin: auto 0 0; border-top: 1px solid var(--frost); display: flex; flex-direction: column; gap: 8px; }
.step li { font-size: 14px; color: var(--slate); padding-left: 20px; position: relative; }
.step li::before { content: "›"; position: absolute; left: 0; color: var(--indigo); }

/* Cas d'usage : scrollytelling */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.story__visual { position: sticky; top: 120px; height: fit-content; }
.screen { position: relative; aspect-ratio: 4 / 3.4; border: 1px solid var(--frost); border-radius: 8px; background: linear-gradient(160deg, var(--wash), var(--mist) 60%); overflow: hidden; }
.screen::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--lilac) 1px, transparent 1px); background-size: 20px 20px; opacity: .6; }
.screen__panel {
  position: absolute; inset: 32px; background: var(--white); border: 1px solid var(--frost); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 10px; justify-content: center;
  opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.screen__panel.is-active { opacity: 1; transform: none; }
.screen__title { font-size: 26px; letter-spacing: -0.01em; margin-bottom: 12px; }
.screen__row { display: flex; justify-content: space-between; font-size: 14px; color: var(--slate); margin-top: 8px; }
.screen__row b { font-weight: 400; color: var(--ink); }
.meter { height: 6px; background: var(--frost); border-radius: 3px; overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--indigo), var(--indigo-hover)); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .2s; }
.screen__panel.is-active .meter i { transform: scaleX(1); }
.story__steps { display: flex; flex-direction: column; }
.story__step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; opacity: .25; transition: opacity .5s; }
.story__step.is-active { opacity: 1; }
.story__step h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -0.02em; }
.story__step p:not(.card__tag) { color: var(--steel); font-size: 18px; max-width: 480px; }

/* Témoignage : remplissage mot à mot */
.quote-section .label { margin-bottom: 32px; }
.quote { margin: 0 0 48px; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.15; letter-spacing: -0.02em; max-width: 1100px; }
.quote .w { color: var(--lilac); transition: color .3s; }
.quote .w.on { color: var(--ink); }
.quote__author { display: flex; align-items: center; gap: 16px; }
.quote__author b { display: block; font-weight: 400; }
.quote__author small { color: var(--slate); font-size: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo); color: var(--white); font-size: 14px; font-weight: 400; }

/* CTA final */
.cta-panel { position: relative; overflow: hidden; border-radius: 8px; background: var(--indigo); color: var(--white); padding: 96px 64px; }
.cta-panel__dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-panel__content { position: relative; display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.cta-panel__content > p:not(.label) { font-size: 20px; color: rgba(255,255,255,.8); }
.cta-form { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cta-form input {
  flex: 1; min-width: 220px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.1); color: var(--white); font: inherit; font-size: 15px; outline: none; transition: border-color .25s, background .25s;
}
.cta-form input::placeholder { color: rgba(255,255,255,.6); }
.cta-form input:focus { border-color: var(--white); background: rgba(255,255,255,.16); }
.cta-form__done { display: none; }
.cta-form.sent .cta-form__idle { display: none; }
.cta-form.sent .cta-form__done { display: inline; }

/* Footer */
.footer { background: var(--mist); padding: 80px 0 32px; }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__tag { color: var(--slate); margin-top: 12px; }
.footer__cols { display: flex; gap: 80px; flex-wrap: wrap; }
.footer__cols div { display: flex; flex-direction: column; gap: 10px; }
.footer__cols .label { margin-bottom: 6px; }
.footer__cols a { font-size: 14px; color: var(--steel); transition: color .2s, transform .3s var(--ease); }
.footer__cols a:hover { color: var(--indigo); transform: translateX(3px); }
.footer__bottom { display: flex; justify-content: space-between; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--frost); font-size: 13px; color: var(--slate); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .chip-2 { left: -8px; }
}
@media (max-width: 860px) {
  .container { padding: 0 16px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.is-open { background: var(--white); height: auto; min-height: 72px; flex-wrap: wrap; border-color: var(--frost); }
  .nav.is-open .nav__inner { flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
  .nav.is-open .nav__links, .nav.is-open .nav__cta { display: flex; flex-direction: column; width: 100%; }
  .nav.is-open .nav__links { order: 3; padding-top: 16px; }
  .nav.is-open .nav__cta { order: 4; padding-bottom: 8px; }
  .hero { padding: 120px 0 80px; }
  .hero__mesh, .hero__grid-lines { clip-path: polygon(0 0, 100% 0, 100% 55%, 0 70%); }
  .float-chip { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card .link { opacity: 1; transform: none; }
  .story { grid-template-columns: 1fr; gap: 32px; }
  .story__visual { top: 88px; z-index: 2; }
  .screen { aspect-ratio: 4 / 3; }
  .screen__panel { inset: 16px; padding: 20px; }
  .story__step { min-height: 60vh; }
  .method { height: auto; }
  .method__sticky { position: relative; height: auto; padding: var(--gap) 0; }
  .method__track { flex-direction: column; padding: 0 16px; transform: none !important; }
  .step { flex: auto; }
  .cta-panel { padding: 56px 24px; }
  .footer__cols { gap: 40px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .cta-pair .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .split .word > span { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
