/* =========================================================
   Veil — landing premium. Direction "Clear Horizon".
   Palette : petrol #0E2F35 · linen #F5F2EC · coral #FF7A59
             teal #2FB6A3 · amber #E8A23D · ink #1C2B2A
   Type : Bricolage Grotesque (display) / Hanken Grotesk (body)
          / IBM Plex Mono (data, eyebrows)
   ========================================================= */

:root {
  --petrol: #0E2F35;
  --petrol-700: #143b43;
  --linen: #F5F2EC;
  --linen-200: #ECE7DC;
  --coral: #FF7A59;
  --coral-600: #F25B36;
  --coral-ink: #A8381A;   /* coral foncé, AA pour texte sur linen (assombri → AA 4.5:1) */
  --teal: #2FB6A3;
  --teal-ink: #0F6B60;    /* teal foncé, AA 4.5:1 pour texte sur linen */
  --amber: #E8A23D;
  --ink: #1C2B2A;
  --max: 1180px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Helpers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--petrol); color: var(--linen); padding: .7rem 1.1rem;
  border-radius: 0 0 10px 0; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; width: 100%; }
.wrap-narrow { max-width: 760px; }
.hide-mobile { display: none; }

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--coral-ink); margin: 0 0 .9rem;
}
.eyebrow-light { color: var(--teal); }  /* utilisé sur fond petrol foncé : contraste OK */

.section-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600; line-height: 1.08; letter-spacing: -.015em;
  font-size: clamp(1.6rem, 5vw, 2.4rem); color: var(--petrol);
  margin: 0 0 1.6rem; max-width: 18ch;
}
.text-linen { color: var(--linen); }

/* simulation / honesty tags (anti-hallu) */
.sim-tag {
  font-family: "IBM Plex Mono", monospace; font-size: .72rem;
  letter-spacing: .04em; color: #586261;
  background: rgba(14,47,53,.06); padding: .28rem .55rem; border-radius: 6px;
  display: inline-block;
}
.sim-inline { margin-top: 1.6rem; }

/* =========================================================
   Buttons
   ========================================================= */
.btn-coral,
.btn-outline {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 600; font-size: 1rem; line-height: 1;
  border-radius: 12px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .25rem; white-space: nowrap; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn-coral {
  background: var(--coral); color: #2a160f; border: none;
  padding: .92rem 1.4rem; box-shadow: 0 8px 22px -10px rgba(242,91,54,.7);
}
.btn-coral:hover { background: var(--coral-600); transform: translateY(-2px); }
.btn-coral:active { transform: translateY(0); }
.btn-sm { padding: .6rem 1rem; font-size: .92rem; }
.btn-block { width: 100%; }

.btn-outline {
  background: transparent; color: var(--petrol);
  border: 1.5px solid rgba(14,47,53,.28); padding: .85rem 1.3rem; width: 100%;
}
.btn-outline:hover { border-color: var(--petrol); background: rgba(14,47,53,.04); }

:where(a, button, input, summary):focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px; border-radius: 8px;
}

/* =========================================================
   Nav
   ========================================================= */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,242,236,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(14,47,53,.08);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: .8rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--petrol); }
.brand-mark {
  width: 20px; height: 20px; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--teal), var(--petrol) 55%, var(--coral));
  box-shadow: inset 0 0 0 3px var(--linen);
  position: relative;
}
.brand-name {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700;
  font-size: 1.3rem; letter-spacing: -.02em;
}
.nav-links { display: none; list-style: none; gap: 1.6rem; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
  opacity: .82; transition: opacity .15s;
}
.nav-links a:hover { opacity: 1; }

/* =========================================================
   Hero (signature)
   ========================================================= */
