/* Agent Immobilier : systeme de design v3 (lot S5, 13/11/2026).
   Un seul accent (ambre), une paire de statut (vert / rouge), deux familles de police.
   Toute couleur passe par un jeton : aucune valeur en dur dans les pages. */

/* 1. Jetons ------------------------------------------------------------ */
:root {
  --police-titre: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --police-texte: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* echelle typographique : 6 tailles, rien sous 12 px */
  --t-12: .75rem;
  --t-14: .875rem;
  --t-16: 1rem;
  --t-20: 1.25rem;
  --t-28: clamp(1.5rem, 1.2rem + 1.1vw, 1.875rem);
  --t-heros: clamp(2.5rem, 1.5rem + 4vw, 4.25rem);

  /* espacements */
  --e-1: 4px; --e-2: 8px; --e-3: 12px; --e-4: 16px; --e-5: 20px;
  --e-6: 24px; --e-7: 32px; --e-8: 48px; --e-9: 72px;
  --marge: 20px;            /* marge laterale mobile : jamais moins */
  --page: 1360px;

  /* rayons : controles, cartes, pastilles */
  --r-1: 8px; --r-2: 14px; --r-rond: 999px;

  --h-entete: 64px;
  --duree: .18s;
  --courbe: cubic-bezier(.2, .7, .2, 1);

  /* couleurs, theme clair */
  --fond: #f5f4f1;
  --surface: #ffffff;
  --surface-2: #eceae5;
  --trait: #dddad2;
  --encre: #15161a;
  --encre-2: #57554f;
  --accent: #f5a524;
  --accent-presse: #e3921a;
  --sur-accent: #1b1405;
  --accent-texte: #8a5600;
  --accent-doux: #fcefd6;
  --plus: #17703f;
  --plus-doux: #e2f3e9;
  --moins: #b3261e;
  --moins-doux: #fbe6e4;
  --voile: rgba(21, 22, 26, .55);
  --ombre-1: 0 1px 2px rgba(21, 22, 26, .06), 0 2px 8px rgba(21, 22, 26, .05);
  --ombre-2: 0 2px 6px rgba(21, 22, 26, .08), 0 18px 44px rgba(21, 22, 26, .14);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --fond: #0e0f11;
  --surface: #17181c;
  --surface-2: #202227;
  --trait: #2d2f36;
  --encre: #f3f2ee;
  --encre-2: #a9a7a0;
  --accent: #f5a524;
  --accent-presse: #ffb84a;
  --sur-accent: #1b1405;
  --accent-texte: #f7b955;
  --accent-doux: #33270f;
  --plus: #62d394;
  --plus-doux: #12301f;
  --moins: #ff8f85;
  --moins-doux: #3a1614;
  --voile: rgba(0, 0, 0, .62);
  --ombre-1: 0 1px 2px rgba(0, 0, 0, .4);
  --ombre-2: 0 2px 6px rgba(0, 0, 0, .4), 0 18px 44px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --marge: 32px; } }
@media (min-width: 1200px) { :root { --marge: 48px; } }

