
:root {
  --bg: #f4efe7;
  --bg-soft: #fbf8f3;
  --bg-cream: #f8f3ec;
  --text: #17283a;
  --text-soft: #425263;
  --muted: #6b7480;
  --primary: #c99a55;
  --primary-dark: #a77b3d;
  --navy: #0f2743;
  --navy-deep: #091b31;
  --navy-soft: #19385a;
  --white: #ffffff;
  --border: rgba(23, 40, 58, 0.1);
  --border-light: rgba(255, 255, 255, 0.16);
  --shadow-soft: 0 22px 45px rgba(9, 27, 49, 0.08);
  --shadow-medium: 0 28px 65px rgba(9, 27, 49, 0.16);
  --shadow-strong: 0 34px 90px rgba(5, 16, 29, 0.25);
  --container: 1240px;
  --radius: 24px;
  --radius-small: 18px;
  --success-bg: #edf9f0;
  --success-border: #b9e3c2;
  --success-text: #206b35;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-main { min-height: 60vh; }

/* Header */
.site-header {
  background: rgba(10, 27, 47, 0.92);
  color: var(--white);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  color: var(--white);
  text-decoration: none;
  font-size: 1.72rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
}

.main-nav a:hover { color: #ffffff; }

/* Typography */
.hero-kicker,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.9;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
}

.section {
  padding: 92px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading-lined {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-heading-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: start;
}

.section-heading h2,
.section h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--navy-deep);
}

.section-heading p,
.section > .container > p,
.section .container > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

/* Layout */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card,
.post-card {
  background: var(--white);
  border: 1px solid rgba(23, 40, 58, 0.08);
  border-radius: var(--radius-small);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.22s ease;
  cursor: pointer;
  border: none;
  font-size: 0.98rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--navy-deep);
  box-shadow: 0 12px 28px rgba(201, 154, 85, 0.24);
}

.btn-primary:hover {
  background: #d7ab69;
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(180deg, #dfb775 0%, #c99954 100%);
  color: #14283b;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

.btn-secondary-glass {
  background: rgba(255, 255, 255, 0.06);
}

.btn-primary-dark {
  background: var(--navy);
  color: var(--white);
  box-shadow: none;
}

.btn-primary-dark:hover { background: #173556; }

.btn-secondary-dark {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(23, 40, 58, 0.14);
}

.btn-secondary-dark:hover { background: #f1eadf; }

.btn-secondary-strong { min-width: 220px; }

/* Hero */
.hero,
.tool-hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}

.hero-home-premium {
  min-height: 760px;
  padding: 84px 0 140px;
  background: linear-gradient(135deg, #19385a 0%, #0a1f36 100%);
}

.hero-media,
.hero-overlay,
.hero-pattern {
  position: absolute;
  inset: 0;
}

.hero-media { z-index: 0; }

.hero-media-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.hero-overlay {
  z-index: 1;
  background:
    radial-gradient(circle at 80% 22%, rgba(255, 213, 155, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(7, 18, 30, 0.22) 0%, rgba(7, 18, 30, 0.60) 100%);
}

.hero-pattern {
  z-index: 2;
  background: linear-gradient(180deg, rgba(8, 25, 43, 0) 70%, rgba(8, 25, 43, 0.42) 100%);
}

.hero-home-shell {
  position: relative;
  z-index: 3;
}

.hero-home-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 420px);
  gap: 36px;
  align-items: start;
}

.hero-home-copy {
  max-width: 760px;
  margin-top: -6px;
}

.hero h1,
.tool-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(3rem, 5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 760px;
}

.hero-text {
  max-width: 700px;
  margin: 0;
  opacity: 0.96;
}

.hero-text-large { font-size: 1.16rem; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-actions-home-3 { max-width: 760px; }

.hero-actions-home-3 .btn { min-width: 190px; }

/* Hero dashboard */
.hero-dashboard-card {
  background: linear-gradient(180deg, rgba(10, 34, 60, 0.97) 0%, rgba(7, 24, 43, 0.98) 100%);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  box-shadow: var(--shadow-strong);
  padding: 18px 22px 22px;
  backdrop-filter: blur(10px);
}

.hero-dashboard-map {
  position: relative;
  min-height: 148px;
  border-radius: 18px;
  margin-bottom: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(31, 74, 118, 0.95) 0%, rgba(10, 31, 54, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-dashboard-map-img {
  width: 100%;
  height: 100%;
  min-height: 148px;
  object-fit: cover;
  display: block;
}

.hero-dashboard-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.dashboard-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
}

.dashboard-zone {
  font-size: 1.2rem;
  line-height: 1.05;
}

.hero-dashboard-stats {
  display: grid;
  gap: 0;
}

.dashboard-stat-item {
  padding: 12px 0 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-stat-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dashboard-stat-item span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 4px;
}

.dashboard-stat-item strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.18;
}

.dashboard-stat-zones strong {
  font-size: 0.94rem;
  line-height: 1.38;
}

/* Services */
.section-services-home {
  position: relative;
  z-index: 6;
  padding-top: 88px;
  background: var(--bg);
}

.service-grid {
  display: grid;
  gap: 24px;
}

.service-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.service-feature-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 22px;
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
}

.card-theme-blue,
.card-theme-dark,
.card-theme-sand {
  background: #0f2743;
}

.service-feature-media {
  position: absolute;
  inset: 0;
  transform: scale(1.02);
}

.service-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-feature-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 20, 35, 0.88), rgba(6, 20, 35, 0.10));
}

