/* --- Variables de Thème Neumorphique --- */
:root {
    /* Couleurs de base */
    --bg-color: #2c3e50;
    --primary-color: #2ecc71;
    --text-color: #ecf0f1;
    --text-color-light: #bdc3c7;
    --shadow-light: #34495e;
    --shadow-dark: #233140;

    /* Couleurs des éléments Neumorphiques */
    --neumorphic-bg: rgba(44, 62, 80, 0.7);

    /* Couleurs de la bannière */
    --banner-text-color: #ffffff;
    --banner-text-shadow: rgba(0, 0, 0, 0.7);

    /* Couleurs des bordures et séparateurs */
    --border-color: rgba(52, 73, 94, 0.5);

    /* Couleurs pour l'animation JS */
    --blob-color-1: #27ae60;
    --blob-color-2: #34495e;
    --blob-color-3: #2c3e50;
    --blob-color-4: #28b463;

    /* Polices (statique) */
    --font-family: "Poppins", "Segoe UI", "Helvetica Neue", sans-serif;
}

/* --- Base et Réinitialisation --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* --- Fond Animé --- */
#blob-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

h1,
h2,
h3,
h4 {
  color: var(--text-color);
  font-weight: 600;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--text-color);
}

img {
  max-width: 100%;
  display: block;
}

/* --- Style Neumorphique de base --- */
.neumorphic {
  background: var(--neumorphic-bg);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  box-shadow: -8px -8px 15px var(--shadow-light),
    8px 8px 15px var(--shadow-dark);
  transition: box-shadow 0.3s ease;
}

.neumorphic-inset {
  box-shadow: inset -8px -8px 15px var(--shadow-light),
    inset 8px 8px 15px var(--shadow-dark);
}

.neumorphic-button {
  padding: 10px 20px;
  border-radius: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  display: inline-block;
  text-align: center;
}

.neumorphic-button:hover,
.neumorphic-button:active {
  box-shadow: inset -5px -5px 10px var(--shadow-light),
    inset 5px 5px 10px var(--shadow-dark);
  color: var(--primary-color);
}

/* --- Conteneurs principaux --- */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.content-wrapper {
  margin-top: 30px;
  margin-bottom: 30px;
}

/* --- Header & Footer --- */
.main-header,
.main-footer {
  padding: 15px 30px;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 15px;
}

.nav-item {
  padding: 10px 20px;
  font-weight: 500;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.nav-item.active,
.nav-item:hover {
  color: var(--primary-color);
  box-shadow: inset -5px -5px 10px var(--shadow-light),
    inset 5px 5px 10px var(--shadow-dark);
}

.main-footer {
  text-align: center;
}

.footer-links {
  margin-bottom: 15px;
}

.footer-links a {
  margin: 0 15px;
  font-weight: 500;
}

.footer-copyright {
  font-size: 0.8em;
  color: var(--text-color-light);
}

/* --- Fil d'Ariane --- */
.breadcrumb {
  padding-bottom: 20px;
  font-size: 0.9em;
  color: var(--text-color-light);
}

.breadcrumb a {
  margin-right: 5px;
}

.breadcrumb span {
  margin-right: 5px;
}

/* --- Bannière (home.html) --- */
.banner {
  padding: 10px;
  position: relative;
  margin-bottom: 40px;
}

.banner-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  filter: brightness(60%);
}

.banner-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--banner-text-color);
  text-shadow: 0 2px 10px var(--banner-text-shadow);
}

.banner-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--banner-text-color);
}

.banner-subtitle {
  font-size: 1.2em;
}

/* --- Sections & Titres --- */
.section-title {
  margin-bottom: 20px;
  padding-left: 10px;
  font-size: 1.8em;
}

.main-content-panel {
  padding: 30px;
}

.category-section,
.threads-section {
  margin-bottom: 40px;
}

/* --- Grille des catégories (home.html) --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.category-card {
  padding: 25px;
  text-align: center;
}

.category-card:hover {
  box-shadow: inset -8px -8px 15px var(--shadow-light),
    inset 8px 8px 15px var(--shadow-dark);
}

.category-card:hover h3 {
  color: var(--primary-color);
}

.category-card h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.category-card p {
  font-size: 0.9em;
  color: var(--text-color-light);
}

.all-categories-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Liste de Sujets/Catégories (home, category, categories) --- */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  color: var(--text-color);
}

.list-item:hover {
  box-shadow: -5px -5px 10px var(--shadow-light),
    5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light),
    inset 5px 5px 10px var(--shadow-dark);
}

.item-details .item-title {
  font-size: 1.1em;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.item-details .item-meta,
.item-details .item-description {
  font-size: 0.8em;
  color: var(--text-color-light);
}

.item-stats {
  text-align: right;
  font-size: 0.85em;
  color: var(--text-color-light);
  flex-shrink: 0;
  margin-left: 20px;
}

.item-stats .stat-item {
  display: block;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.page-item {
  padding: 10px 15px;
  font-size: 0.9em;
}

.page-item.active {
  box-shadow: inset -5px -5px 10px var(--shadow-light),
    inset 5px 5px 10px var(--shadow-dark);
  color: var(--primary-color);
  font-weight: 700;
}

/* --- Page de Sujet (thread.html) --- */
.post-content {
  margin-top: 15px;
  line-height: 1.7;
}

.post-content a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content a:hover {
  text-decoration: none;
}

.thread-actions {
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.comments-section {
  margin-top: 30px;
}

.comment {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.comment-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
}

.comment-body {
  flex-grow: 1;
}

.comment-meta {
  font-size: 0.9em;
  margin-bottom: 10px;
  color: var(--text-color-light);
}

.comment-author {
  font-weight: 600;
  color: var(--text-color);
  margin-right: 10px;
}

.comment-content {
  font-size: 0.95em;
}

.replies {
  margin-top: 20px;
  margin-bottom: 20px;
  padding-left: 30px;
  border-left: 2px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Page de Profil (user.html) --- */
.profile-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

.profile-sidebar {
  text-align: center;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  padding: 10px;
}

.profile-username {
  font-size: 1.8em;
  margin-bottom: 20px;
}

.profile-stats {
  list-style: none;
  text-align: left;
}

.profile-stats li {
  margin-bottom: 10px;
  font-size: 0.9em;
}

.profile-main .neumorphic {
  padding: 25px;
  margin-bottom: 20px;
}

/* --- Pages de Connexion / Inscription --- */
.auth-container {
  max-width: 450px;
  margin: 40px auto;
  padding: 40px;
}

.auth-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9em;
  font-weight: 500;
  color: var(--text-color-light);
}

.form-input {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 15px;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 1em;
}

.form-input:focus {
  outline: none;
  box-shadow: -2px -2px 5px var(--shadow-light), 2px 2px 5px var(--shadow-dark);
}

.auth-submit {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  margin-top: 10px;
}

.auth-footer-text {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9em;
}

/* --- Sections ajoutées --- */
.comment-actions {
  margin-top: 15px;
  display: flex;
  gap: 20px;
  font-size: 0.8em;
}

.comment-actions a {
  font-weight: 600;
  color: var(--text-color-light);
}

.comment-actions a:hover {
  color: var(--primary-color);
}

a.comment-author,
a.item-author {
  font-weight: 600;
  color: var(--text-color);
}

a.comment-author:hover,
a.item-author:hover {
  color: var(--primary-color);
}

.main-header .logo-link {
  display: flex;
  justify-content: center;
  align-items: start;
  flex-direction: row;
  font-size: 1.7rem;
  font-weight: 500;
}


/* .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;
} */
