/* eFatoura — site vitrine. Identité « Majorelle » : indigo, nuit, safran, zellige. */
:root {
  --majorelle: #4f46e5;
  --majorelle-2: #6366f1;
  --majorelle-light: #818cf8;
  --majorelle-soft: #eef0ff;
  --ink: #0f0d2e;
  --ink-2: #1e1b4b;
  --ink-3: #312e81;
  --saffron: #f5b83d;
  --zellige: #14b8a6;
  --paid: #059669;
  --overdue: #dc2626;
  --text: #0f172a;
  --muted: #5b6478;
  --line: #e6e8f2;
  --bg: #f5f6fb;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 20px 50px -24px rgba(30, 27, 75, .35);
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); background: var(--white);
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--majorelle); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.35em; border-radius: 12px;
  font-weight: 700; font-size: .98rem; border: 1px solid transparent; cursor: pointer; transition: .18s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--majorelle); color: #fff; box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .7); }
.btn-primary:hover { background: #4338ca; transform: translateY(-1px); }
.btn-saffron { background: var(--saffron); color: var(--ink); }
.btn-saffron:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--majorelle-light); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(230, 232, 242, .8);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand b { color: var(--majorelle); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--majorelle-soft); color: var(--majorelle); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; flex-shrink: 0; }
.nav-cta .btn-outline { padding: .85em 1.1em; }
.brand { flex-shrink: 0; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; transition: .2s; }

/* ---------- Héros ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(99, 102, 241, .55), transparent 60%),
              radial-gradient(800px 420px at -10% 110%, rgba(20, 184, 166, .35), transparent 60%),
              linear-gradient(135deg, var(--ink), var(--ink-2) 55%, var(--ink-3));
}
.hero::after {
  content: ""; position: absolute; width: 360px; height: 360px; left: 38%; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 184, 61, .28), transparent 65%); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 84px 0 96px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--saffron), #ffd98a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.2rem; color: rgba(255, 255, 255, .82); max-width: 560px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .78rem;
  font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--saffron);
  background: rgba(245, 184, 61, .12); border: 1px solid rgba(245, 184, 61, .45); margin-bottom: 20px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.trust li {
  display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: rgba(255, 255, 255, .86);
  padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
}
.trust svg { width: 15px; height: 15px; color: #6ee7b7; }
.hero-visual { position: relative; }
.hero-visual .screen {
  border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65); background: #fff; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}
.hero-visual .screen img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: top; }
.hero-visual .phone {
  position: absolute; width: 34%; right: -4%; bottom: -12%; border-radius: 26px; overflow: hidden;
  border: 6px solid #0b0a24; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); background: #fff;
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--bg); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--majorelle); margin-bottom: 12px; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: .2s ease; position: relative;
}
.card:hover { border-color: #c7caf5; box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: #fff;
  background: linear-gradient(135deg, var(--majorelle), var(--majorelle-2)); box-shadow: 0 10px 20px -10px rgba(79, 70, 229, .8);
}
.icon svg { width: 24px; height: 24px; }
.icon.teal { background: linear-gradient(135deg, #0d9488, var(--zellige)); box-shadow: 0 10px 20px -10px rgba(20, 184, 166, .8); }
.icon.saffron { background: linear-gradient(135deg, #d97706, var(--saffron)); box-shadow: 0 10px 20px -10px rgba(217, 119, 6, .7); }
.icon.rose { background: linear-gradient(135deg, #be123c, #f43f5e); box-shadow: 0 10px 20px -10px rgba(225, 29, 72, .7); }
.icon.purple { background: linear-gradient(135deg, #7c3aed, #a855f7); box-shadow: 0 10px 20px -10px rgba(124, 58, 237, .7); }
.icon.sky { background: linear-gradient(135deg, #0369a1, #0ea5e9); box-shadow: 0 10px 20px -10px rgba(14, 165, 233, .7); }

/* Problème → solution */
.pain-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.pain-row { display: grid; grid-template-columns: 1fr 1.6fr; border-top: 1px solid var(--line); }
.pain-row:first-child { border-top: 0; }
.pain-row > div { padding: 18px 22px; }
.pain-row .pain { color: var(--muted); font-weight: 600; background: #fafbff; display: flex; gap: 10px; align-items: center; }
.pain-row .pain::before { content: "✕"; color: var(--overdue); font-weight: 800; }
.pain-row .gain { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.pain-row .gain::before { content: "✓"; color: var(--paid); font-weight: 800; }
.pain-head { background: var(--ink); color: #fff; font-weight: 800; }
.pain-head > div { background: transparent !important; color: #fff !important; }
.pain-head > div::before { content: none !important; }

/* Circuit */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: step; }
.flow li {
  list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 16px; position: relative;
  counter-increment: step;
}
.flow li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--majorelle-soft); color: var(--majorelle); font-weight: 800; margin-bottom: 12px;
}
.flow li h3 { font-size: 1rem; margin-bottom: 6px; }
.flow li p { font-size: .88rem; color: var(--muted); margin: 0; }
.flow { padding: 0; margin: 0; }

/* Bloc split image / texte */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: 0 0 22px; height: 22px; border-radius: 7px; margin-top: 3px;
  background: var(--majorelle-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
}
.shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }

