/*
Theme Name: La Salette
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
*/

/* *****************************
----------------------------
	= GENERAL
----------------------------
***************************** */

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

/* ----------------------------
	== HEADER
---------------------------- */

.site-header {
	border-bottom: 5px solid;
	border-image: linear-gradient(to right, 
	var(--wp--preset--color--gris-mineral) 16.66%, 
	var(--wp--preset--color--bleu-turquoise) 16.66%, var(--wp--preset--color--bleu-turquoise) 33.33%, 
	var(--wp--preset--color--poire) 33.33%, var(--wp--preset--color--poire) 50%, 
	var(--wp--preset--color--orange) 50%, var(--wp--preset--color--orange) 66.66%, 
	var(--wp--preset--color--magenta) 66.66%, var(--wp--preset--color--magenta) 83.33%, 
	var(--wp--preset--color--primary) 83.33%) 1;
}

.home .site-header {
	width: 100%;
}

@media only screen and (min-width: 995px) {
	.home section.site-header,
	.admin-bar section.site-header {
    position: fixed;
    top: -300px;
    z-index: 20;
    transition: all .5s;
	}
	.home .site-header > div {
		width: 70vw;
	}
}
.site-header .btn-sticky {
	position: fixed;
	justify-content: center;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 0;
	border-radius: 0 !important;
	z-index: 1000;
	gap: 0;
}
.site-header .btn-sticky > div {
	width: 50%;
	background: var(--wp--preset--color--primary);
	padding: 5px 0;
	text-align: center;
}
.site-header .btn-sticky > div:last-child {
	border-left: 1px solid var(--wp--preset--color--white);
}
@media only screen and (max-width: 995px) {
	section.site-header,
	.site-header {
		position: sticky;
		top: 0 !important;
    	z-index: 9999;
	}
	.site-header > div {
		max-width: 100vw;
	}
	.site-header > div > .wp-block-group:first-child {
		width: 100%;
		justify-content: space-between;
	}
	.site-header .wp-block-site-logo {
		margin: 0 !important;
		width: 25%;
	}
}

/*
	MAIN NAVIGATION
*/
.main-nav .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--white) !important;
}
.main-nav .wp-block-navigation__responsive-container.is-menu-open a:hover {
	color: var(--wp--preset--color--orange) !important;
}
.main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: rgba(255, 255, 255, 0.7)  !important;
	color: var(--wp--preset--color--primary) !important;
	font-weight: 400;
	padding: 10px !important;
	border-radius: 10px;
}

/*
    BLOCK POPIN
*/
.bt-popin a {
	border: 2px solid var(--wp--preset--color--primary) !important;
}
.block-popins::before {
    content: "\e909";
    font-family: la-salette;
    cursor: pointer;
	color: var(--wp--preset--color--white);
}

/* ----------------------------
	== FOOTER
---------------------------- */
.site-footer {
	position: relative;
	margin-top: calc(-1*var(--wp--preset--spacing--window));
	z-index: 1;
}
.home .site-footer {
	margin-top: calc(-2*var(--wp--preset--spacing--window));
}
.site-footer > div {
	padding: calc(4*var(--wp--preset--spacing--window)) 0 0 0;
}
.home .site-footer > div {
	margin: var(--wp--preset--spacing--small) 0 0 0;
	padding: calc(3*var(--wp--preset--spacing--window)) 0 0 0;
}
.site-footer .wp-block-site-logo img {
	filter: invert(100%) brightness(100%);
}
.site-footer .bs-contentfooter {
	padding: var(--wp--preset--spacing--window) var(--wp--preset--spacing--window) var(--wp--preset--spacing--text);
	background: #38549DCC;
}
.site-footer .bs-contentfooter > div {
	width: 100%;
}
.site-footer .bs-flexwrap > div:first-child > div:last-child {
	margin-top: var(--wp--preset--spacing--current) !important;
}
.site-footer svg {
	position: absolute;
	top: -2px;
	z-index: 1;
}
@media only screen and (min-width: 1600px) {
	.site-footer .bs-contentfooter  {
		max-width: 75vw;
	}
}
@media only screen and (max-width: 1600px) {
	.site-footer .bs-contentfooter  {
		max-width: 70vw;
	}
}
@media only screen and (min-width: 995px) {
	.site-footer .bs-flexwrap {
		gap: var(--wp--preset--spacing--window);
	}
}
@media only screen and (max-width: 995px) {
	.home .site-footer {
		margin-top: calc(-5*var(--wp--preset--spacing--window)) !important;
	}
	.site-footer > div {
		padding: calc(7*var(--wp--preset--spacing--window)) 0 0 0 !important;
	}
	.site-footer .bs-contentfooter {
		margin: 0 !important;
		max-width: 100%;
		flex-wrap: wrap;
		padding-bottom: 70px;
	}
	.site-footer .bs-contentfooter > div:nth-child(2) {
		width: 100%;
	}
	.site-footer .bs-flexwrap {
		flex-wrap: wrap;
	}
	.site-footer .bs-flexwrap > div{
		width: 100%;
	}
	.site-footer .bs-partners {
		flex-direction: column;
	}
	.site-footer figure {
		text-align: center;
	}
	.site-footer .wp-block-site-title {
		text-align: center;
	}
}
/* ----------------------------
	== MAIN
---------------------------- */
/*
	BREADCRUMBS
*/
.wp-block-wpseopress-breadcrumbs {
	padding: 10px 10px 10px var(--wp--preset--spacing--window) !important;
	text-align: left;
	background-color: rgba(255, 255, 255, 0.5); 
	backdrop-filter: blur(40px);
}
.wp-block-wpseopress-breadcrumbs .breadcrumb-item.active span {
	font-weight: 800 !important;
	opacity: 1;
}
@media only screen and (max-width: 995px) {
	.wp-block-wpseopress-breadcrumbs a {
		font-weight: 800 !important;
		opacity: 1;
	}
}

