/* ==== src/v28_fix.css ==== */
/* ============================================================================
   MSHP Questions-Réponses — module v28 (styles)
   1. Rubriques du tableau de bord cliquables (.stat-hit)
   2. Onglet « Réponses SG transmises » : vue sélective par député + numérotation
   Thème : #ED1C24 / noir / blanc
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RUBRIQUES DU TABLEAU DE BORD — cliquables
   -------------------------------------------------------------------------- */
.stat.stat-hit,
.stat[data-v28-hit="1"] {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* survol : la rubrique se soulève et son liseré s'épaissit */
.stat.stat-hit:hover,
.stat[data-v28-hit="1"]:hover {
  border-left-width: 6px;
  border-color: var(--mshp-red, #ED1C24);
  background: linear-gradient(180deg, rgba(237, 28, 36, .035), #fff 55%);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(237, 28, 36, .14);
}

/* état enfoncé */
.stat.stat-hit:active { transform: translateY(-1px); }

/* focus clavier : contour rouge net, jamais masqué */
.stat.stat-hit:focus,
.stat.stat-hit:focus-visible {
  outline: 2px solid var(--mshp-red, #ED1C24);
  outline-offset: 2px;
  border-left-width: 6px;
}

/* l'indicateur « mène à une rubrique » */
.stat.stat-hit .v28-go {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 10px;
  color: var(--mshp-red, #ED1C24);
  opacity: 0;
  transition: opacity .18s var(--ease, ease);
  pointer-events: none;
}

.stat.stat-hit:hover .v28-go,
.stat.stat-hit:focus-visible .v28-go { opacity: .85; }

/* mobile : la rubrique reste confortable au doigt */
@media (max-width: 640px) {
  .stat.stat-hit { padding: 12px; }
  .stat.stat-hit:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   2. ONGLET « RÉPONSES SG TRANSMISES »
   -------------------------------------------------------------------------- */
.v28-sg-wrap { display: block; }

/* barre de filtres */
.v28-sg-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--mshp-border, #e5e7eb);
  border-left: 4px solid var(--mshp-red, #ED1C24);
  border-radius: 10px;
  background: #fbfbfc;
  margin-bottom: 14px;
}

.v28-sg-bar .v28-lab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #111;
  white-space: nowrap;
}

.v28-sg-bar select {
  max-width: 280px;
  min-width: 160px;
  flex: 1 1 200px;
}

.v28-sg-bar .v28-count {
  font-size: 12px;
  color: #6b7280;
  margin-left: auto;
}

.v28-sg-bar .v28-count b { color: var(--mshp-red, #ED1C24); }

/* entête de liste : numérotation d'arrivée */
.v28-sg-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 2px 10px;
  border-bottom: 2px solid #111;
  margin-bottom: 10px;
}

.v28-sg-head .t {
  font-size: 13px;
  font-weight: 800;
  color: #111;
}

.v28-sg-head .s {
  font-size: 11.5px;
  color: #6b7280;
}

/* la fiche : le numéro d'arrivée est un carré noir, la référence suit */
.qr-fiche .v28-arr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
  letter-spacing: .3px;
}

.qr-fiche.v28-fiche .qr-fiche-head { cursor: pointer; }

/* bandeau répondant : service / responsable / date de réponse */
.v28-resp {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  padding: 9px 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--mshp-gray, #f4f4f5);
  border-left: 3px solid #111;
  font-size: 11.5px;
  color: #374151;
}

.v28-resp .m {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.v28-resp .m b { color: #111; }

.v28-resp .m i { color: var(--mshp-red, #ED1C24); font-size: 10px; }

.v28-resp .m span.v28-trunc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}

/* état vide */
.v28-empty {
  padding: 26px 14px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}

.v28-empty i {
  display: block;
  font-size: 26px;
  color: #d1d5db;
  margin-bottom: 8px;
}

/* pastille de sélection du député dans le résumé compact */
.v28-dep-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: #111;
  background: #fff;
  border: 1px solid rgba(237, 28, 36, .28);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v28-dep-chip i { color: var(--mshp-red, #ED1C24); font-size: 9px; }

/* mobile : la barre s'empile, le sélecteur prend toute la largeur */
@media (max-width: 720px) {
  .v28-sg-bar { gap: 8px; padding: 10px; }
  .v28-sg-bar select { max-width: 100%; width: 100%; flex: 1 1 100%; }
  .v28-sg-bar .v28-count { margin-left: 0; flex: 1 1 100%; }
  .v28-resp { gap: 6px 10px; padding: 8px 10px; }
  .v28-resp .m span.v28-trunc { max-width: 150px; }
}

/* impression : pas de curseur, pas d'ombre */
@media print {
  .stat.stat-hit { cursor: auto; box-shadow: none; transform: none; }
  .v28-sg-bar { border-left-width: 2px; }
}
