/* Page détail article blog / témoignage — blanc + vert doux Alliance
 * Tokens verts Alliance :
 *   --aci-green-main  #009734  (primaire / CTA)
 *   --aci-green-deep  #00953e  (accents / icônes — historique about/home)
 * Préférer les variables plutôt que de nouveaux hex mélangés.
 */
:root {
    --aci-green-main: #009734;
    --aci-green-deep: #00953e;
}

.parcours-page .hub-hero-title {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.blog-fb-card {
    background: #fff;
    border: 1px solid #d8eee4;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 149, 62, 0.08);
    margin-bottom: 1.5rem;
    color: #1a2420;
}

.blog-fb-hero {
    position: relative;
    background: #0f172a;
}

.blog-fb-hero__media {
    width: 100%;
    aspect-ratio: 21 / 9;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.blog-fb-hero__video {
    aspect-ratio: 16 / 9;
    width: 100%;
    border: none;
    display: block;
    background: #0a3a22;
    object-fit: contain;
}

.blog-fb-hero__placeholder {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f8f3;
    color: #00953e;
    font-size: 3rem;
}

.blog-fb-back-link {
    color: #009734;
}

.blog-fb-back-link:hover {
    color: #007a2a;
}

.blog-fb-action-btn.is-active {
    color: #00953e;
    background: #e8f8f3;
}

.blog-fb-engagement {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.85rem 1.15rem;
    border-top: 1px solid #d8eee4;
    border-bottom: 1px solid #d8eee4;
    background: #e8f8f3;
}

.blog-fb-engagement__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    gap: 0.75rem 1.25rem;
}

.blog-fb-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.blog-fb-stat i {
    font-size: 1.05rem;
}

.blog-fb-stat--author i { color: #e11d48; }
.blog-fb-stat--views i { color: #64748b; }
.blog-fb-stat--comments i { color: #f59e0b; }
.blog-fb-stat--likes i { color: #00953e; }

.blog-fb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem 0.65rem;
    border-bottom: 1px solid #eef2f0;
    background: #fff;
}

.blog-fb-action-btn {
    flex: 1;
    min-width: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.blog-fb-action-btn:hover {
    background: #e8f8f3;
    color: #00953e;
}

.blog-fb-action-btn i {
    font-size: 1.1rem;
}

.blog-fb-body {
    padding: 1.25rem 1.75rem 1.75rem;
    background: #fff;
}

.blog-fb-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.blog-fb-cat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
}

.blog-fb-title {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 800;
    color: #1a2420;
    line-height: 1.25;
    margin: 0 0 0.75rem;
}

.blog-fb-excerpt {
    font-size: 1.05rem;
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-fb-content {
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.75;
}

.blog-fb-content a {
    color: #00953e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-fb-published {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f0;
    font-size: 0.8125rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-fb-comments-card {
    background: #fff;
    border: 1px solid #d8eee4;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 18px rgba(0, 149, 62, 0.08);
    color: #1a2420;
}

.blog-fb-comments-card h2,
.blog-fb-comments-card h3,
.blog-fb-comments-card .h5,
.blog-fb-comments-card .fw-bold,
.blog-fb-comments-card .ul-blog-details-inner-title,
.blog-fb-comments-card .ul-donation-details-summary-title {
    color: #1a2420;
}

.blog-fb-comments-card .text-muted,
.blog-comment-form-box .text-muted {
    color: #64748b !important;
}

.blog-comment-card {
    border-radius: 1rem;
    border: 1px solid #d8eee4;
    padding: 1.25rem;
    background: #f7fcf9;
    color: #1a2420;
    transition: box-shadow 0.2s, background 0.2s;
}

.blog-comment-card:hover {
    box-shadow: 0 4px 16px rgba(0, 149, 62, 0.08);
    background: #e8f8f3;
}

.blog-comment-card .text-muted,
.blog-comment-card small,
.blog-comment-card .small {
    color: #64748b !important;
}

.blog-comment-reply {
    margin-left: 2.5rem;
    margin-top: 0.75rem;
    padding: 1rem 1rem 1rem 1.25rem;
    border-left: 3px solid #00953e;
    background: #fff;
    border-radius: 0 0.75rem 0.75rem 0;
    color: #1a2420;
}

.blog-comment-reply--nested {
    margin-left: 1.25rem;
    border-left-color: #86c71f;
}

.blog-comment-form-box {
    background: #e8f8f3;
    border: 1px solid #d8eee4;
    border-radius: 1.25rem;
    padding: 1.5rem;
    color: #1a2420;
}

.blog-login-prompt {
    text-align: center;
    padding: 2rem;
    border-radius: 1.25rem;
    background: #f7fcf9;
    border: 2px dashed #b7dfcb;
    color: #1a2420;
}

.btn-blog-like {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    transition: color 0.15s, background 0.15s;
}

.btn-blog-like:hover {
    background: #e8f8f3;
    color: #00953e;
}

.btn-blog-like.is-liked {
    color: #00953e;
}

.btn-blog-reply {
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
}

.btn-blog-reply:hover {
    color: #00953e;
}

.blog-fb-comments-card .form-control,
.blog-comment-form-box .form-control,
.blog-comment-card .form-control {
    background: #fff;
    border-color: #cfe8db;
    color: #1a2420;
}

.blog-fb-comments-card .btn-success,
.blog-comment-form-box .btn-success,
.blog-fb-comments-card .btn-primary {
    background: #00953e;
    border-color: #00953e;
    color: #fff;
    font-weight: 700;
}

.blog-fb-comments-card .btn-success:hover,
.blog-comment-form-box .btn-success:hover,
.blog-fb-comments-card .btn-primary:hover {
    background: #007a32;
    border-color: #007a32;
    color: #fff;
}

.blog-details-sidebar {
    top: 100px;
    z-index: 1;
}

/* Sidebar — témoignages récents */
.tm-recent-sidebar {
    position: sticky;
    background: #fff;
    border: 1px solid #d8eee4;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 149, 62, 0.08);
    overflow: hidden;
    padding: 1.15rem 1.1rem 1rem;
    color: #1a2420;
}

.tm-recent-sidebar__head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: -1.15rem -1.1rem 1rem;
    padding: 1rem 1.1rem 0.9rem;
    border-bottom: 1px solid #d8eee4;
    background: #e8f8f3;
}

.tm-recent-sidebar__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #00953e;
    font-size: 1.15rem;
    border: 1px solid #d8eee4;
}

.tm-recent-sidebar__title {
    margin: 0;
    font-family: var(--font-quicksand, Quicksand, sans-serif);
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a2420;
    line-height: 1.25;
}

.tm-recent-sidebar__sub {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.35;
}

.tm-recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tm-recent-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0.5rem;
    margin: 0 -0.35rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.18s ease;
}

.tm-recent-item:hover {
    background: #e8f8f3;
    text-decoration: none;
    color: inherit;
}

.tm-recent-item__avatar {
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.tm-recent-item__avatar .reviewer-avatar-img,
.tm-recent-item__avatar .reviewer-avatar-initials {
    width: 52px;
    height: 52px;
    border-width: 2px;
}

.tm-recent-item__avatar .reviewer-avatar-initials {
    font-size: 0.95rem;
}

.tm-recent-item__avatar .reviewer-avatar-status {
    width: 11px;
    height: 11px;
    bottom: 1px;
    right: 1px;
}

.tm-recent-item__body {
    min-width: 0;
    flex: 1;
}

.tm-recent-item__author {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #00953e;
    margin-bottom: 0.15rem;
    letter-spacing: 0.01em;
}

.tm-recent-item__title {
    margin: 0 0 0.35rem;
    font-family: var(--font-quicksand, Quicksand, sans-serif);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1a2420;
}

.tm-recent-item:hover .tm-recent-item__title {
    color: #007a32;
}

.tm-recent-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.65rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.tm-recent-item__cat {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    background: #e8f8ee;
    color: var(--tm-cat, #009734);
    border: 1px solid rgba(0, 151, 52, 0.2);
}

.tm-recent-empty {
    margin: 0.5rem 0 0.75rem;
    font-size: 0.9rem;
    color: #64748b;
}

.tm-recent-sidebar__all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #eef0f3;
    width: 100%;
    font-size: 0.88rem;
    font-weight: 700;
    color: #00953e;
    text-decoration: none;
}

.tm-recent-sidebar__all:hover {
    color: #007a32;
    text-decoration: none;
}

.tm-recent-sidebar__all i {
    transition: transform 0.18s ease;
}

.tm-recent-sidebar__all:hover i {
    transform: translateX(3px);
}

/* Avatars / réponses commentaires */
.tm-comment-avatar {
    object-fit: cover;
}

.tm-comment-avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f8f3;
    color: #00953e;
    font-weight: 800;
    text-transform: uppercase;
    width: 48px;
    height: 48px;
    font-size: 0.9rem;
    border: 1px solid #d8eee4;
}

.tm-comment-replies {
    margin-top: 0.75rem;
    padding-left: 0.75rem;
    border-left: 2px solid #d8eee4;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tm-comment-replies:empty {
    display: none;
}

.dash-tm-show .blog-fb-hero__media {
    max-height: 360px;
}

.dash-tm-alert {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.dash-tm-alert--warn {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.dash-tm-alert--danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.dash-tm-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .dash-tm-media-grid {
        grid-template-columns: 1fr;
    }
}
