/* ═══════════════════════════════════════════════════════════════════════
   MES FAVORIS — le bandeau bleu vif, puis les biens suivis en vignettes
   -----------------------------------------------------------------------
   Meme ossature que « Gérer mes biens » (gb-tete, gb-bandeau) et memes
   vignettes que Mes recherches ; le texte reprend la carte des matchs :
   prix en grand, rendement bleu, « Studio ▪ 17 m² ▪ Lyon 3e ».
   Jetons du systeme de design Mandak (classe .gb de espace.css).
   ═══════════════════════════════════════════════════════════════════════ */
.mf .gb-tete { margin-bottom: 20px; }
.mf .gb-bandeau__btn { display: inline-flex; align-items: center; text-decoration: none; }
.mf .gb-bandeau { margin-bottom: 32px; }
/* Le bandeau du conseiller : la question, puis une ligne de contact a la
   maniere d'iOS — photo ronde, nom et role, bouton blanc a droite. */
.mf-conseiller { padding: 16px; }
.mf-conseiller__question { margin: 0 0 12px; font-size: 18px; line-height: 24px; font-weight: 700; color: #fff; }
.mf-conseiller__contact { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .24); }
.mf-conseiller__photo { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, .2); box-shadow: 0 0 0 2px #fff; }
.mf-conseiller__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mf-conseiller__qui { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mf-conseiller__qui b { font-size: 14px; line-height: 20px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-conseiller__qui small { font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-conseiller .gb-bandeau__btn { flex: none; height: 32px; padding: 0 14px; font-size: 13px; }
.mf-h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px !important; }
/* Le nombre dans un carré bleu, en blanc (Nicolas, 01/11). */
.mf-h2 small {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box;
  border-radius: 6px; background: var(--blue, #405ad2); color: #fff;
  font-size: 12px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums;
}

.mf-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: 28px 24px; }
.mf-carte { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mf-carte__lien { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; }
.mf-carte__lien:hover { color: inherit; }
.mf-photo { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--surface-alt); }
.mf-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mf-carte:hover .mf-photo img { transform: scale(1.03); }
/* Plus en ligne : la photo pâlit, le bien reste pour memoire. */
.mf-carte.is-retiree .mf-photo img { filter: grayscale(1); opacity: .55; }

/* Sur la photo : le DPE (rond, sa vraie couleur), le cœur, l'etat du prix. */
.mf-dpe { position: absolute; z-index: 1; top: 8px; left: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 1px 4px rgba(4, 2, 77, .18); }
.mf-dpe.is-pale { color: var(--ink); }
.mf-coeur { position: absolute; z-index: 2; top: 8px; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(4, 2, 77, .16); cursor: pointer; transition: transform .12s; }
.mf-coeur:hover { transform: scale(1.08); }
.mf-coeur:active { transform: scale(.92); }
.mf-coeur svg { width: 17px; height: 17px; fill: var(--blue); stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.mf-etat { position: absolute; z-index: 1; left: 8px; bottom: 8px; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 1px 4px rgba(4, 2, 77, .2); }
.mf-etat--hausse { background: rgba(255, 255, 255, .92); color: var(--ink); }
.mf-etat--retiree { background: var(--ink); }

.mf-carte__texte { display: flex; flex-direction: column; min-width: 0; font-variant-numeric: tabular-nums; }
.mf-carte__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mf-carte__tete b { min-width: 0; font-size: 17px; line-height: 24px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-carte__tete span { flex: none; font-size: 14px; font-weight: 800; color: var(--blue); }
.mf-carte__tete span small { font-size: 12px; font-weight: 600; }
.mf-carte.is-retiree .mf-carte__tete b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.mf-bien { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; }
.mf-bien span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mf-bien i { flex: none; width: 4px; height: 4px; border-radius: 1px; background: var(--coral); }
.mf-carte__date { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--muted); }

@media (max-width: 640px) {
  .mf .gb-bandeau { padding: 16px; }
  .mf-conseiller__question { font-size: 16px; line-height: 22px; }
  .mf-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .mf-carte__tete { flex-direction: column; gap: 0; }
  .mf-carte__tete b { font-size: 16px; line-height: 22px; }
  .mf-bien { font-size: 12px; line-height: 18px; gap: 6px; }
}
