/* ===================================
   BLOG V2 - VERSION COMPACTE
   Articles en premier plan
   Version: 2.1
   Date: 22/01/2026
   =================================== */

:root {
    --blog-primary: #447CAC;
    --blog-primary-light: rgba(68, 124, 172, 0.1);
    --blog-secondary: #10b981;
    --blog-accent: #f59e0b;
}

/* ===================================
   HERO COMPACT
   =================================== */

.blog-hero-v2-compact {
    position: relative;
    padding: 90px 2rem 1.5rem;
    background: var(--bg-primary);
    overflow: hidden;
}

.blog-hero-header {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.hero-text {
    flex: 1;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: rgba(68, 124, 172, 0.1);
    border: 1px solid rgba(68, 124, 172, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blog-primary);
    margin-bottom: 0.75rem;
}

.blog-hero-title-compact {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0;
}

.gradient-text {
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search Compact */
.blog-hero-search-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.5rem 0.75rem;
    max-width: 320px;
    transition: all 0.3s ease;
}

.blog-hero-search-compact:focus-within {
    border-color: var(--blog-primary);
    box-shadow: 0 4px 12px rgba(68, 124, 172, 0.15);
}

.blog-hero-search-compact .search-icon {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.search-input-compact {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    background: transparent;
    min-width: 0;
}

.search-btn-compact {
    background: var(--blog-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.search-btn-compact:hover {
    background: var(--blog-secondary);
    transform: scale(1.05);
}

/* ===================================
   CONTAINER & LAYOUT
   =================================== */

.blog-container-v2 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Filtres Mobile - Dropdowns */
.quick-filters-mobile {
    display: none; /* Caché en desktop */
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-dropdown {
    position: relative;
    flex: 1;
    min-width: 0;
}

.filter-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-dropdown-btn:hover {
    border-color: var(--blog-primary);
    background: white;
}

.filter-dropdown-btn i:first-child {
    color: var(--blog-primary);
}

.filter-dropdown-btn span:nth-child(2) {
    flex: 1;
    text-align: left;
}

.filter-dropdown-btn .filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.filter-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.filter-dropdown-content {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.filter-dropdown.open .filter-dropdown-content {
    max-height: 400px;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
}

.filter-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.filter-dropdown-item:last-child {
    border-bottom: none;
}

.filter-dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--blog-primary);
}

.filter-dropdown-item.active {
    background: var(--blog-primary);
    color: white;
}

.filter-dropdown-item .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.filter-dropdown-item.active .count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Tags dropdown grid */
.tags-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
}

.tag-dropdown-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
}

.tag-dropdown-item:hover {
    border-color: var(--blog-secondary);
    color: var(--blog-secondary);
}

.tag-dropdown-item.active {
    background: var(--blog-secondary);
    border-color: var(--blog-secondary);
    color: white;
}

/* Active Filters */
.active-filters-v2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.active-filters-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.filter-chip i {
    color: var(--blog-primary);
    font-size: 0.75rem;
}

.remove-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.7rem;
    transition: all 0.2s;
}

.remove-filter:hover {
    background: #ef4444;
    color: white;
}

.clear-all-filters {
    margin-left: auto;
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.clear-all-filters:hover {
    opacity: 0.7;
}

/* Layout */
.blog-layout-v2 {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

/* ===================================
   SIDEBAR COMPACTE
   =================================== */

.blog-sidebar-v2-compact {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-card-compact {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
}

.sidebar-title-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
}

.sidebar-title-compact i {
    color: var(--blog-primary);
    font-size: 0.9rem;
}

/* Categories List Compact */
.category-list-compact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.category-link-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.825rem;
    transition: all 0.2s ease;
}

.category-link-compact:hover {
    border-color: var(--blog-primary);
    color: var(--blog-primary);
    transform: translateX(3px);
}

.category-link-compact.active {
    background: var(--blog-primary);
    border-color: var(--blog-primary);
    color: white;
}

.category-link-compact .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 0.375rem;
    background: var(--bg-tertiary);
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.category-link-compact.active .count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Tags Cloud Compact */
.tags-cloud-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.tag-compact {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.625rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag-compact:hover {
    border-color: var(--blog-secondary);
    color: var(--blog-secondary);
    transform: translateY(-2px);
}

.tag-compact.active {
    background: var(--blog-secondary);
    border-color: var(--blog-secondary);
    color: white;
}

/* ===================================
   ARTICLES GRID - FOCUS SUR LE CONTENU
   =================================== */

.blog-main-v2 {
    min-height: 400px;
}

.articles-grid-v2-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.article-card-v2-compact {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card-v2-compact:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--blog-primary);
}

.article-link-v2-compact {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.article-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.article-body-compact {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-header-compact {
    flex: 1;
    margin-bottom: 0.875rem;
}

.article-category-chip {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--blog-primary);
    color: white;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.75rem;
}

.article-title-compact {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin: 0 0 0.625rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt-compact {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.article-meta-compact {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.meta-item i {
    font-size: 0.7rem;
}

/* ===================================
   PAGINATION
   =================================== */

.pagination-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    border-color: var(--blog-primary);
    color: var(--blog-primary);
    transform: translateY(-2px);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.625rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.pagination-number:hover {
    border-color: var(--blog-primary);
    color: var(--blog-primary);
}

.pagination-number.active {
    background: var(--blog-primary);
    border-color: var(--blog-primary);
    color: white;
}

.pagination-dots {
    color: var(--text-secondary);
    padding: 0 0.25rem;
}

/* ===================================
   EMPTY STATE
   =================================== */

.empty-state-v2 {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

.empty-state-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blog-primary-light);
    border-radius: 50%;
    font-size: 1.75rem;
    color: var(--blog-primary);
}

.empty-state-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
}

.empty-state-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--blog-primary);
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(68, 124, 172, 0.3);
}

/* ===================================
   ARTICLE PAGE (garder l'existant)
   =================================== */

.article-breadcrumb {
    position: relative;
    padding: 100px 2rem 2rem;
    background: var(--bg-primary);
    overflow: hidden;
}

.breadcrumb-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: var(--blog-primary);
}

.category-badge-large {
    padding: 0.625rem 1.25rem;
    background: var(--blog-primary);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-container-v2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.article-header-v2 {
    margin-bottom: 3rem;
}

.article-title-page {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Meta inline compacte */
.article-meta-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.article-meta-inline .meta-author {
    color: #64748b;
    font-weight: 500;
}

.article-meta-inline .meta-author i,
.article-meta-inline .meta-item i {
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

.article-meta-inline .meta-separator {
    color: #cbd5e1;
}

.article-meta-inline .meta-item {
    color: #94a3b8;
}

/* Ancien style (gardé pour compatibilité) */
.article-meta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--blog-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blog-primary);
    font-size: 1.25rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--text-primary);
}

.author-role {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #94a3b8;
    font-size: 0.75rem;
    background: #f1f5f9;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.stat-item i {
    color: #94a3b8;
    font-size: 0.7rem;
}

.article-featured-wrapper {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
}

.article-featured-image-v2 {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Body Layout */
.article-body-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

.article-content-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    overflow-x: hidden;
    max-width: 100%;
}

.article-content-body h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: #447CAC;
}

