/*
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: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Version: 1.0.0
*/
/******************************/
/********** Variables CSS *****/
/******************************/
:root {
	--main-color: var(--ast-global-color-0, #48a036);
	--sub-color: var(--ast-global-color-1, #72ce5f);
	--third-color: var(--ast-global-color-2, #35353f);
    --white : #fff;
	--grey: #C7C6C6;
	--black : #000;
    
	--montserrat:'Montserrat', sans-serif;
	--arial : "Arial Narrow", Arial, sans-serif;
}

#wpadminbar{
	position: fixed;
	opacity: .7;
	z-index: 999999999;
}
/* --------------- GENERAL ---------------- */
html {
	font-size: 62.5%;
	margin: 0!important;
	padding: 0;
	width: 100%;
	height: unset;
}
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
	font-size: 1.5rem;
	font-family: var(--montserrat);
	color: var(--black);

}

h1, .entry-content h1, *:is(.is-h1) {
	font-size: 4rem;
	font-weight: 500;
	color: var(--white);
	line-height: 1.1;
	text-transform: uppercase;
	margin: 0 0 .6lh 0;
}
h2, .entry-content h2, *:is(.is-h2) {
	font-size: 3.5rem;
	font-weight: 500;
	line-height: 1.1;
	text-transform: uppercase;
	margin-bottom: .6lh;
}
h3, .entry-content h3, *:is(.is-h3) {
	position: relative;
	font-size: 2.4rem;
	font-weight: 500;
	line-height: 1.1;
	text-transform: uppercase;
	margin-bottom: 1lh;
}
h3:after, .entry-content h3:after, *:is(.is-h3):after {
	position: absolute;
	display: block;
	content: "";
	left: 0;
	bottom: 0;
	transform: translateY(.5lh);
	width: 100%;
	height: 1px;
	background-color: var(--sub-color);
}
h3.no-after, .entry-content h3.no-after, *:is(.is-h3).no-after {
	margin-bottom: .6lh;
}
h4, .entry-content h4, *:is(.is-h4) {
	font-size: 2rem;
	font-weight: 500;
	line-height: 1.1;
	text-transform: uppercase;
	margin-bottom: .6lh;
}
h5, .entry-content h5, *:is(.is-h5) {
	font-size: 2rem;
	font-weight: 400;
	line-height: 1.1;
	text-transform: uppercase;
	margin-bottom: .6lh;
}

/* définit un style commun pour les paragraphes */
p, a, ul li {
	font-family: var(--montserrat);
	font-weight: 400;
	line-height: 1.5;
	font-size: 2rem;
}
p, .entry-content p {
	margin-top: 0;
	margin-bottom: .7lh;
}
p a, .entry-content li a {
	padding-bottom: 2px;
	border-bottom: var(--sub-color) dotted 1px;
	text-decoration: none!important;
	color: inherit;
	font-weight: inherit;
}
.entry-content p a, .entry-content li a {
	color: var(--sub-color);
	
}
.entry-content p a:hover, .entry-content li a:hover, .entry-content h4 a:hover{
	color: var(--main-color);
	border-bottom-color: var(--main-color);
}

strong {
	font-weight: 700;
}
em {
    font-style: italic;
}
.color-black {
	color: var(--black);
}
.color-white {
	color: var(--white);
}

/*********BOUTON**********/
.wp-block-button .wp-element-button, .wp-block-button .wp-element-button:focus {
	--button-color : var(--main-color);
	position: relative;
	display: block;
	padding: 6px 50px 6px 10px;
	background-color: transparent;
	border: 1px solid transparent;
	border-bottom-color: var(--button-color);
	border-radius: 0;
	box-sizing: border-box;
	line-height: 1.2;
	font-size: 1.6rem;
	font-weight: 500;
	color: var(--button-color);
	font-family: var(--montserrat);
	text-transform: uppercase;
	text-decoration: none!important;
	
	transition: all .2s ease-out;
}
.wp-block-button .wp-element-button:hover {
	padding: 6px 50px 6px 10px;
	background-color: transparent;
	border: 1px solid transparent;
	border-bottom-color: var(--button-color);
	border-radius: 0;
	color: var(--button-color);
}
.wp-block-button .wp-element-button:after {
	position: absolute;
	display: block;
	content: "";
	bottom: -1px;
	right: 0;
	background-color: var(--button-color);
	mask: url('./assets/svg/picto_arrow.svg') no-repeat center / cover;
	-webkit-mask: url('./assets/svg/picto_arrow.svg') no-repeat center / cover;

	width: 40px;
	height: calc(100% + 1px);
	transition: inherit;
}
.wp-block-button .wp-element-button:hover:after {
	transform: translateX(7px);
}

/****************************/
/**********SPECIFIC**********/
/****************************/
.FlexContainer {
	display: flex!important;
	flex-flow: row wrap;
}
.ContainerFlex {
	display: flex;
	flex-flow: column;
}
.center-row {
	display: flex!important;
	flex-flow: row wrap;
	align-items: center;
}
.align-center-row {
	align-items: center;
}
.justify-center-row {
	justify-content: center;
}
.align-end-row {
	align-items: flex-end!important;
}
.justify-end-row {
	justify-content: end;
}
.justify-between-row {
	justify-content: space-between;
}
.justify-around-row {
	justify-content: space-around;
}
/* enlève la marge interne*/
.no-padding {
	padding: 0!important;
}
/* enlève la marge externe*/
.no-margin {
	margin: 0!important;
}
/* bouton non cliquable */
.no-click {
	pointer-events: none;
	cursor: none;
}
/* sections en fullwidth */
.fullwidth {
	width: 100%!important;
	max-width: 100%!important;
}
.fullheight {
	height: 100%!important;
	max-height: 100%!important;
}
/* Centre le background et remplit la div */
.full-background-fit {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
/* cache le after et le before */
.no-after:after {
	visibility: hidden!important;
}
.no-before:before {
	visibility: hidden!important;
}
.no-desktop {
	display: none!important;
}
@media (max-width: 980px) {
	.no-desktop {
		display: unset!important;
	}
	.no-tablet {
		display: none!important;
	}
}
@media (max-width: 768px) {
	.no-tablet {
		display: unset!important;
	}
	.no-mobile {
		display: none!important;
	}
}
.min-width {
	width: 60%!important;
	margin: auto;
}

.text_image {
	height: 2.5rem;
	padding: 0 10px;
}
.img-zoom, .img-zoom * {
	overflow: hidden;
}
.img-zoom img {
	transition: all .5s ease-out;
}
.img-zoom:hover img {
	transform: scale(1.1);
}

/****************************/
/********** HEADER **********/
/****************************/
#masthead {
	position: fixed;
	width: 100vw;
	top: 0;
}
#masthead .ast-primary-header-bar {
	background-color: var(--main-color);
	border: none!important;
}
#masthead .main-header-menu li {
	padding: 0 3px;
}
#masthead .main-header-menu li a.menu-link {
	--h-padding : 15px;

	position: relative;
	color : var(--white);
	text-align: center;
	text-transform: uppercase;
	padding: 5px var(--h-padding);
}
#masthead .main-header-menu li a.menu-link::after {
	position: absolute;
	display: block;
	content: "";
	
	background-color: var(--sub-color);
	height: 1px;
	width: 0;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 100%);
	transition: all .2s ease-in-out;
}
#masthead .main-header-menu li a.menu-link:hover::after, #masthead .main-header-menu li.current-menu-item a.menu-link::after {
	width: calc(100% - (var(--h-padding) * 2 ));
}

