/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}
/* BG */

.background-layer {
    background: linear-gradient(-45deg, #5552ee, #0396FF, #4d18c9);
    background-size: 400% 500%;
    animation: gradient 15s ease infinite;
    height: 100vh;
    overflow: hidden;
    position: fixed; /* Changed from relative to fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1; /* Make sure it stays behind content */
    margin: 0;
    padding: 0;
}

/* Update the pseudo-elements to target .background-layer instead */
.background-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.05) 20px,
            rgba(255, 255, 255, 0.05) 22px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.03) 20px,
            rgba(255, 255, 255, 0.03) 22px
        ),
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 30px 30px;
    animation: patternMove 20s linear infinite;
}

.background-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 30%),
        radial-gradient(circle at 30% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 25%);
    animation: orbFloat 25s ease-in-out infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

@keyframes patternMove {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 40px 40px, -40px -40px, 30px 30px;
    }
}

@keyframes orbFloat {
    0%, 100% {
        background-position: 20% 30%, 80% 70%, 60% 20%, 30% 80%;
    }
    25% {
        background-position: 30% 40%, 70% 60%, 50% 30%, 40% 70%;
    }
    50% {
        background-position: 40% 20%, 60% 80%, 70% 10%, 20% 90%;
    }
    75% {
        background-position: 10% 50%, 90% 50%, 80% 40%, 10% 60%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.3;
    }
}

/* BG */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.header-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #1c2a68;
    background-color: #f8f9fa;
}

.nav-menu i {
    margin-right: 0.5rem;
}

/* Main content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Search section */
.search-section {
    margin-bottom: 3rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box {
    position: relative;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
    z-index: 2;
}

#searchInput {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border: none;
    outline: none;
    font-size: 1.1rem;
    background: transparent;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 99999;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.search-result-category {
    font-size: 0.9rem;
    color: #666;
    background: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

/* Stats section */
.stats-section {
    margin-bottom: 3rem;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

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

.stat-card i {
    font-size: 2.5rem;
    color: #ffffff;
    margin-right: 1rem;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: #ffffff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Content grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

/* Sections */
section {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

section h3 {
    color: #ffffff;
}

section h2 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 0.5rem;
}

section h2 i {
    color: #ffffff;
    margin-right: 0.5rem;
}

/* Categories */
.categories-grid {
    display: grid;
    gap: 1rem;
}

.category-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.category-icon i {
    color: #1c2a68;
    font-size: 1.2rem;
}

.category-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.category-info p {
    font-size: 0.85rem;
    color: #ffffff;
}

/* Articles list */
.articles-list {
    margin-bottom: 1rem;
}

.article-item {
    display: block;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: #667eea;
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.article-item:last-child {
    margin-bottom: 0;
}

.article-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    line-height: 1.4;
}

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

.article-meta .category {
    background: #ffffff;
    color: #1c2a68;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

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

/* View all button */
.view-all-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #4054ac;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-align: center;
}

.view-all-btn:hover {
    background: #1c2a68;
    transform: translateY(-2px);
}

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

/* Responsive */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .nav-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .search-container {
        margin: 0 1rem;
    }
    
    /* Pagination responsive */
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
        padding: 0.5rem;
    }
    
    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .pagination-numbers {
        margin: 0 0.5rem;
        gap: 0.15rem;
    }
    
    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 1rem;
    }
    
    .category-card,
    .article-item {
        padding: 0.75rem;
    }
    
    /* Pagination mobile */
    .pagination {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .pagination-numbers {
        order: -1;
        margin: 0;
    }
    
    .pagination-btn {
        width: 100%;
        justify-content: center;
        max-width: 200px;
    }
}

/* Loading animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Highlight search terms */
.highlight {
    background-color: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

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

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination-btn:hover {
    background: #1c2a68;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 1rem;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pagination-number:hover {
    background: #f8f9fa;
    border-color: #1c2a68;
    transform: translateY(-1px);
}

.pagination-number.active {
    background: #1c2a68;
    color: white;
    border-color: #1c2a68;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #999;
    font-weight: bold;
}

/* Article page specific styles */
.article-header {
    background: rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.article-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.article-meta-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: #fff;
    font-size: 0.9rem;
}

.article-meta-info a {
    color: #fff;
    text-decoration: none;
}

.article-body {
    background: rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    line-height: 1.8;
    font-size: 1.1rem;
    color: #fff;
    margin-top: 1.5rem;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.article-body h1 {
    font-size: 1.8rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.article-body h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.3rem;
}

.article-body h3 {
    font-size: 1.3rem;
}

.article-body h4 {
    font-size: 1.2rem;
}

.article-body h5 {
    font-size: 1.1rem;
}

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

.article-body p {
    margin-bottom: 1.2rem;
    text-align: justify;
    text-justify: inter-word;
}

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

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

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

.article-body strong,
.article-body b {
    font-weight: 700;
    color: #fff;
}

.article-body em,
.article-body i {
    font-style: italic;
}

.article-body a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-body a:hover {
    color: #5a6fd8;
}

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

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-body th,
.article-body td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.article-body th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.article-body hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    margin: 2rem 0;
}

.article-body code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
	color: #ff05e4;
}

.article-body pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.related-articles {
    margin-top: 2rem;
}

.related-articles h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.related-list {
    display: grid;
    gap: 1rem;
}

.related-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.related-item i {
    color: #ffffff;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.related-item-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #fff;
}

.related-item-content p {
    font-size: 0.8rem;
    color: #e1e1e1;
}

/* Styles pour la recherche rapide */
.quick-search {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.quick-search h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.quick-search .search-box {
    position: relative;
    background: #f8f9fa;
    border-radius: 25px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    overflow: visible;
    z-index: 1;
}

.quick-search .search-box:focus-within {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.quick-search .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.9rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.quick-search .search-box:focus-within .search-icon {
    color: #667eea;
}

.quick-search #quickSearchInput {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: none;
    outline: none;
    font-size: 0.9rem;
    background: transparent;
    color: #333;
    border-radius: 25px;
}

.quick-search #quickSearchInput::placeholder {
    color: #999;
    font-style: italic;
}

.quick-search #quickSearchResults {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 99999;
    border: 1px solid #e9ecef;
    display: none;
}

.quick-search .search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.quick-search .search-result-item:hover {
    background-color: #f8f9fa;
    padding-left: 1.25rem;
}

.quick-search .search-result-item:last-child {
    border-bottom: none;
}

.quick-search .search-result-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.quick-search .search-result-category {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.3;
}

.quick-search .loading {
    padding: 1rem;
    text-align: center;
    color: #666;
}

.quick-search .no-results,
.quick-search .search-error {
    padding: 1rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

.quick-search .search-error {
    color: #dc3545;
}

/* Effet de verre pour les cartes des pages récentes */
.recent-article-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.recent-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.2);
}

