/* ============================================
   La Maison de l'Immobilier — Site Vitrine
   Palette : Bleu Marine + Or/Doré
   Mobile-first responsive
   ============================================ */

:root {
  --navy: #0C1E3A;
  --navy-light: #152D54;
  --navy-dark: #070F1F;
  --gold: #C5A55A;
  --gold-light: #D4BA7A;
  --gold-dark: #A88B3D;
  --bg: #F8F9FB;
  --white: #FFFFFF;
  --text: #1A1D26;
  --text-2: #4A5068;
  --text-3: #8B92A8;
  --border: rgba(12, 30, 58, 0.1);
  --shadow-sm: 0 2px 8px rgba(12, 30, 58, 0.06);
  --shadow: 0 4px 24px rgba(12, 30, 58, 0.08);
  --shadow-lg: 0 12px 48px rgba(12, 30, 58, 0.12);
  --r: 12px;
  --r-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

/* SVG card icons */
.card-icon svg, .adv-icon svg {
  display: block;
  margin: 0 auto;
}

.logo-name {
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.logo-sub {
  color: var(--gold);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav links */
.nav-links {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 20px;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.nav-links.open { display: flex; }

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 16px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-links a.nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  text-align: center;
  margin-top: 8px;
  padding: 12px 24px;
}

.nav-links a.nav-cta:hover {
  background: var(--gold-light);
}

.header-phone {
  display: none;
}

/* Desktop nav */
@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
    gap: 4px;
    border: none;
    box-shadow: none;
    align-items: center;
  }

  .nav-links a {
    font-size: 14px;
    padding: 8px 14px;
  }

  .nav-links a.nav-cta {
    margin-top: 0;
    margin-left: 8px;
    border-radius: var(--r);
    padding: 10px 20px;
  }

  .header-phone {
    display: block;
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 16px;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(145deg, #0a192f 0%, #060f1f 100%);
  padding: 60px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(197,165,90,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero h1 {
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1.2px;
  line-height: 1.12;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

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

.hero .subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  margin-top: 16px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  padding: 0 20px;
  position: relative;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 60px;
  margin-top: 32px;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 4px 20px rgba(197,165,90,0.3);
}

.hero-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(197,165,90,0.4);
}

.hero-trust {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
  position: relative;
  padding: 0 20px;
}

.hero-trust span {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-trust .num {
  color: var(--gold);
  font-weight: 800;
  font-size: 15px;
}

@media (min-width: 768px) {
  .hero { padding: 80px 0 100px; }
  .hero h1 { font-size: 44px; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 52px; }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--navy);
}

.section-title p {
  color: var(--text-2);
  font-size: 15px;
  margin-top: 10px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.section-title .bar {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
  margin: 16px auto 0;
}

@media (min-width: 768px) {
  .section { padding: 80px 0; }
  .section-title h2 { font-size: 34px; }
}

/* ============================================
   CARDS GRID
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: var(--transition);
}

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

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  transition: var(--transition);
}

.card-link:hover { gap: 10px; }

/* ============================================
   QUARTIERS GRID
   ============================================ */
.quartiers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) { .quartiers-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .quartiers-grid { grid-template-columns: repeat(4, 1fr); } }

.quartier-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 16px;
  transition: var(--transition);
  text-align: center;
}

.quartier-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.quartier-card .name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.quartier-card .prix {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-dark);
  margin-top: 4px;
}

.quartier-card .detail {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 640px) { .stats-bar { grid-template-columns: repeat(4, 1fr); } }

.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--border);
}

.stat-item .stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -1px;
}

.stat-item .stat-label {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }

.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-size: 48px;
  color: var(--gold);
  font-family: Georgia, serif;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.testimonial p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
  font-style: italic;
}

.testimonial .author {
  margin-top: 16px;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}

.testimonial .author span {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

.stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

/* ============================================
   ADVANTAGES
   ============================================ */
.advantages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) { .advantages { grid-template-columns: repeat(3, 1fr); } }

.advantage {
  text-align: center;
  padding: 32px 24px;
}

.advantage .adv-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.advantage h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.advantage p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(197,165,90,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  position: relative;
}

.cta-section p {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  margin-top: 12px;
  position: relative;
}

.cta-section .hero-cta {
  margin-top: 28px;
}

@media (min-width: 768px) {
  .cta-section h2 { font-size: 34px; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  padding: 4px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-logo .logo-name {
  font-size: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197,165,90,0.15);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 60px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
  transition: all 0.2s;
  letter-spacing: -0.2px;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,168,76,0.3);
}

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

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

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 32px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.page-header h1 {
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  position: relative;
}

.page-header .breadcrumb {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  margin-top: 10px;
  position: relative;
}

.page-header .breadcrumb a {
  color: var(--gold);
}

@media (min-width: 768px) {
  .page-header { padding: 60px 0; }
  .page-header h1 { font-size: 36px; }
}

/* ============================================
   CONTENT LAYOUT
   ============================================ */
.content-section {
  padding: 48px 0;
}

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

.content-section h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.content-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 10px;
}

.content-section p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-section ul {
  list-style: none;
  padding: 0;
}

.content-section ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-2);
  font-size: 15px;
}

.content-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

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

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-card .ci-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-info-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================
   SERVICE DETAIL
   ============================================ */
.service-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child { border-bottom: none; }

@media (min-width: 768px) {
  .service-block { grid-template-columns: 1fr 1fr; }
  .service-block.reverse .service-text { order: -1; }
}

.service-visual {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--r-lg);
  padding: 48px;
  text-align: center;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-visual .sv-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.service-visual .sv-label {
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
}

