/* Pages de catégories - Refonte Moderne */

.category-page {
    background-color: #fcfcfc;
}

/* Breadcrumbs integration */
.category-page .breadcrumbs-container {
    background: transparent;
    border-bottom: none;
    padding: 20px 0 0;
}

/* Category Hero Section */
.category-hero {
    background-color: var(--secondary-color);
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(44, 62, 80, 0.4) 100%);
    z-index: 1;
}

.category-hero .container {
    position: relative;
    z-index: 2;
}

.category-header {
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out;
}

.category-header h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: white;
    text-transform: uppercase;
    letter-spacing: -1.5px;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.category-description {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    font-weight: 400;
    max-width: 700px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Layout Grid */
.category-main-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    padding-bottom: 80px;
}

/* Content Area */
.category-content {
    font-size: 1.15rem;
    color: #333;
    line-height: 1.7;
}

.category-intro {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    margin-bottom: 60px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.category-content h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin: 40px 0 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.category-content p {
    margin-bottom: 25px;
}

/* Articles Section on Category Page */
.category-articles-section {
    margin-top: 60px;
}

.category-articles-section h2 {
    display: block;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: none;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 35px;
}

.category-article {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    height: 100%;
}

.category-article:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.article-thumb-link {
    display: block;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.article-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-article:hover .article-thumb {
    transform: scale(1.08);
}

.article-meta {
    padding: 20px 30px 0;
}

.article-date {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.article-info {
    padding: 20px 30px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-info h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    line-height: 1.25;
    font-weight: 700;
}

.article-info h3 a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.article-info h3 a:hover {
    color: var(--primary-color);
}

.article-info p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

.article-footer {
    margin-top: auto;
}

.read-more {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.read-more .arrow {
    transition: transform 0.3s;
}

.read-more:hover {
    color: var(--primary-dark);
}

.read-more:hover .arrow {
    transform: translateX(5px);
}

/* Sidebar Styles */
.category-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

/* Category List Sidebar */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: block;
    padding: 12px 18px;
    color: var(--secondary-color);
    text-decoration: none;
    background: #f8f9fa;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s;
}

.category-list a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.2);
}

/* Recent Articles Sidebar */
.recent-articles {
    list-style: none;
}

.recent-articles li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.recent-articles li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-articles a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
    transition: color 0.2s;
}

.recent-articles a:hover {
    color: var(--primary-color);
}

/* No Articles Fallback */
.no-articles {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 32px;
    color: #333;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.no-articles-icon {
    font-size: 4rem;
    margin-bottom: 25px;
}

.no-articles p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .category-main-grid {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: 60px 0;
    }

    .category-header h1 {
        font-size: 2.5rem;
    }

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

    .category-article {
        max-width: 100%;
    }
}