/* ============================================================
   08-FORUMS — Forums
   Fait partie de : poudlard-refondu (split modulaire)
   ============================================================ */

/* PARCHEMIN ANCIEN — Effet global forum
   -------------------------------------------------------------------------- */

/* Force le main à créer un stacking context au-dessus du body::before/after (z-index:0) */
main.content:has(.forum-parchment) {
  position: relative !important;
  z-index: 1 !important;
}

/* Le fond du .forum-parchment est géré en inline via includes/parchment-open.php
   pour éviter les problèmes de spécificité CSS */
.forum-parchment {
  color: #2a1a08;
  isolation: isolate;
}

/* ── Ornements de coins — SVG arabesques inline ── */
.forum-parchment .parch-corner {
  position: absolute;
  width: 80px;
  height: 80px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23503015'%3E%3Cpath d='M0 2Q10 0 55 2Q50 4 40 5Q30 5.5 22 7Q14 9 8 14Q5 18 4 24L2 24Q3 16 7 10Q12 5 20 3Q28 2 0 2Z' opacity='.7'/%3E%3Cpath d='M2 0Q0 10 2 55Q4 50 5 40Q5.5 30 7 22Q9 14 14 8Q18 5 24 4L24 2Q16 3 10 7Q5 12 3 20Q2 28 2 0Z' opacity='.7'/%3E%3Cpath d='M0 0Q2 8 6 6Q8 2 0 0Z' opacity='.5'/%3E%3Cpath d='M18 12Q22 8 28 10Q24 14 20 16Q16 14 18 12Z' opacity='.5'/%3E%3Cpath d='M12 18Q8 22 10 28Q14 24 16 20Q14 16 12 18Z' opacity='.5'/%3E%3Ccircle cx='10' cy='10' r='2.5' opacity='.6'/%3E%3Cpath d='M10 5L12.5 10L10 15L7.5 10Z' opacity='.3'/%3E%3Ccircle cx='20' cy='4' r='1' opacity='.4'/%3E%3Ccircle cx='4' cy='20' r='1' opacity='.4'/%3E%3Ccircle cx='30' cy='3' r='.8' opacity='.3'/%3E%3Ccircle cx='3' cy='30' r='.8' opacity='.3'/%3E%3Ccircle cx='40' cy='2.5' r='.6' opacity='.25'/%3E%3Ccircle cx='2.5' cy='40' r='.6' opacity='.25'/%3E%3C/g%3E%3Cg fill='none' stroke='%23503015'%3E%3Cpath d='M0 8Q4 6 8 0' stroke-width='.8' opacity='.4'/%3E%3Cpath d='M0 16Q8 12 16 0' stroke-width='.5' opacity='.3'/%3E%3C/g%3E%3C/svg%3E") no-repeat center/contain;
}
.forum-parchment .parch-corner.tl { top: 4px; left: 4px; }
.forum-parchment .parch-corner.tr { top: 4px; right: 4px; transform: scaleX(-1); }
.forum-parchment .parch-corner.bl { bottom: 4px; left: 4px; transform: scaleY(-1); }
.forum-parchment .parch-corner.br { bottom: 4px; right: 4px; transform: scale(-1,-1); }

/* ── Bordure haute — double ligne dorée ── */
.forum-parchment::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background:
    linear-gradient(to bottom,
      rgba(80,48,21,0.50) 0px, rgba(80,48,21,0.50) 1px,
      transparent 1px, transparent 3px,
      rgba(80,48,21,0.25) 3px, rgba(80,48,21,0.25) 4px,
      transparent 4px);
  border-radius: 4px 4px 0 0;
  z-index: 2;
}

/* ── Sceau de cire — centré sur le contenu principal ── */
.forum-parchment::after {
  content: 'P';
  position: absolute;
  top: -16px;
  left: calc(50% + 4px);
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: radial-gradient(circle at 36% 30%,
    #d84848 0%, #c03535 18%, #9a2222 40%, #701818 65%, #4a0e0e 100%);
  border-radius: 52% 48% 50% 50% / 48% 52% 48% 52%;
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 900;
  color: rgba(255,210,160,0.45);
  line-height: 36px;
  text-align: center;
  box-shadow:
    inset 0 2px 5px rgba(255,190,150,0.25),
    inset 0 -4px 8px rgba(0,0,0,0.45),
    inset 2px 0 4px rgba(255,190,150,0.08),
    0 4px 15px rgba(0,0,0,0.65),
    0 1px 4px rgba(0,0,0,0.45);
  z-index: 3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ── Séparateur décoratif ── */
.parch-divider {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .6rem 0;
  color: #6b4a20;
  font-size: .55rem;
}
.parch-divider::before,
.parch-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8a7050, transparent);
}
.parch-divider i { font-size: .7rem; opacity: .5; }

