:root {
    --font-heading: 'Lora', serif;
    --font-body: 'Inter', sans-serif;
    --radius: 0;
    --clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);

    --color-bg: #191622;
    --color-surface: rgba(38, 33, 50, 0.7);
    --color-border: rgba(157, 100, 216, 0.2);
    --color-text: #E9E1F0;
    --color-text-heading: #FFFFFF;
    --color-text-muted: #9A8CA8;
    --color-accent: #9D64D8;

    --color-list-item-bg: rgba(0, 0, 0, 0.2);
    --color-profile-banner-filter: brightness(60%);
    --color-profile-avatar-border: var(--color-bg);
    --color-form-input-bg: rgba(0, 0, 0, 0.2);

    --animation-smoke-color: 157, 100, 216;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* ==================== ARRIÈRE-PLAN ANIMÉ ==================== */
#smoke-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* ==================== LAYOUT GÉNÉRAL ==================== */
.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ==================== HEADER ==================== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}
.logo a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-heading);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
}
.site-logo {
  height: 50px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-link {
  font-weight: 700;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link.active,
.nav-link:hover {
  color: var(--color-accent);
}
.cta-button {
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  padding: 0.5rem 1rem;
  clip-path: var(--clip-path);
}
.cta-button:hover {
  background-color: var(--color-accent);
  color: var(--color-text-heading);
}

/* ==================== BANNER & BREADCRUMB ==================== */
.banner {
  margin-bottom: 1.5rem;
  clip-path: var(--clip-path);
  line-height: 0;
}
.banner img {
  width: 100%;
  display: block;
}
.breadcrumb {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}
.breadcrumb a {
  color: var(--color-text-muted);
}
.breadcrumb a:hover {
  color: var(--color-accent);
}

/* ==================== CONTENU PRINCIPAL ==================== */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.category-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  clip-path: var(--clip-path);
}
.category-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-text-heading);
  margin-bottom: 1rem;
}
.category-title a {
  color: inherit;
  text-decoration: none;
}
.category-title a:hover {
  color: var(--color-accent);
}
.thread-list {
  display: flex;
  flex-direction: column;
}
.thread-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}
.thread-item:last-child {
  border-bottom: none;
}
.thread-title {
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}
.thread-title:hover {
  color: var(--color-accent);
}
.thread-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.thread-meta a {
  color: var(--color-text-muted);
}
.thread-meta a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}
.thread-replies {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 700;
  flex-shrink: 0;
}

/* ==================== FOOTER ==================== */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.footer-nav {
  display: flex;
  gap: 1.5rem;
}
.footer-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 700;
}
.footer-nav a:hover {
  color: var(--color-accent);
}

/* ==================== PAGES SPÉCIFIQUES ==================== */
.content-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  clip-path: var(--clip-path);
}
.content-card h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.category-list-full {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.category-list-item {
  background-color: var(--color-list-item-bg);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  clip-path: var(--clip-path);
}
.category-info h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 0 0 0.5rem 0;
}
.category-info h2 a {
  color: var(--color-text-heading);
  text-decoration: none;
}
.category-info h2 a:hover {
  color: var(--color-accent);
}
.category-info p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.category-meta {
  flex-shrink: 0;
  text-align: right;
  font-size: 0.9rem;
}
.pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.pagination a {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  text-decoration: none;
  clip-path: var(--clip-path);
}
.pagination a.active,
.pagination a:hover {
  background: var(--color-accent);
  color: var(--color-text-heading);
  border-color: var(--color-accent);
}
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.content-header h1 {
  margin: 0;
}
.content-header .btn-action {
  width: auto;
}
.thread-list-item {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--color-list-item-bg);
  margin-bottom: 1rem;
  clip-path: var(--clip-path);
}
.thread-list-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}
.thread-list-info {
  flex-grow: 1;
}
.thread-list-title {
  font-weight: 700;
  color: var(--color-text-heading);
  display: block;
  text-decoration: none;
}
.thread-list-title:hover {
  color: var(--color-accent);
}
.thread-list-author {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.thread-list-stats,
.thread-list-lastpost {
  flex-shrink: 0;
  width: 140px;
  text-align: right;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.post,
.comment {
  display: flex;
  gap: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  clip-path: var(--clip-path);
  margin-bottom: 1.5rem;
}
.post-sidebar {
  flex: 0 0 150px;
  text-align: center;
}
.post-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}
.post-author {
  font-weight: 700;
  color: var(--color-text-heading);
  text-decoration: none;
  display: block;
}
.post-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.post-main {
  flex-grow: 1;
}
.post-header {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.original-post .post-body h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-text-heading);
  margin-bottom: 1rem;
}
.post-body p {
  margin-bottom: 1rem;
}
.post-body a {
  color: var(--color-accent);
  text-decoration: underline;
}
.post-body a:hover {
  color: var(--color-text-heading);
}
.post-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  display: flex;
  gap: 1rem;
}
.comments-section .category-title {
  margin-top: 2rem;
}
.profile-header {
  position: relative;
  margin-bottom: 1.5rem;
  clip-path: var(--clip-path);
}
.profile-banner {
  height: 200px;
  background-size: cover;
  background-position: center;
  filter: var(--color-profile-banner-filter);
}
.profile-info {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 0 1.5rem;
  transform: translateY(-50%);
}
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--color-profile-avatar-border);
}
.profile-names h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin: 0;
}
.profile-names span {
  color: var(--color-text-muted);
}
.profile-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.profile-stats {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  clip-path: var(--clip-path);
  display: flex;
  justify-content: space-around;
  text-align: center;
}
.stat-item span {
  display: block;
  font-weight: 700;
  font-size: 1.5rem;
}
.profile-activity {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  clip-path: var(--clip-path);
}
.auth-container {
  max-width: 450px;
  margin: 2rem auto;
}
.auth-container form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
}
.auth-container h2 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.form-group input {
  padding: 0.75rem;
  background: var(--color-form-input-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  clip-path: var(--clip-path);
}
.auth-switch {
  text-align: center;
  font-size: 0.9rem;
}
.btn-action {
  clip-path: var(--clip-path);
  padding-top: 5px;
  padding-bottom: 5px;
}

.post-footer > a,
.auth-switch > a {
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  padding: 0.25rem 0.5rem;
  clip-path: var(--clip-path);
  text-decoration: none;
}
.post-footer > a:hover,
.auth-switch > a:hover,
.btn-action {
  background-color: var(--color-accent);
  color: var(--color-text-heading);
  text-decoration: none;
  cursor: pointer;
}


/* .forum-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 3fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
}

.forum-item:first-of-type {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.forum-item:last-of-type {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    margin-bottom: 0;
}
.forum-item:only-of-type {
    border-radius: 8px;
} */

.forum-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: block;
}

/* .forum-subject {
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.4;
}
.forum-subject:hover {
    text-decoration: underline;
}

.forum-author,
.forum-messages,
.forum-last-message {
    font-size: 0.9rem;
}

.forum-author a {
    font-weight: 600;
    text-decoration: none;
}
.forum-author a:hover {
    text-decoration: underline;
}

.forum-messages {
    text-align: center;
}

.forum-last-message {
    text-align: right;
    white-space: nowrap;
} */
