/*
 Theme Name:   Faste Wordpress theme child
 Theme URI:    http://www.faste.ca
 Description:  Thème de base pour le développement Web chez Faste Communication
 Author:       Guillaume Proulx
 Author URI:   http://www.faste.ca
 Template:     faste
 Text Domain:  faste-child
 Version:      1.0.04
*/

/* CONFIGURATION INITIALE */

*{
	font-family: var(--main-font);
}
h1 {
	font-size: calc(15px + 2.2vw);
	color: var(--color5);
	font-weight: 600;
	margin-bottom: 20px;
}
h2 {
	font-size: calc(14px + 1.0vw);
    font-weight: 600;
}
h3 {
	font-size: calc(12px + 0.85vw);
	color: var(--color1);
    font-weight: 600;
}
h4 {
	font-size: calc(13px + 0.8vw);
	color: var(--color5);
    font-weight: 600;
}
h5 {
	font-size: calc(10px + 0.7vw);
	color: var(--color5);
	font-weight: 600;
}
p, li{
	font-weight: 400;
	line-height: 160%;
	color: var(--color4);
	font-size: calc(10px + 0.5vw);
	margin-bottom: 4vh;
}
li{
	margin-bottom: 10px;
}
.rev h1, .rev h2, .rev h3, .rev h4, .rev h5, .rev p, .rev li{
	color:white;
}
@media screen and (min-width:1920px){
	h1 {
		font-size: 60px;
	}
	h2 {
		font-size: 40px;
	}
	h3 {
		font-size: 30px;
	}
	h4 {
		    font-size: 27px;
	}
	h5 {
		    font-size: 17px;
	}

}

@media screen and (min-width:1300px){
		p, li{
		font-size: 16px;
	}
}

blockquote p{
	color: var(--color2);
	font-weight: bold;
}
blockquote p:first-child::before{
	content:"« ";
}
blockquote p:last-child::after{
	content:" »";
}

