/* ========================================
   BLOC MÉTIERS
   ======================================== */

.blocMetiers {
    padding: 50px 0;
}

.blocTexteSimple + .blocMetiers{
    padding-top: 0;
}

.blocMetiers + .blocMetiers {
    padding-top: 0;
    padding-bottom: 50px;
}


/* Sous-titre */
.blocMetiers__subtitle {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 22px;
    line-height: 27px;
    letter-spacing: 2.2px;
    color: #007FB4;
    margin-bottom: 12px;
}

/* Wrapper du slider */
.blocMetiers__slider-wrapper {
    margin-bottom: 12px;
    position: relative;
}

/* Carte de métier */
.blocMetiers__card {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 0;
}

.blocMetiers__card.has-link {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.blocMetiers__card.has-link:hover {
    transform: translateY(-5px);
}

.blocMetiers__card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Image de la carte */
.blocMetiers__card-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.blocMetiers__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay sombre sur l'image */
.blocMetiers__card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 40, 63, 0.75);
}

.blocMetiers__card.has-link .blocMetiers__card-overlay {
    transition: background-color 0.3s ease;
}

.blocMetiers__card.has-link:hover .blocMetiers__card-overlay {
    background-color: rgba(0, 40, 63, 0.85);
}

/* Contenu de la carte (titre + flèche) */
.blocMetiers__card-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

/* Titre de la carte */
.blocMetiers__card-title {
    width: 100%;
    padding: 0 15px;
    margin: 0;
    font-family: 'Momo Trust Display', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    line-height: normal;
    text-align: center;
    color: #FFFFFF;
}

/* Flèche dans la carte */
.blocMetiers__card-arrow {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.blocMetiers__card.has-link:hover .blocMetiers__card-arrow {
    transform: translateY(3px);
}

.blocMetiers__card-arrow img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Bouton en bas */
.blocMetiers__button-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-top: 12px;
}

/* Décoration (zigzag) */
.blocMetiers__decoration {
    width: 113.833px;
    height: 32px;
    margin-top: 20px;
}

.blocMetiers__decoration-img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Personnalisation Splide */
.blocMetiers__slider .splide__track {
    overflow: hidden;
}

.blocMetiers__slider .splide__list {
    gap: 0;
}

.blocMetiers__slider .splide__slide {
    height: auto;
}

.blocMetiers__slider .splide__pagination {
    display: none;
}

/* Navigation arrows - Style personnalisé */
.blocMetiers__slider .splide__arrows {
    z-index: 10;
}

.blocMetiers__slider .splide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 1;
    background-image: url('../../images/icons/arrow/bottom/blue/rounded.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.blocMetiers__slider .splide__arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.blocMetiers__slider .splide__arrow--prev {
    left: -60px;
    transform: translateY(-50%) rotate(90deg);
}

.blocMetiers__slider .splide__arrow--next {
    right: -60px;
    transform: translateY(-50%) rotate(-90deg);
}

.blocMetiers__slider .splide__arrow svg {
    display: none;
}

/* Responsive */
@media (max-width: 1199px) {
    .blocMetiers__slider .splide__slide {
        height: auto;
    }
    
    .blocMetiers__card-title {
        font-size: 18px;
    }
    
    .blocMetiers__card-arrow {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 991px) {
    .blocMetiers {
        padding: 40px 0;
    }
    
    .blocMetiers__subtitle {
        font-size: 20px;
        line-height: 24px;
    }
    
    .blocMetiers__card {
        width: 100%;
        height: 100%;
        aspect-ratio: 1/1;
    }
    
    .blocMetiers__card-title {
        font-size: 16px;
    }
    
    .blocMetiers__card-arrow {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 575px) {
    .blocMetiers__slider .splide__slide {
        height: auto;
    }
}

@media (max-width: 430px) {
    .blocMetiers__slider .splide__slide {
        height: auto;
    }
}

@media (max-width: 767px) {
    .blocMetiers {
        padding: 30px 0;
    }

    .blocMetiers__slider .splide__arrows {
        display: none !important;
    }

    .blocMetiers__slider .splide__pagination {
        display: flex;
        position: static;
        margin-top: -30px;
        gap: 8px;
    }

    .blocMetiers__slider .splide__pagination__page {
        width: 8px;
        height: 8px;
        margin: 0;
        opacity: 1;
        background-color: #9FC7D9;
    }

    .blocMetiers__slider .splide__pagination__page.is-active {
        transform: none;
        background-color: #007FB4;
    }

    .blocMetiers__card-image-wrapper {
        width: 86%;
        aspect-ratio: 1/1;
        height: auto;
        margin: 0 auto;
    }
    
    .blocMetiers__subtitle {
        font-size: 18px;
        line-height: 22px;
    }
    
    .blocMetiers__card {
        width: 100%;
        height: 100%;
        aspect-ratio: 1/1;
    }
    
    .blocMetiers__card-title {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .blocMetiers__card-arrow {
        width: 22px;
        height: 22px;
    }
    
    .blocMetiers__button-wrapper {
        justify-content: center;
    }
    
    .blocMetiers__decoration {
        width: 90px;
        height: 25px;
    }
}
