/* =========================================================
   ImmoPass · LP Audit logement (Rénoprêt / Rénopack)
   Couleurs de marque issues du logo ImmoPass :
   bleu #273583 · vert #4BAE32
   ========================================================= */

:root {
  --navy: #273583;
  --navy-700: #1f2b6c;
  --navy-900: #172054;
  --green: #4bae32;          /* vert de marque : accents, icônes */
  --green-cta: #338a20;      /* vert assombri pour les boutons (texte blanc AA) */
  --green-cta-hover: #2a7419;
  --green-text: #2e7d1f;     /* petits textes verts sur fond clair */
  --green-50: #eef7ea;

  --ink: #1b2340;
  --text: #3d4560;
  --muted: #646b82;
  --line: #e2e6ef;
  --bg: #ffffff;
  --bg-soft: #f3f5fa;
  --bg-hero: #eef1f8;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 32, 84, .05), 0 8px 24px rgba(23, 32, 84, .06);
  --shadow-lg: 0 16px 48px rgba(23, 32, 84, .12);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--navy); }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-top: 88px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 10px;
  font: 700 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green-cta); color: #fff; box-shadow: 0 6px 16px rgba(51, 138, 32, .25); }
.btn-primary:hover { background: var(--green-cta-hover); transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--green-50); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--bg-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo img { width: 168px; height: auto; }
.header-right { display: flex; align-items: center; gap: 22px; }
.header-agrement { font-size: 13px; color: var(--muted); }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); text-decoration: none; }
.header-phone svg { color: var(--green); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg-hero), #f6f8fc); padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.pill {
  display: inline-block; line-height: 1.4; padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy);
}
.hero h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; margin-top: 20px; }
.hero h1 .hl { color: var(--navy); }
.lead { margin-top: 20px; font-size: 18px; max-width: 34em; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; max-width: 540px; }
.hero-facts li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.fact-label { display: block; font-size: 12px; color: var(--muted); }
.hero-facts strong { display: block; margin-top: 2px; font-size: 17px; color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 28px; }
.hero-call { color: var(--navy); text-decoration: none; font-size: 15px; }
.hero-call strong { text-decoration: underline; text-underline-offset: 3px; }
.fineprint { margin-top: 18px; font-size: 13px; color: var(--muted); max-width: 36em; }

.hero-visual { position: relative; }
.hero-visual img { width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 55% 50%; border-radius: 20px; box-shadow: var(--shadow-lg); }
.rating-card {
  position: absolute; left: -24px; bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-lg);
}
.rating-score { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.rating-meta { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); line-height: 1.3; }
.stars { color: var(--green); letter-spacing: 2px; font-size: 15px; }

