/* 4.5. Articles et Posts (Listes et éléments individuels) */
.posts-wrapper {
    opacity: 1;
}
.post-item {
    border: 2px solid var(--color-accent);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    background-color: rgba(119, 92, 49, 0.1);
}
.post-layout {
    display: flex;
    gap: 25px;
}
.post-thumbnail {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.post-content-wrapper {
    flex: 1;
}
.post-title {
    margin: 0 0 15px 0;
}
.post-title a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    position: relative; /* Pour l'icône ::after */
}
.post-title a:hover {
    color: var(--color-accent-light);
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
}
.post-title a::after { /* Icône à côté du titre des articles */
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 8px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 12V4H40V12' stroke='%23775c31' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M40 36V44H24V36' stroke='%23775c31' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M24 24L4 24' stroke='%23775c31' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M32 34V14' stroke='%23775c31' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12 16L4 24L12 32' stroke='%23775c31' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    vertical-align: middle;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.post-title a:hover::after {
    opacity: 1;
}
.post-meta {
    font-size: 14px;
    color: var(--color-accent);
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
}
.post-date, 
.post-author {
    color: #ffffff;
    display: flex;
    align-items: center;
}
.post-date:before {
    content: "📅";
    margin-right: 5px;
}
.post-author:before {
    content: "✍️";
    margin-right: 5px;
}
.posts-wrapper .post-excerpt {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    overflow: hidden;
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                margin-bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.posts-wrapper .post-content {
    color: var(--color-text-secondary);
    line-height: 1.6;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(15px);
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.05s,
                opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
                transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
}
.posts-wrapper .post-item.article-deployed .post-excerpt {
    max-height: 0;
    opacity: 0;
    transform: translateY(-15px);
    margin-bottom: 0;
}
.posts-wrapper .post-item.article-deployed .post-content {
    max-height: 5000px;
    opacity: 1;
    transform: translateY(0);
}

/* Single Post Styles */
.single-post-wrapper {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    padding-top: calc(var(--header-height) + 60px); /* Décalage pour la barre de navigation fixe */
}
.post-item.single-post .post-content, /* Assure que le contenu est visible sur single post */
.single-post .post-content { /* Style plus générique pour le contenu d'un article unique */
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-height: none;
    opacity: 1;
    transform: translateY(0);
    overflow: visible;
    margin-top: 20px;
}
.post-item.single-post .post-excerpt,
.single-post .post-excerpt {
    display: none;
}
.single-post .post-meta-details {
    margin-top: 30px;
}
.single-post-navigation { /* Barre Précédent/Suivant pour article unique */
    position: fixed;
    top: calc(var(--header-height) + var(--mobile-menu-extra));
    left: 50%;
    transform: translateX(-50%);
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    z-index: 990;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: var(--color-background);
}
/* État disabled pour la navigation single-post */
.single-post-navigation a[disabled],
.single-post-navigation button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}
.single-post-navigation a[disabled]:hover,
.single-post-navigation button[disabled]:hover {
    transform: none;
    background-color: #1c364b; /* Ou une couleur neutre appropriée */
}
.single-post-navigation a[disabled] span,
.single-post-navigation button[disabled] span {
    animation: none !important;
}
.single-post-navigation a[disabled]:hover span,
.single-post-navigation button[disabled]:hover span {
    opacity: 0 !important;
}