/* Ma Liste Facile - CSS Principal */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Header Admin */
.admin-header .header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Header Admin */
.admin-header .header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.admin-header .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

/* Header alternatif pour pages internes */
header.internal {
    background: white;
    color: #333;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
}

.hero {
    text-align: center;
    padding: 2rem 0;
    min-height: auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #667eea;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Navigation */
nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 0.8rem;
}

.logo-image {
    height: 40px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    transition: color 0.3s ease;
}

.logo a:hover .logo-text {
    color: #5a67d8;
}

.logo a:hover .logo-image {
    transform: scale(1.05);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    transition: all 0.3s ease;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::before {
    width: 80%;
}

/* Navigation Container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 30px;
}

/* Menu Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.hamburger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.hamburger:hover::before {
    opacity: 1;
}

.hamburger:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.hamburger span {
    width: 22px;
    height: 2.5px;
    background: #667eea;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    position: relative;
    display: block;
}

.hamburger span:not(:last-child) {
    margin-bottom: 4px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: #fff;
    width: 24px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px) scale(0.8);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: #fff;
    width: 24px;
}

.hamburger.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 6rem 2.5rem 3rem;
        box-shadow: -8px 0 25px rgba(102, 126, 234, 0.15);
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        gap: 1.8rem;
        z-index: 1000;
        border-left: 5px solid #667eea;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.3rem;
        padding: 1.2rem 0;
        width: 100%;
        border-bottom: 2px solid transparent;
        border-radius: 0;
        background: transparent;
        color: #2c3e50;
        font-weight: 600;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        position: relative;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .nav-links a::before {
        display: none;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
        transition: width 0.3s ease;
        border-radius: 2px;
    }

    .nav-links a:hover {
        background: rgba(102, 126, 234, 0.08);
        color: #667eea;
        border-bottom-color: #667eea;
        padding-left: 1rem;
        transform: translateX(8px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    }

    .nav-links a:hover::after {
        width: 100%;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .logo-image {
        height: 35px;
    }

    /* Navigation Container Mobile */
    .nav-container {
        justify-content: space-between;
        padding: 1rem 20px;
    }

    /* Menu Overlay pour Mobile */
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(102, 126, 234, 0.1);
        backdrop-filter: blur(8px);
        z-index: -1;
        transition: all 0.4s ease;
    }

    /* Animation d'entrée du menu */
    .nav-links.active {
        animation: slideInRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Breadcrumb */
.breadcrumb {
    padding: 1rem 3rem;
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

/* Article Layout */
.article-wrapper {
    padding: 3rem 0;
    background: transparent;
    min-height: auto;
}

/* Categories Layout */
.categories-wrapper {
    padding: 4rem 0;
    background: #f8f9fa;
    min-height: auto;
}

/* Styles pour les pages catégories avec slug */
.category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.category-header p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.category-header .stats {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

.category-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.category-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.category-hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.category-hero .stats {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Styles pour les articles dans les catégories */
.category-articles-container {
    background: white;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.category-articles-container .section-header {
    padding: 3rem 3rem 2rem 3rem;
    text-align: center;
}

.category-articles-container .section-title {
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
}

.category-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 3rem 3rem 3rem;
}

.category-article-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-article-title {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.category-article-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.category-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
}

.category-article-date,
.category-article-views {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.category-empty {
    text-align: center;
    padding: 4rem 3rem;
    color: #666;
}

.category-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.category-empty h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.category-empty p {
    color: #888;
}

/* Pagination pour les catégories */
.category-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    padding: 0 3rem 3rem 3rem;
}

.category-pagination a,
.category-pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.category-pagination a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.category-pagination .current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.category-pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Top Section - Latest Articles + Categories */
.top-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.8rem;
    margin-bottom: 2rem;
    min-height: 600px;
}

/* Desktop: Categories first, Articles second */
@media (min-width: 1025px) {
    .top-section {
        display: grid;
        grid-template-columns: 280px 1fr;
    }

    /* Categories panel comes first on desktop */
    .categories-panel {
        order: 1;
    }

    /* Articles panel comes second on desktop */
    .latest-articles-panel {
        order: 2;
    }
}

/* Panel Styling */
.categories-panel,
.latest-articles-panel,
.most-viewed-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
}

.categories-panel:hover,
.latest-articles-panel:hover,
.most-viewed-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.panel-header {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.panel-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.panel-title i {
    font-size: 1rem;
    color: #2c3e50;
}

/* Categories Panel */
.categories-list {
    padding: 0.5rem;
    min-height: 550px;
    overflow-y: auto;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.3rem 0.5rem;
    margin-bottom: 0.2rem;
    background: #f8f9fa;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-height: 32px;
}

.category-item:hover {
    background: #2c3e50;
    color: white;
    transform: translateX(2px);
    box-shadow: 0 1px 3px rgba(44, 62, 80, 0.12);
    border-color: #2c3e50;
}

.category-icon {
    font-size: 0.8rem;
    color: #2c3e50;
    margin-right: 0.5rem;
    width: 18px;
    text-align: center;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.category-item:hover .category-icon {
    color: white;
}

.category-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
}

.category-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.category-item:hover .category-name {
    color: white;
}

.category-count {
    background: #e9ecef;
    color: #2c3e50;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 500;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.category-item:hover .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Latest Articles Panel */
.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.modern-article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.modern-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

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

.article-image-container {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-article-card:hover .article-image {
    transform: scale(1.05);
}

.article-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    opacity: 0.7;
}

.article-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    padding: 0.2rem 0.6rem;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.article-info {
    padding: 1rem;
}

.modern-article-card .article-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #999;
}

.article-views {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Bottom Section - Most Viewed */
.bottom-section {
    margin-top: 1.5rem;
}

.most-viewed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.trending-article-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
}

.trending-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.trending-rank {
    position: absolute;
    top: -8px;
    left: 1rem;
    background: #2c3e50;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.2);
}

.trending-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 0.8rem;
}

.trending-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.trending-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0.7;
}

.trending-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.trending-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-category {
    background: #f0f2f5;
    color: #2c3e50;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 0.4rem;
}

.trending-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #999;
}

