/* ==== v21_features.css ==== */
/* ============================================================================
   MSHP Questions-Réponses — module v21
   Synthèse SG filtrée · validation/transmission · Espace Ministre trié et
   dépliants · lecture/réponse/édition/retour du Ministre.
   Thème MSHP : #ED1C24 / noir / blanc.
   ========================================================================== */

/* ---------- Bloc de synthèse SG (filtrage strict) ---------- */
.v21-sgblock {
  border: 1px solid var(--mshp-border, #e6e8ec);
  border-left: 4px solid var(--mshp-red, #ED1C24);
  border-radius: 10px;
  background: #fff;
  padding: 13px 15px;
  margin: 0 0 12px;
}
.v21-sgblock * { box-sizing: border-box; }
.v21-sghead {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-bottom: 9px; margin-bottom: 10px;
  border-bottom: 1px dashed var(--mshp-border, #e6e8ec);
}
.v21-ref {
  display: inline-flex; align-items: center; gap: 6px;
  background: #111; color: #fff; font-weight: 800; font-size: 12px;
  padding: 3px 10px; border-radius: 6px; letter-spacing: .3px; white-space: nowrap;
}
.v21-dep, .v21-svc {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: #2b3038;
  background: #f4f5f7; border: 1px solid #e6e8ec; border-radius: 999px;
  padding: 3px 10px; white-space: nowrap; max-width: 100%;
}
.v21-dep i, .v21-svc i { font-size: 10px; color: var(--mshp-red, #ED1C24); }
.v21-svc { background: rgba(237, 28, 36, .06); border-color: rgba(237, 28, 36, .2); color: #b3161c; }
.v21-ths { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.v21-st { margin-left: auto; }

.v21-sec { margin: 0 0 10px; }
.v21-sec:last-child { margin-bottom: 0; }
.v21-sec > h4 {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px;
  color: #111; margin: 0 0 6px;
}
.v21-sec > h4 i { color: var(--mshp-red, #ED1C24); font-size: 11px; }
.v21-sec > h4 .n {
  margin-left: auto; font-size: 10.5px; font-weight: 700; color: #6b7280;
  background: #f4f5f7; border-radius: 999px; padding: 1px 8px;
}
.v21-qtext {
  border: 1px solid #e6e8ec; border-left: 3px solid #111; border-radius: 8px;
  background: #fafafa; padding: 10px 12px; font-size: 13px; line-height: 1.65;
  color: #1f242b; white-space: pre-wrap; word-break: break-word;
}
.v21-rt {
  border: 1px solid #e6e8ec; border-left: 3px solid var(--mshp-red, #ED1C24); border-radius: 8px;
  background: #fff; padding: 10px 12px; font-size: 13px; line-height: 1.65;
  color: #1f242b; word-break: break-word; white-space: pre-wrap;
}
.v21-rt-min { border-left-color: #111; background: #fafafa; }

.v21-lab {
  display: block; font-size: 11.5px; font-weight: 600; color: #4b5563; margin: 8px 0 4px;
}
.v21-ta {
  width: 100%; padding: 9px 10px; border: 1px solid #d7dbe0; border-radius: 8px;
  font-family: inherit; font-size: 13px; line-height: 1.6; resize: vertical; min-height: 84px;
}
.v21-ta:focus { outline: none; border-color: var(--mshp-red, #ED1C24); box-shadow: 0 0 0 3px rgba(237, 28, 36, .12); }
.v21-sel {
  padding: 6px 10px; border: 1px solid #d7dbe0; border-radius: 8px;
  font-family: inherit; font-size: 12.5px; background: #fff; max-width: 100%;
}
.v21-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.v21-acts .btn { white-space: nowrap; }

/* ---------- Modale Ministre ---------- */
.v21-mhead {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-bottom: 9px; margin-bottom: 10px;
  border-bottom: 1px dashed var(--mshp-border, #e6e8ec);
}
.v21-hist { list-style: none; margin: 0; padding: 0; }
.v21-hist li {
  position: relative; padding: 0 0 10px 20px;
  border-left: 2px solid #e6e8ec; margin-left: 5px;
}
.v21-hist li:last-child { border-left-color: transparent; padding-bottom: 0; }
.v21-hist li::before {
  content: ''; position: absolute; left: -6px; top: 3px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid #c9ced6;
}
.v21-hist li.last::before { border-color: #16a34a; background: #16a34a; }
.v21-hist .a { font-size: 12.5px; color: #1f242b; line-height: 1.5; }
.v21-hist .m { font-size: 10.5px; color: #6b7280; margin-top: 1px; }
.v21-hist .m b { color: #111; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .v21-sgblock { padding: 11px 12px; }
  .v21-sghead { gap: 6px; }
  .v21-st { margin-left: 0; width: 100%; }
  .v21-dep, .v21-svc { font-size: 11px; padding: 2px 8px; }
  .v21-ref { font-size: 11px; }
  .v21-qtext, .v21-rt { font-size: 12.5px; padding: 9px 10px; }
  .v21-acts .btn { flex: 1 1 100%; justify-content: center; }
  .v21-sel { width: 100%; }
}
