/*
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, #40CAE5);
	--sub-color: var(--ast-global-color-1, #2A205E);
	--text-color: var(--ast-global-color-3, #2A205E);
    --white : #fff;
	--grey: #C7C6C6;
	--black : #000;
    
	--arial : "Arial Narrow", Arial, sans-serif;
	--raleway:'Raleway', var(--arial);
	--manrope: 'Manrope', var(--raleway);
	--masthead-height : 100px;
}

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

}
#wpadminbar {
	opacity: .7;;
}
#ast-scroll-top {
	border-radius: 50px;
}

h1, .entry-content h1, body *:is(.is-h1) {
	font-size: 7rem;
	font-weight: 700;
	color: var(--white);
	line-height: 1.1;
	margin-bottom: .4lh;
	text-transform: uppercase;
	text-wrap: balance;
}
h2, .entry-content h2, body *:is(.is-h2) {
	font-size: 3.5rem;
	font-weight: 800;
	line-height: 1.3;
	margin-bottom: .5lh;
	text-transform: uppercase;
	text-wrap: balance;
}
h3, .entry-content h3, body *:is(.is-h3) {
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1.3;
	margin-bottom: .5lh;
	text-transform: uppercase;
	text-wrap: balance;
	color: var(--main-color);
}
h4, .entry-content h4, body *:is(.is-h4) {
	font-size: 2.3rem;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: .5lh;
	text-transform: uppercase;
	text-wrap: balance;
}
h5, .entry-content h5, body *:is(.is-h5) {
	font-size: 2rem;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: .5lh;
	text-transform: uppercase;
	text-wrap: balance;
}

/* définit un style commun pour les paragraphes */
p, a, ul li {
	font-family: var(--manrope);
	font-weight: 400;
	line-height: 1.4;
	font-size: 1.8rem;
}
p, .entry-content p {
	margin-top: 0;
	margin-bottom: .6lh;
}
p a, .entry-content li a {
	padding-bottom: 2px;
	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(--sub-color);
}