.hero { padding: 2.6rem 0 3.2rem; overflow: clip; }
.hero-grid {
  max-width: var(--max); margin: 0 auto; padding: 0 1.25rem;
  display: grid; gap: 2.4rem; align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-title {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700;
  font-size: clamp(2.2rem, 8.5vw, 3.6rem); line-height: 1.02;
  letter-spacing: -.025em; color: var(--petrol); margin: .2rem 0 1rem;
}
.hero-title .hl {
  color: var(--teal-ink);
  background: linear-gradient(transparent 62%, rgba(47,182,163,.28) 0);
}
.hero-sub {
  font-size: 1.12rem; line-height: 1.55; color: #41514f;
  margin: 0 0 1.7rem; max-width: 46ch;
}

/* email capture */
.email-capture {
  display: flex; gap: .5rem; flex-wrap: wrap;
  background: #fff; padding: .4rem; border-radius: 16px;
  border: 1px solid rgba(14,47,53,.12);
  box-shadow: 0 18px 40px -28px rgba(14,47,53,.5); max-width: 480px;
}
.email-capture input {
  flex: 1 1 200px; min-width: 0; border: none; background: transparent;
  font-family: "Hanken Grotesk", sans-serif; font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border-radius: 12px;
}
.email-capture input::placeholder { color: #93999a; }
.email-capture input:focus { outline: none; background: var(--linen); }
.email-capture input:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.email-capture .btn-coral { flex: 0 0 auto; }
.email-capture.invalid input { box-shadow: inset 0 0 0 2px var(--coral-600); }

.email-capture-center { margin: 0 auto; }

.form-note {
  font-family: "IBM Plex Mono", monospace; font-size: .78rem; color: #5d6766;
  margin: .85rem 0 0; display: flex; align-items: center; gap: .45rem;
}
.form-note-center { justify-content: center; }
.form-note .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 3px rgba(47,182,163,.22);
}

/* demo / chart */
.hero-demo {
  margin: 0; background: #fff; border-radius: var(--radius);
  border: 1px solid rgba(14,47,53,.1);
  box-shadow: 0 30px 60px -34px rgba(14,47,53,.45);
  padding: 1rem 1rem 0.8rem; position: relative;
}
.demo-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: .2rem .3rem .8rem;
}
.demo-label {
  font-family: "Hanken Grotesk", sans-serif; font-weight: 600;
  font-size: .98rem; color: var(--petrol);
}
.demo-range {
  font-family: "IBM Plex Mono", monospace; font-size: .74rem;
  color: var(--teal-ink); background: rgba(47,182,163,.16);
  padding: .2rem .5rem; border-radius: 6px;
}
.demo-canvas-wrap { position: relative; height: 280px; }
#cashChart { width: 100% !important; height: 100% !important; }

/* the lifting veil */
.veil {
  position: absolute; inset: 0; left: 50%; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(245,242,236,0) 0%, rgba(236,231,220,.7) 14%, rgba(236,231,220,.96) 50%);
  backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%);
          mask-image: linear-gradient(90deg, transparent, #000 16%);
  border-radius: 0 12px 12px 0;
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}
.veil.lifted { opacity: 0; transform: translateY(-6px) scale(1.02); }

.demo-caption { margin: .55rem .2rem .2rem; text-align: right; }

/* =========================================================
   Problem (petrol section)
   ========================================================= */
