.item-historique,
.item-historique * {
    box-sizing: border-box;
}

.item-historique {
    position: relative;
    width: 100%;
    max-width: 516px;
    height: 400px;
    min-height: 400px;
    overflow: hidden;
    background: #0b0e19;
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(9, 14, 26, 0.16), 0 4px 6px -4px rgba(9, 14, 26, 0.12);
    transition: box-shadow 0.5s ease;
}

.item-historique:hover,
.item-historique:focus-within {
    box-shadow: 0 25px 50px -12px rgba(9, 14, 26, 0.35);
}

.item-historique__link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    color: inherit;
    text-decoration: none;
}

.item-historique__image,
.item-historique__image-bg,
.item-historique__overlay {
    position: absolute;
    inset: 0;
}

.item-historique__image {
    overflow: hidden;
    background: #e9e9e9;
}

.item-historique__image-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.7s ease;
}

.item-historique:hover .item-historique__image-bg,
.item-historique:focus-within .item-historique__image-bg {
    transform: scale(1.05);
}

.item-historique__overlay {
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0));
    pointer-events: none;
}

.item-historique__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.item-historique__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item-historique__copy {
    min-width: 0;
    flex: 1 1 auto;
}

.item-historique .item-historique__title {
    margin: 0 0 0.5rem !important;
    color: #ffffff;
    font-family: var(--font-heading, "Lato", sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

.item-historique .item-historique__description {
    display: -webkit-box;
    overflow: hidden;
    max-width: 28rem;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body, "Poppins", sans-serif);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.625;
    letter-spacing: 0;
    text-transform: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.item-historique .item-historique__cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.5rem;
    width: fit-content;
    min-height: 2.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #0b0e19;
    font-family: var(--font-body, "Poppins", sans-serif);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    border: 0;
    border-radius: 0;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0;
    transition: gap 0.3s ease, background-color 0.3s ease;
}

.item-historique__link:hover .item-historique__cta,
.item-historique__link:focus-visible .item-historique__cta {
    gap: 0.75rem;
    background: #ffffff;
}

.item-historique__cta-icon {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    background: currentColor;
    -webkit-mask-image: url("assets/icon-chevron-right.svg");
    mask-image: url("assets/icon-chevron-right.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}


/*RESPONSIVE*/

/*phone*/
@media (max-width: 767px) {

    .item-historique__body {
        flex-direction: column;
        align-items: flex-start;
    }

}

/*tablet*/
@media (min-width: 768px) and (max-width: 1023px) {

    .item-historique__body {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 1rem;
    }

    .item-historique__content {
        padding: 2rem;
    }

    .item-historique__cta {
        flex: 0 0 auto;
    }

}

/*mobile and tablet*/
@media (max-width: 1023px) {


}

/*desktop*/
@media (min-width: 1025px) {

    .item-historique {
        height: 500px;
        min-height: 500px;
    }

    .item-historique .item-historique__title {
        font-size: 1.875rem;
    }

    .item-historique .item-historique__description {
        font-size: 1rem;
        line-height: 1.625;
    }

}

/*laptop 1*/
@media (min-width: 1024px) and (max-width: 1439px) {

    .item-historique {
        height: 350px;
        min-height: 350px;
        max-width: 400px;
    }

    .item-historique .item-historique__title {
        font-size: 1.55rem;
    }

    .item-historique .item-historique__description {
        font-size: 0.875rem;
        line-height: 1.625;
    }

    .item-historique .item-historique__cta {
        min-height: 2rem;
        font-size: 0.75rem;
    }

}

/*laptop 2*/
@media (min-width: 1440px) and (max-width: 1700px) {

}

/*RESPONSIVE*/

/* mobile paragraph minimum */
@media (max-width: 767px) {
    .item-historique p {
        font-size: max(0.9375rem, 1em);
    }
}
