.archive main{
    margin-bottom: 70px !important;
}

.page-template-page-comparatif {
    background-color: #f2f2f2 !important;
}

.archive-post-list-container {
    display: grid;
    width: calc(100%);
    box-sizing: border-box;
    margin-bottom: 50px;
  }
  
  .archive-post-list-container > * {
    padding: 0 !important;
  }

.archive-post-background {
    background-color: #f2f2f2;
    width: 100%;
    text-align: center;
    padding: 40px 0px 0px;
}

.page-template-default {
    background-color: #f2f2f2;
}

.archive-post {
    flex-basis: calc(25% - 25px);
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
    z-index: 0;
    min-width: 170px;
}

.archive-post:hover .archive-post-img-container img {
    z-index: -1;
}

.archive-post:hover .archive-post-title-container {
    color:var(--main-color);
}

.archive-post-img-container {
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2));
}

.archive-post-img-container img {
    display: block;
    position: relative;
}

.archive-post-title-container {
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10px;
    text-align: center;
}

.archive-post-title-container h6 {
    margin: 0;
}

.load-more {
    margin: 50px auto;
}

.load-more .button {
    background: var(--main-color);
    border-radius: 8px;
    font-family: var(--default-title-font);
}

.load-more .button:hover {
    background: var(--main-color);
}

.no-results{
    width: 100%;
}

.no-results .inside-article {
    width: 100%;
    padding: 40px !important;
}

/* Archive Flux */ 

.is-flex {
    display: flex;
}

.is-flex-column {
    display: flex;
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

.justify-evenly {
    justify-content: space-evenly;
}

.archive-test-container {
    display: flex;
    flex-direction: column;
}

.archive-flux-header {
    height: 150px;
    background-image: url("../assets/Background.svg");
    background-size: cover;
    color: white;
    margin-bottom: 50px;
}

.archive-flux-header h1 {
    margin: 0;
    text-align: center;
    text-transform: uppercase;
}

.search-results .archive-flux-header h1{
    font-size: 30px;
}

.homepage-post-card {
    background-color: white;
    margin-bottom: 0px;
    font-family: var(--default-title-font);
}

.homepage-post-card .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-post-card .text-container{
    padding: 0 15px;
    width: 100%;
}

#last_comparatifs .homepage-post-card .text-container{
    grid-gap: 15px;
    align-items: flex-start;
}


.homepage-post-card .text-container h6,.homepage-nos-tests-postcard h6 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    font-weight: 600;
    color: var(--default-text-color);
}

.homepage-post-card .text-container > * {
    font-weight: 600;
    margin: 0;
    text-align: left;
}

.homepage-nos-tests-postcard {
    position: relative;
    text-align: left;
}

.homepage-nos-tests-postcard .post-link::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    content: " ";
}

.homepage-nos-tests-postcard .post-card-date {
    margin: 0;
}

.homepage-nos-tests-postcard .post-link h6 {
    margin-bottom: 0;
}

.homepage-nos-tests-postcard .thumbnail-container {
    width: 100%;
    background-size: cover;
    background-position: center;
}

.homepage-nos-tests-postcard .thumbnail-container::after {
    content: "";
    display: block;
    padding-bottom: 100%;
}

.post-card-title-link{
    text-decoration: none;
}

.post-card-title-link:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    content: " ";
}

.post-card-title-link h6{
    margin: 10px 0px;
}

.post-card-category{
    z-index: 2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    line-height: normal;
}

.post-card-category a{
    color: var(--main-color);
}

.post-card-category a:hover{
    color: var(--main-color);
}

.note-container {
    border-radius: 50%;
    background-image:url("../assets/Cercle-Note.svg");
    background-size: cover;
    position: absolute;
    text-align: center;
    color: white;
    font-weight: 600;
}

.note-container p {
    margin: 0;
    font-family: var(--default-title-font);
    color: white;
}

.bon-plan-flamme-container{
    position: absolute;
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 100%;
}

.archive-post-filters-container {
    background-color: #fff;
}

.filter-top-cat-list {
    list-style: none;
    margin: 0;
    padding: 20px;
}

