/* ============================================================
   main.css — Cabinet Immobilier Patoux
   Consortium Immobilier platform theme
   Base: Bootstrap 4 + Font Awesome 5 + Ionicons
   ============================================================ */

/* === VARIABLES === */
:root {
  --primary: #003366;
  --primary-dark: #002244;
  --primary-light: #004488;
  --accent: #c8982a;
  --accent-light: #dab04a;
  --text-dark: #333333;
  --text-medium: #555555;
  --text-light: #888888;
  --bg-white: #ffffff;
  --bg-light: #f7f8fa;
  --bg-gray: #eef0f2;
  --border-light: #dee2e6;
  --border-medium: #ccc;
  --success: #28a745;
  --danger: #dc3545;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
  --radius: 4px;
  --radius-lg: 6px;
  --transition: 0.25s ease;
}

/* === GLOBAL TYPOGRAPHY & BODY === */
html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

img {
  max-width: 100%;
  height: auto;
}

/* === HEADER === */
header {
  background-color: var(--bg-white);
  border-bottom: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1000;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo img {
  max-height: 60px;
  width: auto;
}

.header__logo a {
  display: inline-block;
}

/* === MAIN NAVIGATION === */
header .navbar {
  padding: 0;
  flex-grow: 1;
  justify-content: flex-end;
}

header .navbar-light .navbar-nav {
  display: flex;
  align-items: center;
}

.nav-main {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.nav-main a {
  display: block;
  text-decoration: none;
}

.nav-main li {
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
}

.nav-main a:hover li,
.nav-main a.active li {
  color: var(--primary);
  background-color: var(--bg-light);
}

.navbar-toggler {
  border-color: var(--primary);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='%23003366' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* === MAIN CONTENT AREA === */
.main-content {
  min-height: 60vh;
  padding-bottom: 40px;
}

/* === PROPERTY LISTING CARDS === */
.block_img {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-gray);
}

.block_img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.block_img:hover img {
  transform: scale(1.03);
}

.block_img a {
  display: block;
  overflow: hidden;
}

/* Reference badge on listing image */
.list-ref {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 51, 102, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 2;
  letter-spacing: 0.5px;
}

/* Ribbon / banner overlay on listing image */
.bandeaux {
  position: absolute;
  top: 10px;
  left: 0;
  z-index: 3;
}

.bandeaux span {
  display: inline-block;
  background-color: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  letter-spacing: 0.5px;
}

/* Property info block */
.block_info {
  padding: 15px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: none;
}

.block_info a {
  text-decoration: none;
  color: inherit;
}

.block_info a:hover {
  color: inherit;
}

/* Listing header inside card */
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.list-header b {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-medium);
  line-height: 1.4;
}

/* Criteria line (rooms, surface) */
.list-crit {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--bg-gray);
}

