/* Styles du carrousel d'articles */
.articles-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.articles-carousel {
    position: relative;
    /* overflow: hidden; */
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .carousel-slide {
        min-width: 50%;
    }
}

@media (min-width: 1024px) {
    .carousel-slide {
        min-width: 33.333%;
    }
}

.carousel-article {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carousel-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.article-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.carousel-article:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    margin: 0 0 10px;
    font-size: 1.2rem !important;
    line-height: 1.4;
}

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

.article-title a:hover {
    color: #418509;
}

.article-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.article-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.article-link {
    color: #418509;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: color 0.3s ease;
}

.article-link:hover {
    color: #418509;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #418509;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}