#masthead .main-header-menu li.current-menu-item a.menu-link {
	font-weight: 700;
}


#main-header {
	padding-top: var(--masthead-height);
	box-sizing: border-box;
	position: relative;
	border-left: min(300px, 15vw) solid var(--main-color);
	width: 100vw;
	height: clamp(50vh, 850px, calc(100vh - var(--masthead-height)));
}
#main-header.header-page {
	height: clamp(50vh, 600px, calc(100vh - var(--masthead-height)));
}
#main-header .header-slider {
	position: absolute;
	width: 100%;
	height: calc(100% - var(--masthead-height));
	top: var(--masthead-height);
	z-index: 0;
}
#main-header .header-slider > div, #main-header .header-slider > div > div {
	height: 100%;
} 

#main-header .header-data {
	position: relative;
	width: 100%;
	gap: 20px 40px;
	transform: translateX(max(-150px, -8vw));
	pointer-events: none;
	z-index: 1;
	flex-wrap: nowrap;
}
#main-header .header-data .header-logo {
	flex-shrink: 0;
}

#main-header.header-page .header-logo img {
	height: 300px;
	max-height: 80%;
	object-fit: contain;
}
#main-header .header-title {
	pointer-events: all;
}
/****************************/
/********** CONTENT *********/
/****************************/
.slide_up, .slide_down, .slide_right, .slide_left {
	opacity: 0; /*ANIMATION GSAP*/
}

.slick-slider {
	opacity: 0;
	display: none;
	transition: opacity .2s ease-out;
}
body.jq-init .slick-slider{
	display: block;
	opacity: 1;
}

/******* HAS-OVERLAP *******/
.has-overlap-top {
	--overlap-margin-top : 100px;
	z-index: 5;
}
.has-overlap-top.has-overlap-margin {
	margin-top: var(--overlap-margin-top)!important;
}
.has-overlap-bottom {
	--overlap-margin-bottom : 100px;
	z-index: 5;
}
.has-overlap-bottom.has-overlap-margin {
	margin-bottom: var(--overlap-margin-bottom)!important;
}


