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

:root {
  --cream: #EEF3F8;
  --warm-white: #F7FAFD;
  --dark: #0B2340;
  --brown: #1B4F72;
  --gold: #2E86C1;
  --gold-light: #7FB9E8;
  --text: #1C2B3A;
  --muted: #6B7E90;
  --border: #D3DEE8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* HERO */
.hero {
  background: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(46,134,193,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(27,79,114,0.28) 0%, transparent 50%);
}

.hero-texture {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.nav {
  position: relative;
  z-index: 10;
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo { display: flex; flex-direction: column; gap: 2px; }

.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.nav-badge {
  background: rgba(46,134,193,0.18);
  border: 1px solid rgba(46,134,193,0.35);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  z-index: 5;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--gold-light);
  opacity: 0.5;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

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

.hero-desc {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.scroll-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.3s;
}

.scroll-cta:hover { color: var(--gold-light); }

.scroll-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.hero-stats {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  right: 3rem;
  display: flex;
  gap: 3rem;
  z-index: 5;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 2rem;
  justify-content: center;
}

.stat { text-align: center; }

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--gold-light);
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* FORM SECTION */
.form-section { background: var(--warm-white); padding: 5rem 2rem; }
.form-container { max-width: 780px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.1;
}

.section-title em { font-style: italic; color: var(--brown); }

/* STEPS */
.steps-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 3rem;
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.4s;
  position: relative;
  z-index: 2;
}

.step-dot.active { border-color: var(--gold); background: var(--gold); color: #fff; }
.step-dot.done { border-color: var(--brown); background: var(--brown); color: #fff; }
.step-dot.done::after { content: '\2713'; }
.step-dot.done span { display: none; }

.step-line { width: 60px; height: 1.5px; background: var(--border); transition: background 0.4s; }
.step-line.done { background: var(--brown); }

/* FORM CARDS */
.form-step { display: none; animation: fadeSlide 0.4s ease; }
.form-step.active { display: block; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-grid.single { grid-template-columns: 1fr; }

.field { display: flex; flex-direction: column; gap: 0.4rem; }

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

.field input,
.field select,
.field textarea {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); }

.field textarea { resize: vertical; min-height: 90px; }

/* Type selector */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.type-card {
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}

.type-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(46,134,193,0.14);
}

.type-card.selected { border-color: var(--gold); background: rgba(46,134,193,0.07); }
.type-icon { font-size: 1.8rem; margin-bottom: 0.4rem; }
.type-label { font-size: 0.8rem; font-weight: 500; color: var(--text); }

/* Etat cards */
.etat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.etat-card {
  border: 1.5px solid var(--border);
  border-radius: 5px;
  padding: 0.9rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.etat-card:hover { border-color: var(--gold); color: var(--text); }
.etat-card.selected { border-color: var(--gold); background: rgba(46,134,193,0.07); color: var(--text); }

/* Buttons */
.btn-row { display: flex; gap: 1rem; margin-top: 2rem; justify-content: flex-end; }

.btn-prev {
  padding: 0.9rem 1.8rem;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}

.btn-prev:hover { border-color: var(--brown); color: var(--brown); }

.btn-next {
  padding: 0.9rem 2.2rem;
  border: none;
  border-radius: 3px;
  background: var(--dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-next:hover {
  background: var(--brown);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27,79,114,0.3);
}

.btn-next.gold-btn { background: var(--gold); color: #fff; }
.btn-next.gold-btn:hover { background: var(--gold-light); box-shadow: 0 4px 16px rgba(46,134,193,0.4); }

.btn-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* RESULT SECTION */
.result-section { display: none; background: var(--dark); padding: 5rem 2rem; }
.result-section.visible { display: block; }
.result-container { max-width: 780px; margin: 0 auto; }
.result-header { text-align: center; margin-bottom: 3rem; }

.result-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
  display: block;
}

.result-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
}

.result-title em { font-style: italic; color: var(--gold-light); }

.result-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

.price-range-display {
  text-align: center;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.price-label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.5rem;
}

.price-range {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: -0.02em;
}

.price-sub { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 0.5rem; }

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

.factor {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 5px;
  padding: 1rem;
  text-align: center;
}

.factor-icon { font-size: 1.3rem; margin-bottom: 0.4rem; }
.factor-value { font-size: 1.1rem; font-weight: 500; color: #fff; margin-bottom: 2px; }

.factor-label {
  font-size: 0.65rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-analysis {
  background: rgba(46,134,193,0.08);
  border: 1px solid rgba(46,134,193,0.2);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.analysis-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}

.analysis-text { font-size: 0.9rem; font-weight: 300; color: rgba(255,255,255,0.75); line-height: 1.7; }

.analysis-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cta-block {
  background: linear-gradient(135deg, rgba(46,134,193,0.16), rgba(27,79,114,0.16));
  border: 1px solid rgba(46,134,193,0.3);
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
}

.cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.8rem;
}

.cta-text {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.cta-primary {
  padding: 1rem 2.2rem;
  background: var(--gold);
  border: none;
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.25s;
}

.cta-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,134,193,0.45);
}

.cta-secondary {
  padding: 1rem 2.2rem;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.25s;
}

.cta-secondary:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* LOADING */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,35,64,0.94);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.loading-overlay.visible { display: flex; }

.loading-ring {
  width: 56px;
  height: 56px;
  border: 2px solid rgba(46,134,193,0.18);
  border-top-color: var(--gold-light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
}

.loading-steps { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }

.loading-step {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.1em;
  transition: color 0.5s;
}

.loading-step.active-step { color: var(--gold-light); }

/* CONSENT */
.consent-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(46,134,193,0.05);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
  cursor: pointer;
  transition: border-color 0.2s;
}

.consent-box:hover { border-color: var(--gold); }

.consent-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}

.consent-box label {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}

.consent-note { font-size: 0.68rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.5; }
.consent-note a { color: var(--gold); }

/* PAGE POLITIQUE DE CONFIDENTIALITE */
.legal-hero { background: var(--dark); }
.legal-hero .logo, .legal-hero .nav-badge { text-decoration: none; }
.legal-page { max-width: 780px; margin: 0 auto; padding: 4rem 1.5rem 5rem; background: var(--warm-white); }
.legal-page .section-title { margin-bottom: 0.5rem; }
.legal-date { font-size: 0.8rem; color: var(--muted); margin-bottom: 2.5rem; }
.legal-page h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--dark);
  margin: 2.2rem 0 0.8rem;
}
.legal-page p, .legal-page li { font-size: 0.95rem; line-height: 1.7; color: var(--text); }
.legal-page p + p { margin-top: 0.7rem; }
.legal-page ul { margin: 0.6rem 0 0.8rem 1.3rem; }
.legal-page li { margin-bottom: 0.4rem; }
.legal-page a { color: var(--gold); }