.filter-sub-cat-list {
    height: 0px;
    overflow-y: hidden;
    -webkit-transition: all .8s ease;
    -moz-transition: all .8s ease;
    -ms-transition: all .8s ease;
    -o-transition: all .8s ease;
    transition: all .8s ease;
    list-style: none;
}

.cat-list_item{
    cursor: pointer;
}

.archive-with-filter-container {
    display: flex;
    align-items: flex-start;
}

.filter-title {
    margin: 0;
}

.filter-top-cat {
    margin-bottom: 20px;
}

.cat-list_item.active {
    font-weight: 600;
}

.cat-list_item.disabled {
    color: gray;
    cursor: default;
}

#content-load-more-btn {
    text-align: center;
}

#load_more_btn {
    background-color: var(--main-color);
    width: 180px;
    padding: 10px 10px;
}

.arrow-pagination {
    height: 22px;
    background:url('../assets/Ferme-Sommaire.svg');
}

.archive-post-card {
    width: 100%;
}

.archive-post-card{
    transition: top 0.3s ease 0s;
    -webkit-transition: top 0.3s ease 0s;
    -moz-transition: top 0.3s ease 0s;
    -ms-transition: top 0.3s ease 0s;
    -o-transition: top 0.3s ease 0s;
    top: 0;
}

.archive-post-card:hover{
    top: -5px;
}

.paging-navigation {
    padding: 0px !important;
    margin: 50px auto !important;
    background-color: transparent !important;
    text-align: center;
}

.paging-navigation .nav-links {
    display: inline-block;
    padding: 10px;
    background-color: transparent;
    border: 2px solid var(--main-color);
    border-radius: 8px;
    padding: 5px 20px;
    color: var(--main-color);
    font-weight: 800;
    margin: 0 auto;
    font-family: var(--default-title-font);
    font-size: 15px;
}

.paging-navigation .nav-links a {
    color: var(--main-color);
    font-weight: 800;
    font-family: var(--default-title-font);
}

.paging-navigation .page-numbers.current {
    font-size: 18px;
}

.paging-navigation .next {
    margin-left: 10px;
}

.paging-navigation .prev {
    margin-right: 10px;
}

#paging-navigation .nav-links {
    display: inline-block;
    padding: 10px;
    background-color: transparent;
    border: 2px solid var(--main-color);
    border-radius: 8px;
    padding: 5px 20px;
    color: var(--main-color);
    font-weight: 800;
    margin: 0 auto;
    font-family: var(--default-title-font);
    font-size: 15px;
}

#paging-navigation .nav-links a {
    color: var(--main-color);
    font-weight: 800;
    font-family: var(--default-title-font);
}

#paging-navigation .page-numbers.current {
    font-size: 18px;
}

#paging-navigation .next {
    margin-left: 10px;
}

#paging-navigation .prev {
    margin-right: 10px;
}

.filter-custom-field{
    width: 300px;
    background-color: white;
    padding: 20px 20px !important;
    height: min-content;
}

/* .filter-custom-field .filter-section{
    margin-top: 40px;
} */

.filter-custom-field ul{
    list-style: none;
    margin: 0;
}

.filter-custom-field h5{
    margin: 0px;
    font-weight: bold;
}

.filter-custom-field .first-level {
    -webkit-transition: max-height .3s ease;
    -moz-transition: max-height .3s ease;
    -ms-transition: max-height .3s ease;
    -o-transition: max-height .3s ease;
    transition: max-height .3s ease;
    overflow: hidden;
    margin: 20px 0px;
    max-height: 200px;
}

.opened-filter {
    max-height: 500px !important;
}

.first-level h6 {
    color: var(--main-color);
    font-weight: 400;
    margin-bottom: 0;
    width: -moz-fit-content;
    width: fit-content;
    /* workaround for IE11 */
    display: table;
    text-decoration: underline 1px solid;
    font-size: 18px;
}

.filter-custom-field .child-level {
    z-index: 10;
    line-height: 1.2;
    margin-bottom: 8px;
}

.filter-custom-field .child-level.hide {
    margin-bottom: 0px;
}