/* 2. Socle ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font: 400 var(--t-16)/1.5 var(--police-texte);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--police-titre); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: var(--t-28); }
h2 { font-size: var(--t-20); }
h3 { font-size: var(--t-16); }
p { text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-texte); outline-offset: 2px; border-radius: 4px; }
.k-page { width: min(var(--page), 100% - 2 * var(--marge)); margin-inline: auto; }
.k-discret { color: var(--encre-2); }
.k-petit { font-size: var(--t-14); }
.k-lecture { max-width: 66ch; }
.k-lien { color: var(--accent-texte); font-weight: 600; text-decoration: none; }
.k-lien:hover { text-decoration: underline; text-underline-offset: 3px; }
.k-fleche::after { content: "\2192"; display: inline-block; margin-left: 6px; transition: transform var(--duree) var(--courbe); }
.k-fleche:hover::after { transform: translateX(3px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.k-evitement { position: absolute; left: var(--marge); top: -60px; z-index: 50; background: var(--encre); color: var(--fond); padding: 10px 14px; border-radius: var(--r-1); }
.k-evitement:focus { top: 10px; }
.k-section { padding-block: var(--e-8); }
.k-section + .k-section { padding-top: 0; }
.k-titre-rang { display: flex; align-items: baseline; justify-content: space-between; gap: var(--e-4); margin-bottom: var(--e-6); flex-wrap: wrap; }

/* 3. En-tete : tout sur une ligne --------------------------------------- */
.k-entete { position: sticky; top: 0; z-index: 30; height: var(--h-entete); background: color-mix(in srgb, var(--fond) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--trait); }
.k-entete-rang { height: 100%; display: flex; align-items: center; gap: var(--e-6); white-space: nowrap; }
.k-logo { display: inline-flex; align-items: center; gap: 10px; font: 700 var(--t-16)/1 var(--police-titre); text-decoration: none; letter-spacing: -.01em; flex: none; }
.k-logo-glyphe { width: 30px; height: 30px; border-radius: var(--r-1); background: var(--accent); color: var(--sur-accent); display: grid; place-items: center; }
.k-logo em { font-style: normal; color: var(--accent-texte); }
.k-menu { display: flex; align-items: center; gap: var(--e-1); margin-right: auto; }
.k-menu a { padding: 8px 12px; border-radius: var(--r-1); text-decoration: none; font-weight: 500; color: var(--encre-2); transition: color var(--duree), background var(--duree); }
.k-menu a:hover { color: var(--encre); background: var(--surface-2); }
.k-menu a[aria-current="page"] { color: var(--encre); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.k-entete-fin { display: flex; align-items: center; gap: var(--e-2); margin-left: auto; }
.k-entete-fin .k-menu { margin-right: 0; }
.k-icone-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: var(--r-1); cursor: pointer; color: var(--encre-2); transition: background var(--duree), color var(--duree); }
.k-icone-btn:hover { background: var(--surface-2); color: var(--encre); }
.k-burger { display: none; }
.k-tiroir { display: none; }
@media (max-width: 1079px) {
  .k-menu, .k-entete-fin .k-cache-mobile { display: none; }
  .k-burger { display: grid; }
  .k-tiroir { position: fixed; inset: var(--h-entete) 0 0 0; z-index: 29; background: var(--fond); padding: var(--e-6) var(--marge); overflow: auto; }
  .k-tiroir[data-ouvert] { display: block; }
  .k-tiroir a { display: block; padding: 14px 0; font: 600 var(--t-20)/1.2 var(--police-titre); text-decoration: none; border-bottom: 1px solid var(--trait); }
  .k-tiroir .k-btn { display: flex; padding: 0 22px; margin-top: var(--e-6); width: 100%; border-bottom: 0; font: 600 var(--t-16)/1 var(--police-texte); }
}

