/* La Casa Immobilier — shared styles (2026-09, matched to client-provided design) */

:root {
  --ink: #12100C;
  --ink-2: #171310;
  --ink-3: #0D0B08;
  --card-alt: #1C1814;
  --card-alt-2: #17130F;
  --gold: #E2B871;
  --text: #F2E7D4;
  --text-75: rgba(242,231,212,0.75);
  --text-72: rgba(242,231,212,0.72);
  --text-7: rgba(242,231,212,0.7);
  --text-45: rgba(242,231,212,0.45);
  --text-4: rgba(242,231,212,0.4);
  --gold-16: rgba(226,184,113,0.16);
  --gold-18: rgba(226,184,113,0.18);
  --gold-2: rgba(226,184,113,0.2);
  --gold-28: rgba(226,184,113,0.28);
  --gold-32: rgba(226,184,113,0.32);
  --gold-35: rgba(226,184,113,0.35);
  --gold-5: rgba(226,184,113,0.5);

  --font-display: 'Bodoni Moda', serif;
  --font-body: 'Archivo', Helvetica, sans-serif;
  --font-body-ar: 'IBM Plex Sans Arabic', sans-serif;
  --font-display-ar: 'Amiri', serif;
  --font-mono: ui-monospace, Menlo, monospace;
}

html { scroll-behavior: smooth; }
html[dir="rtl"] { direction: rtl; }
[data-lang-el] { display: none; }
html[lang="fr"] [data-lang-el="fr"] { display: revert; }
html[lang="ar"] [data-lang-el="ar"] { display: revert; }
html[lang="ar"] body { font-family: var(--font-body-ar); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: var(--font-display-ar); font-style: normal; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 56px); }
.accent { font-style: italic; color: var(--gold); }
html[lang="ar"] .accent { font-style: normal; }

@keyframes lc-marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@keyframes lc-marquee-rtl { from { transform: translate3d(0,0,0); } to { transform: translate3d(50%,0,0); } }
html[dir="rtl"] .marquee-track { animation-name: lc-marquee-rtl; }
@keyframes lc-float { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-14px,0); } }
@keyframes lc-glow { 0%,100% { opacity: .35; } 50% { opacity: .7; } }
[data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1.1s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1,.3,1); }
[data-reveal].lc-in { opacity: 1; transform: none; }
/* Extra block padding gives Bodoni Moda's tall italic ascenders/swash tails (the "f" in
   "confiance" was getting its top sliced off) room inside the overflow:hidden mask box;
   the matching negative margin cancels the padding's effect on surrounding layout spacing
   so headings still sit exactly where they did before. */
