/* Neegui Immobilier — portail public v3 (D38) : l'identité de l'application « ardoise et corail », en plus riche. Jetons : 13_UX_UI_SPECIFICATION.md §2 */
:root {
  --c-bg: #fbfbfa;
  --c-card: #ffffff;
  --c-surface: #f1f3f5;
  --c-surface-2: #e6e9ed;
  --c-band: #f3f4f6;
  --c-text: #0f172a;
  --c-muted: #526074;
  --c-line: #e2e5ea;
  --c-accent: #e8553d;
  --c-accent-strong: #cc3d26;
  --c-accent-hover: #b53520;
  --c-on-accent: #ffffff;
  --c-accent-soft: #fdece8;
  --c-accent-ink: #b0321d;
  --c-ink: #0f172a;
  --c-on-ink: #ffffff;
  --c-link: #0f172a;
  --c-info-bg: #eaf0f7;
  --c-ok-bg: #e3edf9;
  --c-ok-ink: #1d3a63;
  --c-warn-bg: #fcf1e4;
  --c-error-bg: #fdebe8;
  --c-error-ink: #a1291a;
  --c-focus: #2563eb;
  --c-logo: #0f172a;
  --c-logo-fg: #ffffff;
  --c-glass: rgba(255, 255, 255, .94);
  --c-foot: #0b1220;
  --c-foot-text: #aab4c6;
  --c-foot-head: #ffffff;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .06), 0 6px 22px rgba(15, 23, 42, .07);
  --shadow-soft: 0 10px 34px rgba(15, 23, 42, .12), 0 1px 4px rgba(15, 23, 42, .06);
  --shadow-pop: 0 18px 50px rgba(15, 23, 42, .18), 0 2px 10px rgba(15, 23, 42, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --lh: 1.55;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 40px;
  --s-7: 72px;
  --radius: 4px;
  --r-sm: var(--radius);
  --r-md: var(--radius);
  --r-lg: var(--radius);
  --r-xl: var(--radius);
  --page: 1200px;
  --tap: 46px;
}
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --c-bg: #0b1120;
    --c-card: #131b2e;
    --c-surface: #1a2338;
    --c-surface-2: #243049;
    --c-band: #0f1729;
    --c-text: #f1f5f9;
    --c-muted: #a4afc3;
    --c-line: #222c42;
    --c-accent: #ff7a62;
    --c-accent-strong: #ff7a62;
    --c-accent-hover: #ff9480;
    --c-on-accent: #0b1120;
    --c-accent-soft: #3a1f1d;
    --c-accent-ink: #ff9a85;
    --c-ink: #f1f5f9;
    --c-on-ink: #0b1120;
    --c-link: #f1f5f9;
    --c-info-bg: #18233a;
    --c-ok-bg: #1b2a47;
    --c-ok-ink: #b7cdf2;
    --c-warn-bg: #33261a;
    --c-error-bg: #3a1f1d;
    --c-error-ink: #ffb1a3;
    --c-focus: #8ab4ff;
    --c-logo: #f1f5f9;
    --c-logo-fg: #0b1120;
    --c-glass: rgba(19, 27, 46, .94);
    --c-foot: #070b16;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 22px rgba(0, 0, 0, .35);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .3);
    --shadow-pop: 0 18px 50px rgba(0, 0, 0, .65), 0 2px 10px rgba(0, 0, 0, .4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font: var(--fs-md)/var(--lh) var(--font); }
body.has-bar { padding-bottom: 104px; }
img { max-width: 100%; display: block; }
a { color: var(--c-link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 var(--s-3); font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.25rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2rem); }
h3 { font-size: var(--fs-lg); letter-spacing: -.01em; }
p { margin: 0 0 var(--s-3); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: var(--s-3); top: -80px; z-index: 100; background: var(--c-ink); color: var(--c-on-ink); padding: var(--s-2) var(--s-4); border-radius: var(--radius); font-weight: 700; }
.skip:focus { top: var(--s-3); }
.muted { color: var(--c-muted); }
.small { font-size: var(--fs-sm); }
.ic { width: 20px; height: 20px; flex: none; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 32px; height: 32px; }

/* ── En-tête ── */
.site-header { position: relative; z-index: 20; background: var(--c-card); box-shadow: 0 1px 0 var(--c-line), 0 4px 18px rgba(15, 23, 42, .04); }
.site-header .inner { max-width: var(--page); margin: 0 auto; padding: var(--s-2) var(--s-3); display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-3); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--c-text); min-height: var(--tap); }
.logo { border-radius: var(--radius); }
.brand-name { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; line-height: 1.05; }
.brand-name b { display: block; font-weight: 600; font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-muted); }
.site-nav { display: flex; gap: var(--s-1); order: 3; width: 100%; margin: 0 0 var(--s-1); }
.site-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-4); border-radius: var(--radius); font-weight: 600; text-decoration: none; color: var(--c-muted); }
.site-nav a:hover { color: var(--c-text); background: var(--c-surface); }
.site-nav a[aria-current="page"] { color: var(--c-text); background: var(--c-surface); box-shadow: inset 0 -3px 0 var(--c-accent); }
.head-tools { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.head-cta { display: none; min-height: 42px; padding: 0 var(--s-4); font-size: var(--fs-sm); background: transparent; color: var(--c-accent-ink); box-shadow: inset 0 0 0 2px var(--c-accent-strong); }
.head-cta:hover { background: var(--c-accent-soft); color: var(--c-accent-ink); }
.country-menu { position: relative; }
.country-menu > summary, .country-pill { list-style: none; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 42px; padding: 0 var(--s-3) 0 var(--s-4); border-radius: var(--radius); cursor: pointer; font-weight: 600; background: var(--c-surface); color: var(--c-text); text-decoration: none; }
.country-pill { padding-right: var(--s-4); cursor: default; }
.country-menu > summary:hover { background: var(--c-surface-2); }
.country-menu summary::-webkit-details-marker { display: none; }
.country-menu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; list-style: none; margin: 0; padding: var(--s-2); min-width: 220px; background: var(--c-card); border-radius: var(--r-md); box-shadow: var(--shadow-pop); }
.country-menu li a { display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-sm); text-decoration: none; color: var(--c-text); font-weight: 500; }
.country-menu li a:hover, .country-menu li a[aria-current] { background: var(--c-surface); }
.country-menu li a[aria-current]::after { content: ""; width: 8px; height: 8px; border-radius: var(--radius); background: var(--c-accent); }
.country-menu .all a { color: var(--c-muted); }
@media (min-width: 760px) {
  .site-header .inner { flex-wrap: nowrap; column-gap: var(--s-5); padding-top: var(--s-3); padding-bottom: var(--s-3); }
  .site-nav { order: 0; width: auto; margin: 0; }
  .head-cta { display: inline-flex; }
}
main { max-width: var(--page); margin: 0 auto; padding: var(--s-4) var(--s-4) var(--s-6); }
main.home { max-width: none; padding: 0; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--s-4); }