/* Description excerpt */
.description {
  font-size: 13px;
  color: var(--text-medium);
  line-height: 1.5;
  margin-bottom: 10px;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* "Voir detail" link */
.list-more {
  text-align: right;
  margin-top: 8px;
}

.list-more a {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 5px 0;
  transition: color var(--transition);
}

.list-more a:hover {
  color: var(--accent);
}

.list-more a::after {
  content: ' \203A';
  font-size: 16px;
}

/* === SPIN CLASSES (info label wrappers) === */
.spin1 {
  display: block;
}

.spin3 {
  display: block;
}

.spin4 {
  display: block;
}

.spin5 {
  display: block;
}

/* Property type label */
.info_type {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* City / location */
.info_ville {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Price */
.info_prix {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  line-height: 1.2;
}

.info_prix sup.prixplus {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-light);
}

/* HAI price variant */
.info_prix-hai {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 400;
}

/* Reference number */
.info_numero {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 5px;
}

.numero {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

/* Surface area */
.surface {
  font-size: 14px;
  color: var(--text-medium);
  font-weight: 500;
}

/* === PROPERTY LISTING GRID === */
.row > [class*="col-"] > .block_img,
.row > [class*="col-"] > .block_info {
  margin-bottom: 0;
}

.row > [class*="col-"] {
  margin-bottom: 30px;
}

/* === PROPERTY DETAIL PAGE === */
.detail_annexe {
  padding: 20px 0;
}

.nav_back {
  margin-bottom: 15px;
}

.nav_back a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
}

.nav_back a:hover {
  color: var(--accent);
}

.nav_back a::before {
  content: '\2039 ';
  font-size: 18px;
  vertical-align: middle;
  margin-right: 3px;
}

/* Content + Sidebar layout */
.content-page {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: 300px;
  flex-shrink: 0;
  margin-left: 30px;
}

/* Detail carousel */
.detail_carousel {
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.detail_carousel .carousel-item img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
}

.detail_carousel .carousel-control-prev,
.detail_carousel .carousel-control-next {
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 51, 102, 0.6);
  border-radius: 50%;
  opacity: 0.8;
}

.detail_carousel .carousel-control-prev:hover,
.detail_carousel .carousel-control-next:hover {
  opacity: 1;
  background-color: rgba(0, 51, 102, 0.85);
}

.detail_carousel .carousel-indicators li {
  background-color: rgba(255, 255, 255, 0.6);
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 4px;
}

.detail_carousel .carousel-indicators .active {
  background-color: #fff;
}

/* Detail header */
.detail-header {
  margin-bottom: 15px;
}

.detail-header .info_ville {
  font-size: 22px;
  margin-bottom: 2px;
}

.detail-header .info_type {
  font-size: 13px;
  margin-bottom: 8px;
  display: block;
}

.detail-header b {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-medium);
  line-height: 1.5;
  margin-top: 6px;
}

/* Detail info table */
.detail-info {
  margin: 20px 0;
}

.detail-info .table {
  font-size: 13px;
  margin-bottom: 0;
}

.detail-info .table td {
  padding: 8px 12px;
  vertical-align: middle;
  border-color: var(--bg-gray);
}

.detail-info .table td:first-child {
  font-weight: 600;
  color: var(--text-dark);
  width: 45%;
}

.detail-info .table-striped tbody tr:nth-of-type(odd) {
  background-color: var(--bg-light);
}

/* Detail navigation (prev/next property) */
.detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  margin: 15px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.detail-nav a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
}

.detail-nav a:hover {
  color: var(--accent);
}

/* Detail description */
.detail-description {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-medium);
}

.detail-description h2,
.detail-description h3 {
  font-size: 18px;
  color: var(--primary);
  margin: 20px 0 10px;
}

/* Agent / poseur info */
.detail-poseur {
  margin-top: 20px;
  padding: 15px;
  background-color: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.nom-poseur {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
}

.date-poseur {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 3px;
}

.commentaire-poseur {
  font-size: 13px;
  color: var(--text-medium);
  margin-top: 8px;
  line-height: 1.5;
  font-style: italic;
}

/* === SEARCH FORM (SIDEBAR) === */
.sidebar form {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.sidebar form h3,
.sidebar form h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.search__form-item {
  margin-bottom: 15px;
}

.search__form-item label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 5px;
}

.search__form-item input[type="text"],
.search__form-item input[type="number"],
.search__form-item select {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius);
  background-color: var(--bg-white);
  color: var(--text-dark);
  transition: border-color var(--transition);
}

.search__form-item input:focus,
.search__form-item select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.15);
}

.search__form-item .btn {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  transition: background-color var(--transition);
}

.search__form-item .btn:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* === FOOTER === */
footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 30px 0;
  margin-top: 40px;
  font-size: 13px;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

footer address {
  margin-bottom: 0;
  font-style: normal;
}

footer address ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer address ul li {
  padding: 3px 0;
  line-height: 1.6;
}

