/**
 * Badges de statut — identité DASSOUSCAN (coral #ff1f3f + orange scan #ff9500, fond sombre type bandeau).
 */

.dsc-site-header__profile-cluster {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sidebar .dsc-profile-badge-row {
  display: flex;
  justify-content: center;
  margin: 10px 0 6px;
}

/* --- Base : même ADN que .dsc-site-header / logo fallback --- */
.dsc-sub-badge {
  --dsc-badge-coral: #ff1f3f;
  --dsc-badge-amber: #ff9500;
  --dsc-badge-panel-t: rgba(15, 16, 26, 0.94);
  --dsc-badge-panel-b: rgba(7, 8, 13, 0.92);

  position: relative;
  display: inline-flex;
  align-items: stretch;
  text-decoration: none;
  vertical-align: middle;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(240, 242, 252, 0.96);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.75),
    0 0 20px rgba(255, 31, 63, 0.12);
  isolation: isolate;
  overflow: hidden;
  cursor: inherit;

  background:
    radial-gradient(900px 200px at 12% -20%, rgba(255, 31, 63, 0.22), transparent 55%),
    radial-gradient(700px 180px at 92% 120%, rgba(255, 149, 0, 0.14), transparent 60%),
    linear-gradient(180deg, var(--dsc-badge-panel-t), var(--dsc-badge-panel-b));
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 31, 63, 0.07) inset,
    0 -1px 0 rgba(255, 149, 0, 0.06) inset;
}

/* Barre latérale type « lien scan » (comme la bordure icône du header) */
.dsc-sub-badge::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 56%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--dsc-badge-coral), var(--dsc-badge-amber));
  box-shadow:
    0 0 12px rgba(255, 31, 63, 0.55),
    0 0 18px rgba(255, 149, 0, 0.25);
  z-index: 2;
  opacity: var(--dsc-badge-notch-opacity, 0.92);
}

/* Léger halon diagonal façon vignette manga */
.dsc-sub-badge__flare {
  position: absolute;
  inset: -50% -30%;
  background: conic-gradient(
    from 200deg at 70% 40%,
    rgba(255, 31, 63, 0.12),
    transparent 28%,
    rgba(255, 149, 0, 0.08),
    transparent 55%
  );
  opacity: 0.85;
  mix-blend-mode: screen;
  pointer-events: none;
}

.dsc-sub-badge__inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px 0 15px;
}

.dsc-sub-badge--sm .dsc-sub-badge__inner {
  gap: 5px;
  padding: 0 10px 0 13px;
  min-height: 30px;
}

.dsc-sub-badge--md .dsc-sub-badge__inner {
  min-height: 36px;
}

a.dsc-sub-badge {
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

a.dsc-sub-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 31, 63, 0.42);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 31, 63, 0.12) inset,
    0 0 24px rgba(255, 31, 63, 0.15);
}

a.dsc-sub-badge:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(15, 16, 26, 0.96),
    0 0 0 5px rgba(255, 31, 63, 0.45),
    0 16px 40px rgba(0, 0, 0, 0.38);
}

.dsc-sub-badge__svg {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(255, 31, 63, 0.35));
}

.dsc-sub-badge__label {
  white-space: nowrap;
  font-size: 10px;
  line-height: 1;
}

.dsc-sub-badge--sm .dsc-sub-badge__label {
  font-size: 8.5px;
  letter-spacing: 0.09em;
}

.dsc-sub-badge--md .dsc-sub-badge__label {
  font-size: 10px;
}

/* Membre — discret, barre notch atténuée */
.dsc-sub-badge--membre {
  --dsc-badge-notch-opacity: 0.55;
  color: rgba(220, 224, 235, 0.92);
}

.dsc-sub-badge--membre .dsc-sub-badge__svg {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.12));
}

/* Premium — halo orange façon boutons « actifs » du site */
.dsc-sub-badge--premium {
  --dsc-badge-notch-opacity: 1;
  border-color: rgba(255, 149, 0, 0.38);
  color: #fff8f0;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.7),
    0 0 18px rgba(255, 149, 0, 0.35);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 94, 0, 0.12) inset,
    0 0 28px rgba(255, 149, 0, 0.12);
}

.dsc-sub-badge--premium .dsc-sub-badge__flare {
  background: radial-gradient(circle at 30% 0%, rgba(255, 217, 120, 0.25), transparent 50%);
}

.dsc-sub-badge--premium .dsc-sub-badge__svg {
  filter: drop-shadow(0 0 8px rgba(255, 149, 0, 0.65));
}

