/* =====================================================
   Global Styles & Variables
   ===================================================== */
:root {
    /* Colors */
    --color-primary: #2c3e50;
    --color-primary-dark: #1a252f;
    --color-secondary: #3498db;
    --color-accent: #e74c3c;
    --color-success: #27ae60;
    --color-warning: #f39c12;
    --color-info: #3498db;
    
    /* Neutrals */
    --color-dark: #2c3e50;
    --color-gray-900: #34495e;
    --color-gray-700: #7f8c8d;
    --color-gray-500: #95a5a6;
    --color-gray-300: #bdc3c7;
    --color-gray-100: #ecf0f1;
    --color-white: #ffffff;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 3px 6px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.10);
    --shadow-xl: 0 15px 25px rgba(0,0,0,0.15), 0 5px 10px rgba(0,0,0,0.05);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* =====================================================
   Header & Navigation
   ===================================================== */
.main-header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--color-gray-100);
    padding: var(--spacing-sm) 0;
    font-size: 0.875rem;
}

.header-info {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-xl);
    color: var(--color-gray-700);
}

/* Navigation Bar */
.navbar {
    padding: var(--spacing-md) 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-dark);
}

.logo-text .accent {
    color: var(--color-secondary);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--color-dark);
    font-weight: 500;
    padding: var(--spacing-sm) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-secondary);
}

.arrow {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.nav-item:hover .arrow {
    transform: rotate(180deg);
}

/* Mega Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu {
    width: 600px;
    padding: var(--spacing-xl);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.mega-column h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-column a {
    display: block;
    color: var(--color-gray-700);
    padding: var(--spacing-xs) 0;
    transition: var(--transition-fast);
}

.mega-column a:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.search-btn {
    background: none;
    border: none;
    color: var(--color-dark);
    cursor: pointer;
    padding: var(--spacing-sm);
    transition: var(--transition-fast);
}

.search-btn:hover {
    color: var(--color-secondary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-dark);
    transition: var(--transition-fast);
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    position: relative;
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="white" fill-opacity="0.3" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-2xl);
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-secondary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn-outline-white {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-text {
    color: var(--color-secondary);
    font-weight: 500;
}

.btn-text:hover {
    color: var(--color-primary);
}

.btn-block {
    display: block;
    width: 100%;
}

/* =====================================================
   Cards & Quick Access
   ===================================================== */
.quick-access {
    padding: var(--spacing-3xl) 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.access-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
}

.access-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.access-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark);
}

.access-card p {
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-md);
}

.card-link {
    color: var(--color-secondary);
    font-weight: 500;
}

/* =====================================================
   Main Categories Section
   ===================================================== */
.main-categories {
    padding: var(--spacing-3xl) 0;
    background: var(--color-gray-100);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-2xl);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.category-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
}

.category-tag {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.category-content {
    padding: var(--spacing-xl);
}

.category-content h3 {
    margin-bottom: var(--spacing-md);
}

.category-content p {
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-md);
}

/* =====================================================
   Recent Articles
   ===================================================== */
.recent-articles {
    padding: var(--spacing-3xl) 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.article-card {
    padding: var(--spacing-xl);
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-300);
    transition: all var(--transition-base);
}

.article-card:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
}

.article-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
}

.article-category {
    color: var(--color-secondary);
    font-weight: 500;
}

.article-date {
    color: var(--color-gray-500);
}

.article-card h3 {
    margin-bottom: var(--spacing-md);
}

.article-card h3 a {
    color: var(--color-dark);
}

.article-card h3 a:hover {
    color: var(--color-secondary);
}

.article-card p {
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-md);
}

.read-more {
    color: var(--color-secondary);
    font-weight: 500;
}

/* =====================================================
   CTA Section
   ===================================================== */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    text-align: center;
}

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* =====================================================
   Footer
   ===================================================== */
.main-footer {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.footer-top {
    padding: var(--spacing-3xl) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: var(--spacing-md);
}

.footer-desc {
    opacity: 0.8;
    margin-bottom: var(--spacing-lg);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
}

.footer-column h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-column ul li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--color-white);
    transform: translateX(5px);
    display: inline-block;
}

