/* ===== Demandes ===== */
.demande-shell,
.demande-scroll {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.demande-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  gap: 14px;
  padding: 4px 6px 12px;
  overscroll-behavior: contain;
}

.demande-type-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.demande-step-title {
  margin: 0 0 4px !important;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #ffe9a8;
}

.demande-step-hint {
  margin: 0 0 14px !important;
  color: var(--muted) !important;
  font-size: 0.95rem !important;
}

.demande-type-picker[hidden],
.demande-form[hidden],
.demande-step-head[hidden] {
  display: none !important;
}

.demande-type-card {
  text-align: left;
  padding: 22px 18px;
  border-radius: 14px;
  border: 1px solid rgba(224, 177, 35, 0.35);
  background: rgba(0, 0, 0, 0.38);
  color: var(--text);
  display: grid;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.demande-type-card:hover {
  transform: translateY(-1px);
  border-color: rgba(224, 177, 35, 0.7);
}

.demande-type-card .evt-ico {
  width: 22px;
  height: 22px;
  color: #ffe9a8;
}

.demande-type-card strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.demande-type-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.demande-form {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.demande-form[hidden] {
  display: none !important;
}

.demande-form h4 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.demande-back {
  justify-self: start;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-opt {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
}

.chip-opt.is-active {
  border-color: rgba(224, 177, 35, 0.75);
  background: rgba(224, 177, 35, 0.18);
  color: #ffe9a8;
}

.media-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.media-preview figure {
  margin: 0;
  width: 110px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  position: relative;
}

.media-preview img,
.media-preview video {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}

.media-audio-chip {
  height: 72px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(224, 177, 35, 0.25), rgba(0, 0, 0, 0.6));
  color: #ffe9a8;
  font-weight: 800;
  font-size: 0.85rem;
}

.media-preview figcaption {
  font-size: 0.72rem;
  padding: 4px 6px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.media-remove:hover {
  background: rgba(242, 63, 67, 0.9);
}

.field-hint {
  margin: 4px 0 0 !important;
  color: var(--muted) !important;
  font-size: 0.82rem !important;
}

.media-audio-tile {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 200px;
  border-radius: 12px;
  border: 1px solid rgba(224, 177, 35, 0.35);
  background: linear-gradient(145deg, rgba(224, 177, 35, 0.18), rgba(0, 0, 0, 0.55));
  color: #ffe9a8;
  cursor: pointer;
  padding: 16px;
  text-align: center;
}

.media-audio-tile span {
  font-size: 2rem;
}

.media-audio-tile em {
  font-style: normal;
  font-size: 0.9rem;
  word-break: break-word;
}

.lightbox-audio-wrap {
  pointer-events: auto;
  width: min(720px, 92vw);
  padding: 28px;
  border-radius: 16px;
  background: rgba(16, 16, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 16px;
  justify-items: stretch;
}

.lightbox-audio-wrap p {
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffe9a8;
}

.lightbox-audio {
  width: 100%;
}

.demande-admin-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.demande-admin-list {
  display: grid;
  gap: 10px;
}

.demande-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(224, 177, 35, 0.22);
  background: rgba(0, 0, 0, 0.28);
}

.demande-row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.demande-row-top strong {
  font-size: 1rem;
}

.demande-row-top p {
  margin: 4px 0 0 !important;
  color: var(--muted) !important;
  font-size: 0.9rem !important;
}

.demande-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.demande-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demande-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.demande-status-pill.is-pending { color: #ffd27a; border-color: rgba(255, 210, 122, 0.4); }
.demande-status-pill.is-en_traitement { color: #8ec8ff; border-color: rgba(142, 200, 255, 0.45); }
.demande-status-pill.is-transfert { color: #d2b8ff; border-color: rgba(210, 184, 255, 0.45); }
.demande-status-pill.is-accepted { color: #7dffb3; border-color: rgba(125, 255, 179, 0.45); }
.demande-status-pill.is-refused { color: #ff8b8b; border-color: rgba(255, 139, 139, 0.45); }

.demande-view-card {
  width: min(1180px, calc(100% - 24px)) !important;
  max-width: none !important;
  height: min(92vh, 920px);
  max-height: min(92vh, 920px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
}

.demande-view-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.demande-view-head h3 {
  margin: 6px 0 0;
  font-size: 1.35rem;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

.demande-view-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 10, 0.98);
  flex-shrink: 0;
}

.demande-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.demande-kv {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.demande-kv span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.demande-kv strong {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.demande-kv.is-full {
  grid-column: 1 / -1;
}

.demande-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.demande-media-grid img,
.demande-media-grid video {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  height: 200px;
  max-height: none;
  object-fit: cover;
  cursor: zoom-in;
}

.demande-admin-hint {
  margin: 0 0 12px !important;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(142, 200, 255, 0.28);
  background: rgba(142, 200, 255, 0.08);
  color: #cfe6ff !important;
  font-size: 0.9rem !important;
  line-height: 1.4;
  flex-shrink: 0;
}

.demande-admin-hint em {
  font-style: normal;
  font-weight: 800;
  color: #8ec8ff;
}

#nav-ma-demande[hidden] {
  display: none !important;
}

.nav-ma-demande {
  border-color: transparent !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text) !important;
}

.nav-ma-demande:hover,
.nav-ma-demande.is-active {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

.demande-media-grid img:hover,
.demande-media-grid video:hover {
  outline: 2px solid rgba(224, 177, 35, 0.55);
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
}

.media-lightbox[hidden] {
  display: none !important;
}

.media-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.media-lightbox-stage {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 20px 20px;
  box-sizing: border-box;
  pointer-events: none;
}

.media-lightbox-stage .lightbox-media,
.media-lightbox-stage img,
.media-lightbox-stage video {
  pointer-events: auto;
  width: 98vw;
  height: 96vh;
  max-width: 98vw;
  max-height: 96vh;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.media-lightbox-stage video.lightbox-media {
  width: 98vw;
  height: 96vh;
  background: #000;
}

.media-lightbox-stage video.lightbox-media::-webkit-media-controls-panel {
  display: flex !important;
  opacity: 1 !important;
}

.media-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.55rem;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}

.media-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  z-index: 2;
  cursor: pointer;
  pointer-events: auto;
}

.media-lightbox-nav.is-prev {
  left: 18px;
}

.media-lightbox-nav.is-next {
  right: 18px;
}

.media-lightbox-nav[hidden],
.media-lightbox-counter[hidden] {
  display: none !important;
}

.media-lightbox-counter {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e8eaed;
  font-size: 0.82rem;
  font-weight: 700;
  pointer-events: none;
}

.demande-view-body {
  padding: 20px 22px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 0;
  min-height: 0;
  -webkit-app-region: no-drag;
}

@media (max-width: 900px) {
  .demande-type-picker {
    grid-template-columns: 1fr;
  }

  .demande-kv-grid {
    grid-template-columns: 1fr;
  }

  .demande-view-card {
    width: calc(100% - 16px) !important;
    height: 94vh;
    max-height: 94vh;
  }
}

.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #e0b123;
  color: #111;
  font-size: 0.75rem;
  font-weight: 800;
}

#registre-badge {
  background: #e24b4b;
  color: #fff;
  flex-shrink: 0;
}

#registre-badge[hidden] {
  display: none !important;
}

.admin-panel {
  display: none !important;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.admin-panel.is-active {
  display: flex !important;
  flex-direction: column;
}

#demande-view-modal .modal-card.demande-view-card {
  width: min(1180px, calc(100% - 24px)) !important;
  max-width: none !important;
}

/* ===== Signalements ===== */
.report-card {
  width: min(480px, calc(100% - 28px));
  padding: 20px 20px 18px;
}

.report-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 16px;
}

.report-progress-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.report-progress-dot.is-active,
.report-progress-dot.is-done {
  background: #ff4d4d;
  border-color: rgba(255, 120, 120, 0.7);
  transform: scale(1.15);
}

.report-progress-line {
  width: 36px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.report-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.report-flag-ico {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ff4d4d;
  background: linear-gradient(160deg, rgba(255, 60, 60, 0.22), rgba(80, 10, 16, 0.35));
  border: 1px solid rgba(255, 90, 90, 0.4);
}

.report-flag-ico svg {
  width: 20px;
  height: 20px;
}

.report-card-head h3 {
  margin: 0 0 4px;
  font-size: 1.12rem;
}

.report-card #report-target-label {
  margin: 0;
  color: var(--muted, #9aa0a6);
  font-size: 0.86rem;
}

.report-step[hidden] {
  display: none !important;
}

.report-confirm-text {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.4;
  color: #f2f4f7;
}

.report-confirm-hint,
.report-step-sub {
  margin: 0 0 16px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted, #9aa0a6);
}

.report-section-label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ff8f8f;
}

.report-choice-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.report-choice {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.report-choice:hover {
  border-color: rgba(255, 120, 120, 0.4);
  background: rgba(255, 70, 70, 0.08);
}

.report-choice.is-active {
  border-color: rgba(255, 90, 90, 0.7);
  background: rgba(255, 60, 60, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 100, 100, 0.2);
}

.report-choice-ico {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.report-choice-ico::before,
.report-choice-ico::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
}

.report-ico-photo::before {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #ffb0b0;
}

.report-ico-photo::after {
  width: 22px;
  height: 14px;
  border-radius: 4px;
  border: 2px solid #ffb0b0;
  top: 4px;
}

.report-ico-banner::before {
  width: 22px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 120, 120, 0.55), rgba(255, 180, 120, 0.35));
  border: 1px solid rgba(255, 160, 160, 0.45);
}

.report-ico-bio::before {
  width: 18px;
  height: 2px;
  background: #ffb0b0;
  box-shadow: 0 5px 0 #ffb0b0, 0 10px 0 #ffb0b0;
  top: -4px;
}

.report-choice strong {
  font-size: 0.92rem;
}

.report-choice em {
  grid-column: 2;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted, #9aa0a6);
}

.report-reasons {
  margin-bottom: 14px;
}

.report-reasons .chip-opt.is-active {
  border-color: rgba(255, 90, 90, 0.65);
  background: rgba(255, 70, 70, 0.16);
  color: #ffc9c9;
}

.report-actions {
  margin-top: 4px;
}

.report-submit {
  background: linear-gradient(135deg, #d62828, #9b1c1c) !important;
  border-color: rgba(255, 120, 120, 0.35) !important;
}

.signalement-admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px 12px;
}

.signalement-row {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.signalement-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.signalement-row-top strong {
  display: block;
  font-size: 0.95rem;
}

.signalement-row-top p {
  margin: 4px 0 0;
  color: var(--muted, #9aa0a6);
  font-size: 0.82rem;
}

.signalement-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.8rem;
  color: #c8cdd3;
  margin-bottom: 8px;
}

.signalement-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.signalement-target-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 210, 122, 0.12);
  border: 1px solid rgba(255, 210, 122, 0.35);
  color: #ffd27a;
}

.signalement-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.demande-status-pill.is-resolved {
  color: #7dffb3;
  border-color: rgba(125, 255, 179, 0.45);
}

.demande-status-pill.is-rejected {
  color: #ff8b8b;
  border-color: rgba(255, 139, 139, 0.45);
}
