/*
Theme Name: Ergo Autonomie
Author: Tris informatique
Author URI: https://www.trisinformatique.com
Version: 1.0
Template: enfold
*/
/**************
 ***VARIABLE***
 **************/
:root{
	--logo-decal: 18px;
	--logo-sub-h: 40px;
	--footer-svg-h: 300px;
	--main-blue: #439CDB;
	--light-blue: #D7EDF8;
	--dark-blue: #62AFE1;
	--darker-blue: #4b8acb;
	--light-purple: #DEDBE0;
	--dark-purple: #805FA6;
	--purple:#7252a0;
	--light-grey:#f8f8f8;
}

/************
 ***HEADER***
 ************/

#top .logo{
	margin-top:var(--logo-decal);
	overflow:visible;
}
#top .logo::after{
	position:absolute;
	content:'';
	height:var(--logo-sub-h);
	width:150%;
	left:50%;
	transform:translateX(-50%);
	bottom: calc(-1 * (var(--logo-sub-h) - var(--logo-decal)));
	background-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="UTF-8"%3F><svg id="Calque_2" data-name="Calque 2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 618.601 43.209" preserveAspectRatio="none"><g id="Calque_1-2" data-name="Calque 1"><path d="M0,0c4.074.507,8.153,1.081,12.257,1.729,19.867,3.09,38.994,7.854,57.212,13.597,20.112,6.257,39.08,13.602,59.252,18.937,25.903,6.896,54.646,10.732,81.956,8.125,16.803-1.609,30.82-5.415,46.166-10.064,32.387-9.964,66.892-20.799,105.713-20.742,25.97-.13,52.084,5.519,75.048,12.221,9.932,2.821,17.534,5.387,27.189,7.657,19.266,4.466,45.918,5.217,65.17,1.634C558.946,27.721,618.601.05,618.601.05L0,0Z" style="fill: %23fff; stroke-width: 0px;"/></g></svg>');
	background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
	filter: drop-shadow(0 6px 4px rgba(0,0,0,0.1));
}
@media only screen and (max-width:767px){
	#top .logo::after{
		display:none;
	}
}

#header {
	background-color: white;
	box-shadow: 0 6px 4px rgba(0,0,0,0.1);
}
.main_menu #avia-menu > li.menu-item a{
	display:flex;
	align-items:end;
}
.main_menu #avia-menu > li.menu-item > a .avia-menu-text{
	line-height:18px;
	margin-bottom:15px;
}

/************
 ***DIVERS***
 ************/

/*HEADER PAGE SECTION*/
#top .trs-header .container{
	max-width:100%;
	padding:0;
}
#top .trs-header .container .avia_codeblock_section,
#top .trs-header .container .avia_codeblock_section .avia_codeblock,
#top .trs-header .container .avia_codeblock_section .avia_codeblock svg{
	height:100%;
	width:100%;
}
/*svg divider under image of Header*/
#top .trs-under-header-svg{
	position:absolute;
	width:100%;
	height:450px;
	left:0;
	bottom:0;
	transform:translatey(calc(50% - 50px));
}
@media only screen and (max-width: 767px) {
  .responsive #top #wrap_all .trs-header .container {
    width: 100%;
    max-width: 100%;
  }
	#top .trs-under-header-svg{
		height:300px;
	}
}
#top .trs-header +.avia-section{
	padding-top:100px;
}
#top .avia-section.avia-builder-el-last{
	padding-bottom:calc(var(--footer-svg-h) * 0.7);
}

@media only screen and (max-width:989px){
	#top .trs-header +.avia-section{
		padding-top:20px;
	}
	#top .avia-section.avia-builder-el-last{
		padding-bottom:0;
	}	
}
/*icon lists*/
#top .trs-iconlist-container article{
	display:flex;
	align-items:center;
}
#top .trs-iconlist-container article .iconbox_icon{
	float:none;
}

/*block text over image*/
#top div.trs-txt-over-image-left .avia_textblock,
#top div.trs-txt-over-image .avia_textblock{
	box-shadow: 0 0 22px 5px rgba(0,0,0,0.15);
	position: relative;
	padding:50px 50px 10px 50px;
	border-radius:25px;
	background-color: var(--purple);
}

