/* La lettre prévue (11/11/2026) : la ligne de la fiche d'une maison et la fenêtre de la lettre (lettre-prevue.js). La charte : blanc, noir, violet. */
.t-fiche-lettre { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; padding: 12px; border-radius: 14px; background: #F4F2FD; }
.t-fl-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #5B37E6; color: #fff; }
.t-fl-ic svg { width: 19px; height: 19px; }
.t-fiche-lettre > div { flex: 1; min-width: 0; }
.t-fiche-lettre small { display: block; font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: #6B6880; }
.t-fiche-lettre b { display: block; font-size: 15px; color: #12131C; }
.t-fiche-lettre span.t-fl-dit { display: block; font-size: 12.5px; line-height: 1.35; color: #4A4860; }
.t-fl-voir { flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: #fff; color: #5B37E6; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer;
  box-shadow: 0 0 0 1px #DCD5FB; }
.t-fl-voir:hover { box-shadow: 0 0 0 1.5px #5B37E6; }

.lpv { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 16px; }
.lpv[hidden] { display: none; }
.lpv-voile { position: absolute; inset: 0; background: rgba(17, 19, 27, .5); opacity: 0; transition: opacity .2s; }
.lpv-boite { position: relative; width: min(720px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 18px 18px 16px; border-radius: 22px; background: #fff;
  box-shadow: 0 40px 80px -30px rgba(17, 19, 27, .6); transform: translateY(14px) scale(.98); opacity: 0; transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.lpv.ouvert .lpv-voile { opacity: 1; } .lpv.ouvert .lpv-boite { transform: none; opacity: 1; }
.lpv-tete { display: flex; align-items: flex-start; gap: 12px; }
.lpv-tete > div { flex: 1; min-width: 0; }
.lpv-sur { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5B37E6; }
.lpv-tete h2 { margin: 2px 0 0; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; color: #12131C; }
.lpv-dit { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: #4A4860; }
.lpv-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: #F4F3F8; color: #2A2838; cursor: pointer; }
.lpv-onglets { display: inline-flex; gap: 2px; margin: 14px 0 12px; padding: 3px; border-radius: 12px; background: #F4F3F8; }
.lpv-onglets button { height: 32px; padding: 0 16px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: #4A4860; cursor: pointer; }
.lpv-onglets button[aria-selected="true"] { background: #fff; color: #5B37E6; box-shadow: 0 1px 3px rgba(17, 19, 27, .12); }
.lpv-feuille { border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px #ECE8F8, 0 24px 50px -28px rgba(17, 19, 27, .45); overflow: hidden; min-height: 200px; }
.lpv-feuille svg { display: block; width: 100%; height: auto; }
.lpv-charge { margin: 0; padding: 80px 20px; text-align: center; color: #6B6880; font-size: 14px; }
.lpv-note { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: #6B6880; }
@media (max-width: 760px) { .lpv { padding: 0; align-items: end; } .lpv-boite { width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; padding: 16px 14px 14px; } .lpv-tete h2 { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .lpv-boite, .lpv-voile { transition: none; } }

/* ═══ 13/11/2026 — la lettre prévue sur CHAQUE carte de la liste (Alexis : « on ne voit pas quelle lettre sera envoyée à chaque maison ») ═══
   v2.js (ligneLettre) : « L'IA lui écrit : Par la valeur · Voir la lettre », comme dans l'application ; le bouton ouvre l'exemple réel. */
#maisListe > li.t-m > .t-ml { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: -2px 12px 12px; padding: 6px 12px 6px 6px; min-height: 40px;
  border: 0; border-radius: 12px; background: #F6F5FA; color: #12131C; font: inherit; font-size: 13px; line-height: 1.25; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background .15s, box-shadow .15s; }
#maisListe > li.t-m > .t-ml:hover { background: #EFEBFF; }
#maisListe > li.t-m > .t-ml:focus-visible { outline: 2px solid #5B37E6; outline-offset: 2px; }
.t-ml-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #5B37E6; color: #fff; }
.t-ml-ic svg { width: 16px; height: 16px; }
.t-ml-t { flex: 1; min-width: 0; color: #5A5770; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-ml-t b { color: #12131C; font-weight: 700; }
.t-ml-voir { flex: none; display: inline-flex; align-items: center; gap: 6px; color: #5B37E6; font-weight: 650; }
.t-ml-voir::after { content: ""; width: 6px; height: 6px; margin-top: 1px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }

/* le téléphone : dans le paquet, la lettre se lit avant le grand bouton (« Écrire à cette maison ») ; dans la liste, une ligne fine sous la maison */
@media (max-width: 760px) {
  #ecranResultat.tf15 #maisListe > li.t-m > .t-m-l { order: 0; }
  #ecranResultat.tf15 #maisListe > li.t-m > .t-ml { order: 1; margin: 0; min-height: 46px; padding: 7px 14px 7px 7px; border-radius: 14px; font-size: 14px; }
  #ecranResultat.tf15 #maisListe > li.t-m > .t-m-ajout { order: 2; }
  #ecranResultat.tf15 .t-ml-ic { width: 32px; height: 32px; border-radius: 10px; }
  #ecranResultat.tf15 .t-ml-t { white-space: normal; }
  #ecranResultat.tf15 .t-ml-sur { display: block; font-size: 11.5px; font-weight: 600; color: #6B6880; }
  #ecranResultat.tf15 .t-ml-t b { display: block; font-size: 14.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #ecranResultat.tf15 .t-ml-x { display: none; }
  #ecranResultat.tf15 .t-ml-voir { height: 32px; padding: 0 10px 0 13px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px #DCD5FB; font-size: 14px; }
  #ecranResultat.tf15 #maisListe > li.t-m > .t-ml:active { background: #EFEBFF; transform: scale(.985); }
  #ecranResultat.tf15.tf-liste #maisListe > li.t-m > .t-ml { order: 3; min-height: 38px; padding: 5px 12px 5px 5px; border-radius: 11px; font-size: 13px; }
  #ecranResultat.tf15.tf-liste .t-ml-ic { width: 28px; height: 28px; border-radius: 8px; }
  #ecranResultat.tf15.tf-liste .t-ml-sur { display: inline; font-size: 13px; font-weight: 400; color: #5A5770; }
  #ecranResultat.tf15.tf-liste .t-ml-t b { display: inline; font-size: 13px; }
  #ecranResultat.tf15.tf-liste .t-ml-t { white-space: nowrap; }
  #ecranResultat.tf15.tf-liste .t-ml-voir { height: auto; padding: 0; background: none; box-shadow: none; font-size: 13px; }
}
