/* Style de bouton principal */
.primary-button a {
    width: 450px !important;
}

/* Page d'acceuil bandeau avec fléche verte */
.arrow-container {
    position: relative;
}

/* Forme graphique bloc de citation */
.citation-container {
    position: relative;
}

.citation-container::before {
    content: "";
    background: url('/wp-content/uploads/2024/09/element-citation.png');
    background-size: cover;
    background-repeat: no-repeat;
    width: 120px;
    height: 85px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -140px
}

.arrow-container::before {
    content: "";
    background: url('/wp-content/uploads/2024/08/Trace-792.png');
    background-repeat: no-repeat;
    background-size: cover;
    width: 300px;
    height: 300px;
    position: absolute;
    left: -320px;
    top: 50%;
    transform: translateY(-50%);
}

/* Boucle d'article newsroom */

/* Élements au hover */
.article-newsroom, .home-article {
    position: relative;
    cursor: pointer;
}

.article-newsroom::after, .home-article::after {
    content: "";
    width: 100%;
    height: 100%;
    background: url('/wp-content/uploads/2024/09/after-article.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 10px;
    opacity: 0;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transition: all linear 0.3s;
    pointer-events: none;
}

.article-newsroom:hover::after, .home-article:hover::after {
    opacity: 0.6;
}

/* Style des étiquettes de catégories pour article mini */
.category-actu-large {
    position: relative;
    border-radius: 43px;
}

.category-actu-large .elementor-post-info__terms-list-item {
    font-size: 11px !important;
}

article.category-actualites .category-actu-large, .category-actualites .article-single-category,
article.category-news .category-actu-large, .category-news .article-single-category {
    background: #F97A31;
}

article.category-temoignages .category-actu-large, .category-temoignages .article-single-category,
article.category-testimonials .category-actu-large, .category-testimonials .article-single-category {
    background: #41AAD7;
}

article.category-videos .category-actu-large, .category-videos .article-single-category,
article.category-videos-en .category-actu-large, .category-videos-en .article-single-category
{
    background: #A2AF75;
}

.category-actu-large::before {
    width: 20px;
    height: 17px;
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

.category-actu-main::before {
    width: 28px;
    height: 25px;
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
}

.category-actu-large.article-single-category::before {
    width: 30px;
    height: 27px;
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
}

article.category-actualites .category-actu-large::before, .category-actualites .article-single-category::before,
article.category-news .category-actu-large::before, .category-news .article-single-category::before {
    content: "";
    background: url('/wp-content/uploads/2024/09/icon-btn-category.png');
    background-size: cover;
    background-position: center center;
}

article.category-temoignages .category-actu-large::before, .category-temoignages .article-single-category::before,
article.category-testimonials .category-actu-large::before, .category-testimonials .article-single-category::before {
    content: "";
    background: url('/wp-content/uploads/2024/09/icon-btn-category-temoignage.png');
    background-size: cover;
    background-position: center center;
}

article.category-videos .category-actu-large::before, .category-videos .article-single-category::before,
article.category-videos-en .category-actu-large::before, .category-videos-en .article-single-category::before {
    content: "";
    background: url('/wp-content/uploads/2024/09/icon-btn-category-video.png');
    background-size: cover;
    background-position: center center;
}

.category-actu-mini .elementor-post-info__terms-list-item{
    font-size: 0px !important;
}

.category-actu-mini {
    width: 25px !important;
    height: 25px;
    border-radius: 50%;
    position: relative;
}

.category-actualites .category-actu-mini, .category-news .category-actu-mini {
    background: #F87A31;
}

.category-temoignages .category-actu-mini, .category-testimonials .category-actu-mini {
    background: #41AAD7;
}

.category-videos .category-actu-mini, .category-videos-en .category-actu-mini {
    background: #A2AF75;
}

.category-actu-mini::before {
    content: "";
    width: 14px;
    height: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.category-actualites .category-actu-mini::before, .category-news .category-actu-mini::before {
    background: url('/wp-content/uploads/2024/09/icon-btn-category.png');
    background-size: cover;
    background-position: center center;
}

.category-temoignages .category-actu-mini::before, .category-testimonials .category-actu-mini::before {
    background: url('/wp-content/uploads/2024/09/icon-btn-category-temoignage.png');
    background-size: cover;
    background-position: center center;
}

.category-videos .category-actu-mini::before, .category-videos-en .category-actu-mini::before {
    background: url('/wp-content/uploads/2024/09/icon-btn-category-video.png');
    background-size: cover;
    background-position: center center;
}

/* Custom filtre newsroom */
.filter-container {
    display: flex;
    justify-content: space-between;
    font-family: 'Montserrat';
    align-items: center;
}

#filter-form {
    display: flex;
    width: 80%;
    justify-content: space-between;
}

#filter-form select {
    width: 340px;
    font-family: 'Montserrat';
    border: 1px solid #519C60;
    border-radius: 40px;
    position: relative;
    padding: 15px 20px;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#filter-form .select-container {
    position: relative;
}

#filter-form .select-container::before {
    content: "";
    background: url('/wp-content/uploads/2024/09/arrow-select.png');
    background-size: cover;
    background-repeat: no-repeat;
    width: 23px;
    height: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    z-index: 1;
}

