/* ---=== Typographies & Variables ===--- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

:root {
  /* Palette de couleurs */
  --ps-blue: #0070d1;
  --ps-dark-bg: #0c0e1a;
  --ps-card-bg: rgba(28, 32, 54, 0.7);
  --ps-text-light: #ffffff;
  --ps-text-muted: #c5c8d4;
  --ps-border-color: rgba(0, 112, 209, 0.3);

  /* Couleurs pour les états et effets */
  --ps-hover-bg: rgba(0, 112, 209, 0.15);
  --ps-header-bg: rgba(0, 112, 209, 0.1);
  --ps-shadow-color: rgba(0, 112, 209, 0.2);

  /* Couleur pour JS (RGB pour la transparence) */
  --js-wave-color-rgb: 0, 112, 209;

  /* Typographie */
  --font-main: "Poppins", sans-serif;

  /* Autres */
  --card-border-radius: 12px;
}

/* ---=== Initialisation & Styles Généraux ===--- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

#wave-background {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
}

a {
  color: var(--ps-text-light);
  text-decoration: none;
}

.card {
  background-color: var(--ps-card-bg);
  border: 1px solid var(--ps-border-color);
  border-radius: var(--card-border-radius);
  backdrop-filter: blur(10px);
}

/* ---=== Structure & Conteneurs ===--- */
.main-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.logo {
  height: 35px;
}
.site-name {
  font-size: 1.5rem;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-link {
  font-weight: 600;
  color: var(--ps-text-muted);
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--ps-text-light);
}

.login-button {
  background-color: var(--ps-blue);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  color: var(--ps-text-light);
}
.login-button:hover {
  filter: brightness(1.2);
  color: var(--ps-text-light);
}

/* ---=== Fil d'Ariane, Titres & Bannière ===--- */
.breadcrumb-bar {
  padding: 0.8rem 0;
  font-size: 0.9rem;
  color: var(--ps-text-muted);
}
.breadcrumb-bar .separator {
  margin: 0 0.5rem;
}
.breadcrumb-bar a {
  color: var(--ps-blue);
  font-weight: 600;
}

.banner-container {
  display: block;
  margin: 1rem 0;
  overflow: hidden;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.banner-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--ps-shadow-color);
}
.banner-image {
  width: 100%;
  display: block;
}

.page-title-container {
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.page-title-container h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}
.page-title-container p {
  color: var(--ps-text-muted);
}

/* ---=== PAGE HOME & CATEGORY ===--- */
.forum-list {
  margin-top: 2rem;
}

.forum-section {
  margin-bottom: 2rem;
  padding: 1rem;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.forum-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--ps-shadow-color);
}

.forum-header {
  padding: 0.5rem 1rem;
  margin: -1rem -1rem 1rem -1rem;
  border-bottom: 1px solid var(--ps-border-color);
  background-color: var(--ps-header-bg);
  border-top-left-radius: var(--card-border-radius);
  border-top-right-radius: var(--card-border-radius);
}
.forum-header h2 {
  font-size: 1.5rem;
}
.forum-header a {
  transition: color 0.2s;
}
.forum-header a:hover {
  color: var(--ps-blue);
}

.forum-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 8px;
  transition: background-color 0.2s;
}
.forum-item:hover {
  background-color: var(--ps-hover-bg);
}
.forum-item:not(:last-child) {
  border-bottom: 1px solid var(--ps-border-color);
}

.forum-subject {
  flex-grow: 1;
  font-weight: 600;
}
.forum-author,
.forum-messages,
.forum-last-message {
  flex-shrink: 0;
  width: 150px;
  text-align: left;
  font-size: 0.9rem;
  color: var(--ps-text-muted);
  padding-left: 1rem;
}
.forum-author {
  font-weight: 600;
  color: var(--ps-text-light);
  transition: color 0.2s;
}
.forum-author:hover {
  color: var(--ps-blue);
}

