/* =============================================================
   PAUL MALECKI IMMOBILIER — STYLES PARTAGÉS
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Raleway:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --cream:  #FAF7F2;
  --beige:  #E8DDD0;
  --brown:  #C4A882;
  --navy:   #1B2A4A;
  --white:  #FFFFFF;
  --black:  #0D0D0D;
  --gold:   #C9A84C;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Raleway', 'Montserrat', sans-serif;

  --transition: all 0.3s ease;
  --shadow:      0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.18);
  --radius: 2px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}
img   { max-width: 100%; height: auto; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
button { font-family: var(--font-sans); cursor: pointer; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
p  { margin-bottom: 1rem; }

/* ── Boutons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-gold  { background: var(--gold);  color: var(--white); }
.btn-navy  { background: var(--navy);  color: var(--white); }
.btn-brown { background: var(--brown); color: var(--white); }
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-gold:hover  { background: #b8923f; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(201,168,76,.40); }
.btn-navy:hover  { background: #24396b; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(27,42,74,.35); }
.btn-brown:hover { background: #b0926d; transform: translateY(-2px); }
.btn-outline-gold:hover { background: var(--gold); color: var(--white); }

/* ── Layout ────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 90px 0; }
.section-alt { background: var(--beige); }
.section-dark { background: var(--black); }

.section-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ── Filet décoratif : ligne · point · ligne (sous le label doré) ── */
.section-label::after {
  content: '';
  display: block;
  width: 130px;
  height: 10px;
  margin: 6px auto 0;
  background:
    radial-gradient(circle, var(--gold) 0, var(--gold) 3px, transparent 3px) center / 10px 10px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left center / calc(50% - 9px) 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right center / calc(50% - 9px) 1.5px no-repeat;
  opacity: .65;
}
/* Aligné à gauche dans la section bio */
.bio-content .section-label::after { margin-left: 0; }

.section-title { color: var(--navy); margin-bottom: 16px; }
.section-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--navy);
  opacity: .75;
  max-width: 580px;
  margin-bottom: 52px;
  line-height: 1.8;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ── Animations ────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity .7s ease, transform .7s ease;
}
.slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity .7s ease, transform .7s ease;
}
.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible,
.slide-left.visible,
.slide-right.visible,
.slide-up.visible { opacity: 1; transform: translate(0); }
.fd-1 { transition-delay: .10s; }
.fd-2 { transition-delay: .20s; }
.fd-3 { transition-delay: .30s; }
.fd-4 { transition-delay: .40s; }
.fd-5 { transition-delay: .50s; }
.fd-6 { transition-delay: .60s; }

/* =============================================================
   HEADER / NAV
   ============================================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 24px rgba(0,0,0,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo           { display: flex; flex-direction: column; }
.logo-main      { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; color: var(--white); letter-spacing: .02em; line-height: 1.2; }
.logo-sub       { font-size: .75rem; color: var(--gold); letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.nav            { display: flex; align-items: center; gap: 32px; }
.nav-link {
  color: rgba(255,255,255,.82);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s ease;
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }
.nav-cta { padding: 10px 24px; font-size: .78rem; }

/* Header scrollé — texte sombre sur fond blanc */
.header.scrolled .logo-main   { color: var(--navy); }
.header.scrolled .nav-link    { color: rgba(27,42,74,.72); }
.header.scrolled .nav-link:hover { color: var(--navy); }
.header.scrolled .hamburger span { background: var(--navy); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,13,13,.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.9rem;
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .btn { font-family: var(--font-sans); font-size: .85rem; }
.mobile-nav-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none; border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: #0f1c2e;
}
/* Image de fond — placez votre photo dans images/hero.jpg */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center 55%;
  filter: brightness(.38);
  z-index: 0;
}
/* Gradient décoratif par-dessus l'image */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 55%, rgba(201,168,76,.12) 0%, transparent 55%),
              radial-gradient(ellipse at 25% 45%, rgba(27,42,74,.35) 0%, transparent 60%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
}
.hero-eyebrow {
  display: block;
  font-size: .9rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-sub {
  color: rgba(255,255,255,.78);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 300;
  margin-bottom: 42px;
  line-height: 1.65;
}
.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.45);
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.5));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(.5); }
  50%       { opacity: 1;  transform: scaleY(1); }
}

/* =============================================================
   BIO
   ============================================================= */