[data-reveal-mask] { display: block; overflow: hidden; padding-block: 0.16em; margin-block: -0.16em; }
[data-reveal-mask] > span { display: block; transform: translate3d(0,105%,0); transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
[data-reveal-mask].lc-in > span { transform: none; }
[data-zoom] { display: block; }
[data-zoom] > div:first-child { overflow: hidden; transition: transform 1.4s cubic-bezier(.16,1,.3,1); }
[data-zoom]:hover > div:first-child { transform: scale(1.06); }

/* generic reveal fallback used by the catalogue pages' own dynamically-generated cards */
.reveal { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 700ms cubic-bezier(.16,1,.3,1), transform 700ms cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-mask] > span { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
}

/* ---- header ---- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; backdrop-filter: blur(16px); background: rgba(18,16,12,0.72); border-bottom: 1px solid var(--gold-16); }
.header-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px clamp(16px, 4vw, 56px); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 58px; width: auto; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-size: 13px; letter-spacing: 0.05em; }
.main-nav a:not(.header-cta):not(.lang-btn) { color: var(--text); }
.header-cta { display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 8px; background: var(--gold); color: var(--ink) !important; font-size: 13.5px; font-weight: 500; transition: background .3s ease; }
.header-cta:hover { background: #EAC988; }
.lang-btn { border: 1px solid var(--gold-35); border-radius: 8px; padding: 8px 16px; font-size: 12px; letter-spacing: 0.03em; color: var(--text); background: transparent; cursor: pointer; }
.lang-btn:hover { border-color: var(--gold); color: var(--gold); }
.mobile-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; background: var(--ink-2); border: 1px solid var(--gold-2); border-radius: 8px; cursor: pointer; padding: 0; color: var(--text); font-size: 18px; }
.mobile-nav { display: none; position: fixed; top: 87px; left: 0; right: 0; z-index: 49; max-height: calc(100vh - 87px); overflow-y: auto; flex-direction: column; gap: 2px; padding: 10px clamp(16px, 4vw, 56px) 22px; background: rgba(18,16,12,0.98); backdrop-filter: blur(16px); border-bottom: 1px solid var(--gold-16); }
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { padding: 14px 4px; border-bottom: 1px solid var(--gold-16); font-size: 15px; color: var(--text); }
.mobile-nav-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; }

@media (max-width: 760px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
}

/* ---- floating WhatsApp (mobile only, per reference) ---- */
.wa-float { display: none; position: fixed; left: 16px; bottom: 16px; z-index: 55; width: 52px; height: 52px; border-radius: 999px; background: var(--gold); align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(0,0,0,0.5); }
html[dir="rtl"] .wa-float { left: auto; right: 16px; }
@media (max-width: 760px) { .wa-float { display: flex; } }

/* ---- hero ---- */
.hero-section { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: clamp(110px, 16vh, 170px) clamp(20px, 4vw, 56px) 28px; box-sizing: border-box; overflow: hidden; }
.hero-bg { position: absolute; inset: 4% -2% -18%; z-index: 0; will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-overlay-1 { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(13,11,8,0.92) 0%, rgba(13,11,8,0.78) 42%, rgba(13,11,8,0.34) 72%, rgba(13,11,8,0.6) 100%); }
html[dir="rtl"] .hero-overlay-1 { background: linear-gradient(270deg, rgba(13,11,8,0.92) 0%, rgba(13,11,8,0.78) 42%, rgba(13,11,8,0.34) 72%, rgba(13,11,8,0.6) 100%); }
.hero-overlay-2 { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13,11,8,0.7) 0%, transparent 28%, rgba(13,11,8,0.55) 78%, #12100C 100%); }
.hero-overlay-3 { position: absolute; inset: 0; z-index: 1; background: radial-gradient(70% 60% at 78% 34%, rgba(226,184,113,0.22) 0%, transparent 65%); animation: lc-glow 9s ease-in-out infinite; }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; max-width: 1240px; margin: 0 auto; width: 100%; }
.hero-eyebrow-row { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(20px, 4vh, 40px); }
.hero-eyebrow-line { width: 44px; height: 1px; background: var(--gold); }
.hero-eyebrow { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.hero-title { font-size: clamp(42px, 8.2vw, 130px); line-height: 0.95; letter-spacing: -0.02em; max-width: 15ch; }
.hero-bottom-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(24px, 5vw, 72px); margin-top: clamp(28px, 5vh, 56px); }
.hero-sub { margin: 0; max-width: 46ch; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.7; color: var(--text-7); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- buttons ---- */
.btn-gold { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 8px; background: var(--gold); color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: 0.01em; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, background .3s ease; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--gold-32); background: #EAC988; color: var(--ink); }
.btn-outline { display: inline-flex; align-items: center; padding: 15px 26px; border-radius: 8px; border: 1px solid rgba(242,231,212,0.28); font-size: 14px; font-weight: 500; letter-spacing: 0.01em; color: var(--text); transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s ease; }
.btn-outline:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--text); }

/* ---- marquee ---- */
.marquee-section { border-block: 1px solid var(--gold-18); padding-block: 20px; overflow: hidden; background: var(--ink-2); }
.marquee-track { display: flex; width: max-content; animation: lc-marquee 152s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 34px); white-space: nowrap; font-style: italic; color: var(--gold); }
.marquee-track > span { display: flex; }
.marquee-track > span > span { margin-inline-end: 0.25em; }
html[lang="ar"] .marquee-track span { font-family: var(--font-display-ar); font-style: normal; }
html[lang="ar"] .marquee-track > span > span { margin-inline-end: 0.29em; }

/* ---- services ---- */
.services-section { padding: clamp(80px, 12vh, 160px) clamp(20px, 4vw, 56px); }
.services-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 7vh, 84px); }
.services-head h2 { font-size: clamp(34px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -0.015em; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--gold-2); border: 1px solid var(--gold-2); }
.service-card { background: var(--ink); padding: clamp(24px, 2.6vw, 34px); min-height: 168px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; transition: background .6s ease, color .6s ease; }
.service-card:hover { background: var(--gold); color: var(--ink); }
.service-index { font-family: var(--font-mono); font-size: 12px; opacity: 0.5; }
.service-card h3 { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.25; margin: 0; }