/* slider expertise */
.expertise-nav-slider .slick-slide {
	cursor: pointer;
	padding: 10px 20px; 
	flex-wrap: nowrap;
	box-sizing: border-box;
}
.expertise-nav-slider .slick-slide .slider-number {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--white);
	transition: all .2s ease-out;
}
.expertise-nav-slider .slick-slide.active .slider-number {
	background-color: var(--white);
	color: var(--main-color)!important;
}
.expertise-slider .slick-list {
	overflow-x: clip!important;
	overflow-y: visible!important;
}
.expertise-slider .slick-slide {
	padding: 0 20px; 
	box-sizing: border-box;
}

/* CONTACT FORM 7 */
.CForm {
	width: 100%;
	gap: 20px;
}
.CForm .CF-full {
	width: 100%;
}
.CForm .CF-half { width: calc(50% - 10px); }
.CForm .CF-onethird { width: calc(33% - 10px); }
.CForm .CF-twothird { width: calc(66% - 10px); }
.CForm .CF-onequarter {	width: calc(25% - 10px); }
.CForm .CF-threequarter { width: calc(75% - 10px); }

.CForm input, .CForm textarea {
	font-size: 1.5rem;
}
.CForm input:focus, .CForm textarea:focus {
	border: 1px solid var(--grey)!important;
}
.CForm .CF-highlight {
	color: var(--sub-color);
	font-weight: 800;
}

.CForm .CF-checkbox .wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
}
.CForm .CF-checkbox .wpcf7-list-item {
	margin: 0 0 5px 1%;
	width: 32%;
	min-width: 250px;
}
.CForm .CF-radio .wpcf7-radio {
	display: block;
}
.CForm .CF-radio .wpcf7-list-item {
	margin: 0 0 5px 1%;
	width: 99%;
}
.CForm .wpcf7-not-valid {
	border: 1px solid #dc3232;
}
.CForm .wpcf7-not-valid-tip {
	position: absolute;
	font-size: 1rem;
	bottom: 0;
	transform: translate(0,80%);
}
.CForm .CF-number label > span {
	width: 150px;
	display: block;
}
.CForm .CF-textarea .wpcf7-textarea  {
	resize: vertical;
}
.CForm .wpcf7-submit, .CForm .wpcf7-submit:hover {
	padding: 5px 15px;
	border-color: var(--main-color);
}
.CForm .wpcf7-submit:hover {
	background-color: var(--main-color);
	color: var(--white);
}

.CForm .CF-hr {
	position: relative;
}
.CForm .CF-hr h3 {
	display: inline-block;
	padding-right: 20px;
	margin: 0;
	background-color: var(--white);
	color: var(--main-color);
}
.CForm .CF-hr::before {
	position: absolute;
	content: "";
	display: block;

	width: 100%;
	height: 2px;
	background-color: var(--main-color);

	top: 50%;
	left: 0;
	transform: translate(0, -50%);
	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 * {
	color: var(--white);
	font-weight: 400!important;
}
.accordeon-item .accordeon-title > *:last-child {
	position: relative;
	padding-right: 70px;
}
.accordeon-item .accordeon-title > *:last-child::after {
	position: absolute;
	content: "";
	display: block;
	width: 1.5lh;
	height: 1.5lh;
	background-color: var(--white);
	mask: url('./assets/svg/picto_arrow.svg') no-repeat center / cover;
	top: -25%;
	right: 0;
	transition: all .2s ease-out;
}
.accordeon-item.open .accordeon-title > *:last-child::after {
	transform: rotate(90deg);
}

#cmplz-document p, #cmplz-document li, #cmplz-document td, .editor-styles-wrapper .cmplz-unlinked-mode p, .editor-styles-wrapper .cmplz-unlinked-mode li, .editor-styles-wrapper .cmplz-unlinked-mode td {
	font-size: 1.8rem;
} 

/****************************/
/***********FOOTER***********/
/****************************/
#main-footer figure img {
	vertical-align: middle; /*fix logo */
}
#main-footer .get-menu li a.menu-link {
	position: relative;
	color: var(--white);
}
#main-footer .get-menu li {
	width: fit-content;
	max-width: 100%;
}
#main-footer .main-menu {
	gap: 5px;
}
#main-footer .main-menu li a.menu-link {
	--h-padding : 15px;

	text-transform: uppercase;
	padding: 5px var(--h-padding);
}
#main-footer .main-menu li a.menu-link::after {
	position: absolute;
	display: block;
	content: "";
	
	background-color: var(--sub-color);
	height: 1px;
	width: 0;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 100%);
	transition: all .2s ease-in-out;
}
#main-footer .main-menu li a.menu-link:hover::after, #main-footer .main-menu li.current-menu-item a.menu-link::after {
	width: calc(100% - (var(--h-padding) * 2 ));
}

