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

:root {
    --primary-color: #1a5f7a;
    --primary-light: #357994;
    --primary-lighter: rgba(90, 62, 99, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(to bottom, #FAFBFC 0%, #F5F7FA 100%);
    min-height: 100vh;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

nav .nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 24px;
    font-weight: 600;
    color: #1a5f7a;
    letter-spacing: -0.5px;
    text-decoration: none;
}

nav .back-home {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav .back-home:hover {
    background: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.15);
}

/* Header de section */
.section-header {
    background: white;
    border-bottom: 4px solid var(--primary-color);
    padding: 60px 0;
}

.section-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 20px;
    color: #666;
    max-width: 800px;
}

/* Conteneur principal */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

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

.filter-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.filter-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.filter-card select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-card select:hover {
    border-color: var(--primary-color);
}

.filter-card select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

.reset-filters {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.reset-filters:hover {
    background: #f8f9fa;
    color: #1a1a1a;
}

/* Zone de contenu */
.content-area {
    min-height: 600px;
}

/* Barre de recherche */
.search-bar {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
}

.search-input-container {
    position: relative;
    display: flex;
    gap: 12px;
}

.search-input {
    flex: 1;
    padding: 16px 20px 16px 50px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 16px;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-lighter);
}

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

.search-button {
    padding: 16px 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 62, 99, 0.3);
}

/* Résultats info */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.results-count {
    font-size: 14px;
    color: #666;
}

.sort-by {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-by label {
    font-size: 14px;
    color: #666;
}

.sort-by select {
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

/* Grille d'articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.article-card:hover::before {
    transform: scaleY(1);
}

.article-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.article-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary-lighter);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 30px 0;
}

.pagination-btn {
    padding: 12px 18px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination-btn:hover:not(.active):not(:disabled) {
    background: #f8f9fa;
    border-color: var(--primary-color);
}

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

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 12px 8px;
    color: #999;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 60px;
}

@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }

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

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

    .section-header {
        padding: 40px 0;
    }

    .section-header-content {
        padding: 0 20px;
    }

    .section-header h1 {
        font-size: 32px;
    }

    .section-header p {
        font-size: 16px;
    }

    .main-container {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .sidebar {
        position: static;
    }

    .search-input-container {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
    }

    .results-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pagination {
        flex-wrap: wrap;
    }
}