/* Normalisation de base */
.p_res, .p_res_sized, .p_res_list, .p_res_list_i,
.p_res_list_i_sized, .p_res_list_i_img,
.p_res_list_i_txt, .p_res_list_i_txt_about,
.p_res_list_i_txt_btn, .p_res_all,
.single_res, .single_res_ttl, .single_res_ttl h1,
.single_res_the_pdf, #pdf-viewer, .controls,
.controls #next-page, .controls #prev-page,
.controls #page-info, .p_res_list_i_btn_s {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* Conteneur principal */
.p_res {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* Conteneur avec largeur limitée */
.p_res_sized {
    display: flex;
    width: 100%;
    max-width: 1024px;
    padding: 0 10px;
    flex-direction: column;
}

/* Liste des éléments */
.p_res_list {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 40px;
}

.p_res_list_i {
    display: flex;
    width: 100%;
    background: #F0F3F5;
    border: 3px solid #FFFFFF;
    justify-content: center;
    margin: 0 0 25px 0;
    transition: all 0.567s ease;
}

.p_res_list_i:hover {
    background: #3695D8;
}

.p_res_list_i_sized {
    display: flex;
    width: 100%;
    padding: 15px;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Image */
.p_res_list_i_img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 159px;
    aspect-ratio: 210 / 297;
    background-size: cover;
    background-position: center;
}

/* Zone de texte */
.p_res_list_i_txt {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-top: 15px;
}

/* Texte descriptif */
.p_res_list_i_txt_about {
    font-family: 'OS_SemiBold', sans-serif;
    line-height: 22px;
    font-size: 16px;
    color: #212020;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    max-height: 154px;
}

/* Bouton */
.p_res_list_i_txt_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 21px;
    color: #000000;
    font-family: 'OS_Regular', sans-serif;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    padding: 6px 28px;
    margin: 0px;
    border: none;
    transition: all 0.234s ease;
}

.p_res_list_i_txt_btn:hover {
    color: #3695D8;
    box-shadow: 0 0 12px #3695D8;
}

.p_res_list_i_txt_btn svg {
    height: 26px;
    width: auto;
    margin-right: 8px;
}

.p_res_list_i_txt_btn:hover svg {
    fill: #3695D8;
}

/* Bouton "Voir tout" */
.p_res_all_c {
    display: flex;
    width: 100%;
    justify-content: center;
}

.p_res_all_c.hidden {
    display: none;
}

.p_res_all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    color: #FFFFFF;
    font-family: 'OS_SemiBold', sans-serif;
    font-size: 16px;
    text-decoration: none;
    padding: 16px 30px;
    margin: 40px 0 80px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.234s ease;
}

.p_res_all:hover {
    background: #FFFFFF;
    color: #000000;
    box-shadow: 0 0 12px #000000;
}

/* Single resource styles */
.single_res {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.single_res_ttl {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
    background-image: url("/wp-content/themes/aramaso/assets/img/banner-org.png");
    background-size: cover;
    background-position: center;
}

.single_res_ttl h1 {
    margin: 70px 20px;
    color: #FFFFFF;
    font-family: 'OS_Bold', sans-serif;
    line-height: 1.5;
    font-size: 32px;
}

.single_res_the_pdf {
    display: flex;
    width: 100%;
    max-width: 1280px;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    padding: 0 10px;
}

#pdf-viewer {
    width: 100%;
    max-width: 100%;
    border: 5px solid rgba(54, 149, 216, 0.133);
    border-radius: 20px;
    overflow: hidden;
}

#pdf-viewer canvas {
    width: 100%;
}

.single_res_the_pdf .controls {
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 40px 0;
}

.single_res_the_pdf .controls #next-page,
.single_res_the_pdf .controls #prev-page {
    background: #3695D8;
    border: 2px solid #3695D8;
    color: #FFFFFF;
    font-family: 'OS_Bold', sans-serif;
    line-height: 1;
    padding: 7px 20px;
    cursor: pointer;
}

.single_res_the_pdf .controls #page-info {
    display: flex;
    align-items: center;
    margin: 0 30px;
    color: #000000;
    font-family: 'OS_Regular', sans-serif;
    line-height: 1;
}

.p_res_list_i_btn_s {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 10px;
}

/* Responsive Design */
@media (min-width: 480px) {
    .p_res_list_i {
        width: calc(100% - 20px);
        margin: 0 10px 25px 10px;
    }

    .p_res_list_i_sized {
        padding: 23px 21px;
    }

    .single_res_ttl h1 {
        font-size: 28px;
    }
}

@media (min-width: 600px) {
    .p_res_list_i {
        width: calc(50% - 20px);
    }

    .p_res_list_i_txt {
        width: calc(100% - 170px);
        margin-top: 0;
    }

    .p_res_list_i_img {
        width: 159px;
    }

    .single_res_ttl h1 {
        font-size: 32px;
    }
}

@media (min-width: 800px) {
    .p_res_list_i {
        width: calc(50% - 20px);
    }
}

@media (min-width: 1024px) {
    .single_res_ttl h1 {
        font-size: 40px;
    }
}

@media (min-width: 1280px) {
    .p_res_sized {
        padding: 0;
    }

    .single_res_the_pdf {
        padding: 0;
    }
}
