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

:root {
  --font-main: "Inter", sans-serif;
  --color-bg: #f0faf5;
  --color-surface: #ffffff;
  --color-text: #14532d;
  --color-text-muted: #5e8271;
  --color-accent: #22c55e;
  --color-border: #dcfce7;
  --radius: 12px;
}

/* --- Styles Généraux --- */
body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  font-size: 16px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.2s;
  font-weight: 500;
}
a:hover {
  opacity: 0.8;
}
h1,
h2,
h3,
h4 {
  font-weight: 700;
  margin: 0;
}

/* --- Header & Footer --- */
.main-header {
  padding: 1.5rem 0;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo img {
  height: 28px;
}
.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.button {
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
}

/* --- Grille Bento (Homepage) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 1.5rem;
  margin-top: 2rem;
}
.grid-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-sizing: border-box;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 10px;
  margin-bottom: 10px;
}
.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.col-span-2 {
  grid-column: span 2;
}
.row-span-2 {
  grid-row: span 2;
}
.item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.item-content h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.item-content p {
  color: var(--color-text-muted);
  margin: 0;
}
.welcome-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.welcome-card h2 {
  font-size: 2.5rem;
  color: white;
}
.welcome-card p {
  color: white;
  opacity: 0.8;
}
.thread-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.thread-list li {
  padding: 10px;
  border-bottom: 1px solid var(--color-border);
}
.thread-list li:last-child {
  border-bottom: none;
}
.stats-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.stats-list li {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  padding: 0.5rem 0;
}
.stats-list strong {
  font-weight: 700;
  color: var(--color-accent);
}

/* --- Pages Intérieures --- */
.page-header {
  padding: 3rem 0;
  text-align: center;
}
.page-header h1 {
  font-size: 3rem;
}
.breadcrumb {
  text-align: center;
  padding-bottom: 2rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.content-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.card-body {
  padding: 1.5rem;
}
.topic-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.topic-item:last-child {
  border-bottom: none;
}
.topic-info {
  flex-grow: 1;
}
.topic-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.topic-stats {
  text-align: right;
}
.post-item {
  display: flex;
  gap: 1.5rem;
  padding: 10px;
  margin-bottom: 10px;
}
.post-author {
  flex-shrink: 0;
  width: 150px;
  text-align: center;
}
.post-author img {
  width: 64px;
  border-radius: 50%;
}
.post-body {
  flex-grow: 1;
}
.post-body p {
  margin: 0 0 1em 0;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.page-link {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}
.page-link.active {
  background-color: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}
.form-container {
  max-width: 500px;
  margin: 2rem auto;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 10px;
  color: var(--color-text);
}

/* Style pour les liens dans les threads */
.post-body a {
  text-decoration: none;
  font-weight: 500;
  color: var(--color-accent);
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.3s;
}
.post-body a:hover {
  background-size: 100% 1px;
}

.main-footer {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  margin-top: 3rem;
}

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

.footer-column .logo {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.footer-column .logo img {
  height: 32px;
  vertical-align: -4px;
  margin-right: 8px;
}

.footer-column p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-right: 2rem;
}

.footer-column h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul a {
  font-weight: 500;
  color: var(--color-text);
}
.footer-column ul a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.profile-info h1 {
    font-size: 2rem;
    margin: 0;
}

.profile-info .fullname {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.profile-info .meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.profile-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.profile-details-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.profile-details-list li:last-child {
    border-bottom: none;
}

.profile-details-list strong {
    color: var(--color-text-muted);
    margin-right: 0.5rem;
}

.activity-list .topic-item {
    padding: 1rem;
}

.activity-list .topic-excerpt {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--color-border);
    color: var(--color-text-muted);
}

.footer-content>.footer-column:nth-of-type(2), .footer-content>.footer-column:nth-of-type(2)>ul>li{
    display: flex;
    justify-content: center;
    align-items: end;
    flex-direction: column;
}

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