/*
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);
    --white : #fff;
	--grey: #C7C6C6;
	--black : #020a0a;
    
	--arial : "Arial Narrow", Arial, sans-serif;
	--raleway:'Raleway', var(--arial);
	--sora: 'Sora', var(--raleway);
}

/* --------------- 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(--sora);
}
#wpadminbar {
	opacity: .7;
}

h1, .entry-content h1, body *:is(.is-h1) {
	font-family: var(--sora);
	font-weight: 700;
	font-size: 7.5rem;
	line-height: 1.1;
	margin-bottom: .6lh;
}
h1 strong, .entry-content h1 strong, body *:is(.is-h1) strong {
	color: var(--main-color);
}
body:not(.jq-init) h1 strong, body:not(.jq-init) .entry-content h1 strong, body:not(.jq-init) body *:is(.is-h1) strong {
	opacity: 0; /*ANIMATION GSAP*/
}
h2, .entry-content h2, body *:is(.is-h2) {
	font-family: var(--sora);
	font-size: 5.5rem;
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: .6lh;
	text-wrap: balance;
}
h2 strong, .entry-content h2 strong, body *:is(.is-h2) strong {
	color: var(--main-color);
}
h3, .entry-content h3, body *:is(.is-h3) {
	font-family: var(--sora);
	font-size: 3rem;
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: .6lh;
	text-wrap: balance;
}
h3 strong, .entry-content h3 strong, body *:is(.is-h3) strong {
	color: var(--main-color);
}
h4, .entry-content h4, body *:is(.is-h4) {
	font-family: var(--sora);
	font-size: 2.5rem;
	font-weight: 600;
	line-height: 1.1;
	margin-bottom: .6lh;
	text-wrap: balance;
}
h4 strong, .entry-content h4 strong, body *:is(.is-h4) strong {
	color: var(--main-color);
}
h5, .entry-content h5, body *:is(.is-h5) {
	font-family: var(--sora);
	font-size: 1.8rem;
	font-weight: 600;
	line-height: 1.1;
	margin-bottom: .6lh;
	text-wrap: balance;
}
h5 strong, .entry-content h5 strong, body *:is(.is-h5) strong {
	color: var(--main-color);
}

/* définit un style commun pour les paragraphes */
p, a, ul li {
	font-family: var(--sora);
	font-weight: 400;
	line-height: 1.3;
	font-size: 1.6rem;
}
p, .entry-content p {
	margin-top: 0;
	margin-bottom: .7lh;
}
.entry-content ul {
	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);
}
#content .wp-block-group {
	/* margin-bottom: 5%; */
}

/*********BOUTON**********/
.wp-block-button .wp-element-button {
	display: block;
	padding: 10px 20px;
	background-color: var(--main-color);
	border: 1px solid var(--main-color);
	border-radius: 50px;
	box-sizing: border-box;
	line-height: 1.2;
	font-size: 1.6rem;
	color: var(--black);
	font-family: var(--sora);
	font-weight: 600;
	text-decoration: none!important;

	transition: all .2s ease-out;
}
.wp-block-button .wp-element-button:hover {
	background-color: var(--sub-color);
	border: 1px solid var(--sub-color);
	border-radius: 50px;
}
*:is(.has-ast-global-color-0-background-color, .has-ast-global-color-1-background-color) .wp-block-button .wp-element-button, .wp-block-button.light-btn .wp-element-button {
	background-color: transparent;
	border-color: var(--white);
	color: var(--white);
}
*:is(.has-ast-global-color-0-background-color, .has-ast-global-color-1-background-color) .wp-block-button .wp-element-button:hover, .wp-block-button.light-btn .wp-element-button:hover {
	background-color: var(--white);
	color: var(--black)
}


/****************************/
/**********TABLES**********/
/****************************/
   
