/* News Carousel Modern Design - Style Agressif Vert */

/* Container principal */
.news-carousel-modern {
    position: relative;
    padding: 60px 0;
    background: transparent;
    overflow: hidden;
}


/* Titre section */
.news-carousel-modern .tt-block-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.news-carousel-modern .tt-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #22c55e 0%, #10b981 50%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    animation: titleGradientShift 3s ease-in-out infinite, titlePulse 2s ease-in-out infinite alternate;
    transform-origin: center;
}

.news-carousel-modern .tt-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #10b981);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
    animation: underlineGlow 2s ease-in-out infinite alternate;
}

.news-carousel-modern .tt-description {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Carousel container */
.news-carousel-modern .js-carousel-news {
    position: relative;
    z-index: 2;
}

/* Cartes d'articles */
.news-carousel-modern .tt-media {
    display: block;
    position: relative;
    margin: 0 15px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(34, 197, 94, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0) scale(1);
    text-decoration: none;
    color: inherit;
    opacity: 0;
    animation: cardSlideUp 0.8s ease-out forwards;
}

.news-carousel-modern .tt-media:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(34, 197, 94, 0.6),
        0 0 40px rgba(34, 197, 94, 0.3);
    text-decoration: none;
    color: inherit;
}

/* Effet de brillance au survol */
.news-carousel-modern .tt-media::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.news-carousel-modern .tt-media:hover::before {
    left: 100%;
}

/* Image container */
.news-carousel-modern .tt-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.news-carousel-modern .tt-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.8) contrast(1.1);
}

.news-carousel-modern .tt-media:hover .tt-img img {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.2);
}

/* Overlay gradient sur l'image */
.news-carousel-modern .tt-img::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
}

/* Contenu de la carte */
.news-carousel-modern .tt-layot {
    padding: 25px;
    position: relative;
    z-index: 2;
}

/* Date */
.news-carousel-modern .tt-time {
    position: absolute;
    top: -30px;
    right: 20px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    box-shadow: 
        0 8px 20px rgba(34, 197, 94, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.news-carousel-modern .tt-media:hover .tt-time {
    transform: rotate(0deg) scale(1.05);
}

.news-carousel-modern .tt-time span {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 2px;
}

/* Titre de l'article */
.news-carousel-modern .title {
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 15px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-carousel-modern .tt-media:hover .title {
    color: #22c55e;
}

/* Description */
.news-carousel-modern .tt-layot p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.news-carousel-modern .tt-media:hover .tt-layot p {
    color: #374151;
}

/* Lien "en savoir plus" */
.news-carousel-modern .tt-link {
    display: inline-flex;
    align-items: center;
    color: #22c55e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
}

.news-carousel-modern .tt-link::after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.news-carousel-modern .tt-media:hover .tt-link {
    color: #16a34a;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.news-carousel-modern .tt-media:hover .tt-link::after {
    transform: translateX(5px);
}

/* Flèches de navigation */
.news-carousel-modern .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 20px rgba(34, 197, 94, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.1);
}

.news-carousel-modern .slick-arrow:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 
        0 12px 30px rgba(34, 197, 94, 0.5),
        0 0 0 3px rgba(255, 255, 255, 0.2);
}

.news-carousel-modern .slick-prev {
    left: -30px;
}

.news-carousel-modern .slick-next {
    right: -30px;
}

/* Points de navigation */
.news-carousel-modern .slick-dots {
    bottom: -50px;
    text-align: center;
}

.news-carousel-modern .slick-dots li {
    margin: 0 8px;
}

.news-carousel-modern .slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.3);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.news-carousel-modern .slick-dots li.slick-active button {
    background: #22c55e;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
}

/* Animations d'apparition modernes */
@keyframes cardSlideUp {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.8) rotateX(15deg);
    }
    50% {
        opacity: 0.7;
        transform: translateY(20px) scale(0.95) rotateX(5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

/* Délai d'apparition échelonné pour chaque carte */
.news-carousel-modern .tt-media:nth-child(1) {
    animation-delay: 0.1s;
}

.news-carousel-modern .tt-media:nth-child(2) {
    animation-delay: 0.2s;
}

.news-carousel-modern .tt-media:nth-child(3) {
    animation-delay: 0.3s;
}

.news-carousel-modern .tt-media:nth-child(4) {
    animation-delay: 0.4s;
}

.news-carousel-modern .tt-media:nth-child(5) {
    animation-delay: 0.5s;
}

/* Responsive */
@media (max-width: 768px) {
    .news-carousel-modern .tt-title {
        font-size: 2rem;
    }
    
    .news-carousel-modern .tt-media {
        margin: 0 10px;
    }
    
    .news-carousel-modern .slick-arrow {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .news-carousel-modern .slick-prev {
        left: -25px;
    }
    
    .news-carousel-modern .slick-next {
        right: -25px;
    }
}


@keyframes particleFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

/* Animations pour le titre dynamique */
@keyframes titleGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes titlePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

@keyframes underlineGlow {
    0% { 
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
        width: 80px;
    }
    100% { 
        box-shadow: 0 0 30px rgba(34, 197, 94, 0.9);
        width: 100px;
    }
}
