/* ---------- MODULE DOCUMENTS ---------- */
.module-documents {
    box-sizing: border-box;
}

.module-documents .list {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1.625rem;
    row-gap: 3rem;
    align-items: flex-start;
    margin: 0;
    padding: 0;
}

.module-documents .list .item {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(20% - 1.625rem);
    min-width: 0;
}

.module-documents .list .illus-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 210 / 297;
    overflow: hidden;
    margin-bottom: 1rem;
    flex: 0 0 auto;
}

.module-documents .list .illus-wrapper::after {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    content: '';
    transition: all .3s ease;
    background-color: var(--color-primary);
}

.module-documents .list .illus {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.module-documents .list .overlay {
    color: #fff;
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1;
    opacity: 0;
    position: absolute;
    right: 1.75rem;
    text-align: center;
    top: 1.75rem;
    transform: translateY(-.625rem);
    transition: all .3s
    ease;
    z-index: 5;
}
.module-documents .list .overlay .icon{
    fill: #fff
}
.module-documents .list .item .desc {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 auto;
    padding: 0;
}

.module-documents .list .category {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    text-transform: uppercase;
}

.module-documents .list .title {
    line-height: 1.2;
    font-size: 1.2rem;
    text-align: left;
    margin: 0 0 0.5rem 0;
}

.module-documents .list .name {
    margin-top: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.05em;
    color: #999;
}

.module-documents .list .item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}
.module-documents .list .item:hover .illus-wrapper::after {
    opacity: .5;
}

.module-documents .list .item button {
    border: none;
    background: transparent;
    padding: 0;
    text-align: left;
    width: 100%;
}

.module-documents .btn-more-wrapper {
    margin-top: 3.75rem;
    margin-bottom: 3.75rem;
    text-align: center;
}

/* ---------- SINGLE CATEGORIE ---------- */
.single-category-actes .module-documents{
    padding-top : 3rem;
    padding-bottom : 3rem;
}

/* ---------- POPIN ---------- */
.page-archive-documents .popin { 
    max-height: 95vh;
}
.popin-documents-wrapper .popin {
    width: calc(100% - 5vw * 2);
    max-width: 92.625rem;
    max-height: calc(100vh - 5vw * 2);
    padding: 2.25rem 1.625rem 2.4375rem;
}
.popin-documents-wrapper .popin .cols-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: nowrap;
    margin-right: calc(-1.625rem / 2);
    margin-left: calc(-1.625rem / 2);
}
.popin-documents-wrapper .col-1 {
    max-width: calc(50% - 1.625rem);
}
/* ---------- responsive ---------- */
@media only screen and (max-width: 1550px) {
    .popin-documents-wrapper .popin {
        position: relative;
        width: 100%;
        max-height: 100%;
    }
}

@media only screen and (max-width: 1024px) {
    /* 2 colonnes */
    .module-documents .list .item {
        flex: 0 0 calc(50% - 1.625rem);
        max-width: calc(50% - 1.625rem);
        flex-basis: calc(50% - 1.625rem);
    }

    .module-documents .list .slider-navigation {
        padding: 1.3rem;
        opacity: 1;
    }
}

@media only screen and (max-width: 600px) {
    /* 1 colonne */
    .module-documents .list .item {
        flex: 0 0 calc(100% - 1.625rem);
        max-width: calc(100% - 1.625rem);
        flex-basis: 100%;
    }
}