/*
Theme Name: Nom du client
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.0
Template: bsw-aster
*/

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

/* ----------------------------
	== GENERAL
---------------------------- */
a:not(.wp-block-button__link):hover {
	color: var(--wp--preset--color--secondary) !important;
}
.wp-site-block {
	position: relative;
}

/* ----------------------------
	== HEADER
---------------------------- */
.site-header {
	margin: 0;
}

@media only screen and (min-width: 991.98px) {
	.site-header,
	.admin-bar .site-header {
		position: fixed;
		top: -300px;
		z-index: 20;
		transition: all .5s;
		width: 100%;
	}
}
@media only screen and (max-width: 991.98px) {
	.is-style-aster-sticky,
	.site-header {
		position: sticky;
		top: 0 !important;
		z-index: 999;
	}
	.site-header > div{
		padding: var(--wp--preset--spacing--small) !important;
	}
	.site-header .wp-block-site-logo {
		width: 100px;
	}
}
/*
    LOGO
*/
.wp-block-site-logo {}

/*
    SEARCH
*/

.wp-block-search {
	margin-block-end: 0;
}
.wp-block-search .wp-block-search__label {
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--title);
	font-size: 1.5rem;
}
.wp-block-search .wp-block-search__button {
	position: relative;
}
.wp-block-search .wp-block-search__button::before {
	content: "";
	width: 36px;
	height: 36px;
	background: var(--wp--preset--color--secondary);
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	border-radius: 50px;
	z-index: -1;
}
.wp-block-search .wp-block-search__button svg {
	height: 1.75em;
}
.wp-block-search :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
	border: none;
}
.wp-block-search__button.has-icon {
	width: 50px;
	border-radius: 50px !important;
}
#pop-search a {
	font-family: valleyfield;
}

/*
	MAIN NAVIGATION
*/
.hero-home > nav {
	padding: 0 var(--wp--preset--spacing--window) !important;
	max-width: 90vw;
}
.main-nav a {
	padding: 15px 5px;
}
.main-nav .bs-itemdon {
	background: var(--wp--preset--color--secondary);
}
.main-nav .bs-itemdon:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary)!important;
}
/*
	BURGER
*/
.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);
	font-size: 1rem;
    color: var(--wp--preset--color--primary);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
	padding-top: 0 !important;
	background-color: var(--wp--preset--color--neutral) !important;
	border-radius: 10px;
	font-weight: 500;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container a { 
	font-size: 0.9rem !important;
}
.wp-block-navigation__responsive-container-close {
	right: var(--wp--preset--spacing--window);
}
@media only screen and (max-width: 1500px) {
	.main-nav a {
		font-size: small;
	}
}

/*
    BLOCK POPIN
*/
.block-popins {}

.block-popins::before {
	content: "\e908";
	font-family: valleyfield;
	font-size: 1.5rem;
	color: var(--wp--preset--color--white);
}

/* ----------------------------
	== FOOTER
---------------------------- */
.site-footer > div {
	padding: 0;
}
.site-footer > div > div:first-child {
	padding: var(--wp--preset--spacing--text) var(--wp--preset--spacing--window);
}
.site-footer .bs-coord {
	padding: var(--wp--preset--spacing--text) var(--wp--preset--spacing--window) var(--wp--preset--spacing--window) var(--wp--preset--spacing--window);
	flex-wrap: wrap;
}
.site-footer .nav-footer {
	gap: 0;
}

/*
    Newsletter
*/
.site-footer .acym_module form {
	display: flex;
	justify-content: center;
}
.site-footer .acym_module_form {
	display: flex;
	align-items: center;
}
.site-footer .acym_module_form .acym_form {
	width: 100%;
}
.site-footer .acym_module_form input {
	max-width: 100%;
}
.site-footer .acym_module_form .onefield {
	margin: 0;
}
.site-footer .acym_module_form .onefield input {
	height: 50px;
	border: none;
	border-radius: 5px 0px 0px 5px;
	background: var(--wp--preset--color--white);
}
.site-footer .acysubbuttons {
	margin: 0;
	position: relative;
}
.site-footer .acysubbuttons::before {
	content:"｜";
	position: absolute;
	color: var(--wp--preset--color--secondary);
	font-weight: 800;
	top: 20%;
	left: -2px;
	transform: translate(-50%);
}
.site-footer .acysubbuttons input {
	padding-right: 10px;
	height: 50px;
	border: none;
	border-radius: 0px 5px 5px 0px;
	font-size: 1.2rem;
	font-weight: 700;
	font-family: var(--wp--preset--font-family--current);
	color: var(--wp--preset--color--secondary);
	background: var(--wp--preset--color--white);
}