.article-content-body h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: #447CAC;
}

.article-content-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #10b981;
}

.article-content-body p {
    margin-bottom: 1.5rem;
}

.article-content-body ul,
.article-content-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content-body li {
    margin-bottom: 0.75rem;
}

.article-content-body img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px;
    margin: 1.5rem auto !important;
    display: block !important;
}

/* Article Sidebar */
.article-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.toc-card,
.share-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.toc-title,
.share-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.toc-title i,
.share-title i {
    color: var(--blog-primary);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-h3 {
    padding-left: 1rem;
}

.toc-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.toc-link:hover {
    background: white;
    color: var(--blog-primary);
}

.toc-empty {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-style: italic;
}

/* Share Buttons */
.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.125rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    color: white;
}

.share-linkedin:hover {
    background: #0077B5;
    border-color: #0077B5;
    color: white;
}

.share-facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: white;
}

.share-link:hover {
    background: var(--blog-primary);
    border-color: var(--blog-primary);
    color: white;
}

/* Tags Section */
.article-tags-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.tags-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.article-tags-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Newsletter CTA */
.article-newsletter-cta {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--blog-primary), var(--blog-secondary));
    border-radius: 12px;
    color: white;
    margin: 3rem 0;
}

.newsletter-cta-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 2rem;
    flex-shrink: 0;
}

.newsletter-cta-content {
    flex: 1;
}

.newsletter-cta-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter-cta-content p {
    font-size: 1rem;
    opacity: 0.95;
}

.newsletter-cta-btn {
    padding: 1rem 2rem;
    background: white;
    color: var(--blog-primary);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.newsletter-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Similar Articles - Version très compacte */
.similar-articles-v2 {
    margin: 2rem 0 1.5rem;
}

.similar-title-v2 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.similar-title-v2 i {
    color: var(--blog-accent);
    font-size: 1rem;
}

.similar-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 100%;
}

.similar-card-v2 {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
}

.similar-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--blog-primary);
}

.similar-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.similar-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.similar-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.similar-card-v2:hover .similar-image {
    transform: scale(1.05);
}

.similar-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.similar-category-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.625rem;
    background: var(--blog-primary);
    color: white;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.similar-content {
    padding: 1rem;
}

