/*
Theme Name: Thème I - Iconium
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.3.6
Template: bsw-aster
*/

/* *****************************
----------------------------
	= LAYOUT
----------------------------
***************************** */
html {
    scroll-padding-top: 300px;
}
.admin-bar section.site-header {
    top: -300px;
    padding-top: 32px;
}

/* ----------------------------
	== HEADER
---------------------------- */
.site-header:not(.is-style-aster-sticky) {
    margin-block-start: 0 !important;
    position: relative;
}
@media only screen and (max-width: 800px) {
    .site-header {
        position: relative;
    }
    section.site-header {
        position: fixed !important;
        padding: 0 !important;
    }
}

/*
 	MASK
*/
header.site-header > div:first-child::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 100px;
    transform: translateY(50%);
    width: 100%;
    clip-path: ellipse(60% 50% at 50% 50%);
    z-index: -1;
}
.home header.site-header > div:first-child::after {
    height: 200px;
}
header.site-header > div.has-current-background-color::after {
    background: var(--wp--preset--color--current);
}
header.site-header > div.has-primary-background-color::after {
    background: var(--wp--preset--color--primary);
}
header.site-header > div.has-secondary-background-color::after {
    background: var(--wp--preset--color--secondary);
}
header.site-header > div.has-accent-background-color::after {
    background: var(--wp--preset--color--accent);
}

/*
 	HEADER STICKY
*/
section.site-header {
    position: fixed;
    top: -300px;
    left: 0;
    right: 0;
    z-index: 20;
    transition: all .5s;
}
.site-header > div .wp-block-group {
    flex: 1;
    width: 100%;
}
.site-header .wp-block-search__button,
.site-header .wp-block-button__link {
    background-color: var(--wp--preset--color--white);
    padding: 10px 20px;
    border: 3px solid var(--wp--preset--color--white) !important;
}
.site-header .wp-element-button:hover,
.site-header .wp-block-button__link:hover,
.site-header .wp-block-search__button:hover {
    background-color: var(--wp--preset--color--primary) !important;
    color: var(--wp--preset--color--white) !important;
    border: 3px solid var(--wp--preset--color--white) !important;
}
.site-header .wp-block-button.is-style-outline a:hover {
    color: var(--wp--preset--color--accent) !important;
    background: none !important;
}
.site-header .wp-block-navigation a:where(:not(.wp-element-button)):hover {
    color: var(--wp--preset--color--accent) !important;
}

/*
 	RESPONSIVE GENERAL HEADER
*/
@media only screen and (max-width: 1200px) {
    .site-header > div * {
        flex-wrap: nowrap;
    }
}

@media only screen and (max-width: 800px) {
    .site-header .wp-block-search__button,
    .site-header .wp-block-button__link {
        padding: 10px;
    }
    .site-header .wp-block-site-title {
        font-size: 1rem !important;
        width: 100%;
    }
    .site-header .wp-block-site-logo.is-default-size img {
        width: 60px;
    }
    .site-header .bs-btnresp > div {
        gap: 10px;
    }
    .bs-btnstickyleft .wp-block-button__link {
        position: fixed;
        bottom: 0;
        left: 0;
        color: var(--wp--preset--color--white) !important;
        width: 50%;
        background-color: var(--wp--preset--color--primary) !important;
        border: none;
        padding: 15px 0;
        border-radius: 0 !important;
        z-index: 1000;
        font-size: 1.2rem !important;
        border-right: 1px solid var(--wp--preset--color--white);
    }
    .bs-btnstickyright .wp-block-button__link {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 50%;
        color: var(--wp--preset--color--white) !important;
        background-color: var(--wp--preset--color--primary) !important;
        border: none;
        padding: 15px 0;
        border-radius: 0 !important;
        z-index: 1000;
        font-size: 1.2rem !important;
        border-left: 1px solid var(--wp--preset--color--white);
    }
    .bs-btnstickyright .wp-block-button__link:hover,
    .bs-btnstickyleft .wp-block-button__link:hover {
        background: var(--wp--preset--color--primary);
        color: var(--wp--preset--color--white);
    }
}