.problem { background: var(--petrol); color: var(--linen); padding: 4rem 0; }
.problem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.problem-list li {
  background: rgba(255,255,255,.04); border: 1px solid rgba(245,242,236,.1);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.4rem; position: relative;
}
.pnum {
  font-family: "IBM Plex Mono", monospace; font-size: .8rem; font-weight: 500;
  color: var(--teal); letter-spacing: .1em;
}
.problem-list h3 {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 600;
  font-size: 1.22rem; margin: .5rem 0 .5rem; color: var(--linen);
}
.problem-list p { margin: 0; color: #c7d0cd; font-size: 1rem; }

/* =========================================================
   Solution
   ========================================================= */
.solution { padding: 4.4rem 0; }
.benefits { display: grid; gap: 1.4rem; }
.benefit {
  background: #fff; border: 1px solid rgba(14,47,53,.1); border-radius: var(--radius);
  padding: 1.4rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.benefit:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(14,47,53,.4); }
.benefit h3 {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: 1.2rem;
  color: var(--petrol); margin: 1rem 0 .4rem;
}
.benefit p { margin: 0; color: #45544f; font-size: .98rem; }

/* mini wireframes */
.wf {
  background: var(--linen); border: 1px solid rgba(14,47,53,.08);
  border-radius: 12px; height: 110px; padding: .7rem; color: var(--teal);
  display: flex; flex-direction: column; gap: .55rem;
}
.wf-bar { display: flex; gap: .35rem; }
.wf-bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(14,47,53,.18); }
.wf-bar span:first-child { background: var(--coral); }
.wf-curve { flex: 1; }
.wf-curve svg { width: 100%; height: 100%; color: var(--teal); }
.wf-rows { display: flex; flex-direction: column; gap: .4rem; flex: 1; justify-content: center; }
.wf-row { display: flex; align-items: center; gap: .5rem; }
.wf-row i { width: 10px; height: 10px; border-radius: 3px; background: rgba(14,47,53,.2); flex: 0 0 auto; }
.wf-row b { height: 8px; border-radius: 4px; background: rgba(14,47,53,.14); flex: 1; }
.wf-row.alert i { background: var(--amber); }
.wf-row.alert b { background: rgba(232,162,61,.32); width: 60%; }
.wf-scenarios { flex: 1; display: flex; align-items: flex-end; gap: .5rem; padding-bottom: .2rem; }
.wf-scenarios .sc { flex: 1; border-radius: 6px 6px 0 0; }
.sc-a { height: 46%; background: rgba(14,47,53,.22); }
.sc-b { height: 74%; background: var(--teal); }
.sc-c { height: 58%; background: rgba(232,162,61,.5); }

/* =========================================================
   How it works
   ========================================================= */
.how { background: var(--petrol); color: var(--linen); padding: 4.4rem 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.step {
  background: rgba(255,255,255,.04); border: 1px solid rgba(245,242,236,.12);
  border-radius: var(--radius); padding: 1.6rem 1.5rem; position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--teal); color: var(--petrol);
  font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 1.2rem;
  margin-bottom: .8rem;
}
.step h3 {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: 1.22rem;
  margin: 0 0 .4rem; color: var(--linen);
}
.step p { margin: 0; color: #c7d0cd; }
.step-link {
  background: none; border: none; border-radius: 0;
  padding: 0; height: 26px; display: flex; align-items: center; justify-content: center;
}
.step-link::before {
  content: ""; width: 2px; height: 100%;
  background: repeating-linear-gradient(var(--teal) 0 5px, transparent 5px 11px);
  opacity: .6;
}

/* =========================================================
   Social proof
   ========================================================= */
.proof { padding: 4rem 0; }
.proof-title {
  font-family: "IBM Plex Mono", monospace; text-align: center;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: #5d6766; font-weight: 500; margin: 0 0 2rem;
}
.logos {
  list-style: none; margin: 0 0 2.6rem; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.logo-ph {
  display: flex; align-items: center; justify-content: center;
  height: 64px; border-radius: 12px;
  border: 1px dashed rgba(14,47,53,.22); background: rgba(14,47,53,.025);
  font-family: "IBM Plex Mono", monospace; font-size: .8rem; color: #5f6968;
}
.quote {
  margin: 0; max-width: 680px; margin-inline: auto; text-align: center;
  background: #fff; border: 1px solid rgba(14,47,53,.1); border-radius: var(--radius);
  padding: 2rem 1.6rem;
}
.quote blockquote {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 500;
  font-size: 1.2rem; line-height: 1.4; color: var(--petrol); margin: 0 0 1rem;
}
.quote figcaption { font-family: "IBM Plex Mono", monospace; font-size: .8rem; color: #586261; }

/* =========================================================
   Pricing
   ========================================================= */
.pricing { padding: 4.4rem 0; background: var(--linen-200); }
.plans { display: grid; gap: 1.4rem; align-items: start; }
.plan {
  background: #fff; border: 1px solid rgba(14,47,53,.12); border-radius: 20px;
  padding: 1.8rem 1.6rem; position: relative;
}
.plan-featured {
  background: var(--petrol); color: var(--linen); border-color: var(--petrol);
  box-shadow: 0 34px 60px -30px rgba(14,47,53,.6);
}
.plan-badge {
  position: absolute; top: -.8rem; left: 1.6rem;
  background: var(--coral); color: #2a160f;
  font-family: "IBM Plex Mono", monospace; font-size: .7rem; font-weight: 600;
  letter-spacing: .06em; padding: .3rem .7rem; border-radius: 8px;
}
.plan-name {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: 1.3rem;
  margin: 0 0 .6rem;
}
.plan-price { margin: 0 0 .3rem; display: flex; align-items: baseline; gap: .25rem; }
.plan-price .amount {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 2.4rem;
  letter-spacing: -.02em;
}
.plan-price .per { font-family: "IBM Plex Mono", monospace; font-size: .9rem; opacity: .7; }
.plan-tag { margin: 0 0 1.2rem; font-size: .95rem; opacity: .85; }
.plan-featured .plan-tag { color: #c7d0cd; }
.plan-feats { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .6rem; }
.plan-feats li { position: relative; padding-left: 1.5rem; font-size: .96rem; }
.plan-feats li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 700;
}
.plan-featured .btn-outline { color: var(--linen); border-color: rgba(245,242,236,.4); }
.plan-featured .btn-outline:hover { border-color: var(--linen); background: rgba(245,242,236,.08); }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: 4.4rem 0; }
.faq-list { display: grid; gap: .8rem; }
.faq-item {
  background: #fff; border: 1px solid rgba(14,47,53,.12); border-radius: 14px;
  padding: 0 1.3rem; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 0;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: 1.05rem;
  color: var(--petrol); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: "IBM Plex Mono", monospace; font-size: 1.5rem;
  color: var(--coral-600); flex: 0 0 auto; transition: transform .2s var(--ease); line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 0 1.2rem; }
.faq-body p { margin: 0; color: #45544f; }

/* =========================================================
   Final CTA
   ========================================================= */
.final-cta { background: var(--petrol); padding: 4.6rem 0; }
.cta-inner { text-align: center; }
.cta-title {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700;
  font-size: clamp(1.8rem, 6vw, 2.8rem); line-height: 1.06; letter-spacing: -.02em;
  color: var(--linen); margin: 0 0 .9rem;
}
.cta-sub { color: #c7d0cd; font-size: 1.1rem; margin: 0 0 1.8rem; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #0a2227; color: #aeb9b7; padding: 3.2rem 0 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.brand-footer .brand-name { color: var(--linen); }
.footer-pitch { margin: .8rem 0 0; font-size: .95rem; max-width: 30ch; }
.footer-col h3 {
  font-family: "IBM Plex Mono", monospace; font-size: .76rem; letter-spacing: .1em;
  text-transform: uppercase; color: #7c8584; margin: 0 0 .9rem; font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: #c7d0cd; text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: var(--linen); text-decoration: underline; }
.footer-bottom {
  margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(245,242,236,.1);
}
.footer-bottom p { margin: 0; font-size: .82rem; color: #7c8584; }

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%) translateY(20px);
  background: var(--petrol); color: var(--linen); padding: .9rem 1.2rem; border-radius: 12px;
  box-shadow: 0 20px 40px -16px rgba(14,47,53,.6); z-index: 80; max-width: 92vw;
  font-size: .95rem; opacity: 0; transition: opacity .25s, transform .25s var(--ease);
}
.toast[hidden] { display: block; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast strong { color: var(--teal); }
.toast-sim { color: #9aa4a2; font-size: .82rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 640px) {
  .hide-mobile { display: inline; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 880px) {
  .nav-links { display: flex; }
  .hero { padding: 3.4rem 0 4rem; }
  .hero-grid { grid-template-columns: 0.85fr 1.15fr; gap: 3rem; }
  .demo-canvas-wrap { height: 340px; }
  .problem-list { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: auto 1fr auto 1fr auto 1fr; }
  .step-link { width: 40px; height: auto; }
  .step-link::before { width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 12px); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan-featured { transform: translateY(-12px); }
  .logos { grid-template-columns: repeat(6, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; transition-duration: .001ms !important;
  }
  .veil { opacity: 0 !important; }
}
