/*
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, #7ebb47);
	--sub-color: var(--ast-global-color-0, #adc9d2);
    --white : #fff;
	--grey: #cbc5b4;
	--black : #161616;
    
	--arial : "Arial Narrow", Arial, sans-serif;
	--raleway:'Raleway', var(--arial);
	--nohemi:'Nohemi', var(--raleway);
}

/* --------------- GENERAL ---------------- */
html {
	font-size: 62.5%;
	margin: 0;
	padding: 0;
	width: 100%;
	height: unset;
	margin-top: 0!important;
}
#wpadminbar {
	opacity: .5;
}
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
	font-size: 1.5rem;
	font-family: var(--raleway);

}

h1, .entry-content h1, body .entry-content *:is(.is-h1) {
	font-family: var(--nohemi);
	font-size: 5.5rem;
	font-weight: 500;
	line-height: 1.1;
	margin-bottom: .5lh;
}
h2, .entry-content h2, body .entry-content *:is(.is-h2) {
	font-family: var(--nohemi);
	font-size: 5.5rem;
	font-weight: 500;
	line-height: 1.1;
	margin-bottom: .5lh;
}
h3, .entry-content h3, body .entry-content *:is(.is-h3) {
	font-family: var(--nohemi);
	font-size: 3.5rem;
	font-weight: 500;
	line-height: 1.1;
	margin-bottom: .6lh;
}
h4, .entry-content h4, body .entry-content *:is(.is-h4) {
	font-family: var(--nohemi);
	font-size: 2.6rem;
	font-weight: 500;
	line-height: 1.1;
	margin-bottom: .2lh;
}
h5, .entry-content h5, body .entry-content *:is(.is-h5) {
	font-family: var(--nohemi);
	font-size: 2.4rem;
	font-weight: 500;
	color: var(--main-color);
	line-height: 1.1;
	margin-bottom: .2lh;
}

/* définit un style commun pour les paragraphes */
p, a, ul li {
	font-family: var(--raleway);
	font-weight: 400;
	line-height: 1.3;
	font-size: 1.9rem;
}
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);
}

p a:hover {
	color: var(--main-color);
}

strong {
	font-weight: 700;
}
em {
    font-style: italic;
}
.color-black {
	color: var(--black);
}
.color-white {
	color: var(--white);
}

/*********BOUTON**********/
.ast-custom-button-link .ast-custom-button {
	min-width: max-content;
}
.wp-block-button .wp-element-button, .ast-custom-button-link .ast-custom-button {
	--ico-size : 40px;
	position: relative;
	display: block;
	padding: 10px calc(25px + var(--ico-size)) 10px 25px;
	text-align: center;
	background-color: transparent;
	border: none;
	border-radius: 50px;
	box-sizing: border-box;
	line-height: 1.2;
	font-size: 1.8rem;
	color: var(--white);
	font-family: var(--raleway);
	font-weight:400;
	text-decoration: none!important;
	text-wrap: balance;
	z-index: 1;

	transition: all .2s ease-in-out;
}
.wp-block-button .wp-element-button::before, .ast-custom-button-link .ast-custom-button::before {
	position: absolute;
	display: block;
	content: "";

	left: 0;
	top: 50%;

	transform: translateY(-50%);

	width: calc(100% + 1px - var(--ico-size));
	height: 100%;
	border: 1px solid var(--main-color);
	border-radius: 50px;
	z-index: -1;
	transition: inherit;
}
.wp-block-button .wp-element-button::after, .ast-custom-button-link .ast-custom-button::after {
	position: absolute;
	display: block;
	content: "";

	right: 0;
	top: 50%;

	transform: translateY(-50%) rotate(-45deg);
	width: var(--ico-size);
	height: var(--ico-size);

	background: url(./assets/svg/picto_arrow.svg) center center / contain no-repeat;
	transition: inherit;
	z-index: 1;
}
/* HOVER STATE */
.wp-block-button .wp-element-button:hover, .ast-custom-button-link:hover .ast-custom-button {
	background-color: transparent;
	color: var(--white);
	border: none;
	border-radius: 50px;
	padding: 10px calc(25px + var(--ico-size)) 10px 25px;
}
.wp-block-button .wp-element-button:hover::before, .ast-custom-button-link .ast-custom-button:hover::before {
	background-color: var(--main-color);
	width: 100%;
}
.wp-block-button .wp-element-button:hover::after, .ast-custom-button-link .ast-custom-button:hover::after {
	transform: translateY(-50%);
}

.wp-block-button.minimalist-btn .wp-element-button {
	border: 1px solid #ffffff90;
	padding: 10px 20px;
}
.wp-block-button.minimalist-btn .wp-element-button:hover {
	background-color:#ffffff90;
	color: var(--black);
}
.wp-block-button.minimalist-btn .wp-element-button::before, .wp-block-button.minimalist-btn .wp-element-button::after {
	display: none;
}