.service-feature-content {
  position: relative;
  z-index: 2;
  padding: 208px 28px 28px;
}

.service-feature-content h3 {
  margin: 0 0 10px;
  font-size: 1.65rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.service-feature-content p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.9);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f0c27a;
  text-decoration: none;
  font-weight: 700;
}

.service-link::after { content: "→"; }

/* Market intro */
.section-market-intro {
  background: linear-gradient(180deg, #f8f3ec 0%, #f3ede5 100%);
}

.market-intro-box {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 28px;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 40, 58, 0.08);
  border-radius: 28px;
  padding: 38px;
  box-shadow: var(--shadow-soft);
}

.market-intro-copy p:last-child {
  margin: 0;
  color: var(--text-soft);
}

.market-intro-points {
  display: grid;
  gap: 14px;
}

.market-point-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8f3ec 100%);
  border: 1px solid rgba(23, 40, 58, 0.08);
  border-radius: 18px;
  padding: 20px 22px;
}

.market-point-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 1.05rem;
}

.market-point-card span {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Quartiers */
.section-quartiers-premium {
  background: var(--bg-cream);
}

.quartiers-grid-premium {
  margin-top: 28px;
}

.district-card-premium {
  position: relative;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  color: var(--white);
  box-shadow: var(--shadow-medium);
}

.district-card-media-wrap,
.district-card-overlay {
  position: absolute;
  inset: 0;
}

.district-card-media-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #35597b 0%, #11263f 100%);
}

.district-card-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.district-card-overlay {
  background: linear-gradient(to top, rgba(6, 20, 35, 0.84), rgba(6, 20, 35, 0.08));
}

.district-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 28px;
}

.district-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.district-card-content h3 {
  margin: 0 0 12px;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.district-card-content p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.9);
}

.card-inline-link {
  text-decoration: none;
  font-weight: 700;
}

.card-inline-link-light {
  color: #f0c27a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-inline-link-light::after { content: "→"; }

/* Guides */
.section-guides-premium {
  background: #efe5d7;
}

.guides-grid-premium {
  margin-top: 28px;
}

.guide-card-premium {
  background: linear-gradient(180deg, #ffffff 0%, #fbf7f1 100%);
  border: 1px solid rgba(23, 40, 58, 0.08);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.guide-card-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(201, 154, 85, 0.12);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 16px;
}

.guide-card-premium h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.guide-card-premium p {
  margin: 0 0 22px;
  color: var(--text-soft);
}

.guide-card-premium .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Lead banner */
.section-lead-banner {
  position: relative;
  background: linear-gradient(180deg, rgba(8, 25, 43, 0.94) 0%, rgba(8, 25, 43, 0.68) 100%);
  color: var(--white);
  overflow: hidden;
}

.section-lead-banner-media {
  position: absolute;
  inset: 0;
}

.lead-banner-media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lead-banner-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 25, 43, 0.86) 0%, rgba(8, 25, 43, 0.36) 100%);
}

.lead-banner-box {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: 14px 0;
}

.lead-banner-emblem {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  margin: 0 auto 22px;
  background: rgba(223, 183, 117, 0.12);
  border: 1px solid rgba(223, 183, 117, 0.3);
}

