/*
Theme Name: Arash Saeidi
Description: Thème enfant de Twenty Twenty-Four pour Arash Saeidi
Author: Monarch Studio
Author URI: https://www.monarchstudio.fr
Template: twentytwentyfour
Version: 1.0
Text Domain: arash-saeidi-child
*/

/**
Global
 */

html {
    scroll-behavior: smooth;
}

.uppercase {
    text-transform: uppercase;
}

.jost-family {
    font-family: "Jost", sans-serif;
}

/**
Navbar
 */

nav.wp-block-navigation .wp-block-navigation-item__content .wp-block-navigation-item__label {
    opacity: 0.5;
}

.wp-block-site-logo a:active,
.wp-block-site-logo a:focus,
.wp-block-site-logo a:focus-visible,
nav.wp-block-navigation .wp-block-navigation-link:active,
nav.wp-block-navigation .wp-block-navigation-link a:active,
nav.wp-block-navigation .wp-block-navigation-link:focus-visible,
nav.wp-block-navigation .wp-block-navigation-link a:focus-visible,
nav.wp-block-navigation .wp-block-navigation-link a:focus,
nav.wp-block-navigation .wp-block-navigation-link:focus {
    outline: none;
}

nav.wp-block-navigation .wp-block-navigation-item__content:hover,
nav.wp-block-navigation .wp-block-navigation-item__content {
    text-decoration: none !important;
}

.newsletter-link span,
body.post-type-archive-action_parlementaire .menu-au-parlement .wp-block-navigation-item__label,
body.post-type-archive-action_parlementaire .menu-au-parlement:hover .wp-block-navigation-item__label,
nav.wp-block-navigation .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__label,
nav.wp-block-navigation .wp-block-navigation-item__content:hover .wp-block-navigation-item__label {
    opacity: 1 !important;
}

.newsletter-link > a {
    border-radius: 50px !important;
    padding: 4px 16px;
    color: #ffffff !important;
    transition: transform 200ms ease-in-out;
}

.newsletter-link > a:hover {
    transform: scale(1.005);
}

/**
Homepage
 */

.home h1 {
    font-size: 8rem !important;
    line-height: 0.9;
}

.home h1 .jost-family:not(.subtitle) {
    font-weight: bold;
}

.home h1 .jost-family.subtitle {
    font-size: 1.5rem;
    margin-top: 12px;
    display: block;
    font-weight: 300;
    letter-spacing: 1px;
}

/**
Blog
 */

.wp-block-post {
    position: relative;
    border-radius: 8px;
}

.wp-block-post .wp-block-post-featured-image img {
    transition: filter 0.5s ease-in-out;
}

.wp-block-post:hover .wp-block-post-featured-image img {
    filter: unset !important;
}

.wp-block-post .wp-read-more-container {
    position: relative;
    width: 100%;
    text-align: center;
    background-color: white;
}

.wp-block-post .wp-read-more-container > .wp-block-read-more {
    display: block;
    padding-top: 16px;
    padding-bottom: 16px;
    width: 100%;
    font-weight: 600;
    font-size: 14px;
}

.wp-element-button::after,
.wp-block-post .wp-read-more-container > .wp-block-read-more::after {
    content: "›";
    display: inline-block;
    margin-left: 0.3em;
    font-size: 1.2em;
}

.wp-block-post:hover > .wp-block-group {
    background-color: white !important;
}

.wp-block-post::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    height: 100%;
    width: 100%;
    filter: blur(40px);
    margin: 0 auto;
    background: linear-gradient(-90deg, rgb(249 22 22 / 18%), rgb(123 62 213 / 29%)) 0 0 / 100% 100%;
    opacity: 0;
    transition: opacity 300ms ease-in-out;
}

.wp-block-post:hover::after {
    opacity: 1;
}

/**
Filtres
 */

#filter-actualites .wpc-filters-ul-list {
    display: flex;
    justify-content: center !important;
}

#filter-actualites .wpc-filters-main-wrap .wpc-filters-labels li.wpc-term-item a {
    margin: 0 !important;
}

#filter-actualites .wpc-filters-main-wrap .wpc-filters-labels li.wpc-term-item label {
    padding: 4px 8px !important;
    border: 1px solid #b1b1b1;
    border-radius: .5rem !important;
}