/* Symboles colorés */
.ok   { color: #2e7d32; font-size: 2rem; font-weight: 700; }
.warn { color: #e65100; font-size: 2rem;  font-weight: 700; }
.no   { color: #c62828; font-size: 2rem; font-weight: 700; }

/* Légende */
.legend {
	margin-top: 1rem;
	display: flex;
	gap: 1.5rem;
	font-size: 1.5rem;
	color: #555;
	flex-wrap: wrap;
}

.legend span {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}


.tableau-familles table {
	border : 3px solid var(--main-color);
	border-radius: 10px;
}
.tableau-familles td, .tableau-familles th {
	 text-align: left;
	 font-size: 1.4rem;
	 border : 1px solid var(--main-color);
}

.tableau-familles {
	max-width: 100%;
	overflow: scroll;
}

/****************************/
/**********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;
}
.width-max-content {
	width: fit-content;
	max-width: 100%;
}
/* 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 **********/
/****************************/
body:not(.jq-init) #masthead {
	opacity: 0;
	transform: translate(-50%, -50%);
}
#masthead {
	position : fixed!important;
	padding: 7px 0;
	width: calc(100% - 40px * 2);
	top: 40px;
	left: 50%!important;
	transform: translate(-50%, 0);
	background-color: #ffffff10;
	border-radius: 10px;
	transition: all .2s ease-in-out, opacity .5s ease-in-out .5s , transform .5s ease-in-out .5s;
}
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 {
	position: relative;
	font-size: 1.7rem;
	color: var(--white);
	opacity: .8;
	font-weight: 700;
	padding: 7px 10px;
}
#masthead .main-header-menu > li a.menu-link::after {
	position: absolute;
	content: "";
	display: block;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, 0);
	background-color: var(--white);
	transition: all .2s ease-out;
}
#masthead .main-header-menu > li:hover a.menu-link::after {
	width: calc(100% - 20px);
}

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:hover a.menu-link::after {
	background-color: var(--black);
}
body:is(.scroll0, .mob_scroll0) #masthead .custom-logo {
	filter: invert(1) saturate(0);
}
#masthead .ast-custom-button {
	font-size: 1.6rem;
	font-family: var(--sora);
	padding: 12px 20px!important;
	color: var(--black);
}

#main-header {
	position: relative;
	width: 100%;
	height: clamp(400px, 100vh, 1080px);
	box-sizing: border-box;
	overflow: hidden;
}
#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;
}
/****************************/
/********** CONTENT *********/
/****************************/
.slide_up, .slide_down, .slide_right, .slide_left {
	opacity: 0; /*ANIMATION GSAP*/
}
/* 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 .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;
}


.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')
}


.posts-grid {
	display: grid;
	grid-template-columns: repeat(var(--grid-col, 5), 1fr);
	gap: 40px;
}
.posts-grid a {
	color: inherit;
	text-decoration: none!important;
}
.posts-grid .grid-item-thumb {
	width: 100%;
	height: 350px;
	overflow: hidden;
	border-radius: 30px;
}
.posts-grid .grid-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all .3s ease-in-out;
}
.posts-grid .grid-item:hover .grid-item-thumb img {
	scale: 1.07;
}
.posts-grid .grid-item-data {
	margin-top: 20px;
}
.posts-grid .grid-item-data span {
	padding-top: 20px;
	display: block;
	border-top: 1px solid var(--grey);
}
.posts-grid .grid-item-data span::after {
	position: relative;
	content: '';
	display: inline-block;
	width: 25px;
	height: 1lh;
	transform: translate(10px, 5px);
	background-color: currentColor;
	mask: url('./assets/svg/picto_arrow.svg') no-repeat center / contain;
	-webkit-mask: url('./assets/svg/picto_arrow.svg') no-repeat center / contain;
	transition: all .3s ease-in-out;
}
.posts-grid .grid-item:hover .grid-item-data span::after {
	transform: translate(20px, 5px);
}

body .checklist {
	padding-left: 0;
}
body .checklist li {
	list-style: none;
	position: relative;
	padding-left: 1.5lh;
	margin-bottom: .6lh;
}
body .checklist li::before {
	position: absolute;
	content: '';
	display: block;
	width: 1lh;
	height: 1lh;
	background: url('./assets/svg/picto_checkmark.svg') no-repeat center / contain;
	left: 0;
	top: 0;
}
/****************************/
/***********FOOTER***********/
/****************************/
#main-footer .custom-logo {
	width: 100%;
  	height: 60px;
}
#main-footer .get-menu {
	gap: 7px 25px;
}
#main-footer .get-menu a.menu-link {
	color: var(--white);
	font-family: var(--sora);
	font-weight: 600;
	border-bottom: 1px solid transparent;
	padding: 5px 0;
}
#main-footer .get-menu.footer-menu a.menu-link {
	width: 100%;
	text-align: center;
}
#main-footer .get-menu a.menu-link:hover {
	border-bottom-color: var(--white);
}
#main-footer .menu-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
}
#main-footer .footer-contact-btn {
	--size: min(150px, 80vw);
	position: relative;
	font-size: 0px;
	display: block;
	width: var(--size);
	height: var(--size);
}
#main-footer .footer-contact-btn::before {
	position: absolute;
	content: "";
	display: block;
	width: var(--size);
	height: var(--size);
	background-image: url(./assets/svg/picto_contact_circle.svg);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	animation: rotate360 20s linear infinite;
}
@keyframes rotate360 {
	100% { transform: translate(-50%, -50%) rotate(360deg); }
}

