/* Maisonneuve Conformité — institutional, notarial, French-first */
:root {
  --ivory: #f6f2ea;
  --panel: #fffdf9;
  --ink: #1c2434;
  --ink-2: #4a5468;
  --ink-3: #77809273;
  --navy: #1e3a5f;
  --navy-deep: #16233c;
  --bronze: #8c6a3f;
  --bronze-soft: #b9a37c;
  --hairline: #e2d9c8;
  --serious: #a2321f;
  --warning: #b5861a;
  --info: #2f5da8;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(28, 36, 52, 0.06), 0 8px 24px rgba(28, 36, 52, 0.07);
}

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

body {
  font-family: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif { font-family: "Source Serif 4", Georgia, serif; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: var(--navy); }
a:hover { color: var(--bronze); }

/* ---------- top bar ---------- */
.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; z-index: 1100;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark .mono {
  width: 40px; height: 40px; background: var(--navy-deep); color: #f2e9d8;
  display: flex; align-items: center; justify-content: center;
  font-family: "Source Serif 4", Georgia, serif; font-size: 21px; font-weight: 600;
  border-radius: 3px; letter-spacing: 0.5px;
}
.wordmark .name { line-height: 1.15; }
.wordmark .name b {
  display: block; font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px; letter-spacing: 2.2px; color: var(--ink); font-weight: 600;
}
.wordmark .name span {
  font-size: 11px; letter-spacing: 3.5px; color: var(--bronze); text-transform: uppercase;
}
.topnav { display: flex; align-items: center; gap: 22px; font-size: 14.5px; }
.topnav a { text-decoration: none; color: var(--ink-2); }
.topnav a:hover { color: var(--navy); }
.lang-switch {
  border: 1px solid var(--hairline); border-radius: 4px; padding: 5px 12px;
  font-size: 13px; letter-spacing: 1px; color: var(--navy) !important;
  background: transparent; text-decoration: none;
}
.btn {
  display: inline-block; background: var(--navy); color: #fff !important;
  padding: 12px 22px; border-radius: 4px; text-decoration: none;
  font-weight: 600; font-size: 15px; border: 1px solid var(--navy);
}
.btn:hover { background: var(--navy-deep); }
.btn.ghost { background: transparent; color: var(--navy) !important; }
.btn.small { padding: 8px 16px; font-size: 14px; }

/* ---------- alert ribbon ---------- */
.ribbon {
  background: #6f1d12; color: #f6e9e2; font-size: 14px;
  border-bottom: 1px solid #5a170e;
}
.ribbon .wrap {
  display: flex; align-items: center; gap: 10px; padding: 9px 24px; flex-wrap: wrap;
}
.ribbon .pulse {
  width: 9px; height: 9px; border-radius: 50%; background: #ff6b4a; flex: none;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,107,74,.55);} 50% { box-shadow: 0 0 0 7px rgba(255,107,74,0);} }
.ribbon b { color: #fff; }
.ribbon a { color: #ffd9c9; font-weight: 600; margin-left: auto; }

/* ---------- hero ---------- */
.hero { background: var(--panel); border-bottom: 1px solid var(--hairline); }
.hero .wrap { padding-top: 72px; padding-bottom: 64px; max-width: 880px; text-align: center; }
.eyebrow {
  font-size: 12.5px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--bronze); margin-bottom: 18px; font-weight: 600;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 52px); line-height: 1.12; font-weight: 600; }
.hero h1 .soft { color: var(--navy); font-style: italic; }
.hero .sub {
  margin: 22px auto 0; max-width: 640px; font-size: 18.5px; color: var(--ink-2);
}
.hero .cta-row { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.trust-chips {
  margin-top: 40px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.chip {
  font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--hairline);
  background: var(--ivory); padding: 6px 14px; border-radius: 100px;
}
.chip b { color: var(--navy); font-weight: 600; }

/* ---------- KPI stat tiles ---------- */
.kpis { padding: 54px 0 10px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.kpi {
  background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 26px 26px 20px; box-shadow: var(--shadow);
}
.kpi .num {
  font-family: "Source Serif 4", Georgia, serif; font-size: 44px; font-weight: 600;
  color: var(--navy-deep); line-height: 1; letter-spacing: -0.5px;
}
.kpi .num small { font-size: 22px; color: var(--bronze); }
.kpi .lbl { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
.kpi .src { margin-top: 12px; font-size: 12px; }
.kpi .src a { color: var(--ink-3); text-decoration: none; border-bottom: 1px dotted var(--bronze-soft); }
.kpi .src a:hover { color: var(--bronze); }

.kpi .num.risk { color: var(--serious); }
.kpi .num .per { font-size: 17px; color: var(--ink-2); font-family: "Public Sans", sans-serif; font-weight: 400; }

/* ---------- personal risk section (checker + calculator) ---------- */
.vous { background: var(--navy-deep); color: #e9e4d8; }
.vous .sec-head h2 { color: #f2eee3; }
.vous .sec-head p { color: #b9c2d4; }
.vous .sec-head .eyebrow { color: var(--bronze-soft); }
.vous-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; align-items: start; }
.panel {
  background: #1b2c49; border: 1px solid #2c3e5c; border-radius: var(--radius); padding: 26px;
}
.panel h3 { color: #fff; font-size: 19px; margin-bottom: 6px; font-weight: 600; }
.panel .hint { font-size: 13.5px; color: #93a0b8; margin-bottom: 16px; }
.panel label.fieldlbl { display: block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #93a0b8; margin: 16px 0 8px; }
.panel select, .panel input[type=range] { width: 100%; }
.panel select {
  background: #16233c; color: #e9e4d8; border: 1px solid #3a4d6e; border-radius: 4px;
  padding: 11px 12px; font-size: 15px; font-family: inherit;
}
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button {
  flex: 1; min-width: 110px; background: #16233c; color: #b9c2d4; border: 1px solid #3a4d6e;
  border-radius: 4px; padding: 10px 8px; font-size: 14px; cursor: pointer; font-family: inherit;
}
.seg button.on { background: var(--bronze); border-color: var(--bronze); color: #fff; font-weight: 600; }
input[type=range] { accent-color: #c9a86a; }
.days-out { font-size: 14px; color: #b9c2d4; margin-top: 6px; }
.calc-result {
  margin-top: 20px; background: #2a1512; border: 1px solid #6f1d12; border-radius: var(--radius);
  padding: 20px 22px;
}
.calc-result .lbl { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #d8a79a; }
.calc-result .amount {
  font-family: "Source Serif 4", Georgia, serif; font-size: clamp(26px, 4vw, 40px);
  color: #ff8d6e; font-weight: 600; line-height: 1.15; margin-top: 6px;
}
.calc-result .vs { margin-top: 12px; padding-top: 12px; border-top: 1px solid #4a231b; font-size: 14.5px; color: #e0c9bf; }
.calc-result .vs b { color: #8fd6a1; }
.calc-note { margin-top: 14px; font-size: 12px; color: #93a0b8; line-height: 1.55; }
.calc-note a { color: var(--bronze-soft); }
.verdict { margin-top: 18px; border-radius: var(--radius); padding: 18px 20px; font-size: 15px; display: none; }
.verdict.hit { display: block; background: #2a1512; border: 1px solid #6f1d12; color: #f0d9d1; }
.verdict.miss { display: block; background: #2a2312; border: 1px solid #6f5312; color: #ece0c2; }
.verdict b { color: #fff; }

/* ---------- cost of waiting ---------- */
.cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cost {
  background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); border-top: 4px solid var(--hairline);
}
.cost.now { border-top-color: #3e7d52; }
.cost.late { border-top-color: var(--warning); }
.cost.worst { border-top-color: var(--serious); }
.cost .tag { font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--ink-3); }
.cost.now .tag { color: #3e7d52; }
.cost.late .tag { color: var(--warning); }
.cost.worst .tag { color: var(--serious); }
.cost .big { font-family: "Source Serif 4", Georgia, serif; font-size: 28px; font-weight: 600; margin: 10px 0 8px; color: var(--ink); }
.cost p { font-size: 14.5px; color: var(--ink-2); }

/* map corner stat card */
.map-wrap { position: relative; }
.map-stat {
  position: absolute; top: 14px; right: 14px; z-index: 1000;
  background: rgba(255, 253, 249, 0.95); border: 1px solid var(--hairline); border-radius: 6px;
  padding: 12px 16px; box-shadow: var(--shadow); max-width: 240px;
}
.map-stat .n { font-family: "Source Serif 4", Georgia, serif; font-size: 26px; font-weight: 600; color: var(--serious); line-height: 1.1; }
.map-stat .d { font-size: 12px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.sec-head { max-width: 720px; margin-bottom: 34px; }
.sec-head .eyebrow { margin-bottom: 10px; }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.2; font-weight: 600; }
.sec-head p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }

/* ---------- map ---------- */
#carte { padding-top: 40px; }
.map-frame {
  background: var(--panel); border: 1px solid var(--hairline);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
#map { height: 540px; width: 100%; background: #eef0f2; }
.map-legend {
  display: flex; gap: 22px; flex-wrap: wrap; padding: 14px 18px;
  border-top: 1px solid var(--hairline); font-size: 13.5px; color: var(--ink-2);
  background: var(--panel);
}
.lg { display: flex; align-items: center; gap: 8px; }
.lg .dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.lg .dot.serious { background: var(--serious); }
.lg .dot.warning { background: var(--warning); }
.lg .dot.info { background: var(--info); border-radius: 2px; }
.map-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* leaflet popup theming */
.leaflet-popup-content-wrapper {
  border-radius: 6px; font-family: "Public Sans", sans-serif;
  box-shadow: 0 10px 30px rgba(22,35,60,.25);
}
.leaflet-popup-content { margin: 16px 18px; line-height: 1.5; min-width: 230px; }
.pp-kind { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
.pp-kind.serious { color: var(--serious); }
.pp-kind.warning { color: var(--warning); }
.pp-kind.info { color: var(--info); }
.pp-name { font-family: "Source Serif 4", Georgia, serif; font-size: 17px; font-weight: 600; margin: 4px 0 6px; color: var(--ink); }
.pp-body { font-size: 13.5px; color: var(--ink-2); }
.pp-links { margin-top: 10px; font-size: 13px; }
.pp-links a { margin-right: 12px; }

/* records table */
.records { margin-top: 26px; overflow-x: auto; }
table.rec {
  width: 100%; border-collapse: collapse; background: var(--panel);
  border: 1px solid var(--hairline); border-radius: var(--radius); font-size: 14px;
}
table.rec th {
  text-align: left; font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ink-3); padding: 12px 16px; border-bottom: 1px solid var(--hairline);
  font-weight: 600;
}
table.rec td { padding: 12px 16px; border-bottom: 1px solid var(--hairline); vertical-align: top; color: var(--ink-2); }
table.rec tr:last-child td { border-bottom: none; }
table.rec td.n { color: var(--ink); font-weight: 600; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 3px 9px; border-radius: 3px; color: #fff;
}
.badge.serious { background: var(--serious); }
.badge.warning { background: var(--warning); }
.badge.info { background: var(--info); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.svc .step-no {
  font-family: "Source Serif 4", Georgia, serif; color: var(--bronze);
  font-size: 15px; letter-spacing: 2px; margin-bottom: 12px;
}
.svc h3 { font-size: 21px; margin-bottom: 10px; font-weight: 600; }
.svc p { font-size: 15px; color: var(--ink-2); flex-grow: 1; }
.svc .price {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline);
  font-family: "Source Serif 4", Georgia, serif; font-size: 19px; color: var(--navy-deep); font-weight: 600;
}
.svc .price small { display: block; font-family: "Public Sans", sans-serif; font-size: 12.5px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }

/* ---------- why now ---------- */
.why { background: var(--navy-deep); color: #e9e4d8; }
.why .sec-head h2, .why .sec-head p { color: #f2eee3; }
.why .sec-head .eyebrow { color: var(--bronze-soft); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card { border: 1px solid #2c3e5c; border-radius: var(--radius); padding: 24px; background: #1b2c49; }
.why-card h3 { font-size: 17px; color: #fff; margin-bottom: 8px; font-weight: 600; }
.why-card p { font-size: 14.5px; color: #b9c2d4; }
.why-card a { color: var(--bronze-soft); }

/* ---------- about ---------- */
.about-card {
  background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow); display: flex; gap: 30px; align-items: flex-start;
}
.about-card .rule { width: 4px; align-self: stretch; background: var(--bronze); border-radius: 2px; }
.about-card p { color: var(--ink-2); font-size: 16px; max-width: 720px; }
.about-card p + p { margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16px; color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif; list-style: none; position: relative; padding-right: 30px;
}
.faq summary::after { content: "+"; position: absolute; right: 2px; top: -2px; color: var(--bronze); font-size: 22px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }

/* ---------- contact band ---------- */
.contact-band { background: var(--panel); border-top: 1px solid var(--hairline); }
.contact-band .wrap { text-align: center; max-width: 680px; }
.contact-band h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 600; }
.contact-band p { margin-top: 12px; color: var(--ink-2); }
.contact-band .cta-row { margin-top: 26px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
footer { background: var(--navy-deep); color: #93a0b8; font-size: 13px; }
footer .wrap { padding: 40px 24px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
footer .fine { line-height: 1.7; }
footer .fine b { color: #d8dde8; }
footer a { color: var(--bronze-soft); }
footer .legal { margin-top: 26px; padding-top: 18px; border-top: 1px solid #2c3e5c; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 860px) {
  .kpi-grid, .svc-grid, .why-grid, .vous-grid, .cost-grid { grid-template-columns: 1fr; }
  .map-stat { position: static; max-width: none; margin: 10px; }
  footer .cols { grid-template-columns: 1fr; }
  .topnav a.navlink { display: none; }
  #map { height: 420px; }
  .about-card { flex-direction: column; }
  .about-card .rule { width: 60px; height: 4px; }
}
