:root {
    --primary-red: #e63946;
    --secondary-black: #000000;
    --accent-white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --gold: #FFD700;
    --dark-red: #b71c1c;
    --primary-blue: #007bff;
    --success-green: #28a745;
    --warning-orange: #ffc107;
    --info-cyan: #17a2b8;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-gray);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Loader Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-black) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
}

.loader-content {
    text-align: center;
    animation: fadeInUp 1s ease;
}

.loader-icon {
    font-size: 5rem;
    color: var(--accent-white);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.loader-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-white);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.loader-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background: var(--accent-white);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Header Styles */
.top-bar {
    background-color: var(--secondary-black);
    color: var(--accent-white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: var(--accent-white);
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--primary-red);
}

.navbar {
    background-color: var(--accent-white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: all 0.3s;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary-red) !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 10px;
    color: var(--secondary-black);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-red) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s;
}

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

.nav-link.active {
    color: var(--primary-red) !important;
}

.nav-link.active::after {
    width: 100%;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-black) 100%);
    color: var(--accent-white);
    padding: 5rem 0 4rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1504711434969-e33886168f5c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    opacity: 0.2;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Content Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--medium-gray);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-red);
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: linear-gradient(to bottom, var(--primary-red), var(--secondary-black));
    border-radius: 5px;
}

.view-all {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all:hover {
    color: var(--secondary-black);
    text-decoration: underline;
}

/* Rubriques Navigation - IMPROVED */
.rubriques-nav {
    background-color: var(--accent-white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    overflow-x: auto;
}

.rubriques-list {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 700px;
}

.rubrique-item {
    text-align: center;
    transition: all 0.3s ease;
}

.rubrique-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    padding: 15px 20px;
    border-radius: 12px;
    min-width: 130px;
}

.rubrique-link:hover {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(0,0,0,0.05) 100%);
    color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.rubrique-link.active {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--accent-white);
}

.rubrique-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-red);
    transition: all 0.3s;
}

.rubrique-link:hover .rubrique-icon,
.rubrique-link.active .rubrique-icon {
    color: var(--accent-white);
    transform: scale(1.1);
}

.rubrique-name {
    font-weight: 600;
    font-size: 1rem;
}

/* Featured Article - IMPROVED */
.featured-article {
    background-color: var(--accent-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    margin-bottom: 4rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.featured-article:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.featured-image {
    height: 450px;
    position: relative;
    overflow: hidden;
}

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

.featured-article:hover .featured-image img {
    transform: scale(1.08);
}

.featured-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--accent-white);
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
    z-index: 2;
}

.featured-content {
    padding: 3rem;
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.featured-excerpt {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--medium-gray);
}

.featured-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--primary-red);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-featured {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--accent-white);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
}

.btn-featured:hover {
    background: var(--secondary-black);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
    color: #fff;
}

/* Articles Grid - IMPROVED */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.article-card {
    background-color: var(--accent-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.article-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

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

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--secondary-black) 0%, #333 100%);
    color: var(--accent-white);
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
}

.article-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.btn-article {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--accent-white);
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    flex-shrink: 0;
}

.btn-article:hover {
    background: var(--secondary-black);
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Categories Filter */
.categories-filter {
    background-color: var(--accent-white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 4rem;
}

.filter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.filter-title i {
    margin-right: 12px;
    color: var(--secondary-black);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn {
    background-color: var(--light-gray);
    color: var(--text-dark);
    border: 2px solid var(--medium-gray);
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--accent-white);
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

/* Podcasts Section - IMPROVED */
.podcast-section {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.05) 0%, rgba(0,0,0,0.02) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.podcast-list {
    list-style: none;
    padding: 0;
}

.podcast-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--medium-gray);
    transition: all 0.3s;
}

.podcast-item:hover {
    background-color: rgba(230, 57, 70, 0.05);
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 10px;
}

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

.podcast-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.podcast-link:hover {
    color: var(--primary-red);
}

.podcast-name {
    font-weight: 600;
    font-size: 1rem;
}

.episode-count {
    background-color: var(--primary-red);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Sidebar Styles - IMPROVED */
.sidebar-widget {
    background-color: var(--accent-white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-5px);
}

.widget-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--medium-gray);
    display: flex;
    align-items: center;
}