.b1, .woocommerce a.button.add_to_cart_button, .woocommerce a.added_to_cart, .gform_button.button{
	border:none;
	background-color: var(--color2);
    color: white;
    padding: 20px 25px;
	font-weight: 500;
	text-transform: uppercase;
	display: inline-block;
    font-size: 80%;
	border-radius:0;
}
.b1:hover, .b2:hover{
	animation: flicker 1s 0s 1 ALTERNATE cubic-bezier(.2,.65,.3,1) forwards;
}
.b2, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button{
	background-color: var(--color1);
    color: white;
    padding: 20px 25px;
	font-weight: bold;
	text-transform: uppercase;
	display: inline-block;
	font-size: 80%;
}
.b3{
	background-color: transparent;
	color:#000;
	border: 1px solid var(--color1);
	display: inline-block;
    padding: 20px 25px;
    font-size: 70%;
}
.rev .b2{
	background-color: var(--color6);
	color:var(--color1);
}
.rev .b1{
}
.rev .b3{
	color:white;
}
.container{
	margin:0 auto;
	max-width:1100px;
	padding: var(--pad);
}
.wp-block-cover, .wp-block-cover-image{
	min-height:0;
}
/* CONFIGURATION INITIALE END */
header#header{
	position: fixed;
	background-color: rgba(0,0,0,0.7);
	backdrop-filter:blur(10px);
	width: 100%;
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	-moz-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	-o-flex-wrap: wrap;
	flex-wrap: wrap;
	-ms-align-items: center;
	align-items: center;
	justify-content: space-between;
	z-index: 10;
}
header#header .logo, header#header .secmenu{
	max-width:300px;
	width: 300px;
}
header#header .secmenu li{
	margin: 0;
}
header#header .menus{
	flex-grow: 1;
}
header#header .menus > nav > ul{
	justify-content: center;
}
header#header nav a, header#header .secmenu a{
	color:var(--color6);
	text-transform: uppercase;
	font-size: 87%;
}
header#header .secmenu{
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	-moz-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	-o-flex-wrap: wrap;
	flex-wrap: wrap;
	-ms-align-items: center;
	align-items: center;
	justify-content: center;
}
header#header .social img, header#header .searchbar .recherche img {
    position: absolute;
    filter: invert(1);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 17px;
    object-fit: contain;
    -ms-align-self: center;
    align-self: center;
}
header#header .social{
	background-color: transparent;
	width: 30px;
}
header#header .logo a{
	padding: 15px 0;
}
body.active header#header.sticky{
	background-color: rgba(0,0,0,0.7);
}
.fold::after{
	content: "";
	width: 8vw;
	position: absolute;
	display: block;
	background-image: url(img/fold.webp);
	background-size: cover;
	aspect-ratio: 196 / 319;
	left: 0;
	bottom: -1.694vw;
}
.fold-r::after{
	content: "";
	width: 8vw;
	position: absolute;
	display: block;
	background-image: url(img/fold.webp);
	background-size: cover;
	transform: scaleX(-1);
	aspect-ratio: 196 / 319;
	right: 0;
	bottom: -1.694vw;
}
.fold-tl::after{
	content: "";
	width: 8vw;
	position: absolute;
	display: block;
	background-image: url(img/fold.webp);
	background-size: cover;
    transform: rotate(180deg) scaleX(-1);
	aspect-ratio: 196 / 319;
	left: 0;
	top: -1.694vw;
}
.fold-tr::after{
	content: "";
	width: 8vw;
	position: absolute;
	display: block;
	background-image: url(img/fold.webp);
	background-size: cover;
    transform: rotate(180deg);
	aspect-ratio: 196 / 319;
	right: 0;
	top: -1.694vw;
}
.cta{
	padding:var(--pad);
	position: relative;
}
.cta img{
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 0;
	object-fit: cover;
	object-position: center center;
}
.cta .content{
	width: 50%;
	margin-left: 50%;
	z-index: 2;
	position: relative;
}
.cta:after{
	position: absolute;
	display: block;
	content: "";
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to top, rgba(0,90,158,0.8) 0%, rgba(0,90,158,0.1) 100%); 
	z-index: 1;
}
.gform_button.button{
	padding: 20px 40px;
}
html .gform_wrapper.gravity-theme .ginput_container_address span, html .gform_wrapper.gravity-theme .ginput_full:not(:last-of-type){
	margin-bottom: 16px;
}
html .gform_wrapper.gravity-theme input[type=text], html .gform_wrapper.gravity-theme input[type=tel], html .gform_wrapper.gravity-theme input[type=email],html .gform_wrapper.gravity-theme textarea{
	background-color: rgba(255,255,255,0.5);
	border:none;
	padding: 15px;
	backdrop-filter: blur(10px);
}
.gform_wrapper.gravity-theme input[type=text]::placeholder, .gform_wrapper.gravity-theme input[type=tel]::placeholder, .gform_wrapper.gravity-theme input[type=email]::placeholder, .gform_wrapper.gravity-theme textarea::placeholder{
	color:var(--color5);
	text-transform: uppercase;
}
footer{
	padding: 4vw;
	background-color: var(--color5);
}
footer .menu_footer > ul{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(auto, 250px));
	justify-content: end;
}
footer .menu_footer ul{
	margin: 0;
	padding: 0;
	list-style: none;
}
footer .menu_footer ul li{
	margin-bottom: 15px;
}
footer .menu_footer > ul > li:nth-child(1) { --nth-child: 1 }
footer .menu_footer > ul > li:nth-child(2) { --nth-child: 2 }
footer .menu_footer > ul > li:nth-child(3) { --nth-child: 3 }
footer .menu_footer > ul > li:nth-child(4) { --nth-child: 4 }
footer .menu_footer > ul > li:nth-child(5) { --nth-child: 5 }
footer .menu_footer > ul > li:nth-child(6) { --nth-child: 6 }
footer .menu_footer > ul > li:nth-child(7) { --nth-child: 7 }
footer .menu_footer > ul > li:nth-child(8) { --nth-child: 8 }
footer .menu_footer > ul > li:nth-child(9) { --nth-child: 9 }
footer .menu_footer > ul > li:nth-child(10) { --nth-child: 10 }
footer .menu_footer > ul > li{
	grid-row:span 2;
	padding: 25px;
}
footer .menu_footer > ul > li > a{
	display: inline-block;
	text-transform: uppercase;
	margin-bottom: 40px;
	line-height: 140%;
}
footer .menu_footer > ul > li:last-of-type{
	margin-top: 0;
	padding-top: 0;
	grid-row: 2 / span 1;
	grid-column: calc(var(--nth-child) - 1);
}
footer .menu_footer > ul > li:last-of-type p{
	margin-top: 0;
	font-size: 16px;
    line-height: 140%;
}
footer .menu_footer > ul > li:last-of-type a:first-of-type{
	margin-top: 20px;
	display: inline-block;
}
footer .menu_footer > ul > li:last-of-type a span{
	display: inline-block;
	width: 25px;
}
footer .menu_footer > ul > li:nth-last-child(2){
	grid-row:span 1;
	margin-bottom: 0;
	padding-bottom: 0;
}
footer a{
	color:var(--color6)
}
footer > div > .bot{
	border-top:1px solid var(--color6);
	text-align: center;
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	justify-content:center;
}
footer > div > .bot::before{
	content:"";
	display: block;
	flex:1;
}
footer > div > .bot > p{
	flex:1;	
	margin: 3vh;
}
footer > div > .bot > div{
	flex:1;
	text-align: right;
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	-ms-align-items: center;
	align-items: center;
	justify-content: flex-end;
}
footer > div > .bot .socials img{
	filter:invert(1);
	width: 20px;
	margin: 10px;
}
footer a.lang{
	text-transform: uppercase;
	margin-right: 5vw;
}
footer .copy{
	text-align: center;
}
footer .copy a, footer .copy p{
	font-size: 12px;
	margin: 0;
}
.banner{
	width: 100%;
	aspect-ratio:8 / 2;
	position: relative;
}
.banner img, img.fill, .banner video{
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}
.banner::after {
    display: block;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 90, 158, 0.8), rgba(0, 90, 158, 0.2));
}
div[data-tab]{
    margin-bottom:20px;
}
.accordeon{
	border-top: 1px solid rgba(0,0,0,0.3);
	border-bottom:1px solid rgba(0,0,0,0.3);
	padding: 20px 0;
}
.accordeon:not(.open) > div{
    display:none;
}
.rev .accordeon{
	border-top: 1px solid rgba(255,255,255,0.3);
	border-bottom:1px solid rgba(255,255,255,0.3);	
}
.accordeon h2{
	margin-bottom: 0;
}
.accordeon h2 a{
	position: relative;
	display: block;
	color:var(--color5);
	padding-right: 30px;
}
.rev .accordeon h2 a{
	color:var(--color6);
}
.accordeon h2 a:after{
	content:"";
	position: absolute;
	top: calc(50% - 1.5px);
	right: 0;
	width: 20px;
	height: 3px;
	background-color: #000;
}
.accordeon:not(.open) h2 a:before{
	content:"";
	position: absolute;
	top: calc(50% - 10px);
	right: 8.5px;
	width: 3px;
	height: 20px;
	background-color: #000;
}
.rev .accordeon h2 a:after, .rev .accordeon h2 a:before{
	background-color: #fff;
}
@media screen and (max-width:1150px){
	header#header .logo{
		max-width: 15%;
	}
	header#header .secmenu{
		max-width: 20%;
	}
	header#header .menus{
		flex-grow: 0;
	}
	header#header .secmenu{
		flex-wrap: nowrap;
	}
	header#header .menus > nav > ul{
		margin-top: 0;
	}
}
@media screen and (max-width:940px){
	footer .menu_footer > ul{
		display: -webkit-flex;
		display: -moz-flex;
		display: -ms-flex;
		display: -o-flex;
		display: flex;
		-webkit-flex-wrap: wrap;
		-moz-flex-wrap: wrap;
		-ms-flex-wrap: wrap;
		-o-flex-wrap: wrap;
		flex-wrap: wrap;
		-ms-align-items: flex-start;
		align-items: flex-start;
	}
	footer .menu_footer > ul > li > a{
		font-weight: bold;
		margin-bottom: 0;
	}
	footer .menu_footer ul li{
		margin-bottom: 0;
	}
	footer .menu_footer > ul > li{
		flex-basis: 50%;
		border-left: 1px solid rgba(255,255,255,0.5);
		padding: 0px 0px 0px 20px;
		margin-bottom: 20px;
	}
	footer .menu_footer > ul > li:nth-last-child(2), footer .menu_footer > ul > li:last-child{
		flex-basis: 100%;
	}
	footer .menu_footer > ul > li:last-of-type p{
		margin-bottom: 0;
	}
	.cta .content{
		width: 100%;
		margin-left: 0;
	}
	header#header{
		padding: 20px 0;
	}
	header#header .menus > nav > ul{
		flex-direction:column;
		-ms-align-items: center;
		align-items: center;
	}
	header#header .menus ul{
		padding: 2vh 0;
	}
	header#header .menus{
		background-color: var(--color1);
	}
	header#header .secmenu{
		background-color: var(--color6);
	}
	header#header .secmenu, header#header .menus{
		display: block;
		max-height:0px;
		width: 100%;
		min-width: 100%;
		overflow: hidden;
		transition:max-height 0.4s cubic-bezier(.2,.65,.3,1);
		order: 2;
	}
	header#header.menu .secmenu, header#header.menu .menus{
		max-height:500px;
		display: block;
	}
	.ham-icon{
		display: block;
		margin: 0 auto;
		order: 1;
	}
	.ham-icon > span{
		background-color: var(--color6);
	}
	header#header .logo{
		width: 100%;
		max-width:100%;
	}
	header#header .logo a{
		text-align: center;
	}
	header#header{
		max-height:90vh;		
		position: relative;
		background-color: rgba(0, 0, 0, 1);
	}
	header#header .secmenu .menu, header#header .socials{
		justify-content: center;
	}
	header#header .secmenu .menu{
		margin-top: 2vh;
	}
	header#header .socials{
		margin-bottom: 2vh;
	}
	header#header .secmenu a{
		padding: 20px;
		display: block;
		color: var(--color5);
	}
	header#header .social img{
		filter:none;
	}
	body header#header .menus > nav li.menu-item-has-children > ul {
        background-color: var(--color1);
		z-index: 0;
		padding-top: 75px;
	}
	header#header .menus{
		position: relative;
		top: auto;
		left: auto;
		transform:none;
	}
	header#header .menus > nav{
		display: block;
	}
	header#header .secmenu ul.menu li {
        writing-mode:inherit;
        transform: none;
    }
	header#header .socials{
		-webkit-flex-direction: row;
		-moz-flex-direction: row;
		-ms-flex-direction: row;
		-o-flex-direction: row;
		flex-direction: row;
	}
	footer > div > .bot{
		-webkit-flex-wrap: wrap;
		-moz-flex-wrap: wrap;
		-ms-flex-wrap: wrap;
		-o-flex-wrap: wrap;
		flex-wrap: wrap;
		margin-bottom: 40px;
	}
	footer > div > .bot::before{
		display: none;
	}
	footer > div > .bot > div{
		justify-content: center;
		order:1;
		margin-top: 20px;
	}
	footer > div > .bot > p{
		order:2;
	}
	footer > div > .bot > p, footer > div > .bot > div{
		flex-basis: 100%;
	}
	footer .logo-contact{
		margin-bottom: 40px;
	}
}
@media screen and (max-width:750px){
	.b1, .woocommerce a.button.add_to_cart_button, .woocommerce a.added_to_cart, .gform_button.button{
		padding: 10px 15px;
	}
	.b2, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button{
		padding: 10px 15px;
	}
	.b3{
		padding: 10px 15px;
	}
	header#header{
		padding: 0;
	}
	body.active header#header.sticky:not(.menu) .logo{
		display: none;
	}
	.banner{
		spect-ratio: 4 / 2;
	}
	.pageintro.container{
		padding: 13vh 8vw 4vh;
	}
}
@media screen and (max-width:550px){
	header#header .logo img{
		max-width: 200px;
	}
	footer .menu_footer > ul > li{
			flex-basis: 100%;
	}
}