/*
 	MAIN NAV
*/
.wp-block-navigation__responsive-container.is-menu-open ul:first-child > li > a:first-child {
    font-weight: 800;
    font-family: var(--wp--preset--font-family--title);
    color: var(--wp--preset--color--primary);
}
.wp-block-navigation__responsive-container.is-menu-open li {
    width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open {
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--primary);
    text-align: center;
}

@media only screen and (min-width: 1024px) {
    .wp-block-navigation .has-child:not(.open-on-click) > .wp-block-navigation__submenu-container {
        padding-top: 10px;
        min-width: 200px !important;
        line-height: normal !important;
    }
    .wp-block-navigation .has-child:not(.open-on-click) > .wp-block-navigation__submenu-container > li > ul {
        padding-top: 5px;
        width: max-content !important;
    }
    .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;
    }
}

/*
    BUTTONS
*/
.bt-popin a {
    font-family: "theme-i-1";
}
@media only screen and (min-width: 1180px) {
    .bt-popin#pop-nav {
        display: none;
    }
}

/*
    BLOCK POPIN
*/
.block-popins::before {
    content: "\e939";
    font-family: "theme-i-1";
    cursor: pointer;
}
.block-popins .pop-nav {
    display: none !important;
    align-self: center;
}
.block-popins .pop-nav.actif {
    display: flex !important;
    justify-content: center;
}
.block-popins .main-nav > ul > li > a {
    font-weight: 700 !important;
    font-family: var(--wp--preset--font-family--title);
    font-size: 1.2rem;
}
.block-popins .main-nav li.current-menu-item > a {
    color: var(--wp--preset--color--accent);
}
.block-popins .main-nav > li.has-child {
    margin: 10px 0;
}
.block-popins .main-nav ul {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    row-gap: 0 !important;
    padding: 10px;
    height: auto !important;
    width: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.block-popins li.wp-block-pages-list__item.has-child,
.block-popins li.wp-block-navigation-item.has-child {
    flex-direction: column;
}
.block-popins .wp-block-navigation .wp-block-navigation__submenu-icon {
    display: none;
}
.block-popins .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
    background: var(--wp--preset--color--white) !important;
    border-radius: 10px;
    row-gap: 0 !important;
}
.block-popins .wp-block-navigation .has-child .wp-block-navigation__submenu-container > li > ul {
    display: none !important;
}
.block-popins .main-nav li li a {
    padding: 0 !important;
    text-align: center;
    display: block !important;
    font-size: 1rem;
}

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

@media only screen and (max-width: 1180px) {
    .bs-burger {
        display: none !important;
    }
}

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


