/*
Theme Name: SoHappy Theme Astra Gutenberg
Theme URI: https://www.sohappy-studio.com
Author: Agence So'Happy
Author URI: hhttps://www.sohappy-studio.com
Description: Astra child theme
Template: astra
License: Proprietary - All Rights Reserved
Version: 2.3.1
*/

#wpadminbar {
	opacity: .5!important;
}
#primary {
	margin-top: 0!important;
	margin-bottom: 0!important;
}
#ast-scroll-top {
	--skew-x: 10px;
	background-color: var(--main-color);
	border-radius: 0;
	clip-path: polygon(var(--skew-x) 0, 100% 0, calc(100% - var(--skew-x)) 100%, 0 100%);
	width: 40px;
}

/**********TEXT***********/
:is(h1, h2, h3, h4) strong, .entry-content :is(h1, h2, h3, h4) strong, body :is(.is-h1, .is-h2, .is-h3, .is-h4) strong {
    color: var(--main-color);
    font-weight: inherit;
}

*.has-primary-background-color :is(h1, h2, h3, h4, .is-h1, .is-h2, .is-h3, .is-h4) strong {
    color: var(--white);
}


/*********BOUTON**********/
.wp-block-button .wp-element-button, #masthead .main-header-bar .main-header-menu li.cta-contact a.menu-link {
	--skew-x: 10px;
	display: block;
	padding: 5px 20px;
	background-color: var(--main-color);
	border: none;
	border-radius: 0;
	box-sizing: border-box;
	line-height: 1.2;
	font-size: 1.8rem;
	color: var(--white);
	font-family: var(--poppins);
	font-weight: 700;
	text-decoration: none!important;
	clip-path: polygon(var(--skew-x) 0, 100% 0, calc(100% - var(--skew-x)) 100%, 0 100%);
	
	transition: all .3s ease-in-out;
}
.wp-block-button .wp-element-button:hover, #masthead .main-header-bar .main-header-menu li.cta-contact a.menu-link:hover {
	padding: 5px 20px;
	background-color: var(--sub-color);
	color: var(--main-color);
	border: none;
	border-radius: 0;
}
.has-secondary-background-color .wp-block-button .wp-element-button:hover {
	background-color: var(--white);
}

/****************************/
/********** HEADER **********/
/****************************/
#masthead {
	position: fixed!important;
	width: 100vw;
	top: 0;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0);

	transition: background-color .2s ease-out, box-shadow .2s ease-out;
}
body:is(.scroll0, .mob_scroll0, .ast-main-header-nav-open) #masthead {
	background-color: var(--white);
	box-shadow: 0 0 15px 0 rgba(0, 0, 0, .3);
}
#masthead img.custom-logo {
	object-fit: contain;
	transition: all .2s ease-out;
	position: absolute;
	transform: translateY(-50%);
}
body:is(.scroll0, .mob_scroll0) #masthead img.custom-logo {
	width: calc(var(--masthead-height) - 5px);
	transform: translateY(-80%);
}
#masthead .ast-logo-title-inline .ast-site-identity {
	padding: 0;
}
#masthead *:is(.ast-above-header-bar, .ast-primary-header-bar) {
	border: none!important;
	background-color: transparent;
}
#masthead .ast-above-header-bar {
	background-color: var(--black);
}
#masthead .site-header-above-section-right * {
	color: var(--white);
	line-height: 1;
	text-transform: uppercase;
	border: none;
}
#masthead .site-header-above-section-right ul {
	background-color: transparent;
}
#masthead .site-header-above-section-right > div, #masthead .site-header-above-section-right > div * {
	width: fit-content;
}
#masthead .site-header-above-section-right {
	align-items: center;
}

#masthead .main-header-bar .main-header-menu {
	gap: 30px;
}
#masthead .main-header-bar .main-header-menu li {
	position: relative;
	font-size: 2rem;
	line-height: 1.4;
}
#masthead .main-header-bar .main-header-menu li:not(.cta-contact):has(a.menu-link)::after {
	position: absolute;
	display: block;
	content: "";

	bottom: 2px;
	left: 0;

	width: 0px;
	height: 2px;

	background-color: var(--main-color);
	transition: width .2s ease-out;
}
#masthead .main-header-bar .main-header-menu li:has(a.menu-link:hover)::after {
	width: 100%;
}
#masthead .main-header-bar .main-header-menu li:not(:first-child):not(.cta-contact)::before {
	position: absolute;
	display: block;
	content: "";
	left: -15px;
	top: 0;
	width: 1px;
	height: 100%;
	background-color: var(--grey);
}
#masthead .main-header-bar .main-header-menu li:not(.cta-contact) a.menu-link::after {
	content: ".";
}
#masthead .main-header-bar .main-header-menu li a.menu-link {
	height: fit-content;
	line-height: inherit;
	text-transform: uppercase;
	font-size: inherit;
	padding: 0;
	color: var(--black);
}
#masthead .main-header-bar .main-header-menu li.cta-contact a.menu-link {
	font-size: inherit;
}

