/*
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: #FA7F43;
	--sub-color: #FFB088;
    --white : #fff;
	--grey: #EBE7E0;
	--black : #3D403A;
    
	--poppins: 'Poppins', sans-serif;
	--russo: 'Russo One', var(--poppins);
	--arial : "Arial Narrow", Arial, sans-serif;
}

/* --------------- 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(--poppins);
	color: var(--black);

}
#wpadminbar {
	opacity: .7;
}

h1, .entry-content h1, body *:is(.is-h1) {
	font-family: var(--russo);
	color: var(--grey);
	font-size: 7rem;
	line-height: 1;
	margin-bottom: .4lh;
	font-weight: 400;
}
h2, .entry-content h2, body *:is(.is-h2) {
	font-family: var(--russo);
	color: var(--black);
	font-size: 5.5rem;
	line-height: 1.2;
	margin-bottom: .4lh;
	font-weight: 400;
}
h3, .entry-content h3, body *:is(.is-h3) {
	font-family: var(--russo);
	color: var(--black);
	font-size: 4.4rem;
	line-height: 1.2;
	margin-bottom: .6lh;
	font-weight: 400;
}
h4, .entry-content h4, body *:is(.is-h4) {
	font-family: var(--russo);
	color: var(--black);
	font-size: 3.0rem;
	line-height: 1.2;
	margin-bottom: .6lh;
	font-weight: 400;
}
h5, .entry-content h5, body *:is(.is-h5) {
	font-family: var(--russo);
	color: var(--black);
	font-size: 2.2rem;
	line-height: 1.2;
	margin-bottom: .6lh;
	font-weight: 400;
}

/* définit un style commun pour les paragraphes */
p, a, ul li {
	font-family: var(--poppins);
	font-weight: 400;
	line-height: 1.3;
	font-size: 1.8rem;
}
p, .entry-content p {
	/* margin-top: 0; */
	margin-bottom: .6lh;
}
p a, .entry-content li a {
	border-bottom: var(--main-color) dotted 1px;
	text-decoration: none!important;
	color: inherit;
	font-weight: inherit;
}
.entry-content p a, .entry-content li a {
	color: var(--main-color);
	
}
.entry-content p a:hover, .entry-content li a:hover, .entry-content h4 a:hover{
	color: var(--sub-color);
	border-bottom-color: var(--main-color);
}

p a:hover {
	color: var(--main-color);
}

