/* MB Immobilier — feuille de style unique
   Concept : deux couleurs pour deux métiers. Olive (lime historique) = habitation, prune (couleur historique) = professionnel.
   Ardoise = la maison MB Immobilier. Titres condensés dans l'esprit du DIN de l'ancienne charte. */
:root {
  --bg: #f4f5f1;
  --surface: #ffffff;
  --ink: #232b30;
  --muted: #59646a;
  --line: #dcdfd6;
  --slate: #353f45;
  --slate-ink: #f1f3ee;
  --lime: #cad541;
  --hab: #56620f;
  --hab-soft: #eef2d6;
  --pro: #631339;
  --pro-soft: #f4e7ed;
  --focus: #1f6fd1;
  --warn-bg: #fff3c4;
  --warn-ink: #5a4500;
  --f-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-body: 'Barlow', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --r: 6px;
  --wrap: 1180px;
  --shadow: 0 1px 2px rgba(35, 43, 48, .06), 0 8px 24px -12px rgba(35, 43, 48, .18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151a1d; --surface: #1d2428; --ink: #e6e9e3; --muted: #a3ada9; --line: #2f3a3d;
    --slate: #0f1416; --slate-ink: #e6e9e3; --hab: #c9d64a; --hab-soft: #262d17; --pro: #e48fb4; --pro-soft: #33202a;
    --focus: #7ab3ff; --warn-bg: #3d3310; --warn-ink: #f3dc8b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151a1d; --surface: #1d2428; --ink: #e6e9e3; --muted: #a3ada9; --line: #2f3a3d;
  --slate: #0f1416; --slate-ink: #e6e9e3; --hab: #c9d64a; --hab-soft: #262d17; --pro: #e48fb4; --pro-soft: #33202a;
  --focus: #7ab3ff; --warn-bg: #3d3310; --warn-ink: #f3dc8b; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -.005em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.stack { display: grid; gap: 1rem; align-content: start; }
.stack-lg { display: grid; gap: 1.6rem; align-content: start; }
.eyebrow { font: 600 .8rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.todo { background: var(--warn-bg); color: var(--warn-ink); padding: 0 .3em; border-radius: 3px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.25rem; border-radius: var(--r); border: 2px solid transparent; font: 600 1rem/1.1 var(--f-body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-main { background: var(--lime); color: #1d2400; }
.btn-main:hover { background: #d8e25c; }
.btn-dark { background: var(--slate); color: var(--slate-ink); }
.btn-dark:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-hab { background: var(--hab); color: var(--surface); }
.btn-pro { background: var(--pro); color: var(--surface); }
.btn-hab:hover, .btn-pro:hover { filter: brightness(1.08); }
.arrow::after { content: "→"; font-family: var(--f-body); }
.textlink { font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 1px; }

/* En-tête */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 1.2rem; min-height: 72px; }
.logo { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; flex: none; }
.logo-mark { font: 700 2rem/1 var(--f-display); letter-spacing: .02em; color: var(--ink); }
.logo-mark b { color: var(--hab); font-weight: 700; }
.logo-word { font: 600 .78rem/1 var(--f-body); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.nav { margin-left: auto; display: flex; align-items: center; gap: .2rem; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .1rem; }
.nav > ul > li { position: relative; }
.nav a, .nav button.sub { display: flex; align-items: center; gap: .3rem; padding: .55rem .7rem; border-radius: var(--r); font: 500 .98rem/1.2 var(--f-body); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button.sub:hover, .nav a[aria-current="page"] { background: var(--bg); }
.nav button.sub::after { content: ""; width: .45em; height: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); margin-left: .15rem; }
.nav .menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px; list-style: none; margin: 0; padding: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); display: none; }
.nav li.open > .menu { display: block; }
@media (hover: hover) and (min-width: 1081px) { .nav li:hover > .menu, .nav li:focus-within > .menu { display: block; } .nav li > .menu::before { content: ""; position: absolute; inset: -8px 0 auto; height: 8px; } }
.nav .menu a { padding: .6rem .7rem; display: block; }
.nav .menu a small { display: block; color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .45rem; vertical-align: .05em; }
.dot.hab { background: var(--hab); } .dot.pro { background: var(--pro); } .dot.both { background: linear-gradient(90deg, var(--hab) 50%, var(--pro) 50%); }
.client-link { font-weight: 600 !important; }
.client-link svg { width: 18px; height: 18px; }
.nav .btn { margin-left: .4rem; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: currentColor; margin: auto; position: relative; content: ""; }
.burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }
.mobile-cta { display: none; }
@media (max-width: 1080px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: .75rem max(16px, env(safe-area-inset-right, 0px)) 1.25rem max(16px, env(safe-area-inset-left, 0px)); max-height: calc(100dvh - 72px); overflow: auto; }
  .top.is-open .nav { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav button.sub { width: 100%; padding: .8rem .5rem; font-size: 1.05rem; justify-content: space-between; }
  .nav .menu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 .4rem .5rem; padding: 0 0 0 .5rem; min-width: 0; }
  .nav .btn { margin: .8rem 0 0; width: 100%; }
  .mobile-cta { display: flex; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; gap: .5rem; padding: .6rem max(12px, env(safe-area-inset-right, 0px)) calc(.6rem + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); background: var(--surface); border-top: 1px solid var(--line); }
  .mobile-cta .btn { flex: 1; min-height: 44px; padding: .5rem; font-size: .95rem; }
  body { padding-bottom: 70px; }
}

/* Fil d'Ariane */
.crumbs { font-size: .88rem; color: var(--muted); padding-block: 1rem 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.crumbs li + li::before { content: "/"; margin-right: .3rem; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Sections */
.sec { padding-block: clamp(3rem, 7vw, 5.5rem); }
.sec-tight { padding-block: clamp(2rem, 4vw, 3rem); }
.sec-white { background: var(--surface); }
.sec-dark { background: var(--slate); color: var(--slate-ink); }
.sec-dark .eyebrow, .sec-dark .muted, .sec-dark .lead { color: color-mix(in srgb, var(--slate-ink) 72%, transparent); }
.sec-head { display: grid; gap: .9rem; margin-bottom: 2.4rem; max-width: 760px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* Accueil : en-tête */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2rem); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.hero h1 em { font-style: normal; color: var(--hab); }
.hero h1 em + em, .hero h1 .pro { color: var(--pro); }
.hero-side { display: grid; gap: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .95rem; color: var(--muted); }
.hero-meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); margin-right: .5rem; vertical-align: .15em; }
@media (max-width: 900px) { .hero-in { grid-template-columns: minmax(0, 1fr); } }

/* Deux portes d'entrée */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.door { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); border-top: 6px solid var(--c); }
.door.hab { --c: var(--hab); --cs: var(--hab-soft); } .door.pro { --c: var(--pro); --cs: var(--pro-soft); }
.door-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--cs); max-width: 100%; }
.door-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.door:hover .door-img img { transform: scale(1.03); }
.door-body { display: grid; gap: .9rem; padding: clamp(1.25rem, 3vw, 2rem); align-content: start; }
.door-tag { font: 600 .8rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.door ul.chips { margin: .2rem 0 .4rem; }
.door .btn { justify-self: start; margin-top: auto; }
@media (max-width: 760px) { .doors { grid-template-columns: minmax(0, 1fr); } }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { font-size: .88rem; padding: .25rem .6rem; border-radius: 999px; background: var(--cs, var(--bg)); color: var(--c, var(--ink)); font-weight: 500; }

/* Piliers / cartes */
.pillar { display: grid; gap: .6rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.pillar h3 { font-size: 1.3rem; }
.pillar ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .97rem; display: grid; gap: .2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; display: grid; gap: .7rem; align-content: start; }
.sec-white .card { background: var(--bg); border-color: transparent; }
.card h3 { font-size: 1.3rem; }
.card .textlink { justify-self: start; margin-top: .3rem; }

/* Comparaison habitation / pro */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.compare > div { padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; align-content: start; }
.compare > div + div { border-left: 1px solid var(--line); }
.compare h3 { display: flex; align-items: center; }
.compare .hab h3 { color: var(--hab); } .compare .pro h3 { color: var(--pro); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .8rem; height: .45rem; border: solid var(--c, var(--hab)); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.compare .hab { --c: var(--hab); } .compare .pro { --c: var(--pro); }
@media (max-width: 760px) { .compare { grid-template-columns: minmax(0, 1fr); } .compare > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Points forts */
.strengths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.strengths > div { padding: 1.5rem 1.5rem 1.5rem 0; display: grid; gap: .5rem; align-content: start; }
.strengths > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.strengths h3 { font-size: 1.25rem; }
@media (max-width: 900px) { .strengths { grid-template-columns: repeat(2, minmax(0, 1fr)); } .strengths > div:nth-child(3) { border-left: 0; padding-left: 0; } .strengths > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .strengths { grid-template-columns: minmax(0, 1fr); } .strengths > div, .strengths > div + div { border-left: 0; padding-left: 0; } .strengths > div + div { border-top: 1px solid var(--line); } }

/* Bande patrimoine */
.band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.band-img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; }
.band-img img { width: 100%; height: 100%; object-fit: cover; }
.profile-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.profile-list li { border: 1px solid color-mix(in srgb, var(--slate-ink) 35%, transparent); border-radius: 999px; padding: .3rem .8rem; font-size: .92rem; }
@media (max-width: 860px) { .band { grid-template-columns: minmax(0, 1fr); } }

/* Territoires */
.terr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
.terr-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: .9rem; align-content: start; }
.terr-card .towns { font-size: .95rem; color: var(--muted); }
.terr-note { margin-top: 1.25rem; display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.pin { flex: none; width: 22px; height: 22px; color: var(--hab); }
.terr-map { width: 100%; height: auto; max-width: 100%; }
@media (max-width: 760px) { .terr { grid-template-columns: minmax(0, 1fr); } }

/* Articles */
.post-card { display: grid; gap: .6rem; align-content: start; text-decoration: none; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, transform .15s; height: 100%; }
.post-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.post-card h3 { font-size: 1.35rem; }
.post-card p { color: var(--muted); font-size: .96rem; }
.cat { font: 600 .76rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--c, var(--muted)); }
.cat-hab { --c: var(--hab); } .cat-pro { --c: var(--pro); } .cat-gen { --c: var(--muted); }
.post-meta { font-size: .85rem; color: var(--muted); }

/* Groupe */
.group-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.group-strip a { background: var(--surface); padding: 1.2rem 1.3rem; text-decoration: none; display: grid; gap: .3rem; align-content: start; }
.group-strip a:hover { background: var(--bg); }
.group-strip strong { font: 600 1.2rem/1.1 var(--f-display); }
.group-strip span { font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) { .group-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .group-strip { grid-template-columns: minmax(0, 1fr); } }

/* Formulaires */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label, .legend { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], select, textarea { width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); border-radius: var(--r); background: var(--surface); color: var(--ink); font: 400 1rem/1.4 var(--f-body); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--focus) 45%, transparent); border-color: var(--focus); }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .row-2 { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: .25rem; width: 18px; height: 18px; flex: none; accent-color: var(--hab); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 3.5vw, 2.25rem); box-shadow: var(--shadow); }
.type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; border: 0; padding: 0; margin: 0; }
.type-grid legend { margin-bottom: .7rem; font: 600 1.3rem/1.2 var(--f-display); }
.type-opt { position: relative; }
.type-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.type-opt span { display: flex; flex-direction: column; justify-content: center; gap: .15rem; min-height: 64px; padding: .7rem .9rem; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: var(--r); background: var(--surface); font-weight: 600; transition: background .15s, border-color .15s; }
.type-opt small { font-weight: 400; color: var(--muted); font-size: .82rem; }
.type-opt.hab { --c: var(--hab); --cs: var(--hab-soft); } .type-opt.pro { --c: var(--pro); --cs: var(--pro-soft); } .type-opt.mix { --c: var(--slate); --cs: var(--bg); }
.type-opt input:checked + span { background: var(--cs); border-color: var(--c); }
.type-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 720px) { .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps-bar { display: flex; gap: .4rem; margin-bottom: 1.4rem; }
.steps-bar span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps-bar span.on { background: var(--ink); }
.step-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.form-error { color: #b3261e; font-size: .92rem; font-weight: 600; }
:root[data-theme="dark"] .form-error { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-error { color: #ff8a80; } }
.only-pro, .only-lots, .only-hab { display: contents; }

/* Pages intérieures */
.page-head { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem); }
.page-head-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 3.5rem; align-items: center; }
.page-head-in .stack-lg { max-width: 720px; }
.page-head .head-img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; border-bottom: 6px solid var(--c, var(--lime)); }
.page-head .head-img img { width: 100%; height: 100%; object-fit: cover; }
.page-head.hab { --c: var(--hab); } .page-head.pro { --c: var(--pro); }
.page-head.hab .eyebrow { color: var(--hab); } .page-head.pro .eyebrow { color: var(--pro); }
@media (max-width: 860px) { .page-head-in { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 70ch; display: grid; gap: 1.05rem; }
.prose h2 { margin-top: 1.4rem; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.prose h3 { margin-top: .6rem; font-size: 1.35rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .35rem; }
.prose a { color: var(--ink); }
.prose strong { font-weight: 600; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.prose th, .prose td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; background: var(--bg); }
.prose blockquote, .note { margin: 0; padding: 1rem 1.2rem; border-left: 4px solid var(--lime); background: var(--surface); border-radius: 0 var(--r) var(--r) 0; font-size: .97rem; }
.aside-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.aside-sticky { position: sticky; top: 100px; display: grid; gap: 1rem; }
@media (max-width: 960px) { .aside-layout { grid-template-columns: minmax(0, 1fr); } .aside-sticky { position: static; } }
.cta-box { background: var(--slate); color: var(--slate-ink); border-radius: var(--r); padding: 1.5rem; display: grid; gap: .8rem; }
.cta-box p { color: color-mix(in srgb, var(--slate-ink) 78%, transparent); font-size: .96rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.3rem; font-size: .93rem; }
.toc ol { margin: .5rem 0 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
.toc a { text-decoration: none; } .toc a:hover { text-decoration: underline; }
.faq details { border-top: 1px solid var(--line); padding-block: .9rem; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 1.4rem/1 var(--f-display); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-top: .6rem; color: var(--muted); display: grid; gap: .6rem; max-width: 70ch; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.filter button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .45rem .9rem; font: 500 .92rem/1 var(--f-body); cursor: pointer; min-height: 38px; }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Pied de page */
.foot { background: var(--slate); color: var(--slate-ink); padding-block: 3.5rem 2rem; font-size: .95rem; }
.foot a { color: inherit; text-decoration: none; } .foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot h2 { font: 600 .82rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; color: color-mix(in srgb, var(--slate-ink) 65%, transparent); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot .logo-mark { color: var(--slate-ink); } .foot .logo-mark b { color: var(--lime); } .foot .logo-word { color: color-mix(in srgb, var(--slate-ink) 65%, transparent); }
.foot address { font-style: normal; display: grid; gap: .3rem; margin-top: 1rem; }
.foot-legal { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid color-mix(in srgb, var(--slate-ink) 18%, transparent); display: grid; gap: .6rem; font-size: .84rem; color: color-mix(in srgb, var(--slate-ink) 70%, transparent); }
.foot-legal .todo { color: var(--warn-ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* Bandeau cookies (actif uniquement si un outil de mesure est configuré) */
.consent { position: fixed; z-index: 70; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.1rem 1.2rem; display: grid; gap: .8rem; font-size: .93rem; }
.consent div { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent .btn { min-height: 40px; padding: .5rem 1rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .top, .foot, .mobile-cta, .consent { display: none; } }

/* Bouton de l’en-tête (prioritaire sur les liens de navigation) */
.nav a.btn-main { background: var(--lime); color: #1d2400; padding: .7rem 1.1rem; font-weight: 600; }
.nav a.btn-main:hover { background: #d8e25c; }

/* ===== Phase 2 ===== */
/* Logo officiel (M&B, fond ardoise pour garder l’esperluette blanche lisible) */
.logo img { display: block; width: auto; height: 40px; }
.top .logo { background: #353f45; padding: 6px 10px; border-radius: 4px; }
.logo-foot img { height: 50px; }

/* Bandeau photo de Tours */
.hero-photo { position: relative; isolation: isolate; color: #fff; background: #2b3438; overflow: hidden; }
.hero-photo picture, .hero-photo .hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-photo .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(22,28,31,.86) 0%, rgba(22,28,31,.66) 42%, rgba(22,28,31,.12) 78%, rgba(22,28,31,0) 100%); }
.hero-photo .wrap { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero-copy { max-width: 640px; display: grid; gap: 1.1rem; }
.hero-copy .eyebrow { color: #dfe7a0; }
.hero-copy h1 { color: #fff; text-shadow: 0 1px 18px rgba(0,0,0,.25); }
.hero-copy .accroche { font: 600 clamp(1.3rem, 2.4vw, 1.7rem)/1.25 var(--f-display); color: var(--lime); }
.hero-copy p.intro { font-size: 1.12rem; line-height: 1.55; color: rgba(255,255,255,.9); max-width: 56ch; }
.hero-copy .btn-ghost { color: #fff; }
.trust { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .6rem; font-size: .88rem; }
.trust li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: .28rem .7rem; }
.photo-credit { position: absolute; right: max(10px, env(safe-area-inset-right, 0px)); bottom: 8px; font-size: .72rem; color: rgba(255,255,255,.8); text-decoration: none; background: rgba(0,0,0,.35); padding: .1rem .45rem; border-radius: 3px; }
.photo-credit:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .hero-photo { display: flex; flex-direction: column; }
  .hero-photo .hero-bg { position: relative; inset: auto; order: -1; height: 58vw; max-height: 320px; z-index: 0; }
  .hero-photo::after { display: none; }
  .hero-photo .wrap { padding-block: 1.6rem 2.4rem; }
  .photo-credit { top: calc(min(58vw, 320px) - 26px); bottom: auto; }
}
.doors-lift { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.door-img { position: relative; }
.illu-tag { position: absolute; left: 10px; bottom: 10px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; background: rgba(0,0,0,.5); color: #fff; padding: .15rem .5rem; border-radius: 3px; }

/* Bandeau assurance loyers impayés */
.gli-band { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; background: var(--hab-soft); border: 1px solid color-mix(in srgb, var(--hab) 30%, transparent); border-radius: var(--r); padding: clamp(1.4rem, 4vw, 2.6rem); }
.gli-band h2 { color: var(--ink); }
.gli-band .ticks { --c: var(--hab); }
.gli-band .hero-actions { margin-top: .4rem; }
@media (max-width: 820px) { .gli-band { grid-template-columns: minmax(0, 1fr); } }

/* Avantages (6) */
.adv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.adv > div { padding: 1.5rem 1.5rem 1.5rem 0; display: grid; gap: .45rem; align-content: start; border-bottom: 1px solid var(--line); }
.adv > div:not(:nth-child(3n+1)) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.adv h3 { font-size: 1.25rem; }
@media (max-width: 860px) { .adv { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adv > div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; } .adv > div:nth-child(2n) { padding-left: 1.5rem; border-left: 1px solid var(--line); } }
@media (max-width: 560px) { .adv { grid-template-columns: minmax(0, 1fr); } .adv > div:nth-child(2n) { padding-left: 0; border-left: 0; } }

/* Étapes réelles d’un mandat */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: .45rem; align-content: start; padding-top: 1rem; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(s); font: 700 2rem/1 var(--f-display); color: var(--hab); }
.steps h3 { font-size: 1.2rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Communes */
.towns-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
@media (max-width: 900px) { .towns-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.towns-grid a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .7rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-weight: 500; }
.towns-grid a:hover { border-color: var(--ink); }
.towns-grid a::after { content: "→"; color: var(--muted); }
.towns-grid small { color: var(--muted); font-weight: 400; }

/* Bandeaux d’en-tête de page avec photo */
.head-figure figcaption, .credit-line { font-size: .75rem; color: var(--muted); margin-top: .35rem; }
.head-figure { margin: 0; }
.placeholder-box { border: 2px dashed color-mix(in srgb, var(--warn-ink) 45%, transparent); background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--r); padding: 1rem 1.2rem; font-size: .95rem; }
.kpi-table td:first-child { white-space: nowrap; }

/* ===== Phase 3 : allègement, en-tête ardoise, photos recadrées ===== */
:root { --r: 10px; --r-sm: 6px; }
.sec { padding-block: clamp(2.75rem, 5.5vw, 4.25rem); }
.sec-tight { padding-block: clamp(1.75rem, 3.5vw, 2.5rem); }
.sec-head { margin-bottom: clamp(1.4rem, 3vw, 2rem); gap: .6rem; }
.row-head { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); }
.lead { font-size: 1.12rem; }
.btn { border-radius: var(--r-sm); }
.btn-line { border-color: color-mix(in srgb, var(--ink) 30%, transparent); background: transparent; color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }

/* En-tête ardoise : le logo historique (lime et blanc) est conçu pour un fond sombre */
.top { background: #2f383d; border-bottom: 0; color: #eef1ea; }
body::before { background: #2f383d; }
.top-in { min-height: 76px; }
.top .logo { background: none; padding: 0; border-radius: 0; }
.logo img { height: 48px; width: auto; }
.nav a, .nav button.sub { color: #eef1ea; font-weight: 500; }
.nav > ul > li > a:hover, .nav button.sub:hover, .nav > ul > li > a[aria-current="page"], .nav li.open > button.sub { background: rgba(255,255,255,.09); }
.nav .menu { border: 0; border-radius: var(--r); padding: .5rem; box-shadow: 0 18px 40px -16px rgba(20,26,29,.45), 0 2px 6px rgba(20,26,29,.12); top: calc(100% + 8px); min-width: 300px; }
.nav .menu a { color: var(--ink); border-radius: var(--r-sm); padding: .65rem .8rem; line-height: 1.25; }
.nav .menu a:hover, .nav .menu a[aria-current="page"] { background: var(--bg); }
.nav .menu a small { font-size: .82rem; }
.client-link { opacity: .92; }
.burger { background: transparent; color: #eef1ea; border-color: rgba(255,255,255,.25); }
@media (max-width: 1080px) {
  .top-in { min-height: 64px; }
  .logo img { height: 42px; }
  .nav { background: #2f383d; border-bottom: 0; max-height: calc(100dvh - 64px); }
  .nav .menu { border-left: 2px solid rgba(255,255,255,.18); background: transparent; box-shadow: none; border-radius: 0; }
  .nav .menu a { color: #eef1ea; }
  .nav .menu a small { color: rgba(238,241,234,.7); }
  .nav .menu a:hover, .nav .menu a[aria-current="page"] { background: rgba(255,255,255,.08); }
}
.foot { background: #2f383d; }

/* Accueil : panorama du pont Wilson + carte de titre */
.hero { padding: 0; background: var(--bg); }
.hero-pano { margin: 0; position: relative; background: #cfe0ee; }
.hero-pano img { width: 100%; height: auto; aspect-ratio: 4 / 1; }
@media (max-width: 1100px) { .hero-pano img { aspect-ratio: 12 / 5; } }
@media (max-width: 600px) { .hero-pano img { aspect-ratio: 16 / 10; } }
@media (min-width: 1921px) { .hero-pano img { max-height: 520px; object-fit: cover; object-position: 50% 45%; } }
.hero-pano figcaption { position: absolute; right: max(10px, env(safe-area-inset-right, 0px)); top: 8px; font-size: .7rem; }
.hero-pano figcaption a { color: rgba(30,40,46,.75); background: rgba(255,255,255,.6); padding: .1rem .45rem; border-radius: 3px; text-decoration: none; }
.hero-card { position: relative; margin-top: clamp(-6rem, -7vw, -2.5rem); background: var(--surface); border-radius: var(--r); box-shadow: 0 1px 2px rgba(35,43,48,.06), 0 24px 48px -28px rgba(35,43,48,.35); padding: clamp(1.4rem, 3.4vw, 2.6rem); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.6rem clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero-main { display: grid; gap: .85rem; }
.hero-main h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.hero-main .accroche { font: 500 clamp(1.15rem, 1.9vw, 1.4rem)/1.3 var(--f-body); color: var(--muted); }
.hero-main .hero-actions { margin-top: .5rem; }
.hero-paths { display: grid; gap: .6rem; }
.hero-paths-title { font: 600 .78rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.path { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem .9rem 1.1rem; border-radius: var(--r-sm); background: var(--cs); border-left: 4px solid var(--c); text-decoration: none; transition: transform .15s; }
.path.hab { --c: var(--hab); --cs: var(--hab-soft); } .path.pro { --c: var(--pro); --cs: var(--pro-soft); }
.path span { display: grid; gap: .1rem; }
.path strong { font: 600 1.2rem/1.15 var(--f-display); color: var(--c); }
.path small { font-size: .88rem; color: var(--muted); }
.path::after { content: "→"; color: var(--c); font-weight: 600; }
.path:hover { transform: translateX(3px); }
@media (max-width: 900px) { .hero-card { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .hero-card { margin-top: -1.25rem; padding: 1.3rem 1.1rem 1.4rem; } .hero-main .hero-actions .btn { flex: 1 1 100%; } }

/* Deux métiers */
.doors { padding-bottom: 0; gap: clamp(1rem, 2.5vw, 1.5rem); }
.door { border-top: 0; box-shadow: none; border: 1px solid var(--line); grid-template-rows: auto 1fr; }
.door-img { aspect-ratio: 3 / 2; }
.door-img img { object-position: 50% 50%; }
.door-body { gap: .6rem; padding: clamp(1.1rem, 2.4vw, 1.6rem); }
.door h3 { font-size: 1.55rem; }
.door-tag { font-size: .74rem; }
.door-links { list-style: none; margin: .4rem 0 0; padding: .7rem 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; }
.door-links a { color: var(--c); font-weight: 600; text-decoration: none; font-size: .96rem; }
.door-links a::after { content: " →"; }
.door-links a:hover { text-decoration: underline; }

/* Avantages : 3 colonnes aérées */
.adv { gap: 1.6rem clamp(1.5rem, 3vw, 2.5rem); border-top: 0; }
.adv > div, .adv > div:not(:nth-child(3n+1)), .adv > div:nth-child(2n) { padding: 1rem 0 0; border: 0; border-top: 2px solid var(--line); }
.adv h3 { font-size: 1.2rem; }
.adv p { font-size: .98rem; }

/* Duo GLI / investisseurs */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.duo-card { border-radius: var(--r); padding: clamp(1.4rem, 3.2vw, 2.2rem); display: grid; gap: .8rem; align-content: start; }
.duo-card.soft { background: var(--hab-soft); }
.duo-card.soft .eyebrow { color: var(--hab); }
.duo-card.dark { background: #2f383d; color: #eef1ea; }
.duo-card.dark .eyebrow, .duo-card.dark p { color: rgba(238,241,234,.78); }
.duo-card .textlink { justify-self: start; margin-top: .4rem; }
.duo-card h2 { font-size: clamp(1.55rem, 2.5vw, 2rem); }
@media (max-width: 760px) { .duo { grid-template-columns: minmax(0, 1fr); } }

/* Image + texte */
.split-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4.5vw, 4rem); align-items: center; }
.media-3x2 { margin: 0; }
.media-3x2 img { width: 100%; aspect-ratio: 3 / 2; height: auto; border-radius: var(--r); }
@media (max-width: 860px) { .split-media { grid-template-columns: minmax(0, 1fr); } }
.town-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.town-chips a { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .95rem; background: var(--bg); }
.town-chips a:hover { border-color: var(--ink); }
.client-note { padding: .9rem 1rem; border-left: 3px solid var(--lime); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .97rem; }

/* Pages intérieures : visuels 3:2 sans déformation */
.page-head .head-img { aspect-ratio: 3 / 2; border-bottom: 0; }
.page-head .head-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--c, var(--lime)); }
.page-head .head-img img { aspect-ratio: 3 / 2; }
.head-img { position: relative; }
.post-card { border-radius: var(--r); }
.card, .form-box, .cta-box, .table-wrap, .toc, .group-strip, .terr-card { border-radius: var(--r); }
.faq summary { padding-block: .1rem; }
.card-img { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: var(--r-sm); }
.page-head h1 { font-size: clamp(2.2rem, 4vw, 3.3rem); }

/* ===== Navigation : menu « Gestion locative » en deux colonnes ===== */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav > ul > li > a.is-section, .mega-head > a.is-section { box-shadow: inset 0 -2px 0 var(--lime); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.has-mega { position: relative; }
.mega-head { display: flex; align-items: center; border-radius: var(--r); }
.mega-head > a { padding-right: .25rem; }
.nav .mega-head button.sub { padding: .55rem .5rem .55rem .2rem; }
.nav .mega-head button.sub::after { margin-left: 0; }
.nav .has-mega.open .mega-head, .nav .mega-head:hover { background: rgba(255,255,255,.09); }
.nav .mega-head > a:hover, .nav .mega-head button.sub:hover { background: none; }
.mega { display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-38%); width: min(640px, 92vw); background: var(--surface); color: var(--ink); border-radius: var(--r); box-shadow: 0 22px 48px -18px rgba(20,26,29,.5), 0 2px 6px rgba(20,26,29,.12); padding: 1.1rem; grid-template-columns: 1fr 1fr; gap: .4rem 1rem; z-index: 50; }
.mega::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.has-mega.open > .mega { display: grid; }
@media (hover: hover) and (min-width: 1081px) {
  .has-mega:hover > .mega, .has-mega:focus-within > .mega { display: grid; }
  .has-mega.hush > .mega { display: none; }
}
.mega-col { display: grid; align-content: start; gap: .25rem; padding: .2rem 0 0; }
.mega-title { margin: 0 .7rem .2rem; padding-bottom: .5rem; font: 600 .74rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c); border-bottom: 2px solid var(--c); }
.mega-col.hab { --c: var(--hab); } .mega-col.pro { --c: var(--pro); }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.nav .mega a { display: block; color: var(--ink); padding: .6rem .7rem; border-radius: var(--r-sm); font-weight: 600; font-size: .97rem; line-height: 1.25; }
.nav .mega a small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: .15rem; }
.nav .mega ul a:hover, .nav .mega ul a[aria-current="page"] { background: var(--cs, var(--bg)); }
.mega-col.hab { --cs: var(--hab-soft); } .mega-col.pro { --cs: var(--pro-soft); }
.mega-foot { grid-column: 1 / -1; margin: .5rem 0 0; padding-top: .7rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; }
.nav .mega-foot a { display: inline-block; padding: .35rem .7rem; font-weight: 500; font-size: .92rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 4px; }
.nav .mega-foot a:hover { background: var(--bg); }
.nav a:focus-visible, .nav button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
@media (max-width: 1080px) {
  .mega-head { justify-content: space-between; }
  .nav .mega-head > a { width: auto; flex: 1; }
  .nav .mega-head button.sub { width: 52px; height: 48px; justify-content: center; border-left: 1px solid rgba(255,255,255,.14); border-radius: 0; padding: 0; }
  .mega { position: static; transform: none; width: auto; box-shadow: none; background: rgba(255,255,255,.05); color: #eef1ea; grid-template-columns: minmax(0, 1fr); padding: .6rem .4rem .8rem; margin: .2rem 0 .6rem; gap: .9rem; }
  .mega::before { display: none; }
  .mega-col.hab { --c: #cad541; } .mega-col.pro { --c: #e7a9c4; }
  .nav .mega a { color: #eef1ea; padding: .7rem .7rem; }
  .nav .mega a small { color: rgba(238,241,234,.68); }
  .nav .mega ul a:hover, .nav .mega ul a[aria-current="page"] { background: rgba(255,255,255,.08); }
  .mega-foot { border-top-color: rgba(255,255,255,.14); flex-direction: column; }
  .nav .mega-foot a { color: #eef1ea; }
  .nav .mega-foot a:hover { background: rgba(255,255,255,.08); }
}

/* ===== FAQ par thèmes ===== */
.faq-page { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.faq-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.faq-nav a { display: inline-flex; align-items: center; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; background: var(--bg); }
.faq-nav a:hover { border-color: var(--ink); }
.faq-theme { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem clamp(1.5rem, 4vw, 3.5rem); padding-top: 1.4rem; border-top: 2px solid var(--line); scroll-margin-top: 96px; }
.faq-theme.hab { --c: var(--hab); --cs: var(--hab-soft); } .faq-theme.pro { --c: var(--pro); --cs: var(--pro-soft); } .faq-theme.gen { --c: var(--ink); --cs: var(--bg); }
.faq-theme h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--c); }
.faq-theme-head { display: grid; gap: .5rem; align-content: start; }
.faq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.faq-list a { display: grid; gap: .25rem; padding: .9rem 1.1rem; border-radius: var(--r-sm); background: var(--bg); text-decoration: none; border-left: 3px solid transparent; transition: border-color .15s, background .15s; }
.faq-list a:hover, .faq-list a:focus-visible { border-left-color: var(--c); background: var(--cs); }
.faq-list strong { font: 600 1.12rem/1.25 var(--f-display); color: var(--ink); }
.faq-list span { font-size: .95rem; color: var(--muted); }
.faq-more { margin: 0; padding: 1rem 1.2rem; border-left: 3px solid var(--lime); background: var(--bg); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
@media (max-width: 760px) { .faq-theme { grid-template-columns: minmax(0, 1fr); } }
.metiers-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.metier-col { --c: var(--hab); --cs: var(--hab-soft); border-top: 4px solid var(--c); padding-top: 1rem; }
.metier-col.pro { --c: var(--pro); --cs: var(--pro-soft); }
.metier-title { margin: 0 0 .6rem; font: 600 .78rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.metier-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.metier-col a { display: grid; gap: .2rem; padding: .85rem 1rem; border-radius: var(--r-sm); background: var(--bg); text-decoration: none; }
.metier-col a:hover { background: var(--cs); }
.metier-col strong { font: 600 1.12rem/1.25 var(--f-display); color: var(--c); }
.metier-col span { font-size: .94rem; color: var(--muted); }
@media (max-width: 760px) { .metiers-2 { grid-template-columns: minmax(0, 1fr); } }
.nav .has-mega.open button.sub::after { transform: rotate(-135deg) translate(-2px, -1px); }

/* ===== Accueil : texte à gauche, photo réduite à droite ===== */
.hero-split { padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4rem); background: var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.hero-split .hero-main { gap: .9rem; }
.hero-split .hero-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .9rem; }
.hero-split .hero-paths-title { grid-column: 1 / -1; }
.hero-photo-sm { margin: 0; max-width: 480px; justify-self: end; width: 100%; }
.hero-photo-sm img { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: var(--r); box-shadow: 0 24px 48px -28px rgba(35,43,48,.45); }
.hero-photo-sm figcaption { margin-top: .5rem; font-size: .76rem; color: var(--muted); }
.hero-photo-sm figcaption a { color: inherit; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-photo-sm { justify-self: start; max-width: 560px; }
}
@media (max-width: 560px) { .hero-split .hero-paths { grid-template-columns: minmax(0, 1fr); } .hero-split .hero-actions .btn { flex: 1 1 100%; } }

/* ===== Accueil : accroche à gauche, deux métiers à droite ===== */
.hero-split .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.hero-offer { display: grid; gap: .9rem; }
.offer { --c: var(--hab); --cs: var(--hab-soft); display: grid; gap: .35rem; padding: 1.15rem 1.3rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: var(--r); text-decoration: none; color: var(--ink); box-shadow: 0 14px 30px -24px rgba(35,43,48,.4); transition: transform .15s, background .15s; }
.offer.pro { --c: var(--pro); --cs: var(--pro-soft); }
.offer:hover, .offer:focus-visible { background: var(--cs); transform: translateY(-2px); }
.offer-tag { font: 600 .74rem/1.2 var(--f-body); letter-spacing: .13em; text-transform: uppercase; color: var(--c); }
.offer strong { font: 600 1.45rem/1.15 var(--f-display); }
.offer-text { font-size: .96rem; color: var(--muted); }
.offer-go { margin-top: .25rem; font-weight: 600; font-size: .95rem; color: var(--c); }
.offer-go::after { content: " →"; }
@media (max-width: 900px) { .hero-split .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Accueil : cartes métiers compactes */
.hero-split .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; }
.hero-offer { gap: .7rem; max-width: 420px; justify-self: end; width: 100%; }
.offer { gap: .2rem; padding: .85rem 2.6rem .85rem 1.05rem; border-left-width: 4px; position: relative; box-shadow: none; }
.offer strong { font-size: 1.18rem; }
.offer-tag { font-size: .68rem; letter-spacing: .12em; }
.offer-text { font-size: .9rem; }
.offer::after { content: "→"; position: absolute; right: 1.05rem; top: 50%; transform: translateY(-50%); color: var(--c); font-weight: 600; font-size: 1.1rem; }
.offer:hover, .offer:focus-visible { transform: none; }
@media (max-width: 900px) { .hero-offer { justify-self: start; max-width: 560px; } }

/* Notre agence : texte en haut, coordonnées ensuite */
.agency-sec { padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.agency-split { align-items: start; }
.agency-card { margin-top: .5rem; }
.page-head.compact { padding-top: clamp(.75rem, 2vw, 1.25rem); padding-bottom: clamp(1.25rem, 3vw, 2rem); }
.page-head.compact .stack-lg { gap: .6rem; }
.page-head.compact h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.page-head.compact .lead { font-size: 1.05rem; }
.leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 1.75rem); }
.leader { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 1.25rem; align-items: start; padding: clamp(1.2rem, 3vw, 1.6rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.leader-avatar { width: 88px; height: 88px; border-radius: 50%; background: #2f383d; color: var(--lime); display: grid; place-items: center; font: 600 1.5rem/1 var(--f-display); letter-spacing: .04em; }
.leader-body { display: grid; gap: .45rem; }
.leader h3 { font-size: 1.45rem; }
.leader-role { font-weight: 600; color: var(--muted); margin: 0; }
.leader-in { justify-self: start; font-weight: 600; font-size: .95rem; }
@media (max-width: 760px) { .leaders { grid-template-columns: minmax(0, 1fr); } .leader { grid-template-columns: 64px minmax(0, 1fr); } .leader-avatar { width: 64px; height: 64px; font-size: 1.15rem; } }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.contact-grid .card { display: grid; gap: .5rem; align-content: start; }
.contact-grid h3 { font-size: 1.2rem; }
.contact-grid p { margin: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.leader { grid-template-columns: 120px minmax(0, 1fr); align-items: center; }
.leader-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.leaders-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.leaders-text h3 { font-size: 1.25rem; margin-bottom: .4rem; }
@media (max-width: 760px) { .leader { grid-template-columns: 88px minmax(0, 1fr); } .leader-photo { width: 88px; height: 88px; } .leaders-text { grid-template-columns: minmax(0, 1fr); } }
.hero-sub { margin: .2rem 0 0; font: 500 clamp(1.15rem, 1.8vw, 1.35rem)/1.3 var(--f-body); color: var(--ink); }
.hero-sub strong { font-weight: 700; }
.hero-split .accroche { margin-top: -.35rem; }
@media (max-width: 900px) {
  .hero-offer { max-width: none; width: 100%; justify-self: stretch; min-width: 0; }
  .offer { min-width: 0; }
  .offer-tag, .offer strong, .offer-text { overflow-wrap: anywhere; }
}
@media (max-width: 560px) {
  .hero-split { padding-top: 1.5rem; }
  .offer-tag { letter-spacing: .06em; }
  .offer { padding-right: 2.2rem; }
}
/* Mobile et tablette : accroche puis les deux métiers l'un sous l'autre (règle placée en dernier pour primer) */
@media (max-width: 900px) {
  .hero-split .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .hero-offer { justify-self: stretch; max-width: 560px; }
}
.gli-contract { padding: 1.1rem 1.3rem; border-left: 4px solid var(--hab); background: var(--hab-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-bottom: 2rem; }
.gli-contract .eyebrow { color: var(--hab); margin-bottom: .4rem; }
.gli-contract p { margin: 0 0 .5rem; } .gli-contract p:last-child { margin-bottom: 0; }

/* Confier mon bien : question pleine largeur, types de biens regroupés */
.type-grid { display: block; }
.type-grid legend { display: block; width: 100%; float: left; margin: 0 0 1.1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); font: 600 clamp(1.3rem, 2.2vw, 1.6rem)/1.2 var(--f-display); }
.type-grid legend + * { clear: both; }
.type-group { clear: both; display: grid; gap: .5rem; padding: .2rem 0 .9rem; }
.type-group + .type-group { padding-top: .9rem; border-top: 1px dashed var(--line); }
.type-group-title { margin: 0; font: 600 .78rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.type-group.hab { --c: var(--hab); } .type-group.pro { --c: var(--pro); } .type-group.mix { --c: var(--slate); }
.type-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.type-opt span { min-height: 0; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .98rem; flex-direction: row; }
.type-opt input:checked + span { background: var(--cs); border-color: var(--c); color: var(--c); font-weight: 600; box-shadow: inset 0 0 0 1px var(--c); }
.type-opt span:hover { border-color: var(--c); }
.type-hint { display: none; }
/* Menu : le lien « Gestion locative » reste lisible sur la page en cours */
.nav .mega-head > a, .nav .mega-head > a:hover, .nav .mega-head > a:focus, .nav .mega-head > a[aria-current="page"] { background: transparent; color: #eef1ea; }
#mandat { scroll-margin-top: 96px; }