.widget-title i {
    margin-right: 12px;
    color: var(--secondary-black);
}

.popular-articles {
    list-style: none;
    padding: 0;
}

.popular-article {
    display: flex;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--medium-gray);
    transition: transform 0.3s ease;
}

.popular-article:hover {
    transform: translateX(5px);
}

.popular-article:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-thumb {
    width: 90px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.popular-article:hover .popular-thumb img {
    transform: scale(1.1);
}

.popular-info {
    flex-grow: 1;
}

.popular-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.newsletter-form {
    margin-top: 1.5rem;
}

.newsletter-form .form-control {
    border-radius: 30px;
    padding: 14px 20px;
    margin-bottom: 1rem;
    border: 2px solid var(--medium-gray);
    transition: all 0.3s;
}

.newsletter-form .form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.25rem rgba(230, 57, 70, 0.25);
}

.btn-newsletter {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--accent-white);
    border: none;
    border-radius: 30px;
    padding: 14px 20px;
    font-weight: 700;
    width: 100%;
    transition: all 0.3s;
}

.btn-newsletter:hover {
    background: linear-gradient(135deg, var(--secondary-black) 0%, #333 100%);
    transform: translateY(-2px);
}

/* Advertisement Widget */
.ad-widget {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-black) 100%);
    color: white;
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease;
}

.ad-widget:hover {
    transform: translateY(-5px);
}

.ad-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.ad-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ad-content {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.btn-ad {
    background-color: white;
    color: var(--primary-red);
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-ad:hover {
    background-color: var(--secondary-black);
    color: white;
    transform: translateY(-2px);
}

/* Social Media Fixed Buttons */
.social-fixed {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-white);
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-btn.whatsapp {
    background: #25D366;
}

.social-btn.telegram {
    background: #0088cc;
}

.social-btn.facebook {
    background: #1877F2;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--accent-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
    transition: all 0.3s;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, var(--secondary-black) 0%, #333 100%);
}

/* Pagination - IMPROVED */
.pagination-container {
    margin-top: 4rem;
    text-align: center;
}

.pagination {
    justify-content: center;
    margin-bottom: 2rem;
}

.page-link {
    color: var(--primary-red);
    border: 1px solid var(--medium-gray);
    padding: 12px 20px;
    margin: 0 5px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.page-link:hover {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--accent-white);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    border-color: var(--primary-red);
}

/* Footer - IMPROVED */
footer {
    background: linear-gradient(135deg, var(--secondary-black) 0%, #1a1a1a 100%);
    color: var(--accent-white);
    padding: 5rem 0 2rem;
    margin-top: 6rem;
    position: relative;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1511379938547-c1f69419868d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    opacity: 0.05;
    z-index: -1;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 8px;
}

.footer-links a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--primary-red);
}

.footer-links.category a {
    color: var(--text-dark);
}

.footer-links.category a:hover {
    color: var(--primary-red);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    color: var(--accent-white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.social-icons a:hover {
    background: var(--primary-red);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    position: relative;
    z-index: 2;
}

.footer-bottom a {
    color: var(--accent-white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--primary-red);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-light);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 992px) {
    .page-title {
        font-size: 2.8rem;
    }
    
    .featured-title {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .rubriques-list {
        justify-content: flex-start;
        gap: 10px;
    }
    
    .rubrique-link {
        min-width: 110px;
        padding: 12px 15px;
    }
    
    .footer-content .row > div {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 4rem 0 3rem;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
    
    .page-title {
        font-size: 2.3rem;
    }
    
    .featured-image {
        height: 350px;
    }
    
    .featured-content {
        padding: 2rem;
    }
    
    .featured-title {
        font-size: 1.8rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .navbar-brand {
        font-size: 1.7rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .rubriques-nav {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }
    
    .social-fixed {
        display: none;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .page-subtitle {
        text-align: center;
        font-size: 1.1rem;
    }
    
    .featured-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        text-align: center;
    }
    
    .footer {
        clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    }
    
    .rubrique-icon {
        font-size: 1.5rem;
    }
    
    .rubrique-name {
        font-size: 0.9rem;
    }
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(230,57,70,0.3);
    /* color: #fff; */
}