/* Bloc Actualités - Styles */

.bloc-actualites {
    padding: 70px 0;
    font-family: 'Poppins', sans-serif;
    position: relative;
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../../images/background/dotted.svg');
        background-size: 1600px;
        background-position: center;
        /* background-repeat: no-repeat; */
        width: 100vw!important;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
    }
}

.bloc-actualites__content {
    padding-right: 40px;
}

.bloc-actualites__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.2;
    color: #000;
    margin-bottom: 30px;
}

.bloc-actualites__description {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: #000;
    margin-bottom: 49px;
}

.bloc-actualites__description p {
    margin-bottom: 0;
}

.bloc-actualites__button {
    margin-top: 30px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #be0000;
    color: white;
    text-decoration: none;
    border-radius: 0 20px 0 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #a00000;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Slider des actualités */
.bloc-actualites__slider {
    position: relative;
}

.news-slider {
    position: relative;
    overflow-x: hidden;
    padding-top: 30px;
}

.news-slide {
    padding: 0 10px;
}

.news-card {
    border-radius: 0 20px 0 0;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px dashed #000;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    border-color: #be0000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-card__category {
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 14px;
    color: #919191;
    margin-bottom: 16px;
    line-height: 1.2;
}

.news-card__image {
    width: 100%;
    height: 127px;
    border-radius: 0 20px 0 0;
    overflow: hidden;
    margin-bottom: 16px;
    background-color: #d9d9d9;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 25px;
    line-height: 1.2;
    color: #000;
    margin-bottom: 16px;
}


.news-card__excerpt {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.8;
    color: #000;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-card__excerpt p {
    margin-bottom: 0;
}

.news-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: all 0.3s ease;
}

.news-card__link:hover {
    transform: translateY(-5px);
}

.news-card__cta {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    padding-right: 10px;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card__cta img {
    right: 0;
    position: relative;
    transition: all 0.3s ease;
}

.news-card__link:hover .news-card__cta {
   color: #be0000;
}

.news-card__link:hover .news-card__cta img {
    right: -5px;
    position: relative;
    transition: all 0.3s ease;
}




/* Navigation du slider */
.news-slider-nav {
    position: absolute;
    top: 50%;
    right: -80px;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

/* Masquer la flèche de gauche et agrandir celle de droite sur desktop */
@media (min-width: 861px) {
    .news-slider-prev {
        display: none!important;
    }
    
    .news-slider-next {
        width: 60px;
        height: 50px;
        right: -20px;
        position: relative;
    }
    
    .news-slider-next img {
        width: 50px !important;
        height: 50px !important;
    }

}

.news-slider-prev,
.news-slider-next {
    width: 47px;
    height: 39px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.news-slider-prev:hover,
.news-slider-next:hover {
    transform: scale(1.1);
}

.news-slider-prev.disabled,
.news-slider-next.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.news-slider-prev.disabled:hover,
.news-slider-next.disabled:hover {
    background-color: transparent;
    transform: none;
}

.news-slider-prev img,
.news-slider-next img {
    width: 20px;
    height: 20px;
}

.news-slider-prev img {
    transform: rotate(180deg);
}

.bloc-actualites__no-news {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #666;
    padding: 40px 20px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .bloc-actualites__content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .bloc-actualites__title {
        font-size: 32px;
    }
}

@media (max-width: 767.98px) {
    .bloc-actualites {
        padding: 40px 0;
    }
    
    .bloc-actualites__title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .bloc-actualites__description {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .news-card {
        padding: 15px;
    }
    
    .news-card__title {
        font-size: 20px;
    }
    
    .news-card__image {
        height: 100px;
    }
    
    /* Navigation repositionnée en dessous du slider sur mobile */
    .news-slider-nav {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 30px;
        right: auto;
        top: auto;
    }
}

@media (max-width: 575.98px) {
    .bloc-actualites__title {
        font-size: 24px;
    }
    
    .news-card__title {
        font-size: 18px;
    }
    
    .news-card__excerpt {
        font-size: 13px;
    }
}

/* Styles pour Slick Slider */
.news-slider .slick-list {
    margin: 0 -10px;
    overflow: visible;
}

.news-slider .slick-slide > div {
    padding: 0 10px;
    height: 100%;
}

.news-slider .slick-slide {
    height: auto;
}

.news-slider .slick-track {
    display: flex;
    align-items: stretch;
}

.news-slider .slick-dots {
    display: none !important;
}

.news-slider .slick-arrow {
    display: none !important;
}

/* Ajustements pour l'affichage côte à côte */
.news-card {
    height: 100%;
    min-height: 400px;
}

@media (max-width: 991.98px) {
    .news-card {
        min-height: 350px;
    }
}

/* Fallback slider CSS si Slick n'est pas disponible */
.fallback-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    justify-content: flex-start;
    overflow: hidden;
    width: 100%;
}

.fallback-slider .news-slide {
    flex: 0 0 50%;
    display: none;
    padding: 0 10px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.fallback-slider .news-slide.active {
    display: block;
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .fallback-slider .news-slide {
        flex: 0 0 100%;
    }
}

/* Masquer les slides non actifs de manière plus propre */
.fallback-slider .news-slide:not(.active) {
    display: none !important;
}