/* 4. Bouton -------------------------------------------------------------- */
.k-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r-1); background: var(--accent); color: var(--sur-accent); font: 600 var(--t-16)/1 var(--police-texte); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background var(--duree), transform var(--duree) var(--courbe), border-color var(--duree); }
.k-btn:hover { background: var(--accent-presse); }
.k-btn:active { transform: translateY(1px) scale(.99); }
.k-btn--second { background: transparent; color: var(--encre); border-color: var(--trait); }
.k-btn--second:hover { background: var(--surface-2); border-color: var(--encre-2); }
.k-btn--petit { min-height: 44px; padding: 0 16px; font-size: var(--t-14); }
.k-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* 5. Champ de recherche et controles ------------------------------------- */
.k-recherche { display: flex; align-items: center; gap: var(--e-2); background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-2); padding: 6px 6px 6px 16px; transition: border-color var(--duree), box-shadow var(--duree); }
.k-recherche:focus-within { border-color: var(--encre); box-shadow: 0 0 0 4px var(--accent-doux); }
.k-recherche svg { flex: none; color: var(--encre-2); }
.k-recherche input { flex: 1; min-width: 0; height: 48px; border: 0; background: none; outline: 0; font-size: var(--t-16); }
.k-recherche input::placeholder { color: var(--encre-2); }
@media (max-width: 479px) {
  .k-recherche { flex-wrap: wrap; padding: 6px; }
  .k-recherche svg { margin-left: 10px; }
  .k-recherche input { flex-basis: calc(100% - 40px); }
  .k-recherche .k-btn { width: 100%; }
}
.k-bascule { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: var(--r-1); }
.k-bascule label { position: relative; cursor: pointer; }
.k-bascule input { position: absolute; opacity: 0; inset: 0; }
.k-bascule span { display: block; padding: 9px 16px; border-radius: 6px; font-weight: 600; font-size: var(--t-14); color: var(--encre-2); transition: background var(--duree), color var(--duree); }
.k-bascule input:checked + span { background: var(--surface); color: var(--encre); box-shadow: var(--ombre-1); }
.k-bascule input:focus-visible + span { outline: 2px solid var(--accent-texte); outline-offset: 2px; }
.k-champ { display: grid; gap: 6px; font-size: var(--t-14); color: var(--encre-2); font-weight: 500; }
.k-champ input, .k-champ select { height: 48px; padding: 0 12px; border: 1px solid var(--trait); border-radius: var(--r-1); background: var(--surface); color: var(--encre); font-size: var(--t-16); min-width: 0; width: 100%; }
.k-champ input::placeholder, .acc-combo input::placeholder { color: var(--encre-2); opacity: 1; }
.k-champ input:focus, .k-champ select:focus { border-color: var(--encre); outline: 0; box-shadow: 0 0 0 4px var(--accent-doux); }
.k-coche { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-size: var(--t-16); cursor: pointer; }
.k-coche input { width: 20px; height: 20px; accent-color: var(--accent-texte); }
.k-plus-filtres { border-top: 1px solid var(--trait); }
.k-plus-filtres > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; }
.k-plus-filtres > summary::-webkit-details-marker { display: none; }
.k-plus-filtres > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg) translateY(-2px); transition: transform var(--duree); }
.k-plus-filtres[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.k-filtres-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--e-4); align-items: end; padding-block: var(--e-3) var(--e-5); }

/* 6. Badge ------------------------------------------------------------ */
.k-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--r-rond); background: var(--surface-2); color: var(--encre); font: 600 var(--t-12)/1.3 var(--police-texte); white-space: nowrap; }
.k-badge--plus { background: var(--plus-doux); color: var(--plus); }
.k-badge--moins { background: var(--moins-doux); color: var(--moins); }
.k-badge--accent { background: var(--accent-doux); color: var(--accent-texte); }
.k-badge--plein { background: var(--encre); color: var(--fond); }
.k-badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* 7. Chiffre heros ----------------------------------------------------- */
.k-chiffre { display: grid; gap: 2px; }
.k-chiffre-lib { font-size: var(--t-14); color: var(--encre-2); font-weight: 500; }
.k-chiffre-val { font: 700 var(--t-heros)/1 var(--police-titre); letter-spacing: -.035em; }
.k-chiffre-val small { font-size: var(--t-20); font-weight: 600; letter-spacing: -.01em; margin-left: .15em; color: var(--encre-2); }
.k-chiffre-note { font-size: var(--t-14); color: var(--encre-2); }
.k-chiffre--moyen .k-chiffre-val { font-size: var(--t-28); letter-spacing: -.02em; }
.k-chiffre--moyen .k-chiffre-val small { font-size: var(--t-14); }
.k-plus { color: var(--plus); }
.k-moins { color: var(--moins); }
.k-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--e-6) var(--e-7); }
.k-chiffres > * + * { border-left: 1px solid var(--trait); padding-left: var(--e-7); }
@media (max-width: 767px) { .k-chiffres > * + * { border-left: 0; padding-left: 0; border-top: 1px solid var(--trait); padding-top: var(--e-5); } .k-chiffres { grid-template-columns: 1fr; gap: var(--e-5); } }

