/* ============================================
   CHECK HOME - Services Immobiliers
   ============================================ */

:root {
  --noir: #0a0a0b;
  --blanc: #ffffff;
  --cream: #f0f4f1;
  --gold: #0278BF;
  --gold-light: rgba(27, 122, 61, 0.12);
  --gold-glow: rgba(27, 122, 61, 0.3);
  --gray-100: #f3f6f4;
  --gray-200: #d8e0da;
  --gray-400: #7a8a7e;
  --gray-600: #4a5a4e;
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.1);
  --radius: 16px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.04);
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Bootstrap's .container padding only compensates the default 1.5rem
   gutter, but this site uses "row g-5" (3rem gutter) in several places,
   which overflows the container by 12px on each side. Matching the
   container's padding to the larger gutter fixes that at the source,
   instead of clipping it with overflow-x:hidden (which breaks
   position:sticky on any ancestor it's applied to - see detailbien.php). */
.container { padding-left: 24px; padding-right: 24px; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--noir);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

::selection { background: var(--gold); color: var(--blanc); }

/* Uniform text color across every form field and its placeholder,
   site-wide (search-field, form-control, and any other input/select). */
input, select, textarea {
  color: var(--noir);
}
input::placeholder, textarea::placeholder {
  color: var(--noir);
  opacity: 1;
}

.font-display { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }

/* Typography */
.text-display {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
/* Slogan du hero (titre principal de l'accueil) */
.hero-slogan { font-weight: 400; text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
/* Logo : fond blanc arrondi pour rester lisible sur la photo du hero */
.brand-logo {
  display: block;
  width: 125px;
  height: auto;
  padding: 5px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  box-sizing: content-box;
}
.text-h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.text-h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.text-h3 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Navigation */
.navbar-custom {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 100px;
  transition: all 0.4s ease;
  background: transparent;
}
.navbar-custom.scrolled {
  background: #ffffff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  height: 96px;
}
.navbar-custom.scrolled .nav-link-custom {
  color: rgba(0,0,0,0.75);
}
.navbar-custom.scrolled .nav-link-custom:hover {
  color: var(--gold);
}
.navbar-custom.scrolled .nav-dropdown {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.navbar-custom.scrolled .nav-dropdown a {
  color: rgba(0,0,0,0.75);
}
.navbar-custom.scrolled .nav-dropdown a:hover {
  color: var(--gold);
  background: rgba(0,0,0,0.04);
}
.nav-link-custom {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
}
.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link-custom:hover { color: var(--blanc); }
.nav-link-custom:hover::after { width: 100%; }
.nav-btn {
  background: var(--gold);
  color: var(--blanc);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  border: none;
  transition: all 0.3s ease;
}
.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--gold-glow);
}
/* Header "Contact" call-to-action: outlined so it stands out from the links */
.nav-btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FD8610;
  color: var(--blanc);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55rem 1.6rem;
  border-radius: 100px;
  border: 2px solid #FD8610;
  transition: all 0.3s ease;
}
.nav-btn-contact:hover {
  background: rgba(253, 134, 16, 0.08);
  color: #FD8610;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(253, 134, 16, 0.35);
}

/* Dropdown navigation */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  min-width: 220px;
  padding: 0.5rem 0;
  background: rgba(10,10,11,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1002;
}
.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: rgba(255,255,255,0.75);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-dropdown a:hover {
  color: var(--blanc);
  background: rgba(255,255,255,0.06);
  padding-left: 1.4rem;
}

/* Mobile dropdown */
.mobile-dropdown {
  display: flex;
  flex-direction: column;
}
.mobile-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.mobile-dropdown-icon {
  transition: transform 0.3s ease;
}
.mobile-dropdown.open .mobile-dropdown-icon {
  transform: rotate(180deg);
}
.mobile-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0 0.25rem 1.25rem;
}
.mobile-dropdown.open .mobile-dropdown-menu {
  display: flex;
}
.mobile-sublink {
  color: rgba(255,255,255,0.65);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-sublink:hover {
  color: var(--gold);
}

/* intl-tel-input: keep the plugin's wrapper full-width like the original
   unwrapped input (its default is display:inline-block, which shrinks to
   content and breaks the "search-field" width:100% layout). */
.iti { display: block; width: 100%; }

/* Language switcher */
.flag-icon { display: inline-flex; align-items: center; flex-shrink: 0; }
.flag-icon svg {
  width: 22px;
  height: 15px;
  border-radius: 3px;
  display: block;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.lang-switcher .nav-link-custom.lang-current { padding: 0.5rem 0; }
.lang-dropdown { min-width: 170px; }
.lang-dropdown a { display: flex; align-items: center; gap: 0.7rem; }
.lang-option.active { color: var(--blanc); background: rgba(255,255,255,0.08); }
.mobile-lang-option {
  display: inline-flex;
  padding: 0.4rem;
  border-radius: 8px;
  border: 1px solid transparent;
}
.mobile-lang-option.active { border-color: var(--gold); }
.mobile-lang-option .flag-icon svg { width: 30px; height: 20px; }
.topbar-lang-option {
  display: inline-flex;
  padding: 2px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.topbar-lang-option.active { border-color: var(--gold); }

/* Hero */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  /* WebP : 150 Ko au lieu de 300 Ko (JPEG) ; version 900 px sur mobile (60 Ko) */
  background-image: url('../images/banner2.webp');
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.1) 0%, rgba(10,10,11,0.4) 50%, rgba(10,10,11,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  padding-bottom: 280px;
}

/* Search Bar */
.search-bar {
  position: relative;
  z-index: 20;
  margin-top: -130px;
  margin-bottom: 80px;
}
/* Override for the search bar on the property list pages (listbiens.php) only */
.search-bar-list {
  margin-top: -70px;
  margin-bottom: -55px;
}
.search-inner {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}
.search-field {
  width: 100%;
  height: 52px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--noir);
  background: var(--blanc);
  transition: all 0.3s;
  appearance: none;
  -webkit-appearance: none;
}
select.search-field {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239c958d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
input.search-field {
  background-image: none !important;
  padding-right: 1rem !important;
}
.search-field:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light);
}
.type-select { position: relative; }
.type-select-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  text-align: left;
}
.type-select-btn::after {
  content: '';
  width: 10px;
  height: 8px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239c958d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}