/* ── Bordure basse décorative ── */
.forum-parchment .parch-bottom-ornament {
  display: block;
  text-align: center;
  color: #6b4a20;
  font-size: .7rem;
  margin-top: .8rem;
  opacity: .4;
  letter-spacing: .3em;
}

/* ── Les éléments internes gardent leur style sombre d'origine ──
   Seuls les textes directement sur le fond parchemin sont adaptés */

/* Texte direct sur fond parchemin = foncé */
.forum-parchment { color: #2a1a08; }

/* ── Responsive parchemin (mobile-first) ── */

/* Base mobile */
.forum-parchment {
  padding: .6rem .7rem .8rem;
  margin: 0 .15rem;
  border-radius: 3px;
}
.forum-parchment::after { width: 22px; height: 22px; font-size: 10px; line-height: 22px; top: -6px; }

@media (min-width: 577px) {
  .forum-parchment {
    padding: .8rem 1rem 1rem;
    margin: 0 .3rem;
  }
}
@media (min-width: 769px) {
  .forum-parchment {
    padding: unset;
    margin: unset;
    border-radius: unset;
  }
  .forum-parchment::after { width: 36px; height: 36px; font-size: 16px; line-height: 36px; top: -16px; }
}

/* FORUMS — Tableau d'affichage du château
   -------------------------------------------------------------------------- */

.forum-row {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-left: 2px solid var(--border-gold-xs);
  margin-bottom: -1px;
  padding: 1.1rem 1.2rem;
  transition: all var(--dur-base) var(--ease-smooth);
  position: relative;
  backdrop-filter: blur(12px);
}

.forum-row:first-child  { border-radius: var(--r-md) var(--r-md) 0 0; }
.forum-row:last-child   { border-radius: 0 0 var(--r-md) var(--r-md); margin-bottom: 0; }
.forum-row:only-child   { border-radius: var(--r-md); }

.forum-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(212,168,40,0.04), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-base) ease;
  pointer-events: none;
  border-radius: inherit;
}

.forum-row:hover { background: var(--bg-glass-hover); border-color: rgba(255,255,255,0.06); border-left-color: var(--gold-bright); z-index: 1; }
.forum-row:hover::before { opacity: 1; }

.forum-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 40, 0.05);
  border: 1px solid var(--border-gold-xs);
  border-radius: var(--r-md);
  transition: all var(--dur-base) ease;
}

.forum-icon i { font-size: 20px; color: var(--gold-dark); transition: all var(--dur-base) ease; }

.forum-row:hover .forum-icon {
  background: rgba(212, 168, 40, 0.10);
  border-color: var(--border-gold);
  box-shadow: 0 0 16px var(--gold-glow-sm);
}

.forum-row:hover .forum-icon i {
  color: var(--gold-bright);
  filter: drop-shadow(0 0 6px var(--gold-glow));
}

.forum-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.0rem;
  color: var(--text-gold);
  margin: 0 0 4px 0;
  text-shadow: 0 0 20px var(--gold-glow-sm);
  letter-spacing: 0.03em;
}

.forum-title a { color: inherit; text-decoration: none; transition: color var(--dur-base) ease; }
.forum-title a:hover { color: var(--gold-pale); text-shadow: 0 0 20px var(--gold-glow); }

