/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2744;
  --navy-light: #243256;
  --gold: #c8a84b;
  --gold-light: #e0c06a;
  --white: #ffffff;
  --gray-50: #f8f8f6;
  --gray-100: #f0efe9;
  --gray-300: #d1d0c8;
  --gray-600: #6b6a62;
  --gray-800: #2e2d28;
  --font: 'Georgia', serif;
  --font-ui: system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.18);
  --header-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
}

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

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--navy); }

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  height: var(--header-h);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.logo {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.main-nav { flex: 1; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-list a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.15s;
}
.nav-list a:hover { color: var(--gold); }

.nav-cta { flex-shrink: 0; }

/* ===== HERO ===== */
.hero {
  min-height: 560px;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-overlay {
  width: 100%;
  background: linear-gradient(to right, rgba(26,39,68,0.85) 50%, rgba(26,39,68,0.4));
  padding: 80px 0;
}

.hero-content { max-width: 600px; }

.hero-content h1 {
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-sous-titre {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 10px;
}

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

/* ===== SECTION COLORS ===== */
.section-vente { background: var(--white); }
.section-location { background: var(--gray-50); }

/* ===== BIEN 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);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  color: var(--gray-800);
}

.bien-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.bien-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-100);
}

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

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

.bien-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bien-badge--vente { background: var(--navy); color: var(--gold); }
.bien-badge--location { background: var(--gold); color: var(--navy); }

.bien-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bien-card-body h3 {
  font-family: var(--font);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.bien-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.bien-meta span {
  font-size: 0.82rem;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 3px 8px;
  border-radius: 4px;
}

.bien-description {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bien-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray-100);
  padding-top: 14px;
  margin-top: auto;
}

.bien-prix {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.bien-cta {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

/* ===== CONTACT ===== */
.section-contact {
  background: var(--navy);
  color: var(--white);
}

.contact-inner { max-width: 600px; margin: 0 auto; text-align: center; }

.contact-inner h2 {
  font-family: var(--font);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold);
  margin-bottom: 16px;
}

.contact-inner [data-html] { color: rgba(255,255,255,0.8); margin-bottom: 28px; }

.contact-list {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-list li { font-size: 1rem; color: rgba(255,255,255,0.85); }
.contact-list a { color: var(--gold); }
.contact-list a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer { background: var(--gray-800); color: rgba(255,255,255,0.7); }

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 56px 24px 40px;
}

.footer-logo {
  font-family: var(--font);
  font-size: 1.3rem;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

.footer-brand p, .footer-contact p, .footer-horaires p {
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-contact a:hover, .footer-horaires a:hover { color: var(--gold); }

.footer-siret { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 24px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ===== DETAIL PAGE ===== */
.detail-back-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-300);
  padding: 12px 0;
}

.back-link {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 500;
}
.back-link:hover { color: var(--gold); }

.detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.detail-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-image img { aspect-ratio: 4/3; object-fit: cover; }

.detail-image .bien-badge {
  position: absolute;
  top: 16px;
  left: 16px;
}

.detail-content h1 {
  font-family: var(--font);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.2;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.meta-item {
  background: var(--gray-100);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--gray-800);
}

.detail-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 28px;
}

.detail-prix {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
}

.detail-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .biens-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-inner { gap: 16px; }
  .main-nav { display: none; }

  .biens-grid { grid-template-columns: 1fr; }

  .detail-inner { grid-template-columns: 1fr; gap: 32px; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 40px 24px 32px; }

  .hero-overlay { padding: 60px 0; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
}
