/*
Theme Name: Thème G - Guadalupe
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.1.4
Template: bsw-aster
*/

/* *****************************
----------------------------
	= LAYOUT
----------------------------
***************************** */
.wp-site-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--window);
    padding: var(--wp--preset--spacing--window) var(--wp--preset--spacing--window) 0;
}

/* ----------------------------
	== HEADER
---------------------------- */
.site-header {
    align-self: flex-start;
    width: 100%;
}
.site-header.is-style-aster-sticky {
    top: var(--wp--preset--spacing--window);
}
.site-header > div {
    padding: 0;
}
.site-header .wp-block-buttons {
    position: fixed;
    bottom: var(--wp--preset--spacing--window);
    left: var(--wp--preset--spacing--window);
    right: var(--wp--preset--spacing--window);
    z-index: 20;
}
@media only screen and (min-width: 1000px) {
    .site-header {
        width: 20vw;
        min-width: 200px;
    }
    .site-header .wp-block-buttons {
        display: none;
    }
}
@media only screen and (max-width: 800px) {
    .site-header .wp-block-site-logo img {
        height: 20vh;
        object-fit: contain;
    }
}

/*
	MAIN NAVIGATION
*/
.main-nav .wp-block-page-list > li {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: baseline;
}
.main-nav .wp-block-page-list > li > a {
    position: relative;
    padding: 0 0 0 25px;
}
.main-nav .wp-block-page-list > li.current-menu-item > a,
.main-nav .wp-block-page-list > li.current-menu-ancestor > a {
    color: var(--wp--preset--color--current);
}
.main-nav .wp-block-page-list > li > a::before {
    content: "\e91a";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    padding: 0 10px 0 0;
    font-family: icons;
    font-size: 80%;
    transition: all .5s;
}
.main-nav .wp-block-page-list > li > a:hover::before,
.main-nav .wp-block-page-list > li > a:focus::before {
    padding: 0 3px 0 7px;
}
.main-nav .wp-block-page-list > li.current-menu-item.has-child > a::before,
.main-nav .wp-block-page-list > li.current-menu-ancestor > a::before {
    transform: rotate(90deg) translate(-75%, 0);
    padding: 0;
}
.main-nav .wp-block-page-list > li > button {
    display: none !important;
}
@media only screen and (max-width: 1000px) {
    .main-nav:not(.actif) {
        display: none;
    }
}

/* SUB NAV */
.main-nav .has-child .wp-block-navigation__submenu-container {
    display: none;
    position: relative;
    left: 8px;
    top: auto;
    padding: 0 0 0 17px;
    width: auto;
    height: auto;
    border: none;
    border-left: 1px solid var(--wp--preset--color--current);
    opacity: 1;
    visibility: visible;
}
.main-nav .has-child .wp-block-navigation__submenu-container a {
    padding: 5px 0;
}
.main-nav .has-child .wp-block-navigation__submenu-container a:hover,
.main-nav .has-child .wp-block-navigation__submenu-container  a:focus {
    color: var(--wp--preset--color--current) !important;
}
.main-nav .wp-block-page-list > li.current-menu-item.has-child .wp-block-navigation__submenu-container,
.main-nav .wp-block-page-list > li.current-menu-ancestor .wp-block-navigation__submenu-container {
    display: block;
}

/*
    BLOCK POPIN
*/
.block-popins::before {
    content: "\e91b";
    font-family: icons;
}
.block-popins > * {
    margin: 0;
}
@media only screen and (min-width: 1000px) {
    .block-popins {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        display: block;
        margin-block-start: 0 !important;
        padding-bottom: var(--wp--preset--spacing--window) !important;
        opacity: 1;
        visibility: visible;
    }
    .block-popins::before {
        display: none;
    }
    .block-popins > * {
        display: block;
        padding: var(--wp--preset--spacing--current) 0 0;
    }

}

/* ----------------------------
	== FOOTER
---------------------------- */
.site-footer {
    margin: 0 calc(var(--wp--preset--spacing--window) * -1);
    width: 100vw;
}
.site-footer > div {
    padding: 0;
}
.site-footer > div > * {
    margin: 0;
}
.site-footer .bs-infocontact {
    border-bottom: 1px solid var(--wp--preset--color--white);
    padding: var(--wp--preset--spacing--text);
}
.site-footer .bs-infocontact a {
    text-decoration: underline;
}
.site-footer .bs-navfooter {
    padding: 10px;
}
@media only screen and (max-width: 800px) {
    .site-footer nav ul,
    .site-footer .alignfull {
        flex-direction: column;
    }
    .site-footer .bs-navfooter {
        padding: var(--wp--preset--spacing--text) 0 calc(var(--wp--preset--spacing--text) *3);
    }
}

/* ----------------------------
	== MAIN
---------------------------- */
main {
    flex: 1;
    margin-block-start: 0;
    padding: var(--wp--preset--spacing--window) !important;
}
main > .wp-block-cover {
    margin: calc(var(--wp--preset--spacing--window) * -1) calc(var(--wp--preset--spacing--window) * -1) 0 !important;
}

@media only screen and (min-width: 1030px) {
    main {
        margin: calc(-1*var(--wp--preset--spacing--window)) 0 0 0 !important;
    }
}

/*
	BREADCRUMBS
*/
.wp-block-wpseopress-breadcrumbs a,
.wp-block-wpseopress-breadcrumbs li::after,
.wp-block-wpseopress-breadcrumbs li > span {
    opacity: 1;
}