/* ----------------------------
	== FOOTER
---------------------------- */
.site-footer a {
    color: var(--wp--preset--color--primary);
    text-decoration: underline;
}
.site-footer a:hover {
    color: var(--wp--preset--color--accent);
}
@media only screen and (max-width: 800px) {
    .site-footer .wp-block-group {
        flex-direction: column;
    }
    .site-footer {
        padding-bottom: var(--wp--preset--spacing--current);
    }
    .site-footer .wp-block-site-logo {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

/*
	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
---------------------------- */
.home main {
    padding: 0 !important;
    display: initial;
}
main {
    margin-block-start: 5vw !important;
    padding: 0 var(--wp--preset--spacing--window) !important;
    margin-block-end: var(--wp--preset--spacing--current);
}
@media only screen and (max-width: 1200px) {
    main {
        display: block;
        margin-block-start: var(--wp--preset--spacing--current) !important;
        padding: var(--wp--preset--spacing--text) !important;
    }
}

/*
	BREADCRUMBS
*/
.breadcrumb a {
    color: var(--wp--preset--color--primary);
}
.breadcrumb li::after {
    font-family: "theme-i-1";
    color: var(--wp--preset--color--primary);
}
.breadcrumb-item.active span {
    font-weight: 800;
    color: var(--wp--preset--color--primary);
}
@media only screen and (max-width: 800px) {
    .wp-block-wpseopress-breadcrumbs li.breadcrumb-item:nth-last-child(2) a::before {
        content: "";
        margin: 0 15px 0 0;
        font-family: "theme-i-1";
    }
}

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

/* ----------------------------
	== BLOCK TEMPLATE PART
---------------------------- */
.wp-block-template-part {
    margin-block-start: 0;
}

/* ----------------------------
	== RSS
---------------------------- */
.bs-rss {
    padding: 0 var(--wp--preset--spacing--window) var(--wp--preset--spacing--window) !important;
}
.wp-block-rss li + li {
    margin-top: 10px;
}

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

/* ----------------------------
	== SPACER
---------------------------- */
@media only screen and (max-width: 800px) {
    .wp-block-spacer {
        margin-top: 0;
    }
}

/* ----------------------------
	== BUTTONS
---------------------------- */
.is-style-aster-simple-button .wp-block-button__link {
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 1 !important;
    line-height: 1;
}
@media only screen and (max-width: 800px) {
    .bs-btnsticky .wp-block-button__link {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--wp--preset--color--primary) !important;
        border: none !important;
        padding: 15px 0;
        color: var(--wp--preset--color--white) !important;
        border-radius: 0 !important;
        z-index: 1000000;
        font-size: 1.2rem !important;
    }
}

/* ----------------------------
	== 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 {
    background: var(--wp--preset--color--primary);
}
.is-style-aster-grille > ul {
    margin: 0;
    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;
}
.is-style-aster-grille > ul > li figure {
    border-radius: var(--wp--custom--border-radius);
    overflow: hidden;
}
.is-style-aster-grille:not(.wp-block-bsw-event-list) h2,
.is-style-aster-grille:not(.wp-block-bsw-event-list) h3 {
    width: 100%;
    padding-top: 10px;
}
.home .is-style-aster-grille:not(.wp-block-bsw-event-list) figure + h2,
.home .is-style-aster-grille:not(.wp-block-bsw-event-list) figure + h3,
.blog .is-style-aster-grille figure + h2,
.blog .is-style-aster-grille figure + h3 {
    position: absolute !important;
    top: 0;
    left: 0;
    z-index: 2;
}
.home .is-style-aster-grille:not(.wp-block-bsw-event-list) li h2::before,
.home .is-style-aster-grille:not(.wp-block-bsw-event-list) li h3::before,
.blog .is-style-aster-grille li h2::before,
.blog .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%);
}
.home .is-style-aster-grille:not(.wp-block-bsw-event-list) h2 a,
.home .is-style-aster-grille:not(.wp-block-bsw-event-list) h3 a,
.blog .is-style-aster-grille h2 a,
.blog .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);
}

/* ----------------------------
	== EVENTS
---------------------------- */
.bs-event {
    padding: 0 var(--wp--preset--spacing--window) var(--wp--preset--spacing--window);
}
.bs-event li {
    background: var(--wp--preset--color--neutral);
}
.bs-event h4 {
    font-size: 1.2rem;
    font-weight: 500;
}
.bs-event .bsw-event-date {
    color: var(--wp--preset--color--primary);
    font-weight: 700;
    margin: 0;
}
.bs-event .wp-element-button {
    font-weight: 400;
}
.bs-event .wp-block-bsw-event-list li {
    width: calc(25% - (var(--wp--preset--spacing--text) * 2 / 3));
}
.bs-event .wp-block-bsw-event-list > ul > li {
    border-radius: 15px;
    align-self: self-start;
}
.bs-event .wp-block-bsw-event-list h2 {
    padding: 15px;
    font-size: 1.5rem;
}
.bs-event .wp-block-bsw-event-list .bsw-event-date {
    padding: 15px;
}
.bs-event .wp-block-bsw-event-list p {
    margin: 0;
    padding: 0 15px;
}
@media only screen and (max-width: 800px) {
    .bs-event .is-style-aster-grille li {
        width: 100%;
    }
    .bs-event  .is-style-aster-grille ul {
        gap: var(--wp--preset--spacing--text);
    }
    .bs-event h4 {
        font-size: 1rem;
        text-align: center;
    }
}

/* ----------------------------
	== NEXT PREV
---------------------------- */
.next-prev .post-navigation-link-next a::before {
    content: "\e937";
    font-family: "theme-i-1";
}
.next-prev .post-navigation-link-previous a::before {
    content: "\e936";
    font-family: "theme-i-1";
}

/* ----------------------------
	== EDITORIAL
---------------------------- */
.bs-editorial {
    position: relative;
    padding: 0 var(--wp--preset--spacing--window) !important;
}
.bs-editorial figure {
    position: relative;
    margin-block-end: 0;
    height: 800px;
}
.bs-editorial figure::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7)); /* Dégradé noir vers transparent */
    z-index: 1;
    border-radius: var(--wp--custom--border-radius);
}
.bs-editorial figure img {
    position: relative;
    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;
}
.bs-editorial .wp-block-post-title {
    font-size: 3rem !important;
}
@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%, -20%);
        background: none !important;
        z-index: 19;
    }
    .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 .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-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);
    }
}
@media only screen and (max-width: 800px) {
    .bs-editorial figure {
        height: 200px !important;
    }
}