#main-footer .footer-menu li:not(:last-child) a.menu-link::after {
	position: absolute;
	display: block;
	content: "-";
	right: 0;
	top: 50%;
	transform: translate(50%, -50%);
	color: inherit;
	pointer-events: none;
}

/****************************/
/********DESKTOP ONLY********/
/****************************/
@media (min-width: 981px) {
	
	
}
/****************************/
/**********TABLETTE**********/
/****************************/
@media (max-width: 980px) {
	h1, .entry-content h1, *:is(.is-h1) {
		font-size: 3.5rem;
	}
	h2, .entry-content h2, *:is(.is-h2) {
		font-size: 3rem;
	}
	h3, .entry-content h3, *:is(.is-h3) {
		font-size: 2.4rem;
	}
	h4, .entry-content h4, *:is(.is-h4) {
		font-size: 2rem;
	}
	h5, .entry-content h5, *:is(.is-h5) {
		font-size: 2rem;
	}
	p, a, ul li {
		font-size: 1.8rem;
	}

	/* menu toggle */
	#masthead .menu-toggle {
		position: relative;
		transform: translateY(-10px);
	}
	#masthead .menu-toggle:focus {
		border: none!important;
		outline: none!important;
	}
	#masthead .menu-toggle svg {
		fill: var(--white);
		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(--white);
		bottom: 0px;
		left: 50%;
		transform: translate(-50%, 50%);
		pointer-events: none;
	}
	#masthead .menu-toggle.toggled::after {
		content: "FERMER";
	}
	#masthead .main-header-menu {
		padding: 20px;
		width: 100%;
		max-width: 350px;
		margin: auto;
		gap: 0;
	}
	#masthead .main-header-menu li a.menu-link {
		padding: 15px 20px;
		color: var(--main-color);
	}
	#masthead .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;
	}
	body:not(.ast-main-header-nav-open) #masthead .ast-mobile-header-content {
		opacity: 0;
		pointer-events: none;
		transform: translateY(-50px);
	}
	
}
/****************************/
/*********SMARTPHONE*********/
/****************************/
@media (max-width: 768px) { 
	/**********SPECIFIC**********/
	.is-mobile-center, .is-mobile-center * {
		text-align: center;
    }
    .is-mobile-left, .is-mobile-left * {
		text-align: left;
    }
    .is-mobile-fullwidth {
		width: 100%!important;
    }
	.no-mobile-border {
		border: none;
    }
    .no-mobile-margin {
		margin: 0!important;
    }
    .no-mobile-padding {
		padding: 0!important;
    }
	.is-mobile-column {
		flex-direction: column!important;
	}
    .is-mobile-reverted {
		flex-direction: column-reverse!important;
        flex-wrap: nowrap !important;
    }
	.is-mobile-justify-center {
		justify-content: center !important;
	}
	.is-mobile-align-center {
		align-items: center !important;
	}
	/****************************/
	h1, .entry-content h1, *:is(.is-h1) {
		font-size: 3.1rem;
	}
	h2, .entry-content h2, *:is(.is-h2) {
		font-size: 2.7rem;
	}
	h3, .entry-content h3, *:is(.is-h3) {
		font-size: 2.2rem;
	}
	h4, .entry-content h4, *:is(.is-h4) {
		font-size: 1.6rem;
	}
	h5, .entry-content h5, *:is(.is-h5) {
		font-size: 1.6rem;
	}
	p, a, ul li {
		font-size: 1.6rem;
	}
	#cmplz-document p, #cmplz-document li, #cmplz-document td, .editor-styles-wrapper .cmplz-unlinked-mode p, .editor-styles-wrapper .cmplz-unlinked-mode li, .editor-styles-wrapper .cmplz-unlinked-mode td {
		font-size: 1.6rem;
	} 


	#main-header .header-data {
		padding: 20px;
		box-sizing: border-box;
		transform: translateX(0);
	}

	/* CONTACT FORM 7 */
	.CForm .CF-half, .CForm .CF-onethird, .CForm .CF-twothird, .CForm .CF-onequarter, .CForm .CF-threequarter  {
		width: calc(100% - 10px);
	}
	.CForm .CF-checkbox .wpcf7-list-item {
		width: 99%;
	}


	#main-footer .footer-menu li a.menu-link::after {
		display: none!important;
	}
}
@media (max-width: 480px) {
	

}
/****************/
/** KEYFRAMES ***/
/****************/