:root {
  --bg: #f7f6f2; --surface: #ffffff; --ink: #17201d; --ink2: #2c3632; --muted: #5d6863; --faint: #8a8f88;
  --line: #e4e2dc; --line2: #efede7;
  --green: #0f6b55; --green-d: #0a4d3d; --green-soft: #e5f1ec; --green-tint: #f2f8f5; --deep: #123d33;
  --amber: #b86a12; --amber-soft: #fbf0e1; --amber-ink: #7a4508;
  --red: #b43c2e; --red-soft: #f8e7e4; --red-ink: #7c261c;
  --blue: #2f5d8a; --blue-soft: #e8eff6;
  --violet: #6b4bb8; --violet-soft: #f0ebfa;
  --r: 14px; --r-lg: 18px;
  --shadow: 0 1px 2px rgba(23,32,29,.04), 0 6px 20px rgba(23,32,29,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--green); } a:hover { color: var(--green-d); }
h1, h2, h3 { margin: 0 0 .35em; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 .6em; }
small { display: block; font-size: 13px; }
code, .mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ic { flex-shrink: 0; vertical-align: -4px; }

/* ---------- structure ---------- */
.ribbon { background: var(--violet-soft); color: #4a3386; font-size: 13px; text-align: center; padding: 6px 16px; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1320px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.nav { display: flex; gap: 4px; flex-grow: 1; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav a:hover { background: var(--line2); color: var(--ink); }
.nav a.on { color: var(--ink); background: var(--green-soft); }
.top-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.guide-link { font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bell { position: relative; color: var(--ink); display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; }
.bell:hover { background: var(--line2); color: var(--ink); }
.bell .dot { position: absolute; top: 3px; right: 2px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.acct { position: relative; }
.acct summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px; border-radius: 12px; }
.acct summary::-webkit-details-marker { display: none; }
.acct summary:hover { background: var(--line2); }
.acct-name { font-size: 14px; font-weight: 700; line-height: 1.1; }
.acct-name small { font-weight: 500; color: var(--muted); font-size: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.avatar.lg { width: 48px; height: 48px; background: #e9e6de; color: #3b4541; font-size: 16px; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.acct-head { font-size: 12px; color: var(--muted); padding: 6px 10px; font-weight: 600; }
.acct-menu form { margin: 0; }
.acct-menu button, .acct-menu a { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; background: none; border: none; font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: var(--ink); text-decoration: none; }
.acct-menu button small { color: var(--muted); font-size: 12px; }
.acct-menu button:hover, .acct-menu a:hover { background: var(--line2); }
.acct-menu button.cur { background: var(--green-soft); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 20px 120px; }
.wrap.wide { max-width: 1320px; }
.narrow { max-width: 720px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid2.top, .grid3.top { align-items: start; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; text-decoration: none; margin-bottom: 12px; color: var(--muted); }
.eyebrow { display: block; font-size: 13px; font-weight: 700; color: var(--green); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.lead { font-size: 18px; color: var(--muted); }
.inline-form { display: inline; margin: 0; }
.list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.steps-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.card > h3:first-child { margin-bottom: 12px; }
.card + .card { margin-top: 16px; }
.stack > .card + .card, .grid2 > .card + .card, .grid3 > .card + .card { margin-top: 0; }
.list-card { padding: 0; overflow: hidden; }
.list-card.flat { border: none; border-radius: 0; margin: 0 -20px -20px; }
.list-head { padding: 14px 18px 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lot { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line2); }
.lot small { margin-top: 2px; }
.row-link { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line2); text-decoration: none; color: var(--ink); }
.list-card > .row-link:first-child { border-top: none; }
.row-link:hover { background: var(--green-tint); color: var(--ink); }
.empty { padding: 26px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); }
.empty-hero { text-align: center; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 14px 0 0; }
.answers dt { color: var(--muted); font-size: 14px; }
.answers dd { margin: 0; font-weight: 600; }
details summary { cursor: pointer; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid transparent; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-d); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #962f23; color: #fff; }
.btn-link { background: none; border: none; padding: 0; min-height: 0; color: var(--green); font-weight: 600; }
.btn-sim { background: var(--violet); color: #fff; }
.btn-sim:hover { background: #573a9e; color: #fff; }
.btn-lg { min-height: 52px; font-size: 16px; padding: 0 24px; }
.btn.sm, .btn-ghost.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); flex-shrink: 0; }
.icon-btn.disabled { opacity: .35; pointer-events: none; }

/* ---------- badges, messages ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge-neutral { background: var(--line2); color: var(--ink2); }
.badge-ok { background: var(--green-soft); color: var(--green-d); }
.badge-warn { background: var(--amber-soft); color: var(--amber-ink); }
.badge-err { background: var(--red-soft); color: var(--red-ink); }
.badge-info { background: var(--blue-soft); color: var(--blue); }
.badge-violet { background: var(--violet-soft); color: var(--violet); }
.flash { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--r); margin-bottom: 18px; font-weight: 600; font-size: 15px; }
.flash-ok { background: var(--green-soft); color: var(--green-d); }
.flash-err { background: var(--red-soft); color: var(--red-ink); }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--line2); color: var(--ink2); }
.callout > div { flex-grow: 1; min-width: 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout ul { margin: 6px 0 0; padding-left: 18px; }
.callout .row { margin-top: 10px; }
.callout.warn { background: var(--amber-soft); color: var(--amber-ink); }
.callout.err { background: var(--red-soft); color: var(--red-ink); }
.callout.info { background: var(--blue-soft); color: #214666; }
.callout.ok { background: var(--green-soft); color: var(--green-d); }
.ok-text { color: var(--green); font-weight: 600; }
.warn-text { color: var(--amber); font-weight: 700; }
.flag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--amber-ink); background: var(--amber-soft); padding: 2px 8px; border-radius: 6px; margin-top: 4px; }
.flag-box { background: var(--amber-soft); color: var(--amber-ink); border-radius: 10px; padding: 8px 10px; font-size: 13px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 4px; }
.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.chk.ok { color: var(--green-d); } .chk.warn { color: var(--amber-ink); }
.sim { border: 1.5px dashed #b9a6e6; background: var(--violet-soft); border-radius: var(--r); padding: 12px 14px; color: #3f2a78; font-size: 14px; }
.sim-title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; color: var(--violet); }
.sim p { margin-bottom: 8px; }
.sim .otp { font-size: 20px; letter-spacing: .2em; }
.stars { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--ink); }

/* ---------- formulaires ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { width: 100%; font: inherit; font-weight: 500; font-size: 16px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(15,107,85,.12); }
textarea { resize: vertical; }
fieldset { border: none; padding: 0; margin: 0; }
legend { font-weight: 700; margin-bottom: 8px; }
.check-line { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
.check-line input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green); flex-shrink: 0; }
.num-input { display: flex; align-items: center; gap: 8px; }
.num-input input { max-width: 180px; }
.num-input span { color: var(--muted); font-weight: 600; }
.auth { max-width: 440px; margin: 20px auto; display: flex; flex-direction: column; gap: 14px; }
.auth-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; margin-bottom: 8px; }

/* ---------- pages publiques ---------- */
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: var(--green-soft); color: var(--deep); }
.landing { padding-bottom: 90px; }
.lp-in { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.lp-sec { padding: 72px 0; }
.lp-alt { background: #fff; border-block: 1px solid var(--line2); }
.lp-h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -0.03em; max-width: 760px; margin-bottom: 28px; }
.eyebrow.light { color: #9fe0c7; }

.lp-hero { padding: 44px 0 64px; background: radial-gradient(1200px 500px at 85% 0%, #e3efe9 0%, transparent 60%); }
.lp-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lp-hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.02; letter-spacing: -0.035em; }
.lp-hero .lead { max-width: 560px; }
.lp-hero .row { margin: 26px 0 22px; }
.lp-proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink2); font-size: 14px; font-weight: 600; }
.lp-proof li { display: inline-flex; align-items: center; gap: 6px; }
.lp-proof .ic { color: var(--green); }
.lp-hero-media { position: relative; }
.lp-photo { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 4.4; max-width: 100%; box-shadow: 0 30px 60px -30px rgba(18,61,51,.45); background: #dfe9e4; }
.lp-photo img, .lp-photo .ph-fallback, .lp-photo svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.kb img { animation: kb 22s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.12); } }
.lp-float { position: absolute; background: #fff; border-radius: 18px; box-shadow: 0 14px 40px rgba(18,32,29,.16); }
.lp-escrow { left: -28px; bottom: 34px; width: 250px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; animation: floaty 6s ease-in-out infinite; }
.lp-escrow strong { font-size: 18px; letter-spacing: -0.01em; }
.lp-chip { right: -14px; top: 26px; padding: 10px 14px; display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; animation: floaty 7s ease-in-out -2s infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.lp-bars { display: flex; gap: 5px; }
.lp-bars i { flex: 1; height: 7px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.lp-bars i::after { content: ''; position: absolute; inset: 0; background: var(--green); transform: scaleX(0); transform-origin: left; animation: fill 9s ease-in-out infinite; }
.lp-bars i:nth-child(2)::after { animation-name: fill2; }
.lp-bars i:nth-child(3)::after { animation-name: fill3; background: #9ccfbd; }
@keyframes fill { 0% { transform: scaleX(0); } 12%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes fill2 { 0%, 15% { transform: scaleX(0); } 30%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes fill3 { 0%, 35% { transform: scaleX(0); } 55%, 92% { transform: scaleX(.45); } 100% { transform: scaleX(0); } }

.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.lp-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.lp-alt .lp-steps li { background: var(--bg); }
.lp-steps li:not(:last-child)::after { content: ''; position: absolute; top: 44px; right: -18px; width: 18px; height: 2px; background: var(--line); }
.lp-num { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.lp-steps h3 { margin: 0 0 4px; font-size: 18px; }
.lp-steps p { margin: 0; color: var(--muted); font-size: 15px; }

.lp-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: var(--deep); color: #fff; border-radius: 24px; overflow: hidden; margin-bottom: 14px; }
.lp-m { padding: 26px 24px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid rgba(255,255,255,.12); }
.lp-m:first-child { border-left: none; }
.lp-m b { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -0.03em; line-height: 1.05; }
.lp-m span { font-weight: 700; color: #9fe0c7; }
.lp-m small { color: #bcd5cc; font-size: 14px; }

.lp-trades { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-trade { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 4; max-width: 100%; display: block; color: #fff; text-decoration: none; background: #dfe9e4; }
.lp-trade img, .lp-trade .ph-fallback, .lp-trade svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.lp-trade:hover img { transform: scale(1.06); }
.lp-trade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,30,25,.75)); }
.lp-trade span { position: absolute; left: 16px; bottom: 14px; z-index: 1; font-weight: 800; font-size: 19px; }
.lp-trade:hover { color: #fff; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lp-chips span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--ink2); }

.lp-compare { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.lp-alt .lp-compare { background: var(--bg); }
.lp-cmp-head, .lp-cmp-row { display: grid; grid-template-columns: 1fr 1.2fr 1.3fr; gap: 16px; padding: 16px 22px; align-items: center; }
.lp-cmp-head { font-weight: 800; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
.lp-cmp-head .us { color: var(--green); font-size: 16px; }
.lp-cmp-row + .lp-cmp-row { border-top: 1px solid var(--line2); }
.lp-cmp-row .k { font-weight: 700; }
.lp-cmp-row .a { color: var(--muted); }
.lp-cmp-row .b { color: var(--green-d); font-weight: 700; display: flex; gap: 6px; align-items: flex-start; }
.lp-cmp-row .b .ic { flex-shrink: 0; margin-top: 3px; }

.lp-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.lp-quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.lp-alt .lp-quote { background: var(--bg); }
.lp-quote .badge { align-self: flex-start; }
.lp-quote blockquote { margin: 0; font-size: 17px; line-height: 1.45; color: var(--ink); }
.lp-quote figcaption { color: var(--muted); font-size: 14px; margin-top: auto; }
.lp-quote figcaption strong { color: var(--ink); }

.lp-pro { display: grid; grid-template-columns: 1fr 1.1fr; background: var(--deep); color: #fff; border-radius: 28px; overflow: hidden; padding: 0; }
.lp-pro-media { min-height: 320px; background: #1d5146; position: relative; }
.lp-pro-media img, .lp-pro-media .ph-fallback, .lp-pro-media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-pro-media img { position: absolute; inset: 0; object-position: 50% 30%; }
.lp-pro-text { padding: 44px 40px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; justify-content: center; }
.lp-pro-text h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; line-height: 1.1; }
.lp-pro-text p { color: #cfe7de; font-size: 17px; margin: 0 0 8px; }

.lp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-cards > .card { margin-top: 0; }
.lp-card h3 { margin: 14px 0 6px; }
.lp-card p { margin: 0; }
.lp-faq { display: flex; flex-direction: column; gap: 10px; }
.lp-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.lp-faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; color: var(--green); font-size: 22px; line-height: 1; }
.lp-faq details[open] summary::after { content: '–'; }
.lp-faq details p { margin: 0 0 16px; color: var(--muted); }
.lp-final { padding: 80px 0 40px; }
.lp-final .lp-h2 { margin: 0 auto 10px; }
.lp-final .btn { margin: 16px 0 10px; }

/* apparition au défilement (activée seulement si le script tourne) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.lp-steps li.reveal:nth-child(2), .lp-quotes .reveal:nth-child(2), .lp-cards .reveal:nth-child(2), .lp-trades .reveal:nth-child(2) { transition-delay: .08s; }
.lp-steps li.reveal:nth-child(3), .lp-quotes .reveal:nth-child(3), .lp-cards .reveal:nth-child(3), .lp-trades .reveal:nth-child(3) { transition-delay: .16s; }
.lp-steps li.reveal:nth-child(4), .lp-cards .reveal:nth-child(4), .lp-trades .reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .kb img, .lp-float, .lp-bars i::after { animation: none; }
  .lp-bars i:nth-child(-n+2)::after { transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 980px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .lp-hero-media { max-width: 560px; }
  .lp-photo { aspect-ratio: 4 / 3; }
  .lp-escrow { left: 12px; bottom: -22px; }
  .lp-chip { right: 12px; top: 12px; }
  .lp-steps, .lp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-steps li::after { display: none; }
  .lp-trades { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-quotes { grid-template-columns: 1fr; }
  .lp-pro { grid-template-columns: 1fr; }
  .lp-pro-media { min-height: 220px; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .lp-sec { padding: 52px 0; }
  .lp-in { padding: 0 16px; }
  .lp-hero { padding: 26px 0 56px; }
  .lp-hero .row .btn { flex: 1 1 100%; }
  .lp-steps, .lp-cards { grid-template-columns: 1fr; }
  .lp-steps li { flex-direction: row; align-items: flex-start; padding: 18px; }
  .lp-num { flex-shrink: 0; width: 38px; height: 38px; font-size: 16px; }
  .lp-money { grid-template-columns: 1fr; }
  .lp-m { border-left: none; border-top: 1px solid rgba(255,255,255,.12); padding: 20px; }
  .lp-m:first-child { border-top: none; }
  .lp-cmp-head { display: none; }
  .lp-cmp-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; }
  .lp-cmp-row .a::before { content: 'Ailleurs : '; font-weight: 600; }
  .lp-trades { gap: 10px; }
  .lp-trade span { font-size: 16px; left: 12px; bottom: 10px; }
  .lp-pro-text { padding: 28px 22px; }
  .lp-escrow { width: 220px; padding: 12px 14px; }
  .lp-chip { font-size: 13px; }
}

/* ---------- cadrage ---------- */
.cad-top { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.cad-progress { flex-grow: 1; display: flex; flex-direction: column; gap: 6px; }
.progress { height: 7px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.progress i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--green); border-radius: 4px; transition: width .35s; }
.progress .mark { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.chip { font-size: 13px; font-weight: 600; background: var(--green-soft); color: var(--green-d); padding: 5px 11px; border-radius: 999px; text-decoration: none; }
.chip:hover { background: #d4e9e0; color: var(--green-d); }
.assistant { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 22px; }
.assistant-av { width: 34px; height: 34px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.assistant-bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 12px 15px; color: var(--ink2); }
.q-label { font-size: 24px; }
.options { display: flex; flex-direction: column; gap: 10px; }
.options.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; padding: 13px 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; text-align: left; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; }
.option:hover { border-color: var(--green); background: var(--green-tint); }
.option.sel { border-color: var(--green); background: var(--green-soft); }
.option.check { justify-content: flex-start; flex-direction: row; }
.option.check input { width: 20px; height: 20px; accent-color: var(--green); flex-shrink: 0; }
.option.check:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.option.check span small { font-weight: 500; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.group-title { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 0; }
.choice { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 18px; min-height: 104px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); font: inherit; cursor: pointer; color: var(--ink); }
.choice strong { font-size: 18px; }
.choice:hover { border-color: var(--green); background: var(--green-tint); }
.choice-line { flex-direction: row; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 500; }
.choice-line input { margin-top: 4px; accent-color: var(--green); width: 18px; height: 18px; }
.choice-line:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.slot { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line2); }
.slot:first-child { border-top: none; }
.slot-thumb { width: 56px; height: 56px; border-radius: 12px; border: 1.5px dashed #c9c6be; background: #faf9f6; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.slot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.slot-body { flex-grow: 1; min-width: 0; }
.slot-status { color: var(--muted); }
.slot-status.ok { color: var(--green); font-weight: 600; }
.slot-status.warn { color: var(--amber); font-weight: 600; }
.slot-status.busy { color: var(--blue); }

/* ---------- cahier des charges, projets ---------- */
.budget { display: flex; flex-direction: column; gap: 8px; }
.big { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.big small { display: inline; font-size: 14px; color: var(--muted); font-weight: 600; }
.range { height: 8px; border-radius: 4px; background: var(--line2); position: relative; }
.range i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--green); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.ph { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--line2); max-width: 100%; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-label { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; color: #fff; padding: 14px 6px 5px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.ph-doc { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; font-size: 12px; font-weight: 700; color: var(--muted); gap: 4px; text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.project-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; margin: 0 !important; transition: border-color .15s; }
.project-card:hover { border-color: var(--green); color: var(--ink); }
.project-card h3 { margin: 4px 0 0; }
.pro-card { display: flex; flex-direction: column; gap: 12px; margin: 0 !important; }
.pro-card.selectable { cursor: pointer; }
.pro-card.selectable:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.pro-head { display: flex; align-items: center; gap: 12px; flex-grow: 1; }
.pro-head > div { flex-grow: 1; min-width: 0; }
.pro-facts { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--ink2); }
.pro-facts span { display: flex; gap: 8px; align-items: flex-start; }
.big-check { width: 24px; height: 24px; accent-color: var(--green); flex-shrink: 0; }
.request { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.quote-text { font-style: italic; color: var(--ink2); margin: 0; }

/* ---------- tableaux ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); }
table { border-collapse: collapse; width: 100%; }
.compare { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 760px; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line2); text-align: left; vertical-align: top; font-size: 15px; }
.compare thead th { background: #faf9f6; font-weight: 600; font-size: 14px; color: var(--ink); }
.compare th small, .compare td small { font-weight: 500; }
.compare td:nth-child(n+3), .compare th:nth-child(n+3) { border-left: 1px solid var(--line2); }
.compare tr.total td { background: #faf9f6; }
.compare tr.sub td { background: var(--bg); font-size: 13px; color: var(--muted); }
.compare tr.actions td { border-bottom: none; }
.lines { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 640px; }
.lines th, .lines td { padding: 10px 12px; border-bottom: 1px solid var(--line2); text-align: left; vertical-align: top; }
.lines th { font-size: 13px; color: var(--muted); font-weight: 600; background: #faf9f6; }
.lines tfoot td { text-align: right; font-weight: 600; }
.lines tfoot td:last-child { white-space: nowrap; }
.lines tfoot tr.grand td { font-size: 17px; font-weight: 800; }
.lines.edit input, .lines.edit select { padding: 8px 10px; font-size: 15px; }
.lines.edit .sub-input { margin-top: 6px; font-size: 13px; color: var(--muted); }
.lines.edit .w-num { width: 100px; }
.simple th, .simple td { padding: 10px 12px; border-bottom: 1px solid var(--line2); text-align: left; font-size: 14px; vertical-align: top; }
.simple th { font-size: 13px; color: var(--muted); font-weight: 600; }
.simple td small { color: var(--muted); }

/* ---------- chantier ---------- */
.contract-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.sticky { position: sticky; top: 84px; }
.escrow { background: var(--deep); color: #fff; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.escrow-top { display: flex; align-items: center; gap: 8px; color: #cfe7de; font-size: 14px; }
.escrow-amount { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.bars { display: flex; gap: 4px; }
.bars i { flex-grow: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.22); }
.bars i.on { background: #5fc4a1; } .bars i.held { background: rgba(255,255,255,.55); } .bars i.err { background: #e08a7c; }
.escrow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.escrow-grid small { color: #9fc2b6; font-size: 12px; }
.escrow-grid b { font-size: 17px; }
.escrow-note { color: #9fc2b6; font-size: 12px; }
.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 26px 1fr; gap: 14px; position: relative; padding-bottom: 20px; }
.tl-item:not(:last-child)::before { content: ''; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.tl-item.tl-released:not(:last-child)::before { background: var(--green); }
.tl-node { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #c9c6be; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.tl-released .tl-node { background: var(--green); border-color: var(--green); }
.tl-current .tl-node { border: 7px solid var(--amber); }
.tl-disputed .tl-node { border: 7px solid var(--red); }
.tl-current.tl-funded .tl-node { border-color: var(--green); }
.tl-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tl-body small { margin-top: 2px; }
.journal { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.j-entry { border-top: 1px solid var(--line2); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.j-entry p { margin: 0; white-space: pre-line; }
.j-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.j-system p { color: var(--muted); font-size: 14px; }
.request-form { background: var(--green-tint); border-radius: var(--r); padding: 14px; }
.transfer .kv { grid-template-columns: 170px 1fr; }

/* ---------- messages ---------- */
.thread { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 80%; gap: 4px; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 10px 14px; white-space: pre-line; }
.msg.me .bubble { background: var(--green); color: #fff; border-color: var(--green); border-radius: 16px 16px 4px 16px; }
.msg-form { display: flex; gap: 10px; align-items: flex-end; position: sticky; bottom: 12px; background: var(--bg); padding: 8px 0; }

/* ---------- divers ---------- */
.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 24px; overflow-x: auto; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--faint); white-space: nowrap; padding-right: 10px; }
.stepper li span { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: var(--surface); }
.stepper li.cur { color: var(--ink); } .stepper li.cur span { border-color: var(--green); color: var(--green); border-width: 2px; }
.stepper li.done { color: var(--green); } .stepper li.done span { background: var(--green); border-color: var(--green); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi small { color: var(--muted); }
.kpi b { font-size: 24px; letter-spacing: -0.02em; }
.coverage { display: flex; flex-direction: column; gap: 6px; font-size: 14px; background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.coverage:empty { display: none; }
.cov-state::before { content: '…'; font-weight: 800; }
.cov-state.ok::before { content: '✓'; color: var(--green); }
.cov-state.ko::before { content: '✗'; color: var(--amber); }
.uploader { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.uploader label.btn { flex-direction: row; }
.up-list { display: flex; flex-wrap: wrap; gap: 8px; }
.up-item { width: 84px; display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); }
.up-item .th { width: 84px; height: 84px; border-radius: 10px; background: var(--line2) center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.up-item.warn { color: var(--amber); } .up-item.err { color: var(--red); }
.doc-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line2); }
.doc-prev { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--line2); display: flex; align-items: center; justify-content: center; }
.doc-prev img { width: 100%; height: 100%; object-fit: cover; }
.doc-row small { display: block; }
.events { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.event { display: grid; grid-template-columns: 100px 1fr; gap: 10px; }
.notif { display: flex; justify-content: space-between; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line2); text-decoration: none; color: var(--ink); }
.notif:first-child { border-top: none; }
.notif.unread { background: var(--green-tint); font-weight: 600; }
.notif small { white-space: nowrap; }
.feedback-card .fb-text { white-space: pre-line; margin: 10px 0; }
.official { border-color: var(--green); }
.spec-head h2 { font-size: 26px; }

/* ---------- avis testeur ---------- */
.fb-btn { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: inline-flex; gap: 8px; align-items: center; background: var(--ink); color: #fff; border: none; border-radius: 999px; padding: 12px 18px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.fb-btn:hover { background: #000; }
dialog.fb { border: none; border-radius: 20px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog.fb::backdrop { background: rgba(18,28,25,.45); }
dialog.fb form { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.rating { display: flex; gap: 8px; }
.rating label { flex-direction: row; }
.rating input { position: absolute; opacity: 0; pointer-events: none; }
.rating span { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; cursor: pointer; background: var(--surface); }
.rating input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .contract-layout { grid-template-columns: 1fr; }
  .contract-layout aside { order: -1; }
  .sticky { position: static; }
}
@media (max-width: 720px) {
  .top-inner { gap: 10px; padding: 0 12px; height: auto; min-height: 58px; flex-wrap: wrap; padding-top: 8px; }
  .nav { order: 3; width: 100%; padding-bottom: 6px; }
  .acct-name, .guide-link { display: none; }
  .wrap { padding: 20px 16px 110px; }
  .grid2, .grid3, .choice-grid, .options.two, .answers { grid-template-columns: 1fr; }
  .kv, .transfer .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  .card { padding: 16px; }
  .fb-btn { padding: 10px 14px; font-size: 14px; right: 12px; bottom: 12px; }
  .msg { max-width: 92%; }
  .event { grid-template-columns: 1fr; gap: 0; }
  .q-label { font-size: 21px; }
  .escrow-amount { font-size: 32px; }
}