.type-select-icon { color: var(--gold); flex-shrink: 0; display: flex; }
.type-select-icon svg { width: 18px; height: 18px; }
.type-select-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.type-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--blanc);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 280px;
  overflow-y: auto;
  display: none;
}
.type-select.open .type-select-menu { display: block; }
.type-select-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--noir);
}
.type-select-option .type-select-icon { color: var(--gray-400); }
.type-select-option:hover { background: var(--cream); }
.type-select-option[aria-selected="true"] { background: var(--gold-light); font-weight: 600; }
.type-select-option[aria-selected="true"] .type-select-icon { color: var(--gold); }
/* Sous-types : sous leur type, en retrait (l'icône, celle du type, ne sert qu'au bouton) */
.type-select-option.type-select-sub { padding: 0.4rem 0.7rem 0.4rem 2.6rem; font-size: 0.85rem; color: var(--gray-600); }
.type-select-option.type-select-sub .type-select-icon { display: none; }
.type-select-option:not(.type-select-sub) { font-weight: 600; }
.type-select-option:not(.type-select-sub):not(:first-child) { margin-top: 0.25rem; }
.type-select-menu { max-height: 360px; }
/* Champ de recherche du type (même style que celui des villes), fixé en haut de la liste */
.type-select-search {
  position: sticky;
  top: -0.4rem;
  z-index: 1;
  margin: -0.4rem -0.4rem 0.3rem;
  padding: 0.5rem 0.75rem;
  background: var(--blanc);
  list-style: none;
}
.type-select-search .form-control {
  height: 40px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--noir);
  box-shadow: none;
}
.type-select-search .form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light);
}
.type-select-option[hidden] { display: none; }
.type-select-empty { padding: 0.5rem 0.7rem; font-size: 0.85rem; color: var(--gray-400); list-style: none; }
.search-btn {
  width: 100%;
  height: 52px;
  background: var(--gold);
  color: var(--blanc);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
      padding: 8px;
}
.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--gold-glow);
}
.search-btn { min-width: 130px; }