/* *****************************
----------------------------
	= 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);
}
.bs-headerhome .pll-switcher-select {
	color: var(--wp--preset--color--white);
}
.bs-headerhome .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;
	}
}

/* ----------------------------
	== HOVER BUTTON PRIMARY
---------------------------- */
.wp-block-button .has-primary-background-color {
	border: 2px solid var(--wp--preset--color--primary);
}
.wp-block-button .has-primary-background-color:hover {
	background: var(--wp--preset--color--white) !important;
	border: 2px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}
/* ----------------------------
	== IMAGES
---------------------------- */
body:not(.home):not(.blog):not(.page-template-summary-page) img{
	border-radius: 5px;
}

/* *****************************
----------------------------
	= PATERNS - TEMPLATES PART
----------------------------
***************************** */
.wp-block-template-part {
	margin: 0;
	width: 100%;
}

/* ----------------------------
	== HERO BANNER
---------------------------- */
.wp-block-cover {
	padding: 0;
}
.wp-block-cover .wp-block-cover__inner-container{
	width: 100% !important;
}
.wp-block-cover img {
	border-radius: 0 !important;
}
@media only screen and (max-width: 995px) {
	.wp-block-cover {
		min-height: 200px !important;
	}
}
/* ----------------------------
	== POST LIST GRID
---------------------------- */
.is-style-aster-grille li {
	background: var(--wp--preset--color--grey);
	align-content: end;
	border-radius: 10px;
}
.is-style-aster-grille a {
	display: block;
	padding: 15px;
	width: 100%;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--primary);

}

/* ----------------------------
	== FORMULAIRES GRAVITY FORM
---------------------------- */
.contact-form_wrapper .gform_title {
	display: none;
}
.gform_wrapper.gravity-theme .gfield.gfield--width-full {
	grid-column: 1/-1 !important;
	background: 0 0;
	padding: 0;
}
.gform_wrapper .ginput_container {
	gap: 10px;
}
.gform_wrapper .gform_wrapper .ginput_complex:not(.ginput_container_address) span:not([style*="display:none"]):not(.ginput_full),
.ginput_complex:not(.ginput_container_address) span:not([style*="display:none"]):not(.ginput_full) {
	padding-right: 0 !important;
}
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"] {
	height: 50px;
}
.gf_clear.gf_clear_complex {
	display: none;
}
.gform_wrapper .gfield_description {
	padding: 0 !important;
}
input[type="color"], 
input[type="date"], 
input[type="datetime-local"], 
input[type="datetime"], 
input[type="email"], 
input[type="month"], 
input[type="number"], 
input[type="password"], 
input[type="reset"], 
input[type="search"], 
input[type="submit"], 
input[type="tel"], 
input[type="text"], 
input[type="time"], 
input[type="url"], 
input[type="week"], 
select, 
textarea {
	border-color: var(--wp--preset--color--grey);
}
.gform_wrapper input[type="submit"] {
	text-transform: initial;
}
.gform_button {
	border: 2px solid var(--wp--preset--color--primary)!important;
	background-color: var(--wp--preset--color--primary)!important;
}
.gform_wrapper input[type="submit"]:hover {
	background: var(--wp--preset--color--white) !important;
	border: 2px solid var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--primary);
}
@media only screen and (max-width: 995px) {
	.gform_wrapper.gravity-theme .gfield input.medium, .gform_wrapper.gravity-theme .gfield select.medium,
	.gform_wrapper input[type="submit"] {
		width: 100% !important;
	}
}

