/* ===== PP Immobilier · démo assistants IA · BendeStudio ===== */
:root {
  --bg: #F4F1EB;
  --surface: #FBFAF6;
  --ink: #1C2530;
  --ink-2: #4A5560;
  --line: rgba(28,37,48,.12);
  --navy: #1F3A5A;
  --navy-d: #16293F;
  --or: #A9834E;
  --or-l: #C0A06E;
  --vert: #2E5B45;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --r: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); background: var(--bg); color: var(--ink);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); }

.kicker {
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--or); display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ''; width: 26px; height: 1.5px; background: var(--or); }

/* ===== nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; padding: 15px 24px; max-width: 1120px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 9px; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
}
.brand b { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; }
.brand span { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-top: -2px; }
.nav .tagdemo {
  font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--or); border: 1px solid var(--or); padding: 6px 12px; border-radius: 999px;
}
@media (max-width: 620px) { .nav .tagdemo { display: none; } }

/* ===== hero ===== */
.hero { padding: clamp(48px, 8vw, 92px) 0 clamp(36px, 6vw, 64px); }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -.02em; margin: 20px 0 20px; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--navy); }
.hero p.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; }
.hero-benefs { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 34px; }
.hero-benefs div b { font-family: var(--serif); font-size: 1.7rem; color: var(--navy); display: block; }
.hero-benefs div span { font-size: .86rem; color: var(--ink-2); }
.hero-note {
  margin-top: 30px; font-size: .82rem; color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--or); padding: 12px 16px; border-radius: 8px; max-width: 62ch;
}

/* ===== module ===== */
.mod { padding: clamp(34px, 5vw, 58px) 0; border-top: 1px solid var(--line); }
.mod-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; flex-wrap: wrap; margin-bottom: 30px; }
.mod-head .txt { max-width: 56ch; }
.mod-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; margin: 12px 0 10px; }
.mod-head p { color: var(--ink-2); }
.pour {
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap; flex: none;
}
.pour.client { background: #E8EFF6; color: var(--navy); }
.pour.interne { background: #EAF1EC; color: var(--vert); }

/* ===== chat ===== */
.chat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 20px 50px -30px rgba(28,37,48,.4); max-width: 560px;
}
.chat-top { background: var(--navy); color: #fff; padding: 15px 18px; display: flex; align-items: center; gap: 12px; }
.chat-top .av { width: 38px; height: 38px; border-radius: 50%; background: var(--or); display: grid; place-items: center; flex: none; font-family: var(--serif); font-weight: 600; }
.chat-top b { font-size: .95rem; display: block; }
.chat-top small { font-size: .72rem; opacity: .8; display: flex; align-items: center; gap: 6px; }
.chat-top small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #57C98A; }
.chat-body { height: 420px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(var(--surface), var(--bg)); }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 14px; font-size: .93rem; line-height: 1.5; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.bot strong { color: var(--navy); }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); opacity: .5; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100%{opacity:.25} 30%{opacity:.9} }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface); }
.chip { font-size: .82rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: .18s; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chat-input { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-input input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; background: #fff; }
.chat-input input:focus { outline: 2px solid var(--navy); outline-offset: -1px; }
.chat-input button { background: var(--navy); color: #fff; border: none; border-radius: 999px; width: 46px; height: 46px; cursor: pointer; flex: none; font-size: 1.1rem; }
.chat-input button:hover { background: var(--navy-d); }

/* ===== candidature guidée ===== */
.cand { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; max-width: 620px; box-shadow: 0 20px 50px -30px rgba(28,37,48,.4); }
.cand-top { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cand-top .bien { font-size: .9rem; }
.cand-top .bien b { display: block; font-family: var(--serif); font-size: 1.05rem; }
.cand-top .bien span { color: var(--ink-2); font-size: .82rem; }
.cand-prog { display: flex; gap: 5px; }
.cand-prog i { width: 26px; height: 4px; border-radius: 2px; background: var(--line); transition: .3s; }
.cand-prog i.on { background: var(--navy); }
.cand-step { padding: 26px 22px 24px; }
.cand-step .q { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 4px; }
.cand-step .hint { color: var(--ink-2); font-size: .88rem; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.field input:focus, .field select:focus { outline: 2px solid var(--navy); outline-offset: -1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 16px; cursor: pointer; font-size: .9rem; transition: .16s; }
.opt:hover { border-color: var(--navy); }
.opt.sel { background: var(--navy); color: #fff; border-color: var(--navy); }
.check { display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 9px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--navy); width: 17px; height: 17px; }
.check b { font-size: .9rem; font-weight: 600; display: block; }
.check span { font-size: .8rem; color: var(--ink-2); }
.cand-nav { display: flex; justify-content: space-between; gap: 12px; padding: 0 22px 22px; }
.btn { border: none; border-radius: 999px; padding: 13px 26px; font-size: .9rem; font-weight: 600; cursor: pointer; transition: .2s; }
.btn.primary { background: var(--navy); color: #fff; } .btn.primary:hover { background: var(--navy-d); }
.btn.ghost { background: transparent; color: var(--ink-2); } .btn.ghost:hover { color: var(--ink); }
.btn:disabled { opacity: .4; pointer-events: none; }
.recap { padding: 8px 22px 26px; }
.recap .ok { width: 54px; height: 54px; border-radius: 50%; background: var(--vert); color: #fff; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; }
.recap h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 8px; }
.recap .lines { margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.recap .lines div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 16px; font-size: .9rem; border-bottom: 1px solid var(--line); }
.recap .lines div:last-child { border-bottom: none; }
.recap .lines span { color: var(--ink-2); } .recap .lines b { text-align: right; }
.recap .dossier { font-size: .82rem; color: var(--vert); background: #EAF1EC; padding: 10px 14px; border-radius: 8px; }

/* ===== générateur ===== */
.gen { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 800px) { .gen { grid-template-columns: 1fr; } }
.gen-form, .gen-out { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.gen-out { background: var(--navy); color: #fff; min-height: 260px; display: flex; flex-direction: column; }
.gen-out .lab-out { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--or-l); margin-bottom: 14px; }
.gen-out h3 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 12px; line-height: 1.2; }
.gen-out p { font-size: .95rem; line-height: 1.65; color: #E4E9EF; margin-bottom: 14px; }
.gen-out ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.gen-out li { font-size: .8rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); padding: 6px 12px; border-radius: 999px; }
.gen-out .placeholder { color: rgba(255,255,255,.5); font-size: .92rem; margin: auto 0; text-align: center; }
.gen-atouts { display: flex; flex-wrap: wrap; gap: 8px; }
.gen-atouts .opt { padding: 8px 13px; font-size: .84rem; }
.gen-form .field:last-of-type { margin-bottom: 18px; }

/* ===== closing ===== */
.closing { background: var(--navy); color: #fff; padding: clamp(48px, 7vw, 80px) 0; margin-top: 40px; }
.closing h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 16px; max-width: 20ch; }
.closing p { color: #C9D3DE; max-width: 56ch; margin-bottom: 26px; }
.closing .rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
@media (max-width: 720px) { .closing .rows { grid-template-columns: 1fr; } }
.closing .rows div { border-top: 2px solid var(--or); padding-top: 14px; }
.closing .rows b { font-family: var(--serif); font-size: 1.05rem; display: block; margin-bottom: 6px; }
.closing .rows span { font-size: .88rem; color: #C9D3DE; }

footer { padding: 26px 0; text-align: center; font-size: .8rem; color: var(--ink-2); }
footer b { color: var(--ink); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
