/* Casa Terrenas — feuille de style unique, mobile d'abord, sans framework ni ressource tierce. */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-latin-600-normal.778dd8bec372.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext-600-normal.d4d74d39456b.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/outfit-latin-700-normal.6a0674c3b77b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #173238;
  --muted: #4f6569;
  --ocean: #0e6e73;
  --ocean-700: #0a5357;
  --ocean-50: #e7f3f1;
  --lagoon: #5fb6ae;
  --sand: #f8f2e8;
  --sand-200: #ece1cd;
  --shell: #fffdf9;
  --palm: #2f7a4d;
  --terracotta: #b8562f;
  --sun: #f2b544;
  --line: #e4d8c4;
  --warn-fg: #8f4a00;
  --warn-bg: #fff2dc;
  --rented-fg: #6b3fa0;
  --rented-bg: #f2ecfa;
  --sponsor-fg: #5b3fb0;
  --sponsor-bg: #efeafc;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --ok: #1b6e3a;
  --ok-bg: #e7f4eb;
  --wa: #15803d;
  --wa-700: #166534;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 50, 56, 0.06), 0 8px 24px rgba(23, 50, 56, 0.08);
  --font-heading: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --maxw: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.58;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--ocean); text-underline-offset: 2px; }
a:hover { color: var(--ocean-700); }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.16; margin: 0 0 .5em; letter-spacing: -0.012em; }
h1 { font-size: clamp(1.75rem, 4.8vw, 2.7rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 700; }
h3, .h3 { font-size: 1.14rem; font-weight: 600; font-family: var(--font-heading); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
.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-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; color: #fff; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.icon { display: inline-block; vertical-align: -0.2em; flex: none; }
.section { padding: 34px 0; }
.section-alt { background: var(--shell); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
main { display: block; min-height: 60vh; }
main:focus { outline: none; }

/* --- Boutons --------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1.2 var(--font-heading); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; text-align: center; }
.btn-primary { background: var(--ocean); color: #fff; }
.btn-primary:hover { background: var(--ocean-700); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--ocean); border-color: var(--ocean); }
.btn-ghost:hover { background: var(--ocean-50); }
.btn-light { background: var(--shell); color: var(--ink); border-color: var(--line); }
.btn-small { min-height: 38px; padding: 6px 14px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.link-button { background: none; border: 0; color: var(--ocean); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* --- En-tête ------------------------------------------------------------------------------- */
.site-header { background: rgba(255, 253, 249, .96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; -webkit-backdrop-filter: saturate(140%) blur(6px); backdrop-filter: saturate(140%) blur(6px); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.2rem/1 var(--font-heading); letter-spacing: -.01em; }
.brand strong { color: var(--ocean); font-weight: 700; }
.brand img { border-radius: 10px; }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--ocean-50); color: var(--ocean-700); }
.header-spacer { flex: 1; }
.lang-switch { display: flex; gap: 2px; font-size: .85rem; font-weight: 600; }
.lang-switch a, .lang-switch span { padding: 6px 7px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.lang-switch span[aria-current] { color: var(--ink); background: var(--sand-200); }
.header-cta { display: none; }
.mobile-menu { position: relative; }
.mobile-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; background: var(--shell); }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(88vw, 340px); background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
.mobile-panel ul { list-style: none; margin: 0 0 12px; padding: 0; }
.mobile-panel li a { display: block; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.mobile-panel li a:hover { background: var(--ocean-50); }
.nav-sub { padding: 10px 10px 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
@media (max-width: 440px) {
  .header-inner { gap: 8px; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .lang-switch a, .lang-switch span { padding: 6px 5px; }
  .mobile-menu summary { padding: 8px 10px; }
  .mobile-menu summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 960px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .mobile-menu { display: none; }
}

/* --- Fil d'Ariane ------------------------------------------------------------------------ */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 14px auto 0; padding: 0; font-size: .86rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }

/* --- Accueil -------------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--ocean-50); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 40, 44, .55) 0%, rgba(10, 40, 44, .35) 45%, rgba(10, 40, 44, .65) 100%); }
.hero.is-illustration .hero-media::after { background: linear-gradient(180deg, rgba(255, 253, 249, .2) 0%, rgba(255, 253, 249, .1) 100%); }
.hero-inner { position: relative; padding-top: 38px; padding-bottom: 30px; }
.hero h1 { color: #fff; max-width: 22ch; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.hero.is-illustration h1 { color: var(--ink); text-shadow: none; }
.kicker { display: inline-block; font: 600 .82rem/1 var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); padding: 7px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero.is-illustration .kicker { color: var(--ocean-700); background: var(--shell); border-color: var(--line); }
.hero-lead { color: #f6fbfa; max-width: 58ch; font-size: 1.05rem; }
.hero.is-illustration .hero-lead { color: var(--muted); }
.photo-credit { position: absolute; right: 8px; bottom: 6px; font-size: .72rem; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); z-index: 2; }
.photo-credit a { color: inherit; }
.search-card { background: var(--shell); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-top: 18px; max-width: 920px; }
.search-card h2 { font-size: 1.12rem; margin-bottom: 10px; }
.search-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 10px; }
/* libellés de une ou deux lignes : les champs restent alignés */
.search-grid .field { margin: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.search-grid .span-2, .search-grid .field-arrival { grid-column: 1 / -1; }
/* téléphone : description libre puis bouton pleine largeur, en dernier */
.search-grid .search-q { order: 1; }
.search-grid .search-submit { order: 2; grid-column: 1 / -1; }
@media (min-width: 760px) {
  .hero-inner { padding-top: 64px; padding-bottom: 46px; }
  .search-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; align-items: end; }
  .search-grid .field-arrival, .search-grid .search-submit { grid-column: auto; }
  .search-grid .search-q, .search-grid .search-submit { order: 0; }
  .search-grid .span-2 { grid-column: 1 / -1; }
}
.steps { display: grid; gap: 14px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 64px; position: relative; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--ocean); color: #fff; display: grid; place-items: center; font: 700 1rem var(--font-heading); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.trust-list { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.trust-list li { display: flex; gap: 10px; align-items: flex-start; }
.trust-list .icon { color: var(--palm); margin-top: 3px; }
@media (min-width: 760px) { .trust-list { grid-template-columns: repeat(3, 1fr); } }

/* --- Grilles de cartes --------------------------------------------------------------------- */
.card-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card-grid.four { }
@media (min-width: 980px) { .card-grid.four { grid-template-columns: repeat(4, 1fr); } }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 78%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 760px) { .scroller { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: unset; overflow: visible; } }
@media (min-width: 1100px) { .scroller.five { grid-template-columns: repeat(5, 1fr); } }
.tile { display: flex; flex-direction: column; background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 1px 0 rgba(0, 0, 0, .02); }
.tile:hover { border-color: var(--lagoon); color: var(--ink); }
.tile-media { position: relative; aspect-ratio: 3 / 2; background: var(--ocean-50); overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-body { padding: 14px 16px 16px; }
.tile-body h3 { margin-bottom: 4px; }
.tile-body p { margin: 0; color: var(--muted); font-size: .94rem; }
.tile-count { font-size: .85rem; font-weight: 600; color: var(--ocean-700); }

/* --- Carte logement ----------------------------------------------------------------------- */
.listing-card { position: relative; display: flex; flex-direction: column; background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.listing-card.is-rented { opacity: .86; }
.listing-media { position: relative; aspect-ratio: 3 / 2; background: var(--ocean-50); }
.listing-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-note { position: absolute; left: 8px; bottom: 8px; right: 8px; font-size: .72rem; line-height: 1.3; background: rgba(23, 50, 56, .78); color: #fff; padding: 4px 8px; border-radius: 8px; }
.card-badges { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.listing-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.listing-title { font-size: 1.06rem; margin: 0; }
.listing-title a { color: var(--ink); text-decoration: none; }
.listing-title a::after { content: ""; position: absolute; inset: 0; }
.listing-title a:hover { color: var(--ocean-700); }
.listing-place { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .9rem; margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 2px 0; }
.facts li { font-size: .82rem; background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.rent { margin-top: auto; }
.rent-amount { font: 700 1.3rem/1.15 var(--font-heading); color: var(--ink); }
.rent-amount.is-none { font-size: 1rem; color: var(--muted); font-weight: 600; }
.rent-cost { font-size: .88rem; color: var(--muted); }
.rent-cost strong { color: var(--ink); }
.check-line { font-size: .78rem; color: var(--muted); margin: 0; }
.agency-line { font-size: .84rem; color: var(--muted); margin: 0; }
.card-actions { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.compare-check { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; cursor: pointer; }
.compare-check input { width: 18px; height: 18px; accent-color: var(--ocean); }

/* --- Badges ---------------------------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font: 600 .74rem/1 var(--font-heading); letter-spacing: .02em; padding: 5px 9px; border-radius: 999px; background: var(--shell); color: var(--ink); border: 1px solid var(--line); }
.badge-sponsored { background: var(--sponsor-bg); color: var(--sponsor-fg); border-color: #d8cdf5; }
.badge-operator { background: var(--ocean); color: #fff; border-color: var(--ocean); }
.badge-partner { background: var(--ok-bg); color: var(--ok); border-color: #c4e3cf; }
.badge-warn { background: var(--warn-bg); color: var(--warn-fg); border-color: #f2d3a2; }
.badge-rented { background: var(--rented-bg); color: var(--rented-fg); border-color: #dccdf1; }
.badge-illustration { background: rgba(255, 253, 249, .92); color: var(--muted); }

/* --- Catalogue et filtres ----------------------------------------------------------------- */
.page-head { padding-top: 22px; padding-bottom: 8px; }
.page-head .lead { margin-bottom: 0; }
.results-layout { display: grid; gap: 18px; padding-bottom: 40px; }
@media (min-width: 980px) { .results-layout { grid-template-columns: 290px 1fr; align-items: start; } }
.filters { background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius); }
.filters summary { list-style: none; display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 14px 16px; cursor: pointer; font: 600 1.02rem var(--font-heading); }
.filters summary::-webkit-details-marker { display: none; }
.filters-body { padding: 0 16px 16px; display: grid; gap: 12px; }
.filters-more { border-top: 1px solid var(--line); padding-top: 10px; }
.filters-more > summary { padding: 4px 0; font-size: .95rem; }
.filters-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 980px) { .filters { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; } }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.toolbar form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.toolbar form label { white-space: nowrap; }
.toolbar form select { width: auto; min-width: 0; max-width: 100%; }
@media (max-width: 559px) {
  .toolbar form { flex: 1 1 100%; }
  .toolbar form select { flex: 1 1 262px; }
}
.count { font-weight: 600; margin: 0; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--shell); }
.view-toggle a, .view-toggle span { padding: 7px 14px; font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.view-toggle span[aria-current] { background: var(--ocean); color: #fff; }
.understood { background: var(--ocean-50); border: 1px solid #cfe5e1; border-radius: var(--radius-sm); padding: 10px 14px; font-size: .92rem; margin-bottom: 12px; }
.empty { background: var(--shell); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.unknown-hint { background: var(--warn-bg); border: 1px solid #f2d3a2; color: var(--warn-fg); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .92rem; margin-bottom: 12px; }
.unknown-hint a { color: inherit; font-weight: 600; }
.sponsored-block { background: var(--sponsor-bg); border: 1px solid #d8cdf5; border-radius: var(--radius); padding: 14px; margin-bottom: 18px; }
.sponsored-block > .badge { margin-bottom: 10px; }

/* --- Plan schématique ----------------------------------------------------------------------- */
.map-box { background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin: 0; }
.map-svg { display: block; width: 100%; height: auto; border-radius: 12px; background: #cfe9e4; }
.map-svg .land { fill: #f3e9d6; }
.map-svg .coast { fill: none; stroke: #9fcfc6; stroke-width: 3; }
.map-svg .area { fill: rgba(14, 110, 115, .16); stroke: var(--ocean); stroke-width: 1.5; }
.map-svg a:hover .area, .map-svg a:focus .area { fill: rgba(14, 110, 115, .35); }
.map-svg .area.is-active { fill: rgba(184, 86, 47, .25); stroke: var(--terracotta); stroke-width: 2.5; }
.map-svg .label { font: 600 13px var(--font-body); fill: var(--ink); paint-order: stroke; stroke: #f3e9d6; stroke-width: 4px; }
.map-svg .sea-label { font: italic 15px var(--font-body); fill: #2d7f7b; letter-spacing: .1em; }
.map-svg .scale { stroke: var(--ink); stroke-width: 2; }
.map-svg .scale-text { font: 12px var(--font-body); fill: var(--ink); }
.map-note { font-size: .82rem; color: var(--muted); margin: 8px 4px 0; }

/* --- Fiche logement --------------------------------------------------------------------------- */
.listing-layout { display: grid; gap: 22px; padding-top: 8px; padding-bottom: 40px; }
@media (min-width: 980px) { .listing-layout { grid-template-columns: 1fr 370px; align-items: start; } }
.listing-head h1 { margin-bottom: 6px; }
.gallery { display: grid; gap: 8px; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: var(--ocean-50); }
.gallery-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 32%; gap: 8px; overflow-x: auto; }
.gallery-strip img { aspect-ratio: 4 / 3; border-radius: 10px; }
.panel { background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 1.24rem; }
.aside-sticky { display: grid; gap: 16px; }
@media (min-width: 980px) { .aside-sticky { position: sticky; top: 82px; } }
.price-panel .rent-amount { font-size: 1.65rem; }
.kv { display: grid; grid-template-columns: minmax(min(8.5em, 35%), 1fr) minmax(0, auto); gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.kv .total dt, .kv .total dd { border-top: 1px solid var(--line); padding-top: 8px; color: var(--ink); font-weight: 700; }
.note { font-size: .84rem; color: var(--muted); margin: 8px 0 0; }
.note-warn { color: var(--warn-fg); }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
@media (min-width: 640px) { .spec-grid { grid-template-columns: repeat(3, 1fr); } }
.spec-grid div { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.spec-grid dt { font-size: .82rem; color: var(--muted); }
.spec-grid dd { margin: 0; font-weight: 600; }
.amenity-list { display: grid; grid-template-columns: 1fr; gap: 8px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .amenity-list { grid-template-columns: 1fr 1fr; } }
.amenity-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--sand); }
.amenity-list .state-yes { color: var(--ok); font-weight: 600; }
.amenity-list .state-no { color: var(--muted); }
.amenity-list .state-unknown { color: var(--warn-fg); font-style: italic; }
.data-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.data-table th, .data-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-size: .82rem; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.status-included { color: var(--ok); font-weight: 600; }
.status-unknown { color: var(--warn-fg); font-style: italic; }
.kv dd .status-unknown { white-space: nowrap; }
.status-extra_metered { color: var(--terracotta); }
.cond-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.cond-list li { border-left: 3px solid var(--lagoon); padding: 2px 0 2px 12px; }
.cond-list .small { color: var(--muted); }
.state-banner { border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 14px; font-size: .95rem; }
.state-banner.warn { background: var(--warn-bg); color: var(--warn-fg); border: 1px solid #f2d3a2; }
.state-banner.rented { background: var(--rented-bg); color: var(--rented-fg); border: 1px solid #dccdf1; }
.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.calc-form .btn { grid-column: span 2; }
@media (max-width: 419px) {
  .calc-form { grid-template-columns: minmax(0, 1fr); }
  .calc-form .btn { grid-column: auto; }
}
@media (max-width: 359px) { .search-grid { grid-template-columns: minmax(0, 1fr); } }
.request-box .mention { font-size: .84rem; color: var(--muted); margin: 10px 0 0; }
.safety-box { display: flex; gap: 10px; background: var(--ok-bg); border: 1px solid #c4e3cf; color: #174d2c; border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9rem; }
.safety-box .icon { color: var(--palm); margin-top: 2px; }
.safety-box a { color: inherit; font-weight: 600; }
.report-link { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); }

/* --- Formulaires ------------------------------------------------------------------------------- */
.form-card { background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
@media (max-width: 359px) { .form-card { padding: 14px; } }
@media (min-width: 760px) { .form-card { padding: 26px; } }
.field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.label, .field > label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.req { color: var(--danger); }
.opt { font-weight: 400; color: var(--muted); font-size: .88rem; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #c9bda6; border-radius: 12px; background: #fff; color: var(--ink); font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
/* Champ date : sur iPhone (Safari), sa largeur native dépasse la colonne ; il est ramené à la largeur du champ */
input[type=date] { display: block; min-width: 0; max-width: 100%; text-align: left; line-height: 1.3; }
input[type=date]::-webkit-date-and-time-value { text-align: left; }
@supports (-webkit-touch-callout: none) {
  input[type=date] { -webkit-appearance: none; appearance: none; }
}
select { text-overflow: ellipsis; }
input:focus, select:focus, textarea:focus { border-color: var(--ocean); outline: 3px solid rgba(95, 182, 174, .35); outline-offset: 0; }
.help { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--danger); font-size: .9rem; margin: 6px 0 0; font-weight: 600; }
.error-summary { background: var(--danger-bg); border: 1px solid #f3c2bd; color: var(--danger); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }
.banner { background: var(--warn-bg); border: 1px solid #f2d3a2; color: var(--warn-fg); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }
.grid-2 { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr 1fr; } }
.phone-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 520px) { .phone-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ocean); }
.chip-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-choice { position: relative; }
.chip-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-choice span { display: inline-block; padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: .9rem; cursor: pointer; }
.chip-choice input:checked + span { background: var(--ocean); border-color: var(--ocean); color: #fff; }
.chip-choice input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
fieldset.group { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0 0 16px; }
fieldset.group legend { font: 600 1rem var(--font-heading); padding: 0 6px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consents { display: grid; gap: 10px; background: var(--sand); border-radius: 12px; padding: 12px; margin: 0 0 16px; }
.selected-listing { display: flex; gap: 12px; align-items: center; background: var(--ocean-50); border: 1px solid #cfe5e1; border-radius: 14px; padding: 10px; margin-bottom: 16px; }
.selected-listing img { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.selected-listing p { margin: 0; font-size: .9rem; }
.form-layout { display: grid; gap: 20px; padding-top: 10px; padding-bottom: 40px; }
@media (min-width: 980px) { .form-layout { grid-template-columns: 1fr 340px; align-items: start; } }

/* --- Formulaire rapide, barre fixe, feuille --------------------------------------------------- */
.quick-lead { display: grid; gap: 12px; }
.quick-title { font: 700 1.15rem var(--font-heading); margin: 0; }
.quick-sub { margin: 0; color: var(--muted); font-size: .93rem; }
.quick-label { font-weight: 600; font-size: .95rem; margin: 0 0 6px; display: block; }
.quick-phone-row { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 8px; }
.quick-listing { display: flex; gap: 6px; align-items: center; font-size: .9rem; background: var(--ocean-50); padding: 6px 10px; border-radius: 10px; margin: 0; }
.quick-consents { display: grid; gap: 8px; }
.quick-consents .checkbox { font-size: .84rem; }
.quick-legal { font-size: .8rem; color: var(--muted); margin: 0; }
.quick-panel { background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 253, 249, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(23, 50, 56, .08); }
.sticky-cta .sticky-text, .sticky-cta .sticky-price { display: flex; flex-direction: column; font-size: .82rem; color: var(--muted); line-height: 1.25; min-width: 0; }
.sticky-cta strong { color: var(--ink); font-size: .98rem; }
.sticky-cta .btn { flex: 0 1 auto; max-width: 64%; white-space: normal; line-height: 1.15; padding: 8px 16px; font-size: .95rem; }
.sticky-cta .sticky-text strong, .sticky-cta .sticky-price strong { overflow: hidden; text-overflow: ellipsis; }
body { padding-bottom: 76px; }
@media (min-width: 980px) { .sticky-cta { display: none; } body { padding-bottom: 0; } }
dialog.sheet { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; background: var(--shell); color: var(--ink); }
dialog.sheet::backdrop { background: rgba(10, 30, 34, .5); }
.sheet-inner { padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet-head h2 { margin: 0; }
.sheet-close { border: 0; background: var(--sand); border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
@media (min-width: 640px) { dialog.sheet { margin: auto; max-width: 480px; border-radius: 22px; } }

/* --- Comparaison --------------------------------------------------------------------------- */
.compare-bar { position: fixed; left: 50%; transform: translate(-50%, 260%); visibility: hidden; bottom: 88px; z-index: 35; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 18px; display: flex; align-items: center; gap: 12px; transition: transform .2s, visibility .2s; box-shadow: var(--shadow); }
.compare-bar.is-visible { transform: translate(-50%, 0); visibility: visible; }
@media (min-width: 980px) { .compare-bar { bottom: 22px; } }
.compare-table { width: 100%; border-collapse: collapse; background: var(--shell); border-radius: var(--radius); overflow: hidden; }
.compare-table th, .compare-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .93rem; min-width: 180px; }
.compare-table thead th { background: var(--ocean-50); }
.compare-table tbody th { color: var(--muted); font-weight: 600; min-width: 140px; }

/* --- Contenus éditoriaux ------------------------------------------------------------------ */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .94rem; background: var(--shell); }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--lagoon); background: var(--ocean-50); border-radius: 0 10px 10px 0; }
.faq-list details { background: var(--shell); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; margin-bottom: 10px; }
.faq-list summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--ocean); font-weight: 700; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list .answer { padding-bottom: 12px; }
.meta-line { font-size: .88rem; color: var(--muted); }
.sources-list { font-size: .85rem; color: var(--muted); word-break: break-word; }

/* --- Pied de page ------------------------------------------------------------------------- */
.site-footer { background: #12292e; color: #d7e6e4; padding: 36px 0 24px; margin-top: 30px; }
.site-footer h2 { color: #fff; font-size: 1.02rem; margin-bottom: 10px; }
.site-footer a { color: #d7e6e4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: span 2; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-grid > div:first-child { grid-column: auto; } }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 26px; padding-top: 16px; font-size: .84rem; color: #a9c2c0; }
.footer-bottom p { margin: 0 0 6px; }
.site-footer .small { color: #a9c2c0; }

/* --- Divers -------------------------------------------------------------------------------- */
.notice { background: var(--ocean-50); border: 1px solid #cfe5e1; border-radius: var(--radius-sm); padding: 12px 14px; font-size: .94rem; }
.done-card { text-align: center; max-width: 620px; margin: 30px auto; }
.reference { display: inline-block; font: 700 1.5rem var(--font-heading); letter-spacing: .06em; background: var(--ocean-50); border: 1px dashed var(--ocean); border-radius: 12px; padding: 10px 18px; margin: 10px 0; }
.credits-table img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; }
.agency-card { background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 6px; }
.agency-card h3 { margin: 0; }
.agency-card h3 a { color: var(--ink); text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.chip { font-size: .8rem; background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .sticky-cta, .compare-bar, dialog { display: none !important; } body { background: #fff; padding: 0; } }
.kv dt.kv-total, .kv dd.kv-total { border-top: 1px solid var(--line); padding-top: 8px; color: var(--ink); font-weight: 700; }
.mt { margin-top: 16px; }
.m0 { margin: 0; }
.mtn { margin-top: -6px; }
.card-badges.is-static { position: static; margin-bottom: 8px; }
.listing-media.is-rounded { border-radius: var(--radius); overflow: hidden; }
/* Les colonnes de grille ne débordent jamais du conteneur (tableaux, longues URL, galeries) */
.listing-layout > *, .results-layout > *, .form-layout > *, .card-grid > * { min-width: 0; }

/* Blocs repliables : un chevron indique qu'on peut les ouvrir */
.filters > summary::after, .filters-more > summary::after, details.group > summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin: -4px 4px 0 auto; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s;
}
.filters[open] > summary::after, .filters-more[open] > summary::after, details.group[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.filters-more > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.filters-more > summary::-webkit-details-marker { display: none; }
details.group { border: 1.5px dashed #c9bda6; border-radius: 14px; padding: 0 14px; margin: 0 0 16px; background: #fff; }
details.group[open] { border-style: solid; border-color: var(--line); padding-bottom: 4px; }
details.group > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 13px 0; margin: 0; cursor: pointer; color: var(--ocean-700); }
details.group > summary::-webkit-details-marker { display: none; }
/* Téléphone : le formulaire rapide empile pays et numéro ; la barre fixe se réduit au bouton */
@media (max-width: 479px) {
  .quick-phone-row { grid-template-columns: minmax(0, 1fr); }
  .sticky-cta .sticky-text, .sticky-cta .sticky-price span { display: none; }
  .sticky-cta .sticky-text + .btn { flex: 1 1 auto; max-width: none; }
  .sticky-cta .sticky-price { flex: 0 1 auto; }
}