body #filter-actualites .wpc-term-selected .wpc-term-item-content-wrapper input.wpc-label-input:checked+label,
#filter-actualites .wpc-filters-main-wrap .wpc-filters-labels li.wpc-term-item label:hover {
    border-color: transparent !important;
}

#filter-actualites .category-mise-en-avant .wp-block-post-featured-image,
#filter-actualites .category-mise-en-avant .categories-meta,
#filter-actualites .category-mise-en-avant .wp-read-more-container,
#filter-actualites #wpc-term-taxonomy-category-20,
#filter-actualites #wpc-term-taxonomy-category-19 {
    display: none !important;
}

/*Mise en avant*/

#filter-actualites .category-mise-en-avant {
    background: url("../arashsaeidi/assets/images/background-mise-avant-blog.jpg") no-repeat center;
    background-size: cover !important;
    pointer-events: none !important;
    display: flex;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
}

#filter-actualites .category-mise-en-avant > div {
    background: none !important;
    border: 0;
}

#filter-actualites .category-mise-en-avant > div h2 > a {
    color: #ffffff !important;
    text-transform: uppercase;
    font-weight: 900 !important;
    font-size: 2rem;
}

/**
Actions filters
 */

#actions-filter-container {
    width: 100%;
}

#actions-filter-container .wpc-filters-main-wrap {
    padding: 28px;
}

#actions-filter-container .wpc-filter-title {
    font-size: 14px;
    font-weight: 600;
}

#actions-filter-container .wpc-filters-labels {
    margin-top: 0;
}

#actions-filter-container .wpc-filters-labels .wpc-term-item-content-wrapper > label {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
}

#actions-filter-container .wpc-filters-main-wrap input.wpc-label-input+label span.wpc-filter-label-wrapper,
#actions-filter-container .wpc-filters-main-wrap input.wpc-label-input:checked+label span.wpc-filter-label-wrapper {
    background: transparent !important;
}

#actions-filter-container .wpc-filters-main-wrap input.wpc-label-input:checked+label span.wpc-filter-label-wrapper > a {
    color: #ffffff !important;
}

#actions-filter-container .wpc-filters-labels .wpc-term-selected .wpc-term-item-content-wrapper > label,
#actions-filter-container .wpc-filters-labels .wpc-term-item-content-wrapper > label:hover {
    background: #440A8A;
    border: 1px solid #7B3ED5;
}

#actions-filter-container .wpc-filters-labels .wpc-term-item-content-wrapper > label:hover > span > a {
    color: #ffffff;
}

#actions-filter-container .wpc-filters-labels .wpc-term-item-content-wrapper > label > span {
    padding: 0;
}

#actions-filter-container .wpc-filters-labels .wpc-term-item-content-wrapper > label > span > a {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
}

#actions-filter-container .wpc-filters-widget-content .wpc-filters-section .wpc-filter-search-form .wpc-search-field {
    border-radius: 50px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-family: "Jost", sans-serif;
}

#actions-filter-container .wpc-filters-widget-content .wpc-filter-thematique .wpc-filters-widget-select:focus-visible,
#actions-filter-container .wpc-filters-widget-content .wpc-filters-section .wpc-filter-search-form .wpc-search-field:focus {
    outline-color: var(--wp--preset--color--contrast);
    outline-width: 1px;
}

#actions-filter-container .wpc-filters-widget-content .wpc-filter-thematique .wpc-filters-widget-select {
    border-radius: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
}

#actions-filter-container > .widget::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: .5rem;
    padding: 2px;
    background: var(--wp--preset--gradient--gradient-2);
    -webkit-mask: linear-gradient(white 0 0) content-box, linear-gradient(white 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

#actions-filter-container #wpc-term-taxonomy-type_action-12 > .wpc-term-item-content-wrapper > label::before,
#actions-filter-container #wpc-term-taxonomy-type_action-13 > .wpc-term-item-content-wrapper > label::before,
#actions-filter-container #wpc-term-taxonomy-type_action-14 > .wpc-term-item-content-wrapper > label::before,
#actions-filter-container #wpc-term-taxonomy-type_action-15 > .wpc-term-item-content-wrapper > label::before
{
    content: '';
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

/**Vote*/
#actions-filter-container #wpc-term-taxonomy-type_action-12 > .wpc-term-item-content-wrapper > label::before {
    background-image: url('../arashsaeidi/assets/icons/vote.svg');
}

/**Prise de parole*/
#actions-filter-container #wpc-term-taxonomy-type_action-13 > .wpc-term-item-content-wrapper > label::before {
    background-image: url('../arashsaeidi/assets/icons/prise-de-parole.svg');
}