/* 8. Carte d'annonce (photo 16:9) --------------------------------------- */
.k-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--e-7) var(--e-6); }
.k-annonce { display: grid; gap: var(--e-3); text-decoration: none; align-content: start; }
.k-photo { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-2); overflow: hidden; background: var(--surface-2); }
.k-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--courbe); }
.k-annonce:hover .k-photo img { transform: scale(1.04); }
.k-photo .k-badges { position: absolute; left: 10px; top: 10px; }
.k-photo[data-vide]::after { content: "Photo indisponible"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--encre-2); font-size: var(--t-14); }
.k-annonce-prix { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.k-annonce-prix b { font: 700 var(--t-20)/1.1 var(--police-titre); letter-spacing: -.02em; }
.k-annonce-prix s { font-size: var(--t-14); color: var(--encre-2); }
.k-annonce-titre { font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.k-annonce-meta { font-size: var(--t-14); color: var(--encre-2); }
.k-annonce-note { font-size: var(--t-14); color: var(--plus); font-weight: 600; }
.k-annonce[data-actif] .k-photo { outline: 3px solid var(--accent); outline-offset: 2px; }

/* 9. Tableau ----------------------------------------------------------- */
.k-table-cadre { overflow-x: auto; border: 1px solid var(--trait); border-radius: var(--r-2); background: var(--surface); }
.k-table { width: 100%; border-collapse: collapse; font-size: var(--t-16); }
.k-table th { text-align: left; font-size: var(--t-14); font-weight: 600; color: var(--encre-2); padding: 12px 16px; border-bottom: 1px solid var(--trait); white-space: nowrap; }
.k-table td { padding: 14px 16px; border-bottom: 1px solid var(--trait); }
.k-table tr:last-child td { border-bottom: 0; }
.k-table .num { text-align: right; white-space: nowrap; }
.k-table a { text-decoration: none; font-weight: 600; }
.k-table a:hover { color: var(--accent-texte); }
.k-def { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--e-4) var(--e-6); }
.k-def dt { font-size: var(--t-14); color: var(--encre-2); }
.k-def dd { font-weight: 600; }

/* 10. Etat vide, message, squelette ------------------------------------ */
.k-vide { display: grid; justify-items: start; gap: var(--e-3); padding: var(--e-8) var(--e-7); border: 1px dashed var(--trait); border-radius: var(--r-2); }
.k-vide svg { color: var(--encre-2); }
.k-vide h2 { font-size: var(--t-20); }
.k-vide p { color: var(--encre-2); max-width: 60ch; }
.k-message { padding: 14px 16px; border-radius: var(--r-1); background: var(--accent-doux); color: var(--encre); font-size: var(--t-16); border-left: 3px solid var(--accent); }
.k-squelette { background: linear-gradient(100deg, var(--surface-2) 40%, var(--surface) 50%, var(--surface-2) 60%) 0 0 / 200% 100%; animation: k-luire 1.3s linear infinite; border-radius: var(--r-1); color: transparent !important; }
.k-squelette-ligne { height: 14px; margin-top: 10px; }
@keyframes k-luire { to { background-position: -200% 0; } }

/* 11. Pagination ------------------------------------------------------- */
.k-pages { display: flex; align-items: center; justify-content: center; gap: var(--e-4); margin-top: var(--e-8); flex-wrap: wrap; }
.k-pages-etat { color: var(--encre-2); font-size: var(--t-14); }

/* 12. Pied en colonnes, liens jamais soulignes -------------------------- */
.k-pied { margin-top: var(--e-9); border-top: 1px solid var(--trait); background: var(--surface); padding-block: var(--e-8) var(--e-6); }
.k-pied-grille { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--e-7); }
.k-pied h2 { font: 600 var(--t-14)/1.3 var(--police-texte); letter-spacing: 0; color: var(--encre-2); margin-bottom: var(--e-3); }
.k-pied li + li { margin-top: 2px; }
.k-pied a { display: inline-block; padding: 5px 0; text-decoration: none; color: var(--encre); transition: color var(--duree); }
.k-pied a:hover { color: var(--accent-texte); }
.k-pied-pres p { color: var(--encre-2); max-width: 36ch; margin-top: var(--e-3); font-size: var(--t-14); }
.k-pied-bas { margin-top: var(--e-8); padding-top: var(--e-5); border-top: 1px solid var(--trait); display: flex; justify-content: space-between; gap: var(--e-4); flex-wrap: wrap; font-size: var(--t-14); color: var(--encre-2); }
@media (max-width: 899px) { .k-pied-grille { grid-template-columns: 1fr 1fr; } .k-pied-pres { grid-column: 1 / -1; } }