footer address ul li:first-child {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

footer address ul li i {
  margin-right: 8px;
  color: var(--accent-light);
  font-size: 15px;
  width: 18px;
  text-align: center;
}

footer a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

footer a:hover {
  color: var(--accent-light);
}

/* Footer credit images */
footer img {
  max-height: 30px;
  margin: 5px 8px 5px 0;
  opacity: 0.7;
  transition: opacity var(--transition);
}

footer img:hover {
  opacity: 1;
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
  header .container {
    flex-wrap: wrap;
  }

  .header__logo {
    margin-bottom: 5px;
  }

  .header__logo img {
    max-height: 50px;
  }

  .nav-main li {
    padding: 8px 10px;
    font-size: 13px;
  }

  .sidebar {
    width: 100%;
    margin-left: 0;
    margin-top: 30px;
  }

  .d-lg-flex {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  header .container {
    text-align: center;
    justify-content: center;
  }

  .header__logo {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  header .navbar {
    justify-content: center;
  }

  .nav-main {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-main li {
    padding: 6px 8px;
    font-size: 12px;
  }

  .block_img img {
    height: 180px;
  }

  .list-header {
    flex-direction: column;
  }

  .info_prix {
    font-size: 18px;
    margin-top: 5px;
  }

  .detail-header .info_ville {
    font-size: 18px;
  }

  .detail_carousel .carousel-item img {
    max-height: 280px;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }

  footer address ul li i {
    display: block;
    margin-bottom: 2px;
  }
}

@media (max-width: 575px) {
  html {
    font-size: 13px;
  }

  .block_img img {
    height: 160px;
  }

  .block_info {
    padding: 12px;
  }

  .info_prix {
    font-size: 16px;
  }

  .sidebar form {
    padding: 15px;
  }
}

/* === LISTING PAGE FILTERS === */
.listing-filters {
  background-color: var(--bg-light);
  padding: 15px;
  margin-bottom: 25px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

/* === PAGINATION === */
.pagination {
  justify-content: center;
  margin-top: 30px;
}

.pagination .page-link {
  color: var(--primary);
  border-color: var(--border-light);
  padding: 8px 14px;
  font-size: 13px;
  margin: 0 2px;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pagination .page-link:hover {
  background-color: var(--bg-light);
  color: var(--primary-dark);
}

/* === CONTACT / ESTIMATION PAGES === */
.contact-form,
.estimation-form {
  max-width: 700px;
  margin: 30px auto;
}

.contact-form .form-group label,
.estimation-form .form-group label {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-dark);
}

.contact-form .form-control,
.estimation-form .form-control {
  border-radius: var(--radius);
  border-color: var(--border-medium);
  font-size: 13px;
  padding: 10px 12px;
}

.contact-form .form-control:focus,
.estimation-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.15);
}

.contact-form .btn-primary,
.estimation-form .btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 30px;
}

.contact-form .btn-primary:hover,
.estimation-form .btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* === MAP === */
#map {
  height: 350px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  margin: 20px 0;
}

/* === BREADCRUMB === */
.breadcrumb {
  background-color: transparent;
  padding: 10px 0;
  margin-bottom: 15px;
  font-size: 12px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '>';
  color: var(--text-light);
}

.breadcrumb-item a {
  color: var(--primary);
}

/* === ALERT EMAIL PAGE === */
.alerte-email-form {
  max-width: 600px;
  margin: 30px auto;
  padding: 30px;
  background-color: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

/* === VENDU (SOLD) PAGE === */
.listing-vendu .block_img {
  opacity: 0.7;
  filter: grayscale(30%);
}

.listing-vendu .block_img::after {
  content: 'VENDU';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  background-color: rgba(220, 53, 69, 0.85);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  padding: 6px 20px;
  border-radius: var(--radius);
  z-index: 5;
  letter-spacing: 2px;
}

/* ============================================================
   MISSING LAYOUT CLASSES — Consortium Immobilier platform
   ============================================================ */

/* === HERO / HEADER BACKGROUND === */
.bg-header {
  position: relative;
  background-color: var(--primary);
  background-image: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  flex: 0 0 100%;
  width: 100%;
  order: 10;
}

/* === SEARCH BLOCK === */
.bloc_search {
  width: 100%;
  flex: 0 0 100%;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 20px 0;
  position: relative;
  z-index: 10;
}

.formSearch {
  width: 100%;
}

.search_form {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px;
  align-items: flex-end;
}

.search_form .form-group.search__form-item {
  flex: 1 1 180px;
  min-width: 140px;
  margin-bottom: 10px;
}

.search_form .search__form-item.c_valid {
  flex: 0 0 auto;
  min-width: 140px;
  margin-bottom: 10px;
}

.form-style {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius);
  background-color: var(--bg-white);
  color: var(--text-dark);
  transition: border-color var(--transition);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-style:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.15);
}

