/* DPE Prospection — design system "Estate Excellence" (navy + or, Playfair/Inter) */
:root {
  --navy: #1A2B3C;
  --navy-deep: #041627;
  --navy-soft: #38485a;
  --gold: #C5A059;
  --gold-dark: #a9863f;
  --gold-pale: #fed488;
  --bg: #f9f9ff;
  --surface: #ffffff;
  --surface-low: #f0f3ff;
  --surface-mid: #e7eeff;
  --text: #111c2c;
  --muted: #44474c;
  --outline: #c4c6cd;
  --error: #ba1a1a;
  --ok: #1a7a3c;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 12px rgba(4, 22, 39, 0.04);
  --shadow-hover: 0 6px 18px rgba(4, 22, 39, 0.08);
  --container: 1280px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
h1, h2, h3, .serif { font-family: 'Playfair Display', serif; color: var(--navy); }
h1 { font-size: 56px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 40px; font-weight: 700; line-height: 1.2; }
h3 { font-size: 24px; font-weight: 600; line-height: 1.4; }
a { color: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 12px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--surface-mid); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--navy); text-decoration: none; }
.logo .dot { color: var(--gold); }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--navy); }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: var(--radius); font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: all .15s ease; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-outline:hover { background: var(--surface-low); }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 70%, #24374c 100%); color: #fff; padding: 96px 0 80px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lead { font-size: 18px; color: #cfdaf1; max-width: 620px; margin: 24px 0 36px; }
.hero .eyebrow { color: var(--gold-pale); }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Stat band */
.stats-band { background: var(--navy-deep); color: #fff; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.08); }
.stats-band .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.stat .num { font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 700; color: var(--gold-pale); }
.stat .lbl { font-size: 13px; color: #cfdaf1; letter-spacing: .04em; text-transform: uppercase; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--surface-mid); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); transition: box-shadow .15s ease, transform .15s ease; }
.card:hover { box-shadow: var(--shadow-hover); }
.card .step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold-pale); font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* Pricing */
.pricing-card { position: relative; display: flex; flex-direction: column; }
.pricing-card.featured { border: 2px solid var(--gold); }
.badge-pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; }
.pricing-card .price { font-family: 'Playfair Display', serif; font-size: 44px; font-weight: 700; color: var(--navy); margin: 12px 0 2px; }
.pricing-card .price small { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 400; color: var(--muted); }
.pricing-card ul { list-style: none; margin: 20px 0 28px; flex: 1; }
.pricing-card li { padding: 7px 0 7px 26px; font-size: 14.5px; color: var(--muted); position: relative; }
.pricing-card li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); }

/* Chips */
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.chip-teal { background: #e8f0f2; color: var(--navy); }
.chip-gold { background: var(--gold-pale); color: #785a1a; }
.chip-green { background: #ddf3e4; color: var(--ok); }
.chip-red { background: #ffdad6; color: #93000a; }
.chip-grey { background: var(--surface-mid); color: var(--muted); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--surface-mid); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--navy); }
.faq details p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #cfdaf1; padding: 48px 0 32px; margin-top: 0; }
.site-footer .logo { color: #fff; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer a { color: #cfdaf1; text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .fine { margin-top: 28px; font-size: 12.5px; color: #8192a7; }

/* Forms */
.form-card { max-width: 460px; margin: 64px auto; background: var(--surface); border: 1px solid var(--surface-mid); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form-card h1 { font-size: 30px; margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin: 16px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], textarea, select {
  width: 100%; padding: 11px 14px; font-family: 'Inter', sans-serif; font-size: 15px;
  background: #f8fafb; border: 1px solid var(--outline); border-radius: var(--radius); color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--navy); }
.form-actions { margin-top: 28px; }
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 18px; }
.alert-error { background: #ffdad6; color: #93000a; }
.alert-ok { background: #ddf3e4; color: var(--ok); }

/* App layout (espace + admin) */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: var(--surface-low); padding: 28px 20px; display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar .logo { margin-bottom: 40px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius); text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.sidebar nav a.active { background: var(--gold-pale); color: var(--navy); font-weight: 600; }
.sidebar nav a:hover { background: var(--surface-mid); }
.sidebar .spacer { flex: 1; }
.main { flex: 1; padding: 40px 48px; min-width: 0; }
.main h1 { font-size: 34px; margin-bottom: 4px; }
.main .sub { color: var(--muted); margin-bottom: 32px; }

/* KPI cards */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; margin-bottom: 36px; }
.kpi { background: var(--surface); border: 1px solid var(--surface-mid); border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow); }
.kpi.dark { background: var(--navy-deep); border-color: var(--navy); }
.kpi .lbl { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi .val { font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 700; color: var(--navy); margin-top: 4px; }
.kpi.dark .lbl { color: #8192a7; }
.kpi.dark .val { color: var(--gold-pale); }

/* Tables */
.panel { background: var(--surface); border: 1px solid var(--surface-mid); border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 32px; overflow: hidden; }
.panel-head { padding: 20px 24px; border-bottom: 1px solid var(--surface-mid); display: flex; align-items: center; justify-content: space-between; }
.panel-head h2 { font-size: 22px; }
.panel .inner { padding: 24px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--surface-mid); }
td { padding: 14px 16px; border-bottom: 1px solid var(--surface-low); vertical-align: top; }
tr:last-child td { border-bottom: none; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--surface-low); padding: 3px 7px; border-radius: 4px; word-break: break-all; }
.copy-block { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: var(--navy-deep); color: #cfdaf1; padding: 12px 14px; border-radius: var(--radius); word-break: break-all; margin: 8px 0; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form input { width: auto; flex: 1; min-width: 140px; padding: 8px 10px; font-size: 13px; }

@media (max-width: 900px) {
  h1 { font-size: 36px; } h2 { font-size: 28px; }
  .hero { padding: 64px 0 48px; }
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; align-items: center; gap: 8px; padding: 14px 16px; }
  .sidebar .logo { margin-bottom: 0; margin-right: 16px; }
  .sidebar nav { display: flex; }
  .main { padding: 24px 20px; }
}

/* Optimisation mobile */
@media (max-width: 700px) {
  .site-header .container { height: auto; padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
  .nav { gap: 14px; flex-wrap: wrap; }
  .nav .nav-lien { display: none; }
  h1 { font-size: 31px; }
  h2 { font-size: 25px; }
  .hero { padding: 48px 0 40px; }
  .hero p.lead { font-size: 16px; }
  .hero .actions .btn { width: 100%; text-align: center; }
  .section { padding: 48px 0; }
  .stats-band .container { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .stat .num { font-size: 26px; }
  .card, .form-card { padding: 24px 20px; }
  .form-card { margin: 32px 16px; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kpi .val { font-size: 26px; }
  .panel-head, .panel .inner { padding: 16px; }
  table { font-size: 13px; }
  th, td { padding: 10px 8px; }
  .btn { padding: 12px 18px; }
  .inline-form input { min-width: 100%; }
}
