/* Pure CSS - France 24 Style (Dark Blue and White, Professional) */

:root {
    --primary-color: #0b1c31;
    /* Dark blue */
    --accent-color: #004d99;
    /* Lighter blue for active states */
    --text-color: #333;
    --text-muted: #6c757d;
    --bg-color: #f4f6f9;
    --white: #ffffff;
    --border-color: #eaeaea;
    --danger-color: #dc3545;
    --success-color: #28a745;

    --font-base: 'Roboto', sans-serif;
    --font-heading: 'Oswald', sans-serif;
}

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

body {
    font-family: var(--font-base);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    padding-left: 50px;
    /* Espace pour la texture africaine */
}

/* Texture Africaine sur le côté gauche */
body::before {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50px;
    background-image: url('../img/african_texture.png');
    background-repeat: repeat-y;
    background-size: cover;
    background-position: center;
    z-index: 2000;
    /* Légèrement réduit pour laisser passer le ticker s'il y a conflit */
    border-right: 3px solid var(--primary-color);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

@media (max-width: 768px) {
    body {
        padding-left: 20px;
    }

    body::before {
        width: 20px;
        background-size: cover;
    }

    .top-bar {
        left: 20px !important;
        width: calc(100% - 20px) !important;
    }
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding-top: 40px;
    /* Offset original pour top-bar */
}

.top-bar {
    background-color: #05101f;
    padding: 10px 0;
    font-size: 0.8rem;
    position: fixed;
    top: 0;
    left: 50px;
    width: calc(100% - 50px);
    z-index: 2500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.top-menu-toggle {
    display: none;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 20px;
    color: #ccc;
    font-size: 0.85rem;
}

.top-info i {
    color: var(--accent-color);
    margin-right: 5px;
}

.header-main {
    padding: 25px 0;
    background: #ffffff;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-section {
    flex: 0 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo img {
    max-height: 65px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.5px;
}

/* Partner Marquee - News style */
.header-ads-partners {
    flex: 1;
    margin-left: 50px;
    background: #f8f9fa;
    border: 1px solid #eeeeee;
    padding: 10px 20px;
    border-radius: 4px;
    height: 65px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.partner-marquee {
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 60px;
    animation: marquee-news 30s linear infinite;
    width: max-content;
    align-items: center;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.ad-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ad-item img {
    height: 40px;
    width: auto;
    filter: none;
    opacity: 1;
    transition: all 0.3s ease;
}

.ad-item:hover img {
    transform: scale(1.05);
    /* Petite animation au survol à la place */
}

.ad-item span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    white-space: nowrap;
}

@keyframes marquee-news {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ad-item a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Navigation */
.main-nav {
    background-color: var(--white);
    border-bottom: 2px solid var(--primary-color);
}

/* Breaking News Ticker */
.breaking-news-ticker {
    background: #f8f9fa;
    /* Gris très clair pour détacher du blanc */
    border-bottom: 2px solid var(--primary-color);
    height: 90px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 1500;
    /* Sous la texture (2000) mais au dessus du contenu */
    margin-bottom: 30px;
    /* Espace forcé après le ticker */
}

.ticker-label {
    background: var(--accent-color);
    color: #fff;
    padding: 0 35px;
    height: 70px;
    line-height: 70px;
    font-weight: 900;
    font-size: 0.95rem;
    position: relative;
    z-index: 10;
    white-space: nowrap;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.ticker-label::after {
    content: "";
    position: absolute;
    right: -15px;
    top: 0;
    border-top: 35px solid transparent;
    border-bottom: 35px solid transparent;
    border-left: 15px solid var(--accent-color);
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    padding-left: 50px;
    /* Espace augmenté pour libérer la zone après la pointe du label */
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker-slide 60s linear infinite;
    /* Plus lent pour la lisibilité */
    width: max-content;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    color: #1a1a1a;
    /* Texte plus sombre */
    font-size: 0.9rem;
    margin-right: 60px;
    font-weight: 700;
    /* Plus gras */
    transition: color 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.ticker-item:hover {
    color: var(--accent-color);
}

.ticker-bullet {
    color: var(--accent-color);
    margin-right: 10px;
    font-weight: bold;
}

@keyframes ticker-slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Contenu doublé proprement */
}

@media (max-width: 768px) {
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
}

/* Scroll Progress Bar */
.scroll-progress-container {
    width: 100%;
    height: 3px;
    background: transparent;
    position: absolute;
    bottom: 0;
    left: 0;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transition: width 0.1s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--accent-color);
    /* Couleur bleue secondaire */
    border-radius: 10px;
    transition: all 0.3s linear;
}

.nav-links li a {
    display: block;
    padding: 15px 20px;
    color: var(--primary-color);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: background-color 0.2s, color 0.2s;
}

.nav-links li a:hover,
.nav-links li a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.nav-search form {
    display: flex;
}

.nav-search input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-family: var(--font-base);
}

.nav-search button {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
}

.nav-search button:hover {
    background-color: var(--accent-color);
}

/* Main Content */
.site-content {
    padding: 20px 0 60px;
    margin-top: 60px;
    /* Espace très conséquent pour éviter tout chevauchement */
    min-height: calc(100vh - 400px);
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-8 {
    width: 66.666%;
    padding: 0 15px;
}

.col-4 {
    width: 33.333%;
    padding: 0 15px;
}

.col-12 {
    width: 100%;
    padding: 0 15px;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

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

/* Section Titles */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Cards / Articles */
.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.card-row {
    display: flex;
    height: 100%;
}

.card-img {
    width: 35%;
    background-color: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.card-body {
    width: 65%;
    padding: 20px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card-title a {
    color: var(--primary-color);
}

.card-title a:hover {
    color: var(--accent-color);
}

.category-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3px 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
    border-radius: 2px;
}

.card-text {
    color: #555;
    margin-bottom: 15px;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Single Post */
.post-header {
    text-align: center;
    margin-bottom: 30px;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 15px 0;
}

.post-meta {
    color: var(--text-muted);
    font-style: italic;
}

.post-featured-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 4px;
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #222;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

/* CKEditor 5 Support - Tables */
.ck-content figure.table {
    margin: 25px 0;
    width: 100%;
    overflow-x: auto;
    /* Added for responsive scrolling */
    display: block;
    /* Added for responsive scrolling */
}

.ck-content figure.table table,
.post-content table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    min-width: 100%;
    /* Ensure table takes full width inside its container */
}

.ck-content td,
.ck-content th,
.post-content td,
.post-content th {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
    min-width: 50px;
}

.ck-content th,
.post-content th {
    background-color: #f8f9fa;
    font-weight: 700;
}

.ck-content table tr:nth-child(even) {
    background-color: #fdfdfd;
}

/* CKEditor 5 Support - Media (Videos/Iframes) */
.ck-content .media,
.post-content .media {
    margin: 30px 0;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.ck-content .media iframe,
.ck-content .media oembed,
.post-content figure.media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Fallback for raw iframes not wrapped in figure.media */
.post-content iframe:not(.media iframe) {
    width: 100% !important;
    min-height: 450px;
    margin: 20px 0;
    border: none;
    border-radius: 4px;
    display: block;
}

/* If CKEditor uses a regular div for raw HTML videos */
.post-content .raw-html-embed {
    margin: 30px 0;
}

.post-content .raw-html-embed iframe {
    width: 100%;
    min-height: 450px;
    border-radius: 4px;
}

/* Widgets */
.widget {
    background: var(--white);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 25px;
}

.widget-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.widget-list {
    list-style: none;
}

.widget-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget-list li:last-child {
    border-bottom: none;
}

/* Sidebar focus posts */
.sidebar-posts {
    list-style: none;
}

.sidebar-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-posts li:last-child {
    border-bottom: none;
}

.sidebar-post-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.sidebar-post-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.sidebar-post-item h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.sidebar-post-item:hover h6 {
    color: var(--accent-color);
}

.sidebar-post-info small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.widget-list li a {
    color: #444;
    font-weight: 500;
}

.widget-list li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-base);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-base);
    font-size: 1rem;
    transition: background 0.2s;
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Comments */
.comments-section {
    margin-top: 50px;
    background: var(--white);
    padding: 30px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.comment-form {
    margin-bottom: 40px;
}

.comment {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.comment-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
}

/* Sidebar Social Widget */
.sidebar-social {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.sidebar-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-fb {
    background-color: #3b5998;
}

.social-tw {
    background-color: #1da1f2;
}

.social-ig {
    background-color: #e4405f;
}

.social-yt {
    background-color: #ff0000;
}

/* General Polish */
.widget-title {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.category-badge {
    background-color: var(--accent-color);
    color: white;
    padding: 3px 10px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.comment-body h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: normal;
    margin-left: 10px;
}

.ad-item a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    color: inherit;
}

/* Alert */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error,
.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Social Sharing */
.post-share h5 {
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #888;
    font-weight: 700;
}

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

.share-buttons a {
    padding: 10px 20px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.share-buttons a:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.share-fb {
    background-color: #3b5998;
}

.share-tw {
    background-color: #000000;
}

.share-wa {
    background-color: #25d366;
}

.share-in {
    background-color: #0077b5;
}

/* Footer Social Icons */
.footer-social a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-3px);
    color: var(--accent-color) !important;
}

/* Newsletter Footer - Premium Design */
.newsletter-footer {
    display: flex;
    margin-top: 15px;
    background: #ffffff;
    /* Fond blanc pur pour contraste maximal */
    padding: 3px;
    border-radius: 4px;
    /* Coins moins arrondis pour un look plus pro/presse */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    overflow: hidden;
}

.newsletter-footer input {
    flex: 1;
    background: #ffffff;
    border: none;
    padding: 12px 15px;
    color: #333;
    /* Texte sombre sur fond clair */
    font-size: 0.95rem;
    outline: none;
}

.newsletter-footer input::placeholder {
    color: #999;
}

.newsletter-footer button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    transition: background 0.3s;
    letter-spacing: 1px;
    flex-shrink: 0;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-footer button:hover {
    background-color: #0056b3;
    transform: none;
    /* Pas d'effet d'échelle, plus pro */
}

#newsletter-message {
    font-weight: 600;
    min-height: 20px;
}

.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-size: 0.9rem;
}

.footer-contact-list i {
    color: var(--accent-color);
    width: 20px;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 50px 0;
}

.footer-col {
    width: 25%;
    padding: 0 15px;
}

.footer-col h4 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.logo-footer {
    display: block;
    margin-left: -15px !important;
    /* Décalage plus marqué à gauche */
}

.logo-footer img {
    max-height: 90px !important;
    /* Taille encore plus réduite pour que le changement soit flagrant */
    width: auto !important;
}

.logo-text-footer {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.footer-desc {
    margin-top: 15px;
    color: #ccc;
    font-size: 0.9rem;
}

.footer-col h4 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-col ul li a {
    color: #ccc;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    background-color: #05101f;
    padding: 20px 0;
    font-size: 0.9rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
}

.admin-link {
    color: #888;
}

/* Login box */
.login-box {
    max-width: 400px;
    margin: 50px auto;
    background: var(--white);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {

    .col-8,
    .col-4 {
        width: 100%;
    }

    .card-row {
        flex-direction: column;
    }

    .card-img,
    .card-body {
        width: 100%;
    }

    .card-img {
        height: 200px;
    }

    .main-nav {
        position: relative;
        overflow: visible;
        /* Crucial for absolute children like .nav-links */
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        flex-direction: column;
        display: none;
        width: 100%;
        z-index: 10000 !important;
        /* Above everything */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-links li a {
        padding: 15px 20px !important;
        width: 100% !important;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 5px 15px;
    }

    .menu-toggle {
        display: flex;
        order: -1;
        /* Keep it on the left */
        margin-right: 15px;
        z-index: 10001;
    }

    .nav-search {
        padding: 10px;
    }

    .footer-col {
        width: 100%;
        margin-bottom: 30px;
    }

    .col-8,
    .col-4 {
        width: 100%;
    }

    .site-header {
        padding-top: 45px;
        /* Back to normal as top-bar is thin again */
    }

    .top-menu-toggle {
        display: block !important;
        background: transparent;
        border: none;
        color: var(--accent-color);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
    }

    .top-info {
        display: none;
        width: 100%;
        background: #05101f;
        flex-direction: column;
        padding: 15px 0;
        gap: 10px;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1999;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
    }

    .top-info.active {
        display: flex;
    }

    .top-bar .container {
        flex-direction: row;
        justify-content: flex-start;
        /* Align elements to the left */
        align-items: center;
        padding: 5px 15px;
        gap: 15px;
    }

    .site-desc-container {
        flex: 1;
        overflow: hidden;
        white-space: nowrap;
        order: 2;
        display: block !important;
    }

    .site-desc {
        display: inline-block !important;
        font-size: 0.75rem;
        font-style: italic;
        color: #ccc;
        white-space: nowrap;
        animation: marquee-slogan 15s linear infinite;
        will-change: transform;
    }

    @keyframes marquee-slogan {
        from {
            transform: translateX(100%);
        }

        to {
            transform: translateX(-100%);
        }
    }

    .top-menu-toggle {
        display: block !important;
        order: 1;
        padding: 0;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .top-info {
        flex-direction: column;
        gap: 2px;
        font-size: 0.75rem;
        justify-content: center;
    }

    .top-info span {
        display: inline-block;
        font-size: 0.75rem;
    }

    .header-container {
        flex-direction: column;
        /* Stack logo and marquee */
        justify-content: flex-start;
        align-items: flex-start;
        padding: 10px 15px;
        gap: 5px;
    }

    .brand-section {
        width: 100%;
        justify-content: flex-start;
    }

    .logo {
        gap: 10px;
        flex-wrap: nowrap;
    }

    .logo img {
        max-height: 45px;
        flex-shrink: 0;
    }

    .logo-text {
        font-size: 1.4rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block !important;
    }

    .header-ads-partners {
        display: flex;
        /* Restore for mobile */
        width: 100%;
        margin: 10px 0 0 0;
        height: 50px;
        padding: 5px;
    }

    .marquee-content {
        gap: 30px;
        animation: marquee-news 15s linear infinite;
        /* Faster for mobile */
    }

    .ad-item img {
        height: 30px;
    }

    .ad-item span {
        font-size: 0.75rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .header-ads-partners {
        width: 100%;
        margin-left: 0;
        height: auto;
    }

    .marquee-content {
        animation: marquee 10s linear infinite;
    }
}

/* Author Box & Profile */
.author-box {
    background: #f9f9f9;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
}

.author-info-flex {
    display: flex;
    gap: 25px;
    align-items: center;
}

.author-avatar-large {
    flex-shrink: 0;
}

.author-avatar-large img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.initials-avatar {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-details {
    flex: 1;
}

.author-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--accent-color);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.author-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.author-name a {
    color: var(--primary-color);
    text-decoration: none;
}

.author-title-badge {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 5px;
}

.author-bio {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

.author-profile-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.author-profile-link i {
    transition: transform 0.2s;
}

.author-profile-link:hover i {
    transform: translateX(5px);
}

/* Horizontal Post Card */
.post-card-horizontal {
    display: flex;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.post-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.post-card-img {
    flex: 0 0 200px;
}

.post-card-img img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.post-card-body {
    flex: 1;
}

.post-card-title {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.post-card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.post-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.post-card-meta {
    font-size: 0.85rem;
    color: #999;
}

@media (max-width: 768px) {
    .author-info-flex {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .post-card-horizontal {
        flex-direction: column;
    }

    .post-card-img {
        flex: none;
        width: 100%;
    }
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

#back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    max-width: 200px;
    max-height: 150px;
    margin-bottom: 25px;
    animation: pulse 1.5s infinite;
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: block;
    animation: pulse 1.5s infinite;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* Trending Sidebar */
.trending-item {
    gap: 15px !important;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

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

.trend-rank {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--border-color);
    /* Initialement plus visible */
    font-family: var(--font-heading);
    min-width: 40px;
    line-height: 1;
    transition: color 0.3s;
}

.trending-item:hover .trend-rank {
    color: var(--accent-color);
    opacity: 1;
}

/* Related Posts */
.related-item:hover h4 {
    color: var(--accent-color) !important;
}

.related-img img {
    transition: transform 0.5s;
}

.related-item:hover .related-img img {
    transform: scale(1.1);
}

/* Author Box */
.author-box {
    background: #fdfdfd;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.author-avatar-large {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.author-avatar-large img,
.initials-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.initials-avatar {
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.author-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
}

.author-name {
    font-family: var(--font-heading);
    margin: 5px 0;
}

.author-title-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    font-size: 0.7rem;
    border-radius: 12px;
    font-weight: 700;
}

.author-profile-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
}