.footer-bottom {
    padding: var(--spacing-lg) 0;
    background: rgba(0,0,0,0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: var(--spacing-xl);
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: var(--color-white);
}

/* =====================================================
   Category Page Styles
   ===================================================== */
.breadcrumb {
    padding: var(--spacing-md) 0;
    background: var(--color-gray-100);
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    font-size: 0.875rem;
}

.breadcrumb-list li {
    color: var(--color-gray-700);
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin: 0 var(--spacing-sm);
    color: var(--color-gray-500);
}

.breadcrumb-list a {
    color: var(--color-gray-700);
}

.breadcrumb-list a:hover {
    color: var(--color-secondary);
}

.category-hero {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
}

.category-hero-content {
    max-width: 800px;
}

.category-title {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.category-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
}

.category-stats {
    display: flex;
    gap: var(--spacing-xl);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    opacity: 0.8;
}

/* Subcategories Navigation */
.subcategories {
    padding: var(--spacing-xl) 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-300);
}

.subcategories-nav {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
}

.subcat-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--color-gray-100);
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.subcat-btn:hover {
    background: var(--color-gray-300);
}

.subcat-btn.active {
    background: var(--color-secondary);
    color: var(--color-white);
}

/* Articles Layout */
.category-articles {
    padding: var(--spacing-3xl) 0;
    background: var(--color-gray-100);
}

.articles-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--spacing-2xl);
}

.articles-main {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

/* Featured Article */
.article-featured {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 2px solid var(--color-gray-300);
}

.article-featured-image {
    position: relative;
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.article-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--color-accent);
    color: var(--color-white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

/* Articles List */
.articles-list {
    display: grid;
    gap: var(--spacing-xl);
}

.article-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--color-gray-300);
}

.article-item-image img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.meta-category {
    color: var(--color-secondary);
    font-weight: 500;
}

.meta-time {
    color: var(--color-gray-500);
}

.article-item h3 {
    margin-bottom: var(--spacing-sm);
}

.article-item p {
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-md);
}

.article-link {
    color: var(--color-secondary);
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-2xl);
}

.pagination-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    color: var(--color-gray-700);
    cursor: pointer;
    transition: var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--color-gray-100);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: var(--spacing-xs);
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    color: var(--color-gray-700);
    cursor: pointer;
    transition: var(--transition-fast);
}

.pagination-number:hover {
    background: var(--color-gray-100);
}

.pagination-number.active {
    background: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

/* Sidebar Widgets */
.articles-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.sidebar-widget {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.widget-title {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-gray-300);
}

.search-box {
    display: flex;
    gap: var(--spacing-sm);
}

.search-box input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
}

.search-submit {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-secondary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.popular-articles {
    list-style: none;
}

.popular-articles li {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-gray-300);
}

