/*
 * Habipredilecta – site public.
 * CSS autonome (pas de build npm), même couleur de marque que le backoffice.
 */
:root {
  --brand: #5e2b5a;
  --brand-600: #4c2249;
  --brand-50: #f6eff5;
  --ink: #1d1720;
  --text: #3d3640;
  --muted: #736b76;
  --line: #e7e2e8;
  --bg: #ffffff;
  --bg-soft: #faf7f9;
  --dark: #170d16;
  --success: #0f8a5f;
  --danger: #c0392b;
  --venda: #5e2b5a;
  --arrend: #0f6f8a;
  --opp: #b4540a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(23, 13, 22, .06), 0 8px 24px rgba(23, 13, 22, .06);
  --shadow-lg: 0 18px 50px rgba(23, 13, 22, .16);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); font-weight: 750; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }
.muted { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: .6em; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.print-only { display: none; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--font); cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-50); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.link-arrow { font-weight: 600; white-space: nowrap; }
.link-arrow::after { content: ' →'; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--brand-50); color: var(--brand); text-decoration: none; }
.icon-btn .badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none !important; }
.brand-mark { width: 36px; height: 36px; stroke: none; }
.brand-name { font-weight: 750; font-size: 1.2rem; letter-spacing: -.02em; color: var(--ink); }
.brand-light .brand-name { color: #fff; }
.brand-light { color: #fff; }
.brand-light .brand-mark path { fill: var(--dark); }
.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav > a { padding: 8px 14px; border-radius: 999px; color: var(--ink); font-weight: 550; font-size: .95rem; }
.main-nav > a:hover { background: var(--brand-50); color: var(--brand); text-decoration: none; }
.main-nav > a.is-active { color: var(--brand); background: var(--brand-50); }
.nav-mobile-extra { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { padding: 4px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; color: var(--muted); }
.lang a:hover { color: var(--brand); text-decoration: none; }
.lang a.is-active { background: var(--brand); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-grid; }
  .header-call { display: none; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 20px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .18s ease; }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav > a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav > a.is-active { background: none; }
  .nav-mobile-extra { display: block; padding: 14px 8px 0; font-weight: 600; }
}
@media (max-width: 420px) { .lang a { padding: 4px 7px; } .brand-name { font-size: 1.05rem; } .header-inner { gap: 8px; } }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--dark); isolation: isolate; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--hero-img, none) center/cover no-repeat; transform: scale(1.03); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(23,13,22,.92) 0%, rgba(23,13,22,.72) 45%, rgba(94,43,90,.45) 100%); }
.hero-inner { padding: 72px 16px 56px; }
@media (min-width: 768px) { .hero-inner { padding: 112px 28px 84px; } }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .eyebrow { color: #e9c9e5; }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 54ch; margin-bottom: 28px; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 0; margin: 24px 0 0; color: rgba(255,255,255,.8); }
.hero-stats strong { color: #fff; font-size: 1.25rem; margin-right: 4px; }

/* ---------- Recherche ---------- */
.search { background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.search-hero { padding: 8px 20px 20px; max-width: 1040px; }
.search-tabs { display: flex; gap: 4px; padding: 10px 0 14px; }
.search-tabs input, .segmented input { position: absolute; opacity: 0; pointer-events: none; }
.search-tabs span, .segmented span { display: inline-block; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer; border: 1.5px solid transparent; }
.search-tabs input:checked + span, .segmented input:checked + span { background: var(--brand-50); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.search-tabs input:focus-visible + span, .segmented input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); }
.search-fields { display: grid; gap: 12px; }
.search-hero .search-fields { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; border: 0; padding: 0; }
.field label, .field legend { font-size: .8rem; font-weight: 650; color: var(--ink); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: 400 1rem var(--font); color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23736b76' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.field select:disabled { background-color: var(--bg-soft); color: var(--muted); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; margin: 2px 0 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.search-hero .split { grid-template-columns: 1fr; }
.field-submit .btn { min-height: 46px; border-radius: var(--radius-sm); }
.link-reset { display: block; text-align: center; margin-top: 10px; font-size: .9rem; }
.field-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.req { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 32px 0 64px; }
.section-tint { background: var(--bg-soft); }
.section-dark { background: var(--dark); color: rgba(255,255,255,.8); }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #e9c9e5; }
.section-dark .lead { color: rgba(255,255,255,.75); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head.center { justify-content: center; text-align: center; }
.split-2 { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split-2 { grid-template-columns: 1.1fr 1fr; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%23e9c9e5' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat; }
.checklist-dark li::before { background-color: var(--brand-50); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%235e2b5a' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* ---------- Cartes de biens ---------- */
.grid-cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-imovel { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card-imovel:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-imovel:hover .card-media img { transform: scale(1.04); }
.card-nofoto { display: grid; place-items: center; height: 100%; font-size: 2.4rem; opacity: .35; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--venda); }
.tag-arrend { background: var(--arrend); }
.tag-opp { background: var(--opp); }
.card-media .tag { position: absolute; left: 12px; top: 12px; }
.card-media .tag-opp { top: 42px; }
.fav-btn { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: transform .15s; }
.fav-btn:hover { transform: scale(1.08); color: var(--brand); }
[data-fav][aria-pressed="true"] svg { fill: #d6336c; stroke: #d6336c; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-price { font-size: 1.3rem; font-weight: 750; color: var(--ink); letter-spacing: -.01em; }
.card-title { margin: 0; font-size: 1rem; }
.card-title a { color: var(--ink); }
.card-title a::after { content: ''; position: absolute; inset: 0; } /* carte entièrement cliquable */
.fav-btn { z-index: 2; }
.card-local { margin: 0; color: var(--muted); font-size: .92rem; }
.card-specs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 0 0; margin: auto 0 0; border-top: 1px solid var(--line); font-size: .86rem; font-weight: 550; }
.card-specs li { margin-top: 8px; }

/* ---------- Liste / recherche ---------- */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 28px 0 24px; }
.page-head h1 { margin-bottom: .3em; }
.page-head .lead { margin: 0; }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: .88rem; font-weight: 600; }
.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.listing { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 64px; }
@media (min-width: 1024px) {
  .listing { grid-template-columns: 290px 1fr; align-items: start; }
  .listing-filters { position: sticky; top: calc(var(--header-h) + 16px); }
  .filters-toggle { display: none; }
}
@media (max-width: 1023px) {
  .filters-panel { display: none; margin-top: 12px; }
  .filters-panel.is-open { display: block; }
}
.search-lateral { padding: 6px 18px 20px; box-shadow: none; border: 1px solid var(--line); }
.search-lateral .search-tabs { flex-wrap: wrap; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.results-bar p { margin: 0; }
.sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.sort select { min-height: 40px; padding: 6px 34px 6px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23736b76' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center no-repeat; appearance: none; }
@media (min-width: 1200px) { .grid-cards-3 { grid-template-columns: repeat(3, 1fr); } }
.empty { text-align: center; padding: 56px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.empty-icon { font-size: 2.6rem; margin: 0; }
.empty p { color: var(--muted); max-width: 52ch; margin-left: auto; margin-right: auto; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.pagination { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 36px; }
.pagination .summary { color: var(--muted); font-size: .88rem; }
.pagination .pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .pages > * { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; }
.pagination .pages a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination .current { background: var(--brand); border-color: var(--brand) !important; color: #fff !important; }
.pagination .disabled { opacity: .4; }

/* ---------- Fiche ---------- */
.detail { padding-top: 22px; padding-bottom: 40px; }
.detail-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.detail-head h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin: 8px 0 4px; }
.detail-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detail-tags .ref { font-size: .85rem; font-weight: 600; color: var(--muted); }
.detail-local { color: var(--muted); margin: 0; }
.detail-price { text-align: right; }
.detail-price strong { display: block; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); color: var(--brand); letter-spacing: -.02em; }
.detail-price span { color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .detail-price { text-align: left; } }

.gallery { display: grid; gap: 8px; border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .gallery { grid-template-columns: 2fr 1fr; max-height: 540px; } }
.gallery button { padding: 0; border: 0; cursor: zoom-in; background: var(--bg-soft); position: relative; overflow: hidden; display: block; width: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery-main { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .gallery-main { aspect-ratio: auto; height: 540px; } }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-thumbs button { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .gallery-thumbs { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; height: 540px; } .gallery-thumbs button { aspect-ratio: auto; } }
.gallery .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(23,13,22,.55); color: #fff; font-size: 1.4rem; font-weight: 700; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.detail-grid { display: grid; gap: 32px; margin-top: 16px; }
@media (min-width: 1024px) {
  .detail-grid { grid-template-columns: 1fr 380px; align-items: start; }
  .detail-side { position: sticky; top: calc(var(--header-h) + 16px); }
}
.detail-section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.detail-section:last-of-type { border-bottom: 0; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 24px; margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 650; color: var(--ink); text-align: right; }
.prose { max-width: 72ch; }
.note { font-size: .88rem; color: var(--muted); background: var(--bg-soft); border-radius: 8px; padding: 8px 12px; display: inline-block; }

.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.25rem; }
.form { display: grid; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.check.has-error span { color: var(--danger); }
.contact-direct { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; }
.contact-direct span { font-weight: 400; color: var(--muted); font-size: .9rem; }
.alert { border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; font-size: .95rem; }
.alert-success { background: #e7f6ef; color: #0b5e41; border: 1px solid #b9e4d1; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,6,10,.94); display: grid; place-items: center; padding: 56px 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); margin: 0; font-size: .9rem; }

/* ---------- Pages ---------- */
.contact-layout { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 64px; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.contact-info { display: grid; gap: 22px; }
.info-block h2 { font-size: 1.05rem; margin-bottom: .4em; }
.info-block p, .info-block address { margin: 0 0 4px; font-style: normal; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours dd { margin: 0; font-weight: 600; color: var(--ink); }
.map { width: 100%; height: 260px; border: 0; border-radius: var(--radius); background: var(--bg-soft); }
.segmented { display: flex; gap: 6px; }
.prose-page { max-width: 820px; padding-top: 32px; padding-bottom: 64px; }
.prose-page h2 { margin-top: 1.6em; font-size: 1.3rem; }
.cta-box { margin-top: 40px; padding: 28px; border-radius: var(--radius); background: var(--brand-50); }
.cta-box h2 { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 650; color: var(--ink); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 56px 0 0; font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer address { font-style: normal; line-height: 1.9; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-bottom: 40px; }
.footer-lead { margin-top: 14px; max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.site-footer .muted { color: rgba(255,255,255,.5); }

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

/* ---------- Impression des annonces (REQUIREMENTS : "Print dos anúncios") ---------- */
@media print {
  @page { margin: 14mm; }
  body { font-size: 11pt; color: #000; }
  .site-header, .site-footer, .no-print, .lightbox, .skip-link { display: none !important; }
  .print-only { display: block; }
  .container { max-width: none; padding: 0; }
  .detail-grid { display: block; }
  .gallery { display: block; max-height: none; }
  .gallery-main { height: auto; aspect-ratio: 4 / 3; max-height: 110mm; }
  .detail-price strong { color: #000; }
  .tag { border: 1px solid #000; color: #000 !important; background: none !important; }
  .detail-section { padding: 10pt 0; break-inside: avoid; }
  .specs { grid-template-columns: 1fr 1fr; }
  .print-agency { margin-top: 14pt; padding-top: 8pt; border-top: 1px solid #000; font-size: 9.5pt; }
  a { color: #000; }
}
