/* css/codex-styles.css */

.codex-container {
    max-width: 800px; /* Matched to your .about-container */
    margin: 40px auto 110px; /* Changed: Top=40px, Left/Right=auto, Bottom=80px */
    padding: 0 20px;
    color: var(--color-text); /* Using your variable */
}

#codex-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px; /* Slightly adjusted gap */
    margin-top: 40px;
}

.post-card {
    border: 1px solid rgba(var(--color-accent-rgb), 0.5); /* Using your accent color for the border */
    padding: 25px;
    background-color: var(--color-bg); /* Using your main background color */
    text-decoration: none;
    color: var(--color-text);
    display: block;
    transition: all 0.3s ease;
}

.post-card:hover {
    border-color: var(--color-accent); /* Brighter border on hover */
    transform: scale(1.02);
}

.post-card h2 {
    margin-top: 0;
    font-size: 1.3em;
    color: var(--color-accent); /* Matched to your site's heading style */
}

.post-date {
    font-size: 0.8rem;
    color: #888; /* A neutral grey for metadata is fine */
    margin-bottom: 15px;
}

#codex-article-content h1 {
    font-size: 2em;
    color: var(--color-accent); /* Matched to your site's heading style */
    margin-bottom: 10px;
}

.article-body p {
    line-height: 1.7; /* Matched from your .about-content */
    font-size: 0.85rem; /* Matched from your modal text */
    margin-bottom: 1.25em; /* A little vertical spacing */
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}
.article-body-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0 30px; /* Espace avant et après l'image */
}
.article-body a.bloglink {
  text-decoration: none;
  color: #8B0000;
  font-weight: 800;
  transition: all 0.2s ease;
}

.article-body a.bloglink:hover {
  background-color: #8B0000;
  color: #121212;
  text-decoration: none;
}