.service-text h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.service-text p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ============================================
   MAP EMBED
   ============================================ */
.map-container {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 20px;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

@media (min-width: 768px) {
  .map-container iframe { height: 400px; }
}

/* ============================================
   TEAM
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

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

.team-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--gold);
  font-weight: 800;
}

.team-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.team-card .role {
  font-size: 13px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-top: 4px;
}

.team-card p {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 12px;
  line-height: 1.7;
}

/* ============================================
   VALUES
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--gold);
}

.value-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.value-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.value-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

/* ============================================
   SUCCESS MESSAGE
   ============================================ */
.success-msg {
  display: none;
  background: #E8F5E9;
  color: #2E7D32;
  padding: 16px 24px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  margin-top: 16px;
}

.success-msg.show { display: block; }

/* ============================================
   ADDITIONAL PAGES STYLES
   ============================================ */

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 80px 24px 60px;
  text-align: center;
  color: white;
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 16px;
  opacity: 0.75;
  max-width: 500px;
  margin: 0 auto;
}

/* Service Detail */
.service-detail {
  max-width: 700px;
  margin: 0 auto;
}
.service-detail h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.service-detail p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.service-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
}
.service-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.service-list li:last-child { border-bottom: none; }

/* Stats Inline */
.stats-inline {
  display: flex;
  gap: 24px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
}
.stat-val {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.stat-lbl {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* btn-secondary */
.btn-secondary {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.2s;
  letter-spacing: -0.2px;
  cursor: pointer;
  font-family: inherit;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}
/* btn-secondary on light backgrounds */
.section .btn-secondary,
.section-alt .btn-secondary {
  color: var(--navy);
  border-color: var(--navy);
}
.section .btn-secondary:hover,
.section-alt .btn-secondary:hover {
  background: var(--navy);
  color: white;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-form-wrap h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 24px;
}
.contact-form-wrap .fg {
  margin-bottom: 16px;
}
.contact-form-wrap label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-form-wrap input,
.contact-form-wrap select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: #FAFAF8;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s;
}
.contact-form-wrap input:focus,
.contact-form-wrap select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,54,93,0.08);
}

/* Info Cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.info-card {
  background: var(--bg-alt, #F5F5F0);
  border-radius: 12px;
  padding: 20px;
}
.info-card h3 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}
.info-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* About Grid */
.about-content h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 20px;
}
.about-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Zone Grid */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.zone-item {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* Form Group (general) */
.fg {
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .page-hero h1 { font-size: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .zone-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inline { justify-content: center; }
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid #e8e8e8; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary { padding: 20px 24px; font-weight: 600; font-size: 16px; color: var(--navy); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.faq-item summary::after { content: "+"; font-size: 24px; color: var(--gold); font-weight: 300; transition: transform .3s; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 24px 20px; color: #555; line-height: 1.7; }
.faq-item a { color: var(--gold); text-decoration: underline; }


/* === MOBILE FIXES === */

/* Fix: font trop petit sur mobile */
.faq-item summary { font-size: 15px; }

/* Fix: tap targets min 44px (Google requirement) */
.btn, .nav-links a, .faq-item summary {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Fix: container overflow on small screens */
body { overflow-x: hidden; }
.container { overflow-wrap: break-word; word-wrap: break-word; }
img { max-width: 100%; height: auto; }

/* Fix: quartier cards readable on small screens */
@media (max-width: 639px) {
  .quartiers-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .quartier-card { padding: 10px 8px; font-size: 13px; }
  .stats-bar { gap: 10px; }
  .stat-item { padding: 12px 8px; }
  .stat-number { font-size: 22px; }
  .hero h1 { font-size: 26px; line-height: 1.2; }
  .hero .subtitle { font-size: 14px; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 22px; }
  .faq-item summary { font-size: 14px; padding: 16px; }
  .faq-item p { padding: 0 16px 16px; font-size: 14px; }
  .footer { padding: 30px 0 20px; }
  .footer-grid { gap: 20px; }
  .testimonial-card { padding: 20px 16px; }
  .advantage-card { padding: 24px 16px; }
  .cta-section h2 { font-size: 22px; }
  .cta-section p { font-size: 14px; }
}

/* Fix: tables/preformatted content overflow */
pre, code, table { overflow-x: auto; max-width: 100%; }

/* Fix: smooth scroll for anchor links */
html { scroll-behavior: smooth; }

/* Fix: CLS prevention - reserve space for images */
.hero { min-height: 400px; }
@media (min-width: 768px) { .hero { min-height: 520px; } }

/* === BIENS EN VENTE === */
.biens-section { background: var(--light-bg, #f8f9fa); }
.biens-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .biens-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .biens-grid { grid-template-columns: repeat(3, 1fr); } }
.bien-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; position: relative; }
.bien-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.bien-img { height: 200px; background-color: #e8e8e8; }
.bien-badge { position: absolute; top: 12px; left: 12px; background: var(--navy, #0a192f); color: white; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: .5px; }
.bien-body { padding: 16px; }
.bien-prix { font-size: 22px; font-weight: 800; color: var(--navy, #0a192f); }
.bien-titre { font-size: 14px; color: #555; margin-top: 4px; line-height: 1.4; }
.bien-details { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.bien-details span { font-size: 12px; color: #767676; background: #f4f4f4; padding: 4px 8px; border-radius: 6px; }


/* Blog Grid & Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.blog-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--cream, #f5f5f0);
}
.blog-card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}
.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 12px;
}
.blog-card-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}
.blog-card-tag {
  display: inline-block;
  background: var(--cream, #f5f5f0);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  align-self: flex-start;
}
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