@media only screen and (max-width: 800px) {
    .wp-block-wpseopress-breadcrumbs li.breadcrumb-item:nth-last-child(2) a::before {
        content: "\e919";
        margin-right: 5px;
        font-family: icons;
        font-size: 80%;
    }
}

/*
    CONTENT
*/
.entry-content {
    margin-block-start: var(--wp--preset--spacing--window);
}
.home .entry-content {
    position: relative;
    margin: calc(var(--wp--preset--spacing--window) * -1) calc(var(--wp--preset--spacing--window) * -1) 0;
}
.home .entry-content * {
    margin-block-start: 0;
    margin: 0;
}
.home .entry-content .wp-block-buttons {
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--wp--preset--spacing--current);
    z-index: 2;
}

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

/* ----------------------------
	== SEARCH
---------------------------- */
.wp-block-search__inside-wrapper {
    border-width: 0 0 2px 0;
    border-radius: 0;
}
.wp-block-search__inside-wrapper .wp-block-search__input {
    padding-left: 0;
    font-weight: 600;
}
.wp-block-search__button {
    padding: 0;
    background: none;
    color: var(--wp--preset--color--primary);
}
.wp-block-search__button svg {
    display: none;
}
.wp-block-search__button::before {
    content: "\e91a";
    font-family: icons;
    font-size: 80%;
    transition: all .5s;
}

/* ----------------------------
	== LIST EVENT
---------------------------- */
.wp-block-bsw-event-list {
    text-align: center;
}
.wp-block-bsw-event-list a {
    color: var(--wp--preset--color--primary);
}
.wp-block-bsw-event-list .bsw-event-date {
    margin: 0;
    line-height: 1;
    font-size: var(--wp--preset--font-size--small);
}

/* ----------------------------
	== LIST
---------------------------- */
.bs-quick-access {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0;
    max-width: none;
    list-style: none;
}
main .bs-quick-access {
    margin: 0 calc(var(--wp--preset--spacing--window) * -1) !important;
}
.bs-quick-access li {
    flex: 1;
    position: relative;
    text-align: center;
    line-height: 1;
}
.bs-quick-access li + li {
    border-left: 1px solid var(--wp--preset--color--white);
}
.bs-quick-access li::before {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 0 10px;
    padding: var(--wp--preset--spacing--window) 0 0;
    text-align: center;
    font-size: 4rem;
}
.bs-quick-access li::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 0;
    background: var(--wp--preset--color--current);
    opacity: 0;
    transition: all .5s;
}
.bs-quick-access li:hover::after {
    opacity: 0.1;
}
.bs-quick-access li a {
    display: block;
    padding: 0 var(--wp--preset--spacing--window) var(--wp--preset--spacing--window);
    line-height: 1;
}
.bs-quick-access li a::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 2;
}
@media only screen and (max-width: 800px) {
    .bs-quick-access li {
        width: 50%;
        flex: initial;
    }
    .bs-quick-access li::before {
        font-size: 2rem;
    }
    .bs-quick-access li + li {
        border-left: 1px solid var(--wp--preset--color--white);
        border-top: 1px solid var(--wp--preset--color--white);
    }
    .bs-quick-access li:nth-child(3) {
        border-left: none;
    }
    .bs-quick-access li:nth-child(2) {
        border-top: none;
    }
    .bs-quick-access li a {
        font-size: var(--wp--preset--font-size--small);
        overflow: hidden;
        text-overflow: ellipsis;
    }
}


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


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

/* ----------------------------
	== POST LIST GRID
---------------------------- */
.is-style-aster-grille .columns-4 li {
    width: calc(25% - (var(--wp--preset--spacing--text) * 3 / 4));
}
.is-style-aster-grille figure {
    margin-bottom: 10px;
}
.is-style-aster-grille .wp-block-post-excerpt {
    margin: 10px 0 0;
}
.is-style-aster-slider-images figure::before {
    padding-top: 70%;
}
@media only screen and (max-width: 800px) {
    .is-style-aster-grille .columns-4 li {
        width: 100%;
    }
}

/* ----------------------------
	== NEXT PREV
---------------------------- */
.next-prev {
    margin-block-start: var(--wp--preset--spacing--window) !important;
}
.next-prev .post-navigation-link-previous a::before {
    content: "\e919";
    font-family: icons;
    font-size: 80%;
}
.next-prev .post-navigation-link-next a::before {
    content: "\e91a";
    font-family: icons;
    font-size: 80%;
}

/* ----------------------------
	== NEWS & CALENDAR
---------------------------- */
.bs-news {
    margin-block-start: 0;
    padding: var(--wp--preset--spacing--current) 0 0;
}
.bs-calendar {
    margin-block-start: var(--wp--preset--spacing--current);
    padding: var(--wp--preset--spacing--current) 0 0;
    border-top: 2px solid var(--wp--preset--color--white);
}

/* ----------------------------
	== EDITORIAL
---------------------------- */
.bs-editorial {
    margin-block-start: var(--wp--preset--spacing--current);
    padding: 0 0 var(--wp--preset--spacing--current) var(--wp--preset--spacing--text);
}
.bs-editorial::before {
    content: "\e918";
    display: block;
    font-family: icons;
    font-size: 2rem;
    color: var(--wp--preset--color--primary);
}
.bs-editorial div {
    position: relative;
    margin: 0 0 0 var(--wp--preset--spacing--text);
}
.bs-editorial .wp-block-post-excerpt__more-text {
    margin: 0;
    text-indent: -5000px;
}
.bs-editorial .wp-block-post-excerpt__more-text a::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}

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

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

