/* Bloc Slider Offres d'emploi - Styles */

.bloc-slider-offres {
    padding: 70px 0;
    font-family: 'Poppins', sans-serif;
    position: relative;
    &::after{
        content: '';
        position: absolute;
        top: -500px;
        right: 0%;
        width: 100px;
        height: 800px;
        z-index: 10;
        background-image: url(../../images/arrow-curved-xl.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        @media (max-width: 1280px){
            display: none;
        }
    }
}

.bloc-slider-offres__content {
    padding-right: 40px;
}

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

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

.bloc-slider-offres__description p {
    margin-bottom: 0;
}

.bloc-slider-offres__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 offres d'emploi */
.bloc-slider-offres__slider {
    position: relative;
}

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

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

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

.offre-card:hover {
    border-color: #be0000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    .offre-card__title{
        color: var(--primary)!important;
        transition: all 0.3s ease;
    }
}

.offre-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;
}

.offre-card__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.offre-card__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 25px;
    line-height: 1.2;
    color: #000;
    margin-bottom: 16px;
    transition: all 0.3s ease;

}

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

.offre-card__description p {
    margin-bottom: 0;
}

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

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

.offre-card__meta {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;

}

.offre-card__location{
    margin-bottom: 10px;
}

.offre-card__location,
.offre-card__contract {
    display: flex;
    align-items: center;
    gap: 10px;
}

.offre-card__icon {
    color: #000000;
    flex-shrink: 0;
}

.offre-card__location span,
.offre-card__contract span {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.8;
    color: #000000;
}

.offre-card__cta {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    padding: 10px 10px 0 0;
    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;
    flex-shrink: 0;
    margin-bottom: 0;
}

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

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

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

.offre-card__category {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.offre-card__salary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 14px;
    color: #28a745;
    font-weight: 600;
}

.offre-card__salary img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.offre-card__experience {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.offre-card__experience img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.offre-card__education {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.offre-card__education img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

/* Navigation du slider */
.offres-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) {
    .offres-slider-prev {
        display: none!important;
    }
    
    .offres-slider-next {
        width: 60px;
        height: 50px;
        right: -20px;
        position: relative;
    }
    
    .offres-slider-next img {
        width: 50px !important;
        height: 50px !important;
    }
}

.offres-slider-prev,
.offres-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%;
}

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

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

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

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

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

.bloc-slider-offres__no-offres {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #666;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 0 20px 0 20px;
    border: 1px dashed #ddd;
}

.bloc-slider-offres__no-offres p {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 400;
}

.bloc-slider-offres__no-offres p:last-child {
    font-size: 14px;
    color: #999;
    margin-bottom: 0;
}

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

@media (max-width: 767.98px) {
    .bloc-slider-offres {
        padding: 40px 0;
    }
    
    .bloc-slider-offres__title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .bloc-slider-offres__description {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .offre-card {
        padding: 15px;
    }
    
    .offre-card__title {
        font-size: 20px;
    }
    
    .offre-card__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Navigation repositionnée en dessous du slider sur mobile */
    .offres-slider-nav {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 30px;
        right: auto;
        top: auto;
    }
}

@media (max-width: 575.98px) {
    .bloc-slider-offres__title {
        font-size: 24px;
    }
    
    .offre-card__title {
        font-size: 18px;
    }
    
    .offre-card__description {
        font-size: 13px;
    }
}

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

.offres-slider .slick-slide > div {
    padding: 0 10px;
    height: 420px;
    /* height: 100%; */
}


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

.offres-slider .slick-slide {
    height: 420px;
}

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

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

/* Ajustements pour l'affichage côte à côte */
.offre-card {

    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 991.98px) {
    .offre-card {
        min-height: 380px;
        max-height: 380px;
    }
    
    .offres-slider .slick-slide {
        height: 380px;
    }
    
    .offres-slider .slick-track {
        height: 380px;
    }
}

/* 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 .offre-slide {
    flex: 0 0 33.333%;
    display: none;
    padding: 0 10px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

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

.fallback-slider .offre-slide.active + .offre-slide.active {
    display: block;
}

.fallback-slider .offre-slide.active + .offre-slide.active + .offre-slide.active {
    display: block;
}

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

@media (max-width: 992px) {
    .fallback-slider .offre-slide {
        flex: 0 0 50%;
    }
}

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

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