body *:is(.has-ast-global-color-5-background-color) .wp-block-button:not(.minimalist-btn) .wp-element-button {
	color: var(--black);
}
body *:is(.has-ast-global-color-5-background-color) .wp-block-button:not(.minimalist-btn) .wp-element-button:hover {
	color: var(--white);
}

/****************************/
/**********SPECIFIC**********/
/****************************/
body .FlexContainer {
	display: flex!important;
	flex-flow: row wrap;
}
body .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!important;
	width: 100%;
	top: 0;
	box-shadow: 0px 0 20px 0px #00000000;
	transition: all .2s ease-out;
}
body:is(.scroll0, .mob_scroll0) #masthead {
	background-color: var(--white)!important;
	box-shadow: 0px 0 20px 0px #00000050;
}
body:is(.scroll0, .mob_scroll0) #masthead .main-header-menu li a.menu-link {
	color: var(--black);
}
body:is(.scroll0, .mob_scroll0) #masthead .ast-custom-button {
	color: var(--black);
}
body:is(.scroll0, .mob_scroll0) #masthead .ast-custom-button:hover {
	color: var(--white);
}
body:is(.scroll0, .mob_scroll0) #masthead .get-social {
	--social-color: var(--black)!important;
	--social-color-backup: var(--black)!important;
}
body:is(.scroll0, .mob_scroll0) #masthead .get-social a.social:hover {
	--social-color: var(--white);
}
#masthead .main-header-menu {
	display: flex;
	justify-content: center;
	gap: 15px;
}
#masthead .main-header-menu li a.menu-link {
	--spacing: 7px;
	position: relative;
	font-size: 1.8rem;
	font-family: var(--nohemi);
	color: var(--white);
	padding: 5px var(--spacing);
	line-height: 1;

	transition: all .2s ease-in-out;
}
#masthead .main-header-menu li a.menu-link::after  {
	position: absolute;
	display: block;
	content: '';

	background-color: var(--main-color);
	width: 0;
	height: 2px;

	bottom: 0;
	left: 50%;
	transform: translate(-50%, 0);
	transition: inherit;
}
#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(--spacing) * 2);
}
/****************************/
/********** CONTENT *********/
/****************************/
body #primary {
	margin-top: var(--masthead-height)!important;
}
.slide_up, .slide_down, .slide_right, .slide_left {
	opacity: 0; /*ANIMATION GSAP*/
}
.glass-container {
	border: 1px solid #ffffff90;
	backdrop-filter: blur(5px);
}

body .slick-slider, body .slick-slider .slick-list {
	width: 100%;
	height: 100%;
	display: block;
}
body .slick-slider .slick-slide {
	box-sizing: border-box;
}

.slick-slider .slick-arrow {
	position: absolute;
	display: block;
	font-size: 0px;
	width: 40px;
	height: 40px;
	padding: 0;
	background: url(./assets/svg/picto_arrow.svg) center center / contain no-repeat;

	top: -20px;
	right: 20px;
	transform: translate(0, -100%);

	z-index: 2;
}
.slick-slider .slick-arrow.slick-prev {
	transform: translate(-120%, -100%) rotate(180deg);
}
.slick-slider .slick-dots {
	position: absolute;
	display: flex;
	justify-content: center;
	align-items: center;
	bottom: -20px;
	left: 50%;
	transform: translate(-50%, 100%);
	gap: 5px;

	list-style: none;
}
.slick-slider .slick-dots li {
	line-height: 1;
}
.slick-slider .slick-dots button {
	--dot-size: 17px;
	font-size: 0px;
	padding: 0;
	width: var(--dot-size);
	height: var(--dot-size);
	scale: .8;
	transition: all .2s ease-out;
}
.slick-slider .slick-active button, .slick-slider button:hover {
	background-color: var(--main-color);
	scale: 1;
}


.carousel-slider .slide{
	padding: 10px;
  	box-sizing: border-box;
}

.flip-boxes {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 20px;
}
.flip-boxes .flip-box {
	transition: all .2s ease-out;
	margin: 0;
	min-height: 500px;
}
.flip-boxes .flip-box * {
	transition: inherit;
}

.flip-boxes .flip-box.active {
	width: 100%!important;
}
.flip-boxes .flip-box:not(.active) {
	width: fit-content!important;
	cursor: pointer;
}

.flip-boxes .flip-box:not(.active) .flip-container > *:not(.flip-title)  {
	opacity: 0;
	pointer-events: none;
	position: absolute;
}

.flip-boxes .flip-box:not(.active) .flip-title {
	max-height : 500px;
	writing-mode: sideways-lr;
}



.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')
}

