/* Styles pour le blog */
.blog-item {
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.blog-item-img {
    position: relative;
    overflow: hidden;
}

.blog-item-img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-item:hover .blog-item-img img {
    transform: scale(1.05);
}

.blog-item-content {
    padding: 20px;
}

.blog-item-date {
    color: #777;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.blog-item-title {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.blog-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-item-title a:hover {
    color: #007bff;
}

.blog-item-text {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-item-button {
    text-align: center;
}

/* Styles pour la page d'article détaillé */
.blog-post-img {
    margin-bottom: 20px;
}

.blog-post-img img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 5px;
}

.blog-post-content {
    line-height: 1.8;
    color: #333;
}

.blog-post-content h2, 
.blog-post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content ul, 
.blog-post-content ol {
    margin-bottom: 20px;
    margin-left: 20px;
}

.blog-post-content a {
    color: #007bff;
    text-decoration: none;
}

.blog-post-content a:hover {
    text-decoration: underline;
}

.blog-post-meta {
    color: #666;
    font-style: italic;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Styles pour les commentaires */
.comments-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.comments-section h3 {
    margin-bottom: 20px;
    color: #333;
}

.comment {
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.comment-author {
    margin-bottom: 10px;
}

.comment-author strong {
    font-weight: 600;
    color: #333;
}

.comment-date {
    font-size: 0.85rem;
    color: #777;
    margin-left: 10px;
}

.comment-content {
    color: #555;
    line-height: 1.6;
}

.comment-form {
    margin-top: 30px;
}

.comment-form h4 {
    margin-bottom: 20px;
    color: #333;
}

.error-message, .success-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.success-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-text {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Pagination styling */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    padding: 5px 10px;
    border: 1px solid #ddd;
    color: #007bff;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.page-link:hover {
    background-color: #f5f5f5;
}

.page-item.active .page-link:hover {
    background-color: #0069d9;
}

/* Responsive styling */
@media (max-width: 768px) {
    .blog-item-img img {
        height: 180px;
    }
    
    .blog-item-title {
        font-size: 1.2rem;
    }
    
    .blog-post-img img {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .blog-item-img img {
        height: 160px;
    }
} 