/* ==========================================================
   Page d’estimation modèle — Kloney
   Pour une nouvelle agence : changer les couleurs ci-dessous,
   puis le logo, les textes et les visuels dans index.html.
   ========================================================== */

:root {
  --brand: #1B4965;        /* couleur principale de l’agence */
  --brand-dark: #123449;
  --brand-soft: #E4EEF2;
  --star: #E0A029;
  --bg: #FAF7F2;
  --card: #FFFFFF;
  --ink: #1C2428;
  --ink-soft: #505C62;
  --ink-faint: #707C82;
  --line: #E2DDD3;
  --ok: #1D7A51;
  --err: #B3261E;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
svg { display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

/* Bandeau d’exemple et en-tête */
.demo-bar { background: #2A2F33; color: #fff; text-align: center; font-size: 0.8125rem; line-height: 1.4; padding: 7px 14px; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.1; }
.logo svg { width: 30px; height: 30px; flex: none; }
.rating { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8125rem; color: var(--ink-soft); line-height: 1.25; text-align: right; }
.rating strong { color: var(--ink); }
.stars { width: 70px; height: 13px; flex: none; }
@media (max-width: 420px) { .rating { flex-direction: column; align-items: flex-end; gap: 2px; } }

/* 1. Premier écran */
.hero { padding-block: 10px 44px; }
.hero-grid { display: grid; gap: 20px; }
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.1rem); line-height: 1.07; letter-spacing: -0.018em; text-wrap: balance; }
.sub { margin-top: 12px; color: var(--ink-soft); max-width: 34em; }
.hero-art { display: none; }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 16px; box-shadow: 0 24px 50px -30px rgba(27, 73, 101, 0.45); }
.form-head { display: flex; align-items: center; gap: 11px; font-size: 0.875rem; line-height: 1.3; color: var(--ink-soft); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.form-head strong { color: var(--ink); }
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; }

.progress { height: 6px; background: var(--brand-soft); border-radius: 99px; margin-top: 16px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 25%; background: var(--brand); border-radius: 99px; transition: width 0.3s ease; }
.step-count { margin-top: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-faint); }

.step { display: none; margin-top: 10px; }
.step.is-on { display: block; }
legend { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.18; letter-spacing: -0.01em; margin-bottom: 14px; }

