/* CH Immobilier – feuille de style du site public */

@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-var-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
    --ink: #1f1b17;
    --ink-soft: #4a433b;
    --muted: #7a7066;
    --line: #e9e1d5;
    --line-strong: #d8ccbb;
    --bg: #fbf8f3;
    --surface: #ffffff;
    --sand: #f4ede2;
    --sand-deep: #ebe0cf;
    --wine: #7b2233;
    --wine-dark: #5e1725;
    --wine-soft: #f6e8eb;
    --gold: #a07a43;
    --success: #2d6a4b;
    --success-soft: #e5f1ea;
    --danger: #b3261e;
    --danger-soft: #fcebea;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(31, 27, 23, .06), 0 1px 3px rgba(31, 27, 23, .04);
    --shadow: 0 12px 32px -14px rgba(31, 27, 23, .22), 0 2px 6px rgba(31, 27, 23, .05);
    --shadow-lg: 0 30px 60px -24px rgba(31, 27, 23, .35);
    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
    --container: 1240px;
    --gutter: 24px;
    --header-h: 76px;
    --sticky-offset: var(--header-h); /* hauteur de ce qui reste fixé en haut au défilement */
    --brand: #7d2b30; /* bordeaux du panneau de l’agence */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--sticky-offset) + 20px); }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.015em;
    margin: 0 0 .5em;
    color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.2rem; }
em { font-style: italic; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--wine) 45%, transparent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.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; }
.muted { color: var(--muted); }
.icon-sprite { display: none; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

.eyebrow {
    font-family: var(--font-sans);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .9rem;
}
.eyebrow-light { color: #e9cf9f; }
.lead { font-size: 1.12rem; color: var(--ink-soft); line-height: 1.65; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 46px; padding: 0 1.25rem;
    border: 1px solid transparent; border-radius: 999px;
    font-weight: 600; font-size: .95rem; line-height: 1;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: 0 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--wine); color: #fff; box-shadow: 0 6px 16px -8px rgba(123, 34, 51, .7); }
.btn-primary:hover { background: var(--wine-dark); }
.btn-outline { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); background: var(--sand); }
.btn-light { background: #fff; color: var(--wine-dark); }
.btn-light:hover { background: var(--sand); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--wine); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- En-tête : logo, FNAIM, téléphone ---------- */
html.theme-complet { --header-h: clamp(165px, 15vw, 230px); --sticky-offset: 58px; } /* seul le menu reste fixé au défilement */
/* Bandeau : panorama d'Auxerre vu du pont Paul-Bert (crédit dans le pied de page),
   adouci par un voile clair ; logo et téléphone dans des encadrés blancs. */
.site-header {
    background:
        linear-gradient(rgba(251, 248, 243, .38), rgba(251, 248, 243, .38)),
        var(--sand-deep) url("../img/auxerre-cathedrale.jpg") 50% 100% / cover no-repeat; /* calé en bas : les maisons restent visibles */
}
.header-top { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); padding-top: 14px; padding-bottom: 14px; }
.header-brand, .header-contact {
    padding: 14px 20px; border-radius: 16px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 12px 32px -18px rgba(31, 27, 23, .55);
}
.header-brand { display: flex; align-items: center; gap: 24px; }
.logo-fnaim { display: block; width: auto; height: 52px; }
.header-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-left: auto; text-align: right; }
.header-phone {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--brand); font-family: var(--font-serif); font-size: 1.65rem; font-weight: 600; letter-spacing: .01em; text-decoration: none;
}
.header-phone .icon { width: 22px; height: 22px; }
.header-phone:hover { color: var(--wine-dark); }
.header-hours { font-size: .84rem; color: var(--muted); }