/* ── Pied de page ── */
.site-footer { margin-top: var(--s-7); background: var(--c-foot); color: var(--c-foot-text); }
.site-footer .inner { max-width: var(--page); margin: 0 auto; padding: var(--s-6) var(--s-4) var(--s-5); }
.foot-grid { display: grid; gap: var(--s-5) var(--s-5); grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--s-6); } }
.foot-about { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-about { grid-column: auto; } }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-foot-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; text-decoration: none; margin-bottom: var(--s-3); }
.foot-about p { max-width: 30rem; margin-bottom: 0; }
.foot-col h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .12em; color: var(--c-foot-head); margin: 0 0 var(--s-3); font-weight: 700; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--c-foot-text); text-decoration: none; }
.foot-col a:hover { color: var(--c-foot-head); text-decoration: underline; }
.foot-legal { margin: var(--s-6) 0 0; padding-top: var(--s-4); border-top: 1px solid rgba(255, 255, 255, .12); max-width: 64rem; font-size: var(--fs-sm); }
.foot-copy { margin: var(--s-3) 0 0; font-size: var(--fs-sm); }
.breadcrumb { font-size: var(--fs-sm); color: var(--c-muted); margin: var(--s-2) 0 var(--s-4); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); opacity: .5; }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-text); text-decoration: underline; }

