/*
Theme Name: Thème Ephèse
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.0.6
Template: bsw-aster
*/

/* *****************************
----------------------------
	= LAYOUT
----------------------------
***************************** */
.wp-site-blocks header,
.wp-site-blocks main,
.wp-site-blocks footer {
    margin: 0 auto;
    max-width: calc(1400px + 2*var(--wp--preset--spacing--window)) !important;
}

/* ----------------------------
	== HEADER
---------------------------- */
h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
}

/*
    LOGO
*/
.wp-block-site-logo {
    margin: 0 !important;
}
@media only screen and (max-width: 800px) {
    .wp-block-site-logo {
        max-width: 75px;
    }
}

/*
	MAIN NAVIGATION
*/
.bs-nav {
    border-bottom: 10px solid var(--wp--preset--color--neutral);
}
.wp-block-navigation__responsive-dialog {
    padding: var(--wp--preset--spacing--text);
}
.wp-block-navigation__responsive-container-close {
    right: 10px;
    top: 10px;
}

@media only screen and (min-width: 800px) {
    .main-nav .wp-block-navigation-link {
        border-bottom: 1px solid var(--wp--preset--color--white);
    }
    .main-nav .wp-block-navigation__submenu-container {
        opacity: 0.9 !important;
    }
    .main-nav .wp-block-navigation__submenu-container .wp-block-navigation-link span:hover,
    .main-nav .wp-block-navigation__submenu-container .wp-block-navigation-link a:hover,
    .main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
        color: var(--wp--preset--color--neutral) !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 .wp-block-site-title {
    font-size: 2rem;
}
.site-footer .bs-navfooter,
.site-footer .bs-navfooter ul {
    gap: 0;
}

@media only screen and (max-width: 991px) {
    .site-footer > div > div {
        width: 100%;
    }
    .site-footer .wp-block-site-title,
    .site-footer p {
        text-align: center;
    }
    .site-footer .wp-block-social-links {
        justify-content: center;
    }
    .site-footer ul {
        align-items: center;
    }
    .site-footer .bs-navfooter {
        align-items: center;
    }
}

/* ----------------------------
	== MAIN
---------------------------- */
main {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
body:not(.home) .col-content {
    margin: 0;
    gap: 5px;
}
body:not(.home) .col-content > .wp-block-column:first-child {
    flex: 2;
}
body:not(.home) .col-content .wp-block-column:first-child {
    padding: var(--wp--preset--spacing--text);
}

/*
	BREADCRUMBS
*/
.wp-block-wpseopress-breadcrumbs {
    padding: 5px var(--wp--preset--spacing--text) !important;
}
.wp-block-wpseopress-breadcrumbs nav {
    text-align: left;
}

/*
    CONTENT
*/
.home .entry-content {
    padding: var(--wp--preset--spacing--text);
}

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

/* ----------------------------
	== SEPERATEURS
---------------------------- */
hr {
    height: 10px !important;
    width: 100%;
}

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

/* ----------------------------
	== WITH SIDEBAR
---------------------------- */
.wp-block-columns.with-sidebar {
    margin: 0;
    gap: 5px;
}
.wp-block-columns.with-sidebar .wp-block-column:first-child {
    padding: var(--wp--preset--spacing--text);
}

@media only screen and (min-width: 900px) {
    .wp-block-columns.with-sidebar::before {
        display: none;
    }
}

/*
    SOUS-NAV
*/
.wp-block-bsw-siblings-posts > ul {
    padding-left: var(--wp--preset--spacing--text);
}

/* ----------------------------
	== COL RIGHT
---------------------------- */
.col-right {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
}
.col-right .wp-block-template-part {
    margin: 0;
}
.col-right > div > div {
    width: 100%;
    margin: 0;
    padding: var(--wp--preset--spacing--text);
}
@media only screen and (max-width: 800px) {
    .col-right {
        display: none;
    }
}

/* ----------------------------
	== NEWSLETTER
---------------------------- */
.bs-newsletter > div {
    width: 100%;
    position: relative;
}
.bs-newsletter .acym_module_form {
    display: flex;
}
.bs-newsletter .acym_module_form .acym_form {
    width: 100%;
}
.bs-newsletter .acym_module_form .acym_form input {
    max-width: 100%;
}
.bs-newsletter .acym_module_form .acysubbuttons {
    display: flex;
    justify-content: center;
    position: absolute;
    right: 0;
}
.bs-newsletter .acym_module_form .acysubbuttons input {
    background: none;
    border: none;
}

/* ----------------------------
	== QUICK ACCESS
---------------------------- */
.quick-access p {
    font-family: var(--wp--preset--font-family--current) !important;
    margin-block-start: 10px;
    line-height: 1.2;
    position: relative;
    text-align: center;
}
.quick-access [class^="icon-"]::before,
.quick-access [class*="icon-"]::before {
    display: block;
    margin: 0 0 10px;
    text-align: center;
    font-size: 4rem;
    font-family: theme-e;
    color: var(--wp--preset--color--secondary);
}
.quick-access .wp-block-buttons {
    margin-block-start: 10px 15px 5px !important;
}
.quick-access a::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
}
@media only screen and (max-width: 1150px) and (min-width: 800px) {
    .quick-access {
        flex-wrap: wrap !important;
    }
    .quick-access .wp-block-column {
        flex-basis: initial !important;
        width: 40% !important;
    }
}

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

/* *****************************
----------------------------
	= HOME PAGE
----------------------------
***************************** */
.home main > div {
    gap: 5px;
}
.home .wp-block-columns.col-content .wp-block-column:first-child {
    flex: 2;
}

/* ----------------------------
	== IMG MISE EN AVANT
---------------------------- */
@media only screen and (max-width: 991px) {
    .home .wp-block-post-featured-image,
    .home  .wp-block-post-featured-image > img {
        height: 200px !important;
    }
}

/* ----------------------------
	== SLIDER HOME
---------------------------- */
.bs-sliderhome,
.bs-sliderhome .splide__track {
    max-height: 500px;
}
.bs-sliderhome .entry-content {
    padding: 0 !important;
    max-height: 500px;
}
.bs-sliderhome .entry-content .wp-block-bsw-slider-static img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.bs-sliderhome .entry-content .wp-block-bsw-slider-static .splide__pagination {
    top: 93%;
}

/* ----------------------------
	== ACTUS
---------------------------- */
.bs-actu > ul {
    gap: 5px;
}
.bs-actu .bs-actuinfo {
    padding: calc(var(--wp--preset--spacing--small)/2);
}

/* ----------------------------
	== EVENTS
---------------------------- */
.wp-block-bsw-event-list ul {
    padding: 0;
    list-style: none;
}
.wp-block-bsw-event-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
}
.wp-block-bsw-event-list ul h2 {
    margin: 0;
    font-size: var(--wp--preset--font-size--medium);
}
.wp-block-bsw-event-list .bsw-event-date {
    margin: 0;
}

/* ----------------------------
	== SLOTS
---------------------------- */
.bs-slots > div {
    padding: var(--wp--preset--spacing--text);
    flex: 1;
    gap: 5px;
}

