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

:root {
  --noir: #0a0a0b;
  --blanc: #ffffff;
  --cream: #f0f4f1;
  --gold: #1B7A3D;
  --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; }

html { scroll-behavior: smooth; }

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

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

.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;
}
.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: 80px;
  transition: all 0.4s ease;
  background: transparent;
}
.navbar-custom.scrolled {
  background: rgba(10,10,11,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 68px;
}
.nav-link-custom {
  color: rgba(255,255,255,0.7);
  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);
}

/* Hero */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  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: 160px;
}

/* Search Bar */
.search-bar {
  position: relative;
  z-index: 20;
  margin-top: -80px;
  margin-bottom: 80px;
}
.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);
}
.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);
}

/* 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-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-card .prop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,10,11,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.prop-card:hover .prop-overlay {
  opacity: 1;
}
.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: rgba(10,10,11,0.6);
  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);
}

/* Stats */
.stat-box {
  text-align: center;
  padding: 2rem;
}
.stat-number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* 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-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 */
.fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--blanc);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px var(--gold-glow);
  transition: all 0.3s;
}
.fab:hover { transform: scale(1.08); }
.fab svg { transition: transform 0.3s; }
.fab.active svg { transform: rotate(45deg); }
.fab-menu {
  position: fixed;
  bottom: 100px; right: 28px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s;
}
.fab-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.fab-menu a {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--noir);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(201,169,110,0.3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: all 0.3s;
}
.fab-menu a:hover {
  background: var(--gold);
  color: var(--noir);
  transform: scale(1.1);
}

/* 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-section { min-height: 480px; align-items: center; padding-top: 64px; }
  .hero-content { padding-bottom: 0; }
  .search-bar { margin-top: -48px; }
  .navbar-custom { height: 64px; }
  .navbar-custom img { padding-top: 10px; }
  .stat-number { font-size: 2.2rem; }
  .fab { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  .fab-menu { bottom: 84px; right: 20px; }
}

/* 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;
  }
}
