/* Page Immeubles (refonte du 2.12.2026)
   Règles du système : lignes noires fines, fonds bleus, gros chiffres, coins arrondis, verre seulement sur les photos. */

/* ---------- Chiffres qui comptent à l'arrivée ---------- */
.im-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.im-stat { border: 1px solid var(--ink); border-radius: var(--r-card); padding: 22px 22px 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 190px; }
.im-stat b { display: block; font-weight: 400; font-size: clamp(2.8rem, 5vw, 4.6rem); letter-spacing: -0.06em; line-height: .9; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.im-stat b small { font-size: .45em; letter-spacing: -0.03em; margin-left: .06em; }
.im-stat span { font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.45; color: var(--muted); max-width: 26ch; }
.im-stat.is-blue { background: var(--accent); border-color: var(--accent); }
.im-stat.is-blue b, .im-stat.is-blue span { color: #fff; }
@media (max-width: 960px) { .im-stats { grid-template-columns: 1fr 1fr; gap: 14px; } .im-stat { min-height: 150px; padding: 18px; } }

/* ---------- Méthode : bloc bleu + photo, puis trois cadres au trait noir ---------- */
.im-method { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.im-m { border-radius: var(--r-frame); padding: clamp(24px, 2.6vw, 38px); display: flex; flex-direction: column; gap: 14px; }
.im-m .im-n { font-size: 11.5px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.im-m h3 { font-size: clamp(1.35rem, 1.9vw, 1.75rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; margin: 0; }
.im-m p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.im-m-lead { grid-column: span 7; background: var(--accent); color: #fff; min-height: clamp(380px, 34vw, 470px); }
.im-m-lead h3 { font-size: clamp(1.9rem, 3.1vw, 2.9rem); letter-spacing: -0.04em; line-height: 1.02; max-width: 14ch; margin-top: auto; }
.im-m-lead p { color: rgba(255, 255, 255, .9); max-width: 54ch; }
.im-m-figure { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-top: 18px; margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, .35); }
.im-m-figure b { font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 400; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; }
.im-m-figure span { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.im-m-photo { grid-column: span 5; padding: 0; position: relative; overflow: hidden; min-height: 300px; }
.im-m-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.im-m-photo figcaption { position: absolute; left: 18px; bottom: 18px; height: 36px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
.im-m-step { grid-column: span 4; border: 1px solid var(--ink); color: var(--ink); min-height: 270px; transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
.im-m-step .im-n { color: var(--muted); transition: color var(--t-mid) var(--ease); }
.im-m-step h3 { margin-top: auto; }
.im-m-step p { color: var(--ink-2); transition: color var(--t-mid) var(--ease); }
@media (hover: hover) {
  .im-m-step:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-4px); }
  .im-m-step:hover p, .im-m-step:hover .im-n { color: rgba(255, 255, 255, .9); }
}
@media (max-width: 960px) { .im-m-lead, .im-m-photo, .im-m-step { grid-column: 1 / -1; } .im-m-lead { min-height: 0; } .im-m-lead h3 { margin-top: 24px; } .im-m-photo { min-height: 260px; } .im-m-step { min-height: 0; } .im-m-step h3 { margin-top: 18px; } }

/* ---------- Calculateur de rendement ---------- */
.im-calc-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 3vw, 44px); }
.im-calc-head .h2 { max-width: 16ch; }
.im-calc-head .lead { max-width: 44ch; margin: 0; }
.im-calc { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: stretch; }
.im-sliders { border: 1px solid var(--ink); border-radius: var(--r-frame); padding: clamp(8px, 1vw, 14px) clamp(22px, 2.6vw, 38px); display: grid; }
.im-field { padding: clamp(18px, 1.8vw, 26px) 0; display: grid; gap: 14px; }
.im-field + .im-field { border-top: 1px solid var(--ink); }
.im-field-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.im-field label { font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; color: var(--ink); max-width: 22ch; }
.im-field output { font-size: clamp(1.5rem, 2.3vw, 2.1rem); font-weight: 400; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.im-field .im-help { font-size: 13px; color: var(--muted); line-height: 1.4; }
.im-ends { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .06em; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: -6px; }

/* curseur : une vraie ligne noire, la partie parcourue en bleu, une grosse poignée */
.im-range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; padding: 0; background: transparent; border: 0; cursor: pointer; --p: 50%; }
.im-range:focus { outline: none; box-shadow: none; }
.im-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) 0 var(--p), color-mix(in srgb, var(--ink) 22%, transparent) var(--p) 100%); }
.im-range::-moz-range-track { height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.im-range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
.im-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--ink), 0 6px 14px -6px rgba(20, 30, 70, .5); transition: transform .2s var(--ease); }
.im-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--ink), 0 6px 14px -6px rgba(20, 30, 70, .5); }
.im-range:hover::-webkit-slider-thumb, .im-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.im-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px var(--accent-soft); }

