/* ============================================================================
   pmfunnel.css — [PMFUNNEL 2026-06-12] Biens de sociétés V2 (entonnoir + terrain)
   100 % ADDITIF, préfixe pmf- partout (zéro collision — leçon sandbox-mode.css).
   Le panneau hôte reste #opsem-pm (semaine.css) : ici seulement les écrans V2.
   Couleur mission : VERT #16a34a via --opsem-mission-color (habillage D-bis).
   ============================================================================ */

/* ------------------------------------------------------------ en-têtes ⓘ */
.pmf-head {
  display: flex; align-items: center; gap: 8px;
  margin: 14px 2px 10px;
}
.pmf-q { font-size: 15px; font-weight: 800; color: #0f172a; }
/* [PMTYPE 2026-06-14] titre-question de l'écran B, plus appuyé qu'un simple label */
.pmf-q-big { font-size: 18px; line-height: 1.3; }
.pmf-i {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid #cbd5e1; background: #fff; color: #64748b;
  font-size: 12px; font-weight: 800; font-style: italic; font-family: Georgia, serif;
  line-height: 1; cursor: pointer; padding: 0;
}
.pmf-chg {
  margin-left: auto; border: 0; background: none; color: #16a34a;
  font-size: 13px; font-weight: 800; cursor: pointer; padding: 6px 4px;
}
.pmf-rueshead { flex-wrap: wrap; }
.pmf-sec {
  margin: 16px 2px 8px; font-size: 12px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; color: #64748b;
}

/* ------------------------------------------- écran A — rangées communes */
.pmf-list { display: flex; flex-direction: column; gap: 8px; }
.pmf-row {
  display: flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 0 14px;
  border: 1px solid #e2e8f0; border-radius: 14px; background: #fff;
  font-size: 15.5px; cursor: pointer; text-align: left;
}
.pmf-row:disabled { opacity: .45; cursor: default; }
.pmf-row .nm { font-weight: 700; color: #0f172a; flex: 1 1 auto; min-width: 0; }
.pmf-row .ct { font-weight: 800; color: #15803d; font-variant-numeric: tabular-nums; }

/* -------------------------------------- écran B — 4 cartes gros chiffres */
.pmf-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.pmf-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 108px; padding: 12px 14px;
  /* [PMTYPE 2026-06-14] affordance bouton nette : bordure plus marquée + transition */
  border: 2px solid #cbd5e1; border-radius: 16px; background: #fff;
  cursor: pointer; text-align: left;
  transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.pmf-card:hover:not(:disabled) { border-color: #16a34a; box-shadow: 0 2px 10px rgba(22,163,74,.14); }
.pmf-card:active:not(:disabled) { background: #f0fdf4; }
.pmf-card:disabled { opacity: .45; cursor: default; }
/* chevron : signale clairement « ce bloc est un bouton qu'on active » */
.pmf-card .pmf-chev { flex: 0 0 auto; font-size: 20px; font-weight: 800; color: #94a3b8; line-height: 1; }
.pmf-card .top { display: flex; align-items: center; gap: 6px; width: 100%; }
.pmf-card .lb { font-size: 14.5px; font-weight: 800; color: #0f172a; flex: 1 1 auto; }
.pmf-card .big {
  font-size: 30px; font-weight: 800; color: #15803d; line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.pmf-card .sub { font-size: 12px; color: #64748b; font-weight: 600; }
/* [PMTYPE 2026-06-14] ÉTAT SÉLECTIONNÉ évident : carte du type choisi = vert PRO
   plein + texte blanc (contraste fort vs les cartes non-sélectionnées en contour).
   Remplace l'ancien faux « pré-sélectionné » SCI (fond vert pâle) qui laissait
   croire que SCI était déjà coché. SCI n'a plus d'appui visuel par défaut. */
.pmf-card.is-sel {
  border-color: #15803d; background: #16a34a;
  box-shadow: 0 4px 14px rgba(22,163,74,.30);
}
.pmf-card.is-sel .lb,
.pmf-card.is-sel .big,
.pmf-card.is-sel .sub,
.pmf-card.is-sel .pmf-chev { color: #ffffff; }
.pmf-card.is-sel .pmf-i { border-color: rgba(255,255,255,.7); background: transparent; color: #ffffff; }

/* ------------------------ écran C — rues classées, cases, état « faite » */
.pmf-rue {
  display: flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 12px;
  border: 1px solid #e2e8f0; border-radius: 13px; background: #fff;
  font-size: 15px; cursor: pointer; text-align: left;
}
.pmf-rue .cb {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px;
  border: 2px solid #cbd5e1; background: #fff; color: transparent;
  display: inline-flex; align-items: center; justify-content: center;
}
.pmf-rue .cb svg { width: 15px; height: 15px; }
.pmf-rue .cb.on { background: #16a34a; border-color: #16a34a; color: #fff; }
.pmf-rue .nm {
  flex: 1 1 auto; min-width: 0; font-weight: 700; color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pmf-rue .ct {
  font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; gap: 4px;
}
.pmf-rue .ct .hot { font-style: normal; font-size: 14px; }
.pmf-rue .st { font-size: 12.5px; font-weight: 700; color: #64748b; }
.pmf-rue.done { opacity: .62; background: #f8fafc; }
.pmf-rue.done .nm { color: #475569; }
.pmf-sep { height: 1px; background: #e2e8f0; margin: 10px 2px; }
/* hub « Ta tournée » */
.pmf-rue.go .dot {
  flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%;
  background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .18);
}
.pmf-rue.go .chev { color: #94a3b8; font-size: 18px; font-weight: 800; }
.pmf-rue.go.cur { border-color: #16a34a; }
.pmf-rue.done .ck { color: #16a34a; font-weight: 800; }

/* -------------------------------- pied : compteur vivant + Lancer (vert) */
#pmf-foot {
  flex: 0 0 auto; padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #e2e8f0; background: #fff;
  display: flex; flex-direction: column; gap: 8px;
}
#pmf-foot[hidden] { display: none; }
#pmf-foot .cnt {
  font-size: 14px; font-weight: 800; color: #0f172a; text-align: center;
  font-variant-numeric: tabular-nums;
}
#pmf-foot .cnt .tm { color: #15803d; }
#pmf-foot .modes { display: flex; gap: 6px; justify-content: center; }
#pmf-foot .md {
  min-height: 34px; padding: 0 10px; border-radius: 10px;
  border: 1px solid #e2e8f0; background: #fff; color: #475569;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
  font-variant-numeric: tabular-nums;
}
#pmf-foot .md.on { border-color: #16a34a; color: #15803d; background: #f0fdf4; }
#pmf-foot .go {
  min-height: 50px; border: 0; border-radius: 13px;
  background: #16a34a; color: #fff; font-size: 16px; font-weight: 800; cursor: pointer;
}
#pmf-foot .go:disabled { opacity: .45; cursor: default; }
#pmf-foot .end {
  min-height: 42px; border: 0; border-radius: 11px;
  background: #f1f5f9; color: #334155; font-size: 14px; font-weight: 800; cursor: pointer;
}

/* --------------------- dock terrain VERT — UNE action (famille mapret) ---
   En HAUT au centre ; le bas de la carte reste LIBRE (règle BOITAGE1 :
   aucun contrôle natif recouvert — toggle boîtage bas-gauche, valider
   bas-droit). Couleur par variable mission (opsemSetMissionColor 'pm'). */
#pmf-dock {
  position: fixed; top: calc(10px + env(safe-area-inset-top));
  left: 10px; right: 10px; z-index: 9290; pointer-events: none;
}
#pmf-dock[hidden] { display: none; }
#pmf-dock > button {
  pointer-events: auto; display: block; width: 100%;
  min-height: 50px; border: 0; border-radius: 14px;
  background: var(--opsem-mission-color, #16a34a); color: #fff;
  font-size: 16px; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .28);
  text-align: left; padding: 0 16px;
}
#pmf-dock .pd-sub {
  pointer-events: none; margin: 6px 4px 0; font-size: 12.5px; font-weight: 700;
  color: #0f172a; background: rgba(255, 255, 255, .92); border-radius: 9px;
  padding: 6px 10px; display: inline-block;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .15);
}
#pmf-dock .pd-sub:empty { display: none; }

/* desktop : dock aligné sur la colonne des panneaux (modèle recherche) */
@media (min-width: 900px) {
  #pmf-dock { left: 450px; right: auto; width: 360px; }
  .pmf-cards { max-width: 520px; }
}