#main-footer .footer-contact-btn::after {
	position: absolute;
	content: "";
	display: block;
	width: calc(var(--size) / 3);
	height: calc(var(--size) / 3);
	mask: url('./assets/svg/picto_arrow.svg') no-repeat center / contain;
	-webkit-mask: url('./assets/svg/picto_arrow.svg') no-repeat center / contain;
	background-color: var(--white);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-30deg);
	transition: all .2s ease-out;
}
#main-footer .footer-contact-btn:hover::after {
	transform: translate(-50%, -50%);
}


/****************************/
/********DESKTOP ONLY********/
/****************************/
@media (min-width: 981px) {
	
	
}
/****************************/
/**********TABLETTE**********/
/****************************/
@media (max-width: 980px) {
	h1, .entry-content h1, body *:is(.is-h1) {
		font-size: 5rem;
	}
	h2, .entry-content h2, body *:is(.is-h2) {
		font-size: 4rem;
	}
	h3, .entry-content h3, body *:is(.is-h3) {
		font-size: 2.7rem;
	}
	h4, .entry-content h4, body *:is(.is-h4) {
		font-size: 2.2rem;
	}
	h5, .entry-content h5, body *:is(.is-h5) {
		font-size: 1.8rem;
	}

	#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(--black);
	}
	#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;
		background-color: transparent!important;
	}
	#masthead .main-header-menu li a.menu-link {
		padding: 15px 20px;
		background-color: transparent!important;
		color: var(--black);
		text-align: center;
	}
	#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;
		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);
	}

	.posts-grid {
		--grid-col-tablet: round(calc(var(--grid-col) / 2));
		grid-template-columns: repeat(var(--grid-col-tablet, 3), 1fr);
		gap: 20px;
	}
}
/****************************/
/*********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: 3.6rem;
	}
	h2, .entry-content h2, body *:is(.is-h2) {
		font-size: 3rem;
	}
	h3, .entry-content h3, body *:is(.is-h3) {
		font-size: 2.5rem;
	}
	h4, .entry-content h4, body *:is(.is-h4) {
		font-size: 2rem;
	}
	h5, .entry-content h5, body *:is(.is-h5) {
		font-size: 1.8rem;
	}

	/* HEADER */
	/* #masthead .custom-logo {
		width: 60px;
	} */
	/* 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%;
	}

	.posts-grid {
		grid-template-columns: 1fr;
	}
	#main-footer .menu-grid {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	body .mobile-ungrid {
		grid-template-columns: 1fr;
	}
	body .mobile-ungrid > * {
		grid-column: unset;
		grid-row: unset;
	}
}
@media (max-width: 480px) {
	

}
/****************/
/** KEYFRAMES ***/
/****************/