@media only screen and (min-width: 991.98px) {
	.site-footer .bs-coord > div:first-child {
		border-right: 2px solid var(--wp--preset--color--primary);
	}
	.site-footer .bs-coord > div {
		width: 40%;
	}
	.site-footer .acym_module_form {
		width: 70%;
	}
}
@media only screen and (max-width: 991.98px) {
	.site-footer {
		padding-bottom: 50px;
	}
	.site-footer .bs-coord > div:first-child {
		padding-bottom: var(--wp--preset--spacing--window);
		border-bottom: 2px solid var(--wp--preset--color--primary);
	}
	.site-footer .bs-coord > div:first-child p {
		text-align: center;
	}
	.site-footer .bs-coord > div:last-child > div:first-child {
		flex-direction: column;
	}
	.site-footer .nav-footer {
		width: 100%;
		align-items: center;
	}
}
/* ----------------------------
	== MAIN
---------------------------- */
main {
	margin: 0;
}
body:not(.home) main {
	margin: var(--wp--preset--spacing--window) 0;
}
.single-post main {
	margin-bottom: calc(2*var(--wp--preset--spacing--window)) !important;
}

/*
	BREADCRUMBS
*/
.wp-block-wpseopress-breadcrumbs {
	background: rgba(0, 68, 185, 0.5);
	padding: 5px;
}
.wp-block-wpseopress-breadcrumbs a,
.wp-block-wpseopress-breadcrumbs li::after {
	opacity: 1 !important;
}
.wp-block-wpseopress-breadcrumbs .breadcrumb-item.active span {
	font-weight: 800;
	opacity: 1;
}
@media only screen and (max-width: 991.98px) {
	.wp-block-wpseopress-breadcrumbs {
		padding: var(--wp--preset--spacing--window);
	}
	.wp-block-wpseopress-breadcrumbs a {
		font-weight: 800;
	}
}
/*
    TITLE
*/


/*
    CONTENT
*/
.entry-content {}

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

/* ----------------------------
	== LANG SWITCHER
---------------------------- */
.pll-switcher-select {
	padding: 0;
	background: none;
	font-weight: bolder;
	border: none;
}
.site-header .pll-switcher-select {
	color: var(--wp--preset--color--primary);
}
.pll-switcher-select option {
	color: var(--wp--preset--color--primary);
}

@media only screen and (max-width: 995px) {
	.wp-block-polylang-language-switcher {
		width: max-content;
	}
}

/* ----------------------------
	== IMAGES
---------------------------- */
body:not(.home) .wp-block-post-featured-image,
.entry-content figure {
	border-radius: 10px;
	overflow: hidden;
}
body:not(.home) .wp-block-post-featured-image {
	aspect-ratio: 9/4;
}
/* ----------------------------
	== BUTTONS
---------------------------- */
.wp-block-button__link {
	padding: 16px;
	border-radius: 5px;
}
/* BOUTON STICKY MOBILE */
.bs-sticky {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 10;
}
.bs-sticky a {
	border-radius: 0;
}

/* ----------------------------
	== DATES ET HEURE EVENT
---------------------------- */
.tribe-events-schedule__datetime {
	background: var(--wp--preset--color--secondary);
	width: fit-content;
	padding: 5px;
	border-radius: 5px;
}
.tribe-events-schedule__datetime span {
	font-family: var(--wp--preset--font-family--current);
	color: var(--wp--preset--color--white);
}
.tribe-events-schedule__date {
	padding-right: 10px;
}
.tribe-events-schedule__time {
	font-weight: 500;
}
.tribe-events-schedule__separator--date {
 	display: none;
}

/* ----------------------------
	== TROMBINOSCOPE
---------------------------- */
.bs-directory figure figcaption {
  display: none !important;
}

/* ----------------------------
	== DETAILS
---------------------------- */
details {
	width: 100%;
	overflow: hidden;
}
summary {
	display: flex;
    list-style: none;
	position: relative;
	padding: 5px;
	font-family: var(--wp--preset--font-family--title)
}
summary::before{
	position: absolute;
	right: 0;
	content:"\e91a";
	font-family: valleyfield;
	color: var(--wp--preset--color--secondary);
}
summary::after{
	content:"";
	position: absolute;
	bottom: 0;
	padding: 5px;
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--white);
}
details[open] summary::before {
    content: "\e914";
}

/* ----------------------------
	== ANCHOR
---------------------------- */
.wp-block-bsw-anchor ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.wp-block-bsw-anchor li.active-menu, 
.wp-block-bsw-anchor li.active-menu a {
	font-weight: 800;
	color: var(--wp--preset--color--secondary);
}
/* ----------------------------
	== NAV PAGES SOEURS
---------------------------- */
.wp-block-bsw-siblings-posts li.current, .wp-block-bsw-siblings-posts li.current a {
	font-weight: 800;
	color: var(--wp--preset--color--secondary);
}
.wp-block-bsw-siblings-posts li.current, .wp-block-bsw-siblings-posts li.current a {
	font-weight: 800;
	color: var(--wp--preset--color--secondary);
}
/* *****************************
----------------------------
	= PATERNS - TEMPLATES PART
----------------------------
***************************** */