/* Plus de critères */
.search-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 52px;
  padding: 0 1rem;
  white-space: nowrap;
  background: var(--blanc);
  color: var(--noir);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}
.search-more-btn svg { color: var(--gold); }
.search-more-btn:hover,
.search-more-btn.active { border-color: var(--gold); color: var(--gold); }
.search-more-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--blanc);
  font-size: 0.7rem;
  line-height: 20px;
  text-align: center;
}
.search-more-panel {
  margin-top: 0.75rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}
.search-features {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 2rem;
  margin-top: 1rem;
}
.search-features-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.search-features-group legend {
  float: none;
  width: auto;
  margin-bottom: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.search-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.search-chip { position: relative; margin: 0; cursor: pointer; }
.search-chip input { position: absolute; opacity: 0; pointer-events: none; }
.search-chip span {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--blanc);
  font-size: 0.85rem;
  color: var(--noir);
  transition: all 0.2s;
}
.search-chip:hover span { border-color: var(--gold); }
.search-chip input:checked + span { background: var(--gold-light); border-color: var(--gold); color: var(--gold); font-weight: 600; }
.search-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--gold-light); }
.search-reset {
  margin-left: auto;
  padding: 0.45rem 0;
  border: 0;
  background: none;
  font-size: 0.8rem;
  color: var(--gray-400);
  text-decoration: underline;
  cursor: pointer;
}
.search-reset:hover { color: var(--gold); }

/* Champ Localité : même hauteur et même alignement que les autres champs de la barre.
   Les !important l'emportent sur les styles en ligne posés par le script de index.php. */
.search-inner .bootstrap-select > .dropdown-toggle {
  height: 52px;
  min-height: 52px;
  padding: 0 2rem 0 1rem;
}
.search-inner .bootstrap-select .filter-option {
  display: flex !important;
  align-items: center;
  padding: 0 !important;
}
.search-inner .bootstrap-select .filter-option-inner { display: block !important; height: auto !important; min-width: 0; }
.search-inner .bootstrap-select .filter-option-inner-inner {
  top: auto !important;
  transform: none !important;
  display: block !important;
}

/* Localités groupées par délégation */
.search-location + .dropdown-menu .dropdown-header,
.bootstrap-select .dropdown-menu .dropdown-header {
  padding: 0.6rem 1rem 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.bootstrap-select .dropdown-menu .dropdown-item.opt-delegation { font-weight: 600; }
.bootstrap-select .dropdown-menu .dropdown-item.opt-localite { padding-left: 1.75rem; }
.bootstrap-select .dropdown-menu .dropdown-divider { margin: 0.3rem 0; }
/* Mobile / tablette : champs de même hauteur, « Rechercher » en grand bouton pleine largeur,
   « Plus de critères » en lien discret centré dessous */
@media (max-width: 991.98px) {
  .search-inner .search-field,
  .search-inner .bootstrap-select > .dropdown-toggle { height: 48px; min-height: 48px; }
  .search-inner .label { margin-bottom: 0.35rem !important; }
  .search-inner .search-field { font-size: 0.84rem; padding-left: 0.7rem; }
  .search-inner select.search-field { padding-right: 26px; background-position: right 10px center; }
  .search-inner .type-select-btn { gap: 0.4rem; padding-right: 0.6rem; }
  .search-inner .type-select-icon svg { width: 16px; height: 16px; }
  .search-actions { flex-direction: column-reverse; gap: 0.25rem !important; margin-top: 0.5rem; }
  .search-actions .search-btn { width: 100%; height: 50px; font-size: 0.8rem; }
  .search-actions .search-more-btn {
    align-self: center;
    height: auto;
    padding: 0.55rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--gold);
    font-size: 0.72rem;
  }
  .search-actions .search-more-btn:hover,
  .search-actions .search-more-btn.active { background: transparent; color: var(--gold); }
  .search-reset { margin-left: 0; }
}

