/**
Theme Name: BTS By Charlotte
Author: Cédric Coustellié - PlanèteWP
Author URI: https://planetewp.com
Description: Thème custom pour le site BTS By Charlotte.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bts-by-charlotte
Template: kadence
*/

/* Sub Banner Home */

.wp-block-columns.alignfull .wp-block-column {
    width: 90%;
    max-width: var(--global-content-width); /* Kadence Customizer Option */
    margin-left: auto;
    margin-right: auto;
}

.sub-banner {
    position: relative;
    z-index: 1;
}

.banner-home-interview .wp-block-query {
    position: relative;
}

.banner-home-interview .wp-block-query:nth-child(1):after {
    content: "";
    position: absolute;
    top: -6em;
    right: 6em;
    width: 220px;
    height: 160px;
    background: url('/wp-content/themes/bts-by-charlotte/assets/img/icone-les-coulisses-du-moment-bts-by-charlotte.svg') no-repeat center;
    background-size: contain;
}

.banner-home-interview .wp-block-query:nth-of-type(2):after {
    display: none!important;
}

/* Légendes */

.blocks-gallery-caption figcaption, .wp-block-embed figcaption, .wp-block-image figcaption, .wp-block-table figcaption, .wp-block-audio figcaption, .wp-block-video figcaption {
    color: black;
}

/* Citations */

blockquote {
    position: relative;
}

blockquote cite, blockquote .wp-block-pullquote__citation {
    color: black;
    font-size: 16px;
    margin-top: 0.5em;
    position: relative;
    font-style: normal;
    text-transform: uppercase;
    font-weight: 600;
}

blockquote:after {
    content: "";
    position: absolute;
    bottom: -5em;
    left: 4em;
    width: 110px;
    height: 110px;
    transform: rotate(-20deg);
    background: url(/wp-content/themes/bts-by-charlotte/assets/img/icone-emoji-sticker-bts-by-charlotte.svg) no-repeat center;
    background-size: contain;
}

/* Custom Shortcode Terms */

.taxonomies-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

.taxonomy-item {
    display: inline-block;
    color: black;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--global-palette8);
    border-radius: 5px;
    transition: .2s;
}

.taxonomy-item a {
    display: block;
    color: black!important;
    text-decoration: none;
    padding: 0.3em 1em 0.2em;
}

.taxonomy-item:hover {
    background-color: black!important;
    transition: .3s;
}

.taxonomy-item:hover a {
    color: white!important;
}

/* Archives */

body.archive .content-area {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

body.archive article h2 {
    font-size: 1.3em;
    line-height: 1.2;
}

body.archive a.post-more-link:hover {
    color: var(--global-palette8);
}

body.archive .more-link-wrap {
    margin-top: 0;
}

a.post-more-link {
    letter-spacing: normal;
    font-size: 1em!important;
    text-transform: none!important;
    font-size: 0.9em;
}

.wp-block-post div.wp-block-group {
    height: 100%;
}

.wp-block-post-excerpt__more-link,
.post-more-link {
    position: relative;
    padding-left: 1.5em;
    color: var(--global-palette8)!important;
    text-decoration: none;
}

.wp-block-post-excerpt__more-link:hover,
.post-more-link:hover {
    text-decoration: underline;
}

.wp-block-post-excerpt__more-link:before,
.post-more-link:before {
    content: url('/wp-content/themes/bts-by-charlotte/assets/img/icone-flash-bts-by-charlotte.svg');
    position: absolute;
    left: 0rem;
    top: 3px;
    width: 30px;
    height: 30px;
    /* Filtre pour la couleur #fc73ce */
    filter: brightness(0) saturate(100%) invert(67%) sepia(98%) saturate(1392%) hue-rotate(291deg) brightness(106%) contrast(101%);
}

.wp-block-button__link {
    position: relative;
    padding-left: 2.3em!important;
    text-transform: uppercase;
}

.wp-block-button__link:before {
    content: url('/wp-content/themes/bts-by-charlotte/assets/img/icone-flash-bts-by-charlotte.svg');
    position: absolute;
    left: .5em;
    top: 10px;
    width: 30px;
    height: 30px;
}

.button.button-style-outline:hover, .button.button-style-outline:focus, .button.button-style-outline:active, .wp-block-button.is-style-outline .wp-block-button__link:hover, .wp-block-button.is-style-outline .wp-block-button__link:focus, .wp-block-button.is-style-outline .wp-block-button__link:active, .wp-block-button.is-style-outline .wp-element-button:hover, .wp-block-button.is-style-outline .wp-element-button:focus, .wp-block-button.is-style-outline .wp-element-button:active {
    border: 2px solid var(--global-palette8);
}

.post-more-link:before {
    top: 0;
}

.post-more-link .kadence-svg-iconset {
    display: none;
}

/* Single */

.entry-tags a.tag-link {
    color: black;
}

.entry-tags a.tag-link:hover {
    color: white;
}

body.single main {
    margin-top: 1rem;
    margin-bottom: 3rem;
}

body.single article {
    padding: 2em;
}

body.single article h2 {
    text-transform: none;
    line-height: 1.4;
}

body.single .entry-related-title {
    color: white;
    text-align: center;
}

body.single .entry-related-inner-content {
    padding-top: var(--global-xxl-spacing);
    padding-bottom: var(--global-xxl-spacing);
}

body.single .entry-related article {
    padding: 0;
}

body.single .wp-site-blocks .post-thumbnail {
    padding-bottom: 70%;
}

.comment-form .comment-input-wrap p label, .comment-form p.comment-form-float-label label {
    color: black;
}

.entry-header.page-title h1 {
    color: white;
}

.wp-site-blocks .post-thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center 7%;
}