.choices { display: grid; gap: 10px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice { min-height: 56px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-weight: 600; text-align: left; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.choice:hover, .choice.is-picked { border-color: var(--brand); background: var(--brand-soft); }
.choice.big { display: grid; justify-items: center; gap: 6px; min-height: 112px; padding: 16px 8px; text-align: center; color: var(--ink); }
.choice.big svg { width: 44px; height: 44px; color: var(--brand); }
.linkish { margin-top: 12px; background: none; border: 0; padding: 6px 0; font-size: 0.9rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.field { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 12px; }
.opt { font-weight: 400; color: var(--ink-faint); font-size: 0.8125rem; margin-left: 4px; }
.field input { display: block; width: 100%; margin-top: 5px; min-height: 50px; padding: 0 14px; border: 1.5px solid #CFC9BD; border-radius: 12px; background: #fff; font-size: 1rem; font-weight: 400; }
.field input::placeholder { color: #A9A398; }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field input.bad { border-color: var(--err); }
.unit { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.unit input { margin-top: 0; max-width: 140px; }
.unit span { font-weight: 400; color: var(--ink-soft); }

.nudge { font-size: 0.9rem; color: var(--ink-soft); margin: 4px 0 8px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-soft); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); }

.error { margin-top: 10px; color: var(--err); font-size: 0.875rem; font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 1.5rem; border: 0; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.0313rem; text-decoration: none; cursor: pointer; transition: background-color 0.15s; }
.btn:hover { background: var(--brand-dark); }
.btn.wide { width: 100%; margin-top: 14px; }
.btn.light { background: #fff; color: var(--brand); }
.btn.light:hover { background: var(--brand-soft); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.back { background: none; border: 0; padding: 10px 4px; font-size: 0.9rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.privacy { margin-top: 10px; font-size: 0.78rem; line-height: 1.45; color: var(--ink-faint); text-align: center; }

.thanks { text-align: center; padding: 14px 4px 6px; }
.thanks:focus { outline: none; }
.thanks-title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; font-weight: 500; margin-bottom: 10px; }
.thanks p { color: var(--ink-soft); }
.thanks-sign { margin-top: 12px; }
.thanks-sign strong { color: var(--ink); }
.demo-note { margin-top: 16px; font-size: 0.8rem; background: var(--bg); border-radius: 10px; padding: 8px 10px; }

.reassure { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; font-size: 0.8438rem; font-weight: 600; color: var(--ink-soft); }
.reassure li::before { content: "✓"; color: var(--ok); margin-right: 5px; font-weight: 700; }

@media (min-width: 900px) {
  .hero { padding-block: 26px 76px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
  .sub { margin-top: 18px; font-size: 1.12rem; }
  .hero-art { display: block; width: 100%; height: 230px; margin-top: 30px; border-radius: 20px; }
  .form-card { padding: 24px 26px 20px; }
  legend { font-size: 1.55rem; }
}

/* Sections */
.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band.white { background: var(--card); border-block: 1px solid var(--line); }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.2; margin-top: 2.5rem; }

.ticks { display: grid; gap: 12px; margin-top: 1.4rem; color: var(--ink-soft); }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 22px; height: 22px; border-radius: 50%; background: #E1F0E7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.500l3.300 3.300L15 6.500' fill='none' stroke='%231D7A51' stroke-width='2.400' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ticks strong { color: var(--ink); }

/* 2. Ce que vous recevez */
.get-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .get-grid { grid-template-columns: 0.9fr 1.1fr; gap: 4.5rem; } }
.paper { background: var(--brand-soft); border-radius: 24px; padding: 34px 22px; display: grid; place-items: center; }
.sheet { width: 100%; max-width: 300px; background: #fff; border-radius: 10px; padding: 22px 22px 24px; box-shadow: 0 30px 50px -24px rgba(18, 52, 73, 0.5); transform: rotate(-2.5deg); font-size: 12px; line-height: 1.4; }
.sheet-brand { font-family: var(--serif); font-weight: 600; font-size: 12px; color: var(--brand); }
.sheet-title { font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.15; margin-top: 8px; }
.sheet-meta { color: var(--ink-faint); font-size: 11px; margin-top: 2px; }
.sheet-price { position: relative; margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--brand); color: #fff; font-family: var(--serif); font-size: 19px; text-align: center; }
.sheet-price span { position: absolute; top: -8px; right: 10px; background: var(--star); color: #2A2F33; font-family: var(--sans); font-size: 9.500px; font-weight: 700; padding: 2px 7px; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.06em; }
.sheet-h { margin-top: 16px; font-weight: 700; font-size: 11px; }
.sheet-list { margin-top: 6px; display: grid; gap: 6px; color: var(--ink-soft); font-size: 11px; }
.sheet-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid #EEE9E0; }
.sheet-list i, .sheet-lines i { display: block; height: 7px; border-radius: 4px; background: #E6E1D7; }
.sheet-list i { width: 54px; flex: none; }
.sheet-lines { margin-top: 8px; display: grid; gap: 6px; }
.sheet-lines i:nth-child(2) { width: 88%; }
.sheet-lines i:nth-child(3) { width: 60%; }

.three { counter-reset: n; display: grid; gap: 10px; margin: 1.8rem 0; padding: 16px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; font-size: 0.97rem; }
.three li { counter-increment: n; display: flex; gap: 12px; align-items: baseline; }
.three li::before { content: counter(n); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; align-self: center; }

/* 3. Qui vous rappelle */
.who-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 800px) { .who-grid { grid-template-columns: 280px 1fr; gap: 4rem; } }
.portrait { width: min(100%, 280px); aspect-ratio: 1; border-radius: 24px; }
.quote { margin-top: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.sign { margin-top: 0.9rem; color: var(--ink-soft); }
.sign strong { color: var(--ink); }

/* 4. Les preuves */
.sold { display: grid; gap: 16px; margin-top: 1.8rem; }
@media (min-width: 760px) { .sold, .reviews { grid-template-columns: repeat(3, 1fr); } }
.sold li { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg); }
.sold svg { width: 100%; height: auto; }
.sold p { padding: 14px 16px 16px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.4; }
.sold strong { display: block; color: var(--ink); }
.sold span { display: block; width: fit-content; margin-top: 8px; padding: 3px 10px; border-radius: 99px; background: #E1F0E7; color: var(--ok); font-weight: 700; font-size: 0.8125rem; }
.reviews { display: grid; gap: 16px; margin-top: 1.2rem; }
.reviews li { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; }
.five { color: var(--star); letter-spacing: 2px; font-size: 1.05rem; }
.reviews p { margin-top: 6px; font-size: 0.97rem; }
.reviews cite { display: block; margin-top: 10px; font-style: normal; font-size: 0.85rem; color: var(--ink-faint); }
.small { margin-top: 1.4rem; font-size: 0.8125rem; color: var(--ink-faint); max-width: 60em; }

/* 5. Questions */
.faq { margin-top: 1.6rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 2rem 1.05rem 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 0.85rem; font-size: 1.5rem; line-height: 1; font-weight: 400; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 1.5rem 1.2rem 0; color: var(--ink-soft); }

/* 6. Dernier appel et pied de page */
.last { background: var(--brand); color: #fff; text-align: center; }
.last .btn { margin-top: 1.6rem; }
.last p { margin-top: 0.9rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }
.foot { padding-block: 2rem 6.5rem; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-faint); }
.foot p + p { margin-top: 4px; }
.foot strong { color: var(--ink-soft); }
@media (min-width: 900px) { .foot { padding-bottom: 2.5rem; } }

/* Bouton collé en bas, sur téléphone */
.sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 14px 30px -10px rgba(18, 52, 73, 0.6); }
.sticky[hidden] { display: none; }
@media (min-width: 900px) { .sticky { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress span { transition: none; }
}
.reassure[hidden] { display: none; }

.rdv { margin-top: 14px; display: grid; gap: 9px; font-size: 12px; color: var(--ink-soft); }
.rdv li { padding-bottom: 9px; border-bottom: 1px solid #EEE9E0; }
.rdv li:last-child { border-bottom: 0; padding-bottom: 0; }
.rdv strong { display: block; color: var(--ink); font-size: 13px; }
.sheet-price { font-size: 17px; }