/* ----------------------------
	== WITH SIDEBAR
---------------------------- */
.wp-block-columns.with-sidebar .wp-block-bsw-siblings-posts {
	padding: var(--wp--preset--spacing--small);
	border-radius: 10px;
	box-shadow: 5px 5px 11px rgba(0, 0, 0, 0.15);
}
.wp-block-columns.with-sidebar .wp-block-bsw-siblings-posts li.current, .wp-block-bsw-siblings-posts li.current a {
	color: var(--wp--preset--color--white);
	font-weight: 900;
}

/* *****************************
----------------------------
	= HOME PAGE
----------------------------
***************************** */
.home main {
	padding: 0 !important;
	gap: 0;
	position: relative;
	z-index: 2;
}
.bs-contenthome {
	position: relative;
	gap: 0;
}
@media only screen and (min-width: 995px) {
	.bs-contenthome {
		max-width: 70vw;
	}
}

/* ----------------------------
	== HEADER HOME MENU
---------------------------- */
.bs-headerhome {
	position: absolute;
	left: var(--wp--preset--spacing--window);
	right: var(--wp--preset--spacing--window);
	top: var(--wp--preset--spacing--text);
	padding: var(--wp--preset--spacing--small) calc(2*var(--wp--preset--spacing--small));
	border-radius: 100px;
	z-index: 99;
	background-color: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(40px);
	width: calc(70vw - 2 *var(--wp--custom--margin-window));
}
.bs-headerhome nav a:hover {
	color: var(--wp--preset--color--orange) !important;
}

/* ----------------------------
	== COLONNE FIXE
---------------------------- */
.bs-colhome {
	gap: 0;
}
.bs-colhome > div{
	width: 100%;
}
.bs-colhome > div:first-child {
	height: 60vh;
	justify-content: space-between;
	flex-wrap: nowrap;
}
.bs-colhome > div > div:last-child {
	height: 40vh;
	gap: 0;
}
.bs-colhome > div > div:last-child .wp-block-buttons {
	width: 90%;
	gap: 10px;
}
.bs-colhome > div > div:last-child .wp-block-social-links {
	gap: 0;
}
.bs-colhome > div:last-child .wp-block-button__link:hover{
	background: var(--wp--preset--color--white);
}
.bs-colhome > div:last-child p.has-large-font-size{
	font-size: 1.8em!important;
	opacity: 0.7;
}
.bs-colhome .bs-btn {
	padding: var(--wp--preset--spacing--text) calc(2*var(--wp--preset--spacing--text)) calc(2*var(--wp--preset--spacing--text));
}
.bs-colhome > div:last-child > div > div:first-child {
	margin-top: -45px;
	gap: 0;
}
.bs-colhome .bs-intro {
	padding: calc(2*var(--wp--preset--spacing--text));
	max-height: 30vh;
	position: relative;
}
.bs-colhome .bs-intro p {
	line-height: normal;
	width: 90%;
}
.bs-colhome .bs-intro .wp-block-buttons {
	width: 90%;
}
.bs-colhome .bs-intro .wp-block-button,
.bs-colhome .bs-intro .wp-block-button__link {
	width: 100%;
}
.bs-intromobile {
	padding: var(--wp--preset--spacing--window);
}
.bs-colhome #mountains {
	margin-bottom: -4vw;
	margin-right: -0.1px;
}
.bs-colhome .mountains {
	fill: var(--wp--preset--color--primary);
	transform: scaleY(0.7);
}
@media only screen and (min-width: 1600px) {
	.bs-colhome {
		min-width: 25vw;
	}
	.bs-colhome .bs-intro .has-small-font-size,
	.bs-colhome > div:last-child .has-small-font-size{
		font-size: 1.2rem!important;
	}
	.bs-colhome .bs-intro p.has-small-font-size{
		width: 80%;
		margin-top: var(--wp--preset--spacing--text);
	}
	.bs-colhome > div:last-child .wp-block-button__link{
		padding: 15px;
	}
}
@media only screen and (max-width: 1600px) {
	.bs-colhome {
		min-width: 30vw;
	}
	.bs-colhome .bs-intro p {
		font-size: 0.8rem !important;
	}
}