/* reCAPTCHA chargé à la demande : sa place est réservée pour éviter que la page ne bouge */
.g-recaptcha { min-height: 78px; }

/* Property Cards */
.prop-card {
  background: var(--blanc);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
  text-decoration: none;
  color: inherit;
  display: block;
}
.prop-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.prop-location-link {
  cursor: pointer;
  transition: color 0.2s;
}
.prop-location-link:hover,
.prop-location-link:focus-visible {
  color: var(--gold);
  text-decoration: underline;
  outline: none;
}
.prop-card .prop-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.prop-card .prop-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.prop-card:hover .prop-img {
  transform: scale(1.08);
}
.prop-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prop-ref {
  position: absolute;
  bottom: 1rem; left: 1rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #ea812d;
  color: white;
  backdrop-filter: blur(4px);
}

/* Section Divider */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-label .line {
  width: 40px; height: 1px;
  background: var(--gold);
}
.section-label span {
  color: var(--gold);
}
.inner-banner {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;

    /* (ancienne image banner2.png : fichier inexistant et de toute façon masquée par l'overlay noir) */
    background-position: bottom center;
    background-size: cover;
    background-repeat: no-repeat;

    /* Image fixe lors du scroll */
    background-attachment: fixed;

    overflow: hidden;
}

/* Overlay */
.inner-banner-overlay {
    position: absolute;
    inset: 0;

    background: #000;

    z-index: 1;
}

/* Contenu au-dessus de l'overlay */
.inner-banner .container {
    position: relative;
    z-index: 2;
}
/* Stats */
.stats-section {
    position: relative;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;

    padding: 5rem 0;
    overflow: hidden;
}



/* Overlay */
.stats-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* Le contenu doit passer au-dessus de l'overlay */
.stats-section .container {
    position: relative;
    z-index: 2;
}

/* Texte */
.stats-section .label {
    color: rgba(255, 255, 255, 0.75);
}

/* Chiffres */
.stats-section .stat-number {
    color: #fff;
}
/* Features */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--blanc);
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}
.feature-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.feature-grid-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg {
  color: var(--gold);
}

/* Testimonial */
.testimonial-card {
  text-align: center;
  padding: 3rem 2rem;
}
.testimonial-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--gold-light);
}

/* FAQ */
.faq-item {
  background: var(--blanc);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: var(--gold); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--noir);
  cursor: pointer;
}
.faq-icon {
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1);
}
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Contact Cards */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--blanc);
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}
.contact-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { color: var(--gold); }

