/*
 * L'Observatoire Immobilier — styles des pages /prix-immobilier/.
 * Reprend les jetons du thème (couleurs, rayons, polices) ; valeurs de repli si le thème est absent.
 * Mobile d'abord. Aucune ombre lourde, aucun dégradé décoratif.
 */

/* Les jetons valent aussi pour la recherche, placée dans le hero du thème (hors de .lco) : sans eux, son
   texte héritait du blanc du hero et devenait invisible sur le champ blanc. */
.lco, .lco-search {
	--o-blue: var(--lc-blue, #0061b2);
	--o-ink: var(--lc-ink, #0b2440);
	--o-soft: var(--lc-ink-soft, #4a5d70);
	--o-line: var(--lc-line, #dde6ef);
	--o-sky: var(--lc-sky, #eef4fa);
	--o-paper: #fff;
	--o-up: #0a7a55;
	--o-down: #b4232c;
	--o-neuf: #62d2af;
	--o-r: var(--lc-radius, 20px);
	--o-rs: var(--lc-radius-s, 14px);
	color: var(--o-ink);
	font-variant-numeric: tabular-nums;
}
.lco [hidden] { display: none !important; }

/* Titres de section */
.lco-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.lco-head .h2 em, .lco .h2 em { font-family: var(--lc-font-display, Georgia, serif); font-style: italic; font-weight: 400; }
.lco-head__lead { margin-top: 16px; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; color: var(--o-soft); max-width: 60ch; }
.lco-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }

/* Bandeau de date dans le hero */
.lco-stamp {
	display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; justify-self: start; width: fit-content; max-width: 100%;
	padding: 8px 14px; border-radius: 999px;
	background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28);
	color: #fff; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.01em;
}
.lco-stamp__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lc-mint, #62d2af); box-shadow: 0 0 0 4px rgba(98, 210, 175, 0.25); }

/* Chiffres clés */
.lco-kpis { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lco-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .lco-kpis { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.lco-kpi {
	position: relative; display: flex; flex-direction: column; gap: 8px;
	padding: clamp(20px, 2.4vw, 28px); border-radius: var(--o-r);
	background: var(--o-paper); border: 1px solid var(--o-line);
}
.lco-kpi--neuf { background: linear-gradient(0deg, var(--o-paper), var(--o-paper)) padding-box; border-color: color-mix(in srgb, var(--o-neuf) 55%, var(--o-line)); }
.lco-kpi--neuf .lco-kpi__t::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 2px; background: var(--o-neuf); vertical-align: 1px; }
.lco-kpi__t { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--o-soft); }
.lco-kpi__v { font-size: clamp(2.2rem, 4.4vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--o-ink); }
.lco-kpi__v span { font-size: 0.42em; font-weight: 600; letter-spacing: 0; color: var(--o-soft); }
.lco-kpi__iqr { font-size: 0.9rem; line-height: 1.45; color: var(--o-soft); }
.lco-kpi__iqr strong { color: var(--o-ink); font-weight: 600; white-space: nowrap; }
.lco-kpi__meta { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--o-line); font-size: 0.82rem; color: var(--o-soft); }
.lco-kpi__vide { font-size: 1rem; line-height: 1.45; color: var(--o-ink); font-weight: 600; }
.lco-kpi--vide { background: var(--o-sky); border-style: dashed; }
.lco-iqr { height: 6px; border-radius: 6px; background: var(--o-sky); position: relative; overflow: hidden; }
.lco-iqr span { position: absolute; left: 25%; right: 25%; top: 0; bottom: 0; border-radius: 6px; background: color-mix(in srgb, var(--o-blue) 35%, transparent); }
.lco-iqr span::after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: var(--o-blue); }
.lco-kpi--neuf .lco-iqr span { background: color-mix(in srgb, var(--o-neuf) 55%, transparent); }

.lco-var { display: inline-flex; align-items: baseline; gap: 6px; align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 0.88rem; font-weight: 700; }
.lco-var small { font-weight: 600; } /* pas d'opacité : contraste ≥ 4,5:1 (accessibilité) */
.lco-var--up { color: #08694a; background: rgba(10, 122, 85, 0.09); }
.lco-var--down { color: var(--o-down); background: rgba(180, 35, 44, 0.08); }
.lco-var--flat { color: var(--o-soft); background: var(--o-sky); }
.lco-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 6px; background: var(--o-sky); color: var(--o-ink); font-weight: 600; font-size: 0.78rem; cursor: help; }

.lco-note { margin-top: 18px; font-size: 0.86rem; line-height: 1.55; color: var(--o-soft); max-width: 80ch; }
.lco-note a, .lco a.link { color: var(--o-blue); text-decoration: underline; text-underline-offset: 3px; }

/* Graphique */
.lco-chart { padding: clamp(16px, 2.4vw, 28px); border-radius: var(--o-r); background: var(--o-paper); border: 1px solid var(--o-line); }
.lco-chart__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.lco-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--o-sky); }
.lco-seg button {
	appearance: none; border: 0; background: transparent; color: var(--o-soft);
	min-height: 36px; padding: 6px 14px; border-radius: 999px; font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.lco-seg button[aria-pressed='true'] { background: var(--o-paper); color: var(--o-ink); box-shadow: 0 1px 2px rgba(4, 31, 58, 0.12); }
.lco-seg button:focus-visible, .lco-chart__plot:focus-visible { outline: 2px solid var(--o-blue); outline-offset: 2px; }
.lco-chart__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; font-size: 0.84rem; color: var(--o-soft); }
.lco-chart__legend i { display: inline-block; width: 22px; height: 0; margin-right: 6px; vertical-align: middle; border-top: 3px solid var(--o-blue); }
.lco-chart__legend i.is-neuf { border-top: 3px dashed #1f9c76; }
.lco-chart__legend i.is-band { height: 10px; border: 0; border-radius: 3px; background: color-mix(in srgb, var(--o-blue) 14%, transparent); }
.lco-chart__plot { position: relative; outline: none; }
.lco-chart__plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.lco-chart__plot .ax { stroke: var(--o-line); stroke-width: 1; }
.lco-chart__plot .ax-t { fill: var(--o-soft); font-size: 11px; }
.lco-chart__plot .band { fill: color-mix(in srgb, var(--o-blue) 12%, transparent); }
.lco-chart__plot .ln { fill: none; stroke: var(--o-blue); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.lco-chart__plot .ln--neuf { stroke: #1f9c76; stroke-dasharray: 6 5; }
.lco-chart__plot .pt { fill: var(--o-paper); stroke: var(--o-blue); stroke-width: 2; }
.lco-chart__plot .pt--neuf { stroke: #1f9c76; }
.lco-chart__plot .gap { fill: var(--o-soft); font-size: 10px; }
.lco-chart__plot .cur { stroke: var(--o-ink); stroke-width: 1; stroke-dasharray: 3 3; }
.lco-tip {
	position: absolute; z-index: 2; pointer-events: none; min-width: 170px; padding: 10px 12px; border-radius: 12px;
	background: var(--o-ink); color: #fff; font-size: 0.82rem; line-height: 1.45; transform: translate(-50%, calc(-100% - 12px));
}
.lco-tip b { display: block; font-size: 0.78rem; opacity: 0.75; font-weight: 600; }
.lco-chart__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Tableau de données */
.lco-data { margin-top: 18px; }
.lco-data summary { cursor: pointer; font-weight: 600; color: var(--o-blue); min-height: 44px; display: flex; align-items: center; }
.lco-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--o-rs); border: 1px solid var(--o-line); background: var(--o-paper); }
.lco-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.lco-table caption { text-align: left; padding: 12px 14px; font-size: 0.84rem; color: var(--o-soft); caption-side: top; }
.lco-table th, .lco-table td { padding: 10px 14px; border-top: 1px solid var(--o-line); text-align: right; white-space: nowrap; }
.lco-table th:first-child { text-align: left; font-weight: 600; }
.lco-table thead th { font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--o-soft); border-top: 0; }
.lco-table a { color: var(--o-blue); font-weight: 600; }
.lco-table small { color: var(--o-soft); font-weight: 400; }
.lco-table--compact th, .lco-table--compact td { padding: 9px 10px; }
.lco-table tr.is-current { background: var(--o-sky); }

/* Simulateur */
.lco-sim__grid { display: grid; gap: clamp(24px, 4vw, 56px); }
@media (min-width: 980px) { .lco-sim__grid { grid-template-columns: 1fr 1.05fr; align-items: start; } }
.lco-sim__card { display: grid; gap: 16px; padding: clamp(20px, 2.6vw, 32px); border-radius: var(--o-r); background: var(--o-sky); }
.lco-field { display: grid; gap: 6px; }
.lco-field label { font-size: 0.86rem; font-weight: 600; color: var(--o-ink); }
.lco-field select, .lco-input input {
	width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--o-line);
	background: var(--o-paper); color: var(--o-ink); font: inherit; font-size: 16px; /* 16px : pas de zoom iOS */
}
.lco-input { position: relative; }
.lco-input input { padding-right: 38px; font-weight: 700; font-size: 1.15rem; }
.lco-input span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--o-soft); font-weight: 600; }
.lco-field select:focus-visible, .lco-input input:focus-visible, .lco-field--check input:focus-visible { outline: 2px solid var(--o-blue); outline-offset: 2px; }
.lco-field--check { display: flex; gap: 10px; align-items: flex-start; }
.lco-field--check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--o-blue); flex: none; }
.lco-field--check label { font-weight: 500; line-height: 1.4; }
.lco-sim__out { padding: 20px; border-radius: var(--o-rs); background: var(--o-paper); }
.lco-sim__lab { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--o-soft); }
.lco-sim__v { margin-top: 6px; font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--o-blue); }
.lco-sim__range { margin-top: 10px; font-size: 0.92rem; color: var(--o-ink); }
.lco-sim__calc { margin-top: 6px; font-size: 0.82rem; color: var(--o-soft); }
.lco-sim .lco-note { margin-top: 0; }
.lco-sim__cta { font-weight: 600; }

