/*
 * immo-entre-particuliers.com: redesign 2026-10 (docs/migration/REDESIGN.md). Bootstrap 5.3 + these tokens and
 * components. A real-estate portal between private owners: navy (trust, structure) and orange (actions) from the
 * logo, warm neutral surfaces, the property first (photo, price, surface, rooms), the legal energy labels.
 */
:root {
    --iep-navy: #012d5b;          /* logo house and lettering (logo of 2026-10-04) */
    --iep-navy-900: #001d3d;
    --iep-navy-700: #0e3f75;
    --iep-orange: #ff6501;        /* logo figures and "PARTICULIERS" (#ff6501): decoration, large text */
    --iep-orange-600: #c84b00;    /* buttons and small text on white: 4.7:1 */
    --iep-orange-050: #fff1e6;
    --iep-sky: #edf3f9;
    --iep-sand: #faf6f1;
    --iep-line: #dbe3ec;
    --iep-text: #1b2a37;
    --iep-muted: #5a6b7b;
    --iep-success: #1f7a4d;
    --iep-radius-sm: 10px;
    --iep-radius: 16px;
    --iep-radius-lg: 22px;
    --iep-shadow: 0 1px 2px rgba(0, 29, 61, .06), 0 8px 24px rgba(0, 29, 61, .08);
    --iep-shadow-lg: 0 18px 50px rgba(0, 29, 61, .18);

    --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-color: var(--iep-text);
    --bs-body-bg: #fff;
    --bs-link-color: var(--iep-navy-700);
    --bs-link-color-rgb: 14, 63, 117;
    --bs-link-hover-color: var(--iep-orange-600);
    --bs-link-hover-color-rgb: 200, 75, 0;
    --bs-border-color: var(--iep-line);
    --bs-primary: var(--iep-navy);
    --bs-primary-rgb: 1, 45, 91;
    --bs-focus-ring-color: rgba(255, 101, 1, .35);
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, .h1, .h2, .h3 { color: var(--iep-navy-900); font-weight: 750; letter-spacing: -.015em; }
h4, h5, h6, .h4, .h5, .h6 { color: var(--iep-navy-900); font-weight: 700; }
.text-muted, .text-secondary { color: var(--iep-muted) !important; }
a { text-underline-offset: .15em; }
:focus-visible { outline: 3px solid var(--iep-orange); outline-offset: 2px; }
.bi { vertical-align: -.125em; flex-shrink: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; top: .5rem; }

/* Buttons */
.btn { --bs-btn-font-weight: 600; --bs-btn-border-radius: var(--iep-radius-sm); --bs-btn-padding-y: .6rem; --bs-btn-padding-x: 1.1rem; }
.btn-lg { --bs-btn-padding-y: .8rem; --bs-btn-padding-x: 1.5rem; --bs-btn-font-size: 1.05rem; }
.btn-primary { --bs-btn-bg: var(--iep-navy); --bs-btn-border-color: var(--iep-navy); --bs-btn-hover-bg: var(--iep-navy-900); --bs-btn-hover-border-color: var(--iep-navy-900); --bs-btn-active-bg: var(--iep-navy-900); --bs-btn-active-border-color: var(--iep-navy-900); --bs-btn-disabled-bg: var(--iep-navy); --bs-btn-disabled-border-color: var(--iep-navy); }
.btn-accent { --bs-btn-color: #fff; --bs-btn-bg: var(--iep-orange-600); --bs-btn-border-color: var(--iep-orange-600); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #a63e00; --bs-btn-hover-border-color: #a63e00; --bs-btn-active-color: #fff; --bs-btn-active-bg: #8f3e00; --bs-btn-active-border-color: #8f3e00; }
.btn-outline-primary { --bs-btn-color: var(--iep-navy); --bs-btn-border-color: var(--iep-line); --bs-btn-hover-bg: var(--iep-sky); --bs-btn-hover-color: var(--iep-navy-900); --bs-btn-hover-border-color: var(--iep-navy-700); --bs-btn-active-bg: var(--iep-sky); --bs-btn-active-color: var(--iep-navy-900); --bs-btn-active-border-color: var(--iep-navy); }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--iep-line); --bs-btn-hover-bg: var(--iep-sky); --bs-btn-hover-border-color: var(--iep-line); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--iep-line); }
/* No backdrop-filter here: it would make the header the containing block of the fixed offcanvas menu, which then widens the page on mobile. */
.site-header .navbar { --bs-navbar-padding-y: .55rem; }
.site-header .navbar-brand img { height: 46px; width: auto; }
.site-header .nav-link { --bs-nav-link-color: var(--iep-navy-900); --bs-nav-link-hover-color: var(--iep-orange-600); font-weight: 600; padding: .55rem .8rem !important; border-radius: var(--iep-radius-sm); }
.site-header .nav-link:hover, .site-header .nav-link:focus-visible { background: var(--iep-sky); }
.site-header .dropdown-menu { border: 1px solid var(--iep-line); border-radius: var(--iep-radius); box-shadow: var(--iep-shadow); padding: .5rem; min-width: 15rem; }
.site-header .dropdown-item { border-radius: 8px; padding: .45rem .75rem; display: flex; align-items: center; gap: .55rem; }
.site-header .dropdown-item:active { background: var(--iep-navy); }
.site-header .dropdown-header { color: var(--iep-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.header-favorites .badge { background: var(--iep-orange-600); font-size: .7rem; }
.header-actions .btn { white-space: nowrap; }
@media (max-width: 991.98px) {
    .site-header .navbar-brand img { height: 38px; }
    .site-header .offcanvas { --bs-offcanvas-width: min(88vw, 360px); }
    .site-header .dropdown-menu { box-shadow: none; border: 0; padding-left: 1rem; }
}

/* Hero */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; background: var(--iep-navy-900); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 29, 61, .92) 0%, rgba(0, 29, 61, .72) 45%, rgba(0, 29, 61, .25) 100%); }
.hero-inner { padding-top: clamp(2.5rem, 6vw, 5.5rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.08; max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--iep-orange); }
.hero-lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, .88); max-width: 46ch; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; margin: 1.25rem 0 0; list-style: none; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points .bi { color: var(--iep-orange); }