.trending-views {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #999;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Ancien style compact categories - gardé pour compatibilité */
.compact-categories {
    display: none;
}

.compact-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    max-width: 100%;
}

.compact-category-card {
    background: white;
    border-radius: 8px;
    padding: 1rem 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 80px;
}

.compact-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.compact-category-icon {
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 0.3rem;
}

.compact-category-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.compact-category-count {
    font-size: 0.7rem;
    color: #666;
    background: #f0f2f5;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-weight: 500;
}

/* ==========================================================================
   CATEGORIES PAGE STYLES (Page dédiée aux catégories)
   ========================================================================== */

.categories-page-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.categories-page-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.categories-page-section .section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.categories-page-section .section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.5;
}

.categories-page-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.categories-page-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 180px;
}

.categories-page-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.categories-page-card:hover::before {
    opacity: 1;
}

.categories-page-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
}

.categories-page-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    display: block;
    transition: transform 0.3s ease;
    width: 100%;
    line-height: 1;
    overflow: visible;
}

.categories-page-icon i {
    display: inline-block;
    width: auto;
    max-width: 100%;
}

.categories-page-card:hover .categories-page-icon {
    transform: scale(1.1) rotate(5deg);
}

.categories-page-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-align: center;
    color: #333;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.categories-page-card:hover .categories-page-name {
    color: #667eea;
}