body .entry-content :is(.has-ast-global-color-0-background-color, .has-ast-global-color-2-background-color) p a, body .entry-content *:is(.has-ast-global-color-0-background-color, .has-ast-global-color-2-background-color) li a {
	color: var(--white);
	border-bottom-color: var(--white);
}

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 {
	display: block;
	padding: 10px 20px;
	background-color: var(--main-color);
	border: 5px solid var(--black);
	border-radius: 50px;
	box-sizing: border-box;
	line-height: 1.2;
	font-size: 1.8rem;
	color: var(--white);
	font-family: var(--russo);
	font-weight:400;
	text-decoration: none!important;
	
	transition: all .2s ease-out;
}
.wp-block-button .wp-element-button:hover {
	background-color: var(--black);
	border: 5px solid var(--black);
	color: var(--main-color);
	border-radius: 50px;
}
body *:is(.has-ast-global-color-0-background-color, .has-ast-global-color-2-background-color) .wp-block-button .wp-element-button {
	background-color: var(--white);
	color: var(--main-color);
}
body *:is(.has-ast-global-color-0-background-color, .has-ast-global-color-2-background-color) .wp-block-button .wp-element-button:hover {
	background-color: var(--main-color);
	color: var(--white);
}
/****************************/
/**********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;
}
.is-hidden {
	visibility: hidden!important;
	position: absolute!important;
}
/* 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;
	transition: all .2s ease-in-out;
}
body:is(.scroll0, .mob_scroll0) #masthead {
	background-color: var(--white);
	-webkit-box-shadow: 0px 0 20px 0px #00000080; 
	box-shadow: 0px 0 20px 0px #00000050;
}

#masthead .main-header-menu {
	display: flex;
	gap: 15px;
}
#masthead .main-header-menu li a.menu-link {
	font-family: var(--russo);
	font-size: 1.6rem;
	color: var(--grey);
	opacity: .8;
	padding: 5px 10px;
	border-bottom: 4px solid transparent;
}
#masthead .main-header-menu > li:is(.current-menu-ancestor, .current-menu-item) a.menu-link, #masthead .main-header-menu > li:hover a.menu-link {
	background-color: var(--grey);
	opacity: 1;
	color: var(--black);
	border-bottom-color: var(--main-color) ;
}

body:is(.scroll0, .mob_scroll0) #masthead .main-header-menu li a.menu-link {
	color: var(--black);
}
body:is(.scroll0, .mob_scroll0) #masthead .main-header-menu > li:is(.current-menu-ancestor, .current-menu-item) a.menu-link, body:is(.scroll0, .mob_scroll0) #masthead .main-header-menu > li:hover a.menu-link {
	background-color: var(--black);
	opacity: 1;
	color: var(--grey);
	border-bottom-color: var(--main-color) ;
}



#main-header {
	position: relative;
	width: 100%;
	height: clamp(400px, 100vh, 1080px);
	box-sizing: border-box;
}
#main-header .header-wrapper {
	position: relative;
	overflow: hidden;
	padding-top: var(--masthead-height, 80px);
}
#main-header .header-thumb {
	--threshold : 10px; 
	--offset-x : 0px;
	--offset-y : 0px;
	position: absolute;
	object-fit: cover;
	width: calc(100% + var(--threshold) * 2);
	height: calc(100% + var(--threshold) * 2);
	max-width: unset;
	max-height: unset;
	top: 50%;
	left: 50%;
	transform: translate(calc(-50% + var(--offset-x, 0px)), calc(-50% + var(--offset-y, 0px)));
	z-index: 0;
}
#main-header .header-data-wrapper {
	position: absolute;
	padding-top: var(--masthead-height);
	z-index: 1;
	left: 50%;
	top: 50%;
	width: 100%;
	transform: translate(-50%, -50%);
}
#main-header .header-data-wrapper > * {
	width: min(600px, 100%);
}
#main-header .header-subtitle {
	font-size: 2.3rem;
	color: var(--grey);
	opacity: .8;
}

#scroller {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, 50%);
	width: 6px;
	height: 120px;

	background: var(--main-color);

	transition: height .2s ease-out;
	animation: scroller 1.5s ease-in-out infinite;
}
body:is(.scroll0, .mob_scroll0) #scroller {
	height: 60px;
	z-index: 10;
}
@keyframes scroller {
	0%, 100% {
		transform: translate(-50%, calc(50% + 5px));
	}
	50% {
		transform: translate(-50%, calc(50% - 5px));
	}
}
/****************************/
/********** CONTENT *********/
/****************************/
.slide_up, .slide_down, .slide_right, .slide_left {
	opacity: 0; /*ANIMATION GSAP*/
}

.separator {
	margin: 25px 0;
	height: 6px;
	background-color: var(--main-color);
	width: min(33%, var(--size ,100px));
}

/* COUNTER */
.entry-content .eb-counter-wrapper .eb-counter-image {
	border-bottom: 1px solid var(--black);
}
.entry-content .eb-counter-wrapper .eb-counter-number {
	font-size: 10rem;
	font-family: var(--russo);
	color: var(--black);
	line-height: 1;
}
.entry-content .eb-counter-wrapper .eb-counter-prefix, .entry-content .eb-counter-wrapper .eb-counter-suffix {
	color: var(--black);
}
.entry-content .eb-counter-wrapper .eb-counter-title {
	font-size: 2rem;
	color: var(--black);
	width: fit-content;
	margin: auto;
	background-color: var(--main-color);
	padding: 2px 7px;
}


.publicite-slider .slick-list {
	padding: 0!important
}
.publicite-slider .slick-slide {
	width: fit-content!important;
	clear: both;
	opacity: .2;
	transition: all .5s ease-out;
}
.publicite-slider .slick-center + .slick-slide {
    opacity: 1;
}


