/* ===========================
   IMMO EXPRESS — Main Styles
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --navy: #0B1F3A;
  --navy-mid: #122847;
  --navy-light: #1a3560;
  --white: #ffffff;
  --off-white: #F7F8FA;
  --gray: #8B95A5;
  --gray-light: #E8ECEF;
  --gold: #C9A84C;
  --gold-light: #E8D5A3;
  --red: #C0392B;
  --red-light: #e74c3c;
  --emerald: #2D7A6B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, padding 0.3s;
}

nav.scrolled {
  background: rgba(11,31,58,0.97);
  backdrop-filter: blur(12px);
  padding: 0.8rem 4rem;
  box-shadow: 0 2px 30px rgba(0,0,0,0.2);
}

.logo img { height: 58px; width: auto; display: block; }
.logo { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  font-weight: 500 !important;
  transition: background 0.3s !important;
}

.nav-cta:hover { background: var(--red-light) !important; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: var(--navy);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(11,31,58,0.97) 0%, rgba(11,31,58,0.72) 60%, rgba(11,31,58,0.5) 100%),
    url('../images/hero-bg.jpg') center/cover no-repeat;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(192,57,43,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,57,43,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-accent {
  position: absolute;
  right: -8%;
  top: 8%;
  width: 580px;
  height: 580px;
  border: 1px solid rgba(192,57,43,0.1);
  border-radius: 50%;
  pointer-events: none;
}

.hero-accent::after {
  content: '';
  position: absolute;
  inset: 45px;
  border: 1px solid rgba(192,57,43,0.06);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10rem 4rem 6rem;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--red-light);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--red-light);
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: var(--white);
  line-height: 1.1;
  max-width: 800px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero h1 em { font-style: italic; color: var(--red-light); }

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 3rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(192,57,43,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 1rem 2rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1s;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: var(--white);
  font-weight: 300;
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  display: block;
}

/* ---- SECTIONS ---- */
section { padding: 7rem 4rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-tag {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-tag::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--red);
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.section-sub {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 550px;
  font-weight: 300;
}

/* ---- PROCESS ---- */
.process-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.process-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(192,57,43,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,57,43,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.process-section .section-title { color: var(--white); }
.process-section .section-sub { color: rgba(255,255,255,0.45); }
.process-section .section-tag { color: var(--red-light); }
.process-section .section-tag::before { background: var(--red-light); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 4rem;
}

.step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 3rem 2.5rem;
  transition: background 0.3s;
}

.step:hover { background: rgba(255,255,255,0.07); }

.step-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  color: rgba(192,57,43,0.15);
  line-height: 1;
  margin-bottom: 1.5rem;
  display: block;
}

.step-icon {
  width: 48px;
  height: 48px;
  background: rgba(192,57,43,0.1);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--red-light);
}

.step h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.8rem;
  font-weight: 400;
}

.step p {
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 300;
}

.step-badge {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--red-light);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

/* ---- WHY ---- */
.why-section { background: var(--off-white); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 4rem;
}

.why-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.why-card {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--gray-light);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.why-card:hover { box-shadow: 0 8px 40px rgba(11,31,58,0.08); transform: translateY(-2px); }
.why-card:hover::after { transform: scaleX(1); }

.why-icon { color: var(--navy); margin-bottom: 0.8rem; display: block; }

.why-card h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.why-card p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.6;
  font-weight: 300;
}

.why-visual { position: relative; }

.why-img-wrap {
  width: 100%;
  height: 500px;
  background: url('../images/maison-exemple.png') center/cover no-repeat;
  border-radius: 2px;
}

.why-badge {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  background: var(--white);
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(11,31,58,0.15);
  min-width: 200px;
}

.why-badge-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--navy);
  display: block;
}

.why-badge-text { font-size: 0.8rem; color: var(--gray); font-weight: 300; }

/* ---- FOR WHO ---- */
.forwho-section { background: var(--white); }

.situations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.situation {
  padding: 2rem;
  border: 1px solid var(--gray-light);
  transition: all 0.3s;
}

.situation:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 30px rgba(11,31,58,0.08);
}

.sit-icon { color: var(--red); display: block; margin-bottom: 1rem; }

.situation h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.situation p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.65;
  font-weight: 300;
}

/* ---- TESTIMONIALS ---- */
.testimonials-section { background: var(--navy); }
.testimonials-section .section-title { color: var(--white); }
.testimonials-section .section-tag { color: var(--red-light); }
.testimonials-section .section-tag::before { background: var(--red-light); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.testimonial {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem;
}

.quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  color: rgba(192,57,43,0.2);
  line-height: 0.5;
  margin-bottom: 1.5rem;
  display: block;
}

.testimonial p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author { display: flex; align-items: center; gap: 1rem; }

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 1px solid rgba(192,57,43,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--red-light);
  font-weight: 500;
}