/* Champ piege anti-spam, invisible pour les humains */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* FOOTER */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: rgba(255,255,255,0.45); }
.footer-contact { font-size: 0.8rem; color: rgba(255,255,255,0.35); display: flex; gap: 1.5rem; }
.footer-contact a { color: var(--gold-light); text-decoration: none; }

.disclaimer {
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.22);
  padding: 1rem 3rem 1.5rem;
  background: var(--dark);
  line-height: 1.6;
}

.field-note { font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; }
/* Champs masqués selon le type de bien (ex : terrain) */
[hidden] { display: none !important; }
.required { color: var(--gold); }
hr.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

.step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.step-desc { font-size: 0.85rem; font-weight: 300; color: var(--muted); margin-bottom: 2rem; }

.error-msg {
  background: rgba(200,60,60,0.08);
  border: 1px solid rgba(200,60,60,0.2);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: #c83c3c;
  margin-bottom: 1rem;
  display: none;
}

.error-msg.visible { display: block; }

/* MOBILE */
@media (max-width: 600px) {
  .nav { padding: 1.5rem; }
  .hero-stats { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .etat-grid { grid-template-columns: repeat(2, 1fr); }
  .result-factors { grid-template-columns: 1fr 1fr; }
  .cta-btns { flex-direction: column; }
  footer { flex-direction: column; text-align: center; }
  .footer-contact { flex-direction: column; gap: 0.5rem; }
}