/* Search card */
.search-card { background: #fff; color: var(--iep-text); border-radius: var(--iep-radius-lg); box-shadow: var(--iep-shadow-lg); padding: clamp(1rem, 2.4vw, 1.5rem); }
.search-tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1rem; }
@media (max-width: 575.98px) { .search-tabs { display: grid; grid-template-columns: 1fr 1fr; } .search-tabs .btn { width: 100%; } }
.search-tabs .btn-check + .btn { --bs-btn-padding-y: .45rem; --bs-btn-padding-x: 1rem; --bs-btn-color: var(--iep-navy-900); --bs-btn-bg: var(--iep-sky); --bs-btn-border-color: transparent; --bs-btn-hover-bg: #dfe9f4; --bs-btn-hover-color: var(--iep-navy-900); border-radius: 999px; }
.search-tabs .btn-check:checked + .btn { --bs-btn-active-bg: var(--iep-navy); --bs-btn-active-color: #fff; --bs-btn-active-border-color: var(--iep-navy); }
.search-card .form-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--iep-muted); margin-bottom: .3rem; }
.search-card .form-control, .search-card .form-select { min-height: 48px; border-radius: var(--iep-radius-sm); border-color: var(--iep-line); }
.search-card .btn-search { min-height: 48px; }
.input-icon { position: relative; }
.input-icon > .bi { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--iep-muted); pointer-events: none; }
.input-icon > .form-control { padding-left: 2.4rem; }
.location-suggestions { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1050; background: #fff; border: 1px solid var(--iep-line); border-radius: var(--iep-radius-sm); box-shadow: var(--iep-shadow); max-height: 320px; overflow: auto; padding: .35rem; margin: 0; list-style: none; }
.location-suggestions [role="option"] { padding: .5rem .7rem; border-radius: 8px; cursor: pointer; }
.location-suggestions [role="option"][aria-selected="true"], .location-suggestions [role="option"]:hover { background: var(--iep-sky); }

/* Sections */
.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section-alt { background: var(--iep-sand); }
.section-sky { background: var(--iep-sky); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem 2rem; margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; font-size: clamp(1.45rem, 2.4vw, 2rem); }
.kicker { display: inline-flex; align-items: center; gap: .5rem; color: var(--iep-orange-600); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; }
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--iep-orange); }
.lead-muted { color: var(--iep-muted); max-width: 62ch; }

