/* AG Immo & Expertises — brand gold + deep navy from the logo */
:root {
  --bg: #FFFFFF;
  --band: #F2F3F5;
  --surface: #FFFFFF;
  --ink: #141C28;
  --muted: #545E6B;
  --line: #DDE0E4;
  --navy: #13213A;
  --gold: #A27A2C;
  --gold-soft: #F4EBD8;
  --on-dark: #FFFFFF;
  --f-head: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --f-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F141B; --band: #151C25; --surface: #1A222D; --ink: #E9ECEF; --muted: #A2ACB7;
    --line: #2A3441; --navy: #0B1220; --gold: #D2AA5C; --gold-soft: #2A2416; --on-dark: #FFFFFF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F141B; --band: #151C25; --surface: #1A222D; --ink: #E9ECEF; --muted: #A2ACB7;
  --line: #2A3441; --navy: #0B1220; --gold: #D2AA5C; --gold-soft: #2A2416; --on-dark: #FFFFFF;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 1.05rem; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 74rem; margin: 0 auto; padding-inline: 1.25rem; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 500; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.15; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
.eyebrow { font-family: var(--f-head); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.rule { width: 3rem; height: 2px; background: var(--gold); margin: 1rem 0 1.25rem; }
.intro { color: var(--muted); max-width: 42rem; }
.intro + .intro { margin-top: 1rem; }
.mt { margin-top: 1.25rem; }

.btn { display: inline-flex; align-items: center; padding: 0.8rem 1.4rem; background: var(--gold); color: #FFFFFF; border: 0; border-radius: 2px; font: 500 0.95rem var(--f-head); letter-spacing: 0.04em; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.line { background: transparent; border: 1px solid rgba(255,255,255,0.7); color: #FFFFFF; }
.btn.outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }

/* Top bar + header */
.topbar { background: var(--navy); color: #C9D0DA; font-size: 0.85rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.45rem; }
.topbar a { color: #FFFFFF; font-weight: 600; text-decoration: none; }
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.5rem; }
.logo { background: #FFFFFF; border-radius: 4px; padding: 0.2rem 0.4rem; display: block; flex-shrink: 0; }
.logo img { height: 96px; width: auto; }
nav.main { display: flex; gap: 1.3rem; flex-wrap: wrap; }
nav.main a { color: var(--ink); text-decoration: none; font-family: var(--f-head); font-size: 0.95rem; padding-block: 0.3rem; border-bottom: 2px solid transparent; }
nav.main a:hover { color: var(--gold); }
nav.main a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.head-cta { display: flex; align-items: center; gap: 0.75rem; }
details.burger { display: none; position: relative; }
details.burger summary { list-style: none; cursor: pointer; border: 1px solid var(--line); padding: 0.55rem 0.8rem; font-family: var(--f-head); font-size: 0.9rem; border-radius: 2px; }
details.burger summary::-webkit-details-marker { display: none; }
details.burger nav { position: absolute; right: 0; top: calc(100% + 0.5rem); background: var(--surface); border: 1px solid var(--line); display: grid; min-width: 15rem; padding: 0.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
details.burger nav a { color: var(--ink); text-decoration: none; padding: 0.6rem 0.75rem; font-family: var(--f-head); }
details.burger nav a[aria-current="page"] { color: var(--gold); }
@media (max-width: 1080px) { nav.main { display: none; } details.burger { display: block; } }
@media (max-width: 600px) { .logo img { height: 72px; } .head-cta .btn { display: none; } }
@media (max-width: 420px) { .logo img { height: 62px; } }

/* Home hero */
.hero { position: relative; color: var(--on-dark); background: var(--navy); }
.hero img.bg, .pagehead img.bg, .banner img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero img.bg { object-position: center 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,18,32,0.88) 0%, rgba(10,18,32,0.62) 55%, rgba(10,18,32,0.25) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-block: 5rem 4.5rem; }
.hero .inner { max-width: 40rem; }
.hero .eyebrow, .pagehead .eyebrow, .banner .eyebrow { color: #E2C483; }
.hero .rule, .banner .rule { background: #E2C483; }
.hero p.lead { font-size: 1.15rem; color: #E4E8EE; margin-top: 1.25rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero .quote { margin-top: 2rem; font-style: italic; color: #E2C483; font-size: 1.05rem; }

/* Inner page head */
.pagehead { position: relative; color: var(--on-dark); background: var(--navy); }
.pagehead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,18,32,0.9) 0%, rgba(10,18,32,0.65) 60%, rgba(10,18,32,0.4) 100%); }
.pagehead .wrap { position: relative; z-index: 1; padding-block: 3.5rem 3rem; }
.pagehead h1 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); max-width: 48rem; margin-top: 0.75rem; }
.pagehead p { color: #D9DEE5; max-width: 42rem; margin-top: 1rem; font-size: 1.08rem; }
.crumbs { font-size: 0.85rem; color: #C9D0DA; }
.crumbs a { color: #FFFFFF; text-decoration: none; }
.crumbs a:hover { color: #E2C483; }

/* Trust strip */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: auto 1fr 1fr 1fr auto; gap: 1.5rem 2rem; align-items: center; padding-block: 1.5rem; }
.badge { background: #FFFFFF; border-radius: 4px; padding: 0.35rem; display: inline-block; }
.badge img { height: 78px; width: auto; }
.trust .badge.left { order: 0; justify-self: start; }
.trust .fact { order: 1; text-align: center; }
.trust .badge.right { order: 2; justify-self: end; }
.fact strong { display: block; font-family: var(--f-head); font-size: 1.25rem; font-weight: 600; color: var(--gold); }
.fact span { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 900px) {
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .trust .badge.left, .trust .badge.right { order: 0; }
  .trust .fact { order: 1; }
  .trust .fact:last-of-type { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .badge img { height: 62px; } }

/* Sections */
section.block { padding-block: 4.5rem; }
section.band { background: var(--band); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split > * { min-width: 0; }
.split.rev .media { order: 2; }
.split.top { align-items: start; }
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } .split.rev .media { order: 0; } }

.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; margin-top: 1.75rem; }
.cases > div { padding: 0.9rem 0 0.9rem 1rem; border-left: 2px solid var(--gold); margin-bottom: 0.9rem; }
.cases p { color: var(--muted); font-size: 0.97rem; margin-top: 0.2rem; }
.cases.wide { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cases.wide { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cases, .cases.wide { grid-template-columns: 1fr; } }

/* Service cards (home) */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.25rem; }
.service { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: var(--ink); }
.service img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.service .body { padding: 1.5rem; display: grid; gap: 0.6rem; }
.service p { color: var(--muted); }
.service .more { font-family: var(--f-head); color: var(--gold); font-weight: 500; }
.service:hover h3 { color: var(--gold); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* Banner */
.banner { position: relative; color: var(--on-dark); background: var(--navy); }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(10,18,32,0.78); }
.banner .wrap { position: relative; z-index: 1; padding-block: 4.5rem; }
.banner .intro { color: #D9DEE5; }
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { border-top: 1px solid rgba(226,196,131,0.6); padding-top: 1rem; min-width: 0; }
.steps li::before { counter-increment: s; content: "Étape " counter(s); display: block; font-family: var(--f-head); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: #E2C483; margin-bottom: 0.4rem; }
.steps p, .steps ul { color: #C9D0DA; font-size: 0.95rem; margin-top: 0.4rem; }
.steps ul { padding-left: 1.1rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.banner .cta { margin-top: 2rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; margin-top: 1.5rem; }
.methods div { padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.methods span { display: block; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 520px) { .methods { grid-template-columns: 1fr; } }
.norms { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.norms span { background: var(--gold-soft); color: var(--ink); padding: 0.3rem 0.75rem; font-size: 0.88rem; border-radius: 2px; }
.callout { margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--gold-soft); border-left: 3px solid var(--gold); max-width: 52rem; }

/* Expert card */
.expert { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3.5rem; align-items: start; }
.expert > * { min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 1.75rem; }
.card .badge { margin-bottom: 1rem; }
.card .badge img { height: 110px; }
.card dl { margin: 0; }
.card dt { font-family: var(--f-head); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 0.9rem; }
.card dd { margin: 0.15rem 0 0; }
.text p + p { margin-top: 1rem; }
.text h2 + p, .text .rule + p { margin-top: 0; }
@media (max-width: 860px) { .expert { grid-template-columns: 1fr; gap: 2rem; } }

/* Zones */
.zones { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.25rem; }
.zone { background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.zone img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.zone .body { padding: 1.4rem; }
.zone ul { list-style: none; padding: 0; margin: 0.9rem 0 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.zone li { border: 1px solid var(--line); padding: 0.25rem 0.65rem; font-size: 0.9rem; }
@media (max-width: 760px) { .zones { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 52rem; margin-top: 2rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--f-head); font-size: 1.1rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 0.7rem; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.25rem; }
.post { background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; min-width: 0; }
.post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post .body { padding: 1.25rem 1.4rem 1.5rem; display: grid; gap: 0.5rem; }
.post time { font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.post p { color: var(--muted); font-size: 0.97rem; }
.post:hover h3 { color: var(--gold); }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

.article { max-width: 46rem; margin: 0 auto; }
.article .meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 2rem; }
.article h2 { font-size: 1.5rem; margin: 2.25rem 0 0.75rem; }
.article p { margin-top: 1rem; }
.article ul { margin: 1rem 0 0; padding-left: 1.2rem; }
.article li + li { margin-top: 0.4rem; }
.article .endcta { margin-top: 2.5rem; padding: 1.5rem; background: var(--band); display: grid; gap: 1rem; justify-items: start; }

/* Legal / plain text */
.plain { max-width: 48rem; }
.plain h2 { font-size: 1.35rem; margin: 2rem 0 0.6rem; }
.plain p + p { margin-top: 0.5rem; }
.todo { background: var(--gold-soft); padding: 0 0.3rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; }
.contact > * { min-width: 0; }
.coords > div { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.coords .k { display: block; font-family: var(--f-head); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.coords .v { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.coords a.v { color: var(--ink); text-decoration: none; }
.hours { display: grid; grid-template-columns: auto auto auto; gap: 0.25rem 1.25rem; justify-content: start; font-variant-numeric: tabular-nums; margin-top: 0.2rem; }
.hours span:nth-child(3n+1) { font-weight: 600; }
.hours span:last-child { color: var(--muted); }
@media (max-width: 420px) { .hours { grid-template-columns: auto auto; } .hours span:nth-child(3n+3) { grid-column: 2; } }
form.devis { background: var(--band); padding: 1.75rem; display: grid; gap: 1rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
form label { display: grid; gap: 0.35rem; font-size: 0.88rem; font-weight: 600; }
form input, form select, form textarea { font: inherit; font-size: 0.97rem; font-weight: 400; padding: 0.65rem 0.75rem; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--ink); width: 100%; }
form textarea { min-height: 7rem; resize: vertical; }
.sent { background: var(--gold-soft); padding: 0.8rem 1rem; font-size: 0.93rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* CTA band */
.ctaband { background: var(--navy); color: var(--on-dark); }
.ctaband .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding-block: 2.5rem; }
.ctaband h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.ctaband p { color: #C9D0DA; margin-top: 0.4rem; }
.ctaband .phone { font-family: var(--f-head); font-size: 1.3rem; color: #FFFFFF; text-decoration: none; font-variant-numeric: tabular-nums; }
.ctaband .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

/* Footer */
footer { background: var(--navy); color: #AEB7C3; font-size: 0.9rem; padding-block: 3rem 2rem; border-top: 1px solid rgba(255,255,255,0.08); }
footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
footer .logo { display: inline-block; margin-bottom: 1rem; }
footer .logo img { height: 84px; }
footer b { color: #FFFFFF; font-family: var(--f-head); font-weight: 500; letter-spacing: 0.06em; }
footer ul { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.35rem; }
footer a { color: #AEB7C3; }
footer a:hover { color: #E2C483; }
footer .legal { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
@media (max-width: 860px) { footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer .cols { grid-template-columns: 1fr; } }