.filter-custom-field .first-level .child-level:last-child, .filter-custom-field .first-level .last-visible{
    margin-bottom: 0px;
}

.filter-custom-field .child-level.filter-item, .filter-product-cat, .filter-note {
    font-size: 15px;
}

.filter-item{
    cursor: pointer;
}

.filter-item h6:hover, .filter-item h5:hover, .filter-custom-field .child-level a:hover{
    color: var(--main-color);
}

.filter-item.selected {
    color: var(--main-color);
    
}

.first-level h6.selected {
    font-weight: 700;
}

.filter-item:focus {
    color: #000000;
}

@media (hover:hover) {
    .filter-item:hover {
        color: var(--main-color);
    }

    .homepage-nos-tests-postcard{
        top: 0;
        transition: top .3s ease 0s
    }

    .homepage-nos-tests-postcard:hover{
        top: -5px;
    }
}

.filter-inside-container{
    margin: 10px 0px;
}

.filter-section .first-level hr {
    margin: 10px 0px 0px;
    width: 50%;
    background-color: grey;
}

.filter-section .first-level span {
    font-size: 14px;
    color: grey;
    cursor: pointer;
}

.filter-section .first-level span img{
    transition: transform 0.25s ease-in;
}

.filter-section .first-level .see-more img {
    transform: rotate(180deg);
}

.filter-section .see-more.hide, .filter-section .see-less.hide, .child-level.hide{
    display: none;
}

.load_page.hide {
    display: none;
}

#switch-page-content {
    display: grid;
    grid-gap: 10px;
    margin-top: 25px;
    text-align: center;
}

#switch-page-content button {
    background-color: transparent;
    border: 2px solid var(--main-color);
    border-radius: 8px;
    color: var(--main-color);
    font-weight: 800;
    font-family: var(--default-title-font);
    max-width: 205px;
    margin: 0 auto;
}
    
#switch-page-content button:hover, #switch-page-content button:focus {
    background-color: var(--main-color);
    border: 2px solid #fff;
    color: #fff;
}

#last-comparatifs-container {
    width: 100%;
}

#last_comparatifs {
    display: flex;
    flex-direction: column;
}

#last_tests {
    display: grid;
}

.homepage-post-card.horizontal-post-card{
    transition: top 0.3s ease 0s;
    top: 0;
}

.homepage-post-card.horizontal-post-card:hover{
    top: -5px;
}

.homepage-post-card.horizontal-post-card:hover .post-card-title-link h6, .homepage-nos-tests-postcard:hover h6{
    color: var(--main-color);
}

.filter-mobile-banner {
    grid-gap: 10px;
    cursor: pointer;
    overflow: hidden;
}

.homepage-post-card.horizontal-post-card .disclaimer-sponso{
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 10px;
    color: #999999;
}

.homepage-post-card.vertical-post-card .disclaimer-sponso{
    font-size: 10px;
    color: #999999;
    position: absolute;
    bottom: 12px;
    right: 10px;
}

@media (max-width:350px){
    #last_tests {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width:400px){
    
    .nav-links .prev, .nav-links .next{
        font-size: 0px;
    }

    .nav-links .prev span, .nav-links .next span {
        font-size: 15px;
    }

    #last_tests .homepage-nos-tests-postcard{
        max-width: 250px;
    }
}

@media (max-width:550px){

    #last_tests .homepage-nos-tests-postcard{
        width: calc(100% - 15px);
        max-width: 250px;
    }
}