.forum-desc {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.forum-count-number { font-family: var(--font-title); font-weight: 700; color: var(--text-gold); font-size: 1.1rem; }
.forum-count-label  { font-family: var(--font-ui); color: var(--text-faint); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.05em; }
.forum-last-pseudo  { font-family: var(--font-title); font-weight: 700; color: var(--text-gold); font-size: 0.82rem; }
.forum-last-date    { font-family: var(--font-body); color: var(--text-muted); font-size: 0.68rem; font-style: italic; }
.forum-no-message   { font-family: var(--font-title); color: var(--text-faint); font-size: 0.78rem; font-style: italic; opacity: 0.5; }

.forum-last-avatar {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 2px solid var(--gold-deep);
  box-shadow: 0 0 16px rgba(212,168,40,0.25), 0 6px 16px rgba(0,0,0,0.5);
  transition: all var(--dur-base) ease;
}
.forum-row:hover .forum-last-avatar { border-color: #c8a82c; box-shadow: 0 0 22px rgba(212,168,40,0.40), 0 6px 16px rgba(0,0,0,0.5); }

/* En-tête tableau forum */
.forum-table-header {
  display: flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  background: rgba(212, 168, 40, 0.04);
  border: 1px solid var(--border-gold-xs);
  border-bottom: 1px solid var(--border-gold-sm);
  border-radius: var(--r-md) var(--r-md) 0 0;
  margin-bottom: -1px;
}

.forum-th-sujet {
  flex-grow: 1;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-gold-dim);
  padding-left: 58px;
}

.forum-th-stats,
.forum-th-last {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  flex-shrink: 0;
}
.forum-th-stats { width: 80px; }
.forum-th-last  { width: 180px; }

/* Sujets dans catégorie */
.forum-topic-row {
  background: rgba(16, 14, 36, 0.55);
  border: 1px solid var(--border-glass);
  border-left: 2px solid var(--border-gold-xs);
  margin-bottom: -1px;
  padding: 0.85rem 1.2rem;
  transition: all var(--dur-base) var(--ease-smooth);
  backdrop-filter: blur(8px);
}

.forum-topic-row:last-of-type { border-radius: 0 0 var(--r-md) var(--r-md); }

.forum-topic-row:hover {
  background: rgba(28, 25, 60, 0.75);
  border-color: rgba(255,255,255,0.05);
  border-left-color: var(--gold-bright);
  z-index: 1;
}

.forum-topic-pinned { background: rgba(212,168,40,0.04); border-left-color: var(--gold-dark); }
.forum-pin-icon { color: var(--gold-dark); font-size: 11px; }

.forum-topic-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.forum-topic-title a { color: var(--text-parchment); text-decoration: none; transition: color var(--dur-base) ease; }
.forum-topic-title a:hover { color: var(--text-gold); }
.forum-topic-meta { font-family: var(--font-body); font-size: 0.75rem; color: var(--text-muted); }
.forum-topic-meta strong { color: var(--text-gold-dim); }
.forum-topic-stat-number { font-family: var(--font-body); font-size: 0.85rem; color: var(--text-light); }

/* Posts */
.forum-post {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-left: 2px solid var(--border-gold-xs);
  margin-bottom: 1rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur-base) ease;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) { .forum-post { flex-direction: row; } }
.forum-post:hover { border-color: rgba(255,255,255,0.06); }
.forum-post-author { border-left-color: var(--gold-dark); }

.forum-post-sidebar {
  background: rgba(212, 168, 40, 0.03);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.2rem;
}

@media (min-width: 768px) {
  .forum-post-sidebar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 160px;
    min-width: 160px;
    padding: 1.25rem 0.8rem;
    border-bottom: none;
    border-right: 1px solid var(--border-glass);
    gap: 6px;
  }
}

.forum-post-avatar {
  border-radius: var(--r-md);
  border: 2px solid var(--gold-deep);
  box-shadow: 0 0 16px rgba(212,168,40,0.25), 0 6px 16px rgba(0,0,0,0.5);
  object-fit: cover;
  transition: all var(--dur-base) ease;
  width: 52px;
  height: 52px;
}
@media (min-width: 768px) { .forum-post-avatar { width: 78px; height: 78px; } }
.forum-post:hover .forum-post-avatar { border-color: #c8a82c; box-shadow: 0 0 22px rgba(212,168,40,0.40), 0 6px 16px rgba(0,0,0,0.5); }

.forum-post-pseudo { font-family: var(--font-title); font-weight: 700; font-size: 0.88rem; color: var(--text-gold); }
.forum-post-grade  { font-family: var(--font-ui); color: var(--text-faint); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }

.forum-post-maison { font-family: var(--font-ui); font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 2px 10px; border-radius: var(--r-pill); display: none; }
@media (min-width: 768px) { .forum-post-maison { display: inline-block; } }

.forum-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.1rem;
  background: rgba(212, 168, 40, 0.02);
  border-bottom: 1px solid var(--border-glass);
}

.forum-post-date   { font-family: var(--font-body); color: var(--text-faint); font-size: 0.72rem; font-style: italic; }
.forum-post-number { font-family: var(--font-title); color: var(--border-gold-sm); font-size: 0.72rem; font-weight: 700; }