.lead-banner-emblem span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(180deg, #dfb775 0%, #c99954 100%);
}

.lead-banner-box h2 {
  color: var(--white);
  margin-bottom: 14px;
}

.lead-banner-box p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 760px;
  margin: 0 auto 26px;
}

/* Tools preview */
.section-tools-preview {
  background: linear-gradient(180deg, #f8f3ec 0%, #f3ede4 100%);
}

.tools-preview-shell {
  position: relative;
}

.tools-preview-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.tools-preview-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tools-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.tool-mini-card {
  background: #ffffff;
  border: 1px solid rgba(23, 40, 58, 0.08);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
}

.tool-mini-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.22;
}

.tool-mini-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(201, 154, 85, 0.12);
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.tool-mini-icon::before,
.tool-mini-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

/* Estimation icon: document */
.tool-mini-icon-estimation::before {
  width: 16px;
  height: 20px;
  border: 2px solid #b88543;
  border-radius: 3px;
  top: 11px;
  left: 14px;
}

.tool-mini-icon-estimation::after {
  width: 8px;
  height: 2px;
  background: #b88543;
  top: 25px;
  left: 18px;
  box-shadow: 0 -5px 0 #b88543;
}

/* Rentabilité icon: graph up */
.tool-mini-icon-renta::before {
  width: 16px;
  height: 16px;
  border-left: 2px solid #b88543;
  border-bottom: 2px solid #b88543;
  left: 12px;
  top: 14px;
}

.tool-mini-icon-renta::after {
  width: 12px;
  height: 12px;
  border-top: 2px solid #b88543;
  border-right: 2px solid #b88543;
  transform: rotate(45deg);
  right: 10px;
  top: 13px;
}

/* Budget icon: calculator */
.tool-mini-icon-budget::before {
  width: 18px;
  height: 22px;
  border: 2px solid #b88543;
  border-radius: 4px;
  top: 11px;
  left: 13px;
}

.tool-mini-icon-budget::after {
  width: 10px;
  height: 8px;
  border-radius: 2px;
  background:
    linear-gradient(#b88543, #b88543) 0 0 / 100% 2px no-repeat,
    radial-gradient(circle, #b88543 55%, transparent 56%) 1px 5px / 4px 4px repeat;
  top: 17px;
  left: 17px;
}

/* Map icon */
.tool-mini-icon-map::before {
  width: 18px;
  height: 14px;
  border: 2px solid #b88543;
  border-radius: 3px;
  top: 14px;
  left: 13px;
  transform: skewX(-10deg);
}

.tool-mini-icon-map::after {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #b88543;
  top: 18px;
  left: 19px;
}

.tools-preview-visual {
  position: relative;
  min-height: 340px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  background: linear-gradient(135deg, #cfb082 0%, #9b6e33 100%);
}

.tools-preview-visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.tools-preview-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 154, 85, 0.14), rgba(9, 27, 49, 0.06));
  z-index: 2;
  pointer-events: none;
}

/* Lead form */
.section-lead-form {
  background: #f2e9de;
}

.section-lead-form-premium {
  padding-top: 68px;
}

.lead-box {
  background: var(--white);
  padding: 56px 42px;
  border-radius: 28px;
  box-shadow: var(--shadow-medium);
  max-width: 1020px;
  margin: 0 auto;
}

.lead-box-premium {
  border: 1px solid rgba(23, 40, 58, 0.08);
}

.lead-box-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 30px;
}

.lead-box h2 {
  margin-top: 0;
  font-size: clamp(2rem, 3vw, 3.1rem);
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.lead-box > p,
.lead-box-header p:last-child {
  color: var(--muted);
  font-size: 1.04rem;
}

.lead-error,
.lead-success {
  border-radius: 14px;
  padding: 15px 18px;
  margin-bottom: 26px;
}

.lead-error {
  background: #fff3cd;
  color: #7a5c00;
  border: 1px solid #f0d98c;
}

.lead-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
}

.lead-success::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--success-text);
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lead-step {
  display: none;
  text-align: left;
}

.lead-step.is-active {
  display: block;
}

.lead-step .grid-2,
.lead-step .grid-3 {
  margin-bottom: 16px;
}