.input-group-addon {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-medium);
  background-color: var(--bg-gray);
  border: 1px solid var(--border-medium);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  white-space: nowrap;
}

.input-group .form-style {
  border-radius: var(--radius) 0 0 var(--radius);
}

.financier.input-group {
  display: flex;
}

.pb20 {
  padding-bottom: 20px;
}

/* === PROPERTY CARDS SECTION === */
.nos-biens {
  margin-top: 30px;
  margin-bottom: 20px;
}

.nos-biens > .col-12 {
  margin-bottom: 15px;
}

h2.title-service,
.row .title-service {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #003366 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 3px solid #c8982a;
  text-align: center;
}

.prod_accueil {
  width: 100%;
}

.fiche_produit {
  width: 100%;
}

.produitshabitation {
  width: 100%;
}

.nos-biens > .prod_accueil {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  flex: 0 0 100%;
  max-width: 100%;
  margin-right: -15px;
  margin-left: -15px;
}

.nos-biens > .prod_accueil > .col-lg-4,
.nos-biens > .prod_accueil > .col-md-4 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 768px) {
  .nos-biens > .prod_accueil > .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 992px) {
  .nos-biens > .prod_accueil > .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

.nos-biens .prod_accueil > .col-lg-4 {
  margin-bottom: 25px;
}

.nos-biens .prod_accueil > .col-lg-4 > h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fiche_produit .prod_accueil article {
  margin-bottom: 15px;
}

.block_info .btn-primary {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  transition: background-color var(--transition);
}

.block_info .btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  text-decoration: none;
}

/* === SERVICES SECTION === */
.services {
  margin-top: 40px;
  margin-bottom: 30px;
  clear: both;
}

.services > .col-12 {
  margin-bottom: 15px;
}

.service1,
.service2,
.service3,
.service4 {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 25px 20px;
  height: 100%;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

.service1:hover,
.service2:hover,
.service3:hover,
.service4:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service1 ul,
.service2 ul,
.service3 ul,
.service4 ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service1 h3,
.service2 h3,
.service3 h3,
.service4 h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 12px;
}

.service1 h3 ul,
.service2 h3 ul,
.service3 h3 ul,
.service4 h3 ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.strong-gold {
  color: var(--accent);
  font-weight: 700;
  font-size: 20px;
}

.service-txt {
  font-size: 13px;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: left;
}

.w100 {
  width: 100%;
}

.services .btn-primary {
  display: inline-block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color var(--transition);
}

.services .btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  text-decoration: none;
}

/* === NOTRE CABINET / CLUB SECTION === */
.club {
  margin-top: 40px;
  margin-bottom: 30px;
  padding: 30px 0;
  background-color: #f7f8fa;
  border-radius: 6px;
}

.club .test {
  padding: 20px 30px;
}

.club ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.title-club {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
}

.club-txt {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 20px;
}

.club-txt p {
  margin-bottom: 12px;
}

.club-btn {
  margin-top: 15px;
}

.club-btn .btn-primary,
.club .btn-primary {
  display: inline-block;
  padding: 12px 25px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color var(--transition);
}

.club-btn .btn-primary:hover,
.club .btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  text-decoration: none;
}

.bg-club {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.bg-club img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 250px;
}

