@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --blue: #1E3A5F;
  --blue-light: #2C5282;
  --blue-pale: #EBF2FA;
  --orange: #E8722A;
  --orange-hover: #D45D15;
  --white: #FFFFFF;
  --dark: #1A1A2E;
  --muted: #6B7280;
  --border: #E5E7EB;
  --bg-light: #F8FAFC;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(30,58,95,0.08);
  --shadow-card: 0 4px 20px rgba(30,58,95,0.10);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== HEADER / NAV ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span { color: var(--orange); }

nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--blue);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--orange-hover) !important; }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 span { color: var(--orange); }

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
}

.btn-orange:hover { background: var(--orange-hover); transform: translateY(-1px); }

.btn-white {
  background: var(--white);
  color: var(--blue);
}

.btn-white:hover { background: var(--bg-light); }

.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.btn-blue:hover { background: var(--blue-light); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline:hover { background: var(--blue); color: var(--white); }

/* ===== SECTIONS ===== */
.section {
  padding: 80px 24px;
}

.section-light { background: var(--bg-light); }
.section-blue { background: var(--blue-pale); }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-header .accent-line {
  width: 60px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 16px auto 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== BIENS CARDS ===== */
.biens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.bien-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.bien-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(30,58,95,0.15);
}

.bien-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.bien-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.bien-card:hover .bien-card-img img {
  transform: scale(1.05);
}

.bien-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.bien-card-badge.vendu {
  background: var(--muted);
}

.bien-card-prix {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--blue);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
}

.bien-card-body {
  padding: 20px;
}

.bien-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.bien-card-location {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bien-card-specs {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.bien-card-specs .spec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.bien-card-specs .spec strong {
  color: var(--dark);
  font-weight: 600;
}

/* ===== ATOUTS / FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--blue-pale);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hover) 100%);
  color: var(--white);
  padding: 60px 24px;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: var(--white);
  padding: 48px 24px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 1.05rem;
  opacity: 0.85;
}

/* ===== QUI SUIS-JE ===== */
.about-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.about-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-text h2 {
  font-size: 1.6rem;
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.stats-row {
  display: flex;
  gap: 32px;
  margin: 32px 0;
}

.stat-item {
  text-align: center;
}

.stat-item .number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
}

.stat-item .label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== FILTRES BIENS ===== */
.filters-bar {
  background: var(--white);
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 32px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 160px;
}

.filter-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
}

.filter-group select,
.filter-group input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--bg-light);
  cursor: pointer;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--blue);
}

.filter-reset {
  padding: 10px 20px;
  background: var(--blue-pale);
  color: var(--blue);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.filter-reset:hover { background: var(--border); }

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.no-results h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.results-count {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ===== PHOTO GALLERY GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 6px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
}

.gallery-grid img:hover { opacity: 0.9; }

.gallery-grid img:first-child {
  grid-row: 1 / 3;
}

.gallery-more {
  position: relative;
  cursor: pointer;
}

.gallery-more img { filter: brightness(0.5); }

.gallery-more span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  pointer-events: none;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 120px;
  }
  .gallery-grid img:first-child {
    grid-column: 1 / 3;
    grid-row: auto;
  }
}

/* ===== BIEN DETAIL PAGE ===== */
.bien-detail {
  max-width: 1000px;
  margin: 0 auto;
}

.bien-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}

.bien-gallery-main {
  height: 400px;
}

.bien-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.bien-gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.bien-gallery-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.bien-info-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

.bien-description h2 {
  font-size: 1.5rem;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 16px;
}

.bien-description p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.bien-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.bien-specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.bien-specs-table td:first-child {
  font-weight: 600;
  color: var(--dark);
  width: 40%;
}

.bien-specs-table td:last-child {
  color: var(--muted);
}

.bien-sidebar {
  position: sticky;
  top: 96px;
}

.bien-prix-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 28px;
  text-align: center;
  border: 2px solid var(--blue-pale);
}

.bien-prix-card .prix {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 4px;
}

.bien-prix-card .prix-detail {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.bien-prix-card .btn { width: 100%; justify-content: center; margin-bottom: 10px; }

.bien-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.bien-tag {
  background: var(--blue-pale);
  color: var(--blue);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--dark);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.contact-info-card {
  background: var(--blue);
  color: var(--white);
  border-radius: 12px;
  padding: 40px;
}

.contact-info-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item .text { font-size: 0.95rem; }
.contact-info-item .text strong { display: block; margin-bottom: 4px; }
.contact-info-item .text span { opacity: 0.8; }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--orange); }

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-overlay.active { display: flex; }

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 300;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .biens-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .bien-info-grid { grid-template-columns: 1fr; }
  .bien-sidebar { position: static; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  nav ul {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  nav ul.open { display: flex; }

  .hero { padding: 48px 20px; }
  .hero h1 { font-size: 2rem; }
  .hero .hero-content { flex-direction: column-reverse !important; text-align: center !important; gap: 24px !important; }
  .hero .hero-content img { width: 140px !important; height: 140px !important; }

  .biens-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .stats-row { flex-wrap: wrap; gap: 20px; }

  .bien-gallery { grid-template-columns: 1fr; }
  .bien-gallery-main { height: 250px; }
  .bien-gallery-side { grid-template-columns: 1fr 1fr; }

  .page-header h1 { font-size: 1.6rem; }
  .section-header h2 { font-size: 1.5rem; }
  .section { padding: 48px 16px; }

  .filters-bar { flex-direction: column; }
  .filter-group { min-width: 100%; }

  .cta-banner h2 { font-size: 1.4rem; }
}
