/* ---------- MODULE DOCUMENTS ---------- */
.page-archive-documents, .single-category-actes {
    padding-top: calc(37.5px + 1.953125vw);
    padding-bottom: calc(37.5px + 1.953125vw);
}

.page-archive-documents .archive-top .title,
.single-category-actes .archive-top .title {
    padding-bottom: 2.5rem;
}
.page-archive-documents .archive-top .txt,
.single-category-actes .archive-top .txt {
    padding-bottom: 3.5rem;
}

.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(16.667% - 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: 90vh;
    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;
    column-gap: 2.5rem;
}
.popin-documents-wrapper .col-1 {
    width: calc(55% - 1.625rem);
}
.popin-documents-wrapper .col-2 {
    width: calc(45% - 1.625rem);
}
.popin-documents-wrapper .pdfjs-iframe {
    width: 100%;
}
.popin-documents-wrapper .pdfjs-fullscreen {
    display: none;
}
.popin-documents-wrapper .title {
    text-align: left;
}
.page-archive-documents p.label {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--color-secondary);
}
/* ---------- 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;
    }
    .popin-documents-wrapper .popin .cols-wrapper {
        flex-direction: column;
        row-gap: 1.5rem;
    }
    .popin-documents-wrapper .col-1, .popin-documents-wrapper .col-2 {
        width: 100%;
    }
    .popin-documents-wrapper .pdfjs-iframe {
        max-height: 65vh;
    }
}

@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%;
    }
}