.forum-post-body {
  padding: 1.1rem;
  font-family: var(--font-body);
  color: var(--text-parchment);
  font-size: 0.93rem;
  line-height: 1.85;
  flex-grow: 1;
}

.forum-post-body strong { color: var(--text-gold); }
.forum-post-body em     { color: var(--gold-pale); }

.forum-post-signature {
  padding: 0.6rem 1.1rem;
  border-top: 1px solid var(--border-gold-xs);
  font-family: var(--font-title);
  color: var(--border-gold-sm);
  font-size: 0.72rem;
  font-style: italic;
  opacity: 0.6;
}

/* Zone de réponse */
.forum-reply-box {
  background: rgba(16, 14, 36, 0.65);
  border: 1px solid var(--border-gold-xs);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  backdrop-filter: blur(16px);
}

.forum-reply-title { font-family: var(--font-title); font-weight: 700; font-size: 1.0rem; color: var(--text-gold); margin-bottom: 1rem; }

.forum-reply-textarea,
.tchat-textarea,
.forum-editor-textarea {
  background: rgba(8, 6, 20, 0.70) !important;
  color: var(--text-parchment) !important;
  border: 1px solid var(--border-gold-xs) !important;
  border-radius: var(--r-sm) !important;
  font-family: var(--font-body) !important;
  font-size: 0.93rem !important;
  transition: all var(--dur-base) ease !important;
  resize: vertical;
}

.forum-reply-textarea:focus,
.tchat-textarea:focus {
  border-color: var(--gold-bright) !important;
  box-shadow: 0 0 0 3px rgba(212,168,40,0.10), 0 0 16px rgba(212,168,40,0.06) !important;
  background: rgba(12, 10, 28, 0.85) !important;
  outline: none !important;
}

.forum-reply-textarea::placeholder,
.tchat-textarea::placeholder { color: var(--text-faint); font-style: italic; }

/* Pagination */
.forum-pagination .page-link {
  background: rgba(16, 14, 36, 0.70);
  border: 1px solid var(--border-gold-xs);
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  padding: 0.4rem 0.85rem;
  transition: all var(--dur-base) ease;
}
.forum-pagination .page-link:hover { background: rgba(212,168,40,0.08); border-color: var(--border-gold); color: var(--text-gold); }
.forum-pagination .page-item.active .page-link { background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark)); border-color: var(--gold-dark); color: #1a0e00; font-weight: 700; }
.forum-pagination .page-item.disabled .page-link { background: rgba(16,14,36,0.40); color: var(--text-muted); opacity: 0.7; }

/* Breadcrumb */
.forum-breadcrumb { font-family: var(--font-ui); font-size: 0.72rem; color: var(--text-muted); }
.forum-breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color var(--dur-base) ease; }
.forum-breadcrumb a:hover { color: var(--text-gold); }
.forum-breadcrumb-sep { margin: 0 8px; color: var(--border-gold-xs); }
.forum-breadcrumb-current { color: var(--text-gold); font-weight: 600; }

.forum-sujet-titre {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text-gold);
  text-shadow: 0 0 25px var(--gold-glow-sm);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-gold-xs);
  letter-spacing: 0.03em;
}

/* Editor toolbar */
.forum-editor-toolbar {
  display: flex;
  gap: 2px;
  padding: 5px 8px;
  background: rgba(8, 6, 20, 0.60);
  border: 1px solid var(--border-gold-xs);
  border-bottom: none;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.forum-editor-btn {
  width: 30px;
  height: 26px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-xs);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--dur-fast) ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forum-editor-btn:hover {
  background: rgba(212, 168, 40, 0.08);
  border-color: var(--border-gold-xs);
  color: var(--gold-bright);
}

.forum-editor-sep { width: 1px; height: 16px; background: var(--border-gold-xs); margin: 0 4px; }

/* Empty states */
.forum-empty-state,
.tchat-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: rgba(14, 12, 34, 0.50);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-lg);
  font-family: var(--font-body);
  color: var(--text-muted);
}

.forum-empty-state i,
.tchat-empty-state i { font-size: 3rem; color: var(--border-gold-xs); margin-bottom: 1rem; display: block; }

/* --------------------------------------------------------------------------
   T'CHAT — Hibou Express
   -------------------------------------------------------------------------- */

