/* SmartFacture — site vitrine. Aucun script : rapide, lisible par les moteurs de recherche, accessible. */
:root {
  --bg: #ffffff; --bg-2: #f5f8f8; --text: #0f1b1d; --muted: #5b6b6e; --border: #e3eaea;
  --accent: #0f766e; --accent-2: #14b8a6; --accent-soft: #e7f5f3; --ink: #0b3b37;
  --orange: #d97706; --blue: #2563eb; --purple: #7c3aed; --pink: #db2777; --red: #dc2626; --green: #059669;
  --radius: 18px; --shadow: 0 1px 2px rgba(15, 27, 29, .05), 0 12px 32px -12px rgba(15, 27, 29, .18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1112; --bg-2: #101a1b; --text: #e8f0ef; --muted: #9db0ae; --border: #1f2d2e;
    --accent: #2dd4bf; --accent-2: #5eead4; --accent-soft: #0f2e2b; --ink: #ccfbf1;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 16px 40px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bg); padding: 8px 12px; z-index: 99; }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 650; text-decoration: none; border: 1px solid var(--border); color: var(--text); background: var(--bg); transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { color: #062a26; } }
.btn-small { height: 40px; padding: 0 18px; font-size: 15px; }

/* en-tête */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 550; }
.nav a:hover { color: var(--text); }
.top .btn { margin-left: 8px; }
@media (max-width: 860px) { .nav { display: none; } .top .btn-ghost { display: none; } .top .wrap { justify-content: space-between; } }

/* héros */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 760px; background: radial-gradient(600px 360px at 18% 30%, var(--accent-soft), transparent 70%), radial-gradient(520px 320px at 85% 10%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 70%); z-index: -1; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 560px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); padding: 0; margin: 0; list-style: none; }
.trust li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 6px; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* maquettes (illustrations en HTML, sans images lourdes) */
.stage { position: relative; min-height: 620px; }
.phone { position: absolute; z-index: 1; right: 4%; top: 0; width: 290px; border-radius: 44px; padding: 12px; background: #0f1b1d; box-shadow: 0 40px 80px -30px rgba(15, 27, 29, .55); }
.screen { border-radius: 34px; background: #f6f8f8; color: #0f1b1d; overflow: hidden; height: 560px; font-size: 13px; }
.notch { width: 96px; height: 26px; border-radius: 0 0 16px 16px; background: #0f1b1d; margin: 0 auto 10px; }
.scr-h { padding: 0 18px; display: flex; justify-content: space-between; align-items: baseline; }
.scr-h b { font-size: 22px; letter-spacing: -.02em; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #e7f5f3; color: #0f766e; }
.card-m { background: #fff; border-radius: 16px; margin: 10px 12px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.big-m { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.row-m { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #eef2f2; }
.row-m:last-child { border-bottom: 0; }
.row-m small { color: #6b7b7e; display: block; font-size: 11px; }
.ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; flex: none; }
.bar-m { height: 7px; border-radius: 999px; background: #eef2f2; overflow: hidden; margin-top: 5px; }
.bar-m i { display: block; height: 100%; border-radius: 999px; }
.scan { position: absolute; z-index: 2; left: 0; bottom: 20px; width: 300px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.scan .ok { color: var(--green); font-weight: 700; font-size: 13px; }
.scan dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0 0; font-size: 14px; }
.scan dt { color: var(--muted); }
.scan dd { margin: 0; font-weight: 650; text-align: right; }
.float-tag { position: absolute; z-index: 2; left: 0; top: 70px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 14px; }
.float-tag b { color: var(--accent); }
@media (max-width: 920px) { .stage { min-height: 680px; } .phone { right: 50%; transform: translateX(50%); } .scan { left: 50%; transform: translateX(-50%); bottom: -10px; } .float-tag { display: none; } }

/* bandeau logos / chiffres */
.facts { border-block: 1px solid var(--border); background: var(--bg-2); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 28px; text-align: center; }
.facts b { display: block; font-size: 26px; letter-spacing: -.02em; }
.facts span { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .facts .wrap { grid-template-columns: repeat(2, 1fr); } }

/* sections */
section { padding: 88px 0; }
.center { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.center p { color: var(--muted); font-size: 19px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 24px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.rev > :first-child { order: 2; }
.split ul { padding: 0; list-style: none; margin: 18px 0 0; }
.split li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--muted); }
.split li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 6px; background: var(--accent-soft); box-shadow: inset 0 0 0 5px var(--accent-soft), inset 0 0 0 9px var(--accent); }
.split li b { color: var(--text); }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.rev > :first-child { order: 0; } }

.panel { border-radius: 24px; background: var(--bg-2); border: 1px solid var(--border); padding: 22px; box-shadow: var(--shadow); }
.panel .card-m { margin: 0 0 10px; color: #0f1b1d; }
.tx { display: grid; grid-template-columns: 66px 1fr auto; gap: 10px; align-items: center; font-size: 14px; padding: 9px 0; border-bottom: 1px solid #eef2f2; }
.tx:last-child { border-bottom: 0; }
.tx .d { color: #6b7b7e; font-size: 12px; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.t-green { background: #e5f6ef; color: #047857; } .t-blue { background: #e8effd; color: #1d4ed8; } .t-orange { background: #fdf3e2; color: #b45309; } .t-purple { background: #f1ebfe; color: #6d28d9; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 10px; }
.bars div { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; }
.bars div i:last-child { border-radius: 6px 6px 0 0; }
.bars div i { display: block; }
.bars-x { display: flex; gap: 8px; font-size: 11px; color: #6b7b7e; margin-top: 6px; }
.bars-x span { flex: 1; text-align: center; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); transition: border-color .15s, transform .15s; }
.feat:hover { border-color: var(--accent); transform: translateY(-2px); }
.feat .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; }
.feat p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 920px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.who article { padding: 30px; border-radius: 24px; background: var(--bg-2); border: 1px solid var(--border); }
.who .emoji { font-size: 34px; }
.who p { color: var(--muted); }
@media (max-width: 860px) { .who { grid-template-columns: 1fr; } }

.secure { background: var(--ink); color: #e6fffb; border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (prefers-color-scheme: dark) { .secure { background: #0f2e2b; } }
.secure h2 { color: #fff; }
.secure p, .secure li { color: #b8e6df; }
.secure ul { margin: 0; padding-left: 20px; }
.secure li { margin-bottom: 10px; }
@media (max-width: 860px) { .secure { grid-template-columns: 1fr; padding: 32px; } }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

.final { text-align: center; padding: 72px 24px; border-radius: 32px; background: linear-gradient(135deg, var(--accent), #0e7490); color: #fff; }
.final h2 { color: #fff; }
.final p { color: #d5f5f0; font-size: 19px; }
.final .btn { background: #fff; color: #0b3b37; border-color: #fff; }
.final .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }

footer { padding: 48px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* pages de texte (confidentialité) */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: 40px; }
.doc h2 { font-size: 24px; margin-top: 36px; }
.doc p, .doc li { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