/* ---- annonces preview ---- */
.annonces-preview-section { padding: clamp(60px, 9vh, 120px) clamp(20px, 4vw, 56px); background: var(--ink-2); }
.annonces-preview-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(32px, 5vh, 56px); }
.annonces-preview-head h2 { font-size: clamp(30px, 4.4vw, 62px); line-height: 1.05; }
.annonces-preview-link { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; border-bottom: 1px solid var(--gold-5); padding-bottom: 4px; color: var(--text); }
.annonces-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.annonce-preview-card { display: block; border: 1px solid var(--gold-16); color: var(--text); }
.annonce-preview-card:hover { color: var(--text); }
.annonce-preview-media { position: relative; aspect-ratio: 3 / 4; display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--card-alt) 0 14px, var(--card-alt-2) 14px 28px); overflow: hidden; }
.annonce-preview-media span.annonce-preview-note { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-4); padding-inline: 16px; text-align: center; }
.annonce-preview-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.annonce-preview-badge { position: absolute; top: 12px; inset-inline-start: 12px; }
.annonce-preview-body { padding: 18px; }
.annonce-preview-title { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; margin: 0; }
.annonce-preview-meta { margin: 8px 0 0; font-size: 12.5px; color: var(--text-45); }
.annonce-preview-price { margin: 10px 0 0; font-size: 13px; color: var(--gold); }

/* ---- about ---- */
.about-section { padding: clamp(80px, 12vh, 170px) clamp(20px, 4vw, 56px); }
.about-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-visual { position: relative; }
.about-visual-frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--card-alt); border: 1px solid var(--gold-16); will-change: transform; }
.about-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; filter: sepia(.16) saturate(.92) brightness(.86) contrast(1.05); }
.about-badge-wrap { position: absolute; inset-inline-end: -16px; bottom: -16px; background: var(--ink-2); border: 1px solid var(--gold-2); border-radius: 12px; padding: 14px 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.55); animation: lc-float 7s ease-in-out infinite; }
.about-badge { display: block; width: clamp(130px, 15vw, 190px); height: auto; }
.about-eyebrow { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.about-copy h2 { font-size: clamp(36px, 5.2vw, 74px); line-height: 1.05; margin: 0 0 28px; }
.about-copy p { margin: 0; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.85; color: var(--text-75); max-width: 50ch; }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 32px; }
.about-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 15px; padding-block: 4px; border-bottom: 1px solid var(--gold-2); transition: color .3s ease, border-color .3s ease; }
.about-link:hover { color: var(--gold); border-color: var(--gold); }
.about-link-arrow { transition: transform .3s ease; }
.about-link:hover .about-link-arrow { transform: translateX(4px); }
html[dir="rtl"] .about-link-arrow { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .about-link:hover .about-link-arrow { transform: scaleX(-1) translateX(4px); }

/* ---- office gallery ("Nos bureaux") ---- */
.office-gallery { max-width: 1240px; margin: clamp(80px, 10vh, 130px) auto 0; }
.office-gallery-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; border-top: 1px solid var(--gold-16); padding-top: 36px; margin-bottom: 32px; }
.office-gallery-head h3 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.1; margin: 0; }
.office-gallery-note { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--text-45); text-transform: uppercase; }
.office-gallery-note-mobile { display: none; }
.office-gallery-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.office-photo { position: relative; display: block; overflow: hidden; background: var(--card-alt); }
.office-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: sepia(.16) saturate(.92) brightness(.86) contrast(1.05); }
.office-photo-zoom img { transform: scale(1.7); transform-origin: 70% 20%; }
.office-photo-tag { position: absolute; left: 16px; bottom: 14px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--text); background: rgba(13,11,8,0.8); padding: 6px 10px; }
html[dir="rtl"] .office-photo-tag { left: auto; right: 16px; }
.office-photo-large { flex: 1.4 1 440px; min-height: 460px; position: relative; }
.office-gallery-side { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; min-height: 460px; }
.office-gallery-side .office-photo:first-child { flex: 1 1 0; min-height: 220px; position: relative; }
.office-gallery-small { flex: 1 1 0; min-height: 220px; display: flex; gap: 16px; }
.office-gallery-small .office-photo { flex: 1 1 0; position: relative; }
@media (max-width: 640px) {
  .hero-bg img { object-position: 40% 50%; }
  .office-photo-large { min-height: 320px; }
  .office-gallery-side { min-height: 0; }
  .office-gallery-side .office-photo:first-child { flex: none; min-height: 220px; }
  .office-gallery-small { flex-direction: column; flex: none; min-height: 0; }
  .office-gallery-small .office-photo { flex: none; min-height: 220px; }
  .office-photo-facade { order: -1; }
  .office-photo-desktop-only { display: none; }
  .office-gallery-note-desktop { display: none; }
  .office-gallery-note-mobile { display: block; }
}

