/**
 * Beriox-HUB — Liste du blog (extrait des vues Blade)
 */
* { box-sizing: border-box; }
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f9fafb;
    color: #1f2937;
    margin: 0;
    line-height: 1.6;
}
.blog-header {
    background: linear-gradient(135deg, #5a5fca 0%, #8b5cf6 100%);
    color: white;
    padding: 4rem 1.25rem 3rem;
    margin-bottom: 3rem;
    text-align: center;
}
.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    color: #ffffff;
}
.blog-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0;
}
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem 4rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
}
@media (max-width: 1024px) {
    .wrap { grid-template-columns: 1fr; gap: 2rem; }
    .sidebar { position: static !important; }
}
.post {
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 2rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}
.post:hover {
    box-shadow: 0 4px 12px rgba(90, 95, 202, 0.15);
    transform: translateY(-2px);
    border-color: #5a5fca;
}
.post-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #5a5fca 0%, #8b5cf6 100%);
}
.post-content {
    padding: 2rem;
}
.post h2 {
    margin: 0 0 1rem;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
}
.post h2 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}
.post h2 a:hover {
    color: #5a5fca;
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.post-meta-item svg {
    width: 16px;
    height: 16px;
}
.post-meta a {
    color: #5a5fca;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.post-meta a:hover {
    color: #8b5cf6;
}
.post-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(90, 95, 202, 0.1);
    color: #5a5fca;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}
.post-category:hover {
    background: rgba(90, 95, 202, 0.2);
}
.excerpt {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #5a5fca;
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: gap 0.2s;
}
.read-more:hover {
    gap: 0.75rem;
}
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}
.card {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.card-title {
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card-title svg {
    width: 20px;
    height: 20px;
    color: #5a5fca;
}
.card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.card ul li {
    margin-bottom: 0.75rem;
}
.card ul li:last-child {
    margin-bottom: 0;
}
.card ul li a {
    color: #4b5563;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}
.card ul li a:hover {
    background: rgba(90, 95, 202, 0.1);
    color: #5a5fca;
    padding-left: 0.75rem;
}
.card ul li a::before {
    content: "→";
    opacity: 0;
    transition: opacity 0.2s;
}
.card ul li a:hover::before {
    opacity: 1;
}
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}
.tag:hover {
    background: #5a5fca;
    color: white;
    border-color: #5a5fca;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(90, 95, 202, 0.3);
}
.rss-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #5a5fca;
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
}
.rss-link:hover {
    background: rgba(90, 95, 202, 0.1);
}
.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}
.pagination nav {
    width: 100%;
}
.pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pagination li {
    display: flex;
    align-items: center;
    justify-content: center;
}
.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: #fff;
}
.pagination li:first-child a,
.pagination li:first-child span,
.pagination li:last-child a,
.pagination li:last-child span {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    min-width: 2.5rem;
}
.pagination li a:hover {
    background: #5a5fca;
    color: white;
    border-color: #5a5fca;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(90, 95, 202, 0.2);
}
.pagination li.active span {
    background: #5a5fca;
    color: white;
    border-color: #5a5fca;
    cursor: default;
}
.pagination li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
    color: #9ca3af;
}
.pagination li.disabled span:hover {
    transform: none;
    box-shadow: none;
    background: #f9fafb;
    color: #9ca3af;
    border-color: #e5e7eb;
}
@media (max-width: 640px) {
    .pagination ul {
        gap: 0.375rem;
    }
    .pagination li a,
    .pagination li span {
        min-width: 2.25rem;
        height: 2.25rem;
        padding: 0 0.5rem;
        font-size: 0.875rem;
    }
}
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}
.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}