/**Questions*/
#actions-filter-container #wpc-term-taxonomy-type_action-14 > .wpc-term-item-content-wrapper > label::before {
    background-image: url('../arashsaeidi/assets/icons/amendements.svg');
}

/**Votes*/
#actions-filter-container #wpc-term-taxonomy-type_action-15 > .wpc-term-item-content-wrapper > label::before {
    background-image: url('../arashsaeidi/assets/icons/questions.svg');
}

#actions-filter-container .wpc-filters-labels .wpc-term-selected .wpc-term-item-content-wrapper > label::before,
#actions-filter-container #wpc-term-taxonomy-type_action-12 > .wpc-term-item-content-wrapper > label:hover::before {
    filter: invert();
}

#actions-filter-container .wpc-filter-layout-submit-button {
    flex-direction: row;
    justify-content: start !important;
}

#actions-filter-container .wpc-filters-main-wrap .wpc-filters-widget-controls-container a.wpc-filters-apply-button, body .wpc-filters-main-wrap a {
    width: auto !important;
}

#actions-filter-container .wpc-filters-main-wrap .wpc-filters-widget-controls-container a.wpc-filters-apply-button, body .wpc-filters-main-wrap a.wpc-filters-reset-button {
    border: 0 !important;
}

#actions-filter-container .wpc-filters-main-wrap .wpc-filters-widget-controls-container a.wpc-filters-apply-button, body .wpc-filters-main-wrap a.wpc-filters-reset-button:hover {
    text-decoration: underline;
}

#actions-filter-container .wpc-filters-main-wrap a.wpc-filters-submit-button {
    color: #fff;
    border-radius: 8px;
}

/**
Actions parlementaires
 */

.explain-vote-container {
    position: relative;
}

.explain-vote-container .explain-vote-child {
    background: #fff;
    padding: 2.5em;
}

.explain-vote-container .explain-vote-child .explain-vote-title {
    font-weight: 600;
    font-size: 1.5rem;
    margin-top: 0;
}

.explain-vote-container .explain-vote-child .explain-vote-content {
    margin-bottom: 0;
}

/**
Buttons
 */

.wp-block-button:not(.is-style-outline) > .wp-block-button__link {
    background: var(--wp--preset--gradient--gradient-1);
}

/**
Buttons outline
 */

#actions-filter-container > .widget,
.wpc-term-item-content-wrapper label,
.wp-block-post .wp-read-more-container,
.wp-block-button.is-style-outline {
    position: relative;
    border-radius: .5rem;
    background: #fff;
    transition: background 200ms ease-in-out;
}

#filter-actualites .wpc-term-item-content-wrapper label:hover::before,
#filter-actualites .wpc-term-selected .wpc-term-item-content-wrapper label::before,
.explain-vote-container .explain-vote-child::before,
.wp-block-post .wp-read-more-container::before,
.wp-block-button.is-style-outline::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: .5rem;
    padding: 2px;
    background: var(--wp--preset--gradient--gradient-1);
    -webkit-mask: linear-gradient(white 0 0) content-box, linear-gradient(white 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.newsletter-link > a,
#actions-filter-container .wpc-filters-main-wrap a.wpc-filters-submit-button,
.wp-block-post .wp-read-more-container:hover,
.wp-block-button.is-style-outline:hover {
    background: var(--wp--preset--gradient--gradient-1);
}

#filter-actualites .wpc-term-item-content-wrapper label:hover .wpc-filter-label-wrapper,
#filter-actualites .wpc-term-selected .wpc-term-item-content-wrapper .wpc-filter-label-wrapper,
header nav.wp-block-navigation .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__label,
body.post-type-archive-action_parlementaire .menu-au-parlement .wp-block-navigation-item__label,
.explain-vote-container .explain-vote-child .explain-vote-title,
.wp-block-post .wp-read-more-container > .wp-block-read-more,
.wp-block-button.is-style-outline > .wp-block-button__link {
    background: var(--wp--preset--gradient--gradient-1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wp-block-post .wp-read-more-container:hover > .wp-block-read-more,
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color, .has-background):hover,
.wp-block-button.is-style-outline:hover > .wp-block-button__link {
    background-color: transparent !important;
    color: var(--wp--preset--color--white) !important;
    border-color: transparent !important;
    background-clip: initial;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
}