.similar-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.similar-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.similar-meta-item i {
    font-size: 0.7rem;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1200px) {
    .blog-layout-v2 {
        grid-template-columns: 220px 1fr;
        gap: 1.5rem;
    }

    .blog-container-v2 {
        padding: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .blog-hero-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .blog-hero-search-compact {
        max-width: 100%;
    }

    .blog-layout-v2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Afficher les filtres mobiles */
    .quick-filters-mobile {
        display: flex;
    }

    /* Cacher la sidebar desktop */
    .blog-sidebar-v2-compact {
        display: none;
    }

    .article-body-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-sidebar {
        order: -1;
    }

    .sidebar-sticky {
        position: relative;
        top: 0;
    }

    .share-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .blog-hero-v2-compact {
        padding: 80px 1.25rem 1.25rem;
    }

    .blog-container-v2 {
        padding: 1.25rem;
    }

    .quick-filters-mobile {
        flex-direction: column;
    }

    .articles-grid-v2-compact {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .article-thumb {
        height: 180px;
    }

    .article-newsletter-cta {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .newsletter-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .similar-grid-v2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .similar-articles-v2 {
        margin: 2rem 0 1rem;
    }

    .similar-title-v2 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }

    .article-content-body {
        overflow-x: hidden;
    }

    .article-content-body img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 1rem 0;
    }

    .pagination-v2 {
        flex-direction: column;
        gap: 0.625rem;
    }

    .pagination-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================
   ARTICLE CONTENT COMPONENTS
   Tableaux, boxes, stats, CTA
   =================================== */

/* === TABLEAUX === */
/* Support des tableaux standard ET quill-better-table */
.article-content-body table,
.article-content-body .quill-better-table,
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.article-content-body table th,
.article-content-body .quill-better-table th,
.article-table th {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #1e40af;
    font-size: 0.875rem;
}

.article-content-body table td,
.article-content-body .quill-better-table td,
.article-table td {
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    color: #374151;
}

.article-content-body table tr:nth-child(even) td,
.article-content-body .quill-better-table tr:nth-child(even) td,
.article-table tr:nth-child(even) td {
    background: #f9fafb;
}

.article-content-body table tr:hover td,
.article-content-body .quill-better-table tr:hover td,
.article-table tr:hover td {
    background: #f1f5f9;
}

/* Style pour la première colonne comme en-tête (quill-better-table) */
.article-content-body table tr td:first-child,
.article-content-body .quill-better-table tr td:first-child {
    background: #f8fafc;
    font-weight: 600;
    color: #1e40af;
}

/* Responsive tableaux */
@media (max-width: 768px) {
    .article-content-body table,
    .article-content-body .quill-better-table,
    .article-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.85rem;
    }

    .article-content-body table th,
    .article-content-body table td,
    .article-content-body .quill-better-table th,
    .article-content-body .quill-better-table td,
    .article-table th,
    .article-table td {
        padding: 10px 12px;
        white-space: nowrap;
    }
}

/* === HIGHLIGHT BOX (bleu) === */
.article-highlight-box {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.article-highlight-box h4 {
    color: #1e40af;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.article-highlight-box p {
    margin: 0.5rem 0 0 0;
    color: #1e3a5f;
}

.article-highlight-box p:last-child {
    margin-bottom: 0;
}

/* === IMPORTANT BOX (jaune/warning) === */
.article-important-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.article-important-box h4 {
    color: #92400e;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.article-important-box p {
    margin: 0;
    color: #78350f;
}

/* === TIP BOX (vert) === */
.article-tip-box {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.article-tip-box h4 {
    color: #065f46;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.article-tip-box p {
    margin: 0;
    color: #064e3b;
}

/* === INTRO PARAGRAPH === */
.article-intro {
    font-size: 1.15rem;
    color: #4b5563;
    border-left: 4px solid #3b82f6;
    padding-left: 1.25rem;
    margin: 1.5rem 0 2rem 0;
    line-height: 1.7;
}

/* === STATS GRID === */
.article-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #3b82f6;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e40af;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

@media (max-width: 480px) {
    .article-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

/* === CTA BOX === */
.article-cta-box {
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    border: 2px solid #3b82f6;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    text-align: center;
}

.article-cta-box h4 {
    color: #1e40af;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.article-cta-box p {
    color: #374151;
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.article-cta-box .btn-cta {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.article-cta-box .btn-cta:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

@media (max-width: 640px) {
    .article-cta-box {
        padding: 1.5rem;
    }

    .article-cta-box h4 {
        font-size: 1.125rem;
    }

    .article-cta-box .btn-cta {
        width: 100%;
        text-align: center;
    }
}

/* ===================================
   FIN ARTICLE CONTENT COMPONENTS
   =================================== */

@media (max-width: 640px) {
    .blog-hero-title-compact {
        font-size: 1.5rem;
    }

    .breadcrumb-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.75rem;
        align-items: center;
    }

    .category-badge-large {
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
    }

    .article-meta-inline {
        font-size: 0.75rem;
        gap: 0.375rem;
    }

    .article-meta-inline .meta-separator {
        display: none;
    }

    .article-meta-inline .meta-item,
    .article-meta-inline .meta-author {
        background: #f1f5f9;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
    }

    .article-meta-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-stats {
        flex-wrap: wrap;
    }

    .article-thumb {
        height: 160px;
    }

    .article-body-compact {
        padding: 1rem;
    }

    .article-title-compact {
        font-size: 1rem;
    }

    .article-excerpt-compact {
        font-size: 0.8rem;
    }
}