.popular-number {
    width: 30px;
    height: 30px;
    background: var(--color-secondary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.quick-links {
    display: grid;
    gap: var(--spacing-sm);
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    background: var(--color-gray-100);
    border-radius: var(--radius-sm);
    color: var(--color-gray-700);
    transition: var(--transition-fast);
}

.quick-link-item:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

.newsletter-widget {
    background: var(--color-primary);
    color: var(--color-white);
}

.newsletter-widget .widget-title {
    color: var(--color-white);
    border-bottom-color: rgba(255,255,255,0.2);
}

.newsletter-widget p {
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.newsletter-form input {
    width: 100%;
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

/* =====================================================
   Article Page Styles
   ===================================================== */
.article-page {
    padding: var(--spacing-3xl) 0;
    background: var(--color-gray-100);
}

.article-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-2xl);
}

.article-main {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
}

.article-header {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 2px solid var(--color-gray-300);
}

.article-meta-top {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
}

.article-title {
    margin-bottom: var(--spacing-md);
}

.article-intro {
    font-size: 1.125rem;
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-lg);
}

.article-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.meta-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.author-name {
    display: block;
    font-weight: 500;
}

.author-role {
    display: block;
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.meta-info {
    display: flex;
    gap: var(--spacing-lg);
    color: var(--color-gray-500);
}

/* Table of Contents */
.article-toc {
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.toc-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.toc-list {
    list-style: none;
    counter-reset: toc-counter;
}

.toc-list li {
    counter-increment: toc-counter;
    padding: var(--spacing-sm) 0;
}

.toc-list li::before {
    content: counter(toc-counter) '. ';
    color: var(--color-secondary);
    font-weight: 500;
}

.toc-list a {
    color: var(--color-gray-700);
}

.toc-list a:hover {
    color: var(--color-secondary);
}

/* Article Content */
.article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.article-content section {
    margin-bottom: var(--spacing-2xl);
}

.article-content h2 {
    margin-bottom: var(--spacing-lg);
    padding-top: var(--spacing-xl);
}

.article-content p {
    margin-bottom: var(--spacing-md);
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-xl);
}

/* Content Boxes */
.info-box,
.highlight-box,
.tip-box,
.warning-box {
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.info-box {
    background: var(--color-gray-100);
    border-left: 4px solid var(--color-info);
}

.highlight-box {
    background: linear-gradient(135deg, #f6f9fc 0%, #e9f2ff 100%);
    border: 1px solid var(--color-secondary);
}

.tip-box {
    background: #f0f9ff;
    border-left: 4px solid var(--color-success);
}

.warning-box {
    background: #fff4e5;
    border-left: 4px solid var(--color-warning);
}

.info-box h3,
.highlight-box h3,
.tip-box h3,
.warning-box h3 {
    margin-bottom: var(--spacing-md);
}

/* Two Columns Layout */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

/* Styled List */
.styled-list {
    list-style: none;
    padding: 0;
}

.styled-list li {
    position: relative;
    padding-left: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.styled-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

/* Process Steps */
.process-steps {
    margin: var(--spacing-xl) 0;
}

.step {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--color-secondary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: var(--spacing-xs);
}

/* Grid Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.grid-cards .card {
    background: var(--color-gray-100);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.grid-cards .card:hover {
    background: var(--color-gray-300);
}

.grid-cards .card h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

/* Checklist */
.checklist {
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.checklist h3 {
    margin-bottom: var(--spacing-md);
}

.checklist label {
    display: block;
    padding: var(--spacing-sm) 0;
    cursor: pointer;
}

.checklist input[type="checkbox"] {
    margin-right: var(--spacing-sm);
}

/* Timeline */
.timeline {
    margin: var(--spacing-xl) 0;
}

.timeline-item {
    display: flex;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 100px;
    top: 50px;
    bottom: -30px;
    width: 2px;
    background: var(--color-gray-300);
}

.timeline-marker {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
}

.timeline-marker.urgent {
    background: var(--color-accent);
}

.timeline-content h4 {
    margin-bottom: var(--spacing-sm);
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    text-align: center;
    margin: var(--spacing-2xl) 0;
}

.article-cta h3 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.article-cta p {
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* Article Footer */
.article-footer {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 2px solid var(--color-gray-300);
}

.article-tags {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.tag-label {
    color: var(--color-gray-700);
    font-weight: 500;
}

.tag {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--color-gray-100);
    border-radius: var(--radius-sm);
    color: var(--color-gray-700);
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.tag:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

.article-share {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.share-btn {
    width: 40px;
    height: 40px;
    background: var(--color-gray-100);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.share-btn:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

/* Related Articles */
.related-articles {
    margin-top: var(--spacing-3xl);
}

.related-articles h2 {
    margin-bottom: var(--spacing-xl);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.related-item {
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-base);
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-item h3 {
    padding: var(--spacing-md);
    font-size: 1rem;
}

.related-item h3 a {
    color: var(--color-dark);
}

.related-category {
    display: block;
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--color-secondary);
    font-size: 0.875rem;
}

/* Article Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.reading-progress {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.progress-bar {
    height: 8px;
    background: var(--color-gray-300);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: var(--color-secondary);
    transition: width var(--transition-base);
}

.progress-text {
    font-size: 0.875rem;
    color: var(--color-gray-700);
}

/* Quick Actions */
/* QUICK-ACTIONS SUPPRIMÉ
/* QUICK-ACTIONS SUPPRIMÉ
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}
*/
*/

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background: var(--color-gray-100);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.action-btn:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

.action-btn span {
    font-size: 0.75rem;
}

/* Help Widget */
.help-widget {
    background: var(--color-primary);
    color: var(--color-white);
}

.help-widget h3 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.help-widget p {
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

.help-widget small {
    display: block;
    text-align: center;
    margin-top: var(--spacing-sm);
    opacity: 0.8;
}

/* Download Widget */
/* WIDGET SUPPRIMÉ
.download-card {
    text-align: center;
}
*/

/* WIDGET SUPPRIMÉ
.download-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}
*/

.download-card h4 {
    margin-bottom: var(--spacing-sm);
}

.download-card p {
    color: var(--color-gray-700);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

/* Services List */
/* WIDGET SUPPRIMÉ
.services-list {
    list-style: none;
}
*/

.services-list li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-gray-300);
}

.services-list li:last-child {
    border-bottom: none;
}

.services-list a {
    color: var(--color-gray-700);
    display: block;
    transition: var(--transition-fast);
}

.services-list a:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
}

/* =====================================================
   Animations
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .articles-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-wrapper {
        grid-template-columns: 1fr;
    }
    
    .articles-sidebar,
    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--spacing-2xl);
        transition: var(--transition-base);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .cards-grid,
    .categories-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-item {
        grid-template-columns: 1fr;
    }
    
    .two-columns,
    .grid-cards {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}
/* Style pour le lien du logo */
.nav-wrapper > a {
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-wrapper > a:hover {
    text-decoration: none !important;
}

.nav-wrapper > a .logo-text {
    text-decoration: none !important;
}


/* Logo Text Amélioré */
.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.5px;
    font-family: 'Georgia', 'Times New Roman', serif;
    position: relative;
    display: inline-block;
    text-transform: none;
    margin-left: 10px;
}

.nav-wrapper > a {
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
}

.nav-wrapper > a:hover {
    opacity: 0.9;
}

.nav-wrapper > a:hover .logo-text {
    color: #1a252f;
}

/* Animation subtile au survol */
.logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2c3e50, #3498db);
    transition: width 0.3s ease;
}

.nav-wrapper > a:hover .logo-text::after {
    width: 100%;
}

/* Footer Logo Text */
.footer-logo-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: white;
    letter-spacing: 0.5px;
    font-family: 'Georgia', 'Times New Roman', serif;
    margin-top: 10px;
    display: block;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.2rem;
    }
    
    .footer-logo-text {
        font-size: 1.1rem;
    }
}


/* ========================================
   HERO TITLE AMÉLIORÉ - Meilleure visibilité
   ======================================== */

.hero {
    position: relative;
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
    padding: 2rem 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.hero-title br {
    display: block;
    content: "";
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-actions .btn {
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-actions .btn-primary {
    background: #ffffff;
    color: #2c3e50;
    border: 2px solid #ffffff;
}

.hero-actions .btn-primary:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hero-actions .btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.hero-actions .btn-outline:hover {
    background: #ffffff;
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 400px;
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Dark overlay pour améliorer le contraste */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}


/* ========================================
   ICÔNES DE CATÉGORIES
   ======================================== */

.category-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.category-icon {
    width: 120px;
    height: 120px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.category-card:nth-child(1) .category-icon-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-card:nth-child(2) .category-icon-wrapper {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.category-card:nth-child(3) .category-icon-wrapper {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.category-card:nth-child(4) .category-icon-wrapper {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.category-card:nth-child(5) .category-icon-wrapper {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.category-card:nth-child(6) .category-icon-wrapper {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.category-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon-wrapper::before {
    animation-duration: 10s;
}

/* Ajustement de l'overlay pour les icônes */
.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.category-tag {
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .category-icon-wrapper {
        height: 200px;
    }
    
    .category-icon {
        width: 80px;
        height: 80px;
    }
}


/* ========================================
   ICÔNES D'ARTICLES DANS LES CATÉGORIES
   ======================================== */

/* Icônes dans les articles featured */
.article-featured-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.icon-wrapper-featured {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 300px;
    position: relative;
}

.icon-wrapper-featured .article-icon {
    width: 120px;
    height: 120px;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Icônes dans les articles de liste */
.article-item-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.icon-wrapper-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
    position: relative;
}

.icon-wrapper-item .article-icon {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease;
}

.article-item:hover .icon-wrapper-item .article-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Variantes de fond pour les featured */
.article-featured:nth-child(odd) .article-featured-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-featured:nth-child(even) .article-featured-image {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Variantes de fond pour les items */
.article-item:nth-child(3n+1) .article-item-image {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.article-item:nth-child(3n+2) .article-item-image {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.article-item:nth-child(3n) .article-item-image {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
}

/* Effet de brillance */
.icon-wrapper-featured::before,
.icon-wrapper-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .icon-wrapper-featured .article-icon {
        width: 100px;
        height: 100px;
    }
    
    .icon-wrapper-item .article-icon {
        width: 60px;
        height: 60px;
    }
    
    .icon-wrapper-featured {
        min-height: 250px;
    }
    
    .icon-wrapper-item {
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .icon-wrapper-featured .article-icon {
        width: 80px;
        height: 80px;
    }
    
    .icon-wrapper-item .article-icon {
        width: 50px;
        height: 50px;
    }
}


/* ========================================
   AJUSTEMENTS APRÈS SUPPRESSION DES FEATURED IMAGES
   ======================================== */

.article-featured {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-featured-content {
    flex: 1;
    padding: 0;
}

.article-featured-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.article-featured-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #5a6c7d;
    margin-bottom: 1.5rem;
}

.article-featured-meta {
    display: flex;
    gap: 2rem;
    align-items: center;
    font-size: 0.95rem;
    color: #7f8c8d;
}

.article-featured .btn-text {
    font-weight: 600;
    color: #3498db;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.article-featured .btn-text:hover {
    color: #2980b9;
}

/* Responsive */
@media (max-width: 768px) {
    .article-featured {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .article-featured-content h3 {
        font-size: 1.3rem;
    }
    
    .article-featured-content p {
        font-size: 1rem;
    }
    
    .article-featured-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}


/* ========================================
   PAGES DE TAGS
   ======================================== */

.tag-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0;
    color: white;
}

.tag-header-content {
    text-align: center;
}

.tag-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.tag-icon {
    font-size: 2rem;
}

.tag-description {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Articles Grid pour les tags */
.articles-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-card h3 {
    margin: 1rem 0;
    font-size: 1.3rem;
}

.article-card h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card h3 a:hover {
    color: #3498db;
}

.article-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Tags associés */
.related-tags-section {
    padding: 3rem 0;
    background: white;
}

.related-tags-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

/* Page index des tags */
.tags-index-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 3rem 0;
    color: white;
    text-align: center;
}

.tags-index-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tags-cloud-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.tags-cloud-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 2rem;
}

.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.tag-cloud-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #3498db;
    background: #3498db;
    color: white;
}

.tag-name {
    font-weight: 600;
}

.tag-count {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Tailles de tags */
.tag-sm {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
}

.tag-md {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.tag-lg {
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
}

.tag-xl {
    font-size: 1.3rem;
    padding: 0.7rem 1.4rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .tag-title {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .tags-cloud-grid {
        padding: 1rem;
    }
}


/* ========================================
   CTA PLAQUE FUNÉRAIRE
   ======================================== */

.sidebar-cta-plaque {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar-cta-plaque:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.sidebar-cta-plaque .cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.sidebar-cta-plaque h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.sidebar-cta-plaque p {
    color: #5a6c7d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.sidebar-cta-plaque .cta-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    text-align: left;
}

.sidebar-cta-plaque .cta-features li {
    padding: 0.5rem 0;
    color: #34495e;
    font-size: 0.9rem;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-cta-plaque .cta-features li:last-child {
    border-bottom: none;
}

.sidebar-cta-plaque .btn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.sidebar-cta-plaque .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.inline-cta-plaque {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.inline-cta-plaque:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar-cta-plaque {
        padding: 1rem;
    }
    
    .sidebar-cta-plaque .cta-icon {
        font-size: 2.5rem;
    }
    
    .sidebar-cta-plaque h3 {
        font-size: 1.1rem;
    }
    
    .inline-cta-plaque {
        padding: 1rem !important;
    }
}


/* ========================================
   WIDGETS SIDEBAR - CATÉGORIES ET ARTICLES
   ======================================== */

.categories-widget,
.random-articles-widget {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

/* Catégories */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 0.5rem;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: #34495e;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: #f8f9fa;
    color: #2c3e50;
    transform: translateX(3px);
}

.category-name {
    font-size: 0.95rem;
}

.category-count {
    background: #e0e0e0;
    color: #5a6c7d;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-link:hover .category-count {
    background: #667eea;
    color: white;
}

/* Articles aléatoires */
.random-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.random-article-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.random-article-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.random-article-link {
    text-decoration: none;
    display: block;
}

.random-article-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.random-article-category {
    font-size: 0.75rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.random-article-item:hover .random-article-title {
    color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
    .categories-widget,
    .random-articles-widget {
        padding: 1rem;
    }
    
    .category-link {
        padding: 0.4rem 0.5rem;
    }
    
    .random-article-item {
        padding: 0.5rem;
    }
}