/* ----------------------------
	== QUICKACCES
---------------------------- */
.bs-quick-access {
    margin-block-start: var(--wp--preset--spacing--current) !important;
    padding: 0 var(--wp--preset--spacing--window) !important;
    margin-block-end: var(--wp--preset--spacing--current);
}
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--primary);
}
.bs-quick-access [class^="icon-"]::after,
.bs-quick-access [class*="icon-"]::after {
    right: 0;
    text-align: center;
    font-size: 4rem;
    color: var(--wp--preset--color--primary);
}
.bs-quick-access p {
    margin-block-start: 10px;
    line-height: 1.2;
}
.bs-quick-access .wp-block-buttons {
    margin-block-start: 10px !important;
}
.bs-quick-access a {
    padding: 10px 20px !important;
}
@media only screen and (max-width: 800px) {
    .bs-quick-access li {
        flex: none;
        width: calc(50% - (var(--wp--preset--spacing--current) / 2));
    }
}

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

/* ----------------------------
	== NEWS
---------------------------- */
.bs-news {
    padding: 0 var(--wp--preset--spacing--current) !important;
}
.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);
}


/*
    SVG WAVES
*/
.bs-news-waves {
    position: relative;
    margin-top: calc(10.6vw + var(--wp--preset--spacing--current));
    margin-bottom: calc(10.6vw + var(--wp--preset--spacing--current));
}
.bs-news-waves svg {
    position: absolute;
    left: 0;
    right: 0;
    height: 10.6vw;
    margin: 0;
}
.bs-news-waves #vagues {
    bottom: 99%;
}
.bs-news-waves #vagues2 {
    top: 99%;
    transform: rotate(180deg);
}
.bs-news-waves.has-current-background-color path {
    fill: var(--wp--preset--color--current);
}
.bs-news-waves.has-primary-background-color path {
    fill: var(--wp--preset--color--primary);
}
.bs-news-waves.has-secondary-background-color path {
    fill: var(--wp--preset--color--secondary);
}
.bs-news-waves.has-accent-background-color path {
    fill: var(--wp--preset--color--accent);
}
.bs-news-waves .cls-1 {
    opacity: .8;
}
.bs-news-waves .cls-3 {
    opacity: .5;
}
@media only screen and (max-width: 800px) {
    .bs-news-waves {
        padding: var(--wp--preset--spacing--text) 0 !important;
    }
}

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

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