.author-name { font-size: 0.85rem; color: var(--white); font-weight: 500; display: block; }
.author-info { font-size: 0.75rem; color: rgba(255,255,255,0.35); display: block; }
.stars { color: var(--red-light); font-size: 0.75rem; margin-bottom: 0.3rem; }

/* ---- TRUST ---- */
.trust-section { background: var(--off-white); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.trust-item {
  background: var(--white);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--gray-light);
}

.trust-icon { color: var(--navy); margin-bottom: 1rem; display: block; }

.trust-item h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.trust-item p { font-size: 0.78rem; color: var(--gray); line-height: 1.6; font-weight: 300; }

/* ---- CTA ---- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(192,57,43,0.1) 0%, transparent 60%);
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--white);
  max-width: 700px;
  margin: 0 auto 1rem;
  position: relative;
}

.cta-section p {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  margin-bottom: 3rem;
  font-weight: 300;
  position: relative;
}

/* ---- FORM ---- */
.form-section { background: var(--white); }

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  margin-top: 4rem;
}

.form-desc h3 { font-size: 1.8rem; color: var(--navy); margin-bottom: 1rem; }

.form-desc p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  font-weight: 300;
}

.form-guarantee {
  background: rgba(45,122,107,0.06);
  border-left: 2px solid var(--emerald);
  padding: 1rem 1.5rem;
}

.form-guarantee p { font-size: 0.82rem; color: var(--emerald); margin: 0; font-weight: 400; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field label {
  font-size: 0.72rem;
  color: var(--gray);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input, .field select, .field textarea {
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-light);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 2px;
}

.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.field textarea { resize: vertical; min-height: 100px; }

.submit-btn {
  background: var(--red);
  color: var(--white);
  padding: 1.1rem 2rem;
  border: none;
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.submit-btn:hover {
  background: var(--red-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(192,57,43,0.25);
}

.success-msg {
  display: none;
  background: rgba(45,122,107,0.08);
  border: 1px solid var(--emerald);
  padding: 2rem;
  text-align: center;
  border-radius: 2px;
}

/* ---- BLOG ---- */
.blog-hero {
  background: var(--navy);
  padding: 10rem 4rem 5rem;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(192,57,43,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,57,43,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.blog-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--white); position: relative; }
.blog-hero p { color: rgba(255,255,255,0.5); font-size: 1rem; font-weight: 300; max-width: 500px; position: relative; margin-top: 1rem; }

.blog-section { background: var(--off-white); padding: 5rem 4rem; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  transition: all 0.3s;
  overflow: hidden;
}

.blog-card:hover {
  box-shadow: 0 8px 40px rgba(11,31,58,0.1);
  transform: translateY(-3px);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  background: var(--navy-light);
  object-fit: cover;
  display: block;
}

.blog-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
}

.blog-card-body { padding: 1.8rem; }

.blog-card-tag {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  display: block;
  margin-bottom: 0.6rem;
}

.blog-card h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.7rem;
  line-height: 1.3;
  font-weight: 400;
}

.blog-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.blog-card-meta {
  font-size: 0.75rem;
  color: var(--gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-light);
}

.blog-card-link {
  font-size: 0.78rem;
  color: var(--red);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.blog-card-link:hover { color: var(--red-light); }

/* ---- FOOTER ---- */
footer {
  background: #060F1C;
  padding: 4rem;
  color: rgba(255,255,255,0.35);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo img { height: 50px; width: auto; }

.footer-text { font-size: 0.78rem; line-height: 1.6; text-align: center; }

.footer-links { display: flex; gap: 2rem; }

.footer-links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.3s;
}

.footer-links a:hover { color: rgba(255,255,255,0.6); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- MOBILE ---- */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.8rem 1.5rem; }
  .nav-links { display: none; }
  section { padding: 5rem 1.5rem; }
  .hero-content { padding: 8rem 1.5rem 4rem; }
  .steps { grid-template-columns: 1fr; gap: 1px; }
  .why-grid { grid-template-columns: 1fr; gap: 2rem; }
  .why-cards { grid-template-columns: 1fr; }
  .why-badge { left: 0.5rem; }
  .situations { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .form-layout { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .footer-inner { flex-direction: column; gap: 2rem; text-align: center; }
  .footer-links { justify-content: center; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 8rem 1.5rem 3rem; }
  .blog-section { padding: 3rem 1.5rem; }
}

/* ---- NAV ACTIVE STATE ---- */
.nav-active {
  color: var(--white) !important;
  border-bottom: 1px solid var(--red-light);
  padding-bottom: 2px;
}

/* ---- BURGER MOBILE ---- */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
}

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--navy);
    padding: 1.5rem;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open li a {
    display: block;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.9rem;
  }
}