/******* 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;
}

.wp-block-cover.has-overlap-top, .wp-block-cover.has-overlap-bottom {
	overflow: unset;
}

/* 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;
	border-radius: 30px;
}
.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 label {
	color: var(--white);
	font-family: var(--nohemi);
}
.CForm .CF-number label > span {
	width: 150px;
	display: block;
}
.CForm .CF-textarea .wpcf7-textarea  {
	resize: vertical;
}
.CForm .wp-element-button {
	padding: 0!important;
}
.CForm .wpcf7-submit {
	border: none;
	border-radius: none;
	background-color: transparent!important;
	box-shadow: none!important;
	padding: 11px 65px 11px 25px;
	font-size: 1.8rem;
}
.CForm .wpcf7-spinner {
	position: absolute;
}
.CForm .CF-hr {
	position: relative;
}
.CForm .CF-hr h3 {
	display: inline-block;
	padding-right: 20px;
	margin: 0;
	background-color: var(--black);
}
.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;
}

.has-background .CForm label {
	color: var(--black);
}
.has-background .CForm .CF-hr h3 {
	background-color: var(--white);
	color: var(--black);
}
.has-background .CForm .wp-element-button input {
	color: var(--black);
}
.has-background .CForm .wp-element-button:hover input {
	color: var(--white);
}

#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 .get-menu li a.menu-link {
	color: var(--white);
	font-family: var(--nohemi);
}
#main-footer .get-menu li a.menu-link:hover {
	color: var(--main-color);
}


/****************************/
/********DESKTOP ONLY********/
/****************************/
@media (min-width: 981px) {
	
	
}
/****************************/
/**********TABLETTE**********/
/****************************/
@media (max-width: 980px) {
	/* menu toggle */
	body #masthead .ast-mobile-header-content {
		background-color: var(--white);
	}
	#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;
		transition: fill .2s ease-out;
	}
	body:is(.scroll0, .mob_scroll0) #masthead .menu-toggle svg {
		fill: var(--black);
	}
	#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;
		transition: color .2s ease-out;
	}
	#masthead .menu-toggle.toggled::after {
		content: "FERMER";
	}
	body:is(.scroll0, .mob_scroll0) #masthead .menu-toggle::after {
		color: var(--black);
	}
	#masthead .main-header-menu {
		padding: 20px;
		width: 100%;
		max-width: 350px;
		margin: auto;
		gap: 0;
		background-color: var(--white);
	}
	#masthead .ast-mobile-header-content > * {
		justify-content: center;
		align-items: center;
	}
	#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);
	}
	#masthead .ast-mobile-header-content .ast-custom-button {
		color: var(--black);
	}

	#main-header .wp-block-columns {
		flex-direction: column;
	}
	#main-header .wp-block-column:has(.glass-container) {
		flex-basis: unset!important;
	}
	/****************************/
	h1, .entry-content h1, body .entry-content *:is(.is-h1) {
		font-size: 4rem;
	}
	h2, .entry-content h2, body .entry-content *:is(.is-h2) {
		font-size: 4rem;
	}
	h3, .entry-content h3, body .entry-content *:is(.is-h3) {
		font-size: 3rem;
	}
	h4, .entry-content h4, body .entry-content *:is(.is-h4) {
		font-size: 2.4rem;
	}
	h5, .entry-content h5, body .entry-content *:is(.is-h5) {
		font-size: 2rem;
	}
	/****************************/
	.flip-boxes {
		flex-direction: column;
	}
	.flip-boxes .flip-box, .flip-boxes .flip-box:not(.active) {
		min-height: unset;
		width: 100%!important;
	}
	.flip-boxes .flip-box .flip-title {
		writing-mode: unset!important;
		margin-bottom: 0!important;
	}
}
/****************************/
/*********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-reverted {
		flex-direction: column-reverse;
        flex-wrap: nowrap !important;
    }
	.is-mobile-justify-center {
		justify-content: center !important;
	}
	.is-mobile-align-center {
		align-items: center !important;
	}
	.is-mobile-column {
		flex-direction: column!important;
	}
	/****************************/
	h1, .entry-content h1, body .entry-content *:is(.is-h1) {
		font-size: 3.5rem;
	}
	h2, .entry-content h2, body .entry-content *:is(.is-h2) {
		font-size: 3.2rem;
	}
	h3, .entry-content h3, body .entry-content *:is(.is-h3) {
		font-size: 2.6rem;
	}
	h4, .entry-content h4, body .entry-content *:is(.is-h4) {
		font-size: 2.3rem;
	}
	h5, .entry-content h5, body .entry-content *:is(.is-h5) {
		font-size: 2rem;
	}
	p, a, ul li {
		font-size: 1.8rem;
	}
	/****************************/
	#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;
	} 
	/* 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%;
	}
}
@media (max-width: 480px) {
	

}
/****************/
/** KEYFRAMES ***/
/****************/