/* Logo, d'après le panneau de l'agence : bandeau bordeaux, capitales blanches, filet intérieur */
.logo { display: inline-flex; flex: none; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.logo-band { display: block; padding: 4px; background: var(--brand); box-shadow: 0 8px 18px -12px rgba(77, 20, 26, .9); }
.logo-band > span {
    display: block; padding: 9px 22px 8px; border: 1px solid rgba(255, 255, 255, .55);
    color: #fff; font-family: var(--font-serif); font-size: 1.8rem; font-weight: 500; line-height: 1;
    letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
}
.logo-sub { display: flex; align-items: center; gap: 10px; color: var(--brand); font-family: var(--font-serif); font-size: 1.05rem; line-height: 1; white-space: nowrap; }
.logo-sub::before, .logo-sub::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .45; }
.logo-sub em { font-weight: 500; }
.logo-place { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.logo-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.logo-footer .logo-band > span { font-size: 1.35rem; padding: 8px 16px 7px; }
.logo-footer .logo-sub { color: #e9cf9f; font-size: .92rem; }

/* Visuels « agence » (maquette du client) : monogramme CH dans un losange blanc, petit logo FNAIM en exposant du losange, bandeau sur toute la largeur */
html.visuels-agence { --brand: #7e0715; } /* rouge du logo */
html.visuels-agence .header-top { max-width: none; gap: 14px; padding: 6px clamp(16px, 2.2vw, 44px); }
html.visuels-agence .header-brand { position: relative; padding: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
html.visuels-agence .logo-fnaim { position: absolute; left: 77%; top: 4%; height: 21%; filter: drop-shadow(0 4px 10px rgba(31, 27, 23, .4)); } /* en %, il suit la taille du losange */
html.visuels-agence .header-contact { align-self: flex-start; margin-top: clamp(16px, 1.8vw, 30px); }
.logo-image { display: block; line-height: 0; }
.logo-image img { display: block; }
.logo-image.logo-header { filter: drop-shadow(0 10px 18px rgba(31, 27, 23, .38)); } /* l'ombre suit le losange */
.logo-diamond { display: grid; place-items: center; width: calc((var(--header-h) - 12px) * 1.3); height: calc(var(--header-h) - 12px); background: #fff; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.logo-diamond img { width: 66%; height: auto; }
.logo-image.logo-footer img { width: 280px; max-width: 100%; height: auto; }

/* ---------- Menu ---------- */
.site-nav {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.site-nav-inner { display: flex; align-items: center; gap: 16px; min-height: 57px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 0 -12px; padding: 0; }
.site-nav a:not(.btn) {
    display: block; padding: 8px 12px; border-radius: 999px;
    font-size: .95rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
    transition: background-color .15s, color .15s;
}
.site-nav a:not(.btn):hover { color: var(--ink); background: var(--sand); }
.site-nav a[aria-current="page"] { color: var(--wine); background: var(--wine-soft); }
.nav-phone { display: none; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); cursor: pointer; place-items: center; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Messages ---------- */
.flashes { max-width: var(--container); margin: 16px auto 0; padding: 0 var(--gutter); }
.contact-card .flashes, .form-card .flashes { margin: 0 0 8px; padding: 0; }
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .95rem; margin-bottom: 12px; border: 1px solid transparent; }
.alert .icon { margin-top: 2px; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 20%, transparent); }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 20%, transparent); }
.alert-info { background: var(--sand); color: var(--ink-soft); }

/* ---------- Accueil : héros ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.04; letter-spacing: -.025em; }
.hero h1 em { color: var(--wine); font-weight: 400; }
.hero .lead { max-width: 560px; }
.search-card {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 6px; align-items: end;
    margin-top: 28px; padding: 10px; background: var(--surface);
    border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.search-card .field { margin: 0; padding: 8px 12px; border-radius: 12px; transition: background-color .15s; }
.search-card .field:hover { background: var(--bg); }
.search-card label { margin-bottom: 2px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.search-card select { border: 0; padding: 0 24px 0 0; min-height: 30px; background-color: transparent; box-shadow: none; font-weight: 600; }
.search-card select:focus { box-shadow: none; }
.search-card .btn { grid-column: 1 / -1; border-radius: 14px; }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 48px); list-style: none; padding: 0; margin: 32px 0 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 500; line-height: 1.1; color: var(--ink); }
.hero-stats span { font-size: .88rem; color: var(--muted); }
.hero-visual { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(380px, 46vw, 580px); }
.hero-photo { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--sand-deep); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-photo:hover img { transform: scale(1.04); }
.hero-photo-1 { grid-row: 1 / span 2; }
.hero-chip {
    position: absolute; left: 12px; bottom: 12px; right: 12px;
    display: flex; flex-direction: column; gap: 2px; width: fit-content; max-width: calc(100% - 24px);
    padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px); font-size: .8rem; color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.hero-chip strong { font-size: .98rem; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-tight { padding-top: clamp(28px, 4vw, 48px); }
.section-alt { background: var(--sand); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head .eyebrow { margin-bottom: .6rem; }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.category {
    position: relative; display: flex; min-height: 300px; overflow: hidden;
    border-radius: var(--radius-lg); background: var(--ink); color: #fff; text-decoration: none; isolation: isolate;
}
.category img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.category::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 16, 13, .05) 20%, rgba(20, 16, 13, .82) 100%); }
.category:hover img { transform: scale(1.05); }
.category-body { margin-top: auto; padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.category-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 12px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.category-title { font-family: var(--font-serif); font-size: 1.45rem; line-height: 1.1; }
.category-text { font-size: .88rem; color: rgba(255, 255, 255, .78); }
.category-count { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .88rem; font-weight: 600; }

/* ---------- Cartes d'annonces ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.card-media { position: relative; aspect-ratio: 3 / 2; background: var(--sand-deep); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); }
.card-placeholder .icon { width: 40px; height: 40px; }
.card.is-sold .card-media img { filter: grayscale(.5); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.badges-inline { position: static; margin-bottom: 14px; }
.badge {
    display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
    font-size: .74rem; font-weight: 600; letter-spacing: .02em; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm);
}
.badge-exclusive { background: var(--wine); color: #fff; }
.badge-favorite { background: var(--gold); color: #fff; }
.badge-new { background: #fff; color: var(--success); }
.badge-status-vendu { background: var(--ink); color: #fff; }
.badge-status-sous_compromis, .badge-status-sous_offre { background: #fdf3dc; color: #7a5410; }
.card-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(20, 16, 13, .62); color: #fff; font-size: .78rem; font-weight: 500; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.card-kicker { margin: 0 0 6px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.card-title { margin: 0 0 12px; font-size: 1.22rem; line-height: 1.25; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0 0 16px; padding: 0; font-size: .9rem; color: var(--ink-soft); }
.card-facts li { display: inline-flex; align-items: center; gap: 6px; }
.card-facts .icon { color: var(--muted); }
.card-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.card-price { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.card-ref { font-size: .8rem; color: var(--muted); }

/* ---------- Bandeau estimation ---------- */
.cta-band {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
    padding: clamp(32px, 5vw, 56px); border-radius: 28px; color: #fff;
    background: radial-gradient(120% 140% at 100% 0%, #9a3045 0%, var(--wine) 45%, var(--wine-dark) 100%);
    box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .82); margin: 0; max-width: 560px; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

/* ---------- Agence ---------- */
.agency-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.agency-photo { margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.agency-photo img { width: 100%; height: 100%; object-fit: cover; }
.agency-copy p { color: var(--ink-soft); }
.agency-info { margin: 20px 0 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--sand); }
.agency-info p { display: flex; gap: 10px; margin: 0; padding: 4px 0; color: var(--ink); font-size: .95rem; }
.agency-info .icon { margin-top: 3px; color: var(--wine); }
.check-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; color: var(--ink); }
.check-list .icon { margin-top: 4px; color: var(--success); }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.info-card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.info-card h2 { font-size: 1.3rem; margin: 14px 0 8px; }
.info-card p { color: var(--ink-soft); }
.info-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--wine-soft); color: var(--wine); }