/* Google badge in club section */
.badge-google-content {
  position: relative;
  left: auto;
  top: auto;
  float: none;
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 15px;
  text-align: center;
  margin-top: 15px;
  display: inline-block;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.badge-google-content a {
  text-decoration: none;
  color: inherit;
}

.badge-google {
  max-width: 80px;
  margin-top: 8px;
}

/* === FOOTER ENHANCEMENTS === */
.liens_left {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.liens_left a {
  color: rgba(255, 255, 255, 0.85);
}

.liens_left a:hover {
  color: var(--accent-light);
}

.liens_right {
  text-align: right;
}

.liens_right img {
  max-height: 25px;
  opacity: 0.7;
  margin: 3px 5px;
  transition: opacity var(--transition);
}

.liens_right img:hover {
  opacity: 1;
}

.btn-contact {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.btn-contact:hover {
  color: var(--accent-light);
}

/* col-xs-12 (Bootstrap 3 compatibility) */
.col-xs-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 576px) {
  .col-xs-12.col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* === IONICONS (Fallback to Font Awesome 5) === */
.ion-location::before { content: "\f3c5"; font-family: "Font Awesome 5 Free"; font-weight: 900; }
.ion-ios-telephone::before { content: "\f095"; font-family: "Font Awesome 5 Free"; font-weight: 900; }
.ion-email::before { content: "\f0e0"; font-family: "Font Awesome 5 Free"; font-weight: 900; }
.ion-social-facebook::before { content: "\f39e"; font-family: "Font Awesome 5 Brands"; font-weight: 400; }
.ion-social-instagram::before { content: "\f16d"; font-family: "Font Awesome 5 Brands"; font-weight: 400; }

/* === RESPONSIVE FOR NEW SECTIONS === */
@media (max-width: 991px) {
  .bg-header {
    min-height: 200px;
  }

  .search_form .form-group.search__form-item {
    flex: 1 1 45%;
  }

  .club {
    border-radius: var(--radius);
  }

  .bg-club {
    border-radius: 0 0 var(--radius) var(--radius);
    min-height: 200px;
  }
}

@media (max-width: 767px) {
  .bg-header {
    min-height: 150px;
  }

  .search_form .form-group.search__form-item {
    flex: 1 1 100%;
  }

  .title-service,
  .title-club {
    font-size: 18px;
  }

  .club .test {
    padding: 15px 20px;
  }

  .services .col-lg-3 {
    margin-bottom: 15px;
  }

  .liens_right {
    text-align: center;
    margin-top: 10px;
  }

  .badge-google-content {
    display: block;
    text-align: center;
  }
}

/* === SELECTPICKER (Bootstrap-Select fallback) === */
.selectpicker {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius);
  background-color: var(--bg-white);
  color: var(--text-dark);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23555' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 8px 10px;
  padding-right: 28px;
}

.selectpicker:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.15);
}

/* === .display-4 spacer (empty div used by platform) === */
.fiche_produit > .display-4 {
  display: none;
}

/* === MISC LAYOUT HELPERS === */
.b_ccoeur {
  background-color: #e74c6f !important;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  text-transform: uppercase;
}

.formSearch .container {
  max-width: 100%;
}


/* ============================================================
   LISTING PAGE GRID LAYOUT
   ============================================================ */

/* Listing container */
.prod_listing {
  padding-top: 20px;
}

/* Listing article + sidebar layout */
.listing_article {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Article content = property grid */
.article_content {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-content: start;
}

.article_content > article {
  display: flex;
  flex-direction: column;
}

.article_content > article .block_img {
  flex-shrink: 0;
}

.article_content > article .block_info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article_content > article .block_info .btn-primary {
  margin-top: auto;
}

/* Sidebar (map/search) */
.module_recherche_carte {
  flex: 0 0 280px;
  max-width: 280px;
}

.tool_boox_map {
  position: sticky;
  top: 20px;
}

/* Listing page title */
.prod_listing > h1,
.prod_listing > h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
}

/* === LISTING RESPONSIVE === */
@media (max-width: 991px) {
  .article_content {
    grid-template-columns: repeat(2, 1fr);
  }

  .module_recherche_carte {
    flex: 0 0 100%;
    max-width: 100%;
    order: -1;
    margin-bottom: 20px;
  }
}

@media (max-width: 575px) {
  .article_content {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PROPERTY DETAIL PAGE FIXES
   ============================================================ */

/* Detail page layout */
.detail_page {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.detail_page .content-page {
  flex: 1 1 0;
  min-width: 0;
}

.detail_page .sidebar {
  flex: 0 0 300px;
  max-width: 300px;
}

@media (max-width: 991px) {
  .detail_page .sidebar {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ============================================================
   LISTING HEADER / FILTER BAR
   ============================================================ */

.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.listing-header .result-count {
  font-size: 14px;
  color: var(--text-medium);
}

.listing-header .sort-options {
  font-size: 13px;
}

/* ============================================================
   ESTIMATION PAGE
   ============================================================ */

.estimation-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

/* ============================================================
   AVIS GOOGLE PAGE
   ============================================================ */

.avis-google-page {
  padding: 20px 0;
}

.avis-google-page .row {
  display: flex;
  flex-wrap: wrap;
}
