/* Simelfi Biens : recherche et grille */

.rb { color: #3d4a4f; }
.rb-form { margin: 0; }

/* Pastilles type */
.rb-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.rb-pill { margin: 0; }
.rb-pill input { position: absolute; opacity: 0; pointer-events: none; }
.rb-pill span { display: inline-block; padding: 9px 16px; border: 1px solid #b9cccf; font-size: 14px; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; color: #5f7176; cursor: pointer; transition: all .15s; }
.rb-pill span:hover { border-color: #0b5563; color: #0b5563; }
.rb-pill input:checked + span { background: #0b5563; border-color: #0b5563; color: #fff; }
.rb-pill input:focus-visible + span { outline: 2px solid #0b5563; outline-offset: 2px; }

/* Barre de recherche */
.rb-bar { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 136px; border: 1px solid #c9d6d8; }
.rb-cell { padding: 14px 20px; border-right: 1px solid #c9d6d8; min-width: 0; }
.rb-cell label { display: block; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: #5f7176; margin: 0 0 8px; padding: 0; }
.rb .rb-cell select,
.rb .rb-cell input { width: 100%; border: 0; padding: 0; margin: 0; background: transparent; font-size: 15px; color: #3d4a4f; outline: none; box-shadow: none; height: auto; }
.rb .rb-cell select { cursor: pointer; }
.rb-range { display: flex; align-items: center; gap: 8px; }
.rb-range span { color: #a5b4b8; font-size: 14px; }
.rb-range input::placeholder, .rb-cell-loc input::placeholder { color: #a5b4b8; opacity: 1; }
.rb-cell-loc input::-webkit-calendar-picker-indicator { opacity: .4; cursor: pointer; }
.rb-range input::-webkit-outer-spin-button,
.rb-range input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rb-range input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.rb-submit { border: 0; border-radius: 0; background: #0b5563; color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: background .15s; }
.rb-submit:hover { background: #083f4a; }

/* Résultats + tri */
.rb-results-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #e3eaeb; margin-bottom: 48px; }
.rb-count { margin: 0; padding: 0; font-size: 15px; color: #6d7d81; }
.rb-count strong { color: #3d4a4f; font-weight: 600; }
.rb-sort { display: flex; align-items: center; gap: 10px; }
.rb-sort label { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: #6d7d81; margin: 0; }
.rb .rb-sort select { border: 0; border-bottom: 1px solid #0b5563; border-radius: 0; padding: 2px 4px; font-size: 15px; color: #0b5563; background: transparent; cursor: pointer; min-width: 120px; }

/* Grille */
.rb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rb-card { border: 1px solid #c9d6d8; background: #fff; transition: box-shadow .2s; }
.rb-card:hover { box-shadow: 0 8px 24px rgba(11, 85, 99, .1); }
.rb-card > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.rb-img { aspect-ratio: 16 / 10; overflow: hidden; background: #e3eaeb; }
.rb-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.rb-card:hover .rb-img img { transform: scale(1.03); }
.rb-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.rb .rb-meta { margin: 0 0 10px; padding: 0; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: #3d4a4f; }
.rb .rb-title { margin: 0 0 6px; padding: 0; font-size: 18px; line-height: 1.35; font-weight: 600; color: #0b5563; }
.rb .rb-loc { margin: 0 0 14px; padding: 0; font-size: 16px; color: #8a9a9e; }
.rb .rb-excerpt { margin: 0 0 20px; padding: 0; font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rb-specs { margin-top: auto; display: flex; gap: 16px; padding-top: 16px; border-top: 1px solid #e3eaeb; font-size: 14px; color: #6d7d81; min-height: 16px; }
.rb-specs span { display: inline-flex; align-items: center; gap: 5px; }
.rb-specs svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.rb .rb-price { margin: 14px 0 0; padding: 0; font-size: 16px; font-weight: 600; color: #0b5563; }

/* Pagination */
.rb-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.rb-pagination .page-numbers { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #c9d6d8; font-size: 15px; color: #0b5563; text-decoration: none; }
.rb-pagination .current { background: #0b5563; border-color: #0b5563; color: #fff; }
.rb-pagination .dots { border: 0; }
.rb-empty { padding: 48px 0; text-align: center; color: #6d7d81; }

/* Responsive */
@media (max-width: 980px) {
  .rb-grid { grid-template-columns: repeat(2, 1fr); }
  .rb-bar { grid-template-columns: 1fr 1fr; }
  .rb-cell { border-bottom: 1px solid #c9d6d8; }
  .rb-cell-loc { grid-column: 1 / -1; border-right: 0; }
  .rb-submit { grid-column: 1 / -1; padding: 16px; }
}
@media (max-width: 640px) {
  .rb-grid { grid-template-columns: 1fr; }
  .rb-bar { grid-template-columns: 1fr; }
  .rb-cell { border-right: 0; }
  .rb-pills { gap: 6px; margin-bottom: 20px; }
  .rb-results-bar { margin-bottom: 28px; }
}


/* Cartes : badge statut et image manquante */
.rb-img { position: relative; }
.rb-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 24px); }
.rb-badge { display: inline-block; padding: 6px 10px; font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: #0b5563; }
.rb-badge-promo { background: #C24013; }
.rb-badge-vendu { background: #3d4a4f; }
.rb-noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: #eef3f3; }
.rb-noimg svg { width: 44px; height: 44px; fill: none; stroke: #b9cccf; stroke-width: 1.2; stroke-linejoin: round; }

/* Galerie [galerie_bien] : grande image + vignettes cliquables */
.sb-gal { display: grid; grid-template-columns: 2fr 1fr; gap: 3px; height: 480px; background: #fff; }
.sb-gal-single { grid-template-columns: 1fr; }
.sb-gal-main { position: relative; overflow: hidden; background: #e3eaeb; min-height: 0; }
.sb-gal-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s ease; }
.sb-gal-main img.is-fading { opacity: .35; }
.sb-gal-thumbs { display: flex; flex-direction: column; gap: 3px; height: 100%; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b9cccf transparent; }
.sb-gal-thumb { position: relative; flex: 0 0 calc((100% - 6px) / 3); display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: #e3eaeb; cursor: pointer; overflow: hidden; }
.sb-gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s, opacity .2s; }
.sb-gal-thumb:hover img { transform: scale(1.04); }
.sb-gal-thumb::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px transparent; transition: box-shadow .15s; pointer-events: none; }
.sb-gal-thumb:focus-visible { outline: none; }
.sb-gal-thumb:focus-visible::after { box-shadow: inset 0 0 0 3px #0b5563; }

/* Fiche du bien */
.sb-single-page { background: #fff; color: #3d4a4f; }
.sb-single-page svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sb-crumbs { max-width: 1170px; width: calc(100% - 32px); margin: 0 auto; padding: 16px 0; font-size: 15px; color: #8a9a9e; }
.sb-crumbs a { color: #6d8a8f; text-decoration: none; }
.sb-crumbs a:hover { color: #0b5563; }
.sb-crumbs span { margin: 0 6px; }
.sb-crumbs [aria-current] { margin: 0; color: #0b5563; }

.sb-hero .sb-gal { height: clamp(320px, 34vw, 640px); }

.sb-single { display: grid; grid-template-columns: minmax(0, 1fr) 358px; gap: 48px; align-items: start; max-width: 1170px; width: calc(100% - 32px); margin: 0 auto; padding: 32px 0 88px; }

.sb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid #e3eaeb; }
.sb-single .sb-tags { display: flex; gap: 8px; margin: 0 0 12px; padding: 0; }
.sb-ref { padding: 4px 10px; background: #e9eeee; font-size: 14px; color: #6d7d81; }
.sb-statut { padding: 4px 10px; background: #0b5563; color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.sb-statut-vendu { background: #3d4a4f; }
.sb-statut-promo { background: #C24013; font-weight: 700; }
.sb-single .sb-title { margin: 0; padding: 0; font-size: 32px; line-height: 1.25; font-weight: 400; color: #0b5563; }
.sb-single .sb-where { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 0; font-size: 16px; color: #c4501b; }
.sb-where svg { width: 15px; height: 15px; }
.sb-head-right { text-align: right; flex-shrink: 0; }
.sb-single .sb-price { margin: 0; padding: 0; font-size: 32px; line-height: 1.2; font-weight: 400; color: #0b5563; white-space: nowrap; }
.sb-single .sb-type { margin: 4px 0 0; padding: 0; font-size: 14px; color: #8a9a9e; }

.sb-keys { display: grid; gap: 2px; margin: 24px 0 0; padding: 0; list-style: none; }
.sb-keys-1 { grid-template-columns: 1fr; }
.sb-keys-2 { grid-template-columns: repeat(2, 1fr); }
.sb-keys-3 { grid-template-columns: repeat(3, 1fr); }
.sb-keys-4 { grid-template-columns: repeat(4, 1fr); }
.sb-keys li { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; padding: 24px 12px 22px; background: #eef3f3; text-align: center; }
.sb-keys svg { width: 18px; height: 18px; color: #8fa6aa; margin-bottom: 2px; }
.sb-keys-val { font-size: 17px; color: #0b5563; }
.sb-keys-label { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #8a9a9e; }

.sb-sec { margin-top: 40px; }
.sb-single .sb-h2 { margin: 0 0 18px; padding: 0; font-size: 19px; line-height: 1.3; font-weight: 700; color: #0b5563; }
.sb-description { font-size: 16px; line-height: 1.7; }
.sb-description p { margin: 0; padding: 0 0 1em; }
.sb-description p:last-child { padding-bottom: 0; }

/* Caractéristiques */
.sb-carac { border: 1px solid #e3eaeb; }
.sb-carac-list { margin: 0; padding: 0; }
.sb-carac-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #e3eaeb; font-size: 16px; }
.sb-carac-row:last-child { border-bottom: 0; }
.sb-carac-row dt { margin: 0; color: #6d8a8f; font-weight: 400; }
.sb-carac-row dd { margin: 0; text-align: right; color: #3d4a4f; }
.sb-cecb { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: #eef3f3; border-top: 1px solid #e3eaeb; }
.sb-carac-list + .sb-cecb { border-top: 1px solid #e3eaeb; }
.sb-cecb-badge { flex-shrink: 0; padding: 5px 8px; background: #0b5563; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.sb-cecb-text { font-size: 16px; color: #5f7f84; }

/* Carte */
.sb-map-frame { position: relative; border: 1px solid #c9d6d8; }
.sb-map { width: 100%; background: #e3eaeb; z-index: 0; }
.sb-pin { background: none; border: 0; }
.sb-map-link { position: absolute; right: 12px; bottom: 22px; z-index: 500; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #fff; color: #0b5563; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.sb-map-link:hover { background: #0b5563; color: #fff; }
.sb-map-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sb-single-page .sb-map-caption, .sb-map-caption { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 0; font-size: 14px; color: #6d8a8f; }
.sb-map-caption svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* Colonne droite */
.sb-aside { display: flex; flex-direction: column; gap: 24px; }
.sb-box { border: 1px solid #c9d6d8; background: #fff; padding: 26px 24px; color: #3d4a4f; }
.sb-box .sb-box-label { margin: 0 0 22px; padding: 0; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5f7176; }
.sb-contact-head { display: flex; align-items: center; gap: 18px; }
.sb-contact-photo { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #e3eaeb; }
.sb-contact-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-box .sb-contact-name { margin: 0; padding: 0; font-size: 16px; font-weight: 700; color: #0b5563; line-height: 1.3; }
.sb-box .sb-contact-role { margin: 4px 0 0; padding: 0; font-size: 14px; color: #c4501b; }
.sb-contact-lines { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.sb-contact-lines li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; font-size: 16px; }
.sb-contact-lines svg { flex-shrink: 0; width: 15px; height: 15px; fill: none; stroke: #3d4a4f; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sb-contact-lines a { color: #3d4a4f; text-decoration: none; overflow-wrap: anywhere; }
.sb-contact-lines a:hover { color: #0b5563; text-decoration: underline; }

.sb-demande form { margin: 0; }
.sb-demande input[type=text], .sb-demande input[type=tel], .sb-demande input[type=email], .sb-demande textarea { display: block; width: 100%; box-sizing: border-box; font-family: inherit; line-height: 1.5; margin: 0 0 12px; padding: 12px 16px; border: 1px solid #c9d6d8; border-radius: 0; background: #fff; font-size: 16px; color: #3d4a4f; box-shadow: none; }
.sb-demande textarea { height: 100px; resize: vertical; }
.sb-demande input::placeholder, .sb-demande textarea::placeholder { color: #9aabaf; opacity: 1; }
.sb-demande input:focus, .sb-demande textarea:focus { outline: none; border-color: #0b5563; }
.sb-demande-cg { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 14px; font-size: 14px; line-height: 1.5; color: #3d4a4f; cursor: pointer; }
.sb-demande-cg input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #0b5563; cursor: pointer; }
.sb-demande-cg a { color: #0b5563; text-decoration: underline; }
/* Popup des conditions générales */
.sb-cg-dialog { width: calc(100% - 32px); max-width: 760px; max-height: 85vh; margin: auto; padding: 0; border: 0; border-radius: 0; background: #fff; color: #3d4a4f; box-shadow: 0 20px 60px rgba(10, 25, 35, .35); }
.sb-cg-dialog[open] { display: flex; flex-direction: column; }
.sb-cg-dialog::backdrop { background: rgba(10, 25, 35, .6); }
.sb-cg-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 28px; border-bottom: 1px solid #e3eaeb; }
.sb-cg-dialog .sb-cg-head h2 { margin: 0; padding: 0; font-size: 22px; line-height: 1.3; font-weight: 500; color: #0b5563; }
.sb-cg-x { flex: 0 0 auto; width: 40px; height: 40px; margin: 0; padding: 0; border: 1px solid #c9d6d8; border-radius: 0; background: #fff; color: #3d4a4f; font-size: 26px; line-height: 1; cursor: pointer; }
.sb-cg-x:hover { border-color: #0b5563; color: #0b5563; }
.sb-cg-body { flex: 1 1 auto; overflow-y: auto; padding: 24px 28px; font-size: 15px; line-height: 1.7; }
.sb-cg-body h1, .sb-cg-body h2, .sb-cg-body h3, .sb-cg-body h4 { margin: 1.4em 0 .5em; padding: 0; line-height: 1.3; color: #0b5563; }
.sb-cg-body h1 { font-size: 22px; } .sb-cg-body h2 { font-size: 19px; } .sb-cg-body h3, .sb-cg-body h4 { font-size: 16px; }
.sb-cg-body > :first-child, .sb-cg-body .et_pb_text_inner > :first-child { margin-top: 0; }
.sb-cg-body p { margin: 0 0 1em; padding: 0; }
.sb-cg-body ul, .sb-cg-body ol { margin: 0 0 1em 1.4em; padding: 0; }
.sb-cg-body a { color: #0b5563; }
.sb-cg-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 28px; border-top: 1px solid #e3eaeb; }
.sb-cg-foot .sb-btn { display: inline-block; width: auto; margin: 0; padding: 14px 24px; }
.sb-cg-fermer { margin: 0; padding: 14px 24px; border: 1px solid #c9d6d8; border-radius: 0; background: #fff; color: #3d4a4f; font-size: 14px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.sb-cg-fermer:hover { border-color: #0b5563; color: #0b5563; }
@media (max-width: 640px) {
  .sb-cg-dialog { width: 100%; max-width: none; height: 100%; max-height: none; }
  .sb-cg-head, .sb-cg-body, .sb-cg-foot { padding-left: 18px; padding-right: 18px; }
  .sb-cg-foot { flex-direction: column-reverse; }
  .sb-cg-foot .sb-btn, .sb-cg-fermer { width: 100%; }
}
.sb-btn { display: block; width: 100%; margin-top: 8px; padding: 15px; border: 0; border-radius: 0; background: #0b5563; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; cursor: pointer; transition: background .15s; }
.sb-btn:hover { background: #083f4a; }
.sb-demande-msg { margin: 0 0 16px; padding: 10px 14px; font-size: 15px; }
.sb-demande-ok { background: #e6f2ee; color: #1f6b52; }
.sb-demande-err { background: #fbeceb; color: #a12d22; }
.sb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sb-single-page .screen-reader-text, .sb-demande .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sb-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sb-act { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border: 1px solid #c9d6d8; border-radius: 0; background: #fff; color: #3d4a4f; font-size: 15px; cursor: pointer; transition: border-color .15s, color .15s; }
.sb-act:hover { border-color: #0b5563; color: #0b5563; }
.sb-act svg { width: 14px; height: 14px; }

/* Responsive */
@media (max-width: 980px) {
  .sb-gal { height: 380px; }
  .sb-hero { width: calc(100% - 32px); margin: 0 auto; }
  .sb-single { grid-template-columns: 1fr; gap: 40px; }
  .sb-single .sb-title, .sb-single .sb-price { font-size: 26px; }
}
@media (max-width: 640px) {
  .sb-gal, .sb-hero .sb-gal { display: block; height: auto; }
  .sb-gal-main { aspect-ratio: 4 / 3; }
  .sb-gal-thumbs { flex-direction: row; height: auto; margin-top: 3px; overflow-x: auto; overflow-y: hidden; }
  .sb-gal-thumb { flex: 0 0 28%; aspect-ratio: 4 / 3; }
  .sb-single { padding-top: 24px; }
  .sb-head { flex-direction: column; gap: 14px; }
  .sb-head-right { text-align: left; }
  .sb-single .sb-title, .sb-single .sb-price { font-size: 24px; }
  .sb-keys-4 { grid-template-columns: repeat(2, 1fr); }
  .sb-keys-val { font-size: 16px; }
  .sb-keys li { padding: 18px 8px; }
  .sb-carac-row { padding: 14px 16px; }
  .sb-cecb { align-items: flex-start; }
}

/* Impression */
@media print {
  #top-header, #main-header, #main-footer, header.et-l, footer.et-l,
  .sb-crumbs, .sb-demande, .sb-actions, .sb-gal-thumbs, .sb-map-link, .leaflet-control-container { display: none !important; }
  #page-container { padding-top: 0 !important; }
  .sb-hero .sb-gal { display: block; height: 320px; }
  .sb-single { display: block; padding: 16px 0; width: 100%; }
  .sb-aside { margin-top: 24px; }
  .sb-sec, .sb-carac-row, .sb-box { break-inside: avoid; }
  .sb-keys li, .sb-cecb { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ============ PROMOTIONS [promotions] ============ */
.sp { color: #3d4a4f; }
.sp, .sp *, .sp *::before, .sp *::after { box-sizing: border-box; }
.sp svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sp-wrap { max-width: 1152px; width: calc(100% - 32px); margin: 0 auto; }
.sp .sp-eyebrow { margin: 0 0 14px; padding: 0; font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #C24013; }

/* Onglets */
.sp-tabs-bar { background: #fff; border-bottom: 1px solid #c9d6d8; }
.sp-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
.sp-tabs::-webkit-scrollbar { display: none; }
.sp-tab { flex: 0 0 auto; position: relative; margin: 0; padding: 18px 24px 17px; border: 0; border-radius: 0; background: none; font-size: 14px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: #6d8a8f; cursor: pointer; transition: color .15s; }
.sp-tab:hover { color: #0b5563; }
.sp-tab.is-active { color: #C24013; }
.sp-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #C24013; }

/* Bloc de présentation */
.sp-panels { padding: 76px 0 80px; }
.sp-panel { display: grid; grid-template-columns: minmax(0, 652fr) minmax(0, 452fr); gap: 48px; align-items: start; }
.sp-panel[hidden] { display: none; }
.sp-media { position: relative; height: 490px; background: #e3eaeb; }
.sp-noimg { height: 100%; }
.sp .sp-gal { display: block; height: 100%; }
.sp .sp-gal .sb-gal-main { height: 100%; }
.sp .sp-gal .sb-gal-thumbs { position: absolute; right: 16px; bottom: 16px; flex-direction: row; gap: 4px; height: auto; overflow: visible; }
.sp .sp-gal .sb-gal-thumb { flex: 0 0 56px; width: 56px; height: 40px; border: 1px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.sp-badge { position: absolute; top: 20px; left: 20px; padding: 7px 11px; background: #C24013; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }

.sp .sp-title { margin: 0; padding: 0; font-size: 32px; line-height: 1.2; font-weight: 400; color: #0b5563; }
.sp .sp-where { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; padding: 0; font-size: 16px; color: #5f7176; }
.sp-where svg { width: 15px; height: 15px; }
.sp-desc { margin-top: 26px; font-size: 16px; line-height: 1.65; }
.sp-desc p { margin: 0; padding: 0 0 .8em; }
.sp-desc p:last-child { padding-bottom: 0; }
.sp-keys { display: grid; gap: 2px; margin: 32px 0 0; padding: 0; list-style: none; }
.sp-keys-1 { grid-template-columns: 1fr; }
.sp-keys-2 { grid-template-columns: repeat(2, 1fr); }
.sp-keys-3 { grid-template-columns: repeat(3, 1fr); }
.sp-keys li { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; padding: 26px 8px 24px; background: #eef3f2; text-align: center; }
.sp-keys-val { font-size: 16px; color: #0b5563; }
.sp-keys-lbl { font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: #8a9a9e; }
.sp-atouts { margin: 30px 0 0; padding: 0; list-style: none; }
.sp-atouts li { position: relative; margin: 0 0 12px; padding: 0 0 0 18px; font-size: 16px; line-height: 1.4; }
.sp-atouts li::before { content: ""; position: absolute; left: 1px; top: .5em; width: 5px; height: 5px; border-radius: 50%; background: #C24013; }
.sp-actions { display: flex; gap: 12px; margin-top: 36px; }
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; padding: 0 24px; border: 1px solid #0b5563; border-radius: 0; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.sp-btn svg { width: 13px; height: 13px; stroke-width: 2; }
.sp-btn-plein { flex: 1; background: #0b5563; color: #fff; }
.sp-btn-plein:hover { background: #C24013; border-color: #C24013; color: #fff; }
.sp-btn-contour { background: #fff; color: #0b5563; border-color: #3d4a4f; }
.sp-btn-contour:hover { border-color: #0b5563; background: #0b5563; color: #fff; }
.sp-form-wrap { margin-top: 20px; }
.sp-form-wrap[hidden] { display: none; }

/* Grille "N projets en cours" */
.sp-all { padding: 86px 0 70px; background: #eef3f2; }
.sp .sp-all-title { margin: 0 0 50px; padding: 0; font-size: 30px; line-height: 1.2; font-weight: 400; color: #0b5563; }
.sp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.sp-card { display: flex; flex-direction: column; background: #fff; color: inherit; text-decoration: none; transition: box-shadow .2s; }
.sp-card:hover { box-shadow: 0 8px 24px rgba(11, 85, 99, .12); }
.sp-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: #e3eaeb; }
.sp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.sp-card:hover .sp-card-img img { transform: scale(1.03); }
.sp-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 26px 24px 24px; }
.sp-card-badge { margin-bottom: 18px; padding: 5px 8px; border: 1px solid #C24013; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; color: #C24013; }
.sp .sp-card-title { margin: 0; padding: 0; font-size: 18px; line-height: 1.3; font-weight: 400; color: #0b5563; }
.sp .sp-card-where { display: flex; align-items: center; gap: 5px; margin: 8px 0 0; padding: 0; font-size: 14px; color: #C24013; }
.sp-card-where svg { width: 13px; height: 13px; }
.sp-card-foot { display: flex; justify-content: space-between; gap: 12px; align-self: stretch; margin-top: auto; padding-top: 16px; border-top: 1px solid #e3eaeb; font-size: 14px; }
.sp-card-body h3 + .sp-card-where + .sp-card-foot { margin-top: 18px; }
.sp-card-foot span { color: #8a9a9e; }
.sp-card-foot strong { font-weight: 600; color: #0b5563; }
.sp-empty { padding: 60px 0; text-align: center; color: #6d7d81; }

@media (max-width: 980px) {
  .sp-panels { padding: 40px 0 56px; }
  .sp-panel { grid-template-columns: 1fr; gap: 32px; }
  .sp-media { height: 420px; }
  .sp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sp-tab { padding: 16px 16px 15px; }
  .sp-media { height: auto; aspect-ratio: 4 / 3; }
  .sp .sp-title { font-size: 26px; }
  .sp-keys li { padding: 18px 6px; }
  .sp-keys-val { font-size: 16px; }
  .sp-actions { flex-direction: column; }
  .sp-btn-contour { width: 100%; }
  .sp .sp-gal .sb-gal-thumbs { right: 10px; bottom: 10px; }
  .sp .sp-gal .sb-gal-thumb { flex-basis: 46px; width: 46px; height: 34px; }
  .sp-all { padding: 56px 0 48px; }
  .sp .sp-all-title { font-size: 26px; margin-bottom: 32px; }
  .sp-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* Autocomplétion des localités (champ Localisation) */
.rb-cell-loc { position: relative; }
.rb-ac { position: absolute; z-index: 60; top: 100%; left: -1px; right: -1px; margin: 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid #c9d6d8; border-top: 2px solid #0b5563; box-shadow: 0 10px 24px rgba(11, 85, 99, .14); max-height: 340px; overflow-y: auto; }
.rb-ac[hidden] { display: none; }
.rb-ac li { margin: 0; }
.rb-ac-item { display: flex; align-items: baseline; gap: 10px; padding: 10px 20px; font-size: 15px; color: #3d4a4f; cursor: pointer; }
.rb-ac-item.is-active, .rb-ac-item:hover { background: #eef3f2; }
.rb-ac-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-ac-name strong { font-weight: 700; color: #0b5563; }
.rb-ac-meta { flex-shrink: 0; font-size: 14px; color: #8a9a9e; }
.rb-ac-count { flex-shrink: 0; padding: 2px 7px; border: 1px solid #C24013; font-size: 14px; color: #C24013; text-transform: uppercase; letter-spacing: .03em; }
.rb-ac-none { padding: 12px 20px; font-size: 15px; color: #8a9a9e; }
@media (max-width: 980px) {
  .rb-ac { max-height: 280px; }
}

/* Biens vendus [biens_vendus] : mosaïque, texte sur la photo */
.sv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(300px, auto); gap: 8px; }
.sv-tile { position: relative; display: block; min-height: 300px; overflow: hidden; border-radius: 4px; background: #3d4a4f; color: #fff; text-decoration: none; }
.sv-tile:nth-child(6n + 1) { grid-column: span 2; }
.sv-tile:nth-child(6n) { grid-column: 1 / -1; min-height: 440px; }
.sv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.sv-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .12) 32%, rgba(0, 0, 0, 0) 55%); pointer-events: none; }
.sv-tile:hover .sv-img { transform: scale(1.06); }
.sv-badge { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 3px 7px; border-radius: 3px; background: #0b5563; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; }
.sv-txt { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 10px; display: flex; flex-direction: column; gap: 4px; }
.sv-meta { font-size: 14px; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.sv-title { font-size: 16px; font-weight: 500; line-height: 1.35; color: #fff; }
.sv-phrase { font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .85); }

@media (max-width: 980px) {
  .sv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(240px, auto); }
  .sv-tile { min-height: 240px; }
  .sv-tile:nth-child(6n + 1), .sv-tile:nth-child(6n) { grid-column: 1 / -1; min-height: 320px; }
}
@media (max-width: 640px) {
  .sv-grid { grid-template-columns: 1fr; }
  .sv-tile, .sv-tile:nth-child(6n + 1), .sv-tile:nth-child(6n) { grid-column: auto; min-height: 240px; }
}