/* ---------- En-têtes de pages ---------- */
.page-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); }
.page-hero h1 { max-width: 900px; }
.page-hero-compact h1 { margin-bottom: .2em; }
.page-hero-sub { color: var(--muted); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .88rem; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
    border: 1px solid var(--line-strong); background: var(--surface); font-size: .92rem; font-weight: 500; text-decoration: none;
    transition: border-color .15s, background-color .15s;
}
.chip span { font-size: .8rem; color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active span { color: rgba(255, 255, 255, .7); }

/* ---------- Liste des annonces ---------- */
.listings-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--sticky-offset) + 20px); }
.filters-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters-panel summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.filters-panel summary::-webkit-details-marker { display: none; }
.filters-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 999px; background: var(--wine); color: #fff; font-size: .75rem; }
.filters-form { padding: 0 20px 20px; }
.filters-actions { display: grid; gap: 8px; margin-top: 8px; }
.empty-state { padding: 56px 32px; text-align: center; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state > .icon { width: 40px; height: 40px; color: var(--muted); margin-bottom: 12px; }
.empty-state p { max-width: 520px; margin: 0 auto 20px; color: var(--ink-soft); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; }
.page-link { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 500; }
.page-link:hover { border-color: var(--ink); }
.page-link.is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-gap { padding: 0 6px; color: var(--muted); }

/* ---------- Formulaires ---------- */
.field { margin-bottom: 16px; min-width: 0; }
.field label, fieldset legend { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 600; color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset.field-row legend { grid-column: 1 / -1; }
.req { color: var(--wine); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], input[type="password"], select, textarea {
    width: 100%; min-height: 46px; padding: 10px 14px;
    border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
    transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select {
    appearance: none; -webkit-appearance: none; padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237a7066' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 4px var(--wine-soft); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { margin: 6px 0 0; font-size: .85rem; color: var(--danger); }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--wine); }
.field-check label { margin: 0; font-weight: 400; font-size: .88rem; color: var(--ink-soft); }
.field-check .field-error { grid-column: 2; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 12px 0 0; text-align: center; font-size: .86rem; color: var(--muted); }
.segmented { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 20px; padding: 4px; border-radius: 14px; background: var(--sand); }
.segmented legend { width: 100%; margin-bottom: 8px; float: left; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { flex: 1; margin: 0; padding: 10px 12px; border-radius: 10px; text-align: center; font-weight: 600; cursor: pointer; color: var(--ink-soft); transition: background-color .15s, color .15s; }
.segmented input:checked + label { background: var(--surface); color: var(--wine); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + label { outline: 3px solid var(--wine-soft); }
.form-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.form-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-title { font-size: 1.5rem; }
.steps { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 22px; }
.steps li { display: flex; gap: 16px; }
.steps li > span { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--wine); color: #fff; font-family: var(--font-serif); font-weight: 600; }
.steps h2 { font-size: 1.15rem; margin: 6px 0 4px; }
.steps p { margin: 0; color: var(--ink-soft); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list h2 { font-family: var(--font-sans); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 2px 0 4px; }
.contact-list p { margin: 0 0 4px; }
.contact-list a:not(.link-arrow) { font-size: 1.15rem; font-weight: 600; text-decoration: none; }

/* ---------- Fiche annonce ---------- */
.listing { padding-top: clamp(20px, 3vw, 36px); }
.listing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.listing-head h1 { margin-bottom: .25em; }
.listing-kicker { margin: 0 0 6px; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.listing-location { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ink-soft); }
.listing-price { text-align: right; flex: none; }
.listing-price strong { display: block; font-family: var(--font-serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; line-height: 1.1; }
.listing-price span { font-size: .86rem; color: var(--muted); }
.gallery { position: relative; display: grid; gap: 10px; height: clamp(300px, 46vw, 560px); grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; border-radius: var(--radius-lg); overflow: hidden; }
.gallery-item { position: relative; display: block; overflow: hidden; background: var(--sand-deep); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.gallery-item:hover img { transform: scale(1.03); filter: brightness(.95); }
.gallery-item:first-child { grid-row: 1 / span 2; }
.gallery-item.is-extra { display: none; }
.gallery-1 { grid-template-columns: 1fr; }
.gallery-2 { grid-template-columns: 2fr 1fr; }
.gallery-2 .gallery-item:nth-child(2) { grid-row: 1 / span 2; }
.gallery-3 { grid-template-columns: 2fr 1fr; }
.gallery-4 { grid-template-columns: 2fr 1fr 1fr; }
.gallery-4 .gallery-item:nth-child(4) { grid-column: 2 / span 2; }
.gallery-all { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); font-weight: 600; font-size: .9rem; cursor: pointer; box-shadow: var(--shadow); }
.gallery-all:hover { background: #fff; }
.gallery-empty { display: grid; place-items: center; gap: 8px; height: 280px; border-radius: var(--radius-lg); background: var(--sand); color: var(--muted); text-align: center; }
.gallery-empty .icon { width: 40px; height: 40px; margin: 0 auto; }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 4vw, 56px); align-items: start; padding: 36px 0 clamp(48px, 6vw, 80px); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0 0 12px; }
.facts li { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.facts .icon { width: 26px; height: 26px; color: var(--wine); }
.facts small { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.listing-section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.listing-section:last-child { border-bottom: 0; }
.listing-section h2 { font-size: 1.55rem; }
.prose { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.75; }
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.spec-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 600; text-align: right; }
.spec-list-wide { grid-template-columns: 1fr; }
.spec-list-wide dd { font-weight: 500; max-width: 70%; }
.listing-legal p { display: flex; gap: 10px; font-size: .9rem; color: var(--ink-soft); }
.listing-legal .icon { margin-top: 3px; color: var(--muted); }
.listing-aside { position: sticky; top: calc(var(--sticky-offset) + 20px); }
.contact-card { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card-price { margin: 0; font-family: var(--font-serif); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.contact-card-ref { margin: 4px 0 20px; font-size: .88rem; color: var(--muted); }
.contact-card-or { position: relative; margin: 20px 0 16px; text-align: center; font-size: .85rem; color: var(--muted); }
.contact-card-or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.contact-card-or span { position: relative; padding: 0 12px; background: var(--surface); }
.contact-card .field-row { grid-template-columns: 1fr; gap: 0; }
.contact-card textarea { min-height: 110px; }
.mobile-cta { display: none; }

/* Étiquettes énergie */
.energy { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.energy-scale h3 { font-family: var(--font-sans); font-size: .9rem; font-weight: 600; margin-bottom: 12px; }
.energy-scale ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.energy-scale li { display: flex; align-items: center; gap: 10px; }
.energy-scale li span { display: flex; align-items: center; height: 26px; padding-left: 10px; border-radius: 0 6px 6px 0; color: #fff; font-weight: 700; font-size: .85rem; opacity: .4; }
.energy-scale li.is-active span { opacity: 1; height: 34px; font-size: 1rem; box-shadow: var(--shadow-sm); }
.energy-scale li em { font-style: normal; font-size: .85rem; font-weight: 600; }
.energy-dpe .energy-a span { width: 30%; background: #009c6d; }
.energy-dpe .energy-b span { width: 38%; background: #52b153; }
.energy-dpe .energy-c span { width: 46%; background: #a5cc74; }
.energy-dpe .energy-d span { width: 54%; background: #f4e70f; color: var(--ink); }
.energy-dpe .energy-e span { width: 62%; background: #f0b40f; color: var(--ink); }
.energy-dpe .energy-f span { width: 70%; background: #eb8235; }
.energy-dpe .energy-g span { width: 78%; background: #d7221f; }
.energy-ges .energy-a span { width: 30%; background: #f6edfd; color: var(--ink); }
.energy-ges .energy-b span { width: 38%; background: #e4c7fb; color: var(--ink); }
.energy-ges .energy-c span { width: 46%; background: #d4aaf6; color: var(--ink); }
.energy-ges .energy-d span { width: 54%; background: #cb95f3; }
.energy-ges .energy-e span { width: 62%; background: #ba72ec; }
.energy-ges .energy-f span { width: 70%; background: #a94ee6; }
.energy-ges .energy-g span { width: 78%; background: #8d24dc; }
.energy-cost { margin-top: 20px; font-size: .92rem; color: var(--ink-soft); }

/* Visionneuse photos */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14, 11, 9, .96); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; }
.lightbox::backdrop { background: rgba(14, 11, 9, .9); }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100vh; justify-content: center; padding: 56px 0 24px; }
.lightbox-figure img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 6px; }
.lightbox-figure figcaption { font-size: .9rem; color: rgba(255, 255, 255, .7); }
.lightbox-nav, .lightbox-close { display: grid; place-items: center; width: 52px; height: 52px; margin: auto; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background-color .15s; }
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255, 255, 255, .22); }
.lightbox-nav .icon, .lightbox-close .icon { width: 26px; height: 26px; }
.lightbox-close { position: absolute; top: 16px; right: 16px; margin: 0; z-index: 2; }

/* Page « L'agence » (accueil de la version complète) */
.ag-intro { padding: clamp(36px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); }
.ag-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.ag-intro h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.05; letter-spacing: -.025em; }
.ag-intro h1 em { color: var(--wine); font-weight: 400; }
.ag-intro .lead { max-width: 560px; }
.ag-facts { display: flex; flex-wrap: wrap; gap: 16px 40px; list-style: none; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.ag-facts li { display: flex; flex-direction: column; justify-content: flex-end; }
.ag-facts strong { font-family: var(--font-serif); font-size: 2rem; font-weight: 500; line-height: 1.1; }
.ag-facts span { font-size: .88rem; color: var(--muted); }
.ag-facts img { width: auto; height: 40px; margin-bottom: 4px; }
.ag-photo { position: relative; isolation: isolate; max-width: 600px; margin: 0 0 0 auto; }
.ag-photo::before { content: ""; position: absolute; inset: 30px -20px -20px 30px; z-index: -1; border-radius: var(--radius-lg); background: var(--brand); }
.ag-photo img { width: 100%; aspect-ratio: 724 / 532; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.ag-photo-card {
    position: absolute; left: -28px; top: 32px; display: flex; align-items: center; gap: 12px; max-width: 300px; /* en haut : l'enseigne de la vitrine reste visible */
    padding: 14px 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
    font-size: .9rem; line-height: 1.4; color: var(--ink-soft);
}
.ag-photo-card strong { display: block; color: var(--ink); }
.ag-photo-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--wine-soft); color: var(--wine); }
/* Accueil des visuels « agence » : logo complet en titre, photo sans cadre bordeaux, adresse sur la photo */
.ag-logo-eyebrow { max-width: 460px; padding-left: .14em; text-align: center; } /* centrée sur le logo ; le retrait compense l'espacement des lettres */
.ag-logo { max-width: 460px; margin: 0 0 1.4rem; padding: 20px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ag-logo img { display: block; width: 100%; height: auto; }
html.visuels-agence .ag-photo::before { content: none; }
html.visuels-agence .ag-photo-card { left: 16px; right: 16px; top: 16px; width: fit-content; margin-left: auto; margin-right: auto; align-items: flex-start; } /* centré sur la largeur de la photo, au-dessus des arcades */
.ag-photo-card a { color: inherit; text-decoration: none; }
.ag-photo-card a:hover { color: var(--wine); text-decoration: underline; }
.ag-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ag-service { display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.ag-service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ag-service-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border-radius: 15px; background: var(--brand); color: #fff; box-shadow: 0 10px 20px -12px rgba(77, 20, 26, .9); }
.ag-service-icon .icon { width: 25px; height: 25px; }
.ag-service h3 { font-size: 1.4rem; margin-bottom: .45em; }
.ag-service p { flex: 1; color: var(--ink-soft); }
.ag-visit-section { padding-top: 0; }
.ag-visit {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center;
    padding: clamp(32px, 5vw, 56px); border-radius: 28px; color: #fff;
    background: radial-gradient(120% 140% at 100% 0%, #9a3045 0%, var(--brand) 45%, #5a1d22 100%); box-shadow: var(--shadow-lg);
}
.ag-visit h2 { color: #fff; }
.ag-visit p { margin: 0; color: rgba(255, 255, 255, .85); }
.ag-visit-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ag-visit-list li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .1); }
.ag-visit-list .icon { margin-top: 3px; color: #f3dcae; }
.ag-visit-list a { color: #fff; font-weight: 600; text-decoration: none; }
.ag-visit-list a:hover { text-decoration: underline; }
.ag-visit-list small { display: block; margin-top: 2px; }
.ag-visit-list small a { font-weight: 500; color: rgba(255, 255, 255, .8); }
.ag-guarantees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ag-guarantee { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.ag-guarantee img { display: block; width: auto; height: 44px; }
.ag-guarantee h3 { margin: 16px 0 8px; font-family: var(--font-sans); font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ag-guarantee p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.ag-legal { margin: 20px 0 0; font-size: .85rem; color: var(--muted); }

/* Pages de contenu */
.fee-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.fee-list li { display: flex; gap: 14px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 1.05rem; }
.fee-list .icon { width: 24px; height: 24px; margin-top: 2px; color: var(--wine); }
.note { display: flex; gap: 12px; padding: 18px 20px; margin-bottom: 28px; border-radius: var(--radius); background: var(--sand); color: var(--ink-soft); font-size: .92rem; }
.note p { margin: 0; }
.note .icon { margin-top: 3px; }
.prose-page h2 { font-size: 1.4rem; margin-top: 2em; }
.prose-page h2:first-child { margin-top: 0; }
.prose-page p { color: var(--ink-soft); }
.error-page { text-align: center; min-height: 50vh; }
.error-page .btn-row { justify-content: center; }

/* ---------- Pied de page ---------- */
.site-footer { background: #1b1714; color: rgba(255, 255, 255, .78); padding: 64px 0 28px; font-size: .94rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand .logo { margin-bottom: 22px; }
.footer-brand p { max-width: 340px; }
.footer-fnaim { display: flex; align-items: center; gap: 12px; color: #e9cf9f; font-weight: 500; }
.footer-fnaim img { flex: none; width: auto; height: 34px; }
.footer-title { font-family: var(--font-sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact .icon { margin-top: 3px; color: #e9cf9f; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; color: rgba(255, 255, 255, .55); }
.footer-legal p { margin: 0 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
    .header-hours { display: none; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    /* Sur mobile : bandeau du logo fixé en haut, menu déroulant */
    html.theme-complet { --header-h: 84px; --sticky-offset: var(--header-h); }
    .site-header {
        position: sticky; top: 0; z-index: 51;
        background: linear-gradient(rgba(251, 248, 243, .38), rgba(251, 248, 243, .38)), var(--sand-deep) url("../img/auxerre-cathedrale-sm.jpg") 50% 100% / cover no-repeat;
        border-bottom: 1px solid var(--line);
    }
    .header-top { gap: 12px; padding-top: 7px; padding-bottom: 7px; }
    .header-brand { gap: 12px; padding: 5px 10px; border-radius: 10px; }
    .header-contact { display: none; }
    .nav-toggle { display: grid; }
    .logo { gap: 6px; }
    .logo-band { padding: 3px; }
    .logo-band > span { padding: 7px 13px 6px; font-size: 1.15rem; letter-spacing: .06em; }
    .logo-sub { gap: 6px; font-size: .82rem; }
    .logo-sub::before, .logo-sub::after { width: 10px; }
    .logo-place { font-size: .64rem; }
    /* Mobile : le losange serait trop petit, le monogramme et le logo FNAIM reprennent un encadré blanc */
    html.visuels-agence .header-top { padding: 7px var(--gutter); }
    html.visuels-agence .header-brand { position: static; gap: 12px; padding: 5px 10px; border-radius: 10px; background: rgba(255, 255, 255, .9); }
    html.visuels-agence .logo-fnaim { position: static; align-self: flex-start; height: 30px; filter: none; }
    .logo-image.logo-header { filter: none; }
    .logo-diamond { display: block; width: auto; height: auto; background: none; clip-path: none; }
    .logo-diamond img { width: auto; height: calc(var(--header-h) - 34px); }
    .logo-fnaim { height: 38px; }
    .site-nav {
        position: fixed; inset: calc(var(--header-h) + 1px) 0 auto 0; z-index: 50; /* sous la bordure de l'en-tête */
        max-height: calc(100vh - var(--header-h)); overflow-y: auto;
        border-top: 0; background: var(--bg); box-shadow: 0 18px 30px -20px rgba(31, 27, 23, .35);
        visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
    }
    .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
    .site-nav-inner { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 12px; padding-bottom: 24px; }
    .site-nav ul { flex-direction: column; margin: 0; }
    .site-nav a:not(.btn) { padding: 12px 14px; font-size: 1.05rem; }
    .nav-phone { display: inline-flex; min-height: 50px; }
}
@media (max-width: 980px) {
    .hero-grid, .agency-split, .form-split, .cta-band, .ag-intro-grid, .ag-visit { grid-template-columns: 1fr; }
    .ag-photo { margin: 0 auto; }
    .ag-services { grid-template-columns: 1fr; }
    .ag-guarantees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-visual { height: 360px; }
    .cta-actions { align-items: stretch; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .listings-layout { grid-template-columns: 1fr; }
    .filters { position: static; }
    .filters-panel:not([open]) { border-radius: 999px; }
    .listing-layout { grid-template-columns: 1fr; }
    .listing-aside { position: static; }
    .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    :root { --gutter: 16px; --header-h: 66px; }
    html.theme-complet { --header-h: 78px; }
    .ag-photo::before { inset: 16px -8px -10px 16px; }
    .ag-photo-card, html.visuels-agence .ag-photo-card { position: static; width: auto; max-width: none; margin-top: 22px; }
    .ag-facts { gap: 14px 26px; }
    .ag-facts strong { font-size: 1.6rem; }
    .ag-guarantees { grid-template-columns: 1fr; }
    .header-brand, html.visuels-agence .header-brand { gap: 10px; padding: 4px 8px; }
    html.visuels-agence .logo-fnaim { height: 26px; }
    .logo-band > span { padding: 6px 10px 5px; font-size: .98rem; letter-spacing: .05em; }
    .logo-sub { font-size: .74rem; }
    .logo-fnaim { height: 32px; }
    .search-card { grid-template-columns: 1fr; }
    .hero-stats { gap: 18px; }
    .hero-stats strong { font-size: 1.5rem; }
    .hero-visual { height: 280px; grid-template-columns: 1fr 1fr; }
    .hero-photo-3 { display: none; }
    .hero-photo-1 { grid-row: auto; }
    .hero-photo-2 { grid-row: auto; }
    .hero-visual { grid-template-rows: 1fr; }
    .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: 1fr; }
    .category { min-height: 200px; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .listing-head { flex-direction: column; align-items: flex-start; }
    .listing-price { text-align: left; }
    .gallery { display: flex; height: 280px; margin: 0 calc(-1 * var(--gutter)); border-radius: 0; overflow-x: auto; scroll-snap-type: x mandatory; gap: 6px; }
    .gallery-item, .gallery-item.is-extra { display: block; flex: 0 0 88%; scroll-snap-align: center; }
    .gallery-all { display: none; }
    .spec-list { grid-template-columns: 1fr; }
    .energy { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .lightbox[open] { grid-template-columns: 1fr; }
    .lightbox-nav { position: absolute; bottom: 20px; }
    .lightbox-prev { left: 20px; }
    .lightbox-next { right: 20px; }
    .mobile-cta {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
        padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
        background: color-mix(in srgb, var(--bg) 94%, transparent); border-top: 1px solid var(--line);
        backdrop-filter: blur(10px);
    }
    .listing ~ .site-footer, body:has(.mobile-cta) .site-footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