/* ── Boutons et champs ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--tap); padding: var(--s-2) var(--s-5); font: inherit; font-weight: 700; border-radius: var(--radius); border: 0; background: var(--c-accent-strong); color: var(--c-on-accent); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--c-accent-hover); color: var(--c-on-accent); }
.btn-accent { background: var(--c-accent-strong); color: var(--c-on-accent); }
.btn-secondary { background: var(--c-surface); color: var(--c-text); }
.btn-secondary:hover { background: var(--c-surface-2); color: var(--c-text); }
.btn-light { background: #fff; color: #0f172a; }
.btn-light:hover { background: #f1f3f5; color: #0f172a; }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: var(--fs-lg); padding: 0 var(--s-6); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--c-surface); color: var(--c-muted); cursor: not-allowed; }
.field { margin-bottom: var(--s-4); }
.field label, .field .label, .field legend { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 6px; padding: 0; color: var(--c-text); }
.field .hint { display: block; font-size: var(--fs-sm); color: var(--c-muted); margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
input[type="text"], input[type="email"], input[type="search"], input[type="date"], input[type="password"], input[type="number"], input[type="file"], select, textarea { width: 100%; min-height: 52px; padding: var(--s-3) var(--s-4); font: inherit; color: var(--c-text); background: var(--c-surface); border: 2px solid transparent; border-radius: var(--r-md); }
input[type="text"]:hover, input[type="email"]:hover, input[type="search"]:hover, input[type="date"]:hover, input[type="password"]:hover, input[type="number"]:hover, select:hover, textarea:hover { background: var(--c-surface-2); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-muted) 50%), linear-gradient(135deg, var(--c-muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
textarea { min-height: 9rem; resize: vertical; border-radius: var(--r-md); }
input::placeholder { color: var(--c-muted); opacity: 1; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; font-weight: 400 !important; min-height: 34px; padding: 4px 0; font-size: var(--fs-md) !important; }
.field label.check { display: flex; margin-bottom: 0; }
.check input { width: 1.375rem; height: 1.375rem; margin: 1px 0 0; flex: none; accent-color: var(--c-accent-strong); }
.form-narrow { max-width: 40rem; }
.field-error { color: var(--c-error-ink); font-size: var(--fs-sm); font-weight: 700; display: block; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* ── Messages d'état ── */
.notice { background: var(--c-info-bg); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); margin-bottom: var(--s-4); }
.notice-warn { background: var(--c-warn-bg); }
.notice-error { background: var(--c-error-bg); }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice ul { margin: 0; padding-left: var(--s-5); }
.empty { text-align: center; padding: var(--s-7) var(--s-4); border-radius: var(--r-xl); background: var(--c-surface); }
.empty .empty-art { width: 140px; height: 100px; margin: 0 auto var(--s-4); }
.empty p { max-width: 36rem; margin-left: auto; margin-right: auto; color: var(--c-muted); }
.empty h1, .empty h2 { max-width: 28ch; margin-left: auto; margin-right: auto; }
.empty h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.empty .actions-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-5); }
.art-a { fill: var(--c-accent); opacity: .16; }
.art-b { fill: var(--c-ink); opacity: .07; }
.art-c { fill: none; stroke: var(--c-ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.art-d { fill: var(--c-accent); }

/* ── Accueil : bandeau illustré, carte de recherche en relief ── */
.hero { position: relative; color: #fff; background: #0f172a; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; background:
  radial-gradient(circle at 82% 26%, #ffb199 0 30px, #e8553d 31px 58px, rgba(232, 85, 61, .24) 59px 118px, rgba(232, 85, 61, .11) 119px 190px, transparent 191px),
  radial-gradient(900px 520px at 84% 6%, rgba(232, 85, 61, .38), transparent 62%),
  radial-gradient(760px 520px at 6% 0%, rgba(76, 110, 190, .38), transparent 60%),
  linear-gradient(180deg, #0f172a 0%, #18243f 58%, #2a3553 100%); }
.hero-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%); mask-image: linear-gradient(180deg, #000 0%, transparent 78%); }
.hero-sky { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 56%; }
.hero-body { position: relative; z-index: 2; padding-top: var(--s-6); padding-bottom: var(--s-5); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-4); padding: 6px var(--s-3); border-radius: var(--radius); background: rgba(255, 255, 255, .12); color: #fff; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .02em; }
.hero .eyebrow .ic { width: 16px; height: 16px; color: #ff9a85; }
.hero h1 { max-width: 17ch; color: #fff; margin-bottom: var(--s-3); text-wrap: balance; }
.hero-lead { max-width: 38rem; color: rgba(255, 255, 255, .86); font-size: var(--fs-lg); margin-bottom: var(--s-4); }
.hero-points { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); color: rgba(255, 255, 255, .92); font-weight: 600; font-size: var(--fs-sm); }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .ic { width: 18px; height: 18px; color: #ff9a85; }
.finder-dock { position: relative; z-index: 3; margin-bottom: -76px; }
.hero + .band, .hero + .wrap { padding-top: calc(var(--s-6) + 76px); }
@media (min-width: 760px) { .hero-body { padding-top: 72px; padding-bottom: 72px; } .hero { min-height: 520px; } }
.finder { position: relative; background: var(--c-card); color: var(--c-text); border-radius: var(--radius); padding: var(--s-4); box-shadow: var(--shadow-pop); max-width: 1020px; }
@media (min-width: 760px) { .finder { padding: var(--s-5); } }
.tab-radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tabs { display: flex; gap: 2px; padding: 4px; margin: 0 0 var(--s-4); background: var(--c-surface); border-radius: var(--radius); }
@media (min-width: 760px) { .tabs { display: inline-flex; } }
.tabs label { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--s-6); font-weight: 700; cursor: pointer; color: var(--c-text); border-radius: var(--radius); }
#tab-vente:checked ~ .tabs label[for="tab-vente"], #tab-location:checked ~ .tabs label[for="tab-location"] { color: var(--c-on-accent); background: var(--c-accent-strong); }
#tab-vente:focus-visible ~ .tabs label[for="tab-vente"], #tab-location:focus-visible ~ .tabs label[for="tab-location"] { outline: 3px solid var(--c-focus); outline-offset: 3px; }
#tab-vente:checked ~ .f-location, #tab-location:checked ~ .f-vente { display: none; }
.finder-form { display: grid; gap: var(--s-3); align-items: end; }
.finder-form .field { margin: 0; position: relative; }
.finder-form .field > .ic { position: absolute; left: 14px; bottom: 15px; color: var(--c-muted); pointer-events: none; z-index: 1; }
.finder-form .field select, .finder-form .field input { padding-left: 46px; min-height: 54px; }
.finder-form .field .unit { position: absolute; right: 14px; bottom: 15px; color: var(--c-muted); font-weight: 600; font-size: var(--fs-sm); pointer-events: none; }
@media (min-width: 760px) { .finder-form { grid-template-columns: 1.1fr 1.1fr 1fr auto; } }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: var(--s-4) 0 0; padding: 0; list-style: none; }
.quick span { font-size: var(--fs-sm); color: var(--c-muted); font-weight: 600; margin-right: var(--s-1); }
.quick a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 var(--s-3); border-radius: var(--radius); background: var(--c-surface); color: var(--c-text); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.quick a:hover { background: var(--c-accent-soft); color: var(--c-accent-ink); }

/* ── Sections de l'accueil ── */
.band { padding: var(--s-7) 0; }
.band-alt { background: var(--c-band); }
.band-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-5); }
.band-head h2, .band-head h3 { margin: 0; }
.band-head .band-lead { margin: var(--s-2) 0 0; flex-basis: 100%; }
.band-lead { color: var(--c-muted); max-width: 44rem; font-size: var(--fs-lg); }
.see-all { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; font-weight: 700; color: var(--c-accent-ink); text-decoration: none; }
.see-all:hover { text-decoration: underline; }
.rail-block + .rail-block { margin-top: var(--s-6); }
.rail-block h3 { font-size: var(--fs-xl); display: flex; align-items: center; gap: var(--s-3); }
.op-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 var(--s-3); border-radius: var(--radius); background: var(--c-ink); color: var(--c-on-ink); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.op-tag-rent { background: var(--c-accent-strong); color: var(--c-on-accent); }
.rail { list-style: none; margin: 0 calc(var(--s-4) * -1); padding: var(--s-2) var(--s-4) var(--s-4); display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--s-4); scrollbar-width: thin; }
.rail > li { flex: 0 0 78%; max-width: 320px; scroll-snap-align: start; }
@media (min-width: 760px) { .rail { gap: var(--s-5); margin: 0; padding: var(--s-2) 0 var(--s-4); scroll-padding-left: 0; } .rail > li { flex-basis: calc((100% - 3 * var(--s-5)) / 4); max-width: none; min-width: 240px; } }
.verified-band { background: linear-gradient(135deg, #0f172a, #1b2a4a); color: #fff; }
.verified-band .band-lead { color: rgba(255, 255, 255, .82); }
.verified-band .see-all { color: #ff9a85; }
.verified-band h2 .ic { width: 30px; height: 30px; color: #ff9a85; vertical-align: -5px; margin-right: var(--s-2); }
.verified-band .rail-block > .band-head h3 { color: #fff; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.tile { display: flex; flex-direction: column; background: var(--c-card); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.tile-art { display: block; aspect-ratio: 16 / 9; background: linear-gradient(160deg, var(--c-surface), var(--c-surface-2)); }
.tile-art svg { display: block; width: 100%; height: 100%; }
.tile-body { padding: var(--s-4); display: flex; flex-direction: column; gap: 2px; flex: 1; }
.tile-body h3 { margin: 0; font-size: var(--fs-lg); }
.tile-count { color: var(--c-muted); font-size: var(--fs-sm); margin: 0 0 var(--s-3); }
.tile-links { display: flex; gap: var(--s-2); margin-top: auto; }
.tile-links a { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 var(--s-2); border-radius: var(--radius); background: var(--c-surface); color: var(--c-text); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; text-align: center; }
.tile-links a:hover { background: var(--c-accent-soft); color: var(--c-accent-ink); }
.tile-links a small { color: var(--c-muted); font-weight: 600; margin-left: 4px; font-size: .75rem; }
.t-ink { fill: var(--c-ink); opacity: .82; }
.t-ink2 { fill: var(--c-ink); opacity: .42; }
.t-soft { fill: var(--c-ink); opacity: .12; }
.t-acc { fill: var(--c-accent); }
.t-win { fill: var(--c-card); opacity: .9; }
.t-line { fill: none; stroke: var(--c-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.t-green { fill: var(--c-ink); opacity: .22; }
.communes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .communes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .communes { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); } }
.commune { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-4); background: var(--c-card); border-radius: var(--radius); box-shadow: var(--shadow-card); border-left: 4px solid var(--c-accent); }
.commune h3 { margin: 0; font-size: var(--fs-lg); display: flex; align-items: center; gap: var(--s-2); }
.commune h3 .ic { color: var(--c-accent-ink); }
.commune-links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin-top: var(--s-1); }
.commune-links a { display: inline-flex; align-items: center; min-height: 36px; font-size: var(--fs-sm); font-weight: 600; }
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
@media (min-width: 800px) { .trust { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.trust-item { background: var(--c-card); border-radius: var(--radius); padding: var(--s-5); box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.trust-item > .ic { width: 52px; height: 52px; padding: 13px; border-radius: var(--radius); background: var(--c-accent-soft); color: var(--c-accent-ink); margin-bottom: var(--s-4); }
.trust-item h3 { font-size: var(--fs-xl); }
.trust-item p { color: var(--c-muted); }
.trust-item .see-all { margin-top: auto; }
.cta { background: #0f172a; color: #fff; position: relative; overflow: hidden; padding: var(--s-7) 0; }
main.home ~ .site-footer { margin-top: 0; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 320px at 92% 0%, rgba(232, 85, 61, .55), transparent 65%), radial-gradient(420px 300px at 0% 100%, rgba(76, 110, 190, .35), transparent 65%); }
.cta .wrap { position: relative; display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 800px) { .cta .wrap { grid-template-columns: 1.4fr auto; gap: var(--s-7); } }
.cta h2 { color: #fff; margin-bottom: var(--s-2); }
.cta p { color: rgba(255, 255, 255, .86); font-size: var(--fs-lg); margin: 0; max-width: 40rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.empty-home { display: grid; gap: var(--s-5); align-items: center; padding: var(--s-6) var(--s-5); background: var(--c-card); border-radius: var(--radius); box-shadow: var(--shadow-card); }
@media (min-width: 800px) { .empty-home { grid-template-columns: 220px 1fr; gap: var(--s-6); padding: var(--s-6); } }
.empty-home .empty-art { width: 100%; max-width: 220px; height: auto; margin: 0 auto; }
.empty-home h2 { margin-bottom: var(--s-2); }
.empty-home p { color: var(--c-muted); max-width: 40rem; }
.empty-home .actions-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }

/* ── Choix du pays : cartes illustrées ── */
.page-head { background: linear-gradient(180deg, var(--c-band), var(--c-bg)); padding: var(--s-4) 0 var(--s-2); }
.country-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 760px) { .country-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .country-grid.is-3 { grid-template-columns: repeat(3, 1fr); } }
.country-card { display: flex; flex-direction: column; height: 100%; background: var(--c-card); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; text-decoration: none; color: var(--c-text); }
.country-card:hover { color: var(--c-text); box-shadow: var(--shadow-pop); }
.country-art { display: block; aspect-ratio: 16 / 7; min-height: 150px; background: #0f172a; }
.country-art svg { display: block; width: 100%; height: 100%; }
.country-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-1); flex: 1; }
.country-body h2 { margin: 0; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
.country-body p { color: var(--c-muted); margin: 0; }
.country-counts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-3) 0 var(--s-4); }
.country-counts span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--s-3); border-radius: var(--radius); background: var(--c-surface); font-size: var(--fs-sm); font-weight: 700; }
.country-go { margin-top: auto; display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 800; color: var(--c-accent-ink); }

/* ── Recherche : titre, barre de filtres, résultats ── */
.op-switch { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--radius); background: var(--c-surface); }
.op-switch a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 var(--s-5); font-weight: 700; text-decoration: none; color: var(--c-muted); border-radius: var(--radius); }
.op-switch a:hover { color: var(--c-text); }
.op-switch a[aria-current="page"] { background: var(--c-accent-strong); color: var(--c-on-accent); }
.results-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-3); }
.results-top h1 { margin: 0; flex: 1 1 22rem; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.75rem); max-width: 24ch; text-wrap: balance; }
.lead { color: var(--c-muted); margin-bottom: var(--s-4); max-width: 46rem; }
.page-head .lead { margin-bottom: var(--s-4); }
.filterbar { background: var(--c-card); border-radius: var(--r-lg); padding: var(--s-3); margin-bottom: var(--s-4); box-shadow: var(--shadow-soft); }
@media (min-width: 900px) { .filterbar { position: sticky; top: var(--s-3); z-index: 30; padding: var(--s-2) var(--s-2) var(--s-2) var(--s-3); } }
.fb-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.fb-search { position: relative; flex: 1 1 100%; }
.fb-search .ic { position: absolute; left: 18px; top: 16px; color: var(--c-muted); pointer-events: none; }
.fb-search input { padding-left: 46px; min-height: 52px; }
@media (min-width: 900px) { .fb-search { flex: 1 1 220px; max-width: 290px; } }
.chip { position: relative; }
.chip > summary { list-style: none; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 46px; padding: 0 var(--s-4); border-radius: var(--radius); background: var(--c-surface); cursor: pointer; font-weight: 600; max-width: 100%; }
.chip > summary::-webkit-details-marker { display: none; }
.chip > summary:hover { background: var(--c-surface-2); }
.chip[open] > summary, .chip.is-on > summary { background: var(--c-ink); color: var(--c-on-ink); }
.chip[open] > summary .ic-sm { transform: rotate(180deg); }
.chip-panel { margin-top: var(--s-2); padding: var(--s-5); background: var(--c-card); border-radius: var(--r-lg); min-width: 0; }
.chip[open] { flex: 1 1 100%; }
@media (min-width: 900px) {
  .chip[open] { flex: 0 0 auto; }
  .chip-panel { position: absolute; left: 0; top: 100%; z-index: 35; width: 360px; margin-top: 10px; box-shadow: var(--shadow-pop); }
  .chip-panel.wide { width: 440px; }
}
.panel-actions { display: flex; justify-content: flex-end; gap: var(--s-3); align-items: center; margin-top: var(--s-4); }
.pills { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); padding: 0 var(--s-4); border-radius: var(--radius); font-weight: 600; background: var(--c-surface); }
.pill input:checked + span { background: var(--c-ink); color: var(--c-on-ink); }
.pill input:focus-visible + span { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.equip { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-3); }
.equip-group { margin-top: var(--s-4); }
.equip-list { margin: 0 0 var(--s-3); }
.tag { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--s-4); background: var(--c-surface); border-radius: var(--radius); font-size: var(--fs-sm); font-weight: 600; color: var(--c-text); }
.allf-body > .hint { color: var(--c-muted); font-size: var(--fs-sm); margin: 0 0 var(--s-3); }
.fb-actions { display: flex; gap: var(--s-2); align-items: center; margin-left: auto; }
.active-filters { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.active-filters a { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 38px; padding: 0 var(--s-4); background: var(--c-surface); border-radius: var(--radius); color: var(--c-text); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.active-filters a:hover { background: var(--c-accent-soft); color: var(--c-accent-ink); }
.active-filters li:last-child a { background: transparent; color: var(--c-muted); text-decoration: underline; }
.results-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); margin: var(--s-4) 0; }
.results-meta .count { margin: 0; font-size: var(--fs-lg); }
.sort { position: relative; }
.sort summary { list-style: none; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; cursor: pointer; font-weight: 600; padding: 0 var(--s-4); border-radius: var(--radius); background: var(--c-surface); }
.sort summary:hover { background: var(--c-surface-2); }
.sort summary::-webkit-details-marker { display: none; }
.sort ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 25; list-style: none; margin: 0; padding: var(--s-2); min-width: 230px; background: var(--c-card); border-radius: var(--r-md); box-shadow: var(--shadow-pop); }
.sort li a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-sm); text-decoration: none; color: var(--c-text); }
.sort li a:hover, .sort li a[aria-current] { background: var(--c-surface); font-weight: 700; }
.results-layout { display: block; }
.aside-stack { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
@media (min-width: 760px) { .aside-stack { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
.aside-stack .panel { background: var(--c-surface); margin: 0; }

/* ── Cartes d'annonce : la photo d'abord, prix en gras ── */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--c-card); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.card-photo { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--c-surface), var(--c-surface-2)); overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo .no-photo { display: flex; flex-direction: column; gap: var(--s-2); height: 100%; align-items: center; justify-content: center; color: var(--c-muted); font-size: var(--fs-sm); }
.card-photo .no-photo .ic { width: 44px; height: 44px; }
.card-badges { position: absolute; left: var(--s-3); top: var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-1); max-width: calc(100% - 72px); z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 var(--s-3); border-radius: var(--radius); font-size: .8125rem; font-weight: 700; background: var(--c-glass); color: var(--c-text); }
.badge .ic { width: 14px; height: 14px; }
.badge-ad { background: var(--c-ink); color: var(--c-on-ink); }
.badge-new { background: var(--c-accent-soft); color: var(--c-accent-ink); }
.badge-ok { background: var(--c-ok-bg); color: var(--c-ok-ink); }
.badge-op { background: var(--c-ink); color: var(--c-on-ink); }
.photo-count { position: absolute; left: var(--s-3); bottom: var(--s-3); display: inline-flex; align-items: center; gap: 4px; padding: 3px var(--s-3); border-radius: var(--radius); background: rgba(15, 23, 42, .68); color: #fff; font-size: .8125rem; font-weight: 600; z-index: 2; }
.photo-count .ic { width: 14px; height: 14px; }
.fav { position: absolute; right: var(--s-3); top: var(--s-3); z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--radius); background: var(--c-glass); color: #0f172a; box-shadow: 0 2px 10px rgba(15, 23, 42, .18); }
.fav:hover { color: var(--c-accent-strong); background: #fff; }
.fav .ic { width: 22px; height: 22px; }
.card-body { padding: var(--s-4); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-price { font-weight: 800; font-size: 1.25rem; white-space: nowrap; margin: 0; font-variant-numeric: tabular-nums; letter-spacing: -.02em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-2); }
.card-price .muted { font-weight: 500; font-size: .8125rem; }
.card-keys { margin: 0; display: flex; flex-wrap: wrap; gap: 2px var(--s-4); color: var(--c-text); font-size: var(--fs-sm); }
.card-keys span { display: inline-flex; align-items: center; gap: 5px; }
.card-keys span:first-child { font-weight: 700; }
.card-keys .ic { width: 16px; height: 16px; color: var(--c-muted); }
.card-title { font-size: var(--fs-md); font-weight: 600; margin: 0; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:hover { text-decoration: underline; }
.card-title a:focus-visible { outline: none; }
.card:has(.card-title a:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.card-place { margin: 0; color: var(--c-muted); display: flex; align-items: center; gap: 4px; font-size: var(--fs-sm); }
.card-foot { margin: var(--s-2) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; font-size: .8125rem; color: var(--c-muted); }
.tag { display: inline-block; font-size: .8125rem; padding: 2px var(--s-3); border-radius: var(--radius); background: var(--c-surface); color: var(--c-muted); }
.tag:first-child { color: var(--c-text); font-weight: 600; }
.pagination { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-6); }

/* ── Fiche ── */
.listing-layout { display: grid; gap: var(--s-5); }
@media (min-width: 960px) { .listing-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-6); align-items: start; } }
.listing-main > section { margin-bottom: var(--s-6); }
.listing-top .badges-inline { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-3); }
.listing-top h1 { margin: 0 0 var(--s-2); font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.75rem); text-wrap: balance; }
.listing-place { color: var(--c-muted); margin: 0 0 var(--s-4); display: flex; align-items: center; gap: 6px; font-size: var(--fs-lg); }
.price { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem); font-weight: 800; margin: 0; font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: -.03em; }
.price .small { font-weight: 500; font-size: var(--fs-lg); }
.price-top { margin-bottom: var(--s-4); color: var(--c-accent-ink); }
@media (min-width: 960px) { .price-top-only-mobile { display: none; } }
.fav-inline { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-4); border-radius: var(--radius); font-weight: 600; text-decoration: none; background: var(--c-surface); }
.fav-inline:hover { background: var(--c-accent-soft); color: var(--c-accent-ink); }
.gal { position: relative; margin-bottom: var(--s-5); }
.gal-radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gal-stage { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--s-2); border-radius: var(--r-lg); background: var(--c-surface); scrollbar-width: none; }
.gal-stage::-webkit-scrollbar { display: none; }
.gal-fig { margin: 0; flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 3; }
.gal-fig a, .gal-fig img { display: block; width: 100%; height: 100%; }
.gal-fig img { object-fit: cover; }
.gal-thumbs { display: none; }
.gal-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2); aspect-ratio: 16 / 9; background: var(--c-surface); border-radius: var(--r-lg); color: var(--c-muted); margin-bottom: var(--s-5); }
.gal-empty .ic { width: 56px; height: 56px; }
.gal .photo-count { z-index: 2; left: var(--s-4); bottom: var(--s-4); }
@media (min-width: 900px) {
  .gal-stage { display: block; overflow: hidden; box-shadow: var(--shadow-card); }
  .gal-fig { display: none; aspect-ratio: auto; height: clamp(360px, 46vw, 560px); }
  .gal .photo-count { bottom: calc(var(--s-4) + 108px); }
  .gal-thumbs { display: flex; gap: var(--s-3); margin-top: var(--s-4); overflow-x: auto; padding: 5px; scrollbar-width: none; }
  .gal-thumbs label { display: block; flex: 0 0 132px; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; cursor: pointer; background: var(--c-surface); }
  .gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
  #ph-1:checked ~ .gal-stage .gal-fig:nth-child(1) { display: block; }
  #ph-1:checked ~ .gal-thumbs label:nth-child(1) { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent-strong); }
  #ph-1:focus-visible ~ .gal-thumbs label:nth-child(1) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
  #ph-2:checked ~ .gal-stage .gal-fig:nth-child(2) { display: block; }
  #ph-2:checked ~ .gal-thumbs label:nth-child(2) { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent-strong); }
  #ph-2:focus-visible ~ .gal-thumbs label:nth-child(2) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
  #ph-3:checked ~ .gal-stage .gal-fig:nth-child(3) { display: block; }
  #ph-3:checked ~ .gal-thumbs label:nth-child(3) { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent-strong); }
  #ph-3:focus-visible ~ .gal-thumbs label:nth-child(3) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
  #ph-4:checked ~ .gal-stage .gal-fig:nth-child(4) { display: block; }
  #ph-4:checked ~ .gal-thumbs label:nth-child(4) { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent-strong); }
  #ph-4:focus-visible ~ .gal-thumbs label:nth-child(4) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
  #ph-5:checked ~ .gal-stage .gal-fig:nth-child(5) { display: block; }
  #ph-5:checked ~ .gal-thumbs label:nth-child(5) { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent-strong); }
  #ph-5:focus-visible ~ .gal-thumbs label:nth-child(5) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
  #ph-6:checked ~ .gal-stage .gal-fig:nth-child(6) { display: block; }
  #ph-6:checked ~ .gal-thumbs label:nth-child(6) { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent-strong); }
  #ph-6:focus-visible ~ .gal-thumbs label:nth-child(6) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
  #ph-7:checked ~ .gal-stage .gal-fig:nth-child(7) { display: block; }
  #ph-7:checked ~ .gal-thumbs label:nth-child(7) { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent-strong); }
  #ph-7:focus-visible ~ .gal-thumbs label:nth-child(7) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
  #ph-8:checked ~ .gal-stage .gal-fig:nth-child(8) { display: block; }
  #ph-8:checked ~ .gal-thumbs label:nth-child(8) { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent-strong); }
  #ph-8:focus-visible ~ .gal-thumbs label:nth-child(8) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
  #ph-9:checked ~ .gal-stage .gal-fig:nth-child(9) { display: block; }
  #ph-9:checked ~ .gal-thumbs label:nth-child(9) { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent-strong); }
  #ph-9:focus-visible ~ .gal-thumbs label:nth-child(9) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
  #ph-10:checked ~ .gal-stage .gal-fig:nth-child(10) { display: block; }
  #ph-10:checked ~ .gal-thumbs label:nth-child(10) { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent-strong); }
  #ph-10:focus-visible ~ .gal-thumbs label:nth-child(10) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
  #ph-11:checked ~ .gal-stage .gal-fig:nth-child(11) { display: block; }
  #ph-11:checked ~ .gal-thumbs label:nth-child(11) { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent-strong); }
  #ph-11:focus-visible ~ .gal-thumbs label:nth-child(11) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
  #ph-12:checked ~ .gal-stage .gal-fig:nth-child(12) { display: block; }
  #ph-12:checked ~ .gal-thumbs label:nth-child(12) { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent-strong); }
  #ph-12:focus-visible ~ .gal-thumbs label:nth-child(12) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
  #ph-13:checked ~ .gal-stage .gal-fig:nth-child(13) { display: block; }
  #ph-13:checked ~ .gal-thumbs label:nth-child(13) { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent-strong); }
  #ph-13:focus-visible ~ .gal-thumbs label:nth-child(13) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
  #ph-14:checked ~ .gal-stage .gal-fig:nth-child(14) { display: block; }
  #ph-14:checked ~ .gal-thumbs label:nth-child(14) { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent-strong); }
  #ph-14:focus-visible ~ .gal-thumbs label:nth-child(14) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
  #ph-15:checked ~ .gal-stage .gal-fig:nth-child(15) { display: block; }
  #ph-15:checked ~ .gal-thumbs label:nth-child(15) { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent-strong); }
  #ph-15:focus-visible ~ .gal-thumbs label:nth-child(15) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
  #ph-16:checked ~ .gal-stage .gal-fig:nth-child(16) { display: block; }
  #ph-16:checked ~ .gal-thumbs label:nth-child(16) { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent-strong); }
  #ph-16:focus-visible ~ .gal-thumbs label:nth-child(16) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
  #ph-17:checked ~ .gal-stage .gal-fig:nth-child(17) { display: block; }
  #ph-17:checked ~ .gal-thumbs label:nth-child(17) { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent-strong); }
  #ph-17:focus-visible ~ .gal-thumbs label:nth-child(17) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
  #ph-18:checked ~ .gal-stage .gal-fig:nth-child(18) { display: block; }
  #ph-18:checked ~ .gal-thumbs label:nth-child(18) { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent-strong); }
  #ph-18:focus-visible ~ .gal-thumbs label:nth-child(18) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
  #ph-19:checked ~ .gal-stage .gal-fig:nth-child(19) { display: block; }
  #ph-19:checked ~ .gal-thumbs label:nth-child(19) { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent-strong); }
  #ph-19:focus-visible ~ .gal-thumbs label:nth-child(19) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
  #ph-20:checked ~ .gal-stage .gal-fig:nth-child(20) { display: block; }
  #ph-20:checked ~ .gal-thumbs label:nth-child(20) { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-accent-strong); }
  #ph-20:focus-visible ~ .gal-thumbs label:nth-child(20) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
}
.keyfacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); margin: 0 0 var(--s-6); padding: 0; list-style: none; }
@media (min-width: 640px) { .keyfacts { grid-template-columns: repeat(4, 1fr); } }
.keyfacts li { display: flex; flex-direction: column; gap: 2px; padding: var(--s-4); background: var(--c-surface); border-radius: var(--radius); }
.keyfacts .ic { width: 26px; height: 26px; color: var(--c-accent-ink); margin-bottom: var(--s-1); }
.keyfacts b { font-size: var(--fs-xl); font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.2; }
.keyfacts span { color: var(--c-muted); font-size: var(--fs-sm); }
.facts { display: grid; grid-template-columns: 1fr; gap: 0 var(--s-6); margin: 0; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts > div { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--c-line); }
.facts dt { color: var(--c-muted); font-size: var(--fs-sm); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.description { white-space: pre-line; overflow-wrap: anywhere; font-size: var(--fs-lg); max-width: 44rem; }
.panel { background: var(--c-surface); border-radius: var(--r-lg); padding: var(--s-5); margin-bottom: var(--s-4); }
.verif { background: var(--c-surface); border-left: 4px solid var(--c-muted); }
.verif.is-checked { background: var(--c-ok-bg); border-left-color: var(--c-ok-ink); }
.verif h2 { font-size: var(--fs-lg); display: flex; gap: var(--s-2); align-items: center; letter-spacing: -.01em; }
.checks { padding-left: var(--s-5); margin: 0 0 var(--s-3); }
.checks li { margin-bottom: var(--s-2); }
.place-block { display: flex; gap: var(--s-3); align-items: flex-start; }
.place-block .ic { width: 44px; height: 44px; padding: 10px; border-radius: var(--radius); background: var(--c-surface); color: var(--c-text); }
.side { display: grid; gap: var(--s-4); }
@media (min-width: 960px) { .side { position: sticky; top: var(--s-4); } }
.contact-card { background: var(--c-card); box-shadow: var(--shadow-soft); margin: 0; padding: var(--s-5); border-radius: var(--radius); border-top: 4px solid var(--c-accent); }
.contact-card .price { font-size: 2rem; margin-bottom: var(--s-4); }
.contact-card .btn { margin-bottom: var(--s-2); }
.contact-card .hint { font-size: var(--fs-sm); color: var(--c-muted); margin: 0 0 var(--s-4); text-align: center; }
.actions .btn { width: 100%; margin-bottom: var(--s-1); }
.actions .hint { font-size: var(--fs-sm); color: var(--c-muted); margin-bottom: var(--s-4); }
.mbar { position: fixed; left: var(--s-3); right: var(--s-3); bottom: calc(var(--s-3) + env(safe-area-inset-bottom)); z-index: 50; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-5); border-radius: var(--radius); background: var(--c-card); box-shadow: var(--shadow-pop); }
.mbar-price { flex: 1; font-weight: 800; font-size: var(--fs-lg); line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -.02em; min-width: 0; }
.mbar-price .small { display: block; font-weight: 500; font-size: .8125rem; color: var(--c-muted); }
.mbar .btn { flex: 0 0 auto; min-height: 50px; padding: 0 var(--s-5); }
@media (min-width: 960px) { .mbar { display: none; } body.has-bar { padding-bottom: 0; } }
.similar { margin-top: var(--s-7); padding: var(--s-6) 0 0; border-top: 1px solid var(--c-line); }
.mini { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-3); }
.mini img, .mini-ph { width: 96px; height: 72px; flex: none; border-radius: var(--r-sm); object-fit: cover; background: var(--c-surface-2); display: flex; align-items: center; justify-content: center; color: var(--c-muted); }
.mini p { margin: 0; }
.mini-price { font-weight: 800; font-size: var(--fs-lg); letter-spacing: -.02em; }
.mini-title { font-weight: 600; }
.prose h2 { margin-top: var(--s-6); }
.prose ul { padding-left: var(--s-5); }
.prose li { margin-bottom: var(--s-2); }
.legal-meta { color: var(--c-muted); font-size: var(--fs-sm); margin: 0 0 var(--s-2); }
.legal-provisional { display: inline-block; margin: 0 0 var(--s-4); padding: var(--s-1) var(--s-3); border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-warn-bg); color: var(--c-text); font-size: var(--fs-sm); }
.legal-toc { margin: 0 0 var(--s-5); padding: var(--s-3) var(--s-4); background: var(--c-surface); border-radius: var(--r-sm); font-size: var(--fs-sm); }
.legal-toc ol { margin: 0; padding-left: var(--s-5); columns: 1; }
@media (min-width: 700px) { .legal-toc ol { columns: 2; } }
.legal-toc li { margin-bottom: var(--s-1); }
.legal-todo { background: var(--c-warn-bg); color: var(--c-text); padding: 0 .25em; border-radius: 2px; }
.legal-others ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.legal-others li { margin: 0; }
.legal-section { scroll-margin-top: var(--s-6); }
.choices { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-4); }
@media (min-width: 700px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: flex; flex-direction: column; gap: var(--s-1); height: 100%; min-height: 150px; padding: var(--s-5); border-radius: var(--radius); background: var(--c-surface); color: var(--c-text); text-decoration: none; }
.choice:hover { background: var(--c-surface-2); color: var(--c-text); }
.choice-title { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.choice-text { color: var(--c-muted); }

/* ── Ajouts v3 (D38) : modèle des portails d'annonces — en-tête à deux boutons, onglets à icônes, rangées, services, tendances ── */
.head-ctas { margin-left: auto; display: flex; gap: var(--s-2); align-items: center; order: 2; }
.head-cta, .head-login { min-height: 40px; padding: 0 var(--s-3); font-size: .8125rem; white-space: nowrap; }
@media (min-width: 760px) { .head-cta, .head-login { min-height: 42px; padding: 0 var(--s-4); font-size: var(--fs-sm); } }
.head-cta { display: inline-flex; background: var(--c-accent-strong); color: var(--c-on-accent); box-shadow: none; }
.head-cta:hover { background: var(--c-accent-hover); color: var(--c-on-accent); }
.head-login { background: var(--c-ink); color: var(--c-on-ink); }
.head-login:hover { background: var(--c-text); color: var(--c-on-ink); opacity: .86; }
.cta-long { display: none; }
.site-nav { order: 3; flex: 1 1 calc(100% - 132px); min-width: 0; margin: 0; width: auto; }
.country-menu, .country-pill { order: 4; margin-left: auto; flex: 0 0 auto; }
.site-header .inner { row-gap: var(--s-1); }
@media (min-width: 760px) {
  .cta-long { display: inline; }
  .site-nav { order: 0; flex: none; }
  .country-menu, .country-pill { order: 1; margin-left: auto; }
  .head-ctas { order: 2; margin-left: 0; }
}
.help-fab { position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: 45; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4); border-radius: var(--radius); background: var(--c-card); color: var(--c-text); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; box-shadow: var(--shadow-pop); }
.help-fab:hover { background: var(--c-surface); color: var(--c-text); }
.help-fab .ic { color: var(--c-accent-ink); }
body.has-bar .help-fab { bottom: 92px; }
@media (min-width: 960px) { body.has-bar .help-fab { bottom: var(--s-4); } }
@media (max-width: 420px) { .help-fab span { display: none; } .help-fab { width: 44px; padding: 0; justify-content: center; } }
.btn-outline { background: transparent; color: var(--c-text); box-shadow: inset 0 0 0 2px var(--c-text); min-height: 44px; font-size: var(--fs-sm); padding: 0 var(--s-4); }
.btn-outline:hover { background: var(--c-text); color: var(--c-bg); }
.verified-band .btn-outline { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.verified-band .btn-outline:hover { background: #fff; color: #0f172a; }
.tabs { gap: 0; padding: 0; background: transparent; border-bottom: 2px solid var(--c-line); border-radius: 0; margin-bottom: var(--s-4); display: flex; }
.tabs label, .tabs .tab-soon { flex: 1; flex-direction: column; gap: 2px; min-height: 64px; padding: var(--s-2) var(--s-2); border-radius: 0; margin-bottom: -2px; border-bottom: 3px solid transparent; font-size: var(--fs-sm); display: inline-flex; align-items: center; justify-content: center; color: var(--c-muted); background: transparent; }
.tabs .ic { width: 24px; height: 24px; }
#tab-vente:checked ~ .tabs label[for="tab-vente"], #tab-location:checked ~ .tabs label[for="tab-location"] { background: transparent; color: var(--c-text); border-bottom-color: var(--c-accent-strong); }
.tabs .tab-soon { font-weight: 700; opacity: .6; cursor: not-allowed; }
.tabs .tab-soon small { font-weight: 600; font-size: .6875rem; color: var(--c-muted); }
@media (min-width: 760px) { .tabs { display: flex; max-width: 520px; } .tabs label, .tabs .tab-soon { flex-direction: row; gap: var(--s-2); min-height: 52px; font-size: var(--fs-md); } .tabs .tab-soon small { margin-left: 2px; } }
.finder-form .f-mots { grid-column: 1 / -1; }
.finder-form .field label { font-size: var(--fs-sm); }
.finder-form .f-mots label { font-weight: 600; color: var(--c-muted); }
.finder-form .f-mots input { min-height: 56px; font-size: var(--fs-lg); background: var(--c-card); box-shadow: inset 0 0 0 2px var(--c-line); }
.finder-form .f-mots input:hover { background: var(--c-card); box-shadow: inset 0 0 0 2px var(--c-muted); }
.finder-form .f-mots > .ic { bottom: 18px; }
.hero-short .hero-body { padding-bottom: 170px; }
.hero-short .hero-sky { height: 40%; }
.hero-short { min-height: 0; }
.band-pull { margin-top: -48px; position: relative; z-index: 3; padding-top: 0; }
.band-tight { padding: var(--s-5) 0; }
.services-title { font-size: var(--fs-md); letter-spacing: 0; margin-bottom: var(--s-3); }
.services { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.notice-wrap { padding-top: calc(var(--s-6) + 76px); }
.notice-wrap + .band, .notice-wrap + .band-alt { padding-top: var(--s-5); }
.trends { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-3); }
.trends > li { flex: 0 0 min(78%, 260px); scroll-snap-align: start; }
@media (min-width: 1000px) { .trends { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; } .trends > li { flex: none; } }
.trend { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: var(--s-4); background: var(--c-card); border-radius: var(--radius); box-shadow: var(--shadow-card); text-decoration: none; color: var(--c-text); }
.trend:hover { color: var(--c-text); box-shadow: var(--shadow-soft); }
.trend-name { font-weight: 800; font-size: var(--fs-lg); }
.trend-label { color: var(--c-muted); font-size: .8125rem; }
.trend-price { margin-top: var(--s-2); font-weight: 800; font-size: var(--fs-xl); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--c-accent-ink); }
.trend-price small { font-size: var(--fs-sm); font-weight: 600; color: var(--c-muted); }
.trend-n { color: var(--c-muted); font-size: .8125rem; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-2); }
.card-top .card-price { padding-top: 6px; }
.card-kind { margin: 0; font-weight: 700; }
.card-body .fav { position: relative; right: auto; top: auto; box-shadow: none; background: transparent; color: var(--c-text); width: 40px; height: 40px; margin: -4px -8px 0 0; flex: none; }
.card-body .fav:hover { color: var(--c-accent-strong); background: var(--c-accent-soft); }
.card-photo .photo-count { left: auto; right: var(--s-3); bottom: var(--s-3); background: rgba(15, 23, 42, .82); }
.card-title { font-weight: 500; color: var(--c-muted); font-size: var(--fs-sm); margin-top: 2px; }
.card-keys { color: var(--c-muted); }
.card-keys span:first-child { font-weight: 400; }