.overview-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 120px;
    justify-content: center;
}

.overview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 35px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.2);
}

/* Effet de verre pour les cartes des articles populaires */
.popular-article-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.popular-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.2);
}

/* Effet de verre pour les cartes de catégories */
.category-card-large {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.category-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.2);
}

/* Effet de verre pour les cartes d'articles dans category.php */
.article-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.2);
}

/* Effet de verre pour les sections de filtres */
.filters-section {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

/* Effet de verre pour les en-têtes de pages */
.recent-header, .popular-header, .category-header {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

/* Effet de verre pour les statistiques de catégorie */
.category-stats {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

/* Effet de verre pour les éléments liés dans article.php */
.related-item {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.related-item:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 35px rgba(0, 0, 0, 0.12);
}

/* Effet de verre pour les sections de contenu d'article */
.article-content-section {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

/* Styles pour les en-têtes des pages */
.popular-title,
.recent-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.popular-title h1,
.recent-title h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.popular-title p,
.recent-title p {
    color: #ffffff;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Styles pour les sections overview */
.popularity-overview,
.recent-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.overview-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.overview-icon.very-popular {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.overview-icon.popular {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
}

.overview-icon.moderate {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
}

.overview-icon.total {
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
}

.overview-icon.today {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.overview-icon.yesterday {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
}

.overview-icon.week {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
}

.overview-icon.month {
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
}

.overview-info {
    text-align: center;
}

.overview-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.overview-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Styles pour les filtres */
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #333;
    font-size: 0.9rem;
    min-width: 150px;
}

.filter-results {
    margin-left: auto;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive pour la recherche rapide */
@media (max-width: 768px) {
    .quick-search .search-box {
        border-radius: 20px;
    }
    
    .quick-search #quickSearchInput {
        padding: 0.6rem 0.8rem 0.6rem 2.2rem;
        font-size: 0.85rem;
    }
    
    .quick-search #quickSearchResults {
        max-height: 250px;
    }
    
    /* Responsive pour les cartes avec effet de verre */
    .recent-article-card,
    .popular-article-card,
    .category-card-large,
    .article-card {
        padding: 1rem;
    }
    
    .recent-header,
    .popular-header,
    .category-header {
        padding: 1.5rem;
    }
    
    /* Responsive pour les sections overview */
    .popularity-overview,
    .recent-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .overview-card {
        padding: 1rem;
        min-height: 100px;
    }
    
    .overview-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
        flex-shrink: 0;
    }
    
    .overview-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }
    
    .overview-number {
        font-size: 1.5rem;
        font-weight: bold;
        color: #ffffff;
    }
    
    .overview-label {
        font-size: 0.8rem;
        color: #ffffff;
        opacity: 0.9;
    }
    
    /* Responsive pour les filtres */
    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select {
        width: 100%;
        min-width: unset;
    }
    
    .filter-results {
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Overview en une seule colonne sur très petits écrans */
    .popularity-overview,
    .recent-overview {
        grid-template-columns: 1fr;
    }
    
    .overview-card {
        padding: 0.75rem;
        text-align: center;
        min-height: 90px;
    }
    
    .overview-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin: 0 auto 0.5rem;
        flex-shrink: 0;
    }
    
    .overview-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
    }
    
    .overview-number {
        font-size: 1.3rem;
        font-weight: bold;
        color: #ffffff;
        line-height: 1.2;
    }
    
    .overview-label {
        font-size: 0.75rem;
        color: #ffffff;
        opacity: 0.9;
        line-height: 1.2;
    }
}
