/*
Theme Name: Theme I - Ithaca
Author: Bayard-Service
Author URI: https://www.bayard-service.com
Description: A child theme for bsw-aster.
Text Domain: aster
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.0
Version: 1.4.15
Template: bsw-aster
*/

/* *****************************
----------------------------
	= LAYOUT
----------------------------
***************************** */

/* ----------------------------
	== HEADER
---------------------------- */
.site-header {
    margin-block-start: 0;
}
section.site-header {
    position: fixed;
    top: -300px;
    left: 0;
    right: 0;
    z-index: 20;
    transition: all .5s;
}
.admin-bar section.site-header {
    top: -300px;
    padding-top: 32px;
}
.site-header > div:first-child {
    position: relative;
    padding-bottom: 3vw;
    background: none !important;
}
.home header.site-header > div:first-child {
    padding-bottom: 0;
}
.site-header > div::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3vw), 0% 100%);
}
.home header.site-header > div::after {
    bottom: auto;
    height: 40vw;
    max-height: 500px;
}
.site-header > div.has-primary-to-secondary-gradient-background::after {
    background: var(--wp--preset--gradient--primary-to-secondary);
}
.site-header > div * {
    position: relative;
    z-index: 2;
}
.site-header > div .wp-block-group {
    flex: 1;
    width: 100%;
}
@media only screen and (max-width: 800px) {
    .wp-block-site-title a {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        width: 90vw;
    }
}

/*
 	MAIN NAV
*/
.main-nav .wp-block-page-list {
    gap: 2vw;
}
.main-nav .wp-block-page-list > li + li {
    margin-block-start: 0 !important;
}
.bs-small-nav .main-nav {
    display: none !important;
}
.main-nav.accent a:hover {
    color: var(--wp--preset--color--accent) !important;
}

/* NAV */
.block-popins .pop-nav button {
    display: none;
}
.block-popins .pop-nav > ul {
    gap: 10px;
}
.block-popins .pop-nav li {
    flex-direction: column;
    text-align: center;
}
.block-popins .pop-nav > ul > li::before {
    content: "";
    display: block;
    margin: 20px auto;
    width: 100px;
    height: 1px;
    background: var(--wp--preset--color--white);
}
.block-popins .pop-nav > ul > li > a {
    font-weight: 700 !important;
}
.block-popins .pop-nav ul {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    flex-direction: column !important;
    justify-content: center;
    row-gap: 0 !important;
    column-gap: 10px !important;
    height: auto !important;
    width: auto !important;
    background: none !important;
    border: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.block-popins .pop-nav li li a {
    padding: 0 !important;
    color: var(--wp--preset--color--secondary) !important;
}
.block-popins .pop-nav a:hover {
    color: var(--wp--preset--color--accent) !important;
}
@media only screen and (min-width: 1024px) {
    .block-popins {
        left: 50%;
    }
}

/*
    BUTTONS
*/
.site-header .wp-block-buttons .is-style-outline a {
    padding: 10px 5px !important;
}
.site-header .wp-block-button.is-style-outline a:hover,
.site-header .wp-block-button.is-style-outline a:focus {
    color: var(--wp--preset--color--accent) !important;
}
.bt-popin a {
    font-family: theme-i;
}
.bt-popin#pop-nav {
    display: none;
}
.bs-small-nav .bt-popin#pop-nav {
    display: block;
}
@media only screen and (max-width: 1024px) {
    .bt-popin#pop-nav {
        display: block;
    }
}

@media only screen and (min-width: 1024px) {
    .wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
        left: 100% !important;
    }
}

/*
    BLOCK POPIN
*/
.block-popins::before {
    content: "\e935";
    font-family: theme-i;
    cursor: pointer;
    color: var(--wp--preset--color--white);
}
.block-popins .pop-nav {
    display: none !important;
}
.block-popins .pop-nav.actif {
    display: block !important;
}

/* ----------------------------
	== BSW MENU RESPONSIVE
---------------------------- */
.bs-small-nav .bs-nav-responsive {
    display: none;
}
header:not(.bs-small-nav) .bs-burger {
    display: none;
}
.bs-burger {
    justify-content: end !important;
}

@media only screen and (max-width: 1024px) {
    .bs-burger,
    .bs-nav-responsive {
        flex-grow: initial !important;
    }
}

/* ----------------------------
	== FOOTER
---------------------------- */
.site-footer {
    margin: 0;
}
@media only screen and (max-width: 800px) {
    .site-footer .wp-block-group {
        flex-direction: column;
    }
}

/*
	SOCIAL
*/
.bs-social {
    width: 100%;
    max-width: 33%;
}
@media only screen and (max-width: 800px) {
    .bs-social {
        max-width: none;
    }
}

/*
	CONTACTS
*/
.bs-contacts {
    flex: 1;
}