/* Bandeau sombre */
.dark-band {
  color: #fff; border-radius: 26px; padding: 56px; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 90% 0%, rgba(99, 102, 241, .5), transparent 60%), linear-gradient(135deg, var(--ink), var(--ink-3));
}
.dark-band h2, .dark-band h3 { color: #fff; }
.dark-band p { color: rgba(255, 255, 255, .8); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.stat { padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.stat b { display: block; font-size: 1.6rem; color: var(--saffron); }
.stat span { font-size: .9rem; color: rgba(255, 255, 255, .78); }

/* Audiences */
.audience { padding: 34px; border-radius: 22px; border: 1px solid var(--line); background: #fff; }
.audience.company { background: linear-gradient(180deg, #fff, #f6f5ff); }
.audience.firm { background: linear-gradient(180deg, #fff, #f0fdfa); }
.tag { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }
.tag.indigo { background: var(--majorelle-soft); color: var(--majorelle); }
.tag.teal { background: #ccfbf1; color: #0f766e; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--majorelle); transition: .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* CTA final */
.cta-final { text-align: center; }
.cta-final .dark-band { padding: 64px 40px; }
.cta-final .hero-actions { justify-content: center; }

/* Pages internes */
.page-hero {
  color: #fff; padding: 72px 0 64px;
  background: radial-gradient(800px 360px at 90% -20%, rgba(99, 102, 241, .5), transparent 60%), linear-gradient(135deg, var(--ink), var(--ink-2));
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); }
.page-hero p { color: rgba(255, 255, 255, .8); font-size: 1.15rem; max-width: 720px; margin: 0; }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose p, .prose li { color: #334155; }
.download-card { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
.download-card .os { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--majorelle-soft); color: var(--majorelle); }
.download-card .os svg { width: 32px; height: 32px; }
.soon { font-size: .78rem; font-weight: 800; color: #b45309; background: #fef3c7; padding: 4px 10px; border-radius: 999px; }
.note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 14px; padding: 16px 20px; color: #78350f; font-size: .95rem; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.contact-grid label { display: block; font-weight: 700; font-size: .92rem; margin: 14px 0 6px; }
.contact-grid input, .contact-grid select, .contact-grid textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); font: inherit; background: #f8f9fd;
}
.contact-grid input:focus, .contact-grid select:focus, .contact-grid textarea:focus { outline: 2px solid var(--majorelle-light); border-color: transparent; background: #fff; }

/* Pied de page */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer .brand { color: #fff; }
.site-footer .brand b { color: var(--saffron); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links a { padding: 8px 9px; font-size: .92rem; }
}
@media (max-width: 1080px) {
  .flow { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .menu-toggle { display: block; }
  .nav-links, .nav-cta .btn-outline { display: none; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 14px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-header.open .nav-links a { padding: 12px 14px; }
  .site-header.open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-header.open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 56px 0 90px; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pain-row { grid-template-columns: 1fr; }
  .pain-head { display: none; }
  .dark-band { padding: 36px 24px; }
  .download-card { grid-template-columns: auto 1fr; }
  .download-card .btn, .download-card .soon { grid-column: 1 / -1; justify-self: start; }
}
.nav-links .nav-demo { display: none; }
@media (max-width: 560px) {
  .nav-cta .btn-primary { display: none; }
  .site-header.open .nav-links .nav-demo { display: block; }
  .site-header.open .nav-links .nav-demo a { background: var(--majorelle); color: #fff; text-align: center; margin-top: 6px; }
  .flow, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual .phone { width: 40%; right: 0; }
  .nav-cta .btn { padding: .7em 1em; font-size: .9rem; }
}
