/* --- Polices & Variables --- */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;600&display=swap");

:root {
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    --color-bg: #f0f8ff;
    --color-surface: #ffffff;
    --color-text: #2c3e50;
    --color-text-muted: #95a5a6;
    --color-accent: #3498db;
    --color-border: #ecf0f1;
}

/* --- Styles Généraux --- */
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  font-size: 16px;
}
a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
a:hover {
  color: var(--color-text);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

/* --- Structure Principale --- */
.page-wrapper {
  display: flex;
}

/* --- Header Latéral --- */
.side-header {
  width: 260px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--color-surface);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  box-sizing: border-box;
  z-index: 100;
}
.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--color-text);
}
.logo img {
  height: 32px;
  vertical-align: -4px;
  margin-right: 8px;
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
}
.user-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.button {
  display: block;
  text-align: center;
  padding: 10px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  font-weight: 600;
}
.button.button-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}
.button.button-primary:hover {
  background: #0044dd;
}

/* --- Contenu Principal --- */
.main-content {
  margin-left: 260px;
  width: calc(100% - 260px);
  padding: 2rem 3rem;
  box-sizing: border-box;
  min-height: 100vh;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.breadcrumb a {
  font-weight: 400;
}
.breadcrumb .separator {
  margin: 0 0.5rem;
}

/* --- Section Typographique --- */
.topic-section {
  position: relative;
  padding: 3rem 2rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-bottom: 2rem;
  overflow: hidden;
}
.section-background-title {
  position: absolute;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  font-size: 15vw;
  color: var(--color-text);
  opacity: 0.05;
  z-index: 1;
  margin: 0;
  pointer-events: none;
}
.thread-list {
  position: relative;
  z-index: 2;
  list-style: none;
  padding: 0;
  margin: 0;
}
.thread-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}
.thread-item:first-child {
  padding-top: 0;
}
.thread-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.thread-item h3 {
  font-size: 1.8rem;
  margin: 0;
}
.thread-item .thread-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* --- Page de Sujet --- */
.thread-header {
  margin-bottom: 3rem;
}
.thread-header h1 {
  font-size: 3.5rem;
  margin: 0;
}
.post {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}
.post-author {
  width: 150px;
  flex-shrink: 0;
}
.post-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}
.post-author .author-name {
  font-weight: 600;
  margin-top: 0.5rem;
}
.post-author .author-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.post-body {
  flex-grow: 1;
}
.post-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.reply-form {
  margin-top: 2rem;
}
.reply-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  min-height: 120px;
  margin-bottom: 1rem;
}

/* --- Page Profil --- */
.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}
.profile-info h1 {
  font-size: 3rem;
  margin: 0;
}
.profile-info p {
  margin: 0;
  color: var(--color-text-muted);
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}
.pagination a.active {
  color: var(--color-text);
  text-decoration: underline;
}

/* --- Formulaires Login/Register --- */
.form-wrapper {
  max-width: 450px;
  margin: 5rem auto;
  padding: 2rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.form-wrapper h1 {
  text-align: center;
  font-size: 2.5rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.form-group input {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 1rem;
}
.form-switch {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--color-text-muted);
}

/* --- Footer --- */
.main-footer {
  margin-left: 260px; /* Largeur du header */
  padding: 3rem;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 2rem auto;
    text-align: left;
}

.footer-column h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column ul li {
    margin-bottom: 0.5rem;
}
.footer-column a {
    color: var(--color-text-muted);
    font-weight: 400;
}
.footer-column a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.profile-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 1rem;
}
.profile-stats strong {
    font-weight: 600;
    color: var(--color-text);
}

/* --- Hero Section (Banner) --- */
.hero-section {
    position: relative;
    border: 1px solid var(--color-border);
    margin-bottom: 2rem;
    color: white;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}
.hero-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    padding: 4rem 2rem;
}
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}
.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.post-body a,
.post-content a,
.activity-snippet a,
.comment a {
    color: var(--color-accent); 
    
    text-decoration: none; 
    font-weight: 600;
    
    background-image: linear-gradient(var(--color-accent), var(--color-accent));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.3s ease;
}

.post-body a:hover,
.post-content a:hover,
.activity-snippet a:hover,
.comment a:hover {
    background-size: 100% 2px;
}

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