/* ----------------------------
	== MAIN
---------------------------- */
main {
    padding: 0 var(--wp--preset--spacing--window) var(--wp--preset--spacing--window) !important;
}

/*
	BREADCRUMBS
*/
@media only screen and (max-width: 800px) {
    .yoast-breadcrumbs > a::before {
        content: "\e936";
        margin: 0 5px 0 0;
        font-family: theme-i;
    }
}

/* *****************************
----------------------------
	= COMPONENTS
----------------------------
***************************** */

/* ----------------------------
	== RSS
---------------------------- */
.wp-block-rss li + li {
    margin-top: 10px;
}

/* ----------------------------
	== EXERPT
---------------------------- */
.wp-block-post-excerpt__more-text {
    margin-block-start: 0;
}
.wp-block-post-excerpt__more-text a {
    text-decoration: underline;
}

/* ----------------------------
	== BUTTONS
---------------------------- */
.is-style-aster-simple-button .wp-block-button__link {
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 1 !important;
    line-height: 1;
}
.is-style-aster-simple-button .wp-block-button__link::after {
    content: "\e937";
    font-family: theme-i;
    font-size: 0.9rem;
}

/* ----------------------------
	== QUERY LOOP
---------------------------- */
.wp-block-query {
    position: relative;
}
.wp-block-query > ul.is-layout-grid {
    padding-bottom: var(--wp--preset--spacing--text) !important;
}
.wp-block-query > ul.is-layout-grid > li {
    z-index: 2;
    border-radius: var(--wp--custom--border-radius);
    min-height: 100px;
    overflow: hidden;
    background: var(--wp--preset--color--current);
}
.wp-block-query ul.is-layout-grid .wp-block-post-excerpt {
    margin: 0;
    padding: var(--wp--preset--spacing--text);
}
.wp-block-query ul.is-layout-grid h2,
.wp-block-query ul.is-layout-grid h3 {
    width: 100%;
    height: 100%;
}
.wp-block-query ul.is-layout-grid h2 a,
.wp-block-query ul.is-layout-grid h3 a {
    position: relative;
    display: flex;
    padding: 10px 20px;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: flex-end;
    color: var(--wp--preset--color--white) !important;
}
.wp-block-query:not(.bs-editorial)::after {
    content: "";
    position: absolute;
    right: calc(50% - 50vw);
    left: calc(50% - 50vw);
    bottom: 0;
    z-index: 0;
    height: 90%;
    min-height: 250px;
    max-height: 540px;
    background: var(--wp--preset--gradient--secondary-to-primary);
    clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0% 100%);
}
.wp-block-query ul.is-layout-grid figure + h2,
.wp-block-query ul.is-layout-grid figure + h3 {
    position: absolute !important;
    top: 0;
    left: 0;
    z-index: 2;
}
.wp-block-query ul.is-layout-grid li h2::before,
.wp-block-query ul.is-layout-grid li h3::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 50%);
}


/* ----------------------------
	== GALLERY
---------------------------- */
.wp-block-gallery figcaption {
    border-radius: 0 0 var(--wp--custom--border-radius) var(--wp--custom--border-radius);
}

/* *****************************
----------------------------
	= PATERNS - TEMPLATES PART
----------------------------
***************************** */

/* ----------------------------
	== POST LIST GRID
---------------------------- */
.home main .is-style-aster-grille,
.blog main .is-style-aster-grille,
.search-results main .is-style-aster-grille,
.page-template-summary-page main .is-style-aster-grille {
    position: relative;
}
.home main .is-style-aster-grille::after,
.blog main .is-style-aster-grille::after,
.search-results main .is-style-aster-grille::after,
.page-template-summary-page main .is-style-aster-grille::after {
    content: "";
    position: absolute;
    right: calc(50% - 50vw);
    left: calc(50% - 50vw);
    bottom: 0;
    z-index: 0;
    height: 90%;
    min-height: 250px;
    max-height: 540px;
    background: var(--wp--preset--gradient--secondary-to-primary);
    clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0% 100%);
}
.is-style-aster-grille > ul {
    padding-bottom: var(--wp--preset--spacing--text) !important;
}
.is-style-aster-grille > ul > li {
    z-index: 2;
    border-radius: var(--wp--custom--border-radius);
    min-height: 100px;
    overflow: hidden;
}
.is-style-aster-grille h2,
.is-style-aster-grille h3 {
    width: 100%;
    height: 100%;
}
.is-style-aster-grille figure + h2,
.is-style-aster-grille figure + h3 {
    position: absolute !important;
    top: 0;
    left: 0;
    z-index: 2;
}
.is-style-aster-grille li h2::before,
.is-style-aster-grille li h3::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 50%);
}
.is-style-aster-grille h2 a,
.is-style-aster-grille h3 a {
    position: relative;
    display: flex;
    padding: 10px 20px;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: flex-end;
    color: var(--wp--preset--color--white);
}

