/* ============================================================
   CSS — SimRevest — Lotissement de Prestige
   Revest-les-Roches (06830), Alpes-Maritimes
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #3d2b1f;
  background: #f5f0e8;
  -webkit-font-smoothing: antialiased;
}

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4, .logo, .hero-title, .section-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  color: #2d5016;
}

h2.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
}
h2.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #c8a950;
  margin: 12px auto 0;
}
.section-subtitle {
  text-align: center;
  color: #6b5b4e;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- HEADER / NAV ----- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200,169,80,0.2);
  transition: box-shadow 0.3s;
}
.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d5016;
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span {
  font-size: 0.7rem;
  color: #c8a950;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: #3d2b1f;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #c8a950;
  transition: width 0.3s;
}
.nav-links a:hover { color: #2d5016; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.cta-nav {
  background: #c8a950;
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
}
.nav-links a.cta-nav:hover { background: #b89a40; }
.nav-links a.cta-nav::after { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #2d5016;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ----- HERO ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-bg.zoom { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,80,22,0.75) 0%, rgba(61,43,31,0.65) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 20px;
  color: #fff;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(200,169,80,0.25);
  border: 1px solid rgba(200,169,80,0.4);
  color: #c8a950;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero-lotissement {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--c-gold);
  letter-spacing: 8px;
  text-transform: uppercase;
  margin: 10px 0 20px;
  font-weight: 400;
  position: relative;
  display: inline-block;
  padding: 12px 40px;
  border-top: 1px solid rgba(200,169,80,0.35);
  border-bottom: 1px solid rgba(200,169,80,0.35);
}
.hero-lotissement::before,
.hero-lotissement::after {
  content: '◆';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.5rem;
  color: var(--c-gold);
  opacity: 0.6;
}
.hero-lotissement::before { right: 100%; margin-right: 8px; }
.hero-lotissement::after { left: 100%; margin-left: 8px; }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 30px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: inline-block;
  background: #c8a950;
  color: #fff;
  padding: 16px 40px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  letter-spacing: 0.5px;
}
.hero-cta:hover { background: #b89a40; transform: translateY(-2px); }
.hero-cta .arrow { display: inline-block; margin-left: 6px; transition: transform 0.2s; }
.hero-cta:hover .arrow { transform: translateX(4px); }

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  opacity: 0.6;
  font-size: 0.8rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ----- SECTIONS ----- */
.section {
  padding: 90px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-alt {
  background: #fff;
  padding: 90px 20px;
}
.section-dark {
  background: #2d5016;
  color: #f5f0e8;
  padding: 90px 20px;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-title::after { background: #c8a950; }
.section-dark .section-subtitle { color: rgba(245,240,232,0.75); }

/* ----- PROJET ----- */
.projet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.projet-text p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: #4a3b2e;
}
.projet-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}
.projet-highlight-item {
  background: #f5f0e8;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.projet-highlight-item .icon { font-size: 1.3rem; }

.projet-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.projet-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.projet-image:hover img { transform: scale(1.03); }

/* ----- VILLAGE ----- */
.village-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.village-info h3 {
  color: #2d5016;
  margin: 20px 0 8px;
  font-size: 1.15rem;
}
.village-info h3:first-of-type { margin-top: 0; }
.village-info p {
  color: #4a3b2e;
  margin-bottom: 12px;
  font-size: 1.02rem;
}
.village-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.village-stat {
  text-align: center;
  background: #f5f0e8;
  padding: 14px 8px;
  border-radius: 8px;
}
.village-stat .number {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d5016;
}
.village-stat .label {
  font-size: 0.78rem;
  color: #6b5b4e;
  margin-top: 4px;
}
.village-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.village-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* ----- TERRAINS (8 lots) ----- */
.lots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.lot-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(200,169,80,0.15);
}
.lot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.lot-card-header {
  background: #2d5016;
  color: #fff;
  padding: 18px 16px;
  text-align: center;
}
.lot-card-header .lot-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
}
.lot-card-header .lot-sub {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 2px;
}
.lot-card-body {
  padding: 16px;
}
.lot-card-body .lot-detail {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0ebe3;
  font-size: 0.9rem;
}
.lot-card-body .lot-detail:last-child { border-bottom: none; }
.lot-card-body .lot-detail-label { color: #6b5b4e; }
.lot-card-body .lot-detail-value { font-weight: 600; color: #3d2b1f; }
.lot-card-badge {
  display: inline-block;
  background: #c8a950;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 10px;
}
.lot-card-footer {
  padding: 12px 16px;
  text-align: center;
  border-top: 1px solid #f0ebe3;
}
.lot-card-footer a {
  color: #2d5016;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ----- AVANTAGES ----- */
.avantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.avantage-card {
  text-align: center;
  padding: 32px 18px;
  background: #fff;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(200,169,80,0.12);
}
.avantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.avantage-card .icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: block;
}
.avantage-card h4 {
  font-family: 'Playfair Display', serif;
  color: #2d5016;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.avantage-card p {
  font-size: 0.85rem;
  color: #6b5b4e;
  line-height: 1.4;
}

/* ----- GALERIE ----- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(45,80,22,0.3);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay span {
  color: #fff;
  font-size: 1.8rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  background: none;
  border: none;
}
.lightbox-close:hover { opacity: 1; }

/* ----- CONTACT ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #3d2b1f;
  margin-bottom: 5px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #3d2b1f;
  background: #fff;
  transition: border-color 0.3s;
  margin-bottom: 18px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #c8a950;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.contact-form .submit-btn {
  background: #2d5016;
  color: #fff;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  width: 100%;
}
.contact-form .submit-btn:hover { background: #3d6b1e; transform: translateY(-2px); }

.contact-info { padding-top: 0; }
.contact-info h3 {
  font-family: 'Playfair Display', serif;
  color: #2d5016;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.contact-info-item .icon { font-size: 1.3rem; min-width: 30px; }
.contact-info-item strong { display: block; color: #3d2b1f; }
.contact-info-item span { color: #6b5b4e; }

.contact-map {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

#form-status {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  display: none;
  font-size: 0.95rem;
}
#form-status.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
#form-status.error {
  display: block;
  background: #fbe9e7;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ----- FOOTER ----- */
.footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 40px 20px;
  font-size: 0.85rem;
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: #c8a950; margin-bottom: 8px; }
.footer p { margin-bottom: 4px; }
.footer a { color: #c8a950; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .footer-legal { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }

/* ----- ANIMATIONS (fade-in au scroll) ----- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1024px) {
  .projet-grid,
  .village-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .village-stats { grid-template-columns: repeat(2, 1fr); }
  .lots-grid { grid-template-columns: repeat(2, 1fr); }
  .avantages-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .village-image img { height: 300px; }
}

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

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(200,169,80,0.2);
  }
  .nav-links.open { display: flex; }
  .nav-links a.cta-nav { text-align: center; }

  .hero-title { font-size: 2rem; }
  .hero { min-height: 80vh; }

  .section { padding: 60px 16px; }
  .section-alt, .section-dark { padding: 60px 16px; }
  h2.section-title { font-size: 1.7rem; }

  .lots-grid { grid-template-columns: 1fr; }
  .avantages-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }

  .projet-highlights { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }

  .hero-cta { padding: 14px 30px; font-size: 0.95rem; }
}

/* ----- Loading / lazy images ----- */
img.lazy {
  opacity: 0;
  transition: opacity 0.4s;
}
img.lazy.loaded {
  opacity: 1;
}

/* ----- Form honeypot ----- */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}