/* Programmes */
.lco-cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .lco-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .lco-cards { grid-template-columns: repeat(3, 1fr); } }
.lco-card-km { position: relative; }
.lco-km { position: absolute; top: 14px; right: 14px; z-index: 3; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--o-ink); font-size: 0.8rem; font-weight: 700; }

/* Analyse */
.lco-analyse__grid { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 1000px) { .lco-analyse__grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.lco-prose { margin-top: 24px; display: grid; gap: 16px; font-size: 1.04rem; line-height: 1.65; max-width: 66ch; }
.lco-voisins { padding: clamp(18px, 2.4vw, 26px); border-radius: var(--o-r); border: 1px solid var(--o-line); background: var(--o-paper); }
.lco-voisins__t { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.lco-voisins .lco-table th, .lco-voisins .lco-table td { white-space: normal; }
.lco-voisins .lco-table td { white-space: nowrap; }

/* Contact */
.lco-contact { background: var(--lc-night, #041f3a); color: #fff; }
.lco-contact .h2, .lco-contact .eyebrow { color: #fff; }
.lco-contact .lco-head__lead { color: rgba(255, 255, 255, 0.82); }
.lco-contact__grid { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 1000px) { .lco-contact__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.lco-contact .lco-head__lead { margin-top: 18px; }
.lco-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lco-contact__card { padding: clamp(20px, 2.6vw, 32px); border-radius: var(--o-r); background: #fff; color: var(--o-ink); }
.lco-contact__t { font-size: 1.3rem; font-weight: 700; }
.lco-contact__sub { margin: 6px 0 18px; color: var(--o-soft); font-size: 0.95rem; }

/* Méthode */
.lco-methode { border-top: 1px solid var(--o-line); }
.lco-methode__t { font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; }
.lco-methode__list { display: grid; gap: 10px; max-width: 90ch; padding-left: 1.1em; font-size: 0.92rem; line-height: 1.6; color: var(--o-soft); }
.lco-methode__list strong { color: var(--o-ink); }
.lco-methode p { margin-top: 14px; }

/* ---------- Accueil de l'observatoire ---------- */
.lco-search { position: relative; max-width: 560px; margin-top: 26px; }
.lco-search__in {
	width: 100%; min-height: 56px; padding: 12px 52px 12px 20px; border-radius: 999px; border: 0;
	background: #fff; color: var(--o-ink); font: inherit; font-size: 16px; box-shadow: 0 10px 30px -14px rgba(4, 31, 58, 0.5);
}
.lco-search__in:focus-visible { outline: 3px solid var(--lc-mint, #62d2af); outline-offset: 2px; }
.lco-search__ico { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--o-blue); pointer-events: none; }
.lco-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lco-suggest {
	position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; margin: 0; padding: 6px; list-style: none;
	border-radius: 18px; background: #fff; color: var(--o-ink); box-shadow: 0 18px 40px -16px rgba(4, 31, 58, 0.45); max-height: 320px; overflow-y: auto;
}
.lco-suggest li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; cursor: pointer; }
.lco-suggest li[aria-selected='true'], .lco-suggest li:hover { background: var(--o-sky); }
.lco-suggest small { color: var(--o-soft); white-space: nowrap; }
.lco-suggest .is-empty { cursor: default; color: var(--o-soft); }

.lco-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.lco-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lco-chip {
	appearance: none; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--o-line);
	background: var(--o-paper); color: var(--o-ink); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
}
.lco-chip[aria-pressed='true'] { background: var(--o-ink); border-color: var(--o-ink); color: #fff; }
.lco-chip:focus-visible { outline: 2px solid var(--o-blue); outline-offset: 2px; }

.lco-villes { display: grid; gap: 12px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 680px) { .lco-villes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .lco-villes { grid-template-columns: repeat(3, 1fr); } }
.lco-ville {
	display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: end; height: 100%;
	padding: 18px 20px; border-radius: var(--o-rs); border: 1px solid var(--o-line); background: var(--o-paper);
	color: inherit; text-decoration: none; transition: border-color 0.2s, transform 0.25s var(--lc-ease, ease);
}
.lco-ville:hover { border-color: var(--o-blue); transform: translateY(-2px); }
.lco-ville:focus-visible { outline: 2px solid var(--o-blue); outline-offset: 2px; }
.lco-ville__nom { font-weight: 700; font-size: 1.05rem; }
.lco-ville__dep { grid-column: 1; font-size: 0.8rem; color: var(--o-soft); }
.lco-ville__prix { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
.lco-ville__prix strong { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.lco-ville__prix small { display: block; font-size: 0.78rem; color: var(--o-soft); }
.lco-ville__prix .lco-ville__var { font-size: 0.78rem; font-weight: 700; }
.lco-ville__var.is-up { color: var(--o-up); }
.lco-ville__var.is-down { color: var(--o-down); }
.lco-ville__vide { font-size: 0.82rem; color: var(--o-soft); }

.lco-sort th button { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.lco-sort th button::after { content: ' ↕'; opacity: 0.4; }
.lco-sort th[aria-sort='ascending'] button::after { content: ' ↑'; opacity: 1; }
.lco-sort th[aria-sort='descending'] button::after { content: ' ↓'; opacity: 1; }

.lco-defs { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 900px) { .lco-defs { grid-template-columns: repeat(4, 1fr); } }
.lco-def { padding: 20px; border-radius: var(--o-rs); background: var(--o-paper); border: 1px solid var(--o-line); }
.lco-def h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 8px; }
.lco-def p { font-size: 0.9rem; line-height: 1.55; color: var(--o-soft); }
.lco-def--oui { border-color: color-mix(in srgb, var(--o-blue) 40%, var(--o-line)); }

.lco-meth { display: grid; gap: 22px; max-width: 900px; }
.lco-meth h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.lco-meth p, .lco-meth li { font-size: 0.96rem; line-height: 1.65; color: var(--o-soft); }
.lco-meth ul { padding-left: 1.1em; display: grid; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
	.lco *, .lco *::before, .lco *::after { transition: none !important; animation: none !important; }
}

/* Corrections de contraste et de formulaire dans la bande de contact */
.lco-contact .h2 em { color: var(--lc-blue-soft, #9ccbf2); }
.lco-contact__card .form { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .lco-contact__card .form { grid-template-columns: 1fr 1fr; } }
.lco-contact__card .field label { color: var(--o-ink); }
.lco-contact__card .field textarea { min-height: 96px; }

/* Crédit photo du hero (règles du thème reprises : elles vivent dans catalogue.css, non chargé ici) */
.lco-page .page-hero__credit {
	position: absolute; z-index: 2; right: var(--lc-gutter, 16px); bottom: 70px; max-width: min(520px, 70vw); margin: 0;
	font-size: 12px; line-height: 1.4; text-align: right; color: rgba(255, 255, 255, 0.82);
}
.lco-page .page-hero__credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 680px) {
	.lco-page .page-hero__credit { left: var(--lc-gutter, 16px); bottom: 46px; text-align: left; max-width: none; font-size: 11px; }
	.lco-page .page-hero:has(.page-hero__credit) .page-hero__inner { padding-bottom: 96px; }
}

/* ---------- Carte des prix ---------- */
.lco-map__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 12px; }
.lco-map__check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.lco-map__check input { width: 18px; height: 18px; accent-color: var(--o-blue); }
.lco-map__full {
	margin-left: auto; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--o-line);
	background: var(--o-paper); color: var(--o-ink); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
}
.lco-map__full:focus-visible, .lco-map__check input:focus-visible { outline: 2px solid var(--o-blue); outline-offset: 2px; }
.lco-map__frame { position: relative; border-radius: var(--o-r); overflow: hidden; border: 1px solid var(--o-line); background: var(--o-sky); }
/* Hauteur réservée dès le départ : aucun saut de mise en page quand Leaflet arrive. */
.lco-map__canvas { height: clamp(380px, 62vh, 620px); background: var(--o-sky); }
.lco-map__state { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; text-align: center; color: var(--o-soft); font-weight: 600; }
.lco-map__state.is-error { color: var(--o-down); }
.lco-map__hint {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 500; margin: 0; padding: 10px 16px; border-radius: 999px;
	background: rgba(11, 36, 64, 0.82); color: #fff; font-size: 0.9rem; font-weight: 600; pointer-events: none; white-space: nowrap;
}
.lco-map__legend { margin-top: 12px; font-size: 0.82rem; color: var(--o-soft); }
.lco-map__lt { display: block; margin-bottom: 6px; font-weight: 600; color: var(--o-ink); }
.lco-map__scale { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.lco-map__scale span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lco-map__scale i { width: 16px; height: 12px; border-radius: 3px; border: 1px solid rgba(11, 36, 64, 0.15); }
.lco-map__scale i.is-na { background: repeating-linear-gradient(45deg, #c9d3dc 0 3px, #eef2f5 3px 6px); }

/* Étiquettes de prix sur chaque ville (non-couleur : le prix est écrit) */
.lco .leaflet-tooltip.lco-lab {
	padding: 3px 7px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 3px rgba(4, 31, 58, 0.25);
	color: var(--o-ink); font: 600 11px/1.25 var(--lc-font, system-ui, sans-serif); text-align: center; white-space: nowrap;
}
.lco .leaflet-tooltip.lco-lab::before { display: none; }
.lco .leaflet-tooltip.lco-lab b { display: block; font-weight: 700; font-size: 11px; }
.lco .is-far .leaflet-tooltip.lco-lab { display: none; }
.lco .leaflet-container { font-family: var(--lc-font, system-ui, sans-serif); }
.lco .leaflet-popup-content-wrapper { border-radius: 16px; }
.lco-pop { display: grid; gap: 6px; min-width: 200px; font-size: 0.86rem; color: var(--o-ink); }
.lco-pop strong { font-size: 1rem; }
.lco-pop p { margin: 0 !important; display: grid; grid-template-columns: 1fr auto; gap: 0 10px; }
.lco-pop p span { color: var(--o-soft); }
.lco-pop p small { grid-column: 1 / -1; color: var(--o-soft); }
.lco-pop small { color: var(--o-soft); }
.lco-pop__go, .lco-pop__alt { display: block; margin-top: 4px; font-weight: 700; color: var(--o-blue) !important; }
.lco-pop__alt { font-weight: 600; }

/* Plein écran */
.lco-map.is-full { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; padding: 12px; background: var(--o-paper); }
.lco-map.is-full .lco-map__frame { flex: 1; }
.lco-map.is-full .lco-map__canvas { height: 100%; }
.lco-map.is-full .lco-map__legend { max-height: 30vh; overflow: auto; }
html.lco-noscroll, html.lco-noscroll body { overflow: hidden; }
@media (min-width: 861px) { .lco-map:not(.is-full) .lco-map__full { display: none; } }
@media (max-width: 560px) { .lco-map__full { margin-left: 0; } }

/* ---------- Comparateur ---------- */
.lco-cmp__form { display: grid; gap: 12px; align-items: end; grid-template-columns: 1fr; padding: clamp(16px, 2.4vw, 24px); border-radius: var(--o-r); background: var(--o-sky); }
@media (min-width: 700px) { .lco-cmp__form { grid-template-columns: 1fr auto 1fr auto; } }
.lco-cmp__swap {
	justify-self: center; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--o-line);
	background: var(--o-paper); color: var(--o-blue); cursor: pointer;
}
.lco-cmp__swap svg { width: 20px; height: 20px; }
@media (max-width: 699px) { .lco-cmp__swap svg { transform: rotate(90deg); } }
.lco-cmp__go { min-height: 48px; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--o-blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.lco-cmp__swap:focus-visible, .lco-cmp__go:focus-visible { outline: 2px solid var(--o-blue); outline-offset: 2px; }
.lco-cmp__err { margin-top: 12px; color: var(--o-down); font-weight: 600; }
[data-cmp-out] { transition: opacity 0.2s; }
[data-cmp-out].is-loading { opacity: 0.45; }

.lco-vs { margin-top: clamp(28px, 4vw, 48px); }
.lco-vs__titre { font-family: var(--lc-font-display, Georgia, serif); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.1; margin-bottom: 20px; }
.lco-vs__titre span { font-style: italic; color: var(--o-blue); }
.lco-vs__t th, .lco-vs__t td { white-space: normal; vertical-align: top; }
.lco-vs__t thead th { text-transform: none; letter-spacing: 0; font-size: 1.05rem; color: var(--o-ink); text-align: left; width: 36%; }
.lco-vs__t thead th:first-child { width: 28%; }
.lco-vs__t thead th small { display: block; font-size: 0.78rem; font-weight: 500; color: var(--o-soft); }
.lco-vs__t td { text-align: left; }
.lco-vs__t td strong { font-size: 1.1rem; }
.lco-vs__t td small, .lco-vs__t th small { display: block; font-size: 0.78rem; color: var(--o-soft); font-weight: 400; }
.lco-vs__grp th { background: var(--o-sky); font-size: 0.76rem !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--o-soft) !important; }
.lco-vs__var { margin-left: 6px; font-size: 0.82rem; font-weight: 700; }
.lco-vs__var.is-up { color: var(--o-up); }
.lco-vs__var.is-down { color: var(--o-down); }
.lco-vs__na { color: var(--o-soft); font-size: 0.88rem; }
.lco-vs__lignes { display: flex; flex-wrap: wrap; gap: 4px; }
.lco-vs__lignes span { padding: 2px 8px; border-radius: 6px; background: var(--o-sky); font-size: 0.78rem; font-weight: 600; }
.lco-vs__ecarts { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-weight: 600; }
.lco-vs__chart { margin-top: 24px; }
.lco-vs__ct { font-size: 1rem; font-weight: 700; align-self: center; }
.lco-chart__legend i.is-b { border-top: 3px dashed #1f9c76; }
.lco-chart__plot .ln--b { stroke: #1f9c76; stroke-dasharray: 7 5; }
.lco-chart__plot .pt--b { stroke: #1f9c76; }
.lco-vs__liens { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-weight: 600; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Téléphone : lignes empilées, chaque valeur précédée du nom de sa ville (aucun défilement horizontal) */
@media (max-width: 640px) {
	.lco-vs__wrap { overflow: visible; border: 0; background: transparent; }
	.lco-vs__t, .lco-vs__t tbody, .lco-vs__t tr, .lco-vs__t th, .lco-vs__t td { display: block; width: auto !important; }
	.lco-vs__t thead { display: none; }
	.lco-vs__t caption { padding: 0 0 10px; }
	.lco-vs__t tbody tr { padding: 12px 14px; border: 1px solid var(--o-line); border-radius: var(--o-rs); background: var(--o-paper); margin-bottom: 8px; }
	.lco-vs__t tbody tr.lco-vs__grp { padding: 14px 0 4px; border: 0; background: transparent; margin: 0; }
	.lco-vs__grp th { background: transparent; padding: 0; }
	.lco-vs__t th, .lco-vs__t td { border: 0; padding: 0; }
	.lco-vs__t tbody th[scope='row'] { margin-bottom: 8px; }
	.lco-vs__t td { display: grid; grid-template-columns: minmax(0, 40%) 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--o-line); }
	.lco-vs__t td::before { content: attr(data-label); font-size: 0.82rem; font-weight: 700; color: var(--o-soft); }
}
.lco-voisins__cmp { margin-top: 12px; font-weight: 600; }
@media (max-width: 640px) { .lco-vs__t caption { display: block; width: auto; } }
/* Fond de carte en gris : les couleurs de prix ressortent (même procédé que la carte du catalogue). */
.lco-map .leaflet-tile-pane { filter: grayscale(1) contrast(0.92) brightness(1.04); }
/* Pastilles de prix (remplacent l'étiquette blanche) */
.lco .leaflet-tooltip.lco-lab { padding: 0; background: transparent; box-shadow: none; }
.lco-pill {
	display: block; padding: 4px 9px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 2px 6px rgba(4, 31, 58, 0.28); font-weight: 600; font-size: 11px; line-height: 1.25; text-align: center;
}
.lco-pill b { display: block; font-size: 11px; font-weight: 700; }
.lco-pill.is-na { background: repeating-linear-gradient(45deg, #dfe6ec 0 4px, #f4f7f9 4px 8px); color: #0b2440; }

/* Recherche du hero : couleurs explicites (le thème stylise les champs et le hero impose du blanc) */
.lco-search .lco-search__in, .lco-search .lco-search__in:focus {
	-webkit-appearance: none; appearance: none; color: #0b2440; -webkit-text-fill-color: #0b2440; caret-color: #0061b2;
	background: #fff; border: 0;
}
.lco-search .lco-search__in::placeholder { color: #5f7183; -webkit-text-fill-color: #5f7183; opacity: 1; }
.lco-search .lco-search__in::-webkit-search-cancel-button { -webkit-appearance: none; }
.lco-search .lco-search__ico { color: #0061b2; }
.lco-search .lco-suggest, .lco-search .lco-suggest li { color: #0b2440; }
.lco-search .lco-suggest small { color: #4a5d70; }
.lco-search .lco-suggest li[aria-selected='true'], .lco-search .lco-suggest li:hover { background: #eef4fa; }
/* Liste ouverte vers le haut quand le bas du hero manque de place (le hero masque ce qui déborde) */
.lco-search .lco-suggest.is-up { top: auto; bottom: calc(100% + 8px); }

/* Pour aller plus loin */
.lco-articles { border-top: 1px solid var(--o-line); }
.lco-articles__t { font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; }
.lco-articles__l { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .lco-articles__l { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .lco-articles__l { grid-template-columns: repeat(4, 1fr); } }
.lco-articles__l a { display: grid; gap: 6px; height: 100%; padding: 16px 18px; border: 1px solid var(--o-line); border-radius: var(--o-rs); color: var(--o-ink); text-decoration: none; transition: border-color 0.2s; }
.lco-articles__l a:hover, .lco-articles__l a:focus-visible { border-color: var(--o-blue); }
.lco-articles__l a:focus-visible { outline: 2px solid var(--o-blue); outline-offset: 2px; }
.lco-articles__l span { font-weight: 700; line-height: 1.3; }
.lco-articles__l small { color: var(--o-soft); font-size: 0.86rem; line-height: 1.45; }

/* ---------- En bref (réponse directe) ---------- */
.lco-bref { margin: 0 0 clamp(24px, 3vw, 36px); padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.6vw, 30px); border-left: 4px solid var(--o-blue); border-radius: 0 var(--o-rs) var(--o-rs) 0; background: var(--o-sky); max-width: 900px; }
.lco-bref__t { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--o-blue); }
.lco-bref__txt { margin-top: 6px; font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.6; color: var(--o-ink); }
.lco-bref__maj { margin-top: 10px; font-size: 0.82rem; line-height: 1.5; color: var(--o-soft); }

/* ---------- Questions fréquentes ---------- */
.lco-faq { background: var(--lc-sand, #f7f5f0); }
.lco-faq__grid { display: grid; gap: clamp(20px, 3vw, 48px); }
@media (min-width: 1000px) { .lco-faq__grid { grid-template-columns: 0.8fr 1.4fr; align-items: start; } }
.lco-faq__list { display: grid; gap: 0; border-top: 1px solid var(--o-line); }
.lco-faq__item { padding: clamp(16px, 2vw, 22px) 0; border-bottom: 1px solid var(--o-line); }
.lco-faq__item h3 { font-size: clamp(1.02rem, 1.3vw, 1.12rem); font-weight: 700; line-height: 1.35; color: var(--o-ink); }
.lco-faq__item p { margin-top: 8px; font-size: 0.98rem; line-height: 1.65; color: var(--o-soft); max-width: 70ch; }
.lco-faq__item strong { color: var(--o-ink); font-weight: 700; }
.lco-faq__item a { color: var(--o-blue); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* Liste des villes groupée par département (accueil) */
.lco-groupe + .lco-groupe { margin-top: clamp(24px, 3vw, 36px); }
.lco-groupe__t { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; font-size: 1.05rem; font-weight: 700; color: var(--o-ink); }
.lco-groupe__t a { font-size: 0.88rem; font-weight: 600; color: var(--o-blue); text-decoration: underline; text-underline-offset: 3px; }
.lco-groupe__t h3 { font-size: 1.05rem; font-weight: 700; color: var(--o-ink); }
