/* ============================================
   Apimo Front — fiches biens & cartes
   Palette site : noir #1A1A1A · doré #C9A961 / #D4AF37 · texte #333 · bg #F4F6F6
   ============================================ */

.bien-single { background: #fff; color: #333; font-family: 'Space Grotesk', sans-serif; }
.bien-single h1, .bien-single h2, .bien-single h3, .bien-single h4,
.bien-single button, .bien-single input, .bien-single textarea { font-family: 'Space Grotesk', sans-serif; }
.bien-card, .bien-card * { font-family: 'Space Grotesk', sans-serif; }
.bien-container { max-width: 1250px; margin: 0 auto; padding: 24px 20px 64px; }

/* ── Fil d'ariane ── */
.bien-breadcrumb { font-size: 13px; color: #777; margin: 4px 0 18px; }
.bien-breadcrumb a { color: #777; text-decoration: none; }
.bien-breadcrumb a:hover { color: #AD7630; }
.bien-breadcrumb span { margin: 0 6px; }
.bien-breadcrumb [aria-current] { color: #1A1A1A; font-weight: 600; }

/* ── Galerie ── */
.bien-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-bottom: 28px; }
.bien-gallery--solo { grid-template-columns: 1fr; }
.bien-gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; }
.bien-gallery__main { position: relative; display: block; }
.bien-gallery__main img { width: 100%; height: 460px; object-fit: cover; display: block; }
.bien-gallery__thumbs { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; }
.bien-gallery__thumb { position: relative; display: block; overflow: hidden; }
.bien-gallery__thumb img { width: 100%; height: 100%; min-height: 100px; object-fit: cover; display: block; }
.bien-gallery__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(26,26,26,.65); color: #fff; font-weight: 600; font-size: 15px; }

/* ── Layout 2 colonnes ── */
.bien-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }

/* ── En-tête bien ── */
.bien-header__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.bien-badge { display: inline-block; background: #1A1A1A; color: #fff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; }
.bien-badge--cat { background: #C9A961; color: #1A1A1A; }
.bien-badge--sold { background: #AD7630; color: #fff; }
.bien-single h1.bien-title { font-size: 30px; line-height: 1.25; margin: 0 0 8px; color: #1A1A1A; text-transform: none; }
.bien-location { color: #666; margin: 0 0 14px; }
.bien-ref { margin-left: 12px; font-size: 12px; color: #999; }
.bien-price { font-size: 28px; font-weight: 700; color: #1A1A1A; margin: 0 0 6px; }
.bien-price__fees { display: block; font-size: 13px; font-weight: 400; color: #888; margin-top: 4px; }

/* ── Chiffres clés ── */
.bien-facts { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 22px 0 8px; padding: 0; }
.bien-facts li { background: #F4F6F6; border: 1px solid #E0E6E5; padding: 12px 20px; text-align: center; min-width: 96px; }
.bien-facts strong { display: block; font-size: 20px; color: #1A1A1A; }
.bien-facts span { font-size: 12px; color: #777; text-transform: uppercase; letter-spacing: .05em; }

/* ── Sections ── */
.bien-section { margin-top: 36px; }
.bien-section h2 { font-size: 22px; color: #1A1A1A; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid #C9A961; display: inline-block; }
.bien-description { line-height: 1.75; white-space: normal; }
.bien-description p { margin: 0 0 14px; }

/* ── Sommaire « L'essentiel » ── */
.bien-sommaire { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.bien-sommaire__row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #E0E6E5; font-size: 14px; }
.bien-sommaire__row span { color: #777; }
.bien-sommaire__row strong { color: #1A1A1A; text-align: right; }
@media (max-width: 640px) { .bien-sommaire { grid-template-columns: 1fr; } }

/* ── Informations réglementaires ── */
.bien-legal ul { list-style: none; margin: 0; padding: 0; }
.bien-legal li { font-size: 12.5px; color: #888; padding: 4px 0; }

/* ── Tags ── */
.bien-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bien-tag { background: #F4F6F6; border: 1px solid #E0E6E5; color: #444; font-size: 13px; padding: 6px 14px; border-radius: 30px; }

/* ── DPE / GES ── */
.bien-dpe-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.bien-dpe { position: relative; }
.bien-dpe h4 { font-size: 14px; margin: 0 0 10px; color: #444; }
.bien-dpe__ladder { display: flex; flex-direction: column; gap: 4px; }
.bien-dpe__row { display: flex; align-items: center; gap: 10px; }
.bien-dpe__arrow {
	display: flex; align-items: center; font-size: 13px; font-weight: 700;
	padding: 5px 20px 5px 12px; min-width: 44px; box-sizing: border-box;
	clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
	transition: transform .15s;
}
.bien-dpe__arrow--a { width: 34%; } .bien-dpe__arrow--b { width: 43%; }
.bien-dpe__arrow--c { width: 52%; } .bien-dpe__arrow--d { width: 61%; }
.bien-dpe__arrow--e { width: 70%; } .bien-dpe__arrow--f { width: 79%; }
.bien-dpe__arrow--g { width: 88%; }
.bien-dpe__row.is-active .bien-dpe__arrow {
	transform: scaleY(1.35); transform-origin: left center;
	font-size: 15px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
.bien-dpe__row.is-active { margin: 4px 0; }
.bien-dpe__value { font-size: 12px; font-weight: 700; color: #1A1A1A; white-space: nowrap; background: #F4F6F6; border: 1px solid #E0E6E5; padding: 3px 8px; border-radius: 4px; }
.bien-dpe--na .bien-dpe__ladder { filter: grayscale(1); opacity: .3; }
.bien-dpe__overlay {
	position: absolute; top: 55%; left: 44%;
	transform: translate(-50%, -50%) rotate(-14deg);
	font-size: 19px; font-weight: 700; color: #555; white-space: nowrap;
}
.bien-dpe__date { font-size: 12px; color: #999; margin-top: 10px; }

/* ── Carte de localisation ── */
.bien-map iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(.25); }
.bien-map__note { font-size: 12.5px; color: #888; margin: 8px 0 0; }

/* ── Colonne contact ── */
.bien-aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.bien-soldbox { background: #1A1A1A; color: #fff; padding: 18px 20px; }
.bien-soldbox strong { color: #C9A961; display: block; margin-bottom: 6px; }
.bien-soldbox p { margin: 0; font-size: 14px; color: #ddd; }

.bien-nego { display: flex; align-items: center; gap: 14px; background: #F4F6F6; border: 1px solid #E0E6E5; padding: 16px; }
.bien-nego__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.bien-nego__label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #999; }
.bien-nego__id strong { display: block; color: #1A1A1A; margin: 2px 0; }
.bien-nego__phone { color: #AD7630; font-weight: 600; text-decoration: none; }

.bien-form { background: #fff; border: 1px solid #E0E6E5; padding: 22px; box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.bien-form h3 { margin: 0 0 14px; font-size: 19px; color: #1A1A1A; }
.bien-form label { display: block; font-size: 13px; color: #555; margin-bottom: 12px; }
.bien-form input[type="text"], .bien-form input[type="email"], .bien-form input[type="tel"], .bien-form textarea {
	width: 100%; margin-top: 4px; padding: 10px 16px; border: 1px solid #E0E6E5; border-radius: 30px;
	font: inherit; font-size: 14px; color: #333; background: #fff; box-sizing: border-box;
}
.bien-form textarea { border-radius: 16px; resize: vertical; }
.bien-form input:focus, .bien-form textarea:focus { outline: none; border-color: #C9A961; }
.bien-form__submit {
	width: 100%; background: #1A1A1A; color: #fff; border: 0; padding: 13px 20px; font-size: 14px;
	letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .2s;
}
.bien-form__submit:hover { background: #C9A961; color: #1A1A1A; }
.bien-form__rgpd { font-size: 11px; color: #999; margin: 10px 0 0; }
.bien-form__hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.bien-form__msg { padding: 12px 14px; font-size: 14px; margin-bottom: 12px; }
.bien-form__msg--ok { background: #eef8ee; border: 1px solid #9fd29f; color: #226622; }
.bien-form__msg--err { background: #fdeeee; border: 1px solid #e3a5a5; color: #8f2323; }

/* ── FluentForm dans la fiche bien ── */
.bien-form .ff-el-form-control:not([type="checkbox"]):not([type="radio"]) {
	border: 1px solid #E0E6E5; border-radius: 30px; padding: 10px 16px;
	font-family: 'Space Grotesk', sans-serif; font-size: 14px; color: #333; background: #fff;
}
.bien-form input[type="checkbox"] {
	appearance: auto; -webkit-appearance: checkbox; width: 16px; height: 16px;
	min-width: 16px; padding: 0; margin: 2px 8px 0 0; border-radius: 3px; flex: none;
}
.bien-form .ff-el-form-check { display: flex; align-items: flex-start; }
.bien-form .ff-el-form-check-label { text-transform: none; line-height: 1.45; }
.bien-form textarea.ff-el-form-control { border-radius: 16px; min-height: 96px; }
.bien-form .ff-el-form-control:focus { border-color: #C9A961; box-shadow: none; outline: none; }
.bien-form .ff-el-input--label label { font-size: 13px; color: #555; font-weight: 400; }
.bien-form .ff-el-group { margin-bottom: 14px; }
.bien-form .ff-btn-submit {
	width: 100%; background: #1A1A1A !important; color: #fff !important; border: 0 !important;
	border-radius: 0 !important; padding: 13px 20px; font-size: 14px; letter-spacing: .06em;
	text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s;
	font-family: 'Space Grotesk', sans-serif;
}
.bien-form .ff-btn-submit:hover { background: #C9A961 !important; color: #1A1A1A !important; }
.bien-form .ff-el-form-check-label { font-size: 12px; color: #777; }
.bien-form .ff-message-success { background: #eef8ee; border: 1px solid #9fd29f; color: #226622; padding: 12px 14px; font-size: 14px; }

/* ── Cartes biens (similaires + grilles) ── */
.bien-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bien-card { display: block; text-decoration: none !important; color: inherit; background: #fff; border: 1px solid #E0E6E5; transition: box-shadow .2s, transform .2s; }
.bien-card span, .bien-card:hover, .bien-card:focus { text-decoration: none !important; border-bottom: 0 !important; }
.bien-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.1); transform: translateY(-3px); }
.bien-card__media { position: relative; display: block; }
.bien-card__media img { width: 100%; height: 210px; object-fit: cover; display: block; }
.bien-card__type { position: absolute; top: 12px; left: 12px; background: #1A1A1A; color: #fff; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; }
.bien-card__sold { position: absolute; top: 12px; right: 12px; background: #AD7630; color: #fff; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; }
.bien-card__body { display: block; padding: 16px 18px 18px; }
.bien-card__city { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #AD7630; margin-bottom: 4px; }
.bien-card__title { display: block; font-weight: 600; color: #1A1A1A; line-height: 1.35; margin-bottom: 6px; min-height: 2.7em; }
.bien-card__facts { display: block; font-size: 13px; color: #777; margin-bottom: 8px; }
.bien-card__price { display: block; font-size: 18px; font-weight: 700; color: #1A1A1A; }

/* ── Lightbox ── */
.bien-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(10,10,10,.94); display: flex; align-items: center; justify-content: center; }
.bien-lightbox[hidden] { display: none; }
.bien-lightbox img { max-width: 88vw; max-height: 86vh; object-fit: contain; }
.bien-lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; padding: 12px 18px; opacity: .8; }
.bien-lightbox button:hover { opacity: 1; color: #C9A961; }
.bien-lightbox__close { top: 12px; right: 16px; }
.bien-lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 52px; }
.bien-lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 52px; }
.bien-lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #ccc; font-size: 13px; }

/* ── Listing dynamique : recherche, toolbar, pagination, états vides ── */
.immo-listing { font-family: 'Space Grotesk', sans-serif; }
.immo-listing.is-loading .immo-results { opacity: .35; pointer-events: none; transition: opacity .2s; }
.immo-search { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; background: #1A1A1A; padding: 18px 22px; border-radius: 60px; margin-bottom: 26px; }
.immo-search__field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 150px; }
.immo-search__field label { color: #C9A961; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.immo-search__field select { background: transparent; border: 0; border-bottom: 1px solid #444; color: #fff; font: inherit; font-size: 14px; padding: 6px 2px; }
.immo-search__field select:focus { outline: none; border-color: #C9A961; }
.immo-search__field select option { color: #1A1A1A; }
.immo-search__btn { background: #C9A961; color: #1A1A1A; border: 0; padding: 12px 28px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; font-size: 13px; cursor: pointer; border-radius: 40px; transition: background .2s; font-family: inherit; }
.immo-search__btn:hover { background: #D4AF37; }
.immo-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.immo-toolbar__count { margin: 0; color: #666; font-size: 15px; }
.immo-toolbar__count strong { color: #1A1A1A; font-size: 18px; }
.immo-toolbar__sort select { border: 1px solid #E0E6E5; border-radius: 30px; padding: 8px 14px; font: inherit; font-size: 13px; color: #444; background: #fff; }
.immo-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.immo-pagination a, .immo-pagination .is-current { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #E0E6E5; color: #444; text-decoration: none; font-size: 14px; }
.immo-pagination a:hover { border-color: #C9A961; color: #AD7630; }
.immo-pagination .is-current { background: #1A1A1A; color: #fff; border-color: #1A1A1A; }

/* État vide catégorie */
.immo-empty { background: #1A1A1A; color: #fff; text-align: center; padding: 64px 32px; font-family: 'Space Grotesk', sans-serif; }
.immo-empty__ornament { color: #C9A961; font-size: 26px; display: block; margin-bottom: 14px; }
.immo-empty h3.immo-empty__title, .immo-empty__title { color: #fff !important; font-size: 26px; margin: 0 0 12px; text-transform: none; }
.immo-empty__text { color: #bbb; max-width: 560px; margin: 0 auto 24px; line-height: 1.7; font-size: 15px; }
.immo-empty__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.immo-empty__btn { background: #C9A961; color: #1A1A1A; padding: 13px 28px; text-decoration: none !important; font-weight: 600; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; transition: background .2s; }
.immo-empty__btn:hover { background: #D4AF37; color: #1A1A1A; }
.immo-empty__btn--ghost { background: transparent; color: #fff; border: 1px solid #555; }
.immo-empty__btn--ghost:hover { border-color: #C9A961; color: #C9A961; background: transparent; }
.immo-empty__hint { color: #777; font-size: 12px; margin: 18px 0 0; }

/* Variante fond sombre (pages Vente/Location — sections noires) */
.immo-listing--dark .immo-search { background: #141413; border: 1px solid rgba(255,255,255,.08); }
.immo-listing--dark .immo-search__field label { color: #e0b64f; }
.immo-listing--dark .immo-search__btn { background: #e0b64f; color: #0a0a0a; border-radius: 100px; }
.immo-listing--dark .immo-search__btn:hover { background: #D4AF37; }
.immo-listing--dark .immo-toolbar__count { color: #8a887f; }
.immo-listing--dark .immo-toolbar__count strong { color: #fff; }
.immo-listing--dark .immo-toolbar__sort select { background: #141413; color: #cdcbc3; border-color: rgba(255,255,255,.1); }
.immo-listing--dark .immo-pagination a { border-color: rgba(255,255,255,.15); color: #cdcbc3; }
.immo-listing--dark .immo-pagination a:hover { border-color: #e0b64f; color: #e0b64f; }
.immo-listing--dark .immo-pagination .is-current { background: #e0b64f; color: #0a0a0a; border-color: #e0b64f; }
.immo-listing--dark .immo-noresult { background: #141413; border-color: rgba(255,255,255,.08); }
.immo-listing--dark .immo-noresult h3 { color: #fff; }
.immo-listing--dark .immo-noresult p { color: #8a887f; }
.immo-listing--dark .immo-empty { border: 1px solid rgba(255,255,255,.08); }
.immo-listing--dark .immo-empty__btn { background: #e0b64f; color: #0a0a0a; }
.immo-listing--dark .immo-empty__btn--ghost { background: transparent; color: #fff; border: 1px solid #555; }
.immo-listing--dark .immo-empty__btn--ghost:hover { border-color: #e0b64f; color: #e0b64f; }
/* Cartes fond sombre — reprennent le design d'origine du thème (cards #141413, badge or) */
.immo-listing--dark .bien-card { background: #141413; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; }
.immo-listing--dark .bien-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.55); border-color: rgba(224,182,79,.45); transform: translateY(-3px); }
.immo-listing--dark .bien-card__media { position: relative; }
.immo-listing--dark .bien-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0) 55%, rgba(10,10,10,.5)); pointer-events: none; }
.immo-listing--dark .bien-card__type { left: auto; right: 14px; top: 12px; background: #e0b64f; color: #0a0a0a; font-weight: 700; border-radius: 100px; padding: 5px 11px; z-index: 2; }
.immo-listing--dark .bien-card__sold { left: 14px; right: auto; border-radius: 100px; z-index: 2; }
.immo-listing--dark .bien-card__body { padding: 20px; }
.immo-listing--dark .bien-card__city { color: #e0b64f; letter-spacing: .06em; }
.immo-listing--dark .bien-card__title { color: #fff; font-size: 19px; min-height: 0; }
.immo-listing--dark .bien-card__facts { color: #8a887f; }
.immo-listing--dark .bien-card__price { color: #fff; font-size: 22px; margin-top: 4px; }

/* Aucun résultat pour ces filtres */
.immo-noresult { text-align: center; background: #F4F6F6; border: 1px solid #E0E6E5; padding: 48px 28px; font-family: 'Space Grotesk', sans-serif; }
.immo-noresult h3 { color: #1A1A1A; margin: 0 0 10px; }
.immo-noresult p { color: #777; margin: 0 auto 20px; max-width: 520px; }
.immo-noresult__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.immo-noresult .immo-empty__btn--ghost { color: #444; border-color: #ccc; }

/* ── Responsive ── */
@media (max-width: 1024px) {
	.bien-layout { grid-template-columns: 1fr; }
	.bien-aside { position: static; }
	.bien-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.immo-search { border-radius: 20px; }
	.immo-search__btn { width: 100%; }
}
@media (max-width: 640px) {
	.bien-gallery { grid-template-columns: 1fr; }
	.bien-gallery__main img { height: 280px; }
	.bien-gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
	.bien-gallery__thumb img { min-height: 70px; height: 70px; }
	.bien-title { font-size: 23px; }
	.bien-price { font-size: 23px; }
	.bien-dpe-wrap { grid-template-columns: 1fr; }
	.bien-grid { grid-template-columns: 1fr; }
}
