/* Navbar ############################################################################################### */
.nav-section .toplist {
    margin: 0;
    display: flex;
    align-items: center;
}

.nav-section .toplist li a {
    color: #8d8c8c;
    text-decoration: none;
    font-size: 14px;
    line-height: 30px;
}

.nav-section .toplist li a:hover {
    color: #fd602c;
}

.nav-section .toplist li a.active {
    font-weight: 700;
}
/* Navbar ############################################################################################### */
/* Footer ############################################################################################### */
section.section-dark {
    background-color: #1E1F2E;
    padding: 40px 0;
    color: #fff;
}

section.section-dark h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

section.section-dark .social-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

section.section-dark .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #22243a;
    border-radius: 8px;
    border: 1px solid #444;
    color: #fff;
    font-size: 26px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
}

section.section-dark .social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

section.section-dark .social-btn svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    display: block;
}

section.section-dark .tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    margin: 5px;
    border-radius: 20px;
    color: #fff;
}

section.section-dark .plan-du-site h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 30px;
    position: relative;
}

section.section-dark .plan-du-site h3 span {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #fff;
}

section.section-dark .plan-du-site ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

section.section-dark .plan-du-site ul li {
    position: relative;
}

section.section-dark .plan-du-site ul li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

section.section-dark .plan-du-site ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 0;
    display: block;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

section.section-dark .plan-du-site ul li a span {
    position: absolute;
    left: -15px;
    color: #666;
    transition: all 0.3s ease;
}

/* Nouveaux styles pour les effets hover */
section.section-dark .plan-du-site ul li a:hover {
    color: #fd602c;
    transform: translateX(5px);
}

section.section-dark .plan-du-site ul li a:hover span {
    color: #fd602c;
    transform: translateX(3px);
}

section.section-dark .plan-du-site ul li {
    position: relative;
    transition: background-color 0.3s ease;
}

section.section-dark .plan-du-site ul li:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

section.section-dark .plan-du-site ul li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 5px;
    padding-bottom: 5px;
}

section.section-dark .news {
    color: #fff;
    font-size: 20px;
    margin: 30px 0;
}

section.section-dark .footer-news {
    margin-bottom: 20px;
}

section.section-dark .footer-news-item a {
    color: #fff;
    text-decoration: none;
}

section.section-dark .footer-news-item a>div {
    display: flex;
    align-items: start;
}

section.section-dark .footer-news-item-image {
    flex: 0 0 80px;
    margin-right: 15px;
}

section.section-dark .footer-news-item-image img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 1);
    color: #fff;
}

section.section-dark .footer-news-item-content h4 {
    font-size: 16px;
    margin: 0;
}

/* section.section-dark .footer-news-item-content span {
    font-size: 12px;
    color: #06c;
} */

section.section-dark .footer-news-item-content p {
    color: #ccc;
}

