/* Parafe — identité visuelle.
   Encre profonde, un bleu de confiance, un orange de signature. Typo système
   pour la vitesse : aucune requête de police, le hero s'affiche au premier octet. */

:root {
  --ink: #0B0E14;
  --ink-2: #1B2130;
  --paper: #FFFFFF;
  --surface: #F5F7FA;
  --surface-2: #EDF0F5;
  --line: #E2E6ED;
  --text: #1B2130;
  --muted: #5B6474;
  --accent: #2F5BFF;
  --accent-dark: #1E3FCC;
  --accent-soft: #EAF0FF;
  --signal: #FF6B35;
  --ok: #0E9F6E;
  --warn: #C2740A;
  --err: #D64545;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(11,14,20,.05), 0 8px 24px rgba(11,14,20,.06);
  --shadow-lg: 0 2px 4px rgba(11,14,20,.06), 0 24px 60px rgba(11,14,20,.12);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.022em; margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -0.028em; }
h3 { font-size: 1.16rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.16rem; color: var(--muted); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(47,91,255,.28); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-lg { padding: 16px 30px; font-size: 1.04rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- barre de navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 26px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.03em; font-size: 1.17rem; }
.logo svg { display: block; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .94rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav-links a.hide-s { display: none; } .nav-in { gap: 12px; } }

/* ---------- hero ---------- */
.hero { padding: 76px 0 56px; background:
  radial-gradient(1000px 420px at 78% -8%, #E9EEFF 0%, rgba(233,238,255,0) 62%),
  radial-gradient(760px 380px at 4% 0%, #FFF1EA 0%, rgba(255,241,234,0) 60%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 54px; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 34px; } .hero { padding: 46px 0 34px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  font-size: .82rem; font-weight: 600; margin-bottom: 20px; box-shadow: var(--shadow);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 33ch; font-size: 1.2rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.microcopy { font-size: .88rem; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.microcopy span { display: inline-flex; align-items: center; gap: 6px; }
.tick { color: var(--ok); font-weight: 700; }

/* ---------- fenêtre client mail (aperçu) ---------- */
.client { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.client-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.client-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D8DDE6; display: block; }
.client-tabs { display: flex; gap: 4px; margin-left: 8px; overflow-x: auto; scrollbar-width: none; }
.client-tabs::-webkit-scrollbar { display: none; }
.client-tab {
  border: 0; background: transparent; font: inherit; font-size: .8rem; font-weight: 600; color: var(--muted);
  padding: 5px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.client-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.client-body { padding: 20px 22px 24px; min-height: 240px; }
.client-body.dark { background: #16181D; }
.mail-meta { font-size: .82rem; color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.client-body.dark .mail-meta { color: #9AA3B2; border-color: #2A2E36; }
.mail-text { font-size: .92rem; color: var(--text); margin-bottom: 18px; }
.client-body.dark .mail-text { color: #D9DEE7; }
.sig-host { overflow-x: auto; }

/* ---------- sections ---------- */
section { padding: 74px 0; }
section.tight { padding: 52px 0; }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ink-bg { background: var(--ink); color: #C9D0DC; }
.ink-bg h2, .ink-bg h3 { color: #fff; }

/* ---------- grilles / cartes ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.card-icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 14px; font-size: 1.05rem;
}
.card-icon.warm { background: #FFEEE6; color: var(--signal); }

.step { counter-increment: step; }
.step .num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: .85rem; font-weight: 700; margin-bottom: 14px;
}

/* ---------- tableau de compatibilité ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table.compat { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .93rem; }
table.compat th, table.compat td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.compat thead th { background: var(--surface); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
table.compat tbody tr:last-child td { border-bottom: 0; }
table.compat td.y { color: var(--ok); font-weight: 600; }
table.compat td.n { color: var(--muted); }
.badge-ok { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #E7F7F0; color: var(--ok); font-size: .78rem; font-weight: 700; }

/* ---------- galerie de thèmes ---------- */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .themes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .themes { grid-template-columns: 1fr; } }
.theme-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; overflow: hidden; }
.theme-card h3 { font-size: 1rem; margin-bottom: 4px; }
.theme-card .hint { font-size: .84rem; color: var(--muted); margin-bottom: 14px; min-height: 2.6em; }
.theme-preview { transform-origin: top left; overflow: hidden; border-top: 1px dashed var(--line); padding-top: 16px; }

/* ---------- tarifs ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 820px; margin: 0 auto; }
@media (max-width: 720px) { .price-grid { grid-template-columns: 1fr; } }
.price {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 30px;
  display: flex; flex-direction: column; position: relative;
}
.price.featured { border-color: var(--accent); box-shadow: 0 14px 44px rgba(47,91,255,.16); }
.price .tag {
  position: absolute; top: -12px; left: 30px; background: var(--accent); color: #fff;
  font-size: .74rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; letter-spacing: .02em;
}
.price .amount { font-size: 3rem; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.price .amount small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 20px 0 24px; }
.price li { padding: 7px 0 7px 26px; position: relative; font-size: .95rem; color: var(--text); }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.price .foot { margin-top: auto; }
.anchor-note { max-width: 640px; margin: 26px auto 0; text-align: center; font-size: .93rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary {
  cursor: pointer; padding: 16px 34px 16px 0; font-weight: 600; color: var(--ink);
  list-style: none; position: relative; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 13px; font-size: 1.5rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 16px; font-size: .97rem; }

/* ---------- pied de page ---------- */
footer { background: var(--ink); color: #8D97A8; padding: 52px 0 34px; font-size: .9rem; }
footer a { color: #C9D0DC; text-decoration: none; }
footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 12px; }
.foot-links { display: flex; flex-direction: column; gap: 9px; }
.foot-bottom { border-top: 1px solid #1E2430; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- barre d'appel collante (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
}
@media (max-width: 720px) { .sticky-cta { display: block; } body { padding-bottom: 74px; } }

/* ---------- bandeau démo ---------- */
.demo-bar {
  background: #FFF6E8; border-bottom: 1px solid #F3DFBB; color: #7A5510;
  font-size: .86rem; padding: 9px 16px; text-align: center;
}
.demo-bar strong { color: #5C3F0A; }

/* ---------- utilitaires ---------- */
.stack-sm > * + * { margin-top: 10px; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ================= éditeur ================= */
.app { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 0; min-height: calc(100vh - 64px); }
@media (max-width: 1000px) { .app { grid-template-columns: 1fr; } }
.pane-form { padding: 26px 26px 120px; border-right: 1px solid var(--line); }
.pane-view { padding: 26px; background: var(--surface); position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 64px); overflow-y: auto; }
@media (max-width: 1000px) {
  .pane-view { position: static; max-height: none; border-top: 1px solid var(--line); }
  .pane-form { border-right: 0; padding-bottom: 26px; }
  .app { display: flex; flex-direction: column-reverse; }
}
.pane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pane-head h1 { font-size: 1.32rem; margin: 0; }
.pane-head p { margin: 0; font-size: .88rem; color: var(--muted); }

fieldset.block { border: 1px solid var(--line); border-radius: var(--radius); padding: 0; margin: 0 0 14px; background: var(--paper); }
fieldset.block > legend { display: none; }
.block-head {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer;
  background: none; border: 0; font: inherit; font-weight: 650; color: var(--ink); text-align: left; font-size: .99rem;
}
.block-head .chev { margin-left: auto; color: var(--muted); transition: transform .18s ease; }
.block[open] .chev, .block.open .block-head .chev { transform: rotate(180deg); }
.block-body { padding: 0 16px 18px; display: none; }
.block.open .block-body { display: block; }
.block-num { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.block.open .block-num { background: var(--accent); color: #fff; }

.field { margin-bottom: 13px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=url], .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .95rem; color: var(--text); background: var(--paper);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.field textarea { min-height: 70px; resize: vertical; }
.field .help { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

.theme-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-sm); padding: 10px 12px;
  font: inherit; font-size: .88rem; font-weight: 600; text-align: left; cursor: pointer; color: var(--text);
}
.chip small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; margin-top: 2px; line-height: 1.35; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.chip[aria-pressed="true"] small { color: var(--accent-dark); opacity: .8; }

.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch { width: 28px; height: 28px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; }
input[type=color] { width: 42px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: none; cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--accent); }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); gap: 2px; flex-wrap: wrap; }
.seg button {
  border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 600; color: var(--muted);
  padding: 6px 13px; border-radius: 999px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }

.check { display: flex; align-items: flex-start; gap: 9px; padding: 7px 0; font-size: .92rem; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }

.upload-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.upload-row .btn { padding: 8px 14px; font-size: .87rem; }
.thumb { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }

/* --- panneau d'aperçu --- */
.score-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.score-top { display: flex; align-items: center; gap: 14px; }
.gauge { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; color: var(--ink); flex: 0 0 auto; }
.score-top .lbl { font-weight: 650; font-size: .98rem; }
.score-top .sub { font-size: .84rem; color: var(--muted); }
.audit { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.audit li { display: flex; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .87rem; }
.audit li:last-child { border-bottom: 0; }
.audit .lv { flex: 0 0 auto; width: 15px; height: 15px; border-radius: 50%; margin-top: 3px; display: grid; place-items: center; font-size: 9px; color: #fff; font-weight: 700; }
.audit .lv.ok { background: var(--ok); } .audit .lv.info { background: #7A8598; }
.audit .lv.warn { background: var(--warn); } .audit .lv.error { background: var(--err); }
.audit .who { color: var(--muted); font-size: .78rem; }
.audit .fix { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.audit-toggle { background: none; border: 0; color: var(--accent); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: 10px 0 0; }

.buy { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 14px; }
.buy .plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.plan-opt { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; cursor: pointer; background: var(--paper); text-align: left; font: inherit; }
.plan-opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.plan-opt b { display: block; font-size: .92rem; color: var(--ink); }
.plan-opt span { font-size: .8rem; color: var(--muted); }
.plan-opt .amt { font-size: 1.25rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.buy .reassure { font-size: .8rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
.mobile-frame { max-width: 380px; margin: 0 auto; }
