/* Zenpapier — page vitrine. Même identité que l'appli, mise en page éditoriale. */
:root {
  --bg: #ffffff; --bg2: #f6f7fb; --text: #0f172a; --muted: #5b6478; --line: #e6e8f0; --card: #ffffff; --entete: rgba(255, 255, 255, .85); --halo-1: #ede9fe; --halo-2: #e0e7ff;
  --primary: #4f46e5; --primary-2: #7c3aed; --primary-soft: #eef0ff; --ok: #059669; --warn: #b45309; --danger: #be123c;
  --radius: 18px; --shadow: 0 10px 40px rgba(15, 23, 42, .08);
  color-scheme: light dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.center { text-align: center; }
.sub { color: var(--muted); }
.narrow { max-width: 780px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 20px; border-radius: 12px; font-weight: 650; text-decoration: none; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border: 1px solid transparent; transition: transform .1s, box-shadow .2s; box-shadow: 0 6px 18px rgba(79, 70, 229, .25); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(79, 70, 229, .32); }
.btn.ghost { background: var(--card); color: var(--primary); border-color: var(--line); box-shadow: none; }
.btn.white { background: #fff; color: var(--primary); }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn.big { padding: 15px 26px; font-size: 1.05rem; }
.btn.block { display: flex; width: 100%; }

/* En-tête */
.lp-header { position: sticky; top: 0; z-index: 10; background: var(--entete); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.lp-header .row { height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.logo img { border-radius: 9px; }
.logo b { color: var(--primary); }
.lp-nav { display: flex; gap: 26px; }
.lp-nav a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: .95rem; }
.lp-nav a:hover { color: var(--text); }

/* Hero */
.hero { background: radial-gradient(1000px 500px at 80% -10%, var(--halo-1) 0%, transparent 60%), radial-gradient(800px 400px at -10% 10%, var(--halo-2) 0%, transparent 55%); padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: 6px 12px; border-radius: 999px; margin: 0 0 18px; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; }
.grad { background: linear-gradient(90deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.lead strong { color: var(--text); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: .92rem; font-weight: 550; }

/* Maquette de téléphone */
.phone { justify-self: center; width: 300px; padding: 12px; border-radius: 42px; background: #0f172a; box-shadow: 0 30px 80px rgba(15, 23, 42, .28), inset 0 0 0 2px #334155; transform: rotate(2deg); }
.phone-screen { border-radius: 32px; background: #f6f7fb; padding: 16px 12px 18px; display: grid; gap: 8px; font-size: 12px; }
.m-top { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.m-top img { border-radius: 5px; }
.m-bell { margin-left: auto; position: relative; }
.m-bell i { position: absolute; top: -6px; right: -8px; background: var(--danger); color: #fff; font-style: normal; font-size: 9px; font-weight: 700; border-radius: 8px; padding: 0 4px; }
.m-hello { font-size: 17px; font-weight: 750; margin: 4px 0 2px; }
.m-summary, .m-eco { display: flex; gap: 8px; align-items: center; background: #fff7e6; border-radius: 12px; padding: 9px 10px; }
.m-eco { background: #fff1f3; }
.m-eco.green { background: #ecfdf5; }
.m-summary small, .m-eco small, .m-card small { display: block; color: var(--muted); font-size: 10.5px; }
.m-card { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 12px; padding: 8px 9px; }
.m-card.red { border-left-color: var(--danger); }
.m-card.amber { border-left-color: #f59e0b; }
.m-card > div:nth-child(2) { flex: 1; }
.m-date { width: 34px; text-align: center; background: var(--bg2); border-radius: 8px; line-height: 1.05; padding: 3px 0; }
.m-date b { display: block; font-size: 14px; }
.m-date small { font-size: 9px; text-transform: uppercase; }
.m-badge { font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.m-badge.red { background: #fff1f3; color: var(--danger); }
.m-badge.amber { background: #fff7e6; color: var(--warn); }

/* Bandeau bénéfices */
.band { background: var(--bg2); padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.three article { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.three h2 { font-size: 1.15rem; margin: 10px 0 6px; }
.three p { color: var(--muted); margin: 0; }
.ico { font-size: 1.8rem; }

/* Sections */
.section { padding: 76px 22px; }
.h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.02em; text-align: center; margin: 0 0 36px; }
.h2.light { color: #fff; text-align: left; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 22px; }
.steps span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-weight: 800; }
.steps h3 { margin: 14px 0 6px; }
.steps p { margin: 0; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.features > div { background: var(--bg2); border-radius: var(--radius); padding: 22px; }
.features span { font-size: 1.6rem; }
.features h3 { font-size: 1.02rem; margin: 10px 0 6px; }
.features p { margin: 0; color: var(--muted); font-size: .94rem; }

/* Confidentialité */
.privacy-band { background: linear-gradient(135deg, #1e1b4b, #312e81 60%, #4c1d95); color: #e0e7ff; padding: 72px 0; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.privacy-grid p { font-size: 1.08rem; color: #c7d2fe; }
.privacy-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.privacy-grid li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 14px 16px; }
.privacy-grid b { color: #fff; }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 22px; justify-content: center; margin-top: 18px; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.plan.best { border: 2px solid var(--primary); box-shadow: 0 20px 50px rgba(79, 70, 229, .18); }
.plan h3 { margin: 0; font-size: 1.2rem; }
.price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan ul { padding-left: 18px; margin: 10px 0 18px; flex: 1; }
.plan li { margin: 6px 0; }
.tag { position: absolute; top: -12px; right: 20px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

/* FAQ */
#faq details { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; background: var(--card); }
#faq summary { cursor: pointer; font-weight: 650; }
#faq details p { color: var(--muted); margin: 10px 0 0; }

/* Appel final et pied de page */
.final { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #e0e7ff; padding: 70px 0; }
.final .h2.light { text-align: center; margin-bottom: 10px; }
.final p { font-size: 1.1rem; margin: 0 0 24px; }
.lp-footer { padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.wrap-foot { flex-wrap: wrap; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.lp-footer a { color: var(--muted); text-decoration: none; }
.lp-footer a:hover { color: var(--text); }

/* Mobile */
@media (max-width: 900px) {
  .lp-nav { display: none; }
  .hero { padding: 40px 0 56px; }
  .hero-grid, .privacy-grid { grid-template-columns: 1fr; }
  .phone { transform: none; width: 280px; }
  .three, .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .section { padding: 56px 22px; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Mode sombre : automatique selon le système, ou forcé depuis l'appli (Réglages → Affichage) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) {
    --bg: #0b0f1a; --bg2: #111827; --card: #131a2a; --text: #e8ecf4; --muted: #9aa5b8; --line: #243049;
    --primary: #a5b4fc; --primary-2: #a78bfa; --primary-soft: #312e8155;
    --entete: rgba(11, 15, 26, .85); --halo-1: #2e1065; --halo-2: #1e1b4b; --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="sombre"] {
  --bg: #0b0f1a; --bg2: #111827; --card: #131a2a; --text: #e8ecf4; --muted: #9aa5b8; --line: #243049;
  --primary: #a5b4fc; --primary-2: #a78bfa; --primary-soft: #312e8155;
  --entete: rgba(11, 15, 26, .85); --halo-1: #2e1065; --halo-2: #1e1b4b; --shadow: none;
  color-scheme: dark;
}
:root[data-theme="clair"] { color-scheme: light; }
/* Boutons pleins : texte foncé sur dégradé clair en mode sombre, pour le contraste. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="clair"]) .btn:not(.ghost):not(.white), :root:not([data-theme="clair"]) .steps span, :root:not([data-theme="clair"]) .tag, :root:not([data-theme="clair"]) .compare thead th.us { color: #0b0f1a; } }
:root[data-theme="sombre"] .btn:not(.ghost):not(.white), :root[data-theme="sombre"] .steps span, :root[data-theme="sombre"] .tag, :root[data-theme="sombre"] .compare thead th.us { color: #0b0f1a; }
/* La maquette de téléphone garde ses couleurs claires (elle représente l'appli). */
.phone-screen { --bg2: #f6f7fb; --line: #e6e8f0; --muted: #5b6478; --primary: #4f46e5; --primary-soft: #eef0ff; color: #0f172a; }
.phone-screen .m-card { background: #fff; }

/* ---------- Confidentialité renforcée + comparatif ---------- */
.eyebrow.dark { background: rgba(255, 255, 255, .12); color: #e0e7ff; }
.privacy-grid p b { color: #fff; }
.privacy-test { background: rgba(255, 255, 255, .08); border-left: 3px solid #a5b4fc; border-radius: 10px; padding: 12px 14px; font-size: 1rem !important; }
.compare-intro { max-width: 760px; margin: -18px auto 28px; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.compare { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .94rem; }
.compare th, .compare td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: .9rem; color: var(--muted); font-weight: 650; background: var(--bg2); }
.compare thead th.us { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); font-size: 1rem; }
.compare tbody th[scope=row] { font-weight: 600; width: 22%; }
.compare td.us { background: var(--primary-soft); font-weight: 600; }
.compare td.yes::before { content: '✓ '; color: var(--ok); font-weight: 800; }
.compare td.no { color: var(--muted); }
.compare td.no::before { content: '✗ '; font-weight: 800; }
.compare tr.grp th { background: var(--bg2); font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); padding-top: 16px; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.small-note { font-size: .85rem; margin-top: 14px; }
@media (max-width: 720px) { .compare { font-size: .88rem; } .compare-intro { margin-top: -14px; } }
.swipe-hint { display: none; font-size: .85rem; margin: -12px 0 10px; }
@media (max-width: 900px) {
  .swipe-hint { display: block; }
  .compare tbody th[scope=row], .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); box-shadow: 1px 0 0 var(--line); min-width: 130px; }
  .compare tr.grp th { position: static; }
}

/* ---------- Visite animée ---------- */
.tour-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: center; max-width: 920px; margin: 0 auto; }
.tour-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tour-steps button { all: unset; display: block; width: 100%; box-sizing: border-box; cursor: pointer; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); transition: border-color .3s, box-shadow .3s; }
.tour-steps button:focus-visible { outline: 3px solid var(--primary); }
.tour-steps b { display: block; font-size: 1.02rem; }
.tour-steps span { color: var(--muted); font-size: .92rem; }
.tour-steps li.on button { border-color: var(--primary); box-shadow: 0 10px 30px rgba(79, 70, 229, .15); }
.tour-phone { transform: none; justify-self: center; }
.tour-screen { position: relative; min-height: 430px; overflow: hidden; }
.scene { position: absolute; inset: 16px 12px; display: grid; gap: 9px; align-content: start; opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.scene.on { opacity: 1; transform: none; }
.t-drop { border: 2px dashed #c7d2fe; border-radius: 14px; padding: 22px 10px; text-align: center; background: #fff; }
.t-drop small, .t-notif small, .t-lettre small { display: block; color: #5b6478; font-size: 10.5px; }
.t-in { animation: tIn 4s infinite; }
.t-bar { height: 5px; background: #e6e8f0; border-radius: 3px; margin-top: 5px; overflow: hidden; }
.t-bar i { display: block; height: 100%; width: 0; background: #4f46e5; animation: tBar 4s infinite; }
.t-field { display: flex; justify-content: space-between; background: #fff; border: 1px solid #e6e8f0; border-radius: 10px; padding: 9px 10px; color: #5b6478; }
.t-field b { color: #0f172a; }
.scene.on .t-field { animation: tIn .5s both; }
.scene.on .t-field:nth-child(3) { animation-delay: .4s; }
.scene.on .t-field:nth-child(4) { animation-delay: .8s; }
.t-chip { justify-self: start; background: #eef0ff; color: #4f46e5; font-weight: 700; border-radius: 999px; padding: 5px 10px; }
.t-ok { color: #059669; font-weight: 700; }
.t-notif { display: flex; gap: 8px; align-items: center; background: #0f172a; color: #fff; border-radius: 14px; padding: 10px 12px; }
.t-notif small { color: #c7d2fe; }
.scene.on .t-notif { animation: tDown .6s both; }
.t-lettre { background: #fff; border: 1px solid #e6e8f0; border-radius: 10px; padding: 12px; }
.t-lettre p { margin: 8px 0 0; font-weight: 600; }
.t-lignes { display: grid; gap: 6px; }
.t-lignes i { display: block; height: 6px; background: #e6e8f0; border-radius: 3px; }
.t-lignes i.court { width: 60%; }
.t-btn { text-align: center; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; border-radius: 12px; padding: 10px; font-weight: 700; }
.t-note { text-align: center; color: #5b6478; }
@keyframes tIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes tBar { 0% { width: 0; } 80%, 100% { width: 100%; } }
@media (max-width: 900px) { .tour-grid { grid-template-columns: 1fr; } .tour-phone { order: -1; } }
@media (prefers-reduced-motion: reduce) { .scene, .t-in, .t-bar i, .scene.on .t-field, .scene.on .t-notif { transition: none; animation: none; } .t-bar i { width: 100%; } }