@media (max-width:800px){

    .archive-comparatifs {
        padding: 0 15px;
        margin: 25px 0px;
    }

    .archive-test-container {
        padding: 0 15px;
        margin: 25px 0;
    }

    #last_tests {
        grid-template-columns: repeat(2,1fr);
    }

    .homepage-post-card.horizontal-post-card{
        height: 120px;
        position: relative;
    }

    .homepage-post-card.horizontal-post-card .img-container {
        height: 120px;
        width: 120px;
        min-width: 120px;
    }

    .homepage-nos-tests-postcard .post-card-category, .homepage-nos-tests-postcard .post-card-date {
        font-size: 12px;
    }

    .homepage-post-card .note-container {
        left: -10px;
        top: 40px;
        height: 40px;
        width: 40px;
    }

    .homepage-post-card .note-container span {
        font-size: 20px;
    }

    .bon-plan-flamme-container{
        left: -10px;
    }

    .bon-plan-flamme-container img{
        width: 40px;
    }

    .archive-post-list-container {
        display: flex;
        flex-direction: column;
      }

    .archive-post-list-container article, .archive-post-list-container .homepage-post-card {
        margin-bottom: 15px;
    }

    .archive-post-list-container article:last-child, .archive-post-list-container .homepage-post-card:last-child {
        margin-bottom: 0px;
    }

    .filter-custom-field {
        width: auto;
        padding: 10px 10px !important;
        margin-bottom: 25px;
    }

    .filter-custom-field h5, .filter-custom-field h6 {
        text-align: left;
    }

    .filter-custom-field h6 {
        margin: 0px 0px 10px 0px;
    }

    .filter-section {
        text-align: left;
        width: 75%;
        margin: 0 auto;
        min-width: 200px;
        max-width: 350px;
        overflow: hidden;
        max-height: 3000px;
        transition: max-height .5s ease-in-out;
    }

    .filter-section-wrapper {
        transition: margin .5s ease-in-out;
        margin: 20px 0px 0px;
        overflow: hidden;
    }

    .filter-section-wrapper.hide {
        margin-top: 0px;
    }

    .filter-section.hide{
        max-height: 0;
    }

    .filter-section .first-level hr {
        margin: 10px 0 0;
    }

    .mobile-filter-arrow {
        width: min-content;
        transform: rotate(-180deg);
        transition: transform .5s ease 0s;
        align-self: center;
    }

    .filter-picto {
        align-self: center;
    }

    .filter-mobile-banner {
        height: 35px;
    }

    .filter-section .first-level.hide {
        display: none;
    }

    .filter-section > ul > hr, .filter-section > ul > hr {
        margin: 10px 0px 0px;
        width: 100%;
        background-color: black;
    }
    
    .filter-section > ul > .see-more span, .filter-section > ul > .see-less span {
        font-size: 14px;
        color: black;
        cursor: pointer;
    }
    
    .filter-section span img{
        transition: transform 0.25s ease-in;
    }
    
    .filter-section .see-more img {
        transform: rotate(180deg);
    }

    .filter-section .see-more, .filter-section .see-less {
        text-align: center;
    }

    #switch-page-content button {
        padding: 5px 15px;
        font-size: 15px;
        height: min-content;
        width: 100%;
    }

    #switch-page-content #load_previous {
        grid-column: 1;
        grid-row: 2;
    }

    #switch-page-content #load_next {
        grid-column: 2;
        grid-row: 2;
    }

    #number_of_posts {
        font-size: 15px;
        grid-row: 1;
        grid-column: span 2;
    }

    #switch-page-content {
        grid-template-columns: repeat(2,1fr);
        grid-template-rows: repeat(2,1fr);
    }

    #switch-page-content .center {
        grid-column: span 2 !important;
    }

    .homepage-post-card .note-container span, .homepage-nos-tests-postcard .note-container span {
        font-size: 25px;
    }

    .homepage-nos-tests-postcard{
        width: 100%;
        background-color: white;
        margin: 0px auto 15px auto;
        max-width: 250px;
    }

    .homepage-nos-tests-postcard img{
        height: auto;
        max-height: 300px;
    }

    .homepage-nos-tests-postcard .note-container{
        height: calc(((100vw - 30px)*0.45)*0.3);
        width: 30%;
        top: 10px;
        left: 10px;
    }

    .homepage-nos-tests-postcard .title-container{
        height: 100px;
        padding: 10px;
        justify-content: space-around;
    }

    .homepage-nos-tests-postcard .title-container .post-card-category{
        margin-bottom: 0px;
        font-size: 12px;
        font-weight: 600;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
    }

    .homepage-nos-tests-postcard h6{
        -webkit-line-clamp: 2;
    }

    #pc-filter-title {
        display: none;
    }

    #mobile-filter-title {
        position: relative;
        top: 0;
        transition: all .5s ease 0s;
    }

    #mobile-filter-title h5 {
        line-height: 35px;
    }
}