/* Floating Contact : un bouton animé qui ouvre la liste des contacts */
.fab-contact {
  --fab-accent: #ea812d;
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 999;
  /* Le conteneur laisse passer les clics : seul le bouton (et la liste ouverte) les capte,
     sinon la zone de la liste fermée bloquait les champs situés dessous */
  pointer-events: none;
}
.fab-contact-toggle {
  pointer-events: auto;
  position: relative;
  width: 62px;
  height: 62px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #f39a4c, var(--fab-accent));
  color: var(--blanc);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(234,129,45,0.45);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
  animation: fab-pop 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.6s both;
}
.fab-contact-toggle:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(234,129,45,0.55); }
.fab-contact-toggle:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
/* Halos qui pulsent tant que le menu est fermé */
.fab-contact-toggle::before,
.fab-contact-toggle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--fab-accent);
  animation: fab-ring 2.4s ease-out infinite;
  pointer-events: none;
}
.fab-contact-toggle::after { animation-delay: 1.2s; }
.fab-contact.open .fab-contact-toggle::before,
.fab-contact.open .fab-contact-toggle::after { animation: none; opacity: 0; }
.fab-contact-toggle svg {
  position: absolute;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s;
}
.fab-icon-chat { animation: fab-wiggle 4s ease-in-out 2s infinite; }
.fab-icon-close { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.fab-contact.open .fab-icon-chat { opacity: 0; transform: rotate(90deg) scale(0.5); animation: none; }
.fab-contact.open .fab-icon-close { opacity: 1; transform: rotate(0) scale(1); }
.fab-contact.open .fab-contact-toggle { background: var(--noir); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* La liste est posée au-dessus du bouton (hors du flux) : fermée, elle n'occupe aucune place */
.fab-contact-list {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  inset-inline-end: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 0.4s;
}
.fab-contact.open .fab-contact-list { pointer-events: auto; visibility: visible; transition-delay: 0s; }
/* Chaque contact sort à son tour (--i), et rentre dans l'ordre inverse */
.fab-contact-list li {
  opacity: 0;
  transform: translateY(24px) scale(0.6);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  transition-delay: calc((4 - var(--i)) * 0.03s);
}
.fab-contact.open .fab-contact-list li {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: calc(var(--i) * 0.06s);
}
.fab-contact-list a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.fab-contact-label {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--blanc);
  color: var(--noir);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: color 0.2s;
}
.fab-contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--noir);
  color: var(--fab-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(234,129,45,0.35);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.25s, background 0.25s, color 0.25s;
}
.fab-contact-list a:hover .fab-contact-icon,
.fab-contact-list a:focus-visible .fab-contact-icon { background: var(--fab-accent); color: var(--blanc); transform: scale(1.1); }
.fab-contact-list a:hover .fab-contact-label { color: var(--fab-accent); }
.fab-contact-list a:focus-visible { outline: none; }
.fab-contact-icon.fab-whatsapp { color: #25d366; border-color: rgba(37,211,102,0.4); }
.fab-contact-list a:hover .fab-whatsapp { background: #25d366; color: var(--blanc); }

@keyframes fab-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes fab-wiggle {
  0%, 82%, 100% { transform: rotate(0); }
  86% { transform: rotate(-14deg); }
  90% { transform: rotate(12deg); }
  94% { transform: rotate(-8deg); }
  97% { transform: rotate(4deg); }
}
@keyframes fab-pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .fab-contact-toggle, .fab-icon-chat, .fab-contact-toggle::before, .fab-contact-toggle::after { animation: none; }
  .fab-contact-list li { transition: opacity 0.2s; transform: none; }
}
/* Arabe : le bouton passe à gauche (l'alignement des flex suit déjà le sens rtl) */
[dir="rtl"] .fab-contact { right: auto; left: 28px; }
@media (max-width: 767.98px) {
  [dir="rtl"] .fab-contact { left: 20px; }
}

/* Footer */
.site-footer {
  background: var(--noir);
  color: rgba(255,255,255,0.5);
  padding-top: 5rem;
}
.site-footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.3s;
}
.site-footer a:hover { color: var(--gold); }

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { top: -100%; }
  50% { top: 0%; }
  100% { top: 100%; }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* Responsive */
@media (max-width: 768px) {
  .text-display { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .hero-content .text-display { font-size: clamp(2rem, 8.6vw, 3.4rem); line-height: 1.02; }
  .hero-bg { background-image: url('../images/banner2-mobile.webp'); }
  .brand-logo { width: 104px; padding: 4px 8px; border-radius: 12px; }
  .hero-content p { font-size: 0.95rem !important; }
  /* Shorter hero on phones so the search panel shows without scrolling */
  .hero-section { height: auto; min-height: 0; align-items: flex-end; padding: 110px 0 80px; }
  .hero-content { padding-bottom: 0; }
  .hero-content .label { margin-bottom: 0.5rem !important; }
  .hero-content .text-display { margin-bottom: 0.75rem !important; }
  .scroll-indicator { display: none; }
  .search-bar { margin-top: -56px; margin-bottom: 48px; }
  .search-inner { padding: 1rem; }
  .search-inner .label { font-size: 0.62rem; margin-bottom: 0.3rem !important; }
  .search-field, .search-btn { height: 44px; }
  .search-field { font-size: 0.85rem; padding: 0 0.7rem; }
  .type-select-btn { gap: 0.4rem; min-width: 0; }
  .type-select-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
  .navbar-custom, .navbar-custom.scrolled { height: 86px; }
  .stat-number { font-size: 2.2rem; }
  .fab-contact { bottom: 20px; right: 20px; }
  .fab-contact-toggle { width: 56px; height: 56px; }
}
#features .list-features{

    padding:0;

    margin:0

}