.lead-form select,
.lead-form input,
.lead-form textarea,
.estimation-tool-form .form-field input,
.estimation-tool-form .form-field select,
.prix-m2-tool-form .form-field input,
.prix-m2-tool-form .form-field select,
.simulator-form select,
.simulator-form input,
.budget-tool-form select,
.budget-tool-form input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(23, 40, 58, 0.12);
  background: #fff;
  font-size: 15px;
  line-height: 1.2;
  color: var(--text);
  font-family: inherit;
}

.lead-form textarea {
  min-height: 144px;
  padding: 16px;
  resize: vertical;
}

.lead-summary {
  background: linear-gradient(180deg, #faf7f2 0%, #f5efe7 100%);
  border: 1px solid rgba(23, 40, 58, 0.08);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.lead-summary p {
  margin: 0 0 10px;
  color: var(--text);
}

.lead-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lead-summary li {
  margin-bottom: 10px;
  color: var(--muted);
}

.lead-summary li:last-child {
  margin-bottom: 0;
}

.lead-summary li span { color: var(--text); }

.lead-step-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.lead-step-actions-between {
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.section-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.site-footer {
  padding: 42px 0;
  background: var(--navy-deep);
  color: var(--white);
  margin-top: 0;
}

/* Existing tool pages compatibility */
.simulator-shell,
.budget-tool-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.simulator-box,
.budget-tool-box {
  background: var(--white);
  border: 1px solid rgba(23, 40, 58, 0.08);
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow-soft);
}

.simulator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.simulator-results-grid,
.budget-summary-grid,
.budget-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.simulator-insights {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr;
  gap: 18px;
}

.budget-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.budget-zones-grid,
.prix-m2-tool-form .prix-m2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.form-field small,
.estimation-tool-form .form-field small,
.prix-m2-tool-form .form-field small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.result-card,
.insight-card,
.zone-card,
.prix-m2-table-card,
.simulator-summary-text,
.budget-summary-text {
  background: #ffffff;
  border: 1px solid rgba(23, 40, 58, 0.08);
  border-radius: 18px;
  padding: 22px;
}

.result-label {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.result-value {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--navy);
}

.result-value-text {
  font-size: 1.35rem;
  line-height: 1.3;
}

.result-detail {
  color: var(--muted);
  font-size: 0.86rem;
}

.zone-card .zone-tag,
.zone-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(201, 154, 85, 0.12);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.prix-m2-table {
  width: 100%;
  border-collapse: collapse;
}

.prix-m2-table th,
.prix-m2-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(23, 40, 58, 0.08);
  text-align: left;
}

.prix-m2-table th { font-weight: 700; }

.is-hidden { display: none !important; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 1280px) {
  .hero-home-premium {
    min-height: auto;
    padding: 78px 0 110px;
  }

  .hero-home-main {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    gap: 28px;
  }

  .hero h1,
  .tool-hero h1 {
    font-size: clamp(2.8rem, 4.6vw, 4.8rem);
  }
}

@media (max-width: 1180px) {
  .hero-home-main,
  .market-intro-box,
  .tools-preview-grid {
    grid-template-columns: 1fr;
  }

  .hero-dashboard-card {
    max-width: 480px;
  }

  .service-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .tools-mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .grid-3,
  .grid-2,
  .service-grid-3,
  .tools-mini-grid,
  .section-heading-split,
  .simulator-grid,
  .simulator-results-grid,
  .simulator-insights,
  .budget-tool-grid,
  .budget-summary-grid,
  .budget-zones-grid,
  .budget-bottom-grid,
  .prix-m2-tool-form .prix-m2-grid {
    grid-template-columns: 1fr;
  }

  .hero-home-premium {
    min-height: auto;
    padding: 82px 0 96px;
  }

  .hero h1,
  .tool-hero h1 {
    font-size: 2.9rem;
  }

  .hero-dashboard-card,
  .market-intro-box,
  .lead-box,
  .simulator-box,
  .budget-tool-box,
  .guide-card-premium,
  .tool-mini-card {
    padding: 24px;
  }

  .lead-step-actions-between {
    flex-direction: column;
  }

  .lead-step-actions-between .btn,
  .hero-actions .btn,
  .section-cta-row .btn {
    width: 100%;
    min-width: 0;
  }

  .hero-actions {
    width: 100%;
  }

  .district-card-premium,
  .service-feature-card {
    min-height: 340px;
  }

  .service-feature-content {
    padding: 220px 24px 24px;
  }

  .lead-success {
    justify-content: flex-start;
    text-align: left;
  }
}