.im-result { border-radius: var(--r-frame); background: var(--accent); color: #fff; padding: clamp(24px, 2.8vw, 40px); display: flex; flex-direction: column; gap: 6px; position: sticky; top: 110px; align-self: start; min-height: 100%; }
.im-result .im-k { font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.im-result > b { display: block; font-weight: 400; font-size: clamp(4rem, 8vw, 7.4rem); letter-spacing: -0.07em; line-height: .88; font-variant-numeric: tabular-nums; white-space: nowrap; margin: 14px 0 auto; }
.im-result > b small { font-size: .36em; letter-spacing: -0.02em; margin-left: .08em; }
.im-rows { margin-top: 28px; }
.im-rows div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .35); }
.im-rows span { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.im-rows strong { font-size: 1.25rem; font-weight: 400; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.im-result .btn { margin-top: 18px; width: 100%; }
.im-result .im-note { font-size: 12.5px; opacity: .8; margin-top: 12px; }
@media (max-width: 960px) { .im-calc { grid-template-columns: 1fr; } .im-result { position: static; min-height: 0; } .im-result > b { margin: 10px 0 0; } .im-calc-head { display: block; } .im-calc-head .lead { margin-top: 14px; } }

/* ---------- Nous achetons : mêmes cadres au trait noir ---------- */
#nous-achetons .check-group { background: transparent; border: 1px solid var(--ink); border-radius: var(--r-card); transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
#nous-achetons .check-group h3 i, #nous-achetons .check-group p { transition: color var(--t-mid) var(--ease); }
@media (hover: hover) {
  #nous-achetons .check-group:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-4px); }
  #nous-achetons .check-group:hover h3 i, #nous-achetons .check-group:hover p { color: #fff; }
}

/* retouches */
.im-m-photo { margin: 0; }
.im-m-step { min-height: 0; }
.im-m-step h3 { margin-top: clamp(28px, 4vw, 64px); }

/* icônes Wayne dans les étapes */
.ico { width: 28px; height: 28px; flex: none; }
.im-top { display: flex; align-items: center; justify-content: space-between; }
.im-m .ico { width: 34px; height: 34px; }
.im-m-step .ico { color: var(--accent); transition: color var(--t-mid) var(--ease); }
@media (hover: hover) { .im-m-step:hover .ico { color: #fff; } }

/* « Que vaut votre immeuble ? » (3.12) : tuile de verre en 16/9, centrée dans la photo, verre plus léger */
#valeur-band { align-items: center; justify-content: center; min-height: clamp(560px, 46vw, 680px) !important; }
#valeur-band .feature-card { width: min(100%, 900px); max-width: none; aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: center; padding: clamp(26px, 3.4vw, 52px); background: color-mix(in srgb, var(--glass) 72%, transparent); -webkit-backdrop-filter: blur(11px) saturate(140%); backdrop-filter: blur(11px) saturate(140%); }
#valeur-band .feature-card .btn, #valeur-band .feature-card .chip { align-self: flex-start; }
#valeur-band .feature-card p { max-width: 62ch; }
@media (max-width: 760px) { #valeur-band .feature-card { aspect-ratio: auto; } }
