/* forum.css : forum des étudiants (complète ../gestion/gestion.css) */
.barre .marque { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.barre .moi { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--navy); font-weight: 800; text-decoration: none; flex: none; }
.btn.clair { background: #fff; color: var(--navy); border-color: #fff; }
main { max-width: 920px; }

.alerte.attente, .alerte.info { background: #fff8e6; color: #7a5200; border-color: #f7d48b; }
.alerte a { color: inherit; }

.bienvenue { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.bienvenue h1 { margin-bottom: 4px; }
.categories { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.categories::-webkit-scrollbar { display: none; }
.categories a { flex: none; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: .86rem; text-decoration: none; }
.categories a.actif { background: var(--navy); border-color: var(--navy); color: #fff; }

.liste-sujets { padding: 0; gap: 0; overflow: hidden; }
.sujet { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.sujet:first-child { border-top: 0; }
.sujet:hover { background: var(--soft); }
.sujet-titre { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sujet-titre strong { font-size: 1rem; }
.sujet-titre small { color: var(--muted); }
.sujet-titre .badge { align-self: flex-start; }
.compteur { flex: none; text-align: center; font-weight: 800; font-size: 1.2rem; color: var(--navy); line-height: 1; }
.compteur small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); margin-top: 3px; }
.badge.orange { background: #fdebdc; color: var(--orange); }

.fil { font-size: .86rem; color: var(--muted); margin-bottom: 10px; }
.fil a { color: var(--muted); }
.titre-sujet { font-size: 1.45rem; margin-bottom: 16px; }
.titre-discussion { margin: 20px 0 10px; }
.officiel { border-left: 4px solid var(--orange); }
.officiel .etiquette { font-size: .76rem; font-weight: 800; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; }
.officiel h1 { margin: 0; }
.image-communique { max-height: 360px; width: auto; border-radius: 10px; }
.officiel .texte { line-height: 1.65; }

.message { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.message.admin { border-color: var(--orange); }
.avatar-forum { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--yellow); font-weight: 800; }
.message.admin .avatar-forum { background: var(--orange); color: #fff; }
.corps { flex: 1; min-width: 0; }
.entete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; }
.entete span, .entete time { color: var(--muted); font-size: .8rem; }
.entete time { margin-left: auto; }
.corps .texte { line-height: 1.6; overflow-wrap: anywhere; }
.outils { margin: 8px 0 0; display: flex; gap: 10px; }
.outils button { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer; text-decoration: underline; }
.outils button:hover { color: var(--rouge); }
.outils span { color: var(--muted); font-size: .8rem; }
.repondre { margin-top: 6px; }

@media (max-width: 600px) {
  .barre .titre small { display: none; }
  .barre .titre strong { font-size: .95rem; }
  .barre .voir { display: none; }
  .barre .sortie, .barre .btn.clair { margin-left: auto; }
  .bienvenue { flex-direction: column; align-items: stretch; }
  .sujet { padding: 12px 14px; }
  .message { padding: 12px; }
  .avatar-forum { width: 34px; height: 34px; }
  .entete time { margin-left: 0; width: 100%; }
}

.bonjour { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