.tchat-section {
  transition: all var(--dur-base) var(--ease-smooth);
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-left: 2px solid var(--border-gold-xs);
  backdrop-filter: blur(12px);
}

.tchat-section:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255,255,255,0.06);
  border-left-color: var(--gold-bright);
}

.tchat-section-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-gold);
  font-style: italic;
  text-shadow: 0 0 15px var(--gold-glow-sm);
}

.tchat-section-desc { font-family: var(--font-body); color: var(--text-parchment); font-size: 0.88rem; }
.tchat-access-title { font-family: var(--font-title); color: var(--text-gold); font-weight: 700; font-size: 1.0rem; }

.tchat-section-link {
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: color var(--dur-base) ease;
}

.tchat-section-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-bright), transparent);
  transition: width var(--dur-base) ease;
}

.tchat-section-link:hover { color: var(--gold-pale); }
.tchat-section-link:hover::after { width: 100%; }

.tchat-envoyer-btn {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark));
  color: #1a0e00;
  border: 1px solid var(--gold-dark);
  padding: 0.5rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: all var(--dur-base) var(--ease-smooth);
}

.tchat-envoyer-btn:hover {
  background: linear-gradient(135deg, var(--gold-pale), var(--gold-bright));
  color: #0e0800;
  box-shadow: 0 0 20px var(--gold-glow);
  transform: translateY(-1px);
}

/* Messages */
.tchat-message {
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: all var(--dur-base) ease;
  padding-left: 4px;
  border-left: 2px solid transparent;
}

.tchat-message:hover {
  background: rgba(212, 168, 40, 0.025);
  border-left-color: var(--border-gold-xs);
}

.tchat-msg-avatar {
  border: 2px solid var(--gold-deep);
  border-radius: var(--r-md);
  box-shadow: 0 0 16px rgba(212,168,40,0.25), 0 6px 16px rgba(0,0,0,0.5);
  object-fit: cover;
  transition: all var(--dur-base) ease;
}

.tchat-message:hover .tchat-msg-avatar { border-color: #c8a82c; box-shadow: 0 0 22px rgba(212,168,40,0.40), 0 6px 16px rgba(0,0,0,0.5); }

.tchat-msg-pseudo   { font-family: var(--font-title); color: var(--text-gold); font-size: 0.88rem; font-weight: 700; }
.tchat-msg-grade    { font-family: var(--font-ui); color: var(--gold-dark); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tchat-msg-date     { font-family: var(--font-body); color: var(--text-faint); font-size: 0.68rem; font-style: italic; }
.tchat-msg-text     { font-family: var(--font-body); color: var(--text-parchment); font-size: 0.88rem; line-height: 1.7; }
.tchat-msg-signature { font-family: var(--font-title); color: var(--border-gold-sm); font-size: 0.72rem; font-style: italic; }
.tchat-char-count   { font-family: var(--font-body); font-size: 0.68rem; color: var(--text-faint); text-align: right; font-style: italic; }

.tchat-back-link {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-parchment);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--dur-base) ease;
  letter-spacing: 0.04em;
}
.tchat-back-link:hover { color: var(--text-gold); }

/* --------------------------------------------------------------------------

/* ── Accessibilite : respect prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── Responsive Forums (mobile-first) ── */

/* Base mobile */
.forum-row { padding: var(--sp-sm); }
.forum-icon { width: 30px; height: 30px; min-width: 30px; }
.forum-icon i { font-size: 14px; }
.forum-title { font-size: 0.82rem; }
.forum-desc { font-size: 0.72rem; }
.forum-post { padding: var(--sp-sm); }
.forum-post-content { font-size: 0.88rem; }
.forum-reply-textarea { min-height: 80px; font-size: 0.88rem; }
.forum-btn { padding: var(--sp-xs) var(--sp-sm); font-size: 0.78rem; }

@media (min-width: 577px) {
    .forum-row { padding: 1.1rem 1.2rem; }
    .forum-icon { width: 48px; height: 48px; min-width: 48px; }
    .forum-icon i { font-size: 20px; }
    .forum-title { font-size: 1.0rem; }
    .forum-desc { font-size: 0.85rem; }
    .forum-post { padding: unset; }
    .forum-post-content { font-size: unset; }
    .forum-reply-textarea { min-height: unset; font-size: 0.93rem; }
    .forum-btn { padding: unset; font-size: unset; }
}
