/* FactureFlash — page d'accueil */
:root {
  --bg: #faf9f6;
  --bg-alt: #f3f1ec;
  --card: #ffffff;
  --ink: #14201c;
  --ink-2: #3d4a45;
  --muted: #6c7772;
  --line: #e4e1d9;
  --brand: #1f6f5c;
  --brand-2: #155445;
  --brand-deep: #0f3d33;
  --brand-soft: #e3f0eb;
  --spark: #ffd166;
  --on-brand: #ffffff;
  --shadow-sm: 0 1px 2px rgba(20, 32, 28, .06), 0 1px 1px rgba(20, 32, 28, .04);
  --shadow: 0 1px 2px rgba(20, 32, 28, .05), 0 8px 24px -6px rgba(20, 32, 28, .12);
  --shadow-lg: 0 2px 4px rgba(20, 32, 28, .04), 0 24px 60px -12px rgba(20, 32, 28, .22);
  --radius: 16px;
  --serif: "Instrument Serif", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1412; --bg-alt: #121a17; --card: #17201d; --ink: #eef3f0; --ink-2: #c3ccc8; --muted: #8d9894;
    --line: #26302c; --brand: #4fb79a; --brand-2: #6fcdb1; --brand-deep: #0b2a23; --brand-soft: #16302a;
    --on-brand: #06201a;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 8px 24px -6px rgba(0,0,0,.5); --shadow-lg: 0 24px 60px -12px rgba(0,0,0,.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
svg { display: block; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--brand); letter-spacing: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: var(--on-brand); text-decoration: none; font-weight: 600;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent; font-size: 15px;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -6px rgba(31,111,92,.6);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--brand-2); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 24px -8px rgba(31,111,92,.7); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--spark); outline-offset: 3px; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--card); border-color: var(--muted); box-shadow: var(--shadow); }
.btn-light { background: #fff; color: #0f3d33; box-shadow: 0 8px 24px -8px rgba(0,0,0,.35); }
.btn-light:hover { background: #fff; box-shadow: 0 12px 28px -8px rgba(0,0,0,.45); }
.arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.4); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 18px; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(145deg, #2a8a72, #134a3d); display: grid; place-items: center; box-shadow: 0 4px 12px -4px rgba(31,111,92,.7), inset 0 1px 0 rgba(255,255,255,.2); }
.logo-mark svg { width: 18px; height: 18px; fill: var(--spark); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--bg-alt); color: var(--ink); }
@media (max-width: 720px) { .nav-links { display: none; } .nav-in > .btn { margin-left: auto; } }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.glow { position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 38%, rgba(79,183,154,.28), transparent 70%),
    radial-gradient(30% 40% at 62% 70%, rgba(255,209,102,.22), transparent 70%),
    radial-gradient(35% 40% at 10% 10%, rgba(31,111,92,.10), transparent 70%);
  filter: blur(10px); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(60% 60% at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000 20%, transparent 75%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 56px; } .hero { padding-top: 48px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand); background: var(--card); border: 1px solid var(--line); padding: 6px 14px 6px 10px; border-radius: 99px; box-shadow: var(--shadow-sm); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.hero h1 { font-size: clamp(40px, 6.2vw, 72px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; margin: 22px 0 22px; }
.hero h1 em { display: inline-block; font-size: 1.08em; letter-spacing: -.02em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 540px; margin: 0 0 32px; line-height: 1.55; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.assure { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; }
.assure li { display: flex; align-items: center; gap: 6px; }
.assure svg, .checks li::before { width: 16px; height: 16px; fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Facture de démonstration */
.hero-visual { position: relative; padding: 52px 8px 40px; }
.invoice { position: relative; background: #fff; color: #1c2422; border-radius: 18px; padding: 30px 30px 24px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(20,32,28,.06); transform: rotate(-1.2deg); font-size: 13px; }
.inv-top { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid #eceae4; }
.inv-name { font-weight: 700; font-size: 15px; }
.inv-sub { color: #7a8480; font-size: 12px; margin-top: 2px; }
.inv-title { text-align: right; font-weight: 800; letter-spacing: .08em; font-size: 15px; color: #1f6f5c; }
.inv-title span { display: block; font-weight: 500; letter-spacing: 0; color: #7a8480; font-size: 12px; margin-top: 2px; }
.inv-client { margin: 18px 0; line-height: 1.5; }
.inv-client span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #9aa29f; margin-bottom: 2px; }
.inv-row { display: grid; grid-template-columns: 1fr 40px 96px; gap: 8px; padding: 9px 0; border-bottom: 1px solid #f0eee9; }
.inv-row span:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.inv-head { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #9aa29f; border-bottom: 1.5px solid #1c2422; }
.inv-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 0 auto; width: 62%; padding: 12px 14px; background: #eef6f2; border-radius: 10px; }
.inv-total b { font-size: 20px; color: #134a3d; font-variant-numeric: tabular-nums; }
.inv-legal { margin-top: 18px; font-size: 10.5px; color: #9aa29f; line-height: 1.5; }
.float { position: absolute; display: flex; align-items: center; gap: 12px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-lg); font-size: 14px; animation: bob 6s ease-in-out infinite; }
.float small { display: block; color: var(--muted); font-size: 12px; }
.f1 { left: -18px; bottom: 6px; }
.f2 { right: -12px; top: -12px; display: block; min-width: 200px; animation-delay: -3s; }
.f-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); }
.f-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.f-k { font-size: 12px; font-weight: 600; color: var(--muted); }
.f-bar { height: 8px; background: var(--bg-alt); border-radius: 99px; margin: 8px 0 6px; overflow: hidden; }
.f-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #6fcdb1); border-radius: 99px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 600px) { .invoice { padding: 22px 18px; transform: none; } .f1 { left: 4px; bottom: -6px; } .f2 { right: 4px; top: -18px; min-width: 170px; } .inv-total { width: 100%; } }

/* Bandeau chiffres */
.strip { border-block: 1px solid var(--line); background: var(--card); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-in div { padding: 26px 16px; text-align: center; border-left: 1px solid var(--line); }
.strip-in div:first-child { border-left: 0; }
.strip-in b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.strip-in span { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .strip-in { grid-template-columns: repeat(2, 1fr); } .strip-in div:nth-child(3) { border-left: 0; } .strip-in div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Sections */
.section { padding: 112px 0; }
.section.alt { background: var(--bg-alt); }
@media (max-width: 600px) { .section { padding: 80px 0; } }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.sec-head h2, .final h2 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; margin: 0 0 16px; }
.sec-head p { color: var(--ink-2); font-size: 18px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.ico { width: 48px; height: 48px; border-radius: 13px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 20px; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat h3, .steps h3 { font-size: 18px; letter-spacing: -.015em; margin: 0 0 8px; }
.feat p, .steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px 28px; box-shadow: var(--shadow-sm); }
.num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--on-brand); background: linear-gradient(145deg, #2a8a72, #134a3d); margin-bottom: 20px; box-shadow: 0 6px 16px -6px rgba(31,111,92,.7); }

/* Tarifs */
.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin: 0 auto; align-items: stretch; }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 36px 32px 32px; box-shadow: var(--shadow-sm); }
.plan h3 { font-size: 20px; margin: 0; letter-spacing: -.01em; }
.plan-desc { color: var(--muted); margin: 4px 0 20px; font-size: 15px; }
.price { font-size: 56px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 28px; }
.price span:last-child { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; flex: 1; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.checks li::before { content: ""; flex: none; margin-top: 3px; background: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231f6f5c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10 3 3 7-7'/%3E%3C/svg%3E"); }
.plan-pro { background: radial-gradient(120% 80% at 100% 0%, #2a8a72 0%, #134a3d 55%, #0c3229 100%); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); }
.plan-pro .plan-desc, .plan-pro .price span:last-child, .plan-note { color: rgba(255,255,255,.72); }
.plan-pro .checks li { color: rgba(255,255,255,.92); }
.plan-pro .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ffd166' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10 3 3 7-7'/%3E%3C/svg%3E"); }
.plan-note { font-size: 13px; text-align: center; margin: 12px 0 0; }
.ribbon { position: absolute; top: 20px; right: 20px; font-size: 12px; font-weight: 700; color: #3d2e00; background: var(--spark); padding: 5px 12px; border-radius: 99px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 17px; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-alt) no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231f6f5c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M10 4v12M4 10h12'/%3E%3C/svg%3E"); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); line-height: 1.65; }

/* Appel final */
.final { padding: 0 0 112px; background: var(--bg-alt); }
.final-in { position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 28px; padding: 88px 24px; background: radial-gradient(80% 120% at 50% 0%, #2a8a72 0%, #134a3d 50%, #0a2b23 100%); box-shadow: var(--shadow-lg); }
.final-in::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 85% 100%, rgba(255,209,102,.25), transparent 70%); pointer-events: none; }
.final-in > * { position: relative; }
.final h2 em { color: var(--spark); }
.final p { color: rgba(255,255,255,.75); font-size: 18px; margin: 0 0 32px; }

/* Pied de page */
.foot { padding: 40px 0; border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot nav a:hover { color: var(--ink); }
.copy { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .foot nav { margin-left: 0; width: 100%; } }

/* Animations d'apparition */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.features .reveal:nth-child(3n+2), .steps .reveal:nth-child(2), .prices .reveal:nth-child(2) { transition-delay: .08s; }
.features .reveal:nth-child(3n), .steps .reveal:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
  .btn, .feat { transition: none; }
}