.bio-section { padding: 100px 0; overflow: hidden; scroll-margin-top: 80px; }
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 80px;
  align-items: center;
}
.bio-image-wrapper { position: relative; }
.bio-photo {
  width: 85%; aspect-ratio: 3/4;
  object-fit: cover; object-position: center 20%;
  border-radius: var(--radius);
  border: 1.5px solid var(--gold);
}
/* Placeholder si pas de photo */
.bio-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(145deg, var(--beige) 0%, #d4be9f 100%);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.bio-placeholder-icon { font-size: 4rem; opacity: .5; }
.bio-placeholder-text {
  font-family: var(--font-serif); font-style: italic;
  color: rgba(27,42,74,.5); font-size: 1rem; letter-spacing: .05em;
}
.bio-accent-dot {
  position: absolute; bottom: -18px; right: -18px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--gold); opacity: .12;
}
.bio-badge {
  position: absolute; bottom: 28px; left: -22px;
  background: var(--navy);
  padding: 16px 22px;
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-lg);
  min-width: 170px;
}
.bio-badge-label { font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; font-weight: 600; }
.bio-badge-value { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: var(--white); }
.bio-content-frame { padding: 0; margin-top: 20px; margin-bottom: 14px; }
.bio-text { font-size: 1.15rem; font-weight: 300; line-height: 1.85; color: var(--navy); margin-bottom: 20px; }
.bio-signature { font-family: var(--font-serif); font-style: italic; color: var(--brown); font-size: 1.25rem; display: block; margin-top: 8px; }

/* =============================================================
   SERVICES
   ============================================================= */
.services-section { padding: 100px 0; background: var(--beige); overflow: hidden; scroll-margin-top: 80px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.service-card {
  background: var(--white);
  padding: 38px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--brown));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon  { font-size: 2.2rem; margin-bottom: 16px; display: block; }
.service-title { font-family: var(--font-serif); font-size: 1.25rem; color: var(--navy); margin-bottom: 10px; }
.service-desc  { font-size: 1rem; font-weight: 300; color: var(--navy); opacity: .72; line-height: 1.7; margin: 0; }

/* =============================================================
   AVIS CLIENTS
   ============================================================= */
.reviews-section { padding: 100px 0; scroll-margin-top: 80px; }
.carousel-wrapper { position: relative; overflow: hidden; margin-top: 56px; }
.carousel-track   { display: flex; gap: 24px; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.review-card {
  flex: 0 0 calc(33.333% - 16px);
  background: var(--white);
  padding: 36px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.review-card::before {
  content: '"';
  position: absolute; top: 12px; right: 22px;
  font-family: var(--font-serif); font-size: 4.5rem;
  color: var(--gold); opacity: .22; line-height: 1;
}
.stars { color: var(--gold); font-size: 1.15rem; letter-spacing: 2px; margin-bottom: 14px; }
.review-text   { font-size: 1.05rem; font-weight: 300; line-height: 1.75; color: var(--navy); margin-bottom: 20px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--beige);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 600;
  color: var(--navy); font-size: .85rem; flex-shrink: 0;
}
.review-name { font-weight: 500; font-size: 1rem; color: var(--navy); }
.review-date { font-size: .75rem; color: var(--navy); opacity: .45; }
.carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 40px;
}
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--brown); background: transparent;
  color: var(--navy); display: flex; align-items: center; justify-content: center;
  transition: var(--transition); font-size: 1.1rem;
}
.carousel-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.carousel-dots { display: flex; gap: 8px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brown); opacity: .3;
  transition: var(--transition); border: none; cursor: pointer;
}
.dot.active { opacity: 1; background: var(--gold); transform: scale(1.25); }

/* =============================================================
   CTA SECTION (DARK)
   ============================================================= */
.cta-section { padding: 100px 0; background: #0d1b30; position: relative; overflow: hidden; }
.cta-section::before {
  content: '';
  position: absolute; top: -60%; right: -8%;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.07) 0%, transparent 70%);
}
.cta-inner { text-align: center; position: relative; z-index: 2; }
.cta-inner .section-title    { color: var(--white); }
.cta-inner .section-subtitle { color: rgba(255,255,255,.6); margin-left: auto; margin-right: auto; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { background: var(--white); color: rgba(27,42,74,.55); padding: 56px 0 32px; border-top: 1px solid rgba(0,0,0,.06); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 44px;
}
.footer .logo-main { display: block; margin-bottom: 6px; color: var(--navy); font-size: 1.1rem; }
.footer .logo-sub  { display: block; margin-bottom: 18px; }
.footer-desc { font-size: .83rem; line-height: 1.75; max-width: 300px; }
.footer-logo-bsk { display: block; margin-top: 16px; height: 40px; width: auto; opacity: .85; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { display: inline-flex; transition: opacity .2s, transform .2s; }
.footer-social a:hover { opacity: .8; transform: translateY(-2px); }
.footer-social svg { width: 36px; height: 36px; }
.footer-heading { color: var(--navy); font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-links a { font-size: .83rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: space-between;
  font-size: .75rem;
}
.footer-legal { display: flex; gap: 12px; }
.footer-legal a { transition: var(--transition); }
.footer-legal a:hover { color: var(--navy); }

/* =============================================================
   PAGE ESTIMATION — HERO
   ============================================================= */
.estim-hero {
  padding: 160px 0 72px;
  background: #0d1b30;
  text-align: center;
  position: relative; overflow: hidden;
}
.estim-hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 0;
}
.estim-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(201,168,76,.1) 0%, transparent 60%);
  z-index: 1;
}
.estim-hero-content { position: relative; z-index: 2; }
.estim-hero h1    { color: var(--white); margin-bottom: 16px; font-size: clamp(1.8rem, 4vw, 3rem); }
.estim-hero .sub  {
  max-width: 620px; margin: 0 auto;
  color: rgba(255,255,255,.72);
  font-size: clamp(.9rem, 1.8vw, 1.1rem);
  font-weight: 300; line-height: 1.7;
}

