/* ==== v24_fix.css ==== */
/* ============================================================================
   MSHP Questions-Réponses — correctif v24 (styles)
   Dépliants inertes au clic sur toutes les listes de fiches.

   La BANDE DE THÉMATIQUES (`.qf-themes`) est un FRÈRE de `.qr-fiche-head`,
   pas un enfant : elle n'était couverte par aucun gestionnaire de clic.
   Ces règles la rendent visiblement cliquable et donnent un retour clair.

   Thème MSHP : #ED1C24 / noir / blanc.
   ========================================================================== */

.qr-fiche-head.v24-hit,
.qf-themes.v24-hit {
  cursor: pointer;
}

/* Bande de thématiques : liseré rouge au survol, comme l'en-tête */
.qf-themes.v24-hit:hover {
  background: linear-gradient(90deg, rgba(237, 28, 36, .06), rgba(237, 28, 36, 0));
  box-shadow: inset 3px 0 0 var(--mshp-red, #ED1C24);
}

.qf-themes.v24-hit:focus-visible {
  outline: 2px solid var(--mshp-red, #ED1C24);
  outline-offset: -2px;
}

/* Repère visuel : la fiche ouverte est soulignée de rouge sous l'en-tête */
.qr-fiche.open > .qr-fiche-head {
  border-bottom: 2px solid var(--mshp-red, #ED1C24);
}

.qr-fiche > .qr-fiche-head:focus,
.qr-fiche > .qr-fiche-head:focus-visible {
  outline: 2px solid var(--mshp-red, #ED1C24);
  outline-offset: -2px;
}

/* Le résumé compact ne doit jamais déborder de la fiche */
.qr-fiche-head .v20-sum {
  min-width: 0;
  overflow: hidden;
}

.qr-fiche-head .v20-sum .v20-prev {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .qr-fiche-head .v20-sum {
    gap: 6px;
    font-size: 10.5px;
  }

  .qr-fiche-head .v20-sum .v20-prev {
    flex: 1 1 100%;
  }

  .qf-themes.v24-hit {
    min-height: 34px;
  }
}

/* Barre « Tout déplier / Tout replier » : cible tactile confortable */
.v20-bar .btn,
.v23-bar .btn {
  min-height: 32px;
}