/* Formulaires */

.nf-form-fields-required {
    font-size: .8em;
    margin-bottom: 1.5em;
    font-style: italic;
}

input[type=submit]:hover {
    background-color: black;
}

input[type=text], input[type=email], input[type=url], input[type=password], input[type=search], input[type=number], input[type=tel], input[type=range], input[type=date], input[type=month], input[type=week], input[type=time], input[type=datetime], input[type=datetime-local], input[type=color], textarea {
    color: black;
}

input[type=text]:focus, input[type=email]:focus, input[type=url]:focus, input[type=password]:focus, input[type=search]:focus, input[type=number]:focus, input[type=tel]:focus, input[type=range]:focus, input[type=date]:focus, input[type=month]:focus, input[type=week]:focus, input[type=time]:focus, input[type=datetime]:focus, input[type=datetime-local]:focus, input[type=color]:focus, textarea:focus {
    color: black;
    font-weight: bold;
}

/* Newsletter */

form[id^="sib_signup_form_"] {
    position: relative;
}

form[id^="sib_signup_form_"]:after {
    content: "";
    position: absolute;
    bottom: -4.5em;
    right: 0.5em;
    width: 90px;
    height: 90px;
    background: url(/wp-content/themes/bts-by-charlotte/assets/img/icone-emoji-sticker-bts-by-charlotte.svg) no-repeat center;
    background-size: contain;
}

.sib_signup_form div[class^="sib_signup_box_inside_"] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 80%;
    margin: 0 auto;
}

.sib_signup_form div[class^="sib_signup_box_inside_"] .sib-email-area {
    flex-basis: 80%;
    min-height: 50px;
}

.sib_signup_form div[class^="sib_signup_box_inside_"] .sib-email-area input {
    width: 100%;
}

.sib-alert-message {
    width: 100%;
 }

input[type="submit"].sib-default-btn {
    min-height: 50px;
    background-color: black;
    border: 2px solid black!important;
}

input[type="submit"].sib-default-btn:hover {
    background-color: var(--global-palette8);
    border: 2px solid black!important;
    color: black;
}

/* Widget & Footer */

.widget-area a:where(:not(.button):not(.wp-block-button__link):not(.wp-element-button)) {
    color: var(--global-palette8);
}

.widget-area a:where(:not(.button):not(.wp-block-button__link):not(.wp-element-button)):hover {
    color: var(--global-palette8);
    opacity: .7;
}

#nav_menu-2 {
    font-size: .8em;
}

#nav_menu-2 ul {
    display: flex;
    gap: 1em;
}

.weglot-lang .nav-drop-title-wrap {
    display: none;
}

.sub-menu .weglot-lang {
    background-color: transparent;
}
.sub-menu .weglot-lang.menu-item-weglot a {
    padding-bottom: 0!important;
    padding-left: 0.8em;
}

.weglot-parent-menu-item.weglot-flags.flag-0>a:before, 
.weglot-parent-menu-item.weglot-flags.flag-0>span:before {
    margin: 0;
}

.header-navigation ul ul.sub-menu.sub-menu-edge {
    right: auto;
}

.header-navigation .header-menu-container ul ul li.menu-item, .header-menu-container ul.menu > li.kadence-menu-mega-enabled > ul > li.menu-item > a {
    border-bottom: 0;
}

/* Responsive */

@media(max-width: 1012px){

    body.home .wp-block-cover {
        padding-top: 6rem!important;
    }

    body.home .wp-block-cover h1 {
        font-size: 1.6rem !important;
        margin-top: 2rem;
    }

    body.home .wp-block-cover .wp-block-group {
        margin-bottom: 2rem!important;
    }

    body.home .wp-block-cover h2 br,
    blockquote.wp-block-quote p br  {
        display: none;
    }

    body.home .taxonomies-list {
        gap: 1em;
    }

    .wp-block-image img {
        width: 100%;
    }

    .sib_signup_form div[class^="sib_signup_box_inside_"] {
        width: 90%;
    }

    .content-area {
        margin-top: 0;
        margin-bottom: 0;
    }

    body.single main {
        margin-top: 0;
        margin-bottom: 0;
    }

    body.single article {
        padding: 2rem 0 0 0;
    }

    body.single article h1 {
        font-size: 2rem;
    }

    .entry-content-wrap {
        padding-top: 0;
        padding-bottom: 0;
    }

    .wp-block-columns.alignfull .wp-block-column {
        padding-left: 1em;
        padding-right: 1em;
    }

    .banner-home-interview .wp-block-query:after {
        top: -10em!important;
        right: 0!important;
    }

    blockquote:after {
        left: 0em;
    }

    .kadence-thumbnail-position-behind {
        margin-bottom: 0;
    }
}

@media(max-width: 980px){
    .wp-block-query ul {
        display: flex;
        flex-direction: column;
    }
}