/* 13. Carte interactive (MapLibre) --------------------------------------- */
.k-map { position: relative; background: var(--surface-2); overflow: hidden; }
.k-map-toile { position: absolute; inset: 0; }
.k-pin { background: var(--encre); color: var(--fond); font: 600 var(--t-12)/1 var(--police-texte); padding: 6px 9px; border-radius: var(--r-rond); box-shadow: 0 0 0 2px var(--surface), var(--ombre-1); cursor: pointer; white-space: nowrap; transition: transform var(--duree) var(--courbe), background var(--duree); }
.k-pin:hover, .k-pin[data-actif] { transform: scale(1.12); background: var(--accent); color: var(--sur-accent); z-index: 3; }
.k-pin--baisse { background: var(--plus); color: var(--surface); }
.k-pin--point { width: 16px; height: 16px; padding: 0; background: var(--accent); }
.k-pin[hidden] { display: none; }
.acc-heros .maplibregl-ctrl-top-right { top: 72px; right: calc(max(var(--marge), (100% - var(--page)) / 2) - 10px); }
.maplibregl-popup-content { background: var(--surface) !important; color: var(--encre); border-radius: var(--r-2) !important; padding: 0 !important; box-shadow: var(--ombre-2) !important; overflow: hidden; width: 260px; font-family: var(--police-texte); }
.maplibregl-popup-tip { border-top-color: var(--surface) !important; border-bottom-color: var(--surface) !important; }
.maplibregl-popup-close-button { width: 32px; height: 32px; font-size: 20px; color: var(--surface); background: var(--voile) !important; border-radius: 0 0 0 var(--r-1); }
.k-pop { display: grid; gap: 6px; text-decoration: none; padding-bottom: 14px; }
.k-pop .k-photo { border-radius: 0; }
.k-pop > *:not(.k-photo) { padding-inline: 14px; }
.maplibregl-ctrl-group { background: var(--surface) !important; border-radius: var(--r-1) !important; box-shadow: var(--ombre-1) !important; }
:root[data-theme="dark"] .maplibregl-ctrl-group button span { filter: invert(1); }
.maplibregl-ctrl-attrib { font-size: var(--t-12); }

/* 14. Graphique en ligne (SVG rendu par le serveur) ---------------------- */
.k-courbe { position: relative; height: 200px; margin-block: var(--e-4) var(--e-2); }
.k-courbe svg { width: 100%; height: 100%; overflow: visible; animation: k-trace 1s var(--courbe) both; }
.k-courbe .ligne { fill: none; stroke: var(--encre); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.k-courbe .aire { fill: var(--accent); opacity: .16; }
.k-courbe .repere { stroke: var(--accent-texte); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.k-courbe .grille { stroke: var(--trait); stroke-width: 1; vector-effect: non-scaling-stroke; }
.k-courbe-bornes { position: absolute; inset: 0 auto 0 0; display: flex; flex-direction: column; justify-content: space-between; font-size: var(--t-12); color: var(--encre-2); pointer-events: none; }
.k-courbe-bornes span { background: var(--fond); padding-right: 6px; align-self: flex-start; }
.k-courbe-axe { display: flex; justify-content: space-between; font-size: var(--t-12); color: var(--encre-2); }
.k-legende { display: flex; gap: var(--e-5); font-size: var(--t-14); color: var(--encre-2); margin-top: var(--e-2); flex-wrap: wrap; }
.k-legende i { display: inline-block; width: 18px; height: 0; border-top: 2.5px solid var(--encre); vertical-align: middle; margin-right: 6px; }
.k-legende i.tirets { border-top: 2px dashed var(--accent-texte); }
@keyframes k-trace { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -2% 0 0); } }