#features .list-features li {

    width: 32%;

    display: inline-block;

}

#features .list-features li.d-block {

    width: 100%;

    font-weight: 700;

    margin-bottom: 10px;

    margin-top: 10px;

}
.list-features a {
    color: #000;
}
/* Pagination */
.pagination-nav {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.pagination-nav .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
  border-radius: var(--radius-sm);
}

.pagination-nav .page-item {
  border: none;
}

.pagination-nav .page-item:first-child .page-link,
.pagination-nav .page-item:last-child .page-link {
  font-size: 1.1rem;
  line-height: 1.2;
}

.pagination-nav .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--blanc);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.pagination-nav .page-link:hover {
  background: var(--gold-light);
  color: var(--gold);
  border-color: var(--gold);
}

.pagination-nav .page-item.active .page-link {
  background: var(--gold);
  color: var(--blanc);
  border-color: var(--gold);
  font-weight: 600;
  box-shadow: 0 4px 12px var(--gold-glow);
  z-index: 1;
}

.pagination-nav .page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--blanc);
  color: var(--gray-400);
  border-color: var(--gray-200);
}

@media (max-width: 768px) {
  .pagination-nav .page-link {
    min-width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    font-size: 0.8rem;
  }
}

/* Bootstrap Select Custom */
.bootstrap-select {
  width: 100% !important;
  border: none;
  background: transparent;
}

.bootstrap-select > .dropdown-toggle {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 15px 2rem 15px 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--noir);
  background: var(--blanc);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239c958d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: all 0.3s;
  box-shadow: none !important;
  min-height: 52px;
  height: auto;
}

.bootstrap-select > .dropdown-toggle:focus,
.bootstrap-select.show > .dropdown-toggle {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light) !important;
}

.bootstrap-select > .dropdown-toggle::after,
.bootstrap-select > .dropdown-toggle .caret,
.bootstrap-select > .dropdown-toggle .bs-caret {
  display: none !important;
  content: none !important;
  border: none !important;
}

.bootstrap-select .dropdown-menu {
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
}

.bootstrap-select .dropdown-menu .bs-searchbox {
  padding: 0.5rem 0.75rem;
}

.bootstrap-select .dropdown-menu .bs-searchbox input {
  height: 40px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--noir);
}

.bootstrap-select .dropdown-menu .bs-searchbox input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light);
}

.bootstrap-select .dropdown-menu .dropdown-item {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--noir);
  padding: 0.5rem 1rem;
}

.bootstrap-select .dropdown-menu .dropdown-item:hover,
.bootstrap-select .dropdown-menu .dropdown-item:focus,
.bootstrap-select .dropdown-menu .dropdown-item.active {
  background: var(--gold-light);
  color: var(--gold);
}

.bootstrap-select .dropdown-menu .no-results {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--gray-400);
  padding: 0.5rem 1rem;
}

.bootstrap-select .filter-option {
  height: 100% !important;
  padding: 0 2rem 0 1rem !important;
  margin: 0 !important;
  top: 0 !important;
}

.bootstrap-select .filter-option-inner {
  height: 100% !important;
}

.bootstrap-select .filter-option-inner-inner {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--noir);
  position: relative !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: inline-block !important;
  line-height: 1.2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.bootstrap-select .bs-placeholder .filter-option-inner-inner {
  color: var(--gray-400);
}

@media (max-width: 768px) {
  .bootstrap-select > .dropdown-toggle {
    height: 48px;
    font-size: 0.85rem;
  }
}