/* Premium spécial — double éclat coral + amber (toujours marque DSC) */
.dsc-sub-badge--premium_special {
  --dsc-badge-notch-opacity: 1;
  border-color: rgba(255, 31, 63, 0.45);
  color: #fff;
  background:
    radial-gradient(520px 120px at 50% -30%, rgba(255, 31, 63, 0.35), transparent 65%),
    radial-gradient(480px 100px at 80% 120%, rgba(255, 149, 0, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(43, 13, 28, 0.92), rgba(12, 8, 16, 0.96));
  box-shadow:
    0 16px 46px rgba(255, 31, 63, 0.18),
    0 0 0 1px rgba(255, 149, 0, 0.1) inset,
    0 0 32px rgba(255, 31, 63, 0.22);
}

.dsc-sub-badge--premium_special::before {
  width: 4px;
  box-shadow:
    0 0 16px rgba(255, 31, 63, 0.75),
    0 0 22px rgba(255, 149, 0, 0.45);
}

.dsc-sub-badge--premium_special .dsc-sub-badge__flare {
  opacity: 1;
}

.dsc-sub-badge--premium_special .dsc-sub-badge__svg {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}

/* Éditeur — orange profil (#f97316) sur base sombre commune */
.dsc-sub-badge--editeur {
  --dsc-badge-notch-opacity: 0.95;
  border-color: rgba(249, 115, 22, 0.42);
  color: rgba(255, 247, 237, 0.98);
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.75),
    0 0 16px rgba(249, 115, 22, 0.25);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(249, 115, 22, 0.1) inset,
    0 0 22px rgba(249, 115, 22, 0.08);
}

.dsc-sub-badge--editeur::before {
  background: linear-gradient(180deg, var(--dsc-badge-coral), #f97316);
}

.dsc-sub-badge--editeur .dsc-sub-badge__svg {
  filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.5));
}

/* Administrateur — même lecture que pill active du bandeau */
.dsc-sub-badge--administrateur {
  --dsc-badge-notch-opacity: 1;
  border-color: rgba(255, 31, 63, 0.55);
  color: #ffeef1;
  background: linear-gradient(180deg, rgba(255, 31, 63, 0.28), rgba(43, 13, 21, 0.72));
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(255, 31, 63, 0.25);
  box-shadow:
    0 14px 36px rgba(255, 31, 63, 0.2),
    0 0 0 1px rgba(255, 31, 63, 0.12) inset,
    0 10px 28px rgba(255, 31, 63, 0.12);
}

.dsc-sub-badge--administrateur .dsc-sub-badge__flare {
  background: radial-gradient(circle at 20% -10%, rgba(255, 200, 210, 0.2), transparent 45%);
  opacity: 0.65;
}

.dsc-sub-badge--administrateur .dsc-sub-badge__svg {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
}

/* Liste des commentaires : badge automatique à côté du pseudo */

.dsc-comments-area {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dsc-comments-title {
  margin: 0 0 16px;
  font-size: 1.125rem;
  font-weight: 800;
  color: rgba(238, 240, 250, 0.95);
}

.dsc-comment-list,
.dsc-comment-list .children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dsc-comment-list .children {
  margin-left: 16px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 31, 63, 0.15);
}

.dsc-comment-item {
  margin: 0 0 14px;
}

.dsc-comment-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(15, 16, 26, 0.75), rgba(7, 8, 13, 0.72));
}

.dsc-comment-card--ping {
  font-size: 13px;
  color: rgba(200, 204, 220, 0.85);
}

.dsc-comment-ping-label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  color: rgba(255, 149, 0, 0.9);
  margin-right: 8px;
}

.dsc-comment-meta {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.dsc-comment-avatar img,
.dsc-comment-avatar .dsc-comment-avatar__img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 31, 63, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.dsc-comment-author-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.dsc-comment-author a {
  color: rgba(246, 248, 255, 0.98);
  font-weight: 800;
  text-decoration: none;
  font-style: normal;
}

.dsc-comment-author a:hover {
  text-decoration: underline;
  color: #ffd2da;
}

.dsc-sub-badge.dsc-sub-badge--in-comment {
  transform: scale(0.92);
  transform-origin: center left;
}

.dsc-comment-meta-sub,
.dsc-comment-meta-sub time {
  font-size: 12px;
  color: rgba(180, 186, 210, 0.75);
}

.dsc-comment-permalink {
  color: inherit;
  text-decoration: none;
}

.dsc-comment-permalink:hover {
  color: rgba(255, 210, 120, 0.95);
}

.dsc-comment-body {
  margin-left: 58px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(225, 228, 240, 0.92);
  word-break: break-word;
}

@media (max-width: 560px) {
  .dsc-comment-body {
    margin-left: 0;
    margin-top: 8px;
  }

  .dsc-comment-meta {
    grid-template-columns: 44px 1fr;
  }
}

.dsc-comment-awaiting {
  font-style: italic;
  color: rgba(255, 179, 0, 0.85);
}

.dsc-comments-closed {
  font-size: 14px;
  color: rgba(180, 186, 210, 0.8);
}

.dsc-comment-card .comment-reply-link {
  display: inline-block;
  margin-top: 10px;
  margin-left: 58px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 31, 63, 0.35);
  background: rgba(255, 31, 63, 0.12);
  color: #ffd2da;
  text-decoration: none;
}

.dsc-comment-card .comment-reply-link:hover {
  border-color: rgba(255, 31, 63, 0.55);
  background: rgba(255, 31, 63, 0.2);
}

@media (max-width: 560px) {
  .dsc-comment-card .comment-reply-link {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .dsc-sub-badge--sm .dsc-sub-badge__label {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