p a:hover {
	color: var(--sub-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 {
	--ico-size: 30px;
	position: relative;
	display: block;
	padding: 10px 20px 10px calc(var(--ico-size) + 10px);
	background-color: transparent;
	border: none;
	border-radius: 0;
	box-sizing: border-box;
	line-height: 1.2;
	font-size: 1.6rem;
	color: var(--main-color);
	font-family: var(--manrope);
	font-weight: 700;
	text-transform: uppercase;
	text-align: unset;
	box-shadow: none;
	text-decoration: none!important;
	width: fit-content;
	max-width: 100%;

	transition: all .3s ease-out;
}
.wp-block-button .wp-element-button::before {
	position: absolute;
	display: block;
	content: "";

	top: 50%;
	left: 0px;
	transform: translate(0, -50%);
	width: var(--ico-size);
	height: auto;
	aspect-ratio: 1/1;

	background-color: currentColor;
	mask: url(./assets/svg/picto_arrow.svg) center/contain no-repeat;
	-webkit-mask: url(./assets/svg/picto_arrow.svg) center/contain no-repeat;
	transition: inherit;
}
.wp-block-button .wp-element-button::after {
	position: absolute;
	display: block;
	content: "";

	bottom: 5px;
	left: calc(var(--ico-size) + 10px);
	transform: translate(0, 100%);
	width: 0px;
	height: 2px;

	background-color: currentColor;
	transition: inherit;
}
.wp-block-button .wp-element-button:hover {
	background-color: transparent;
	border: none;
	border-radius: 0;
	color: var(--sub-color);
}
.wp-block-button .wp-element-button:hover::after {
	width: calc(100% - ( var(--ico-size) + 30px ) );
}


/****************************/
/**********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 .site-header-primary-section-right {
	display: flex;
	flex-direction: column;
	align-items: end;
	justify-content: center;
	gap: 20px;
}

#masthead .header-btns {
	gap: 20px;
}
#masthead .header-btn {
	--ico-size : 20px;
	position: relative;
	color: var(--white);
	text-transform: uppercase;
	border: 1px solid var(--main-color);
	border-radius: 50px;
	padding: 10px 20px;
	font-size: 1.8rem;
	font-weight: 700;
	transition: all .2s ease-out;
}
#masthead .header-btn:hover {
	background-color: var(--main-color);
}

#masthead .header-btns [class*="ico-"] {
	padding-left: calc(var(--ico-size) + 20px);
}
#masthead .header-btns [class*="ico-"]::after {
	position: absolute;
	display: block;
	content: "";

	left: 10px;
	top: 50%;
	transform: translateY(-50%);

	height: var(--ico-size);
	width: var(--ico-size);

	background-color: var(--main-color);
	mask: url() center/contain no-repeat;
	-webkit-mask: url() center/contain no-repeat;
}
#masthead .header-btns [class*="ico-"]:hover::after {
	background-color: var(--white);
}
#masthead .header-btns .ico-tel::after {
	mask: url(./assets/svg/picto_phone.svg) center/contain no-repeat;
	-webkit-mask: url(./assets/svg/picto_phone.svg) center/contain no-repeat;
}
#masthead .main-header-menu {
	padding: 25px 40px;
	border-radius: 50px;
	background-color: var(--white);
}
#masthead .main-header-menu li a.menu-link {
	--spacing: 40px;
	position: relative;
	font-size: 2.2rem;
	padding: 0 var(--spacing);
	font-weight: 600;
	text-transform: uppercase;
	color: var(--text-color);
	transition: all .2s ease-out;
}
#masthead .main-header-menu li a.menu-link::after {
	position: absolute;
	display: block;
	content: "";

	bottom: 0;
	left: 50%;
	transform: translate(-50%, 100%);

	height: 2px;
	width: 0px;
	background-color: var(--main-color);
	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% - 2 * var(--spacing));
}
#masthead .main-header-menu .sub-menu {
	margin-top: 25px;
	min-width: 300px;
	max-width: 100%;
	border-top-width: 10px;
	padding: 10px;
	opacity: 0;
	left: 50%;
	transform: translate(-50%, -10px);
	transition: all .2s ease-out;
}
#masthead .main-header-menu li:hover .sub-menu {
	opacity: 1;
	transform: translate(-50%, 0);
}
#masthead .main-header-menu .sub-menu::before {
	height: 40px;
}
#masthead .main-header-menu .sub-menu li a.menu-link {
	text-align: center;
	font-size: 1.8rem;
	padding: 5px 0;
}
#masthead #ast-mobile-header .main-header-menu li .sub-menu {
	opacity: 1;
	margin-top: 0;
	transform: none;
}
#masthead #ast-mobile-header .main-header-menu li .ast-menu-toggle {
	top: .7lh;
	background: transparent;
	color: var(--main-color);
	box-shadow: none;
}

#main-header {
	position: relative;
	padding: calc(var(--masthead-height) + 50px) 20px 50px 20px
}
#main-header .header-data {
	position: relative;
	min-height: calc(100vh - (var(--masthead-height) + 100px));
	max-width: 1000px;
	width: 100%;
	margin: auto;
	z-index: 1;
}
#main-header .header-logo-wrapper {
	position: absolute;
	bottom: 0;
	right: 0;
	transform: translate(25%, -10px);
	opacity: .6;
	height: 450px;
	max-height: 50%;
}
#main-header .header-logo {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: bottom right;
}
#main-header .header-subtitle {
	font-size: 2.5rem;
	color: var(--white);
}

#main-header.header-page .header-data {
	min-height: calc(70vh - (var(--masthead-height) + 100px));
}
#main-header.header-page .header-logo-wrapper {
	transform: translate(25%, 20%);
	height: 350px;
	max-height: 40%;
}

#main-header .back-btn {
	margin-bottom: 10px;
	color: var(--main-color);
	background-color: var(--white);
	padding: 5px 20px;
	border-radius: 50px;
	scale: .9;
}

/****************************/
/********** CONTENT *********/
/****************************/
.slide_up, .slide_down, .slide_right, .slide_left {
	opacity: 0; /*ANIMATION GSAP*/
}

body .entry-content .wp-block-sohappy-linked-group-block {
	text-decoration: none;
}
body .hide-col-4 td:nth-child(4) {
	border-color: transparent;
}
/* POSTS */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(var(--grid-col), 1fr);
	gap: 30px;
}
.posts-grid .grid-item {
	text-decoration: none!important;
}
.posts-grid .grid-item-thumb {
	width: 100%;
	height: 300px;
}
.posts-grid .grid-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.posts-grid .grid-item-data {
	--ico-size: 35px;
	position: relative;
	padding-right: calc(var(--ico-size) + 10px);
	margin-top: 20px; 
}
.posts-grid .grid-item-data::after {
	position: absolute;
	display: block;
	content: "";
	top: 50%;
	right: 0;
	transform: translate(0, -50%);
	width: var(--ico-size);
	height: var(--ico-size);
	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;
}
.posts-grid .grid-item-title {
	margin-bottom: 0;
}

.posts-grid .grid-item-subtitle {
	color: var(--text-color);
	opacity: .7;
	font-size: 1.6rem;
}


.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')
}