#main-header {
	padding-top: calc(var(--masthead-height, 80px) + 40px) ;
}
#main-header .fil-ariane li > *:hover {
	color: var(--sub-color);
}
#main-header .fil-ariane li > *::after {
	display: none;
}
/****************************/
/********** CONTENT *********/
/****************************/
#masthead .call-link .menu-link, body .call-link a, body a.call-link {
	position: relative;
	padding-left: 1.4lh;
	padding-right: 0;
	padding-bottom: 0;
	border: none;
	color: var(--main-color);
	font-weight: 700;
}
#masthead .call-link .menu-link::before, body .call-link a::before, body a.call-link::before {
	position: absolute;
	display: block;
	content: "";

	top: 0;
	left: 0;

	width: 1lh;
	aspect-ratio: 1;

	background-color: currentColor;
	mask: url(./assets/svg/picto_phone.svg) center/contain no-repeat;
	-webkit-mask: url(./assets/svg/picto_phone.svg) center/contain no-repeat;
}
#masthead .call-link .menu-link::after, body .call-link a::after, body a.call-link::after {
	position: absolute;
	display: block;
	content: "";

	bottom: -2px;
	left: 1.4lh;

	width: 0px;
	height: 2px;

	background-color: currentColor;
	transition: width .2s ease-out;
}
#masthead .call-link .menu-link:hover::after, body .call-link a:hover::after, body a.call-link:hover::after {
	width: calc(100% - 1.4lh);
}

.so-horaires-actif { 
	display: flex!important; 
	width: fit-content; 
}
.so-horaires-dot {
	animation: flicker 1s ease-in-out infinite alternate;
}
@keyframes flicker {
	0% { opacity: 100%; }
	100% { opacity: 70%; }
}

*:has(> .macaron) {
	position: relative;
}
.macaron {
	position: absolute;
	top: 50%;
	left: 0; 
	transform: translate(-20%, -50%);
}


.slick-track {
	display: flex;
}
.slick-slide {
	box-sizing: border-box;
}
.slick-arrow {
	--arrow-size: 40px; 
	top: 50%;
	left: calc(-1 * var(--arrow-size) - 20px);
	box-shadow: none;
	width: var(--arrow-size);
	height: auto;
	aspect-ratio: 1 / 1;
	transform: translateY(calc(-50% + 55%)) rotate(180deg);
}
.slick-arrow.slick-next {
	transform: translateY(calc(-50% - 55%));
}
.slick-arrow:before {
	display: block;
	background-color: var(--main-color);
	mask: url(./assets/svg/picto_arrow.svg) center / contain no-repeat;
	-webkit-mask: url(./assets/svg/picto_arrow.svg) center / contain no-repeat;
	content: "";
	width: 100%;
	height: 100%;
}

/* SLIDER CHANTIERS */
*:is(.slider-chantiers, .slider-cartes) {
	width: 120%;
	max-width: 120%;
}
*:is(.slider-chantiers, .slider-cartes) .slick-list {
	width: 100%;
}
/* SLIDER HOME */
.slider-home {
	--skew-x: 7vw;
	--offset: 20px;
	--path: polygon(var(--skew-x) 0, 100% 0, 100% 100%, 0 100%);
}
.slider-home :is(.slick-track, .slick-slide) {
	height: 100%;
	width: 100%;
}
.slider-home .slick-slide {
	position: relative;
	padding: 0 0 var(--offset) var(--offset);
	box-sizing: border-box;
	z-index: 2;
}
.slider-home .slick-slide img {
	clip-path: var(--path);
	width: 100%!important;
	height: 100%!important;
	object-fit: cover;
}
.slider-home .slick-slide::before {
	--skew-x: calc(var(--skew-x) + var(--offset));
	position: absolute;
	display: block;
	content: "";
	top: var(--offset);
	right: 0;
	width: 100%;
	height: calc(100% - var(--offset));
	clip-path: var(--path);
	background-color: var(--main-color);
	z-index: -1;
}
.slider-home .slick-arrow {
	--arrow-size: 30px;
	top: calc(var(--arrow-size) + 10px);
	left: calc(var(--skew-x) + var(--offset) + 10px);
	z-index: 1;
}



