/* ============================================================
   BailExpress — « notarial moderne »
   La rigueur d'une étude notariale, la simplicité de WhatsApp.
   Papier chaud · encre · vert conversation · or sceau
   ============================================================ */

/* ---------- Fonts (auto-hébergées, variables) ---------- */
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/mulish-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/mulish-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/spacemono-400-latin.woff2") format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/spacemono-700-latin.woff2") format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --paper: #faf8f4;          /* fond papier chaud, jamais de blanc pur */
  --paper-raised: #fffefb;   /* surfaces posées sur le papier */
  --ink: #17222d;
  --ink-soft: #47535e;
  --ink-mute: #66727d;
  --ink-faint: #8b96a0;
  --green: #2fbd67;
  --green-deep: #0c2f1c;
  --green-ink: #1c7444;
  --green-wash: #e9f6ee;
  --green-line: #bfe5cd;
  --gold: #a97e28;
  --gold-soft: #c2953c;
  --gold-wash: #f8f2e2;
  --gold-line: #e7d7ae;
  --line: #e8e3d8;           /* filets teintés papier */
  --line-soft: #efebe1;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', 'SF Mono', monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
::selection { background: #bfe8cf; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(22px, 4vw, 48px); }

h1, h2 { font-family: var(--serif); font-weight: 620; letter-spacing: -0.015em; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; max-width: 22ch; }

.eyebrow {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.answer-lead {
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
  font-weight: 500;
  max-width: 68ch;
  margin: 22px 0 0;
}
.answer-lead strong, .ledger-desc strong { color: var(--ink); }

section { border-top: 1px solid var(--line); }
.section-pad { padding-block: clamp(64px, 9vw, 110px); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--green); color: var(--green-deep);
  text-decoration: none; font-weight: 800; font-size: 16.5px;
  padding: 16px 26px; border-radius: 14px;
  box-shadow: 0 10px 26px rgba(47, 189, 103, 0.28);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(47, 189, 103, 0.36); }
.btn--small { font-size: 14.5px; padding: 9px 17px; border-radius: 10px; gap: 8px; box-shadow: none; }
.btn--ghost {
  background: transparent; color: var(--ink-soft); box-shadow: none;
  border: 1px solid var(--line); font-weight: 700;
}
.btn--ghost:hover { box-shadow: none; border-color: var(--ink-faint); color: var(--ink); }
.btn--ghost-dark {
  background: transparent; color: #cfe4d6; box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.28); font-weight: 700;
}
.btn--ghost-dark:hover { box-shadow: none; border-color: rgba(255, 255, 255, 0.55); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 31px; height: 31px; border-radius: 9px; background: var(--green);
  display: grid; place-items: center; flex: 0 0 auto;
}
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.site-nav a:hover { color: var(--ink); }

/* ---------- Hero asymétrique ---------- */
.hero { border-top: none; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 460px at 74% 30%, rgba(47, 189, 103, 0.14), transparent 70%),
    linear-gradient(rgba(23, 34, 45, 0.03) 1px, transparent 1px) 0 0 / 100% 88px;
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(52px, 8vw, 104px);
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.06; letter-spacing: -0.015em;
  margin: 22px 0 0; max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--green-ink); }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--gold-wash); border: 1px solid var(--gold-line); color: #8f671f;
  font-weight: 700; font-size: 13px; padding: 7px 15px; border-radius: 999px;
  text-decoration: none;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-soft); flex: 0 0 auto; }
.hero-cta { display: flex; align-items: center; gap: 22px; margin-top: 36px; flex-wrap: wrap; }
.hero-price { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); font-weight: 700; font-size: 15.5px; }

/* faits produits honnêtes, style registre */
.hero-facts {
  list-style: none; padding: 0;
  margin: clamp(34px, 5vw, 52px) 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, auto);
  justify-content: start; column-gap: clamp(28px, 4vw, 56px); row-gap: 18px;
}
.hero-fact { padding-top: 16px; }
.hero-fact b { display: block; font-family: var(--serif); font-weight: 600; font-size: 21px; }
.hero-fact span { display: block; color: var(--ink-mute); font-size: 13.5px; font-weight: 600; margin-top: 3px; }