/* ---------- Trust bar ---------- */
.trustbar { border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 26px; padding-bottom: 26px; }
.trust-grid div { display: flex; flex-direction: column; padding-left: 14px; border-left: 3px solid var(--green); }
.trust-grid strong { font-size: 18px; color: var(--navy); }
.trust-grid span { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--bg-soft); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-text); }
.section-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin-top: 10px; max-width: 18em; }
.section-title.center { margin-left: auto; margin-right: auto; }
.section-intro { margin-top: 16px; font-size: 17px; max-width: 40em; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.section-head .section-title { margin-top: 0; }
.link-arrow { font-weight: 700; color: var(--navy); text-underline-offset: 4px; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.step-card { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; }
.num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 15px;
}
.step-card h3 { font-size: 19px; margin-top: 18px; }
.step-card p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.row-cta { display: flex; align-items: center; gap: 28px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Section financement (fond bleu marque) ---------- */
.section-dark { background: var(--navy); color: #dfe4f5; }
.section-dark .section-title { color: #fff; }
.section-dark .section-intro { color: #dfe4f5; }
.eyebrow-light { color: #9fdc8b; }
.labels-table {
  width: 100%; max-width: 720px; margin-top: 36px; border-collapse: collapse;
  background: #fff; border-radius: var(--radius); overflow: hidden; color: var(--ink);
}
.labels-table th { padding: 14px 24px; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--bg-soft); }
.labels-table td { padding: 16px 24px; font-size: 19px; font-weight: 700; border-top: 1px solid var(--line); white-space: nowrap; }
.labels-table td .peb { margin-right: 4px; }
.labels-table th:nth-child(2), .labels-table td.arrow { width: 48px; padding-left: 0; padding-right: 0; text-align: center; }
.labels-table td.arrow { color: var(--green); font-size: 22px; font-weight: 800; }
.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; }
.peb { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 6px; color: #fff; font-weight: 800; }
.peb-c { background: #8cc63f; color: #1b2340; }
.peb-d { background: #f2d400; color: #1b2340; }
.peb-e { background: #f7a800; color: #1b2340; }
.peb-f { background: #ee6b1f; }
.peb-g { background: #d7261e; }
.note-light { margin-top: 14px; font-size: 14px; color: #c8cfea; }
.loans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.loan-card { border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); padding: 26px; }
.loan-card h3 { color: #fff; font-size: 21px; }
.loan-card p { margin-top: 10px; font-size: 15px; }
.muted-light { color: #b9c1e2; font-size: 14px !important; }
.callout {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 28px; padding: 22px 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .1);
}
.callout p { font-size: 15px; max-width: 46em; }
.callout strong { color: #fff; }
.callout a:not(.btn) { color: #fff; }
.disclaimer { margin-top: 28px; font-size: 12.5px; color: #b9c1e2; }
.disclaimer a { color: #fff; }

/* ---------- Avis ---------- */
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.review blockquote { margin: 14px 0 0; font-size: 15px; color: var(--ink); flex: 1; }
.review figcaption { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink); }
.review figcaption span { font-weight: 500; color: var(--muted); }

/* ---------- Commande ---------- */
.order-grid {
  display: grid; grid-template-columns: .9fr 1.1fr; column-gap: 56px; row-gap: 0; align-items: start;
  grid-template-areas: "head card" "steps card";
  grid-template-rows: auto 1fr;
}
.order-steps { padding-top: 4px; }
.order-head { grid-area: head; }
.order-steps { grid-area: steps; }
.order-card { grid-area: card; }
.steps { margin-top: 36px; display: grid; gap: 22px; }
.steps li { display: flex; gap: 16px; }
.step-num {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--green-50); color: var(--green-text); font-weight: 800; font-size: 14px;
}
.steps strong { color: var(--ink); }
.steps p { margin-top: 2px; font-size: 15px; color: var(--muted); }
.question-box {
  display: inline-block; margin-top: 32px; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.question-box strong { color: var(--navy); white-space: nowrap; }

.order-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-lg); }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: 13px; color: var(--muted); }
.progress .bar { display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 8px; }
.progress li.is-active, .progress li.is-done { color: var(--ink); font-weight: 700; }
.progress li.is-active .bar, .progress li.is-done .bar { background: var(--navy); }
.progress li.is-done .bar { background: var(--green); }

.form-step { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.form-step legend { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; padding: 0; margin-bottom: 14px; }
.step-help { font-size: 14px; color: var(--muted); margin: -6px 0 14px; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.choice + .choice { margin-top: 12px; }
.choice input { accent-color: var(--navy); margin: 3px 0 0; width: 18px; height: 18px; flex: none; }
.choice:has(input:checked) { border-color: var(--navy); background: #f5f7fd; box-shadow: 0 0 0 3px rgba(39, 53, 131, .1); }
.choice-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.choice-title { font-weight: 700; color: var(--ink); }
.choice-desc { font-size: 13.5px; color: var(--muted); }
.choice-title-price { flex-direction: row; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.choice-price { font-style: normal; font-weight: 800; color: var(--navy); white-space: nowrap; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-grid .choice + .choice { margin-top: 0; }
.tile-price { margin-top: 6px; font-weight: 800; color: var(--navy); font-size: 17px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field label span { color: #c0392b; }
.field input {
  width: 100%; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: 500 15px var(--font); color: var(--ink); background: #fff;
}
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(39, 53, 131, .12); }
.field input.is-invalid { border-color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.consent input { accent-color: var(--navy); width: 18px; height: 18px; margin-top: 1px; flex: none; }
.form-error { margin-top: 12px; font-size: 14px; color: #c0392b; font-weight: 600; }

.order-summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.summary-label { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.summary-sub { display: block; font-size: 12.5px; color: var(--muted); }
.summary-price { font-size: 26px; color: var(--navy); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.form-actions { display: flex; gap: 10px; margin-top: 16px; }
.form-reassure { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }

.form-success { text-align: center; padding: 24px 8px; }
.form-success:focus { outline: none; }
.success-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green-50); color: var(--green-text); font-size: 28px; font-weight: 800; }
.form-success h3 { margin-top: 16px; font-size: 22px; }
.form-success p { margin-top: 10px; color: var(--muted); }
.form-success .small { font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 36px; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 700; color: var(--ink); font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 600; color: var(--navy); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 20px; font-size: 15px; color: var(--muted); }

/* ---------- CTA final ---------- */
.final-cta { background: var(--navy); padding: 72px 0; color: #dfe4f5; }
.final-cta h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
.final-cta p { margin-top: 12px; font-size: 17px; }
.final-actions { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.final-phone { color: #fff; font-weight: 700; font-size: 17px; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 28px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 32px; }
.footer-grid img { width: 140px; height: auto; margin-bottom: 14px; }
.footer-title { font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.footer-grid li + li { margin-top: 6px; }
.footer-grid a { color: var(--navy); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-bottom a { color: var(--muted); }


/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .header-agrement { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual img { aspect-ratio: 16 / 9; object-position: 60% 60%; }
  .order-grid { grid-template-columns: 1fr; grid-template-areas: "head" "card" "steps"; }
  .order-card { margin-top: 28px; }
  .order-steps { margin-top: 48px; }
  .rating-card { left: 16px; bottom: 16px; }
}
@media (max-width: 900px) {
  .cards-3 { grid-template-columns: 1fr; gap: 14px; }
  .step-card { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 22px; }
  .step-card .num { grid-row: span 2; }
  .step-card h3 { margin-top: 4px; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .header-inner { height: 64px; }
  .logo img { width: 132px; }
  .header-phone span { display: none; }
  .header-phone svg { width: 22px; height: 22px; }
  .header-right { gap: 14px; }
  .hero { padding: 36px 0 48px; }
  .trust-grid { grid-template-columns: 1fr; padding: 24px 16px; gap: 14px; }
  .trust-grid strong { font-size: 16px; }
  .lead { font-size: 16.5px; }
  .progress { font-size: 12px; }
  .hero-facts { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .hero-facts li { padding: 10px; }
  .hero-facts strong { font-size: 15px; }
  .hero-cta .btn { width: 100%; }
  .section { padding: 60px 0; }
  .cards-3, .loans-grid, .footer-grid { grid-template-columns: 1fr; }
  .labels-table th, .labels-table td { padding-left: 16px; padding-right: 16px; }
  .labels-table td { font-size: 17px; }
  .callout { flex-direction: column; align-items: stretch; }
  .order-card { padding: 20px; }
  .fields { grid-template-columns: 1fr; }
  .final-actions .btn { width: 100%; }
  .row-cta { flex-direction: column-reverse; align-items: stretch; gap: 18px; text-align: center; }
  .pill { font-size: 11px; padding: 6px 12px; }
  .hero-visual img { aspect-ratio: 16 / 10; }
  .header-phone { padding: 10px; margin: -10px; }
  .rating-card { position: relative; left: auto; bottom: auto; display: inline-flex; margin: -36px 0 0 16px; }
  .rating-score { font-size: 24px; }
  .footer-grid li a, .footer-bottom a { display: inline-block; padding: 6px 0; }
  .order-steps { margin-top: 40px; }
  .question-box { display: block; text-align: center; }}
@media (max-width: 420px) {
  .header-right .btn-sm { padding: 0 12px; font-size: 13px; }
  .hero-facts strong { font-size: 14px; }
  .hero-facts li { padding: 9px 10px; }
  .choice-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