section.section-dark .footer-news-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-news-item-content .footer-date {
    color: #fff;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

/* Footer ############################################################################################### */

/* Content ############################################################################################### */
.art-top-bar {
    margin-bottom: 30px;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.art-top-bar h1 {
    color: #0066cc;
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    padding-bottom: 6px;
    line-height: 45px;
}

.art-top-bar .search-box #searchInput {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 25px;
}

.art-top-bar .search-box button {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
}

.art-top-bar .search-box button i {
    color: #666;
}

.art-top-one .blog-post {
    background: #f5f5f5;
    margin-bottom: 30px;
    padding: 0 20px 20px 0;
}

.art-top-one .blog-post>span {
    color: #0066cc;
    font-weight: bold;
}

.art-top-one .blog-post h2 {
    color: #333;
    margin: 10px 0;
}

.art-top-one .blog-post .post-meta {
    margin: 0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.art-top-one .blog-post .post-meta>span {
    color: #06c;
}

.art-top-one .blog-post .post-meta .share-buttons {
    display: inline-block;
    margin-left: 20px;
}

.art-top-one .blog-post .post-meta .share-buttons a {
    color: #0066cc;
    text-decoration: none;
}

.art-top-one .blog-post .post-meta .share-buttons a:first-child {
    margin-right: 15px;
}

.art-top-one .blog-post img {
    width: 100%;
    margin: 20px 0;
}

.art-top-one .blog-post p {
    color: #666;
    line-height: 1.6;
}

.art-recent h3 {
    color: #0066cc;
    margin-bottom: 30px;
}

.art-recent .article-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: #666;
    margin-top: 8px;
}

.art-recent .article-stats .views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.art-recent .article-stats .date {
    color: #888;
}

.art-recent .recent-post {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.art-recent .recent-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.art-recent .recent-post>div {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.art-recent .recent-post>div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 10px;
}

.art-recent .recent-post h4 {
    font-size: 16px;
    color: #333;
}

.art-recent .recent-post p {
    color: #666;
    font-size: 14px;
}

.art-recent .recent-post h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.art-recent .recent-post h4 a:hover {
    color: #fd602c;
}

.sidebar-section:not(:last-child) {
    margin-bottom: 40px;
}

.sidebar-section h3 {
    color: #0066cc;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.sidebar-section ul li {
    margin-bottom: 15px;
}

.sidebar-section ul li a {
    color: #333;
    text-decoration: none;
}

.sidebar-section>div {
    margin-top: 20px;
}

.sidebar-section .tags a.keyword-tag {
    display: inline-block;
    background: #fff;
    padding: 6px 12px;
    margin: 0 5px 5px 0;
    border-radius: 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #ddd;
}

.result-search {
    background: #f5f5f5;
    margin-bottom: 30px;
    padding: 0 20px 20px 0;
}

.result-search .recent-post:not(:last-child) {
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.result-search .recent-post-image {
    flex: 0 0 230px;
    margin-right: 20px;
}

.result-search .recent-post-image div {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
}

.result-search .recent-post-image img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.result-search .recent-post-content {
    flex: 1;
}

.result-search .recent-post-content h4 {
    font-size: 18px;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.result-search .recent-post-content h4 a {
    color: #333;
    text-decoration: none;
}

.result-search .recent-post-content span {
    color: #06c;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.result-search .recent-post-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.result-search .recent-post-content>a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.result-search .no-results {
    padding: 20px 0;
    text-align: left;
}

/* Content ############################################################################################### */

.sec-padding .recent-post {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.tag-count {
    font-size: 0.9em;
    color: #666;
}

.keyword-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background-color: #f5f5f5;
    border-radius: 20px;
    color: #333;
    margin: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    text-decoration: none;
}

#load-more-tags {
    color: #007bff;
    border: none;
    background: none;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

#load-more-tags:hover {
    color: #0056b3;
    text-decoration: none;
}

#load-more-tags:disabled {
    opacity: 0.7;
    cursor: wait;
}

.tags {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.btn-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9em;
}

.btn-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.hidden-tag {
    display: none;
}

.show-all-tags .hidden-tag {
    display: inline-flex;
}

/* Articles Grid Layout #################################### */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.article-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

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

.article-card img {
    width: 412px;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #007bff;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.btn-load-more {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-load-more:hover {
    background-color: #0056b3;
}

/* Sidebar Styles #################################### */
.sidebar-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.sidebar-section h3 {
    margin-bottom: 1rem;
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
}

.sidebar-section ul li {
    margin-bottom: 0.5rem;
}

.newsletter input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.newsletter button {
    width: 100%;
    padding: 8px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Article Meta and Share Buttons #################################### */
.share-buttons {
    display: flex;
    gap: 1rem;
}

/* .share-buttons a {
    color: #6c757d;
    text-decoration: none;
    align-items: center;
    gap: 0.5rem;
} */

.share-buttons a:hover {
    color: #007bff;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 1.5rem;
}

/* Share Buttons - Style spécifique pour all_infos.html.twig #################################### */
.article-card .share-buttons {
    gap: 0.5rem;
}

.article-card .share-buttons a {
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.article-card .share-buttons a:hover {
    background-color: #007bff;
    color: white;
}

.article-card .share-buttons a i {
    font-size: 0.9rem;
}

/* Article Meta - Style spécifique pour all_infos.html.twig #################################### */
.article-card .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #6c757d;
    font-size: 0.9rem;
}

.article-card .article-meta span {
    font-weight: 500;
    color: #495057;
    font-size: 1rem;
}

.navigation-buttons {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.prev-next-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.prev-next-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .prev-next-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .prev-next-buttons .btn {
        width: 100%;
        justify-content: center;
        margin: 5px 0;
    }
}

.blog-post .category-tag {
    display: inline-block;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.image-container {
    position: relative;
    display: block;
}

.image-container .category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px 12px;
    border-radius: 4px;
    z-index: 2;
    font-size: 12px;
}

.footer-news-item {
    padding: 15px 15px;
    transition: background-color 0.3s ease;
}

.footer-news-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.footer-news-item-content h4 {
    font-size: 14px;
    margin: 0 0 8px 0;
    line-height: 1.4;
    color: #fff;
    transition: color 0.3s ease;
}

.footer-news-item:hover .footer-news-item-content h4 {
    color: #fd602c;
}

.footer-news-item-content .footer-date {
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-news-item-content .footer-date i {
    font-size: 12px;
}

.footer-news-item-image {
    flex: 0 0 70px;
    margin-right: 12px;
}

.footer-news-item-image img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.footer-news-item:hover .footer-news-item-image img {
    transform: scale(1.05);
}

/* Styles spécifiques pour la page principale (infos.html.twig) */
.main-articles {
    margin-bottom: 30px;
}

.main-article-item {
    margin-bottom: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.main-article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.main-article-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.main-article-content {
    padding: 1.5rem;
}

.main-article-content h3 {
    margin-bottom: 15px;
}

.main-article-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-article-content h3 a:hover {
    color: #fd602c;
}

.main-article-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Garder les styles existants pour articles-grid (all_infos.html.twig) */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Styles communs */
.category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 1;
}

.read-more {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-buttons a {
    color: #6c757d;
    text-decoration: none;
    /* font-size: 0.9rem; */
}

.share-buttons a:hover {
    color: #007bff;
}