/* 15. Accueil : carte immersive ----------------------------------------- */
.acc-heros { position: relative; height: calc(100svh - var(--h-entete)); min-height: 640px; max-height: 900px; }
.acc-heros .k-map { position: absolute; inset: 0; }
.acc-heros::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(to top, var(--fond), transparent); pointer-events: none; z-index: 1; }
.acc-panneau { position: absolute; z-index: 2; left: max(var(--marge), (100% - var(--page)) / 2); bottom: var(--e-8); width: min(560px, 100% - 2 * var(--marge)); background: var(--surface); border-radius: var(--r-2); box-shadow: var(--ombre-2); padding: var(--e-7); display: grid; gap: var(--e-5); }
.acc-ville { display: flex; align-items: center; gap: var(--e-2); font-size: var(--t-14); color: var(--encre-2); position: relative; flex-wrap: wrap; }
.acc-ville-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--trait); border-radius: var(--r-rond); background: none; font-weight: 600; color: var(--encre); cursor: pointer; }
.acc-ville-btn:hover { border-color: var(--encre-2); }
.acc-combo { position: absolute; top: 100%; left: 0; z-index: 5; width: min(340px, 100%); margin-top: 6px; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-2); box-shadow: var(--ombre-2); padding: var(--e-2); }
.acc-combo input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--trait); border-radius: var(--r-1); background: var(--fond); font-size: var(--t-16); }
.acc-combo li { padding: 10px 12px; border-radius: var(--r-1); cursor: pointer; color: var(--encre); font-size: var(--t-16); }
.acc-combo li:hover, .acc-combo li[aria-selected="true"] { background: var(--surface-2); }
.acc-combo li small { color: var(--encre-2); font-size: var(--t-14); margin-left: 6px; }
.acc-panneau h1 { font-size: var(--t-28); }
.acc-panneau .k-recherche { background: var(--fond); border-color: transparent; border-radius: var(--r-1); }
.acc-exemples { display: flex; flex-wrap: wrap; gap: 4px var(--e-5); font-size: var(--t-14); }
.acc-exemples a { color: var(--encre-2); text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--trait); transition: color var(--duree), border-color var(--duree); }
.acc-exemples a:hover { color: var(--encre); border-color: var(--accent); }
.acc-localiser { position: absolute; z-index: 2; top: var(--e-5); right: max(var(--marge), (100% - var(--page)) / 2); background: var(--surface); border: 0; box-shadow: var(--ombre-1); border-radius: var(--r-rond); min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--t-14); cursor: pointer; }
.acc-legende { position: absolute; z-index: 2; right: max(var(--marge), (100% - var(--page)) / 2); bottom: var(--e-8); display: flex; gap: var(--e-2); }
.acc-msg { font-size: var(--t-14); color: var(--moins); min-height: 0; }
.acc-msg:empty { display: none; }
@media (max-width: 899px) {
  .acc-heros { height: auto; max-height: none; min-height: 0; display: flex; flex-direction: column; }
  .acc-heros::after { display: none; }
  .acc-panneau { order: 1; position: static; width: auto; box-shadow: none; border-radius: 0; background: none; padding: var(--e-6) var(--marge) var(--e-7); }
  .acc-heros .k-map { order: 2; position: relative; inset: auto; height: 58svh; min-height: 360px; margin-inline: var(--marge); border-radius: var(--r-2); }
  .acc-localiser { order: 3; position: static; align-self: flex-start; margin: var(--e-3) var(--marge) 0; border: 1px solid var(--trait); box-shadow: none; }
  #acc-baisses > :nth-child(n+5) { display: none; }
  .acc-legende { display: none; }
}
.acc-suite-texte { display: grid; gap: var(--e-4); justify-items: start; }

/* 16. Resultats de recherche -------------------------------------------- */
.res-tete { padding-block: var(--e-7) var(--e-6); display: grid; gap: var(--e-5); }
.res-tete form.res-form { display: grid; gap: var(--e-4); max-width: 880px; }
.res-barre { display: flex; align-items: end; justify-content: space-between; gap: var(--e-5); flex-wrap: wrap; padding-bottom: var(--e-5); }
.res-barre .k-champ { min-width: 220px; }
.res-corps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--e-7); align-items: start; }
.res-corps .k-map { display: none; }
@media (min-width: 1200px) {
  .res-corps[data-avec-carte] { grid-template-columns: minmax(0, 1fr) minmax(360px, 34%); }
  .res-corps[data-avec-carte] .k-map { display: block; position: sticky; top: calc(var(--h-entete) + var(--e-5)); height: min(640px, calc(100svh - var(--h-entete) - 2 * var(--e-5))); border-radius: var(--r-2); }
}
.res-pistes { display: flex; flex-wrap: wrap; gap: var(--e-2); align-items: center; font-size: var(--t-14); }
.res-pistes a { text-decoration: none; }
.res-pistes a.k-badge:hover { background: var(--accent-doux); color: var(--accent-texte); }
.res-pistes a[aria-current] { background: var(--encre); color: var(--fond); }