/* ----------------------------
	== NEXT PREV
---------------------------- */
.next-prev .post-navigation-link-next a::before {
    content: "\e937";
    font-family: theme-i;
}
.next-prev .post-navigation-link-previous a::before {
    content: "\e936";
    font-family: theme-i;
}
.next-prev.toosmall {
    justify-content: space-between;
    max-width: var(--wp--style--global--wide-size);
    gap: 10px;
    width: 100%;
}

/* ----------------------------
	== BLOCKS FOND COLORES AVEC PADDING
---------------------------- */
.has-secondary-background-color,
.has-primary-background-color {
    padding: var(--wp--preset--spacing--text) !important;
    border-radius: 10px;
}

/* ----------------------------
	== EDITORIAL
---------------------------- */
.bs-editorial {
    position: relative;
}
.bs-editorial figure {
    position: relative;
    margin-block-end: 0;
    border-radius: var(--wp--custom--border-radius);
    overflow: hidden;
}
.bs-editorial figure::before {
    content: "";
    display: block;
    padding-top: 60%;
}
.bs-editorial figure img,
.bs-editorial figure video {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.3);
}
.bs-editorial .wp-block-group {
    gap: 0;
    padding: var(--wp--preset--spacing--text);
    width: 100%;
    max-width: var(--wp--style--global--content-size);
    border-radius: var(--wp--custom--border-radius);
    overflow: hidden;
}
.bs-editorial .wp-block-group > * {
    position: relative;
    z-index: 1;
}
@media only screen and (min-width: 800px) {
    .bs-editorial {
        padding-bottom: var(--wp--preset--spacing--current);
    }
    .bs-editorial .wp-block-group {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 50%);
        background: none !important;
    }
    .bs-editorial .wp-block-group::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 1;
        opacity: 0.95;
    }
    .bs-editorial figure::before {
        padding-top: 30%;
    }
    .bs-editorial .wp-block-group.has-primary-background-color::before {
        background: var(--wp--preset--color--primary);
    }
    .bs-editorial .wp-block-group.has-secondary-background-color::before {
        background: var(--wp--preset--color--secondary);
    }
    .bs-editorial .wp-block-group.has-accent-background-color::before {
        background: var(--wp--preset--color--accent);
    }
    .bs-editorial .wp-block-group.has-current-background-color::before {
        background: var(--wp--preset--color--current);
    }
    .bs-editorial .wp-block-group.has-white-background-color::before {
        background: var(--wp--preset--color--white);
    }
}


/* ----------------------------
	== QUICKACCES
---------------------------- */
.bs-quick-access {
    margin-block-start: var(--wp--preset--spacing--current) !important;
    padding: var(--wp--preset--spacing--text) 0 var(--wp--preset--spacing--window);
}
ul.bs-quick-access {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--current);
    list-style: none;
}
.bs-quick-access [class^="icon-"]::before,
.bs-quick-access [class*="icon-"]::before {
    display: block;
    margin: 0 0 10px;
    text-align: center;
    font-size: 4rem;
    color: var(--wp--preset--color--secondary);
}
.bs-quick-access [class^="icon-"]::after,
.bs-quick-access [class*="icon-"]::after {
    right: 0;
    text-align: center;
    font-size: 4rem;
}
.bs-quick-access p {
    margin-block-start: 10px;
    line-height: 1.2;
}
.bs-quick-access .wp-block-buttons {
    margin-block-start: 10px 15px 5px !important;
}
.bs-quick-access a {
    padding: 5px 15px !important;
}

@media only screen and (max-width: 1150px) and (min-width: 800px) {
    .bs-quick-access {
        flex-wrap: wrap !important;
    }
    .bs-quick-access .wp-block-column {
        flex-basis: initial !important;
        width: 40% !important;
    }
}

@media only screen and (max-width: 800px) {
    .bs-quick-access li {
        flex: none;
        width: calc(50% - (var(--wp--preset--spacing--current) / 2));
    }
}

/* ----------------------------
	== RSS
---------------------------- */
.bs-rss {
    padding-top: var(--wp--preset--spacing--window);
    margin: 0;
    gap: var(--wp--preset--spacing--window);
}

@media only screen and (max-width: 800px) {
    .bs-rss {
        flex-direction: column;
    }
}

/* ----------------------------
	== NEWS
---------------------------- */
.bs-news {
    padding-bottom: var(--wp--preset--spacing--text);
}
.bs-news .wp-block-buttons {
    position: relative;
    z-index: 2;
    margin-block-start: 0;
}
.bs-news .wp-block-buttons a {
    color: var(--wp--preset--color--white);
}

/* *****************************
----------------------------
	= HOME PAGE
----------------------------
***************************** */

/* ----------------------------
	== xxx
---------------------------- */

