/* Custom styles for actusblog sidebar */
.sidebar-actus {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.sidebar-actus h3 {
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.sidebar-actus .widget {
    margin-bottom: 30px;
    padding: 15px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar-actus .widget-title {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* Recent Actualités Widget */
.recent-actus-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-actus-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-actus-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-actus-thumb {
    margin-right: 10px;
    flex-shrink: 0;
}

.recent-actus-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}

.recent-actus-content h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.3;
}

.recent-actus-content h5 a {
    color: #333;
    text-decoration: none;
}

.recent-actus-content h5 a:hover {
    color: #007cba;
}

.recent-actus-date {
    font-size: 12px;
    color: #666;
}

/* Categories Widget */
.categories-actus-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 8px;
}

.category-item a {
    color: #333;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.category-item a:hover {
    color: #007cba;
}

.post-count {
    color: #666;
    font-size: 12px;
}

/* Archive Widget */
.archive-actus-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-item {
    margin-bottom: 8px;
}

.archive-item a {
    color: #333;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.archive-item a:hover {
    color: #007cba;
}

/* Search Widget */
.search-form {
    display: flex;
    margin-bottom: 0;
}

.search-field {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px 0 0 3px;
    border-right: none;
}

.search-submit {
    padding: 8px 12px;
    background: #007cba;
    color: white;
    border: 1px solid #007cba;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

.search-submit:hover {
    background: #005a87;
}

/* Popular Posts Widget */
.popular-actus-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-actus-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

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

.popular-actus-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.3;
}

.popular-actus-item a:hover {
    color: #007cba;
}

.popular-actus-meta {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Tags Widget */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag-link {
    background: #f0f0f0;
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 12px;
}

.tag-link:hover {
    background: #007cba;
    color: white;
}

/* Custom Widgets Area */
.custom-widgets-area {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

/* Responsive design */
@media (max-width: 767px) {
    .sidebar-actus {
        margin-top: 40px;
    }
    
    .recent-actus-item {
        flex-direction: column;
    }
    
    .recent-actus-thumb {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .recent-actus-thumb img {
        width: 100%;
        height: 150px;
    }
}

/* Posts grid for archive page */
.posts-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.post-item {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-item .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-item .entry-header,
.post-item .entry-content {
    padding: 20px;
}

.post-item .entry-title {
    margin-bottom: 10px;
}

.post-item .entry-title a {
    text-decoration: none;
    color: #333;
}

.post-item .entry-title a:hover {
    color: #007cba;
}

.post-item .entry-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.post-item .read-more {
    color: #007cba;
    text-decoration: none;
    font-weight: bold;
}

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