/* ----------------------------
	== POST LIST GRID
---------------------------- */
.is-style-aster-grille {
	max-width: var(--wp--style--global--content-size) !important;
}
.is-style-aster-grille > p {
	text-transform: uppercase;
	padding: 80px 0 50px;
	margin: 0;
}
.is-style-aster-grille ul {
	margin: 0;
}
.is-style-aster-grille li {
	background: var(--wp--preset--color--neutral);
}
.has-primary-light-background-color .is-style-aster-grille li {
	background: var(--wp--preset--color--white);
}
.is-style-aster-grille li > * {
	padding: 0 var(--wp--preset--spacing--text);
	margin: 0;
}
.is-style-aster-grille li > figure {
	padding: 0;
	border-radius: 0 !important;
}
.is-style-aster-grille li h2,
.is-style-aster-grille li h3 {
	padding: var(--wp--preset--spacing--small) 0;
	font-weight: 800;
	font-size: 1.2em;
	text-transform: none;
	margin-top: 0;
	line-height: 1.5;
}
.is-style-aster-grille li p {
	margin-top: 0;
	text-align: left;
	font-size: 1em;
	margin: 0;
}
.is-style-aster-grille figure:before {
	background: var(--wp--preset--color--primary);
	opacity: 0.3;
	border-radius: 0;
}
.is-style-aster-grille .bsw-event-date {
	margin: var(--wp--preset--spacing--text) calc(-1*var(--wp--preset--spacing--text)) 0 calc(-1*var(--wp--preset--spacing--text));
	padding: 5px var(--wp--preset--spacing--text);
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	border-top: 1px solid var(--wp--preset--color--primary);
}
.wp-block-bsw-event-list .infos {
	height: 100%;
}
.wp-block-bsw-event-list .infos:last-child {
	margin-top: auto;
}
/* ----------------------------
	== WITH SIDEBAR
---------------------------- */
.wp-block-columns.with-sidebar {}

/* ----------------------------
	== NEXT PREV
---------------------------- */
.next-prev {}

/* ----------------------------
	== HERO SUITE
---------------------------- */
.hero-suite .bs-navsuite {
	max-width: 80vw;
}
.hero-suite .bs-navsuite .second-nav {
	width: 80vw;
}
.hero-suite .wp-block-cover {
	padding: 0;
}
.hero-suite .main-nav:first-child {
  	padding: 0 0 0 var(--wp--preset--spacing--window);
	width: 80vw;
}
@media only screen and (min-width: 991.98px) {

}
@media only screen and (max-width: 991.98px) {
	.hero-suite {
		margin: 0;
	}
	.hero-suite .wp-block-cover {
		min-height: 250px !important;
	}
}

/* *****************************
----------------------------
	= HOME PAGE
----------------------------
***************************** */
.hero-home {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--text);
}
.hero-home {
	margin-block-start: 0;
}