/* ---- contact ---- */
.contact-section { position: relative; padding: clamp(80px, 14vh, 180px) clamp(20px, 4vw, 56px); background: var(--ink-3); overflow: hidden; border-top: 1px solid var(--gold-18); }
.contact-glow { position: absolute; inset: -20% -10%; background: radial-gradient(55% 55% at 32% 30%, rgba(226,184,113,0.22) 0%, transparent 70%); will-change: transform; }
.contact-inner { position: relative; max-width: 1240px; margin: 0 auto; }
.contact-eyebrow { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.contact-title { font-size: clamp(38px, 7vw, 108px); line-height: 0.98; letter-spacing: -0.02em; margin: 0 0 28px; }
.contact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(28px, 5vw, 72px); align-items: end; }
.contact-desc { margin: 0; font-size: clamp(15px, 1.1vw, 18px); line-height: 1.7; color: var(--text-72); max-width: 46ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-map-wrap { margin-top: clamp(40px, 7vh, 80px); }
.map-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.map-tab { cursor: pointer; background: var(--ink-2); color: var(--text-72); border: 1px solid var(--gold-2); border-radius: 8px; padding: 10px 18px; font-size: 13px; font-weight: 500; letter-spacing: 0.01em; transition: border-color .3s ease, background .3s ease, color .3s ease; }
.map-tab:hover { border-color: var(--gold); color: var(--text); }
.map-tab.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.contact-map { border: 1px solid var(--gold-18); border-radius: 12px; aspect-ratio: 16 / 9; min-height: 320px; overflow: hidden; position: relative; }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(1.3) brightness(.9) contrast(.95); }
@media (max-width: 640px) { .contact-map { aspect-ratio: 4 / 5; } }
.contact-map-address { margin: 12px 0 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; color: var(--text-4); }

/* ---- footer ---- */
.site-footer { padding: clamp(40px, 6vh, 72px) clamp(20px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; border-top: 1px solid var(--gold-16); background: var(--ink-3); }
.footer-brand-row { display: flex; align-items: center; gap: 14px; }
.footer-brand-row img { height: 52px; width: auto; object-fit: contain; }
.footer-links { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.footer-links .social-icon { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--gold-2); display: inline-flex; align-items: center; justify-content: center; color: var(--gold); transition: border-color .3s ease, background .3s ease; }
.footer-links .social-icon:hover { border-color: var(--gold); background: var(--gold-16); }
.footer-links .footer-top-link { margin-inline-start: 8px; }

/* ---- catalogue pages (annonces.html / annonce.html) ---- */
.btn-dark { display: inline-flex; align-items: center; padding: 15px 26px; border-radius: 8px; background: var(--ink-3); color: var(--text); border: 1px solid var(--gold-2); font-size: 14px; font-weight: 500; letter-spacing: 0.01em; transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s ease; }
.btn-dark:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--text); }
.h2 { font-family: var(--font-display); font-weight: 400; }

.page-main { padding-block: clamp(110px, 16vh, 170px) 96px; }
.page-title { max-width: 760px; font-size: clamp(2rem, 4vw, 3rem); }
.page-sub { margin-top: 16px; max-width: 540px; color: var(--text-7); }