#top div.trs-txt-over-image .avia_textblock{
	right:-80px;
	margin-left:-80px;
}

#top div.trs-txt-over-image-left .avia_textblock{
	left:-80px;
	margin-right:-80px;
}
#top .trs-image-under-txt img{
	border-radius:25px;
	box-shadow: 0 0 22px 5px rgba(0,0,0,0.15);
}
@media only screen and (max-width:989px){
	#top div.trs-txt-over-image .avia_textblock{
		margin-left:0;
		margin-bottom:0;
		right:0;
		padding: 40px 35px 20px 40px;
	}
	.responsive #top #wrap_all div.flex_column.trs-image-under-txt{
		width:100vw;
		margin-left:-50px;
	}
}
@media only screen and (max-width:767px){
	#top div.trs-txt-over-image .avia_textblock{
		margin-bottom:-0;
		top:0;	
	}
	.responsive #top #wrap_all div.flex_column.trs-image-under-txt{
		margin-left:-8.8%;
	}
}
#top .trs-image-under-txt .avia-slideshow-inner{
	max-height:500px;
}

/*signature span*/
#top div.trs-txt-over-image .avia_textblock .trs-signature{
	font-family:'caveat';
	font-size:32px;
	width:100%;
	text-align:right;
}

/*END block text over image*/

/*contact card*/
#top .trs-contact-card{
	background: var(--light-grey);
	box-shadow: 0px 0px 22px 5px rgba(0, 0, 0, 0.15);
	border-radius: 25px;
	padding:20px;
}

/* ninja-form styling */
#top .nf-field-description{
	z-index:100;
}
/*only for checkbox consent*/
.checkbox-container.label-right .checkbox-wrap{
	flex-direction:column;
}
#top #ninja_forms_required_items,
.nf-field-container {
    margin-bottom: 0px !important;
}
#top .nf-field-element input[type="text"],
#top .nf-field-element input[type="email"],
#top .nf-field-element input[type="tel"]
{
	margin-bottom: 0 !important;
}

input[type="button"] {
    cursor: pointer;
}
.nf-error.field-wrap .nf-field-element::after{
	border-radius:25px;
}
/*END ninja form */

#header-h1-layout {
	background: #0000008a;
	width: fit-content;
    margin: 0 auto;
	padding: 15px 20px;
}

/*add margin to last element before footer
div:has(+ #footer) {
	margin-bottom:calc((var(--footer-svg-h)/3));
}*/
/************
 ***FOOTER***
 ************/

#footer{
	z-index:1;
	position:relative;
	height:var(--footer-svg-h);
	background:linear-gradient(to right, var(--dark-blue), var(--darker-blue));
}
#footer::before{
	position:absolute;
	content:'';
	height:calc( var(--footer-svg-h) / 3);
	width:100%;
	top: calc(-1 * (var(--footer-svg-h) / 3));
	left:50%;
	transform:translateX(-50%);
	background-image: url('./footer-top-vague.svg');
	background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}
#footer::after{
	z-index:0;
	content:'';
	position:absolute;
	opacity:0.5;
	height:var(--footer-svg-h);
	width:100%;
	top: -80%;
	left: 50%;
	transform:translateX(-50%);
	background-image: url('./footer-vague.svg');
	background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}
@media only screen and (max-width:989px){
	#footer{
		height:auto;
	}
	#footer::after,
	#footer::before{
		display:none;
	}
}
#footer .widget{
	margin:0;
}
#top #wrap_all #footer .widgettitle{
	text-decoration:underline;
	color: white;
}
#footer .widget_media_image{
	display:flex;
	justify-content:center;
}
#footer .flex_column{
	height:100%;
}
#footer span.news-time { display: none; }
#socket  .container{
	max-width:100%;
}
#socket  .copyright{
    width: 100%;
}

@media only screen and (max-width: 1160px) {
  .av-main-nav > li.menu-item-avia-special {
    display: block;
  }

  .av-main-nav > li {
    display: none;
  }

  .main_menu .av-main-nav-wrap {
    float: right;
  }
}