/**
 * Styles pour le shortcode des dernières actualités (Carrousel)
 */

.ikn-latest-news-section {
    width: 100%;
    padding: 60px 20px;
    margin: 0;
    background-color: #8ba981;
}

.ikn-latest-news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ikn-latest-news-title {
    color: #fff;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.ikn-latest-news-subtitle {
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ikn-news-carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding: 0 60px;
}

.ikn-news-carousel {
    width: 100%;
}

.ikn-news-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 0;
}

.ikn-news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 0;
}

.ikn-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.ikn-news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.ikn-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ikn-news-content {
    padding: 20px;
}

.ikn-news-title {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 600;
}

.ikn-news-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.ikn-news-excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

.ikn-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    color: #8ba981;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 0;
    margin: 0;
    line-height: 1;
}

.ikn-carousel-nav svg {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}

.ikn-carousel-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.ikn-carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.ikn-carousel-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.ikn-carousel-nav:disabled:hover {
    transform: translateY(-50%);
    scale: 1;
}

.ikn-carousel-prev {
    left: 15px;
}

.ikn-carousel-next {
    right: 15px;
}

.ikn-latest-news-footer {
    text-align: center;
    margin-top: 40px;
}

.ikn-view-all-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #fff;
    color: #8ba981;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.ikn-view-all-btn:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .ikn-news-carousel-wrapper {
        padding: 0 20px;
    }
    
    .ikn-carousel-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .ikn-latest-news-title {
        font-size: 2rem;
    }
    
    .ikn-latest-news-section {
        padding: 40px 15px;
    }
    
    .ikn-news-carousel-wrapper {
        padding: 0;
    }
    
    .ikn-news-card {
        margin-right: 0 !important;
    }
}