/* ---------- Chat mockup = preuve produit ---------- */
.chat-stage { position: relative; justify-self: end; width: min(370px, 100%); }
.chat-stage::before {
  content: ""; position: absolute; inset: 18px -14px -18px 14px;
  background: var(--gold-wash); border: 1px solid var(--gold-line);
  border-radius: 24px; transform: rotate(2.2deg); z-index: 0;
}
.chat {
  position: relative; z-index: 1;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 34px 70px rgba(23, 34, 45, 0.18);
  background: #fff; transform: rotate(-1.3deg);
}
.chat-head { display: flex; align-items: center; gap: 11px; padding: 13px 17px; background: #eef3f0; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: #cdeedb; display: grid; place-items: center; }
.chat-title { font-weight: 700; font-size: 14.5px; }
.chat-status { color: #7b8894; font-size: 12px; }
.chat-body { background: #e8dfd4; padding: 18px 14px 20px; display: flex; flex-direction: column; gap: 10px; }
.msg { font-size: 13.8px; line-height: 1.45; max-width: 84%; }
.msg--me { align-self: flex-end; background: #56dd85; color: var(--green-deep); font-weight: 700; padding: 8px 14px; border-radius: 13px 13px 4px 13px; }
.msg--bot { align-self: flex-start; background: #fff; padding: 10px 13px; border-radius: 13px 13px 13px 4px; box-shadow: 0 1px 1px rgba(23,34,45,0.06); }
.msg--doc { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.msg--doc .doc-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--green-wash); display: grid; place-items: center; flex: 0 0 auto; }
.msg--doc small { display: block; color: #7b8894; font-weight: 600; font-size: 11.5px; margin-top: 2px; }

/* ---------- Étapes éditoriales ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 6vw, 64px);
  counter-reset: step;
}
.step { border-top: 2px solid var(--ink); padding-top: 20px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); color: var(--gold); font-size: 13px; font-weight: 700;
}
.step h3 { font-size: 19.5px; font-weight: 800; margin: 10px 0 0; font-family: var(--sans); }
.step p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; margin: 10px 0 0; font-weight: 500; }
.step p code { font-family: var(--mono); font-size: 13.5px; background: var(--green-wash); color: var(--green-ink); padding: 1px 7px; border-radius: 6px; }

/* ---------- Registre (types de baux, comparaison) ---------- */
.ledger { margin-top: clamp(38px, 5vw, 58px); border-top: 1px solid var(--ink); }
.ledger-row {
  display: grid;
  grid-template-columns: minmax(150px, 2.4fr) minmax(140px, 2fr) 5fr auto;
  gap: clamp(16px, 3vw, 40px); align-items: baseline;
  padding: 24px 4px; border-bottom: 1px solid var(--line);
}
.ledger-row--featured {
  background: linear-gradient(90deg, var(--green-wash), transparent 78%);
  border-left: 3px solid var(--green);
  padding-left: 18px; margin-left: -21px;
}
.ledger-name { font-family: var(--serif); font-weight: 600; font-size: clamp(19px, 2vw, 23px); }
.ledger-name small {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 11.5px;
  color: var(--green-ink); background: #d9f2e3; border-radius: 999px;
  padding: 3px 10px; margin-left: 10px; vertical-align: 2px;
}
.ledger-law { font-family: var(--mono); color: var(--gold); font-size: 12.5px; line-height: 1.5; }
.ledger-desc { color: var(--ink-soft); font-size: 15px; line-height: 1.6; font-weight: 500; margin: 0; }
.ledger-price { font-family: var(--mono); font-weight: 700; font-size: 15px; white-space: nowrap; }
.ledger-note { color: var(--ink-mute); font-size: 14px; font-weight: 600; margin-top: 18px; }

/* ---------- Comparaison gratuit vs BailExpress ---------- */
.versus {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-top: clamp(38px, 5vw, 58px);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: var(--paper-raised);
}
.versus-col { padding: clamp(26px, 3.5vw, 40px); }
.versus-col + .versus-col { border-left: 1px solid var(--line); }
.versus-col--us { background: linear-gradient(180deg, var(--green-wash), var(--paper-raised) 88%); }
.versus-col h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0; }
.versus-col > p { color: var(--ink-mute); font-size: 14px; font-weight: 600; margin: 6px 0 0; }
.versus-list { list-style: none; margin: 22px 0 0; padding: 0; }
.versus-list li {
  display: flex; gap: 11px; align-items: flex-start;
  color: var(--ink-soft); font-size: 15px; line-height: 1.55; font-weight: 500;
  padding: 9px 0;
}
.versus-list svg { flex: 0 0 auto; margin-top: 3px; }

/* ---------- Tarifs ---------- */
.offers { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; margin-top: clamp(38px, 5vw, 58px); max-width: 880px; }
.offer {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(26px, 3.5vw, 38px); position: relative;
}
.offer--featured { border: 1.5px solid var(--green-line); background: linear-gradient(180deg, var(--green-wash), var(--paper-raised) 70%); }
.offer-flag {
  position: absolute; top: -12px; left: 28px;
  background: var(--green); color: var(--green-deep);
  font-weight: 800; font-size: 12px; padding: 4px 12px; border-radius: 999px;
}
.offer h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; margin: 0; }
.offer-price { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.offer-price b { font-family: var(--serif); font-weight: 600; font-size: 44px; letter-spacing: -0.02em; }
.offer-price span { color: var(--ink-mute); font-size: 14px; font-weight: 600; }
.offer ul { list-style: none; margin: 20px 0 0; padding: 0; }
.offer li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--ink-soft); font-size: 15px; line-height: 1.55; font-weight: 500; padding: 7px 0;
}
.offer li svg { flex: 0 0 auto; margin-top: 3px; }
.offer .btn { margin-top: 24px; }
.offer-alt { color: var(--ink-mute); font-size: 14px; font-weight: 600; margin: 14px 0 0; }
.offer-alt a { color: var(--green-ink); font-weight: 700; text-underline-offset: 3px; }
.offers-note { color: var(--ink-mute); font-size: 14px; font-weight: 600; margin-top: 20px; max-width: 68ch; }

/* ---------- Conformité / E-E-A-T ---------- */
.conform { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 5vw, 72px); }
.conform-stats { list-style: none; margin: 30px 0 0; padding: 0; }
.conform-stats li {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; font-weight: 500;
}
.conform-stats b { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--ink); min-width: 3.2ch; }
.sources {
  background: var(--gold-wash); border: 1px solid var(--gold-line); border-radius: 18px;
  padding: clamp(24px, 3vw, 32px); align-self: start;
}
.sources h3 { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0; }
.sources ul { list-style: none; margin: 16px 0 0; padding: 0; }
.sources li { padding: 7px 0; font-size: 14px; line-height: 1.55; font-weight: 600; color: #6d5420; }
.sources a { color: #6d5420; text-underline-offset: 3px; }
.sources a:hover { color: var(--ink); }
.updated {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-mute);
}
.updated::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.scope-note { color: var(--ink-mute); font-size: 13.5px; line-height: 1.6; font-weight: 500; margin-top: 20px; max-width: 60ch; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: clamp(36px, 5vw, 56px) 0 0; border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 2px; font-size: 17.5px; font-weight: 700; color: var(--ink); list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: 0 0 auto;
  font-family: var(--mono); font-size: 20px; color: var(--gold);
  transition: transform .2s var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-a { color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; margin: 0; padding: 0 40px 24px 2px; font-weight: 500; }
.faq-a a { color: var(--green-ink); font-weight: 600; text-underline-offset: 3px; }

/* ---------- CTA final ---------- */
.cta-box {
  background:
    radial-gradient(420px 300px at 50% 15%, rgba(47, 189, 103, 0.14), transparent 70%),
    var(--green-deep);
  color: #f2f8f4;
  border-radius: 26px;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 48px);
  text-align: center;
}
.cta-box h2 { color: #fdfefd; margin-inline: auto; max-width: 16ch; }
.cta-box .cta-sub { color: #b9d2c2; font-size: 18px; line-height: 1.55; margin: 20px auto 0; max-width: 42ch; font-weight: 500; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.cta-note { color: #8fb29d; font-size: 13.5px; font-weight: 700; margin-top: 24px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); }
footer .wrap {
  padding-block: 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
footer nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
footer nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 600; }
footer nav a:hover { color: var(--ink); }
.footer-copy { color: var(--ink-faint); font-size: 13.5px; font-weight: 600; }

/* ---------- Page interne (mentions légales) ---------- */
.prose { max-width: 720px; padding-block: clamp(48px, 7vw, 80px); }
.prose h1 { font-size: clamp(32px, 4vw, 44px); }
.prose h2 { font-size: 22px; margin-top: 40px; font-family: var(--sans); font-weight: 800; }
.prose p, .prose li { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .chat-stage { justify-self: center; }
  .hero-facts { grid-template-columns: repeat(2, auto); }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .ledger-row { grid-template-columns: 1fr auto; grid-template-areas: "name price" "law law" "desc desc"; row-gap: 8px; }
  .ledger-name { grid-area: name; }
  .ledger-law { grid-area: law; }
  .ledger-desc { grid-area: desc; }
  .ledger-price { grid-area: price; }
  .versus { grid-template-columns: 1fr; }
  .versus-col + .versus-col { border-left: none; border-top: 1px solid var(--line); }
  .offers { grid-template-columns: 1fr; }
  .conform { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}

/* ---------- Accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq-list summary::after { transition: none; }
}
:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 3px; border-radius: 4px; }
