/* Neralia — site vitrine
   Aucune ressource externe (polices système, pas de traceur) : rien à déclarer côté cookies. */

:root {
  --paper: #ffffff;
  --paper-2: #f8fafc;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #14b8a6;
  --accent-ink: #0f766e;
  --accent-soft: #f0fdfa;
  --deep: #0f172a;
  --warn: #b45309;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px -12px rgba(15, 23, 42, .16);
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(1160px, 100% - 64px); } }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.12; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.muted { color: var(--muted); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 1.35rem/1 var(--serif); }
.brand img { width: 30px; height: 30px; }
.nav-links { display: none; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: none; gap: 10px; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; cursor: pointer; }
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 12px 0 20px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 14px; width: 100%; justify-content: center; }
@media (min-width: 960px) {
  .nav-links, .nav-cta { display: flex; }
  .menu-btn, .mobile-menu, .mobile-menu.open { display: none; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--deep); color: #ffffff; }
.btn-primary:hover { background: color-mix(in srgb, var(--deep) 85%, var(--accent)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }

/* ---------- Héros ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.hero .lead { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.hero-note strong { color: var(--ink-soft); }

/* Composition « écran » en HTML/CSS (pas de capture : toujours nette, toujours à jour) */
.stage { display: grid; gap: 16px; }
.stage-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .stage-row { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; font-size: .86rem;
}
.panel-title { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 12px; }
.panel-title .tag { font: 600 .7rem/1 var(--sans); padding: 5px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.agenda { width: 100%; }
@media (min-width: 1000px) { .agenda { transform: rotate(-.6deg); } }
.slot { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); }
.slot time { color: var(--muted); font-variant-numeric: tabular-nums; }
.event { border-left: 3px solid var(--accent); background: var(--paper-2); border-radius: 8px; padding: 6px 10px; }
.event b { display: block; font-weight: 600; }
.event span { color: var(--ink-soft); font-size: .8rem; }
.event.hearing { border-color: #b45309; background: color-mix(in srgb, #f59e0b 16%, var(--card)); }
.event.pending { border-left-color: #94a3b8; }
.invoice { transform: rotate(1.2deg); }
.invoice .row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.invoice .total { font-weight: 700; border: 0; padding-top: 10px; font-size: 1rem; }
.invoice .badge { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font: 600 .72rem/1 var(--mono); color: var(--accent-ink); }
.deadline-chip { transform: rotate(-1.5deg); margin-top: 18px; }
.deadline-chip .late { color: #b91c1c; font-weight: 700; }
@media (max-width: 559px) { .invoice, .deadline-chip { transform: none; margin-top: 0; } }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { display: grid; gap: 16px; margin-bottom: 44px; max-width: 760px; }
.alt { background: var(--paper-2); border-block: 1px solid var(--line); }

.audiences { display: grid; gap: 16px; }
@media (min-width: 760px) { .audiences { grid-template-columns: repeat(3, 1fr); } }
.audience { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.audience h3 { font-size: 1.15rem; margin-bottom: 8px; }
.audience p { color: var(--ink-soft); font-size: .96rem; }

.modules { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 680px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .modules { grid-template-columns: repeat(4, 1fr); } }
.module { background: var(--card); padding: 26px 24px 28px; }
.module .num { font: 600 .75rem/1 var(--mono); color: var(--accent-ink); }
.module h3 { margin: 12px 0 8px; font-size: 1.2rem; }
.module p { color: var(--ink-soft); font-size: .94rem; }
.module ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: .9rem; }
.module li { margin: 3px 0; }

/* Focus (texte + illustration) */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split.reverse > :first-child { order: 2; } }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; color: var(--ink-soft); }
.checks li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230b6f66' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.checks strong { color: var(--ink); }
.note { margin-top: 20px; font-size: .88rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }

.xml { font: .8rem/1.6 var(--mono); background: var(--deep); color: #cbd5e1; border-radius: var(--radius); padding: 22px; overflow-x: auto; box-shadow: var(--shadow); }
.xml .k { color: #5eead4; }
.xml .c { color: #94a3b8; }

/* Exemple de facture (section facture électronique) */
.invoice-doc { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); font-size: .9rem; color: var(--ink-soft); }
.inv-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px 24px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.inv-firm { font: 600 1.15rem/1.25 var(--serif); color: var(--ink); }
.inv-title { font-weight: 700; color: var(--ink); }
.inv-ref { text-align: right; }
.inv-sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.inv-parties { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.inv-parties span { display: inline-block; min-width: 72px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.inv-lines { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.inv-lines th { text-align: left; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line); }
.inv-lines th:last-child, .inv-lines td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; }
.inv-lines td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.inv-lines .sub td { font-weight: 600; color: var(--ink); }
.inv-lines .total td { border-bottom: 0; padding-top: 12px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.inv-legal { margin-top: 14px; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.inv-badge { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); font-size: .82rem; color: var(--ink-soft); }
.inv-badge strong { display: block; margin-bottom: 2px; color: var(--accent-ink); font-size: .8rem; letter-spacing: .04em; }
@media (max-width: 520px) { .inv-top { grid-template-columns: minmax(0, 1fr); } .inv-ref { text-align: left; } }

.calc { display: grid; gap: 10px; }
.calc-step { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: .92rem; }
.calc-step b { font-family: var(--mono); font-size: .82rem; color: var(--accent-ink); font-weight: 600; }
.calc-step.result { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }

/* Confiance */
.trust { display: grid; gap: 20px; }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.trust-item p { color: var(--ink-soft); font-size: .95rem; }
.trust-item { padding-top: 18px; border-top: 2px solid var(--ink); }

/* Tarif */
.pricing { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .pricing { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; }
.price strong { font: 600 3.4rem/1 var(--serif); }
.price span { color: var(--muted); }
.price-card .btn { margin-top: 24px; width: 100%; justify-content: center; }
.price-card .checks { margin-top: 22px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font: 600 1.08rem/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 1.6rem/1 var(--sans); color: var(--accent-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 70ch; }

/* Appel final */
.final { background: var(--deep); color: #e2e8f0; border-radius: 24px; padding: clamp(32px, 6vw, 64px); display: grid; gap: 24px; }
@media (min-width: 900px) { .final { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.final h2 { color: #ffffff; }
.final p { color: #cbd5e1; margin-top: 12px; }
.final .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.final .btn-primary { background: #2dd4bf; color: #0f172a; }
.final .btn-primary:hover { background: #5eead4; }
.final .btn-ghost { color: #e2e8f0; border-color: rgba(226, 232, 240, .35); }
.final a:not(.btn) { color: #5eead4; }
.price-example { margin-top: 18px; font-size: .92rem; color: var(--muted); }

/* Formulaire de demande de démo (dans le bloc final) */
.final-form { align-items: start; }
.final-form .eyebrow { color: #5eead4; margin-bottom: 14px; }
.final-form p + p { margin-top: 14px; }
@media (min-width: 900px) { .final.final-form { grid-template-columns: 1fr 1.15fr; gap: 48px; } }
.demo-form { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .demo-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .demo-form .full { grid-column: 1 / -1; } }
.demo-form label { display: block; margin-bottom: 6px; font: 600 .82rem/1.3 var(--sans); color: #e2e8f0; }
.demo-form .opt { font-weight: 400; color: #94a3b8; }
.demo-form input, .demo-form select, .demo-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(226, 232, 240, .25);
  background: #ffffff; color: #0f172a; font: 400 1rem/1.4 var(--sans);
}
.demo-form textarea { min-height: 96px; resize: vertical; }
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { outline: 3px solid #2dd4bf; outline-offset: 1px; }
.demo-form .consent { margin: 0; font-size: .85rem; color: #94a3b8; }
.demo-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pied de page */
.site-footer { padding: 40px 0 56px; color: var(--muted); font-size: .9rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }

/* Pages de texte (mentions légales, confidentialité) */
.doc { max-width: 760px; padding: 48px 0 80px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 24px; }
.doc h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; }
.todo { background: color-mix(in srgb, #f59e0b 18%, var(--card)); color: var(--ink); padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.doc-banner { padding: 14px 16px; border-radius: 10px; border: 1px solid color-mix(in srgb, #f59e0b 45%, var(--line)); background: color-mix(in srgb, #f59e0b 10%, var(--card)); font-size: .92rem; margin-bottom: 28px; }

/* Animation d'apparition seulement si le script tourne : sans JS, tout reste visible */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