@media (max-width:600px){

    .related-post-list-container {
        padding: 0px;
    }

    .homepage-post-card .note-container span, .homepage-nos-tests-postcard .note-container span {
        font-size: 25px;
    }
}

@media (max-width:450px){

    .homepage-post-card .note-container span, .homepage-nos-tests-postcard .note-container span {
        font-size: 22px;
    };

    .homepage-nos-tests-postcard .note-container {
        height: calc(((100vw - 30px)*0.45)*0.4);
        width: 40%;
    }
}

@media (max-width:348px){

    .homepage-nos-tests-postcard .note-container {
        height: calc(((100vw - 30px)*0.8)*0.4);
    }
}

@media (max-width:1080px){
    #last_tests {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (min-width:1080px){
    #last_tests {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (min-width:800px){

    .archive-with-filter {
        display: flex;
        flex-direction: row;
        margin: 50px 0px;
    }

    #homepage-new {
        max-width: 960px;
        margin: 0 auto;
    }

    .homepage-post-card.horizontal-post-card{
        height: 180px;
        position: relative;
    }

    .homepage-post-card .text-container h6 {
        font-size: 30px !important;
    }

    .homepage-post-card.horizontal-post-card .img-container {
        height: 180px;
        width: 180px;
        min-width: 180px;
    }

    .homepage-nos-tests-postcard.horizontal-post-card .post-card-category, .homepage-nos-tests-postcard.horizontal-post-card .post-card-date {
        font-size: 16px;
    }

    .homepage-post-card .note-container {
        height: 80px;
        width: 80px;
        top: 50px;
        left:-40px;
    }

    .homepage-post-card .note-container span {
        font-size: 35px;
    }

    .homepage-post-card .note-container p {
        font-size: 23px;
    }

    .bon-plan-flamme-container{
        left: -35px;
    }

    .bon-plan-flamme-container img{
        width: 70px;
    }

    .archive-post-list-container article, .archive-post-list-container .homepage-post-card {
        margin-bottom: 25px;
    }

    .archive-post-list-container article:last-child, .archive-post-list-container .homepage-post-card:last-child {
        margin-bottom: 0px;
    }

    .mobile-filter-arrow {
        display: none;
    }

    .mobile-only {
        display: none;
    }

    #switch-page-content button {
        padding: 5px 50px;
    }

    .archive-test-container {
        margin: 50px 0px;
    }

    .archive-test-container .filter-custom-field {
        width: 239px;
        flex-shrink: 0;
        margin-right: 30px;
    }
    
    .filter-section-wrapper {
        margin: 25px 0px 0px;
    }

    #switch-page-content {
        grid-template-columns: repeat(3,1fr);
    }

    #switch-page-content #load_previous {
        grid-column: 1;
    }

    #switch-page-content #load_next {
        grid-column: 3;
    }

    #number_of_posts {
        grid-column: 2;
    }

    .homepage-nos-tests-postcard{
        width: 225px;
        background-color: white;
        margin: 0px auto 30px auto;
    }

    .homepage-nos-tests-postcard .note-container {
        height: 80px;
        width: 80px;
        top: -6px;
        left: -25px;
    }

    .homepage-nos-tests-postcard .note-container span {
        font-size: 35px;
    }

    .homepage-nos-tests-postcard .note-container p {
        font-size: 23px;
    }

    .homepage-nos-tests img{
        height: 235px;
    }

    .homepage-nos-tests-postcard .title-container{
        height: 125px;
        padding: 10px 20px;
        justify-content: space-around;
    }

    .homepage-nos-tests-postcard .title-container .post-card-category{
        margin-bottom: 0px;
        font-size: 16px;
        font-weight: 600;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
    }

    .homepage-nos-tests-postcard h6{
        -webkit-line-clamp: 3;
    }

    #mobile-filter-title {
        display: none;
    }

}