/* 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 label {
	color: var(--text-color);
}
.CForm input, .CForm textarea {
	font-size: 1.5rem;
	border-color: var(--text-color) 
}
.CForm input:focus, .CForm textarea:focus {
	border: 1px solid var(--main-color)!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;
}

.CForm .wpcf7-spinner {
	position: absolute;
}
.CForm .wpcf7-submit, .CForm .wpcf7-submit:hover  {
	padding: 10px 20px 10px calc(var(--ico-size) + 10px);
	margin: 0;
	color: inherit;
	font-size: inherit;
	text-transform: inherit;
	background: inherit;
	box-shadow: inherit;
}
.CForm .wp-element-button {
	padding: 0;
}


.wp-block-column .wp-block-group[style*="background-image"] {
    background-image: none !important;
}

/****************************/
/***********FOOTER***********/
/****************************/



/****************************/
/********DESKTOP ONLY********/
/****************************/
@media (min-width: 981px) {
	
	
}
/****************************/
/**********TABLETTE**********/
/****************************/
@media (max-width: 980px) {
	h1, .entry-content h1 {
		font-size: 5rem;
	}
	h2, .entry-content h2 {
		font-size: 3.2rem;
	}


	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;
	}
	#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";
	}
	#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 {
		--spacing: 20px;
		background-color: transparent;
		padding: 15px var(--spacing);
		color: var(--main-color);
	}
	#masthead .main-header-menu li a.menu-link::after {
		bottom: 5px;
	}
	#masthead .ast-mobile-header-content {
		display: block!important;
		transition: all .3s ease-out;
		border-bottom: 6px solid var(--main-color);
		padding-bottom: 20px;
	}
	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);
	}
	#masthead .header-btn {
		color: var(--main-color);
	}



	/* POSTS */
	.posts-grid .grid-item-thumb {
		height: 250px;
	}
	.posts-grid .grid-item-data {
		--ico-size: 30px;
	}	
	
}
/****************************/
/*********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;
	}
	/****************************/
	h1, .entry-content h1, body *:is(.is-h1) {
		font-size: 4rem;
	}
	h2, .entry-content h2, body *:is(.is-h1) {
		font-size: 3rem;
	}
	/****************************/
	#main-header .header-subtitle {
		font-size: 1.8rem;
	}

	/* POSTS */
	.posts-grid {
		--grid-col: 1!important;
	}
	.posts-grid .grid-item-thumb {
		height: 250px;
	}

	/* 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) {
	.posts-grid .grid-item-thumb {
		height: 200px;
	}

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