/* ----------------------------
	== CONTENU DE LA HOME
---------------------------- */

/* 
	 SLIDER
*/
.home .wp-block-bsw-slider-static {
	border-bottom: 5px solid;
	border-image: linear-gradient(to right, 
	var(--wp--preset--color--gris-mineral) 16.66%, 
	var(--wp--preset--color--bleu-turquoise) 16.66%, var(--wp--preset--color--bleu-turquoise) 33.33%, 
	var(--wp--preset--color--poire) 33.33%, var(--wp--preset--color--poire) 50%, 
	var(--wp--preset--color--orange) 50%, var(--wp--preset--color--orange) 66.66%, 
	var(--wp--preset--color--magenta) 66.66%, var(--wp--preset--color--magenta) 83.33%, 
	var(--wp--preset--color--primary) 83.33%) 1;
}
.home .wp-block-bsw-slider-static figure {
	margin: 0;
}
.home .splide__slide img {
	object-fit: cover;
	width: 100%;
}
.home .wp-block-bsw-slider-static .splide__arrow {
	opacity: 1;
	background: var(--wp--preset--color--white);
}
.home .wp-block-bsw-slider-static .splide__arrow svg{
	fill: var(--wp--preset--color--primary);
}
.home .wp-block-bsw-slider-static .splide__pagination {
	bottom: var(--wp--custom--margin-window);
	top: initial;
	background: var(--wp--preset--color--white);
	width: fit-content;
	margin: auto;
	border-radius: 100px;
}
.home .wp-block-bsw-slider-static .splide__pagination li {
	line-height: 0;
	padding: 10px 0;
}
.home .wp-block-bsw-slider-static .splide__pagination li:first-child button { 
	background: var(--wp--preset--color--magenta);
}
.home .wp-block-bsw-slider-static .splide__pagination li:nth-child(2) button {
	background: var(--wp--preset--color--gris-mineral);
}
.home .wp-block-bsw-slider-static .splide__pagination li:nth-child(3) button{
	background: var(--wp--preset--color--orange);
}
.home .wp-block-bsw-slider-static .splide__pagination li:nth-child(4) button{
	background: var(--wp--preset--color--poire);
}
.home .wp-block-bsw-slider-static .splide__pagination li:nth-child(5) button{
	background: var(--wp--preset--color--primary);
}
.home .wp-block-bsw-slider-static .splide__pagination li:last-child button{
	background: var(--wp--preset--color--bleu-turquoise);
}


@media only screen and (min-width: 995px) {
	.home .wp-block-bsw-slider-static,
	.home .splide__track,
	.home .wp-block-bsw-slider-static figure,
	.home .splide__slide img {
		min-height: 100vh;
	}
}

@media only screen and (max-width: 995px) {
	.home .wp-block-bsw-slider-static,
	.home .splide__track,
	.home .wp-block-bsw-slider-static figure,
	.home .splide__slide img {
		min-height: 65vh;
	}
}

/* 
	 BANNIÈRE
*/
.home .wp-block-cover {
	width: 100%;
	position: relative;
}
.wp-block-cover .wp-block-cover__inner-container {
	position: initial;
}
.home .wp-block-cover p:first-child {
	font-size: 2em !important;
}
.home .wp-block-cover #mountains {
	position: absolute;
	width: 400px;
	bottom: -35px;
	left: 0;
}
.home .wp-block-cover #mountains path{
	fill: var(--wp--preset--color--white);
}
@media only screen and (max-width: 995px) {
	.home .wp-block-cover {
		padding: calc(2*var(--wp--preset--spacing--window)) calc(2*var(--wp--preset--spacing--window)) calc(8*var(--wp--preset--spacing--window));
	}
}

/* 
	 VIDEO
*/
.bs-video {
	width: 100%;
}
.bs-video figure {
	aspect-ratio: 16 / 9;
	width: 100%;
	overflow: hidden;
}
.bs-video figure > div {
	height: 100%;
}
.bs-video iframe {
	min-width: 100%;
	height: 100%;
	object-fit: cover;
}

@media only screen and (min-width: 995px) {
	.bs-video {
		padding: var(--wp--preset--spacing--window);
	}
	.bs-video figure {
		border-radius: 10px;
		box-shadow: 5px 5px 11px rgba(0, 0, 0, 0.15);
		margin: 0 !important;
		max-width: 100%;
	}
}
@media only screen and (max-width: 995px) {
	.bs-video figure {
		margin: 0 !important;
		max-width: 100%;
	}
}