#filter-form .form-container:nth-child(1) {
    display: flex;
    gap: 10px;
}

.filter-title {
    width: 20%;
    font-weight: bold;
    font-size: 25px;
}

#filter-form button {
    background: #519C60;
    border: 1px solid #519C60;
    color: white;
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 20px;
}

#filter-form button:hover {
    background: transparent;
    color: #519C60;
}

/* Galerie masonry */
.e-gallery-masonry {
    margin-bottom: 300px !important;
    margin-top: -10% !important;
}
.e-gallery--ltr.e-gallery-masonry .e-gallery-item {
    top: calc(var(--percent-height) + (var(--items-in-column) * var(--vgap)) + (var(--columns) - 1 - var(--column)) * 10%)
}

/* Pagination article unique */
.elementor-post-navigation {
    gap: 10px
}

.elementor-post-navigation__link a, .elementor-post-navigation__link {
    width: 65px !important;
    height: 65px;
}

.elementor-post-navigation__link a {
    justify-content: center;
    border: 1px solid #697E93;
    border-radius: 50%;
}

.elementor-post-navigation__link a i {
    display: none;
}

.elementor-post-navigation__prev a {
    background: url('/wp-content/uploads/2024/09/arrow-left-green.png');
    background-size: 27px;
    background-position: center center;
    background-repeat: no-repeat;
}

.elementor-post-navigation__next a {
    background: url('/wp-content/uploads/2024/09/arrow-right-green.png');
    background-size: 27px;
    background-position: center center;
    background-repeat: no-repeat;
}

.elementor-post-navigation__link a .post-navigation__arrow-wrapper {
    padding-inline-end: 0px !important;
}

/* Positionnement du formulaire de contact dans le footer */
.wpforms-container .wpforms-field-textarea textarea {
    border-radius: 10px !important;
}

.wpforms-container .wpforms-field-textarea {
    margin: -160px 0 0 10px !important;
}

.wpforms-container .wpforms-field-checkbox {
    margin-left: 590px !important;
}

@media screen and (max-width: 1024px) {
    .primary-button a {
        width: 300px !important;
    }
    .etiquette-large .elementor-post-info__terms-list-item {
        font-size: 11px !important;
    }
    .filter-container, #filter-form {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px
    }
    .filter-title {
        width: 100%;
    }
    .elementor-post-navigation__link a, .elementor-post-navigation__link {
        width: 45px !important;
        height: 45px;
    }
    
    .elementor-post-navigation__prev a, .elementor-post-navigation__next a {
        background-size: 17px
    }
    .wpforms-container .wpforms-field-checkbox {
        margin-left: 390px !important;
    }
}

@media screen and (max-width: 767px) {
    .primary-button a {
        width: 100% !important;
    }
    #filter-form .form-container {
        flex-direction: column;
    }
    .form-container, #filter-form select, #filter-form {
        width: 100%;
    }
    .select-container::before {
        right: 10px;
    }
    .e-gallery-masonry {
        margin-bottom: 0px !important;
        margin-top: 0% !important;
    }
}