/* 17. Fiche annonce ------------------------------------------------------ */
.fiche-tete { padding-block: var(--e-6) var(--e-5); display: grid; gap: var(--e-3); }
.fiche-fil { font-size: var(--t-14); color: var(--encre-2); }
.fiche-fil a { text-decoration: none; }
.fiche-fil a:hover { color: var(--encre); }
.fiche-haut { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--e-7); align-items: start; }
@media (min-width: 1000px) { .fiche-haut { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); column-gap: var(--e-8); } .fiche-achat { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--h-entete) + var(--e-5)); } .fiche-corps { grid-column: 1; } }
.fiche-galerie .k-photo { border-radius: var(--r-2); }
.fiche-vignettes { display: flex; gap: var(--e-2); margin-top: var(--e-2); overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.fiche-vignettes button { flex: none; width: 112px; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--r-1); overflow: hidden; cursor: pointer; background: var(--surface-2); opacity: .7; transition: opacity var(--duree); }
.fiche-vignettes button[aria-current="true"], .fiche-vignettes button:hover { opacity: 1; }
.fiche-vignettes button[aria-current="true"] { outline: 2px solid var(--accent); outline-offset: -2px; }
.fiche-vignettes img { width: 100%; height: 100%; object-fit: cover; }
.fiche-achat { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-2); padding: var(--e-6); display: grid; gap: var(--e-5); }
.fiche-achat .k-btn { width: 100%; }
.fiche-corps { display: grid; gap: var(--e-8); padding-top: var(--e-5); min-width: 0; }
.fiche-bloc { display: grid; gap: var(--e-4); }
.fiche-bloc ul.puces { display: grid; gap: 6px; padding-left: 20px; list-style: disc; color: var(--encre-2); }
.fiche-desc { white-space: pre-line; line-height: 1.65; }
.fiche-jauge { height: 8px; border-radius: var(--r-rond); background: var(--surface-2); overflow: hidden; max-width: 420px; }
.fiche-jauge i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transform-origin: left; animation: k-pousse .8s var(--courbe) both; }
@keyframes k-pousse { from { transform: scaleX(0); } }

/* 18. Opportunites foncieres --------------------------------------------- */
.opp-tete { padding-block: var(--e-7) var(--e-6); display: grid; gap: var(--e-6); }
.opp-tete-rang { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--e-7); align-items: end; }
@media (max-width: 899px) { .opp-tete-rang { grid-template-columns: 1fr; gap: var(--e-5); } }
.opp-form { display: grid; gap: var(--e-2); }
.opp-form-rang { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--e-3); align-items: end; max-width: 640px; }
@media (max-width: 479px) { .opp-form-rang { grid-template-columns: 1fr; } }
.opp-liste { border-top: 1px solid var(--trait); }
.opp-ligne { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: var(--e-6); padding-block: var(--e-6); border-bottom: 1px solid var(--trait); align-items: start; }
.opp-ligne-infos { display: grid; gap: var(--e-2); justify-items: start; }
.opp-ligne-infos h2 { font-size: var(--t-20); }
.opp-ligne-gain { text-align: right; display: grid; gap: 2px; justify-items: end; }
.opp-ligne-gain b { font: 700 var(--t-28)/1 var(--police-titre); letter-spacing: -.02em; white-space: nowrap; }
@media (max-width: 767px) {
  .opp-ligne { grid-template-columns: 1fr; gap: var(--e-4); }
  .opp-ligne-gain { text-align: left; justify-items: start; }
  .opp-ligne .k-photo[data-vide] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