/* Trust strip */
.trust-strip { background: #fff; border-bottom: 1px solid var(--iep-line); }
.trust-item { display: flex; gap: .85rem; align-items: flex-start; padding: 1.25rem 0; }
.trust-icon { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--iep-orange-050); color: var(--iep-orange-600); font-size: 1.35rem; }
.trust-item strong { display: block; color: var(--iep-navy-900); }
.trust-item span { color: var(--iep-muted); font-size: .92rem; }

/* Category tiles */
.category-tile { position: relative; display: block; border-radius: var(--iep-radius); overflow: hidden; background: var(--iep-navy); color: #fff; text-decoration: none; min-height: 190px; box-shadow: var(--iep-shadow); }
.category-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.category-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 29, 61, 0) 30%, rgba(0, 29, 61, .88) 100%); }
.category-tile-body { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; z-index: 1; }
.category-tile-body strong { display: block; font-size: 1.3rem; }
.category-tile-body span { color: rgba(255, 255, 255, .85); font-size: .92rem; }
.category-tile:hover img, .category-tile:focus-visible img { transform: scale(1.04); }
.category-tile:hover, .category-tile:focus-visible { color: #fff; }

/* Property card */
.property-card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--iep-line); border-radius: var(--iep-radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.property-card:hover, .property-card:focus-within { box-shadow: var(--iep-shadow); transform: translateY(-2px); }
.property-card-media { position: relative; aspect-ratio: 4 / 3; background: var(--iep-sky); overflow: hidden; }
.property-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.property-card-badges { position: absolute; left: .7rem; top: .7rem; display: flex; gap: .35rem; flex-wrap: wrap; z-index: 2; }
.badge-deal { background: var(--iep-navy); color: #fff; font-weight: 700; border-radius: 999px; padding: .35rem .65rem; font-size: .74rem; }
.badge-owner { background: rgba(255, 255, 255, .94); color: var(--iep-navy-900); font-weight: 700; border-radius: 999px; padding: .35rem .65rem; font-size: .74rem; }
.badge-demand { background: var(--iep-orange-600); color: #fff; font-weight: 700; border-radius: 999px; padding: .35rem .65rem; font-size: .74rem; }
.photo-count { position: absolute; right: .7rem; bottom: .7rem; z-index: 2; background: rgba(0, 29, 61, .78); color: #fff; border-radius: 999px; padding: .2rem .55rem; font-size: .78rem; display: inline-flex; gap: .3rem; align-items: center; }
.fav-btn { position: absolute; right: .6rem; top: .6rem; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--iep-navy-900); box-shadow: 0 2px 8px rgba(0, 29, 61, .18); }
.fav-btn[aria-pressed="true"] { color: #d1213b; }
.fav-btn .bi-heart-fill { display: none; }
.fav-btn[aria-pressed="true"] .bi-heart-fill { display: inline; }
.fav-btn[aria-pressed="true"] .bi-heart { display: none; }
.property-card-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.property-price { font-size: 1.32rem; font-weight: 800; color: var(--iep-navy-900); letter-spacing: -.01em; line-height: 1.2; }
.property-price small { font-size: .82rem; font-weight: 600; color: var(--iep-muted); }
.property-title { font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.3; }
.property-title a { color: var(--iep-text); text-decoration: none; }
.property-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.property-title a:hover { color: var(--iep-orange-600); }
.property-name { color: var(--iep-muted); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.property-place { color: var(--iep-muted); font-size: .9rem; display: flex; gap: .35rem; align-items: center; }
.property-facts { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: auto 0 0; padding: .6rem 0 0; list-style: none; border-top: 1px solid var(--iep-line); font-size: .88rem; color: var(--iep-text); }
.property-facts li { display: inline-flex; align-items: center; gap: .35rem; }
.property-facts .bi { color: var(--iep-navy-700); }

/* Lists of links (SEO blocks), chips */
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; background: #fff; border: 1px solid var(--iep-line); color: var(--iep-navy-900); text-decoration: none; font-weight: 600; font-size: .92rem; }
.chip:hover, .chip:focus-visible { border-color: var(--iep-navy-700); color: var(--iep-navy-900); background: var(--iep-sky); }
.chip .count { color: var(--iep-muted); font-weight: 600; font-size: .82rem; }
.link-columns { columns: 2 14rem; column-gap: 2rem; padding: 0; list-style: none; margin: 0; }
.link-columns li { break-inside: avoid; padding: .2rem 0; }
.link-columns a { color: var(--iep-text); text-decoration: none; }
.link-columns a:hover { color: var(--iep-orange-600); text-decoration: underline; }
.region-block { background: #fff; border: 1px solid var(--iep-line); border-radius: var(--iep-radius); padding: 1rem 1.1rem; height: 100%; }
.region-block h3 { font-size: 1.02rem; margin: 0 0 .5rem; }
.region-block h3 a { color: var(--iep-navy-900); text-decoration: none; }
.region-block summary { cursor: pointer; color: var(--iep-navy-700); font-size: .9rem; font-weight: 600; }
.region-block summary::marker { color: var(--iep-orange); }
.region-block ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .9rem; }
.region-block ul a { color: var(--iep-muted); text-decoration: none; }
.region-block ul a:hover { color: var(--iep-orange-600); text-decoration: underline; }

/* Owners band */
.owners-band { background: radial-gradient(1200px 400px at 85% 0%, var(--iep-navy-700), transparent 60%), var(--iep-navy-900); color: #fff; border-radius: var(--iep-radius-lg); padding: clamp(1.75rem, 4vw, 3rem); overflow: hidden; position: relative; }
.owners-band h2 { color: #fff; }
.owners-band p { color: rgba(255, 255, 255, .85); }
.owners-band .steps { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .75rem; }
.owners-band .steps li { display: flex; gap: .75rem; align-items: flex-start; }
.owners-band .step-n { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--iep-orange); color: var(--iep-navy-900); font-weight: 800; }

/* Safety, notices */
.notice-safety { background: var(--iep-orange-050); border: 1px solid #ffd2b5; border-radius: var(--iep-radius-sm); padding: .85rem 1rem; color: #6a3205; }

/* Energy labels (DPE / GES), the legal A–G scales */
.energy-scale { display: grid; gap: 3px; max-width: 320px; }
.energy-scale span { display: flex; align-items: center; height: 24px; padding: 0 .55rem; color: #fff; font-weight: 800; font-size: .82rem; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); opacity: .35; }
.energy-scale span.is-current { opacity: 1; height: 30px; box-shadow: 0 0 0 2px var(--iep-navy-900) inset; }
.dpe-a { background: #009c6d; width: 40%; } .dpe-b { background: #52b153; width: 48%; } .dpe-c { background: #78bd76; width: 56%; } .dpe-d { background: #f4e70f; width: 64%; color: #1b2a37 !important; } .dpe-e { background: #f0b50f; width: 72%; color: #1b2a37 !important; } .dpe-f { background: #eb8235; width: 80%; } .dpe-g { background: #d7221f; width: 88%; }
.ges-a { background: #a4dbf8; width: 40%; color: #1b2a37 !important; } .ges-b { background: #8cb4d3; width: 48%; } .ges-c { background: #7792b1; width: 56%; } .ges-d { background: #606f8f; width: 64%; } .ges-e { background: #4d5271; width: 72%; } .ges-f { background: #393551; width: 80%; } .ges-g { background: #281b35; width: 88%; }

/* Page head, breadcrumb */
.page-head { background: var(--iep-sky); border-bottom: 1px solid var(--iep-line); padding: 1.5rem 0 1.25rem; }
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: .25rem 0 0; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--iep-muted); --bs-breadcrumb-item-active-color: var(--iep-muted); font-size: .88rem; margin: 0; }
.breadcrumb a { color: var(--iep-navy-700); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Static content */
.prose { max-width: 78ch; font-size: 1.02rem; line-height: 1.7; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.card-soft { background: #fff; border: 1px solid var(--iep-line); border-radius: var(--iep-radius); padding: 1.25rem; }

/* Footer */
.site-footer { background: var(--iep-navy-900); color: rgba(255, 255, 255, .78); padding: 3rem 0 1.5rem; margin-top: 0; }
.site-footer h2 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .85rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .2rem 0; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .footer-legal { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2rem; padding-top: 1.25rem; font-size: .88rem; }
.footer-brand img { height: 44px; width: auto; } /* logo-light: the logo's navy in white, its orange kept */

/* Ads: one reserved box, no layout shift */
.ad-slot { min-height: 280px; display: block; margin: 1.5rem auto; text-align: center; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Toggle chips (filters and search as buttons) */
.btn-chip { --bs-btn-padding-y: .42rem; --bs-btn-padding-x: .9rem; --bs-btn-font-size: .9rem; --bs-btn-font-weight: 600; --bs-btn-border-radius: 999px;
    --bs-btn-color: var(--iep-navy-900); --bs-btn-bg: #fff; --bs-btn-border-color: var(--iep-line);
    --bs-btn-hover-color: var(--iep-navy-900); --bs-btn-hover-bg: var(--iep-sky); --bs-btn-hover-border-color: #b7cbe0;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--iep-navy); --bs-btn-active-border-color: var(--iep-navy);
    min-height: 2.4rem; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.btn-check:checked + .btn-chip { color: #fff; background: var(--iep-navy); border-color: var(--iep-navy); }
.btn-check:focus-visible + .btn-chip { outline: 3px solid var(--iep-orange); outline-offset: 2px; box-shadow: none; }
.btn-check:disabled + .btn-chip { opacity: .45; }
@media (pointer: coarse) { .btn-chip { min-height: 2.75rem; } }
.chip-group { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-legend { font-weight: 700; color: var(--iep-navy-900); font-size: .92rem; margin-bottom: .45rem; float: none; width: auto; padding: 0; }

/* Search: drop-down fields with chips */
.search-grid { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 992px) { .search-grid { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.2fr) minmax(0, 1.2fr) auto; align-items: end; } }
.field-button { width: 100%; min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: .5rem; text-align: left; background: #fff; border: 1px solid var(--iep-line); border-radius: var(--iep-radius-sm); padding: .55rem .85rem; color: var(--iep-text); font-weight: 500; }
.field-button:hover, .field-button[aria-expanded="true"] { border-color: var(--iep-navy-700); }
.field-button .value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field-button .value.is-empty { color: var(--iep-muted); }
.field-panel { width: min(92vw, 420px); padding: 1rem !important; }
[data-when][hidden] { display: none !important; }
/* An ad unit that AdSense leaves unfilled takes no space (the reserved height only avoids a shift while it loads). */
.ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