/* ----------------------------
	== SECOND NAV
---------------------------- */
.second-nav {
	width: 90vw;
}
.second-nav .wp-block-search input {
	border-radius: 100px;
	padding: 5px 15px !important;
}
.second-nav .wp-block-search__button svg {
	width: 2.5em;
}
/* ----------------------------
	== BANNER HOME
---------------------------- */
.home .wp-block-cover {
	padding: 0;
}
.home .wp-block-cover span {
	position: relative;
	opacity: 1 !important;
	z-index: 1;
}
@media only screen and (min-width: 991.98px) {
	.home .wp-block-cover span::after {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 30vw;
		height: 30vw;
		background: linear-gradient(123deg,rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0) 70%);
		pointer-events: none;
		z-index: 2;
	}
}
.home .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	padding: var(--wp--preset--spacing--text) var(--wp--preset--spacing--window);
}
@media only screen and (max-width: 991.98px) {
	.home .wp-block-cover {
		min-height: 300px !important;
	}
}
/* ----------------------------
	== ACTUALITÉS
---------------------------- */
.bs-news {
	padding: var(--wp--preset--spacing--window);
}
.bs-news ul {
	grid-template-columns: 2fr 1fr 1fr;
}
.bs-news li:first-child {
	position: relative;
}
.bs-news li:first-child .wp-block-post-title {
	margin: 0;
	padding: var(--wp--preset--spacing--text);
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--wp--preset--color--primary);
}
.bs-news li:first-child .wp-block-post-title a {
	color: var(--wp--preset--color--white) !important;
}
.bs-news li:first-child .wp-block-post-excerpt {
	display: none;
}
.bs-news li:not(:first-child) h2 {
	margin-bottom: 8px;
}
.bs-news li .wp-block-post-excerpt {
	margin-top: 0;
}
.bs-news figure {
	margin: 0;
	overflow: hidden;
}
.bs-news li:first-child figure,
.bs-news li:first-child figure img {
	width: 100%;
	height: 100%;
}
.bs-news figure a:hover img {
	scale: 1.05;
	transition: 0.5s;
}
/*SLIDER*/
.bs-news .wp-block-bsw-slider .slider_post_title {
	display: block;
	padding: 5px 0;
	font-weight: 800;
	font-size: large;
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--title);
}
.bs-news .wp-block-bsw-slider figure {
	height: 22vh;
}
.bs-news .wp-block-bsw-slider img {
	width: 100%;
	height: 100%;
}
.bs-news .wp-block-bsw-slider p {
	margin-top: 0;
}
/* ----------------------------
	== LIENS ACCORDÉONS + AGENDA
---------------------------- */
.bs-links {
	margin: 0 calc(-1*var(--wp--preset--spacing--window));
	padding: var(--wp--preset--spacing--window) !important;
}
.bs-links > div {
	max-width: var(--wp--style--global--wide-size);
}
.bs-links .bs-mainlinks {
	align-items: stretch;
}
.bs-links .bs-mainlinks figure a,
.bs-links .bs-mainlinks figure img {
	height: 100%;
}
@media (min-width: 991px) {
	.bs-links .bs-mainlinks figure {
		flex: 1;
	}
}
@media (min-width: 1600px) {
	.bs-links > div > div:first-child {
		flex: 2;
	}
	.bs-links > div > div:last-child {
		flex: 1;
	}
}
@media (max-width: 1600px) {
	.bs-links > div {
		padding: var(--wp--preset--spacing--window);
	}
	.bs-links > div > div:first-child {
		flex: 3;
	}
	.bs-links > div > div:last-child {
		flex: 2;
	}
}
@media (max-width: 1200px) {
	.bs-links > div {
		flex-wrap: wrap;
	}
	.bs-mainlinks {
		flex-wrap: wrap;
	}
}

/*AGENDA*/
.bs-events {
	position: relative;
	padding: var(--wp--preset--spacing--text)!important;
}
.bs-events h2 {
	font-size: 2em;
}
.bs-events ul {
	margin: 0;
	padding: 0;
}
.bs-events li {
	position: relative;
	margin-bottom: calc(var(--wp--preset--spacing--small)/2);
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
}
.bs-events .wp-block-button__link{
	transition: 0.3s;
}
.bs-events .wp-block-button a:hover{
	color: var(--wp--preset--color--white)!important;
	background: var(--wp--preset--color--secondary)!important;
	border-color: var(--wp--preset--color--secondary)!important;
}
.bs-events .bsw-event-date {
	position: absolute;
	text-align: center;
	left: 10px;
	top: 50%;
	font-size: 1.1em;
	color: transparent;
	transform: rotate(-90deg) translateX(-10%) translateY(50%);
	transform-origin: bottom left;
	margin: 0;
	padding: 0;
}
.bs-events .bsw-event-date time {
	color: var(--wp--preset--color--white);
}
.bs-events .end_date {
	display: none;
}
.bs-events li h3,
.bs-events li p{
	color: var(--wp--preset--color--white);
	margin: 0;
	padding-left: 35px;
    max-height: 5em;
    overflow: hidden;
}
.bs-events li h3 + p {
	margin: 0 0 var(--wp--preset--spacing--small);
}
.bs-events li h3 a {
	font-size: 1.3rem;
	color: var(--wp--preset--color--white);
	margin: 0;
}
.bs-events .wp-block-buttons a{
	opacity: 1;
}
.bs-events .start_time,
.bs-events .end_time {
	display: none;
}
@media (max-width: 1200px) {
	.bs-events {
		margin-top: 80px;
		width: 100vw;
	}
	.bs-events li {
		margin-top: 10px;
		padding-top: 10px;
		margin-bottom: 0;
	}
}
@media (max-width: 800px) {
	.bs-events {
		margin: var(--wp--preset--spacing--window) calc(-2*var(--wp--preset--spacing--window)) calc(-2*var(--wp--preset--spacing--window)) calc(-2*var(--wp--preset--spacing--window));
	}
	.bs-events .bsw-event-date {
		padding: calc(var(--wp--preset--spacing--small)/2);
	}
}

/* ----------------------------
	== PARTENAIRES
---------------------------- */
.bs-partners {
	padding: var(--wp--preset--spacing--window);
}
.bs-partners > div {
	justify-content: space-between;	
	margin-block-end: var(--wp--preset--spacing--text);
}