/* ── Panneau « Tous les filtres » (case cachée + étiquette, sans script) ── */
.filters-row { margin: 0 0 var(--s-3); }
.allf-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.btn-filters { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-4); border-radius: var(--radius); background: var(--c-card); color: var(--c-text); font-weight: 700; cursor: pointer; box-shadow: inset 0 0 0 2px var(--c-text); }
.btn-filters:hover { background: var(--c-text); color: var(--c-bg); }
.allf-toggle:focus-visible + .btn-filters { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius); background: var(--c-accent-strong); color: var(--c-on-accent); font-size: .75rem; font-weight: 800; }
.allf-backdrop, .allf-panel { display: none; }
.allf-toggle:checked ~ .allf-backdrop { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(15, 23, 42, .6); }
.allf-toggle:checked ~ .allf-panel { display: flex; flex-direction: column; position: fixed; z-index: 80; inset: 0; background: var(--c-card); color: var(--c-text); }
@media (min-width: 760px) { .allf-toggle:checked ~ .allf-panel { left: auto; width: min(560px, 100%); box-shadow: var(--shadow-pop); } }
.allf-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-line); }
.allf-head h2 { margin: 0; font-size: var(--fs-xl); }
.allf-close { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border-radius: var(--radius); cursor: pointer; background: var(--c-surface); }
.allf-close:hover { background: var(--c-surface-2); }
.allf-body { flex: 1; overflow-y: auto; padding: var(--s-4); }
.allf-title { margin: var(--s-5) 0 var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--c-line); font-size: var(--fs-lg); }
.allf-body > .op-switch + .allf-words { margin-top: var(--s-4); }
.op-switch-wide { display: flex; width: 100%; }
.op-switch-wide a { flex: 1; justify-content: center; }
.ttiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.field .ttile, .ttile { position: relative; display: flex; margin: 0; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-1); min-height: 76px; padding: var(--s-2); text-align: center; color: var(--c-text); border-radius: var(--radius); background: var(--c-surface); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 2px transparent; }
.ttile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ttile .ic { color: var(--c-muted); width: 26px; height: 26px; display: block; }
.ttile:hover { background: var(--c-surface-2); }
.ttile:has(input:checked) { background: var(--c-accent-soft); box-shadow: inset 0 0 0 2px var(--c-accent-strong); color: var(--c-accent-ink); }
.ttile:has(input:checked) .ic { color: var(--c-accent-ink); }
.ttile:has(input:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.allf-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); background: var(--c-card); box-shadow: 0 -8px 24px rgba(15, 23, 42, .08); }
.allf-foot-info { display: flex; flex-direction: column; gap: 2px; }
.allf-foot-info a { font-weight: 700; }
.allf-foot .btn { flex: 1 1 200px; }

/* ── Espace compte (D41) : formulaires, liste d'annonces, photos ── */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--c-link); text-decoration: underline; cursor: pointer; min-height: 44px; }
.linklike:hover { color: var(--c-accent-ink); }
.acct-list .choice { min-height: 0; }
.acct-list .tag { align-self: flex-start; margin-top: var(--s-2); }
.photo-grid { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s-3); }
.photo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--c-surface); }
input[type="file"] { padding: var(--s-3); min-height: 52px; }
.equip-group { margin-bottom: var(--s-4); }

/* ── Mouvement : seulement si le visiteur ne l'a pas réduit ── */
@media (prefers-reduced-motion: no-preference) {
  .btn, .chip > summary, .fav, .choice, .tile-links a, .tabs label, .op-switch a, .site-nav a, .card, .country-card, .commune, .quick a { transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
  .card-photo img { transition: transform .5s ease; }
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
  .card:hover .card-photo img { transform: scale(1.04); }
  .country-card:hover, .commune:hover { transform: translateY(-3px); }
  .chip[open] > summary .ic-sm { transition: transform .18s ease; }
}
@media print { .site-header, .site-footer, .filterbar, .mbar, .fav, .hero { display: none; } }