.pagination {
  text-align: center;
  margin-top: 2rem;
}
.pagination-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 8px;
  font-weight: 600;
  background-color: var(--ps-card-bg);
  border: 1px solid var(--ps-border-color);
}
.pagination-link:hover {
  background-color: var(--ps-blue);
  color: var(--ps-text-light);
}
.pagination-link.active {
  background-color: var(--ps-blue);
  color: var(--ps-text-light);
  cursor: default;
}

/* ---=== PAGE CATEGORIES ===--- */
.category-list-section {
  padding: 1rem;
}
.category-item {
  display: flex;
  align-items: center;
  padding: 1.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.2s;
}
.category-item:hover {
  background-color: var(--ps-hover-bg);
}
.category-item:not(:last-child) {
  border-bottom: 1px solid var(--ps-border-color);
}

.category-info {
  flex-grow: 1;
}
.category-title {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.category-description {
  font-size: 0.9rem;
  color: var(--ps-text-muted);
}
.category-stats {
  font-weight: 600;
  color: var(--ps-blue);
}

/* ---=== PAGE THREAD ===--- */
.thread-header-card {
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.thread-header-card h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.thread-header-card p {
  color: var(--ps-text-muted);
}
.thread-header-card p a {
  color: var(--ps-blue);
  font-weight: 600;
}

.comments-title {
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
}

.comment-card {
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.comment-author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.comment-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.comment-author-name {
  font-weight: 700;
  font-size: 1.1rem;
}
.comment-date {
  font-size: 0.85rem;
  color: var(--ps-text-muted);
}
.comment-content {
  line-height: 1.7;
}
.comment-content a {
  color: var(--ps-blue);
  text-decoration: underline;
}

/* ---=== PAGE USER ===--- */
.user-header-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  margin-bottom: 2rem;
}
.user-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}
.user-identity h1 {
  font-size: 2.5rem;
}
.user-identity p {
  color: var(--ps-text-muted);
}

.user-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.user-info-card,
.user-stats-card {
  padding: 1.5rem;
}
.user-info-card h2,
.user-stats-card h2 {
  margin-top: 0;
}
.user-info-card ul,
.user-stats-card ul {
  list-style: none;
  padding: 0;
}
.user-info-card li,
.user-stats-card li {
  margin-bottom: 0.5rem;
}

.user-activity-card {
  padding: 1rem;
}
.user-activity-card h2 {
  margin: 0.5rem 1rem 1rem 1rem;
}
.activity-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 8px;
  transition: background-color 0.2s;
}
.activity-item:hover {
  background-color: var(--ps-hover-bg);
}
.activity-item:not(:last-child) {
  border-bottom: 1px solid var(--ps-border-color);
}
.activity-type {
  color: var(--ps-text-muted);
  width: 120px;
}
.activity-thread {
  flex-grow: 1;
  font-weight: 600;
}
.activity-date {
  font-size: 0.9rem;
  color: var(--ps-text-muted);
}

/* ---=== PAGES LOGIN & REGISTER ===--- */
.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}
.auth-form {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  margin-top: 2rem;
}
.auth-form h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.auth-group {
  margin-bottom: 1.5rem;
}
.auth-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.auth-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: var(--ps-dark-bg);
  border: 1px solid var(--ps-border-color);
  border-radius: 8px;
  color: var(--ps-text-light);
  font-size: 1rem;
}
.auth-group input:focus {
  border-color: var(--ps-blue);
  outline: none;
}

.auth-button {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  font-weight: 700;
  background-color: var(--ps-blue);
  color: var(--ps-text-light);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.2s;
}
.auth-button:hover {
  filter: brightness(1.2);
}

.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}
.auth-switch a {
  color: var(--ps-blue);
  font-weight: 600;
}

/* ---=== Footer ===--- */
.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ps-border-color);
  text-align: center;
  color: var(--ps-text-muted);
  font-size: 0.9rem;
}
.footer-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--ps-text-muted);
}
.footer-links a:hover {
  color: var(--ps-blue);
}


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