/* 
	 ACCES RAPIDES
*/
.bs-quickaccess {
	padding: 0 var(--wp--preset--spacing--window) var(--wp--preset--spacing--window);
	margin-bottom: calc(-2*var(--wp--preset--spacing--window)) !important;
	align-items: stretch;
}
.bs-quickaccess > div{
	position: relative;
	padding: var(--wp--preset--spacing--text) calc( 2*var(--wp--preset--spacing--text));
	border-radius: 10px;
	box-shadow: 5px 5px 11px rgba(0, 0, 0, 0.15);
}
.bs-quickaccess > div:hover {
	scale: 1.02;
	transition: all .5s;
}
.bs-quickaccess h2 {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--small);
	font-family: var(--wp--preset--font-family--current) !important;
	font-weight: 800;
	font-size: 2rem;
}
.bs-quickaccess h2 a::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
}
.bs-quickaccess [class*=" icon-"]::before {
	font-family: la-salette;
	font-weight: normal;

}
.bs-quickaccess .icon-plus {
	margin: 10px 0 0 0 !important;
	padding: 10px;
	border-radius: 100px;
	width: fit-content;
}
.bs-quickaccess > div:hover .icon-plus {
	color: var(--wp--preset--color--white) !important;
	background-color: var(--wp--preset--color--primary) !important;
	transition: all .5s;
}
.bs-quickaccess .icon-plus::before {
	content: "";
}
@media only screen and (min-width: 1550px) {
	.bs-quickaccess [class*=" icon-"]::before {
		font-size: 5rem;
	}
}
@media only screen and (max-width: 1550px) {
	.bs-quickaccess [class*=" icon-"]::before {
		font-size: 3rem;
	}
}
@media only screen and (min-width: 995px) {
	.bs-quickaccess {
		gap: var(--wp--custom--margin-window);
	}
	.bs-quickaccess > div{
		padding: var(--wp--preset--spacing--text) calc( 2.5*var(--wp--preset--spacing--text));
	}
}
@media only screen and (max-width: 995px) {
	.bs-quickaccess {
		margin-top: var(--wp--preset--spacing--window) !important;
		flex-wrap: wrap;
	}
	.bs-quickaccess [class*=" icon-"]::before {
		font-size: 3rem;
	}
	.bs-quickaccess h2 {
		gap: 10px;
		flex-wrap: wrap;
	}
}

/* ----------------------------
	== MODÈLE ÉCRAN
---------------------------- */
.page-template-modele-ecran {
	max-height: 100vh;
}	
.page-template-modele-ecran main {
	margin-top: calc(-2*var(--wp--preset--spacing--window));
	padding: 0 var(--wp--preset--spacing--window) var(--wp--preset--spacing--window) !important;
	height: calc(70vh + calc(2*var(--wp--preset--spacing--window)));
	border-bottom: 2vw solid var(--wp--preset--color--primary);
	overflow: hidden;
}	
.page-template-modele-ecran .header-screen {
	position: relative;
	height: 30vh;
}
.page-template-modele-ecran .header-screen figure {
	margin: 0 !important;
}
.page-template-modele-ecran .wp-block-bsw-slider-static li.wp-block-bsw-slider-static-slide {
	text-align: center;
	max-height: 70vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.page-template-modele-ecran .wp-block-bsw-slider-static li figure {
	width: 100%;
	height: 100%;
}
.page-template-modele-ecran .wp-block-bsw-slider-static li figure img {
	max-width: 100%;
	max-width: 100%;
	object-fit: cover;
}
.page-template-modele-ecran #mountains_screen {
	margin: 0;
	position: absolute;
	bottom: -40px;
	min-width: 100%;
}
.page-template-modele-ecran #mountains_screen path {
	fill: var(--wp--preset--color--white);
}

/* 
	SVG FOOTER MOUTAINS
*/
#footer-mountains path,
#footer-mountains-mobile path,
#footer-mountains-suite path, 
#footer-mountains-mobile-suite path{
	fill: var(--wp--preset--color--white);
}
.home #footer-mountains-suite,
.home #footer-mountains-mobile-suite {
	display: none;
}
@media only screen and (min-width: 995px) {
	#footer-mountains-mobile,
	#footer-mountains-mobile-suite{
		display: none;
	}
}
@media only screen and (max-width: 995px) {
	#footer-mountains,
	#footer-mountains-suite{
		display: none;
	}
}