/* Les montages de défiscalisation (src/montages-defisc.js) : la charte des écrans (src/volume-marche.css, src/flux-bailleurs.css), classes préfixées mdf- */
.mdf { max-width: 1200px; margin: 0 auto; padding: 20px 24px 56px; color: var(--texte); }
.mdf h2 { margin: 0 0 4px; font-size: var(--t-15); font-weight: 600; color: var(--encre); }
.mdf .vm-cles { margin-bottom: 12px; }
.mdf-seg { margin: 4px 0 12px; flex-wrap: wrap; }
.mdf-seg button { display: inline-flex; align-items: center; gap: 6px; }
.mdf-seg small { color: var(--attenue); }
.mdf-pt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.45); }
.mdf-seg .mdf-pt { margin-right: 0; }
.mdf-corps { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.mdf-carte { height: 560px; border-radius: var(--r-moyen); overflow: hidden; box-shadow: inset 0 0 0 1px var(--filet); position: relative; }
.mdf-cote { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mdf-fiche { padding: 12px 14px; border-radius: var(--r-moyen); box-shadow: inset 0 0 0 1px var(--filet); font-size: var(--t-13); line-height: 1.5; }
.mdf-fiche p { margin: 6px 0 0; }
.mdf-fiche small { color: var(--attenue); }
.mdf-cle { color: var(--attenue); margin-right: 6px; }
.mdf-probable { font-style: normal; color: var(--attenue); font-size: var(--t-11); }
.mdf-liste { max-height: 400px; overflow: auto; }
.mdf-liste table { width: 100%; border-collapse: collapse; font-size: var(--t-12); font-variant-numeric: tabular-nums; }
.mdf-liste th, .mdf-liste td { padding: 6px 8px; border-bottom: 1px solid var(--filet); text-align: left; white-space: nowrap; }
.mdf-liste thead th { position: sticky; top: 0; background: var(--panneau); font-size: var(--t-11); font-weight: 500; color: var(--attenue); }
.mdf-liste tbody tr { cursor: pointer; }
.mdf-liste tbody tr:hover, .mdf-liste tbody tr[aria-selected="true"] { background: var(--survol); }
.mdf-liste tbody th { font-weight: 500; color: var(--encre); display: table-cell; }
.mdf-liste .num { text-align: right; }
@media (max-width: 860px) { .mdf { padding: 14px 14px 48px; } .mdf-corps { grid-template-columns: 1fr; } .mdf-carte { height: 380px; } }

/* ── La mise en page de la Carte (Henri, 02/11/2026) : la carte plein écran, la recherche, les KPI et la liste en verre dépoli par-dessus ── */
.mdf-chat { margin: 24px; font-size: var(--t-13); color: transparent; -webkit-text-fill-color: transparent; background-image: linear-gradient(90deg, transparent calc(50% - 40px), var(--encre), transparent calc(50% + 40px)), linear-gradient(var(--discret), var(--discret)); background-size: 250% 100%, auto; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; animation: d2-chat 1.4s linear infinite; width: max-content; }
.mdf-recherche { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: var(--r-panneau); background: var(--verre-plein); box-shadow: 0 12px 32px rgba(0, 0, 0, .22), var(--verre-filet); -webkit-backdrop-filter: var(--verre-flou); backdrop-filter: var(--verre-flou); color: var(--attenue); }
.mdf-recherche svg { flex: none; width: 16px; height: 16px; }
.mdf-recherche input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; box-shadow: none; color: var(--encre); font: inherit; font-size: var(--t-14); }
.mdf-recherche input::placeholder { color: var(--discret); }
.mdf-recherche:focus-within { box-shadow: 0 12px 32px rgba(0, 0, 0, .22), 0 0 0 1px var(--encre); }
.mdf-aide { margin: 4px 0 0; font-size: var(--t-12); line-height: 1.45; color: var(--attenue); }
.mdf-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 10px; }
.mdf-kpis > div { padding: 9px 10px; border-radius: var(--r-moyen); background: color-mix(in srgb, var(--encre) 6%, transparent); box-shadow: inset 0 0 0 1px var(--filet); }
.mdf-kpis span { display: block; font-size: var(--t-11); line-height: 1.3; color: var(--attenue); }
.mdf-kpis b { display: block; margin-top: 3px; font-size: var(--t-17, 17px); font-weight: 600; color: var(--encre); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .coq-ecran.coq-plein .coq-panneau { inset: 0; border-radius: 0; background: none; box-shadow: none; }
  .coq-ecran.coq-plein .coq-barre { display: none; }
  .coq-ecran.coq-plein .coq-reg { position: absolute; inset: 0; }
  .mdf.mdf-plein { position: absolute; inset: 0; max-width: none; margin: 0; padding: 0; }
  .mdf-plein .mdf-carte { position: absolute; inset: 0; height: auto; border-radius: 0; box-shadow: none; }
  .mdf-plein .mdf-recherche { position: absolute; z-index: 5; top: 12px; left: 12px; width: 440px; }
  .mdf-plein .mdf-kp { position: absolute; z-index: 5; top: 68px; left: 12px; width: 440px; max-height: calc(100% - 80px); overflow: auto; padding: 14px 16px; }
  .mdf-plein .mdf-kp h2 { margin: 0; font-size: var(--t-13); font-weight: 600; }
  .mdf-plein .mdf-cote { position: absolute; z-index: 5; top: 12px; right: 12px; bottom: 12px; width: min(480px, 38%); padding: 12px 14px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
  .mdf-plein .mdf-liste { flex: 1; min-height: 0; max-height: none; overflow: auto; }
  .mdf-plein .mdf-liste thead th { background: transparent; -webkit-backdrop-filter: var(--verre-flou); backdrop-filter: var(--verre-flou); }
  .mdf-plein .mdf-fiche { background: color-mix(in srgb, var(--encre) 6%, transparent); }
  .mdf-plein .fc-outils { position: absolute; top: 12px; right: calc(min(480px, 38%) + 24px); left: auto; }
  .mdf-plein .maplibregl-ctrl-bottom-right { right: calc(min(480px, 38%) + 12px); }
  .mdf-plein .maplibregl-ctrl-bottom-left { left: 12px; }
}
@media (max-width: 899px) { .mdf-plein .mdf-recherche { margin: 0 0 10px; } .mdf-plein .mdf-kp, .mdf-plein .mdf-cote { margin: 0 0 10px; padding: 12px 14px; } .mdf-plein .mdf-carte { height: 380px; margin: 0 0 10px; } .mdf-plein { padding: 14px 14px 48px; } }
