/* Horizon Immobilier (site d'exemple Devlume). Direction : agence précise, marine, sable, laiton, angles vifs. */

@font-face {
  font-family: "Manrope";
  src: url("../../assets/fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../../assets/fonts/Inter-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #12233d;
  --navy-deep: #0d1a2e;
  --navy-soft: #22395c;
  --sand: #e9e2d6;
  --sand-light: #f5f1ea;
  --brass: #b48a4a;
  --brass-light: #c9a464;
  --brass-ink: #7a5826;
  --text: #2b3445;
  --muted: #5a6474;
  --line: #d9d3c7;
  --line-strong: #b9b0a1;
  --on-navy: #cfd6e0;
  --error: #a3261c;
  --display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 78px;
  --topbar-h: 38px;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2312233d' stroke-width='1.6'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; background: #fff; color: var(--text); font: 400 16px/1.6 var(--sans); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); margin: 0; font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass-ink); outline-offset: 3px; }
main:focus, section:focus { outline: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--navy); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: calc(var(--topbar-h) + 8px); }
.wrap { width: 100%; max-width: calc(1240px + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }
.fine { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* Libellés et boutons */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 600 12px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-ink); }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--brass); }
.eyebrow-light { color: var(--brass-light); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px;
  border: 1px solid var(--navy); background: var(--navy); color: #fff; text-decoration: none; cursor: pointer;
  font: 700 15px/1.2 var(--display); letter-spacing: 0.01em; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.btn-brass { background: var(--brass); border-color: var(--brass); color: var(--navy); }
.btn-brass:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.link { font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 5px; }
.link:hover { color: var(--brass-ink); }

/* Barre d'infos */
.topbar { background: var(--sand); color: var(--text); font-size: 13px; }
.topbar { height: var(--topbar-h); overflow: hidden; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.topbar p { margin: 0; white-space: nowrap; }
.topbar a { font-weight: 600; text-decoration: none; color: var(--navy); white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #8a94a3; }
.status.is-open .status-dot { background: #2e7d4f; box-shadow: 0 0 0 3px rgba(46, 125, 79, 0.18); }

/* En-tête */
/* La barre d'infos fait partie de l'en-tête ; seul le bandeau de navigation reste visible au défilement. */
.site-header { position: sticky; top: calc(-1 * var(--topbar-h)); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
/* Liens téléphoniques : zone cliquable d'au moins 24 px de haut (WCAG 2.5.8). */
a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 24px; }
.header-in { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font: 800 20px/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy); }
.logo-sub { margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 28px; order: 2; }
.nav ul { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.nav ul a { display: block; padding: 8px 0; font: 600 14.5px/1.2 var(--display); color: var(--navy); text-decoration: none; border-bottom: 2px solid transparent; }
.nav ul a:hover { border-bottom-color: var(--brass); }
.nav .btn { padding: 11px 18px; font-size: 14px; }
.header-tools { display: flex; align-items: center; gap: 10px; order: 3; }
.fav-link { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: 600 14px/1 var(--display); color: var(--navy); }
.fav-link svg { width: 18px; height: 18px; flex-shrink: 0; max-width: none; }
.fav-link:hover { border-color: var(--navy); }
.fav-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; background: var(--navy); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.fav-link.has-favs svg path { fill: var(--brass); stroke: var(--brass-ink); }
.nav-toggle { display: none; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border: 1px solid var(--navy); background: #fff; cursor: pointer; font: 700 14px/1 var(--display); color: var(--navy); }
.nav-toggle-bars { position: relative; width: 18px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { border-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before,
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }

/* Héros */
.hero { position: relative; padding-bottom: 0; }
.hero-photo { position: absolute; top: 0; right: 0; bottom: 64px; width: 58%; background: var(--sand); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
.hero-feature {
  position: absolute; right: var(--gutter); bottom: 96px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 14px 18px; border: 0; border-left: 3px solid var(--brass); background: #fff; color: var(--navy); cursor: pointer; text-align: left;
  font: 700 15px/1.3 var(--display);
}
.hero-feature .eyebrow { margin: 0 0 4px; font-size: 11px; }
.hero-feature .eyebrow::before { display: none; }
.hero-feature-ref { font: 500 13px/1.3 var(--sans); color: var(--muted); }
.hero-feature:hover { background: var(--sand-light); }
.hero-in { position: relative; z-index: 1; padding-top: 56px; }
.hero-panel { width: min(600px, 52%); padding: clamp(32px, 4vw, 56px); background: var(--navy); color: var(--on-navy); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.4vw, 3.9rem); line-height: 1.04; letter-spacing: -0.025em; margin-bottom: 22px; }
.hero-lead { font-size: 17px; line-height: 1.6; max-width: 480px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 30px 0 0; border-top: 1px solid rgba(207, 214, 224, 0.22); }
.hero-stats div { padding: 16px 16px 0 0; }
.hero-stats div + div { padding-left: 16px; border-left: 1px solid rgba(207, 214, 224, 0.22); }
.hero-stats dt { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy); }
.hero-stats dd { margin: 6px 0 0; font: 700 28px/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }

/* Recherche */
.search {
  position: relative; display: grid; grid-template-columns: 230px repeat(3, minmax(0, 1fr)) auto; align-items: stretch;
  margin-top: 40px; background: #fff; border: 1px solid var(--navy); box-shadow: 0 18px 40px -28px rgba(18, 35, 61, 0.45);
}
.search-mode { display: flex; margin: 0; padding: 10px; border: 0; border-right: 1px solid var(--line); min-width: 0; }
.search-mode label, .seg label { position: relative; flex: 1; display: flex; cursor: pointer; }
.search-mode input, .seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.search-mode span, .seg span { flex: 1; display: grid; place-items: center; padding: 10px 14px; border: 1px solid var(--line); font: 700 14.5px/1.2 var(--display); color: var(--navy); transition: background-color 0.15s, color 0.15s; }
.search-mode label + label span, .seg label + label span { border-left: 0; }
.search-mode input:checked + span, .seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.search-mode input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--brass-ink); outline-offset: 2px; }
.search-field { display: flex; flex-direction: column; justify-content: center; padding: 10px 20px; border-right: 1px solid var(--line); min-width: 0; }
.search-field label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.search-field select {
  width: 100%; padding: 6px 22px 6px 0; border: 0; background: transparent var(--chevron) no-repeat right center; appearance: none; -webkit-appearance: none;
  font: 700 16px/1.3 var(--display); color: var(--navy); cursor: pointer; border-radius: 0;
}
.search-field select:focus-visible { outline: 2px solid var(--brass-ink); outline-offset: 4px; }
.search-submit { margin: 10px; padding-inline: 30px; }

/* Sections */
.section { padding-block: clamp(72px, 8vw, 116px); }
.hero + .section { padding-top: clamp(64px, 7vw, 96px); }
.section-sand { background: var(--sand); }
.section-navy { background: var(--navy); color: var(--on-navy); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy :focus-visible { outline-color: var(--brass-light); }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; max-width: none; flex-wrap: wrap; }
.sec-head-row .sec-intro { max-width: 460px; margin: 0; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); line-height: 1.1; letter-spacing: -0.02em; }
.sec-intro { margin-top: 16px; font-size: 17px; color: var(--muted); }
.section-navy .sec-intro { color: var(--on-navy); }
.sec-intro.small { font-size: 14px; }

/* Biens */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: 600 14px/1 var(--display); color: var(--navy); }
.chip svg { width: 17px; height: 17px; flex-shrink: 0; max-width: none; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip[aria-pressed="true"] svg path { fill: var(--brass); stroke: var(--brass); }
.sort { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.sort select { height: 42px; padding: 0 34px 0 14px; border: 1px solid var(--line); background: #fff var(--chevron) no-repeat right 12px center; appearance: none; -webkit-appearance: none; border-radius: 0; font: 600 14px/1 var(--display); color: var(--navy); cursor: pointer; }
.results { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.results strong { color: var(--navy); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); transition: border-color 0.2s; }
.card:hover { border-color: var(--navy); }
.card:has(.card-open:focus-visible) { outline: 2px solid var(--brass-ink); outline-offset: 3px; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media.is-plan { background: #fff; border-bottom: 1px solid var(--line); }
.card-media.is-plan img { object-fit: contain; }
.card:hover .card-media.is-plan img { transform: none; }
.tag { display: inline-block; padding: 6px 10px; background: var(--navy); color: #fff; font: 700 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.tag.is-location { background: var(--brass); color: var(--navy); }
.card-media .tag { position: absolute; top: 0; left: 0; }
.fav { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.fav svg { width: 20px; height: 20px; max-width: none; }
.fav:hover { border-color: var(--navy); }
.fav[aria-pressed="true"] svg path, .fav-toggle[aria-pressed="true"] svg path { fill: var(--brass); stroke: var(--brass-ink); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card-ref { margin: 0 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.card-title { font-size: 17px; line-height: 1.3; margin-bottom: 10px; }
.card-open { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.card-open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-open:focus-visible { outline: none; }
.card-specs { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 14px; padding: 0; list-style: none; font-size: 14px; color: var(--text); }
.card-specs li + li::before { content: ""; display: inline-block; width: 1px; height: 12px; margin: 0 10px; background: var(--line-strong); vertical-align: -1px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.card-price { margin: 0; font: 800 20px/1.1 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.card-price small { font: 500 12.5px/1 var(--sans); color: var(--muted); }
.dpe-chip { display: grid; place-items: center; width: 30px; height: 30px; font: 800 14px/1 var(--display); color: #111; }
.dpe-A { background: #009c6d; } .dpe-B { background: #52b153; } .dpe-C { background: #a5cc74; } .dpe-D { background: #f4e70f; }
.dpe-E { background: #f0b50f; } .dpe-F { background: #eb8235; } .dpe-G { background: #d7221f; color: #fff; }
.empty { padding: 36px; border: 1px dashed var(--line-strong); background: var(--sand-light); max-width: 760px; }
.empty-title { font: 700 20px/1.3 var(--display); color: var(--navy); margin-bottom: 8px; }
.empty-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin: 20px 0 0; }

/* Fiche */
.sheet { width: min(1200px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: #fff; color: var(--text); overflow: hidden; }
.sheet::backdrop { background: rgba(9, 18, 33, 0.74); }
.sheet-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; }
.sheet-gallery { position: sticky; top: 0; align-self: start; background: var(--navy); }
.sheet-main { position: relative; background: var(--navy-deep); }
.sheet-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sheet-main.is-plan img { object-fit: contain; background: #fff; }
.sheet-count { position: absolute; left: 0; bottom: 0; margin: 0; padding: 6px 10px; background: var(--navy); color: #fff; font: 600 12px/1 var(--sans); letter-spacing: 0.08em; }
.sheet-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.thumb { flex: 0 0 auto; width: 96px; height: 64px; padding: 0; border: 2px solid transparent; background: var(--navy-deep); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--brass); }
.thumb:focus-visible { outline-color: var(--brass-light); }
.sheet-info { padding: 44px 40px 36px; }
.sheet-ref { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sheet-info h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 12px; padding-right: 36px; }
.sheet-price { margin: 0 0 6px; font: 800 30px/1.1 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.sheet-price small { font: 500 14px/1 var(--sans); color: var(--muted); }
.sheet-fees { font-size: 13.5px; color: var(--muted); }
.sheet-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 20px 0; padding: 0; list-style: none; border-top: 1px solid var(--navy); border-bottom: 1px solid var(--line); }
.sheet-keys li { padding: 12px 10px 12px 0; }
.sheet-keys li + li { padding-left: 12px; border-left: 1px solid var(--line); }
.sheet-keys span { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sheet-keys strong { font: 800 17px/1.3 var(--display); color: var(--navy); }
.sheet-desc { font-size: 15.5px; }
.sheet-info h4 { margin: 28px 0 12px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.sheet-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 18px; margin: 0; font-size: 14.5px; }
.sheet-dl dt, .sheet-dl dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sheet-dl dt { color: var(--muted); }
.sheet-dl dd { color: var(--navy); font-weight: 500; }
.features { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.features li { padding: 6px 10px; border: 1px solid var(--line); font-size: 13.5px; color: var(--navy); }
.dpe { display: grid; gap: 4px; margin-bottom: 14px; }
.dpe-row { display: flex; align-items: center; gap: 12px; min-height: 24px; font-size: 12.5px; color: var(--muted); }
.dpe-bar { display: flex; align-items: center; height: 22px; padding-left: 9px; font: 800 13px/1 var(--display); color: #111; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.dpe-row[data-l="A"] .dpe-bar { width: 26%; } .dpe-row[data-l="B"] .dpe-bar { width: 33%; } .dpe-row[data-l="C"] .dpe-bar { width: 40%; }
.dpe-row[data-l="D"] .dpe-bar { width: 47%; } .dpe-row[data-l="E"] .dpe-bar { width: 54%; } .dpe-row[data-l="F"] .dpe-bar { width: 61%; }
.dpe-row[data-l="G"] .dpe-bar { width: 68%; }
.dpe-row.is-current .dpe-bar { height: 32px; font-size: 17px; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25); }
.dpe-row.is-current { color: var(--navy); font-weight: 700; font-size: 14px; }
.dpe-row.is-current .dpe-val::before { content: "◀ "; color: var(--navy); }
.sheet-energy { font-size: 13.5px; color: var(--muted); }
.sheet-contact { padding: 22px 24px 26px; color: var(--on-navy); border-top: 1px solid rgba(207, 214, 224, 0.18); }
.sheet-agent { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 14.5px; line-height: 1.5; }
.sheet-agent strong { color: #fff; }
.sheet-agent a { color: #fff; font: 700 15px/1.4 var(--display); text-decoration: none; }
.sheet-agent a:hover { text-decoration: underline; }
.monogram-sm { flex-shrink: 0; width: 44px; height: 44px; margin: 0; font-size: 19px; background: var(--navy-deep); }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-ghost-light { background: transparent; border-color: rgba(207, 214, 224, 0.55); color: #fff; }
.btn-ghost-light:hover { background: #fff; border-color: #fff; color: var(--navy); }
.sheet-contact :focus-visible { outline-color: var(--brass-light); }
.fav-toggle svg { width: 18px; height: 18px; flex-shrink: 0; max-width: none; }
.sheet-close { position: absolute; top: 0; right: 0; z-index: 3; display: grid; place-items: center; width: 52px; height: 52px; border: 0; background: var(--navy); color: #fff; cursor: pointer; }
.sheet-close svg { width: 22px; height: 22px; }
.sheet-close:hover { background: var(--navy-soft); }
.sheet-close:focus-visible { outline: 2px solid var(--brass); outline-offset: -5px; }

/* Estimation */
.estimate { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border: 1px solid var(--navy); background: #fff; }
.estimate-form { padding: clamp(24px, 3.5vw, 44px); }
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field > label, fieldset.field > legend { display: block; margin-bottom: 8px; padding: 0; font: 700 14px/1.3 var(--display); color: var(--navy); }
.field input[type="text"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 0; background: #fff; font-size: 16px; color: var(--navy);
}
.field select { padding-right: 36px; appearance: none; -webkit-appearance: none; background: #fff var(--chevron) no-repeat right 14px center; cursor: pointer; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--brass-ink); outline-offset: 1px; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.help { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.opt { font-weight: 500; color: var(--muted); font-family: var(--sans); }
.seg { display: flex; max-width: 360px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.checks label, .check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.checks input, .check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); flex-shrink: 0; }
.estimate-result { display: flex; flex-direction: column; padding: clamp(24px, 3.5vw, 44px); background: var(--navy); color: var(--on-navy); }
.est-range { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 4px 0 10px; font: 800 clamp(1.7rem, 2.3vw, 2.1rem)/1.15 var(--display); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.est-sep { color: var(--brass-light); }
.est-m2 { font-size: 15px; }
.est-detail { margin: 18px 0; border-top: 1px solid rgba(207, 214, 224, 0.22); }
.est-detail div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(207, 214, 224, 0.22); font-size: 14px; }
.est-detail dd { margin: 0; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.est-note { font-size: 13px; color: #aeb8c6; }
.estimate-result .btn { align-self: flex-start; margin-top: auto; }

/* Vendre */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid rgba(207, 214, 224, 0.22); }
.steps li { padding: 26px 22px 6px; border-left: 1px solid rgba(207, 214, 224, 0.22); }
.steps li:first-child { border-left: 0; padding-left: 0; }
.step-n { margin: 0 0 18px; font: 800 30px/1 var(--display); color: var(--brass-light); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 18px; margin-bottom: 10px; }
.steps p:last-child { font-size: 14.5px; margin: 0; }
.mandates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 52px; }
.mandates div { padding: 24px 28px; border: 1px solid rgba(207, 214, 224, 0.22); border-top: 2px solid var(--brass); }
.mandates h3 { font-size: 17px; margin-bottom: 8px; }
.mandates p { margin: 0; font-size: 15px; }

/* Secteurs */
.sectors { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.sectors-photo { margin: 0; }
.sectors-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 50%; }
.sectors-photo figcaption { padding-top: 10px; font-size: 13px; color: var(--muted); }
.towns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.town { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; height: 100%; padding: 14px 16px; border: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; transition: border-color 0.15s; }
.town:hover { border-color: var(--navy); }
.town-name { font: 700 16px/1.25 var(--display); color: var(--navy); }
.town-desc { font-size: 13px; line-height: 1.4; color: var(--muted); }
.town-price { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--brass-ink); font-variant-numeric: tabular-nums; }
.town-count { font-size: 12px; font-weight: 600; color: var(--navy); }

/* Équipe */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.team li { padding-top: 22px; border-top: 2px solid var(--navy); }
.monogram { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; background: var(--navy); color: var(--brass-light); font: 800 24px/1 var(--display); }
.team h3 { font-size: 20px; margin-bottom: 2px; }
.role { margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-ink); }
.team p:last-child { font-size: 15px; margin: 0; }

/* Honoraires */
.fees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.fees-block h3 { font-size: 21px; margin-bottom: 6px; }
.fees-sub { font-size: 14px; color: var(--muted); }
.fees-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fees-table th, .fees-table td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fees-table thead th { padding-top: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--navy); }
.fees-table tbody th { font-weight: 500; color: var(--text); padding-right: 16px; }
.fees-table td, .fees-table thead th:last-child { text-align: right; }
.fees-table td { font: 700 15px/1.45 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.fee-calc { margin-top: 24px; padding: 18px 20px; background: var(--sand-light); border-left: 2px solid var(--brass); }
.fee-calc label { display: block; margin-bottom: 8px; font: 700 14px/1.3 var(--display); color: var(--navy); }
.fee-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.fee-row input { width: 170px; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 0; background: #fff; font: 700 16px/1 var(--display); color: var(--navy); }
.fee-row output { font-size: 14.5px; color: var(--text); }
.fee-example { margin-top: 24px; padding: 18px 20px; background: var(--sand-light); border-left: 2px solid var(--brass); font-size: 14.5px; }
.fee-example-title { margin-bottom: 6px; font: 700 14px/1.3 var(--display); color: var(--navy); }
.fee-example p:last-child { margin: 0; }
.fee-example strong { color: var(--navy); }

/* Avis */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.review { display: flex; flex-direction: column; margin: 0; padding: 30px 28px 26px; background: #fff; border: 1px solid var(--line); }
.review blockquote { margin: 0 0 22px; }
.review blockquote::before { content: "“"; display: block; height: 30px; font: 800 52px/1 var(--display); color: var(--brass); }
.review blockquote p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--navy); }
.review figcaption { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.review figcaption strong { display: block; font: 700 15px/1.4 var(--display); color: var(--navy); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.phones { list-style: none; margin: 24px 0 30px; padding: 0; border-top: 2px solid var(--navy); }
.phones li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.phones span { font-size: 13px; color: var(--muted); }
.phones a { font: 800 22px/1.2 var(--display); color: var(--navy); text-decoration: none; font-variant-numeric: tabular-nums; }
.phones a:hover { color: var(--brass-ink); }
.hours { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hours caption { text-align: left; padding-bottom: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hours th, .hours td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 500; padding-left: 0; }
.hours td { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; padding-right: 0; }
.hours tr.is-today { background: var(--sand-light); }
.hours tr.is-today th { font-weight: 700; color: var(--navy); padding-left: 10px; box-shadow: inset 2px 0 0 var(--brass); }
.hours tr.is-today td { padding-right: 10px; color: var(--navy); font-weight: 600; }
.contact-box { padding: clamp(24px, 3.5vw, 44px); border: 1px solid var(--navy); }
.contact-form h3 { font-size: 22px; margin-bottom: 22px; }
.contact-form .check { margin: 4px 0 20px; font-size: 14.5px; }
.form-error { margin: 0 0 16px; font-weight: 600; font-size: 14.5px; color: var(--error); }
.form-error:empty { display: none; }
.sent:focus { outline: none; }
.sent-title { font: 800 24px/1.25 var(--display); color: var(--navy); margin-bottom: 14px; }
.sent-demo { padding: 14px 18px; background: var(--sand-light); border-left: 3px solid var(--brass); }

/* Pied de page */
.site-footer { background: var(--navy-deep); color: var(--on-navy); padding: 72px 0 32px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1.8fr 1fr 1.1fr 1fr; gap: 36px; }
.footer-logo { margin-bottom: 14px; font: 800 20px/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: #fff; }
.footer-logo span { color: var(--brass-light); letter-spacing: 0.12em; font-weight: 600; }
.footer-brand p:last-child { max-width: 300px; }
.footer-hours { line-height: 1.7; }
.footer-title { margin-bottom: 14px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-light); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer :focus-visible { outline-color: var(--brass-light); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-pro { margin: 48px 0 0; font-size: 12.5px; color: #9aa6b5; }
.footer-legal { margin: 14px 0 0; padding-top: 18px; border-top: 1px solid rgba(207, 214, 224, 0.16); font-size: 13px; color: #9aa6b5; }

/* Grands écrans moyens */
@media (max-width: 1240px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search { grid-template-columns: 200px repeat(3, minmax(0, 1fr)) auto; }
}

/* Tablette */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 18px; padding: 8px var(--gutter) 26px; background: #fff; border-bottom: 1px solid var(--navy); }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav .btn { align-self: flex-start; }
  .hide-m { display: none; }
  .hero-photo { position: relative; bottom: auto; width: 100%; height: clamp(260px, 46vw, 420px); }
  .hero-feature { bottom: 104px; }
  .hero-in { padding-top: 0; margin-top: -84px; }
  .hero-panel { width: min(640px, 100%); }
  .search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-mode { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .search-field { padding: 14px 20px; border-bottom: 1px solid var(--line); }
  .search-field:nth-of-type(2) { border-right: 0; }
  .search-submit { margin: 10px; }
}
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-in { grid-template-columns: 1fr; }
  .sheet-gallery { position: static; }
  .sheet-info { padding: 28px 24px 28px; }
  .estimate { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li, .steps li:first-child { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; padding: 22px 0; border-left: 0; border-top: 1px solid rgba(207, 214, 224, 0.22); }
  .step-n { grid-row: 1 / span 2; margin: 0; }
  .steps li > :not(.step-n) { grid-column: 2; }
  .mandates { margin-top: 32px; }
  .sectors { grid-template-columns: 1fr; }
  .sectors-photo img { aspect-ratio: 16 / 9; object-position: 50% 35%; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .fees { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .topbar-place { display: none; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-name { font-size: 17px; }
  .logo-sub { font-size: 11px; letter-spacing: 0.1em; }
  .header-in { gap: 10px; }
  .fav-link { padding: 0 10px; }
  .fav-link > span:not(.fav-count):not(.visually-hidden) { display: none; }
  .nav-toggle { padding: 0 12px; }
  .hero-photo { height: 240px; }
  .hero-feature { display: none; }
  .hero-in { margin-top: -40px; }
  .hero-panel { padding: 28px 22px; }
  .hero h1 { font-size: 2.15rem; }
  .hero-lead { font-size: 16px; }
  .hero-stats dd { font-size: 22px; }
  .hero-stats div { padding-right: 8px; }
  .hero-stats div + div { padding-left: 10px; }
  .hero-stats dt { font-size: 11px; letter-spacing: 0.04em; }
  .search { grid-template-columns: 1fr; margin-top: 20px; }
  .search-field { border-right: 0; }
  .cards { grid-template-columns: 1fr; }
  .toolbar { width: 100%; justify-content: space-between; flex-wrap: nowrap; }
  .sort-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sheet { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); }
  .sheet-in { max-height: calc(100dvh - 12px); }
  .sheet-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-keys li:nth-child(3) { padding-left: 0; border-left: 0; }
  .sheet-keys li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .sheet-dl { grid-template-columns: 1fr; }
  .sheet-dl dt { border-bottom: 0; padding-bottom: 0; }
  .dpe-row[data-l="A"] .dpe-bar { width: 20%; } .dpe-row[data-l="B"] .dpe-bar { width: 25%; } .dpe-row[data-l="C"] .dpe-bar { width: 30%; }
  .dpe-row[data-l="D"] .dpe-bar { width: 35%; } .dpe-row[data-l="E"] .dpe-bar { width: 40%; } .dpe-row[data-l="F"] .dpe-bar { width: 45%; }
  .dpe-row[data-l="G"] .dpe-bar { width: 50%; }
  .hide-xs { display: none; }
  .sheet-actions .btn { flex: 1 1 auto; }
  .field-row { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .towns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: 1fr; }
  .mandates { grid-template-columns: 1fr; }
  .fee-row input { width: 100%; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .card:hover .card-media img { transform: none; }
}
