/* VARIABLES (Immobilier, Prestige, Clair, Aéré) */
:root {
  --bg-color: #fdfdfc; 
  --bg-alt: #f4efea; /* Soft Beige/Taupe */
  --text-main: #1a1a1a;
  --text-muted: #666666;
  --text-light: #fdfdfc;
  --accent: #9d8063; /* Warm gold/taupe */
  --accent-hover: #7d644b;
  
  --font-title: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  --transition: all 0.4s ease;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

h1, h2, h3, h4, .brand {
  font-family: var(--font-title);
  font-weight: 500;
}

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

ul { list-style: none; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* NAVBAR */
.navbar {
  position: absolute; /* Overlapping hero initially */
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 0;
  z-index: 100;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.navbar.scrolled {
  position: fixed;
  background: rgba(253, 253, 252, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff; /* Initial text color */
}
.navbar.scrolled .brand { color: var(--text-main); }

.brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
}
.navbar.scrolled .nav-links a { color: var(--text-muted); }

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

/* HERO BUTTON */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-light:hover { background: #fff; color: var(--text-main); }

.btn-solid {
  background: var(--text-main);
  color: #fff;
}
.btn-solid:hover { background: var(--accent); }

/* HERO */
.hero {
  height: 90vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?q=80&w=2000&auto=format&fit=crop') no-repeat center center/cover;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  margin-top: 5rem;
}

.hero-content h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  font-weight: 300;
}

/* SEARCH WIDGET (Simulé) */
.search-widget {
  background: #fff;
  padding: 1rem;
  display: flex;
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
  gap: 1rem;
}

.search-field {
  flex: 1;
  border-right: 1px solid rgba(0,0,0,0.1);
  padding: 0.5rem 1.5rem;
  text-align: left;
}
.search-field:last-of-type { border-right: none; }

.search-field label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.search-field select, .search-field input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

.search-btn {
  background: var(--text-main);
  color: #fff;
  border: none;
  padding: 0 3rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}
.search-btn:hover { background: var(--accent); }

/* SECTIONS */
.section { padding: 8rem 0; }

.section-header {
  margin-bottom: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.section-header h2 {
  font-size: 3rem;
  line-height: 1.1;
}
.section-header p {
  color: var(--text-muted);
  max-width: 400px;
  font-size: 0.95rem;
}

/* GRID BIENS / Properties */
.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.prop-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}
.prop-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.prop-img {
  position: relative;
  height: 350px;
  overflow: hidden;
}
.prop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.prop-card:hover .prop-img img { transform: scale(1.05); }

.prop-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.prop-tag.exclu { background: var(--accent); }

.prop-info { padding: 2rem; }
.prop-price {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.prop-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}
.prop-specs {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-main);
}
.prop-specs span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.prop-specs i { color: var(--accent); }

/* ESTIMATE (CRO Banner) */
.estimate-banner {
  background: var(--bg-alt);
  padding: 6rem 0;
}
.estimate-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: #fff;
  box-shadow: var(--shadow);
}
.est-content { padding: 5rem; }
.est-content .subtitle {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}
.est-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.est-content p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.est-img {
  height: 100%;
  background: url('https://images.unsplash.com/photo-1628611225249-6c3c7c689552?q=80&w=1000&auto=format&fit=crop') center/cover;
}

/* MODAL ESTIMATION */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 999; opacity: 0; visibility: hidden;
  transition: var(--transition); backdrop-filter: blur(5px);
}
.overlay.active { opacity: 1; visibility: visible; }

.modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #fff; padding: 3rem;
  z-index: 1000; width: 90%; max-width: 600px;
  opacity: 0; visibility: hidden; transition: var(--transition);
  text-align: center;
}
.modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-size: 1.5rem; cursor: pointer; color: var(--text-muted);
}
.modal h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-control {
  width: 100%; padding: 1rem;
  background: var(--bg-color); border: 1px solid rgba(0,0,0,0.1);
  font-family: var(--font-body);
}

/* FOOTER */
.footer { background: var(--text-main); color: rgba(255,255,255,0.6); padding: 5rem 0 2rem; }
.footer .disclaimer {
  background: rgba(255,255,255,0.05); padding: 2rem; margin-bottom: 3rem; border: 1px solid rgba(255,255,255,0.1);
}
.footer .disclaimer h4 { color: #fff; margin-bottom: 0.5rem; }

@media (max-width: 1024px) {
  .props-grid, .estimate-wrap { grid-template-columns: 1fr; }
  .search-widget { flex-direction: column; }
  .search-field { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.1); }
  .search-btn { padding: 1rem; }
  .est-img { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-content h1 { font-size: 3rem; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .container { padding: 0 1.5rem; }
}