.categories-page-description {
    color: #666;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.4;
    position: relative;
    z-index: 2;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.categories-page-stats {
    text-align: center;
    margin-top: 0.5rem;
    position: relative;
    z-index: 2;
}

.categories-page-stats strong {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.categories-page-card:hover .categories-page-stats strong {
    transform: scale(1.05);
}

/* Empty state pour la page catégories */
.categories-page-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.categories-page-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.categories-page-empty h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

/* Responsive pour la page catégories */
@media (max-width: 1200px) {
    .categories-page-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 900px) {
    .categories-page-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .categories-page-section {
        padding: 3rem 0;
    }

    .categories-page-section .section-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .categories-page-section .section-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }

    .categories-page-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .categories-page-card {
        padding: 1rem;
        border-radius: 10px;
        min-height: 140px;
    }

    .categories-page-card:hover {
        transform: translateY(-6px) scale(1.01);
    }

    .categories-page-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .categories-page-name {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .categories-page-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        margin-bottom: 0.6rem;
    }

    .categories-page-stats {
        margin-top: 0.3rem;
    }

    .categories-page-stats strong {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .categories-page-section {
        padding: 2rem 0;
    }

    .categories-page-section .section-title {
        font-size: 1.8rem;
    }

    .categories-page-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .categories-page-card {
        padding: 0.8rem;
        min-height: 120px;
    }

    .categories-page-icon {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }

    .categories-page-name {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .categories-page-description {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .categories-page-stats {
        margin-top: 0.2rem;
    }

    .categories-page-stats strong {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
}

/* Animation pour le titre de la page catégories */
@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.6), 0 0 30px rgba(118, 75, 162, 0.4);
    }
}

.categories-page-section .section-title {
    animation: titleGlow 2s ease-in-out;
}

/* ==========================================================================
   CATEGORIES (Styles existants gardés pour compatibilité)
   ========================================================================== */

/* Categories */
.categories {
    padding: 4rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 0.8rem;
    text-align: center;
}

.category-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
    color: #333;
}

.category-description {
    color: #666;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.4;
}

/* Articles */
.latest-articles {
    padding: 0;
    background: transparent;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

/* Articles Section pour les pages de catégories */
.articles-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.articles-section .section-header {
    margin-bottom: 2rem;
}

.articles-section .section-title {
    font-size: 2rem;
    color: #333;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
}

.pagination a, .pagination span {
    padding: 0.75rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a {
    background: white;
    color: #667eea;
    border: 1px solid #667eea;
}

.pagination a:hover {
    background: #667eea;
    color: white;
}

.pagination .current {
    background: #667eea;
    color: white;
    border: 1px solid #667eea;
}

.pagination .disabled {
    background: #f8f9fa;
    color: #ccc;
    border: 1px solid #eee;
    cursor: not-allowed;
}

/* Lien cliquable autour des images d'articles */
.article-image-link {
    display: block;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-image-link:hover .article-image {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-image-link:hover .article-image img {
    transform: scale(1.05);
}

.article-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Article image pour les pages d'articles */
.article-image.full-width {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    height: auto;
}

.article-image.full-width img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.article-image.full-width img:hover {
    transform: scale(1.02);
}

.article-content {
    padding: 1.5rem;
}

/* Article content pour les pages d'articles */
.article-content.full-article {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.article-content.full-article h1, 
.article-content.full-article h2, 
.article-content.full-article h3, 
.article-content.full-article h4, 
.article-content.full-article h5, 
.article-content.full-article h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.article-content.full-article h1 { font-size: 2rem; }
.article-content.full-article h2 { font-size: 1.7rem; }
.article-content.full-article h3 { font-size: 1.4rem; }

.article-content.full-article p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.article-content.full-article li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.article-content.full-article blockquote {
    border-left: 4px solid #667eea;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #f8f9ff;
    font-style: italic;
}

/* Article Header */
.article-header {
    padding: 2rem 0;
    text-align: center;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.2;
}

.article-title a {
    color: #333;
    text-decoration: none;
    display: block;
}

.article-title a:hover {
    color: #667eea;
}

/* Titre d'article dans la grille - taille plus petite */
.article-card .article-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.article-card .article-title a {
    color: #333;
    text-decoration: none;
    display: block;
}

.article-card .article-title a:hover {
    color: #667eea;
}

.article-category {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-decoration: none;
}

.category-badge {
    background: #667eea;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
}

.article-summary {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
}

/* Article meta pour les pages d'articles */
.article-meta.centered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Articles similaires */
.similar-articles {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.similar-articles h3 {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.similar-card {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.similar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.similar-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.similar-date {
    font-size: 0.8rem;
    color: #666;
}

/* Navigation articles */
.article-nav {
    text-align: center;
    padding: 2rem 0;
}

.btn {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 1rem;
}

.btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p, .footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #667eea;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #444;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #ccc;
}

.social-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.copyright {
    border-top: 1px solid #444;
    padding-top: 1rem;
    color: #999;
}

.copyright a {
    color: #fff;
    transition: all 0.3s ease;
    display: inline-block;
}

.copyright a:hover {
    color: #d4a155;
    transform: scale(1.1);
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Status messages */
.status-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    text-align: center;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Flash News Banner */
.flash-news-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    margin: 1rem 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.flash-news-container {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.flash-news-title {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-right: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.flash-news-title::before {
    content: "📰";
    margin-right: 0.5rem;
}

.flash-news-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.flash-news-content {
    display: inline-block;
    animation: scroll 40s linear infinite;
    padding-left: 100%;
}

/* Même vitesse sur tous les écrans */
@media (max-width: 600px) {
    .flash-news-content {
        animation: scroll 40s linear infinite;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .flash-news-content {
        animation: scroll 40s linear infinite;
    }
}

@media (min-width: 901px) {
    .flash-news-content {
        animation: scroll 40s linear infinite;
    }
}

.flash-news-item {
    display: inline-block;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.flash-news-item:hover {
    opacity: 1;
}

.flash-news-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.flash-news-item a:hover {
    text-decoration: underline;
}

.flash-news-separator {
    margin: 0 2rem;
    opacity: 0.6;
    font-weight: bold;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.flash-news-banner:hover .flash-news-content {
    animation-play-state: paused;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card, .article-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }

    .article-wrapper {
        padding: 2rem 0;
    }

    .categories-wrapper {
        padding: 3rem 0;
    }

    /* Layout mobile - tout en colonne */
    .top-section {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    /* Mobile: Articles first, Categories second */
    .latest-articles-panel {
        order: 1;
    }

    .categories-panel {
        order: 2;
    }

    .panel-header {
        padding: 1rem 1.5rem;
    }

    .panel-title {
        font-size: 1.1rem;
    }

    /* Categories en grille mobile */
    .categories-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.4rem;
        padding: 1rem;
        min-height: auto;
    }

    .category-item {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0.8rem 0.4rem;
        margin-bottom: 0;
        min-height: 60px;
    }

    .category-icon {
        margin-right: 0;
        margin-bottom: 0.3rem;
        font-size: 1.1rem;
        width: auto;
        flex-shrink: 0;
    }

    .category-details {
        flex-direction: column;
        gap: 0.2rem;
        flex: 1;
        min-width: 0;
        align-items: center;
    }

    .category-name {
        font-size: 0.7rem;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
        overflow: visible;
        text-overflow: unset;
    }

    .category-count {
        font-size: 0.55rem;
        padding: 0.1rem 0.3rem;
        align-self: center;
        margin-left: 0;
    }

    /* Articles grille mobile */
    .latest-articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .most-viewed-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .modern-article-card {
        margin-bottom: 1rem;
    }

    .article-image-container {
        height: 150px;
    }

    .article-info {
        padding: 1rem;
    }

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

    /* Trending cards mobile */
    .trending-article-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .trending-link {
        flex-direction: column;
        gap: 0.8rem;
    }

    .trending-image {
        width: 100%;
        height: 120px;
        align-self: center;
    }

    .trending-rank {
        top: -8px;
        left: 1rem;
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }

    .compact-categories {
        padding: 1.5rem 0;
    }

    .compact-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.8rem;
    }

    .compact-category-card {
        padding: 0.8rem 0.3rem;
        min-height: 70px;
    }

    .compact-category-icon {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
    }

    .compact-category-name {
        font-size: 0.75rem;
    }

    .compact-category-count {
        font-size: 0.65rem;
        padding: 0.1rem 0.3rem;
    }

    .hero {
        padding: 1.2rem 0;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

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

    .category-card {
        padding: 1.2rem;
    }

    .category-icon {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }

    .category-name {
        font-size: 1.1rem;
    }

    .category-description {
        font-size: 0.8rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-card .article-title {
        font-size: 1.1rem;
    }

    .article-content.full-article {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }

    .article-image.full-width {
        max-width: 100%;
        margin: 0 auto 1.5rem;
    }

    .article-meta.centered {
        flex-direction: column;
        gap: 0.5rem;
    }

    .similar-articles {
        max-width: 100%;
        padding: 1rem;
    }

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

    .flash-news-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .flash-news-title {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }

    .flash-news-marquee {
        width: 100%;
    }

    .flash-news-separator {
        margin: 0 1rem;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    /* Layout tablette et écrans moyens - passer en colonne */
    .top-section {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Tablet: Articles first, Categories second */
    .latest-articles-panel {
        order: 1;
    }

    .categories-panel {
        order: 2;
    }

    .container {
        padding: 0 20px;
    }

    /* Categories en grille horizontale pour tablettes */
    .categories-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.5rem;
        padding: 1rem;
        min-height: auto;
    }

    .category-item {
        justify-content: center;
        text-align: center;
        padding: 0.8rem 0.5rem;
        margin-bottom: 0;
        min-height: 60px;
        flex-direction: column;
    }

    .category-icon {
        margin-right: 0;
        margin-bottom: 0.3rem;
        font-size: 1.2rem;
        width: auto;
    }

    .category-details {
        flex-direction: column;
        gap: 0.2rem;
        align-items: center;
    }

    .category-name {
        font-size: 0.8rem;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
    }

    .category-count {
        margin-left: 0;
        align-self: center;
    }
}

@media (min-width: 601px) and (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .article-wrapper {
        padding: 2rem 0;
    }

    .categories-wrapper {
        padding: 3rem 0;
    }

    /* Layout tablette - tout en colonne */
    .top-section {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    /* Tablet: Articles first, Categories second */
    .latest-articles-panel {
        order: 1;
    }

    .categories-panel {
        order: 2;
    }

    .panel-header {
        padding: 1rem 1.2rem;
    }

    .panel-title {
        font-size: 1rem;
    }

    /* Categories en grille pour tablettes */
    .categories-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0.5rem;
        padding: 1rem;
        min-height: auto;
    }

    .category-item {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0.7rem 0.4rem;
        margin-bottom: 0;
        min-height: 55px;
    }

    .category-icon {
        margin-right: 0;
        margin-bottom: 0.25rem;
        font-size: 1rem;
        width: auto;
        flex-shrink: 0;
    }

    .category-details {
        flex-direction: column;
        gap: 0.2rem;
        flex: 1;
        min-width: 0;
        align-items: center;
    }

    .category-name {
        font-size: 0.7rem;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
        overflow: visible;
        text-overflow: unset;
    }

    .category-count {
        font-size: 0.55rem;
        padding: 0.08rem 0.25rem;
        flex-shrink: 0;
        margin-left: 0;
        align-self: center;
    }

    /* Articles grille tablette */
    .latest-articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1rem;
        padding: 1.2rem;
    }

    .most-viewed-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1rem;
        padding: 1.2rem;
    }

    .article-image-container {
        height: 150px;
    }

    .article-info {
        padding: 1rem;
    }

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

    .trending-article-card {
        padding: 1rem;
    }

    .trending-image {
        width: 65px;
        height: 65px;
    }

    .trending-rank {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }

    .compact-categories {
        padding: 1.5rem 0;
    }

    .compact-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 0.8rem;
    }

    .compact-category-card {
        padding: 0.8rem 0.4rem;
    }

    .compact-category-icon {
        font-size: 1.4rem;
    }

    .compact-category-name {
        font-size: 0.75rem;
    }

    .hero {
        padding: 1.5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }


    .article-title {
        font-size: 2rem;
    }

    .article-card .article-title {
        font-size: 1.15rem;
    }

    .article-content.full-article {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .article-image.full-width {
        max-width: 100%;
    }

    .article-meta.centered {
        flex-direction: column;
        gap: 0.5rem;
    }

    .similar-articles {
        max-width: 100%;
        padding: 1.5rem;
    }

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

    .flash-news-banner {
        padding: 0.8rem 0;
    }

    .flash-news-title {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-right: 1rem;
    }

    .flash-news-separator {
        margin: 0 1.5rem;
    }

    .flash-news-content {
        animation-duration: 20s;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1025px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 2rem;
    }

    /* Layout pour très grands écrans - sidebar + contenu */
    .top-section {
        grid-template-columns: 320px 1fr;
        gap: 2.5rem;
        min-height: 650px;
    }

    .categories-list {
        display: block;
        padding: 0.8rem;
        min-height: 600px;
    }

    /* Reset des styles en grille pour les grandes résolutions */
    .category-item {
        justify-content: flex-start;
        text-align: left;
        padding: 0.3rem 0.5rem;
        margin-bottom: 0.2rem;
        min-height: 32px;
        flex-direction: row;
    }

    .category-icon {
        margin-right: 0.5rem;
        margin-bottom: 0;
        font-size: 0.8rem;
        width: 18px;
    }

    .category-details {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .category-name {
        font-size: 0.75rem;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .category-count {
        margin-left: auto;
        align-self: auto;
    }

    .panel-header {
        padding: 1.5rem;
    }

    .panel-title {
        font-size: 1.2rem;
    }

    .latest-articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 2rem;
    }

    .most-viewed-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
        padding: 2rem;
    }
}

/* Breakpoint spécial pour écrans moyens-larges */
@media (min-width: 769px) and (max-width: 1024px) {
    .top-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
    }

    /* Medium screens: Articles first, Categories second */
    .latest-articles-panel {
        order: 1;
    }

    .categories-panel {
        order: 2;
    }

    /* Categories en grille horizontale pour écrans moyens */
    .categories-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.6rem;
        padding: 1.2rem;
        min-height: auto;
    }

    .category-item {
        justify-content: center;
        text-align: center;
        padding: 1rem 0.6rem;
        margin-bottom: 0;
        min-height: 70px;
        flex-direction: column;
    }

    .category-icon {
        margin-right: 0;
        margin-bottom: 0.4rem;
        font-size: 1.4rem;
        width: auto;
    }

    .category-details {
        flex-direction: column;
        gap: 0.3rem;
        align-items: center;
    }

    .category-name {
        font-size: 0.85rem;
        text-align: center;
        white-space: normal;
        line-height: 1.3;
    }

    .category-count {
        margin-left: 0;
        align-self: center;
    }

    .latest-articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.2rem;
        padding: 1.5rem;
    }

    .most-viewed-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.2rem;
        padding: 1.5rem;
    }
}

/* ========================================
   STYLES POUR LES PAGES ARTICLES
   ======================================== */

/* Article Meta Info dans Hero */
.article-meta-info {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.hero-category,
.hero-date,
.hero-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Article Section */
.article-section {
    padding: 3rem 0;
}

.article-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-bottom: 3rem;
}

.article-cover {
    width: 100%;
    margin-bottom: 2rem;
}

.cover-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-content-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
}

.article-summary p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: #333;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.article-body h2 { font-size: 1.8rem; }
.article-body h3 { font-size: 1.5rem; }
.article-body h4 { font-size: 1.3rem; }

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

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

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

.article-body blockquote {
    background: #f8f9fa;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-body a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.article-body a:hover {
    border-bottom-color: #667eea;
}

/* Article Sidebar */
.article-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.sidebar-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-section h3 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-link {
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.article-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #666;
}

.stat-item i {
    color: #667eea;
    width: 16px;
}


.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-btn:hover {
    background: #667eea;
    color: white;
}

.nav-btn i {
    font-size: 0.9rem;
}

/* Similar Articles Section */
.similar-articles-section {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.section-title i {
    color: #667eea;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.similar-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.similar-article-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.similar-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.similar-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.similar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.similar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.similar-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.similar-content {
    padding: 1.5rem;
}

.similar-title {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.similar-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.similar-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
}

.similar-date,
.similar-views {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Categories Section */
.categories-section {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.categories-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.category-showcase-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-showcase-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}

.category-showcase-details {
    text-align: center;
}

.category-showcase-name {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.category-showcase-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.category-showcase-count {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-wrapper {
        padding: 2rem 0;
    }

    .categories-wrapper {
        padding: 3rem 0;
    }

    .category-hero {
        padding: 2rem 0;
    }

    .category-hero h1 {
        font-size: 2rem;
    }

    .category-articles-container {
        padding: 2rem;
    }

    .category-articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

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

    .article-sidebar {
        position: static;
    }

    .similar-articles-grid,
    .categories-showcase {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .article-wrapper {
        padding: 1.5rem 0;
    }

    .categories-wrapper {
        padding: 3rem 0;
    }

    .category-hero {
        padding: 1.5rem 0;
    }

    .category-hero h1 {
        font-size: 1.8rem;
    }

    .category-hero .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .category-articles-container {
        padding: 1.5rem;
    }

    .category-articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-article-card {
        padding: 1rem;
    }

    .article-meta-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-category,
    .hero-date,
    .hero-views {
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .article-content-wrapper {
        padding: 1.5rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body h2 { font-size: 1.5rem; }
    .article-body h3 { font-size: 1.3rem; }
    .article-body h4 { font-size: 1.1rem; }

    .article-sidebar {
        padding: 1.5rem;
    }

    .similar-articles-section,
    .categories-section {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .similar-articles-grid,
    .categories-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .article-wrapper {
        padding: 1rem 0;
    }

    .categories-wrapper {
        padding: 3rem 0;
    }

    .category-hero {
        padding: 1rem 0;
    }

    .category-hero h1 {
        font-size: 1.5rem;
    }

    .category-hero p {
        font-size: 0.9rem;
    }

    .category-hero .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .category-articles-container {
        padding: 1rem;
    }

    .category-article-card {
        padding: 0.8rem;
    }

    .article-content-wrapper {
        padding: 1rem;
    }

    .sidebar-section h3 {
        font-size: 1rem;
    }

    .stat-item {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .similar-articles-section,
    .categories-section {
        padding: 1.5rem 1rem;
    }

    .section-title {
        font-size: 1.4rem;
    }
}

/* ========================================
   STYLES POUR LES PAGES ARTICLES
   ======================================== */

/* Article Full Width Section */
.article-full-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.article-content-container {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.article-cover {
    width: 100%;
    margin-bottom: 2rem;
    text-align: center;
}

.cover-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
}

.article-summary {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
}

.article-summary p {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #555;
    font-style: italic;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2rem;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: #333;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.article-body h2 { font-size: 2rem; }
.article-body h3 { font-size: 1.6rem; }
.article-body h4 { font-size: 1.3rem; }

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

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

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

.article-body blockquote {
    background: #f8f9fa;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-body a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.article-body a:hover {
    border-bottom-color: #667eea;
}

.article-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-content-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .article-content-container {
        padding: 1.5rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body h2 { font-size: 1.6rem; }
    .article-body h3 { font-size: 1.3rem; }
    .article-body h4 { font-size: 1.1rem; }

    .article-nav {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .article-content-container {
        padding: 1rem;
    }

    .article-body h2 { font-size: 1.4rem; }
    .article-body h3 { font-size: 1.2rem; }
    .article-body h4 { font-size: 1rem; }
}

/* Navigation sur petits écrans */
@media (max-width: 480px) {
    .nav-container {
        padding: 1rem 15px;
    }

    .hamburger {
        width: 40px;
        height: 40px;
    }

    .hamburger span {
        width: 18px;
        height: 2px;
    }

    .hamburger span:not(:last-child) {
        margin-bottom: 3px;
    }

    .nav-links {
        width: 280px;
        padding: 5rem 2rem 2rem;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 1rem 0;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-image {
        height: 30px;
    }

    /* Overlay plus visible sur petits écrans */
    .nav-links.active::before {
        background: rgba(102, 126, 234, 0.15);
    }
}