/* =============================================================
   PROGRESS BAR
   ============================================================= */
.progress-bar-section {
  background: var(--white);
  border-bottom: 1px solid rgba(27,42,74,.1);
  padding: 28px 0;
  position: sticky; top: 0; z-index: 100;
}
.progress-steps { display: flex; align-items: center; max-width: 480px; margin: 0 auto; }
.progress-step  { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.progress-step:not(:last-child)::after {
  content: '';
  position: absolute; top: 19px; left: 55%;
  width: 90%; height: 2px;
  background: var(--beige); z-index: 0;
  transition: background .4s ease;
}
.progress-step.done:not(:last-child)::after,
.progress-step.active:not(:last-child)::after { background: var(--gold); }
.step-circle {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--beige);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .82rem; color: var(--navy);
  position: relative; z-index: 1;
  border: 2px solid transparent;
  transition: var(--transition);
}
.progress-step.active .step-circle {
  background: var(--gold); color: var(--white); border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,.2);
}
.progress-step.done .step-circle { background: var(--navy); color: var(--white); border-color: var(--navy); }
.step-label {
  font-size: .68rem; font-weight: 500; letter-spacing: .05em;
  color: var(--navy); opacity: .45; text-align: center; white-space: nowrap;
}
.progress-step.active .step-label { opacity: 1; color: var(--gold); }
.progress-step.done  .step-label  { opacity: .75; }

/* =============================================================
   FORMULAIRE MULTI-ÉTAPES
   ============================================================= */
.form-section { padding: 60px 0 80px; }
.form-card {
  background: var(--white);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  max-width: 740px; margin: 0 auto;
  overflow: hidden;
}
.form-card-header { background: var(--navy); padding: 28px 40px; }
.form-card-header h2 { font-size: 1.35rem; font-weight: 500; color: var(--white); margin-bottom: 4px; }
.form-card-header p  { color: rgba(255,255,255,.58); font-size: .88rem; margin: 0; }
.form-card-body { padding: 40px; }
.form-step { display: none; }
.form-step.active { display: block; }

.form-group { margin-bottom: 28px; }
.form-label {
  display: block; font-size: .8rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 10px;
}
.form-label .req { color: var(--gold); margin-left: 3px; }
.form-input {
  width: 100%; padding: 14px 16px;
  border: 1px solid rgba(27,42,74,.18);
  border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 1rem;
  color: var(--navy); background: var(--cream);
  transition: var(--transition);
  -webkit-appearance: none; appearance: none;
}
.form-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.15); }
.form-input::placeholder { color: rgba(27,42,74,.32); }
.form-input.error { border-color: #e53e3e; }

/* Radio stylisés */
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-opt   { flex: 1; min-width: 110px; }
.radio-opt input { display: none; }
.radio-label {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 16px 10px;
  border: 1px solid rgba(27,42,74,.14);
  border-radius: var(--radius);
  cursor: pointer; transition: var(--transition);
  background: var(--cream); text-align: center;
}
.radio-label .ri { font-size: 1.6rem; }
.radio-label .rt { font-size: .82rem; font-weight: 500; color: var(--navy); }
.radio-opt input:checked + .radio-label {
  border-color: var(--gold); background: rgba(201,168,76,.08);
  box-shadow: 0 0 0 2px rgba(201,168,76,.28);
}

/* Checkbox stylisés */
.checkbox-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-opt { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check-opt input { display: none; }
.check-box {
  width: 22px; height: 22px; border-radius: var(--radius);
  border: 1px solid rgba(27,42,74,.22);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0; background: var(--cream);
}
.check-opt input:checked + .check-box { background: var(--gold); border-color: var(--gold); }
.check-opt input:checked + .check-box::after { content: '✓'; color: var(--white); font-size: .7rem; font-weight: 700; }
.check-text { font-size: .88rem; color: var(--navy); }
.check-icon { font-size: 1.05rem; }

/* Toggle "sans terrain" */
.terrain-toggle { display: flex; align-items: center; gap: 10px; margin-top: 10px; cursor: pointer; }
.terrain-toggle input { display: none; }
.toggle-box {
  width: 22px; height: 22px; border-radius: var(--radius);
  border: 1px solid rgba(27,42,74,.22);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); background: var(--cream); flex-shrink: 0;
}
.terrain-toggle input:checked + .toggle-box { background: var(--navy); border-color: var(--navy); }
.terrain-toggle input:checked + .toggle-box::after { content: '✓'; color: var(--white); font-size: .7rem; font-weight: 700; }
.toggle-text { font-size: .85rem; color: var(--navy); opacity: .72; }

/* Navigation formulaire */
.form-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid rgba(27,42,74,.09);
}
.btn-back {
  background: none; border: 1px solid rgba(27,42,74,.22);
  color: var(--navy); padding: 12px 26px; border-radius: var(--radius);
  font-size: .82rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  transition: var(--transition);
}
.btn-back:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }

/* Boutons formulaire estimation — arrondis désactivés */
.form-card .btn,
.form-card .btn-back { border-radius: var(--radius); }

/* Erreur */
.field-error { font-size: .76rem; color: #e53e3e; margin-top: 6px; display: none; }
.field-error.show { display: block; }

/* Loader */
.loader { display: none; text-align: center; padding: 64px 40px; }
.loader.show { display: block; }
.loader-spinner {
  width: 50px; height: 50px;
  border: 3px solid var(--beige); border-top-color: var(--gold);
  border-radius: 50%; margin: 0 auto 22px;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { color: var(--navy); opacity: .65; font-style: italic; font-size: .95rem; }

/* =============================================================
   RÉSULTATS ESTIMATION
   ============================================================= */
.result-section { display: none; padding: 60px 0 80px; }
.result-section.show { display: block; }

.result-card {
  background: var(--black);
  color: var(--white);
  border-radius: 4px;
  padding: 52px 44px;
  max-width: 740px; margin: 0 auto 28px;
}
.result-card-title {
  text-align: center;
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin-bottom: 6px;
}
.result-card-sub { text-align: center; color: rgba(255,255,255,.5); font-size: .85rem; margin-bottom: 36px; }
.prices-grid {
  display: grid; grid-template-columns: 1fr 1.1fr 1fr;
  gap: 2px; background: rgba(255,255,255,.08);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 32px;
}
.price-col { background: #131313; padding: 28px 16px; text-align: center; }
.price-col.main { background: #1c1c1c; border-top: 2px solid var(--gold); }
.price-col-label { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.38); margin-bottom: 10px; }
.price-col-value {
  font-family: var(--font-serif);
  color: rgba(255,255,255,.65);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem); font-weight: 600;
}
.price-col.main .price-col-value { color: var(--gold); font-size: clamp(1.35rem, 3vw, 1.9rem); }
.result-meta { text-align: center; color: rgba(255,255,255,.45); font-size: .8rem; line-height: 1.65; }
.result-meta strong { color: rgba(255,255,255,.75); }

/* Warning */
.warning-box {
  max-width: 740px; margin: 0 auto 28px;
  background: var(--beige);
  border-left: 4px solid var(--brown);
  padding: 26px 32px; border-radius: 0 var(--radius) var(--radius) 0;
}
.warning-box h3 { font-size: .95rem; color: var(--navy); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.warning-box p  { font-size: .88rem; font-weight: 300; color: var(--navy); line-height: 1.75; margin: 0; }

/* Formulaire de contact (résultats) */
.contact-result-card {
  background: var(--white);
  border-radius: 4px; box-shadow: var(--shadow-lg);
  max-width: 740px; margin: 0 auto; overflow: hidden;
}
.contact-result-header { background: var(--navy); padding: 28px 40px; }
.contact-result-header h2 { color: var(--white); font-size: 1.35rem; margin-bottom: 6px; }
.contact-result-header p  { color: rgba(255,255,255,.6); font-size: .88rem; margin: 0; }
.contact-result-body { padding: 36px 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.success-box { display: none; text-align: center; padding: 48px 40px; }
.success-box.show { display: block; }
.success-box .suc-icon { font-size: 2.8rem; margin-bottom: 14px; }
.success-box h3 { color: var(--navy); margin-bottom: 8px; }
.success-box p  { color: var(--navy); opacity: .65; font-size: .93rem; margin: 0; }

/* Erreur API */
.api-error { display: none; max-width: 740px; margin: 0 auto; text-align: center; padding: 64px 40px; }
.api-error.show { display: block; }
.api-error .ae-icon { font-size: 3rem; margin-bottom: 14px; }
.api-error h3 { color: var(--navy); margin-bottom: 8px; }
.api-error p  { color: var(--navy); opacity: .65; font-size: .93rem; margin-bottom: 32px; }

/* =============================================================
   PAGES LÉGALES
   ============================================================= */
.legal-hero { padding: 140px 0 60px; background: var(--navy); }
.legal-hero h1 { color: var(--white); }
.legal-content { padding: 60px 0 80px; max-width: 800px; margin: 0 auto; }
.legal-content h2 { margin: 36px 0 12px; font-size: 1.3rem; }
.legal-content p  { font-size: .95rem; line-height: 1.8; margin-bottom: 1rem; }

/* =============================================================
   GALERIE BIENS
   ============================================================= */
.biens-section {
  padding: 70px 0 76px;
  background: #0d1b30;
  position: relative;
  overflow: hidden;
}
/* Halo décoratif */
.biens-section::before {
  content: '';
  position: absolute;
  bottom: -18%; left: -4%;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.06) 0%, transparent 65%);
  pointer-events: none;
}
.biens-intro   { margin-bottom: 48px; }
.biens-title   { color: var(--white); }
.biens-subtitle {
  color: rgba(255,255,255,.52);
  margin-left: auto;
  margin-right: auto;
}
.biens-cta { margin-top: 44px; }

/* ── Masonry grid ─────────────────── */
.masonry-gallery {
  columns: 3;
  column-gap: 14px;
}

/* ── Item ─────────────────────────── */
.masonry-item {
  break-inside: avoid;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.masonry-item.visible { opacity: 1; transform: translateY(0); }

/* Stagger par colonne */
.masonry-item:nth-child(3n+2) { transition-delay: .12s; }
.masonry-item:nth-child(3n+3) { transition-delay: .24s; }


/* Bordure or au survol */
.masonry-item::after {
  content: '';
  position: absolute; inset: 0;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .35s ease, transform .35s ease;
  z-index: 2;
}
.masonry-item:hover::after { opacity: .55; transform: scale(1); }

/* Image — zoom léger */
.masonry-item img {
  width: 100%; height: auto; display: block;
  transform: scale(1.05);
  transition: transform .65s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}
.masonry-item:hover img { transform: scale(1.12); }

/* Caption */

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .bio-grid       { grid-template-columns: 1fr 1.1fr; gap: 48px; }
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .review-card    { flex: 0 0 calc(50% - 12px); }
  .footer-grid    { grid-template-columns: 1fr 1fr; }

  /* Galerie biens — tablette : 2 colonnes */
  .masonry-gallery { columns: 2; }
  .biens-cta { margin-top: 44px; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .bio-section, .services-section, .reviews-section, .cta-section { padding: 64px 0; }

  .nav        { display: none; }
  .hamburger  { display: flex; }

  .bio-grid { grid-template-columns: 1fr; gap: 44px; }
  .bio-image-wrapper { max-width: 380px; margin: 0 auto; }
  .bio-badge  { left: 0; bottom: 20px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .service-card  { padding: 26px 20px; }

  .review-card { flex: 0 0 calc(100% - 24px); }

  /* Galerie biens — mobile */
  .biens-section { padding: 64px 0 72px; }

  .form-card-body, .contact-result-body { padding: 24px 20px; }
  .form-card-header, .contact-result-header { padding: 22px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .result-card { padding: 32px 20px; }
  .prices-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .progress-bar-section { padding: 20px 0; position: relative; top: auto; }

  /* Hero page d'accueil — image portrait sur mobile */
  .hero::before {
    background-image: url('images/hero-mobile.jpg');
    background-size: cover;
    background-position: center center;
  }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .checkbox-group { grid-template-columns: 1fr; }
  .radio-opt  { min-width: calc(50% - 5px); }
  .step-label { display: none; }
  .hero h1    { font-size: 2rem; }

  /* Galerie biens — mobile étroit : 1 colonne */
  .masonry-gallery { columns: 1; }

  /* Boutons navigation formulaire — réduits sur mobile */
  .form-nav .btn,
  .form-nav .btn-back {
    padding: 10px 16px;
    font-size: .75rem;
  }
}