.accordeon-item {
	transition: all .2s ease-out;
}
.accordeon-item .accordeon-content {
	height: 0;
	overflow: hidden;
	transition: height .3s ease-out;
}
.accordeon-item.open .accordeon-content {
	height: var(--content-height);
}
.accordeon-item .accordeon-title {
	transition: all .2s ease-out;
	cursor: pointer;
}
.accordeon-item .accordeon-title > *:last-child {
	flex-grow: 2;
	position: relative;
	padding-right: 70px;
}
.accordeon-item .accordeon-title > *:last-child::after {
	position: absolute;
	content: "";
	display: block;
	width: 35px;
	height: 35px;
	background-color: var(--main-color);
	mask: url('./assets/svg/picto_plus.svg') no-repeat center / cover;
	top: 50%;
	transform: translateY(-50%);
	right: 0;
	transition: all .2s ease-out;
}
.accordeon-item.open .accordeon-title > *:last-child::after {
	transform: translateY(-50%) rotate(180deg);
	mask-image: url('./assets/svg/picto_minus.svg')
}

.wp-block-table.is-style-stripes {
	border: none!important;
}
.wp-block-table thead {
	border-bottom: 2px solid var(--main-color)!important;
}
.wp-block-table :is(td, th):not(:last-child) {
	border-right: 1px solid var(--main-color) !important;
}
/****************************/
/***********FOOTER***********/
/****************************/
#main-footer .get-menu.main-menu {
	text-transform: uppercase;
	border-left: 1px solid var(--grey);
}
#main-footer .get-menu li a.menu-link:hover {
	color: var(--main-color);
}

/****************************/
/********DESKTOP ONLY********/
/****************************/
@media (min-width: 981px) {
	
}
/****************************/
/**********TABLETTE**********/
/****************************/
@media (max-width: 980px) {
	#masthead img.custom-logo {
		transform: translateY(-80%);
	}
	/* menu toggle */
	#masthead .menu-toggle {
		--btn-color : var(--main-color);
		position: relative;
		transform: translateY(-10px);
	}
	#masthead .menu-toggle:focus {
		border: none!important;
		outline: none!important;
	}
	#masthead .menu-toggle svg {
		fill: var(--btn-color);
		scale: 1.5;
	}
	#masthead .menu-toggle::after {
		position: absolute;
		content: "MENU";
		font-size: 1.2rem;
		width: max-content;
		height: 1lh;
		text-transform: uppercase;
		color: var(--btn-color);
		bottom: 0px;
		left: 50%;
		transform: translate(-50%, 50%);
		pointer-events: none;
	}
	#masthead .menu-toggle.toggled::after {
		content: "FERMER";
	}
	#masthead .main-header-bar .main-header-menu {
		padding: 20px;
		width: 100%;
		max-width: 350px;
		margin: auto;
		gap: 0;
		background-color: transparent!important;
	}
	#masthead .main-header-bar .main-header-menu li a.menu-link {
		padding: 15px 20px;
		font-size: 1.8rem;
		background-color: transparent!important;
		color: var(--black);
		text-align: center;
	}
	#masthead .main-header-bar .main-header-menu li:first-child a.menu-link::before {
		display: block;
	}
	#masthead .ast-mobile-header-content {
		display: block!important;
		transition: all .3s ease-out;
		border-radius: 0 0 10px 10px;
		box-shadow: 0px 20px 18px 0px #00000050;
	}
	body:not(.ast-main-header-nav-open) #masthead .ast-mobile-header-content {
		opacity: 0;
		pointer-events: none;
		transform: translateY(-50px);
	}
	#masthead .ast-mobile-header-content .main-header-menu {
		background-color: var(--white);
	}

	*:is(.slider-chantiers, .slider-cartes) {
		width: 100%;
	}
	*:is(.slider-chantiers, .slider-cartes) .slick-arrow {
		top: calc(-1 * var(--arrow-size) - 7px);
		left: calc(10px);
	}
	*:is(.slider-chantiers, .slider-cartes) .slick-arrow.slick-next {
		top: -4px;
		left: calc(1 * var(--arrow-size) + 20px);
	}
	
}
/****************************/
/*********SMARTPHONE*********/
/****************************/
@media (max-width: 768px) { 

	
}
@media (max-width: 480px) {
	

}
/****************/
/** KEYFRAMES ***/
/****************/