.partners-slider {
    -webkit-mask-image: linear-gradient(to right, transparent 3%, #000 20%, #000 80%, transparent 97%);
    mask-image: linear-gradient(to right, transparent 3%, #000 20%, #000 80%, transparent 97%);
}
.partners-slider .slick-slide {
	padding: 0 10px;
	box-sizing: border-box;
}
.partners-slider img {
	margin: auto;
}

.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 {
	position: relative;
	padding-right: 70px;
}
.accordeon-item .accordeon-title > *:last-child::after {
	position: absolute;
	content: "";
	display: block;
	width: 45px;
	height: 45px;
	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')
}



/* 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(--black)!important;
}
.CForm .CF-highlight {
	color: var(--main-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 .CF-hr {
	position: relative;
}
.CForm .CF-hr h3 {
	display: inline-block;
	padding-right: 20px;
	margin: 0;
	background-color: var(--white);
}
.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;
}

/****************************/
/***********FOOTER***********/
/****************************/
#main-footer .get-menu li{
	padding: 5px 10px;
}
#main-footer .get-menu li a.menu-link{
	color: var(--white);
	padding: 0;
	border-bottom: 1px solid transparent;
	font-size: 1.6rem;
}
#main-footer .get-menu li:last-child{
	flex-grow: 1;
	display: flex;
	justify-content: end;
}
#main-footer .get-menu li:not(:first-child):not(:last-child) {
	position: relative;
}
#main-footer .get-menu li:not(:first-child):not(:last-child)::before {
	position: absolute;
	content: "•";
	color: var(--main-color);
	left: 0;
	top: 50%;
	transform: translate(-50%, -50%) scale(1.5);
	transform-origin: center;
}
#main-footer .get-menu li:not(:last-child) a.menu-link:hover {
	border-bottom: 1px solid var(--main-color);
}



/****************************/
/********DESKTOP ONLY********/
/****************************/
@media (min-width: 981px) {
	
	
}
/****************************/
/**********TABLETTE**********/
/****************************/
@media (max-width: 980px) {
	#wpadminbar {
		display: none;
	}
	/* menu toggle */
	#masthead .menu-toggle {
		--btn-color : var(--grey);
		position: relative;
		transform: translateY(-10px);
	}
	body:is(.scroll0, .mob_scroll0) #masthead .menu-toggle {
		--btn-color: var(--main-color);
	}
	#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-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;
    }
    body .is-mobile-reverted {
		flex-direction: column-reverse;
        flex-wrap: nowrap !important;
    }
	body .is-mobile-column {
		flex-direction: column;
	}
	body .is-mobile-justify-center {
		justify-content: center !important;
	}
	body .is-mobile-align-center {
		align-items: center !important;
	}
	/****************************/
	h1, .entry-content h1, body *:is(.is-h1) {
		font-size: 4rem;
		text-wrap: balance;
	}
	h2, .entry-content h2, body *:is(.is-h2) {
		font-size: 3.3rem;
		text-wrap: balance;
	}
	h3, .entry-content h3, body *:is(.is-h3) {
		font-size: 2.8rem;
		text-wrap: balance;
	}
	h4, .entry-content h4, body *:is(.is-h4) {
		font-size: 2.5rem;
		text-wrap: balance;
	}
	h5, .entry-content h5, body *:is(.is-h5) {
		font-size: 2rem;
		text-wrap: balance;
	}
	p, a, ul li {
		font-size: 1.6rem;
	}

	/* HEADER */
	#masthead .custom-logo {
		width: 60px;
	}
	#main-header .header-subtitle {
		font-size: 1.8rem;
	}

	.entry-content .eb-counter-wrapper .eb-counter-number {
		font-size: 8rem;
	}

	/* SLIDER */
	.publicite-slider .slick-slide, .publicite-slider .slick-center + .slick-slide {
		opacity: .2;
	}
	.publicite-slider .slick-center {
		opacity: 1;
	}
	/* 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 .get-menu li:not(:first-child):not(:last-child)::before {
		display: none;
	}
}
@media (max-width: 480px) {
	

}
/****************/
/** KEYFRAMES ***/
/****************/