.filters-bar { margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px; border-block: 1px solid var(--gold-18); padding-block: 16px; align-items: center; }
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-sep { width: 1px; align-self: stretch; background: var(--gold-18); margin-inline: 4px; }
.filter-pill { cursor: pointer; background: var(--ink-2); color: var(--text); border: 1px solid var(--gold-2); border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 400; font-family: var(--font-body); }
.filter-pill:hover { border-color: var(--gold); }
.filter-pill.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.filters-mobile { display: none; }
.filter-select { width: 100%; cursor: pointer; background: var(--ink-2); color: var(--text); border: 1px solid var(--gold-2); border-radius: 8px; padding: 12px 14px; font-size: 14px; font-family: var(--font-body); }
.result-count { margin: 22px 0 0; font-size: 13px; color: var(--text-4); }
.not-found-box { margin-top: 56px; background: var(--ink-2); border: 1px solid var(--gold-16); border-radius: 6px; padding: 56px 32px; text-align: center; }

.listings-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--gold-2); border: 1px solid var(--gold-2); }
.listing-card { display: block; background: var(--ink); color: var(--text); transition: background .5s ease; }
.listing-card:hover { color: var(--text); }
.listing-media { position: relative; aspect-ratio: 3/4; background: repeating-linear-gradient(135deg, var(--card-alt) 0 14px, var(--card-alt-2) 14px 28px); }
.listing-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-media-note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-4); text-align: center; padding: 0 16px; }
.listing-badge { position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(13,11,8,.8); color: var(--text); border: 1px solid var(--gold-2); padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 500; }
.listing-badge.vente { background: rgba(226,184,113,.2); color: var(--gold); border-color: var(--gold-32); }
.listing-body { padding: 22px; }
.listing-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; line-height: 1.3; }
.listing-meta { margin: 9px 0 0; font-size: 13.5px; color: var(--text-45); }
.listing-price { margin: 14px 0 0; font-size: 13.5px; font-weight: 500; color: var(--gold); }
.listing-actions { margin-top: 16px; display: flex; align-items: center; gap: 14px; }
.listing-wa { flex: 1; text-align: center; background: var(--ink-3); color: var(--text); font-size: 13.5px; font-weight: 500; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--gold-18); }
.listing-wa:hover { border-color: var(--gold); color: var(--gold); }
.listing-more { font-size: 13px; font-weight: 500; color: var(--text-45); white-space: nowrap; }
.listing-more:hover { color: var(--gold); }
.photo-prev, .photo-next { border: none; padding: 0; cursor: pointer; background: none; color: transparent; }

/* ---- annonce detail page ---- */
.detail-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: clamp(28px,5vw,56px); align-items: start; }
.detail-gallery { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--ink-2); border: 1px solid var(--gold-16); }
.detail-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-gallery-counter { position: absolute; bottom: 14px; inset-inline-end: 14px; background: rgba(13,11,8,.8); color: var(--text); font-size: 11.5px; padding: 5px 12px; border-radius: 999px; }
.detail-gallery-nav { position: absolute; inset-block: 0; width: 56px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; border: none; background: none; cursor: pointer; }
.detail-gallery-nav.prev { inset-inline-start: 0; background: linear-gradient(to right, rgba(0,0,0,.35), transparent); }
.detail-gallery-nav.next { inset-inline-end: 0; background: linear-gradient(to left, rgba(0,0,0,.35), transparent); }
.detail-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.detail-thumb { width: 64px; height: 48px; overflow: hidden; border: 1px solid var(--gold-16); cursor: pointer; opacity: .6; }
.detail-thumb.active { opacity: 1; border-color: var(--gold); }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-breadcrumb { font-size: 12.5px; color: var(--text-4); margin-bottom: 18px; }
.detail-breadcrumb a:hover { color: var(--gold); }
.detail-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.detail-meta { margin-top: 10px; color: var(--text-45); font-size: 0.95rem; }
.detail-price { margin-top: 18px; font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); }
.detail-cta-box { margin-top: 28px; border: 1px solid var(--gold-16); padding: 24px; background: var(--ink-2); }
.detail-cta-box .btn-gold, .detail-cta-box .btn-dark { width: 100%; justify-content: center; margin-top: 12px; display: flex; }
.detail-cta-box .btn-gold:first-child { margin-top: 0; }
.detail-desc { margin-top: 32px; color: var(--text-75); white-space: pre-line; }
.detail-facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 16px; margin-top: 28px; }
.detail-fact { border: 1px solid var(--gold-16); padding: 16px; }
.detail-fact-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-4); }
.detail-fact-value { margin-top: 8px; font-size: 1rem; }

@media (max-width: 900px) {
  .filters-bar { display: none; }
  .filters-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
}
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
