/* Section actualité avec carrousel d'images */
.news-detail-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.news-detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.02"/><circle cx="50" cy="10" r="1" fill="%23000" opacity="0.02"/><circle cx="10" cy="60" r="1" fill="%23000" opacity="0.02"/><circle cx="90" cy="40" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.news-card-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    position: relative;
}

.news-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.news-content {
    padding: 2rem;
}

.news-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.news-excerpt {
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.news-meta .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.btn-detail {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-detail:hover::before {
    left: 100%;
}

.btn-detail:hover {
    background: linear-gradient(45deg, var(--primary-light), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 85, 48, 0.3);
    color: white;
}

/* Carrousel d'images à droite */
.news-image-carousel {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.news-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.news-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-carousel-slide:hover img {
    transform: scale(1.05);
}

/* Overlay pour les images */
.news-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.news-carousel-slide:hover .news-image-overlay {
    transform: translateY(0);
}

.news-image-overlay h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.news-image-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

/* Indicateurs du carrousel */
.news-carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.news-carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.news-carousel-indicator.active {
    background: white;
    transform: scale(1.2);
    border-color: var(--primary-color);
}

.news-carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Contrôles de navigation */
.news-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

.news-image-carousel:hover .news-carousel-nav {
    opacity: 1;
    visibility: visible;
}

.news-carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.news-carousel-nav.prev {
    left: 15px;
}

.news-carousel-nav.next {
    right: 15px;
}

.news-carousel-nav i {
    font-size: 1rem;
    color: var(--primary-color);
}

/* Compteur d'images */
.image-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

/* Animation d'apparition */
.news-fade-in {
    animation: newsFadeInUp 0.8s ease-out;
}

@keyframes newsFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .news-image-carousel {
        height: 250px;
        margin-bottom: 2rem;
        margin-top: 0;
    }
    
    .news-content {
        padding: 1.5rem;
    }
    
    .news-title {
        font-size: 1.5rem;
    }
    
    .news-excerpt {
        font-size: 1rem;
    }
    
    .news-carousel-nav {
        width: 35px;
        height: 35px;
    }
    
    .news-carousel-nav.prev {
        left: 10px;
    }
    
    .news-carousel-nav.next {
        right: 10px;
    }
    
    .news-image-overlay {
        padding: 15px;
    }
    
    /* Réorganiser l'ordre des colonnes sur mobile */
    .news-card-modern .row {
        flex-direction: column-reverse;
    }
    
    .news-card-modern .col-lg-5 {
        order: -1;
    }
    
    .news-card-modern .col-lg-7 {
        order: 1;
    }
}

@media (max-width: 576px) {
    .news-image-carousel {
        height: 200px;
    }
    
    .news-carousel-indicators {
        bottom: 10px;
        gap: 6px;
    }
    
    .news-carousel-indicator {
        width: 8px;
        height: 8px;
    }
    
    .btn-detail {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .news-card-modern {
        background: #2d3748;
        color: white;
    }
    
    .news-title {
        color: #e2e8f0;
    }
    
    .news-excerpt {
        color: #a0aec0;
    }
    
    .news-carousel-nav {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .news-carousel-nav:hover {
        background: black;
    }
    
    .news-carousel-nav i {
        color: white;
    }
}
