/* ═══════════════════════════════════════════════════════════════════════
   LE MARCHE — page Opportunites (js/marche.js)
   -----------------------------------------------------------------------
   Les fonctions de SeLoger et Bien'ici, la forme de la maquette Claude
   Design « Vignettes Biens » : 6a pour l'ordinateur (barre Ou / Budget
   total / Rendement brut, pastilles de typologie, liste a mosaique de
   photos), 9a pour le telephone (pilule resumee, vignettes facon Airbnb).
   Palette Mandak : encre #04024D, bleu #405AD2, lavande #C5CCFB.
   ═══════════════════════════════════════════════════════════════════════ */

/* Les couleurs --mm-* et la vignette vivent dans css/vignette.css. */

/* Les maquettes sont sur fond blanc : les photos portent la couleur. */
body { background: #fff; }
html.mm-sans-defilement { overflow: hidden; }

.mm { padding-bottom: 72px; }
/* Comme chez Airbnb, la recherche se colle sous la navigation : une
   vingtaine de pixels, pas la marge d'ouverture des pages de contenu
   (`--tete-page`, 40 a 72 px). Le titre a disparu, l'espace avec lui.
   Le selecteur porte `section.tete-page` pour l'emporter sur la regle
   commune de style.css. */
section.mm.tete-page { padding-top: calc(var(--nav-h, 69px) + 12px); }
.mm__cadre { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }

.mm-titre-cache {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── La barre de recherche (6a) ────────────────────────────────────── */
.mm-temoin { height: 1px; }
.mm-barre {
  position: sticky; top: var(--nav-h, 69px); z-index: 60;
  background: #fff; margin: 0 calc(-1 * clamp(16px, 3vw, 40px));
  padding: 8px clamp(16px, 3vw, 40px) 14px;
  transition: box-shadow .2s;
}
.mm-barre.is-collee { box-shadow: 0 1px 0 var(--mm-trait), 0 8px 16px -12px rgba(4, 2, 77, .18); }

.mm-recherche {
  position: relative; max-width: 760px;
  display: flex; align-items: stretch;
  border: 1px solid var(--mm-trait); border-radius: 999px; background: #fff;
  box-shadow: var(--mm-ombre);
}
.mm-seg {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-width: 0; padding: 14px 32px; border-radius: 999px;
  background: none; border: 0; text-align: left; font: inherit; cursor: pointer;
  transition: background .15s;
}
.mm-seg + .mm-seg::before {
  content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--mm-trait);
}
.mm-seg:hover { background: var(--mm-fond); }
.mm-seg:hover + .mm-seg::before, .mm-seg:hover::before { opacity: 0; }
.mm-seg--ou { flex: 1.3 1 0; cursor: text; }
.mm-seg--btn { flex: 1 1 0; }
.mm-seg__titre { font-size: .75rem; font-weight: 700; color: var(--mm-encre); }
.mm-seg__valeur { font-size: .875rem; color: var(--mm-gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-seg.is-rempli .mm-seg__valeur { color: var(--mm-encre); }
.mm-seg[aria-expanded="true"] { background: #fff; box-shadow: var(--mm-ombre-forte); }

.mm-ou { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; min-width: 0; }
.mm-ou__puces { display: contents; }
.mm-ou input {
  flex: 1 1 110px; min-width: 70px; border: 0; outline: 0; padding: 0; background: none;
  font: inherit; font-size: .86rem; color: var(--mm-encre);
}
.mm-ou input::placeholder { color: var(--mm-gris); }
/* Champ quitté : les villes choisies s'y lisent comme du texte saisi. */
.mm-ou input.is-villes::placeholder { color: var(--mm-encre); }
.mm-ou input { text-overflow: ellipsis; }
.mm-puce {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 2px 4px 2px 10px; border-radius: 999px;
  background: var(--mm-encre); color: #fff; font-size: .76rem; font-weight: 700; white-space: nowrap;
}
.mm-puce button {
  width: 18px; height: 18px; border: 0; border-radius: 50%; padding: 0;
  background: rgba(255, 255, 255, .18); color: #fff; font-size: .85rem; line-height: 1; cursor: pointer;
}
.mm-puce button:hover { background: rgba(255, 255, 255, .34); }

/* Le bouton de recherche, bleu Mandak comme sur la maquette */
.mm-loupe {
  flex: none; align-self: center; width: 46px; height: 46px; margin: 0 8px 0 4px;
  border: 0; border-radius: 50%; background: var(--mm-bleu); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: background .15s;
}
.mm-loupe:hover { background: var(--mm-encre); }
.mm-loupe svg, .mm-resume svg, .mm-resume__filtres svg, .mm-filtres-btn svg {
  fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round;
}
.mm-loupe svg { width: 18px; height: 18px; stroke-width: 2.6; }

/* Le resume — n'existe que sur telephone (9a) */
.mm-resume, .mm-resume__filtres { display: none; }

/* La ligne des typologies, et « Filtres » au bout */
.mm-raccourcis-ligne { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.mm-raccourcis {
  flex: 1 1 auto; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 1px 0;
}
.mm-raccourcis::-webkit-scrollbar { display: none; }
/* Quand la rangee defile, son bord droit s'efface : on devine la suite. */
.mm-raccourcis.is-deborde { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.mm-raccourcis.is-deborde.is-fin { -webkit-mask-image: none; mask-image: none; }
.mm-raccourcis button {
  flex: none; height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--mm-trait); background: #fff; color: var(--mm-encre);
  font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.mm-raccourcis button:hover { border-color: var(--mm-encre); }
.mm-raccourcis button[aria-pressed="true"] { background: var(--mm-encre); border-color: var(--mm-encre); color: #fff; }

.mm-filtres-btn {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 10px;
  border: 1px solid #C8C8CF; background: #fff; color: var(--mm-encre);
  font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; transition: background .15s;
}
.mm-filtres-btn:hover { background: var(--mm-fond); }
.mm-filtres-btn svg { width: 15px; height: 15px; stroke-width: 2; }
.mm-filtres-btn__n {
  min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px;
  background: var(--mm-bleu); color: #fff; font-size: .7rem; display: inline-grid; place-items: center;
}

.mm-alerte {
  margin: 10px 0 0; padding: 10px 14px; border-radius: 12px;
  background: #fff4e5; color: #8a4b00; font-size: .82rem;
}

/* ── Fenetres flottantes : communes, budget, rendement ─────────────── */
.mm-pop {
  position: absolute; top: calc(100% + 10px); z-index: 70;
  background: #fff; border-radius: 22px; box-shadow: var(--mm-ombre-forte);
  padding: 22px 24px;
}
/* Les communes : le nom, et dessous ce qui la distingue (la ville entière, un arrondissement, le département).
   Pour Paris, Lyon et Marseille, la grille des arrondissements suit. */
.mm-ou__liste {
  left: 0; width: min(480px, 92vw); padding: 6px 0; margin: 0; list-style: none; border-radius: 16px;
  box-shadow: 0 2px 6px rgba(4, 2, 77, .10), 0 10px 28px rgba(4, 2, 77, .12); overflow: hidden;
  max-height: min(460px, 70vh); overflow-y: auto;
}
.mm-ou__liste li[role="option"] {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 20px; cursor: pointer;
}
.mm-ou__liste li[aria-selected="true"], .mm-ou__liste li[role="option"]:hover { background: #F4F4F8; }
.mm-ou__texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; color: var(--mm-encre); }
.mm-ou__nom { font-size: 14px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-ou__nom b { font-weight: 700; }
.mm-ou__texte small { font-size: 12.5px; color: var(--mm-gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-ou__deja { flex: none; font-size: 12px; font-weight: 600; color: #405AD2; }
.mm-ou__arr { padding: 4px 20px 12px; cursor: default; }
.mm-ou__choisies { padding: 10px 20px 12px; border-bottom: 1px solid #ECEBF3; margin-bottom: 4px; cursor: default; }
.mm-ou__choisies:last-child { border-bottom: 0; margin-bottom: 0; }
.mm-ou__etiquettes { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-ou__etiquette {
  display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 4px 0 12px; border-radius: 8px;
  background: #F2F2F7; color: var(--mm-encre); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.mm-ou__etiquette button {
  width: 24px; height: 24px; border: 0; border-radius: 6px; padding: 0; background: none; color: #6C6A94; cursor: pointer;
  display: grid; place-items: center;
}
.mm-ou__etiquette button:hover { background: #E4E3EC; color: var(--mm-encre); }
.mm-ou__etiquette svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.mm-ou__arr-titre { display: block; margin-bottom: 8px; font-size: 12.5px; color: var(--mm-gris); }
.mm-ou__grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.mm-ou__grille button {
  height: 32px; border: 1px solid #DDDBE6; border-radius: 8px; background: #fff; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--mm-encre); transition: border-color .15s, background .15s, color .15s;
}
.mm-ou__grille button:hover { border-color: var(--mm-encre); }
.mm-ou__grille button[aria-pressed="true"] { background: #405AD2; border-color: #405AD2; color: #fff; }
.mm-ou__liste .mm-ou__vide { cursor: default; color: var(--mm-gris); font-size: .85rem; padding: 12px 20px; }
.mm-ou__liste .mm-ou__vide:hover { background: none; }

.mm-pop--budget { left: 34%; width: 360px; }
.mm-pop--rdt { right: 0; width: 360px; }
.mm-pop h3, .mm-filtres h3 { margin: 0 0 12px; font-size: 1rem; font-weight: 800; color: var(--mm-encre); }
.mm-pop h3 + p, .mm-filtres h3 + p { margin: -8px 0 14px; font-size: .8rem; color: var(--mm-gris); }

.mm-deux { display: flex; align-items: center; gap: 10px; }
.mm-deux > span { color: var(--mm-pale); }
.mm-champ {
  flex: 1; display: flex; flex-direction: column; padding: 8px 12px;
  border: 1px solid var(--mm-trait); border-radius: 12px; transition: border-color .15s, box-shadow .15s;
}
.mm-champ:focus-within { border-color: var(--mm-encre); box-shadow: 0 0 0 1px var(--mm-encre); }
.mm-champ small { font-size: .7rem; color: var(--mm-gris); }
.mm-champ span { display: flex; align-items: baseline; gap: 4px; }
.mm-champ input {
  width: 100%; border: 0; outline: 0; padding: 0; background: none;
  font: inherit; font-size: 16px; color: var(--mm-encre);   /* 16 px : pas de zoom iOS */
}
.mm-champ em { font-style: normal; color: var(--mm-gris); font-size: .85rem; }

.mm-pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mm-pastilles button, .mm-choix button {
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--mm-trait); background: #fff; color: var(--mm-encre);
  font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s;
}
.mm-pastilles button:hover, .mm-choix button:hover { border-color: var(--mm-encre); }
.mm-pastilles button[aria-pressed="true"], .mm-choix button[aria-pressed="true"] {
  background: var(--mm-encre); border-color: var(--mm-encre); color: #fff;
}
.mm-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-choix button { min-width: 52px; }
.mm-choix--typo { margin-top: 14px; }

/* Les tuiles de type, avec leur pictogramme */
.mm-tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mm-tuiles button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  padding: 16px; border-radius: 14px; border: 1px solid var(--mm-trait); background: #fff;
  font: inherit; font-size: .88rem; font-weight: 700; color: var(--mm-encre); cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.mm-tuiles button:hover { border-color: var(--mm-encre); }
.mm-tuiles button[aria-pressed="true"] { border-color: var(--mm-encre); box-shadow: 0 0 0 1px var(--mm-encre); background: var(--mm-fond); }
.mm-tuiles svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.mm-segmente {
  display: flex; margin-top: 14px; padding: 4px; border-radius: 999px; background: var(--mm-fond);
}
.mm-segmente button {
  flex: 1; height: 34px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 600; color: var(--mm-gris);
}
.mm-segmente button[aria-pressed="true"] { background: #fff; color: var(--mm-encre); box-shadow: 0 1px 4px rgba(4, 2, 77, .14); }

/* ── La fenetre « Filtres » ────────────────────────────────────────── */
.mm-filtres {
  /* La feuille du site remet les marges a zero : sans `margin: auto`, la
     fenetre se colle en haut a gauche au lieu de se centrer. */
  margin: auto; inset: 0;
  width: min(720px, 100vw); max-height: min(88vh, 900px); padding: 0; border: 0;
  border-radius: 20px; box-shadow: var(--mm-ombre-forte); color: var(--mm-encre);
  overflow: hidden;
}
.mm-filtres[open] { display: flex; flex-direction: column; }
.mm-filtres::backdrop { background: rgba(4, 2, 77, .45); }
.mm-filtres__tete {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 64px; border-bottom: 1px solid var(--mm-trait); flex: none;
}
.mm-filtres__tete h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.mm-filtres__fermer {
  position: absolute; left: 16px; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: none; cursor: pointer; display: grid; place-items: center; color: var(--mm-encre);
}
.mm-filtres__fermer:hover { background: var(--mm-fond); }
.mm-filtres__fermer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.mm-filtres__corps { overflow-y: auto; padding: 0 28px; flex: 1 1 auto; }
.mm-filtres__corps section { padding: 26px 0; border-bottom: 1px solid var(--mm-trait); }
.mm-filtres__corps section:last-child { border-bottom: 0; }
.mm-filtres__pied {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-top: 1px solid var(--mm-trait); flex: none;
}
.mm-lien {
  border: 0; background: none; padding: 8px 6px; font: inherit; font-size: .9rem; font-weight: 700;
  color: var(--mm-encre); text-decoration: underline; cursor: pointer; border-radius: 8px;
}
.mm-lien:hover { background: var(--mm-fond); }
.mm-bouton {
  height: 48px; padding: 0 24px; border: 0; border-radius: 12px;
  background: var(--mm-encre); color: #fff; font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.mm-bouton:hover { background: var(--blue, #405AD2); }

.mm-dpe { display: flex; gap: 6px; flex-wrap: wrap; }
.mm-dpe button {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--mm-trait); background: #fff;
  font: inherit; font-weight: 800; font-size: .95rem; color: var(--mm-encre); cursor: pointer; position: relative;
  transition: border-color .15s, background .15s, color .15s;
}
.mm-dpe button::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 3px; border-radius: 2px; background: var(--dpe);
}
.mm-dpe button:hover { border-color: var(--mm-encre); }
.mm-dpe button[aria-pressed="true"] { background: var(--mm-encre); border-color: var(--mm-encre); color: #fff; }

.mm-bascule-ligne {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; cursor: pointer;
}
.mm-bascule-ligne b { display: block; font-size: .92rem; }
.mm-bascule-ligne small { display: block; font-size: .8rem; color: var(--mm-gris); margin-top: 2px; }
.mm-interrupteur { position: relative; flex: none; width: 48px; height: 30px; }
.mm-interrupteur input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.mm-interrupteur span {
  position: absolute; inset: 0; border-radius: 999px; background: #c9c9d3; transition: background .2s; pointer-events: none;
}
.mm-interrupteur span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s;
}
.mm-interrupteur input:checked + span { background: var(--mm-encre); }
.mm-interrupteur input:checked + span::after { transform: translateX(18px); }
.mm-interrupteur input:focus-visible + span { outline: 2px solid var(--blue, #405AD2); outline-offset: 2px; }

/* ── Les resultats ─────────────────────────────────────────────────── */
.mm-resultats { margin-top: 10px; }
.mm-resultats__tete {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.mm-compte { margin: 0; font-size: .82rem; color: var(--mm-gris); }
.mm-compte[data-page]::after { content: " · " attr(data-page); }
.mm-tri { position: relative; }
.mm-tri__bouton {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .86rem; color: var(--mm-gris);
}
.mm-tri__bouton b { font-weight: 700; color: var(--mm-encre); }
.mm-tri__bouton svg { width: 14px; height: 14px; fill: none; stroke: var(--mm-encre); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mm-tri__bouton:hover b { text-decoration: underline; }
.mm-tri__ico { display: none; }
/* Tablette et telephone : le tri en pastille, en tete de la ligne des
   raccourcis de la barre collante (js/marche.js l'y deplace). */
.mm-raccourcis-ligne .mm-tri { flex: none; }
.mm-raccourcis-ligne .mm-tri__bouton {
  height: 34px; padding: 0 12px 0 11px; gap: 6px; border: 1px solid var(--mm-encre); border-radius: 999px; background: #fff;
  font-size: .8rem; font-weight: 600; color: var(--mm-encre); white-space: nowrap;
}
.mm-raccourcis-ligne .mm-tri__bouton:hover b { text-decoration: none; }
.mm-raccourcis-ligne .mm-tri__mot { display: none; }
.mm-raccourcis-ligne .mm-tri__bouton b { display: inline-block; font-weight: 600; }
.mm-raccourcis-ligne .mm-tri__bouton b::first-letter { text-transform: uppercase; }
.mm-raccourcis-ligne .mm-tri__ico { display: block; width: 15px; height: 15px; stroke-width: 2.2; }
.mm-raccourcis-ligne .mm-tri__menu { left: 0; right: auto; }
/* Le menu : compact, une ligne par tri, le choix coche */
.mm-tri__menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 65; min-width: 236px; margin: 0; padding: 6px 0; list-style: none;
  background: #fff; border: 1px solid #DDDDE2; border-radius: 12px; box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
.mm-tri__menu li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 16px;
  font-size: .88rem; color: var(--mm-encre); white-space: nowrap; cursor: pointer;
}
.mm-tri__menu li:hover { background: #F6F6F8; }
.mm-tri__menu li[aria-selected="true"] { font-weight: 700; }
.mm-tri__menu li[aria-disabled="true"] { color: #A9A9B2; cursor: default; }
.mm-tri__menu li[aria-disabled="true"]:hover { background: none; }
.mm-tri__menu small { font-size: .74rem; color: #A9A9B2; }
.mm-tri__menu svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--mm-encre); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .mm-tri__menu { left: 0; right: auto; max-width: calc(100vw - 32px); } }

.mm-points { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 6px; }
.mm-points i { width: 5px; height: 5px; border-radius: 50%; background: var(--mm-pale); animation: mmPoint 1.2s infinite ease-in-out; }
.mm-points i:nth-child(2) { animation-delay: .15s; }
.mm-points i:nth-child(3) { animation-delay: .3s; }
@keyframes mmPoint { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.mm-corps { display: block; }
.mm-grille {
  position: relative; display: grid; gap: 28px 32px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 600px), 1fr));
}

/* La vignette elle-meme : css/vignette.css (partagee avec les guides). */

/* Visiteur non connecte : la grille en attente, voilee, et l'invitation */
.mm-voile {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 90px; background: linear-gradient(to bottom, rgba(255, 255, 255, .55), #fff 70%);
}
.mm-voile__carte {
  max-width: 440px; padding: 30px 32px; border-radius: 22px; background: #fff; text-align: center;
  box-shadow: var(--mm-ombre-forte);
}
.mm-voile__carte h2 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.3; color: var(--mm-encre); }
.mm-voile__carte p { margin: 0 0 20px; font-size: .9rem; color: var(--mm-gris); line-height: 1.5; }

.mm-vide { grid-column: 1 / -1; padding: 40px 8px 48px; text-align: center; }
.mm-vide h2 { margin: 0 auto 6px; max-width: 360px; font-size: 18px; line-height: 24px; font-weight: 700; color: var(--mm-encre); }
.mm-vide p { margin: 0 auto 16px; max-width: 460px; font-size: 13px; color: var(--mm-gris); line-height: 1.5; }
/* Les boutons de l'etat vide, a la taille des lignes de l'app. */
.mm-vide .mm-bouton { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13px; }
.mm-vide .mm-lien { font-size: 13px; }
.mm-vide__criteres { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 520px; margin: 0 auto 16px; }
.mm-vide__criteres button {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 12px; border: 1px solid #DDDBE6; border-radius: 999px;
  background: #fff; color: #04024D; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s;
}
.mm-vide__criteres button:hover { border-color: #04024D; background: #F8F7FB; }
.mm-vide__criteres svg { width: 14px; height: 14px; fill: none; stroke: #6C6A94; stroke-width: 2; stroke-linecap: round; }
.mm-vide__actions { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── La pagination ───────────────────────────────────────────────────
   Deux vrais boutons, comme ceux du site (plats, bord gris, rayon 8), et
   au milieu les pages, en roue. */
.mm-pagin { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 48px auto 0; }
.mm-pagin__fleche {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; flex: none;
  border: 1px solid #DDDDE2; border-radius: 8px; background: #fff;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--mm-encre); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.mm-pagin__fleche:hover:not(:disabled) { border-color: var(--mm-encre); }
.mm-pagin__fleche:disabled { color: #B4B2C8; border-color: #ECEBF3; cursor: default; }
.mm-pagin__fleche.is-chargement { color: #6C6A94; cursor: progress; }
.mm-pagin__fleche svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#mmSuiv:not(:disabled):not(.is-chargement) { background: #405AD2; border-color: #405AD2; color: #fff; }
#mmSuiv:not(:disabled):not(.is-chargement):hover { background: #3550C4; border-color: #3550C4; }
/* Les pages en roue : une petite bande ou trois ou quatre numeros se
   lisent, la page en cours en marine. Les numeros tournent comme sur un
   cylindre : ceux du bord pivotent, rapetissent et s'estompent (roue()
   dans marche.js). Les marges laissent la premiere et la derniere page
   venir au milieu. */
.mm-pagin__pages {
  position: relative; flex: none; width: 196px; display: flex; gap: 4px; padding: 4px 82px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.mm-pagin__pages::-webkit-scrollbar { display: none; }
.mm-pagin__pages button {
  flex: none; min-width: 32px; height: 32px; padding: 0 6px; scroll-snap-align: center;
  border: 1px solid #DDDDE2; border-radius: 999px; background: #fff;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--mm-encre); cursor: pointer;
  font-variant-numeric: tabular-nums; transition: border-color .15s, background .15s, color .15s;
}
.mm-pagin__pages button:hover:not(:disabled) { border-color: var(--mm-encre); }
.mm-pagin__pages button.is-actuelle { background: #405AD2; border-color: #405AD2; color: #fff; cursor: default; }
.mm-pagin__pages button:disabled:not(.is-actuelle) { color: #B4B2C8; cursor: progress; }
@media (max-width: 560px) {
  .mm-pagin__fleche { width: 40px; padding: 0; justify-content: center; }
  .mm-pagin__fleche span { display: none; }
}
.mm-note { margin: 28px auto 0; max-width: 760px; text-align: center; font-size: .76rem; line-height: 1.55; color: var(--mm-pale); }

/* ── La carte geographique ─────────────────────────────────────────── */
/* Cachee par defaut : elle n'existe que dans la colonne (.mm-colonne), sur
   ordinateur. `--mm-carte-v` dit a js/marche.js quelle feuille il a en
   face : sans lui (une feuille gardee en cache pendant une mise en ligne),
   il s'en tient a la carte du 14/11, sans reperes en points ni bascule. */
.mm-carte-zone { display: none; --mm-carte-v: 2; }
/* Isoler la carte : ses calques empiles ne passent pas par-dessus la barre
   collante et la navigation. */
.mm-carte-zone { position: relative; isolation: isolate; z-index: 0; }
#mmCarte { width: 100%; height: 100%; border-radius: var(--mm-rayon); background: var(--mm-fond); }
.mm-carte-erreur { padding: 40px; text-align: center; color: var(--mm-gris); }

/* La colonne de carte sur ordinateur (14/11, Nicolas) : des que la liste
   garde de quoi poser ses vignettes en ligne (js/marche.js, majColonne),
   la carte des secteurs se range a droite et suit le defilement. */
.mm-colonne .mm-corps {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 32%, 440px); gap: 28px; align-items: start;
}
.mm-colonne .mm-grille { grid-template-columns: 1fr; }
.mm-colonne .mm-carte-zone {
  display: block; position: sticky; top: calc(var(--mm-haut, 0px) + 16px);
  height: calc(100vh - var(--mm-haut, 0px) - 32px); min-height: 320px;
}
/* Carte en grand (15/11, Nicolas : « changer le mode de vue en interposant
   la carte et le listing ») : la carte passe a gauche et prend la place,
   la liste se range a droite en colonne etroite, vignettes empilees. */
.mm-colonne.mm-vue-carte .mm-corps { grid-template-columns: minmax(0, 1fr) clamp(320px, 34%, 400px); }
.mm-colonne.mm-vue-carte .mm-carte-zone { order: -1; }
/* La liste n'a plus que 320 a 400 px : les fleches de la pagination perdent
   leur mot, comme sur telephone, sinon « Suivante » sort de la page. */
.mm-colonne.mm-vue-carte .mm-pagin__fleche { width: 40px; padding: 0; justify-content: center; }
.mm-colonne.mm-vue-carte .mm-pagin__fleche span { display: none; }

/* Le choix de la vue, pose sur la carte en haut a gauche : deux mots dans
   une meme pilule. Dans l'en-tete des resultats, il renvoyait le tri a la
   ligne. */
.mm-vue {
  position: absolute; left: 12px; top: 12px; z-index: 6; display: inline-flex; padding: 3px; gap: 2px;
  border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(4, 2, 77, .08), 0 6px 18px -6px rgba(4, 2, 77, .3);
}
.mm-vue button {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 10px;
  border: 0; border-radius: 999px; background: none; color: var(--mm-encre);
  font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s;
}
.mm-vue button:hover { background: var(--mm-fond); }
.mm-vue button[aria-pressed="true"] { background: var(--mm-encre); color: #fff; }
.mm-vue button:focus-visible { outline: 2px solid var(--blue, #405AD2); outline-offset: 2px; }
.mm-vue svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Le prix d'un bien de la carte : une etiquette a pointe, corail, marine
   pour le bien survole ou epingle. */
.mm-repere {
  padding: 4px 9px; border: 0; border-radius: 999px; background: #ED797B; color: #fff;
  font: 800 .75rem/1.1 'Plus Jakarta Sans', system-ui, sans-serif; white-space: nowrap; cursor: pointer;
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(4, 2, 77, .25);
}
.mm-repere::after {
  content: ''; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; margin-left: -4px;
  background: inherit; transform: rotate(45deg); border-radius: 0 0 2px 0;
}
.mm-repere.is-actif, .mm-repere:hover, .mm-repere:focus-visible { background: #04024D; z-index: 2; }
/* Tous les biens localises sur la carte (15/11) : des petits carres corail,
   ceux du logo, dessines par la carte elle-meme (js/marche.js, carre). Le
   prix ne se montre qu'au survol (Nicolas, 15/11) : l'etiquette tient dans
   une boite sans taille posee sur le bien, et se range au-dessus du carre
   marine, sa pointe sur son bord. */
.mm-repere-boite { width: 0; height: 0; }
.mm-repere-boite .mm-repere { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 15px)); }
/* La vignette du bien designe sur la carte. */
.mm-carte.is-pointee { outline: 2px solid #405AD2; outline-offset: 8px; border-radius: 14px; }

/* Les boutons de la carte, a la taille du doigt : 40 px, signes marine. */
.mm-carte-zone .maplibregl-ctrl-top-right { z-index: 6; }
.mm-carte-zone .maplibregl-ctrl-top-right .maplibregl-ctrl { margin: 12px 12px 0 0; }
.mm-carte-zone .maplibregl-ctrl-group { border-radius: 12px; overflow: hidden; background: #fff; }
.mm-carte-zone .maplibregl-ctrl-group:not(:empty) { box-shadow: 0 0 0 1px rgba(4, 2, 77, .08), 0 6px 18px -6px rgba(4, 2, 77, .3); }
.mm-carte-zone .maplibregl-ctrl-group button { width: 40px; height: 40px; }
.mm-carte-zone .maplibregl-ctrl-group button + button { border-top-color: var(--mm-trait); }
.mm-carte-zone .maplibregl-ctrl-group button:not(:disabled):hover { background: var(--mm-fond); }
.mm-carte-zone .maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304024D' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-size: 20px;
}
.mm-carte-zone .maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304024D' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
  background-size: 20px;
}
.mm-recadrer { display: grid; place-items: center; padding: 0; }
.mm-recadrer svg { width: 18px; height: 18px; fill: none; stroke: #04024D; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* La bulle d'un bien qui n'est pas dans la page affichee : sa photo, son
   prix, deux lignes, et le lien vers sa fiche. */
.mm-bulle { z-index: 5; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.mm-bulle .maplibregl-popup-content {
  padding: 0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(4, 2, 77, .06), 0 10px 28px -8px rgba(4, 2, 77, .35);
}
.mm-bulle__lien { display: flex; width: 252px; color: var(--mm-encre); text-decoration: none; }
.mm-bulle__photo { flex: 0 0 88px; min-height: 88px; background: var(--mm-fond); position: relative; overflow: hidden; }
.mm-bulle__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-bulle__texte { flex: 1; min-width: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 1px; font-size: .78rem; line-height: 1.35; color: var(--mm-gris); }
.mm-bulle__texte b { font-size: .95rem; font-weight: 800; color: var(--mm-encre); letter-spacing: -.01em; }
.mm-bulle__texte > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-bulle__rdt { margin-top: 3px; }
.mm-bulle__rdt i { font-style: normal; font-weight: 700; color: var(--mm-encre); }
.mm-bulle__lien:hover b { text-decoration: underline; text-underline-offset: 3px; }
.mm-bulle__lien:focus-visible { outline: 2px solid #405AD2; outline-offset: -2px; }

/* Les sources de la carte, discretes : une ligne grise, sans cadre. */
.mm-carte-zone .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib { margin: 0 8px 4px; padding: 0; background: none; font-size: 9px; line-height: 1.3; }
.mm-carte-zone .maplibregl-ctrl-attrib, .mm-carte-zone .maplibregl-ctrl-attrib a { color: rgba(4, 2, 77, .38); }

/* ── Telephone (9a) ────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .mm-barre { padding-top: 10px; }
  /* La pilule n'est qu'un resume : « Paris, Lyon, Lille » au-dessus de
     « Jusqu'à 300 000 € · 5 % et plus », et le bouton des filtres dedans. */
  .mm-recherche { align-items: center; padding: 6px 6px 6px 18px; }
  .mm-seg--btn, .mm-loupe { display: none; }
  /* La liste des villes s'ancre a la pilule entiere, pas au champ : sinon
     elle part de l'interieur de la pilule et deborde de l'ecran. */
  .mm-seg--ou { display: none; padding: 8px 4px; position: static; }
  .mm-ou__liste { left: 0; right: 0; width: auto; }
  .mm-seg__titre { display: none; }
  .mm-resume {
    display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0;
    border: 0; background: none; padding: 4px 0; text-align: left; font: inherit; color: var(--mm-encre); cursor: pointer;
  }
  .mm-resume svg { width: 18px; height: 18px; stroke-width: 2.4; flex: none; }
  .mm-resume span { display: flex; flex-direction: column; min-width: 0; }
  .mm-resume b { font-size: .92rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mm-resume small { font-size: .78rem; color: var(--mm-gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mm-resume__filtres {
    display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%;
    border: 1.5px solid var(--mm-encre); background: #fff; color: var(--mm-encre); cursor: pointer; margin-left: 8px;
  }
  .mm-resume__filtres svg { width: 17px; height: 17px; stroke-width: 2; }
  /* Toucher le resume le deplie sur le champ « Ou » */
  .mm-recherche.is-saisie .mm-resume { display: none; }
  .mm-recherche.is-saisie .mm-seg--ou { display: flex; flex: 1 1 auto; }
  /* Au toucher, le survol restait collé : un fond lavande serré autour du
     texte, presque contre le bord de la pilule. Pas de survol ici, et la
     loupe du résumé reste devant la saisie, le texte ne saute pas. */
  .mm-seg--ou:hover { background: none; }
  .mm-recherche.is-saisie .mm-seg--ou { padding-left: 0; }
  .mm-recherche.is-saisie .mm-ou input {
    padding-left: 30px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304024D' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m20 20-4.5-4.5'/%3E%3C/svg%3E") left center / 18px no-repeat;
  }
  .mm-ou input { font-size: 16px; }
  .mm-filtres-btn { display: none; }
  .mm-raccourcis-ligne { margin-top: 12px; }
  .mm-raccourcis button { height: 38px; font-size: .86rem; padding: 0 16px; }
  .mm-raccourcis-ligne .mm-tri__bouton { height: 38px; font-size: .86rem; }
  .mm-raccourcis-ligne { gap: 8px; }
  .mm-pop--budget, .mm-pop--rdt { left: 0; right: 0; width: auto; }

  /* Plein ecran sur telephone. `100dvh` et non 100 % : la hauteur suit
     la barre d'adresse du navigateur, et le bouton du bas reste visible. */
  .mm-filtres { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh; box-sizing: border-box; border-radius: 0; margin: 0; }
  .mm-filtres__corps { padding: 0 20px; }

  .mm-grille { gap: 28px; }
}
/* ── L'espace investisseur sur la page (js/espace-marche.js) ── */
.mm-enregistrer {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 9px 16px 9px 13px;
  border: 0; border-radius: 999px; background: #405AD2; color: #fff; cursor: pointer;
  font: inherit; font-size: .86rem; font-weight: 600; white-space: nowrap; transition: background .15s;
}
.mm-enregistrer:hover { background: #3449B8; }
.mm-enregistrer:focus-visible { outline: 2px solid #405AD2; outline-offset: 2px; }
.mm-enregistrer svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
/* Déjà enregistrée : la même pastille en bleu clair, la coche à la place du plus. */
.mm-enregistrer.is-fait { background: #EEF0FC; color: #405AD2; }
.mm-enregistrer.is-fait:hover { background: #E2E6FA; }
.mm-bandeau-recherche { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #F2F3FE; color: #1F1E2E; font-size: .9rem; line-height: 1.5; }
.mm-bandeau-recherche a { color: #04024D; font-weight: 600; }
.mm-bandeau-recherche__lien { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: #405AD2; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mm-nouvelle { display: inline-flex; align-items: center; height: 20px; margin-left: 8px; padding: 0 7px; border-radius: 6px; background: #EEF0FC; color: #405AD2; font-size: 11px; font-weight: 700; vertical-align: 2px; }
@media (max-width: 640px) {
  .mm-enregistrer span { display: none; }
  .mm-enregistrer { padding: 8px 10px; }
}
