/*
Theme Name: Blé Noir Theme
Description: Main theme for Blé Noir, based on Uncode
Author: Huit Onze
Author URI: http://www.huitonze.ch
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

/***
 * 
 * ROOT
 * 
 ***/

:root {
	--color-rouille: #AF4831;
	--color-charbon: #3A3A38;
	--color-crepe-100: #F4F3EF;
	--color-crepe-120: #E9E6DF;
	--color-crepe-140: #E3DCCF;
	--color-crepe-160: #D0C5AD;
	--color-blanc: #fff;
	--color-noir: #000;
}

span.display-none {
    display: none;
}

div:has(> .display-inline) {
    display: inline-flex;
    gap: 36px;
}

a.btn {
    padding: 9px 27px !important;
}

body:not(.vc-safe-mode) .shift_y_down_neg_double {
	margin-bottom: -45px!important;
}

.bn_bloc-full-width .uncont {
    max-width: 657px;
}

.bn_bloc-crepe-width .uncont {
	max-width: 801px;
}

.bn_bloc-partners .uncont {
    max-width: 450px;
}

@media screen and (min-width:560px;) {
	iframe.ZC_sdk__zc-iframe_k5FE3 {
		margin-right: 36px;
		margin-bottom: 36px;
	}
}

/***
 * 
 * FONTS
 * 
 ***/

@font-face {
    font-family: 'DM Mono';
    src: url('fonts/DMMono-Regular.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    font-optical-sizing: auto;
}

@font-face {
    font-family: 'DM Mono';
    src: url('fonts/DMMono-Italic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
    font-optical-sizing: auto;
}

@font-face {
    font-family: 'DM Mono';
    src: url('fonts/DMMono-Medium.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    font-optical-sizing: auto;
}

@font-face {
    font-family: 'DM Mono';
    src: url('fonts/DMMono-MediumItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
    font-optical-sizing: auto;
}

@font-face {
    font-family: 'Jadeite';
    src: url('fonts/Jadeite-Rough.ttf') format('truetype');
	src: url('fonts/Jadeite-Rough.woff') format('woff');
	src: url('fonts/Jadeite-Rough.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    font-optical-sizing: auto;
}

@font-face {
    font-family: 'Jadeite';
    src: url('fonts/Jadeite-RoughItalic.ttf') format('truetype');
	src: url('fonts/Jadeite-RoughItalic.woff') format('woff');
	src: url('fonts/Jadeite-RoughItalic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
    font-optical-sizing: auto;
}

@font-face {
    font-family: 'Lucidity';
    src: url('fonts/lucidity-condensed.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    font-optical-sizing: auto;
}

p, li, dt, dd, dl, address, label, small, pre, code, span.tab-excerpt, a {
    line-height: 1.6;
	letter-spacing:-.02em!important;
}

@media screen and (min-width: 1600px) {
	#page-header h1:not([class*="fontsize-"]), #page-header .h1:not([class*="fontsize-"]) {
		font-size: 110px;
	}
}

@media screen and (min-width: 560px) and (max-width: 1279px) {
	body, p, li, dt, dd, dl, address, label, pre, code, .nav-tabs .tab-excerpt, .block-wrapper-parent {
		font-size: 16px;
	}
	
	.btn, .btn-link {
    	font-size: 18px;
	}
}

@media screen and (max-width: 559px) {
	body, p, li, dt, dd, dl, address, label, pre, code, .nav-tabs .tab-excerpt, .block-wrapper-parent {
		font-size: 14px;
	}
	
	.btn, .btn-link {
    	font-size: 16px;
	}
	
	.font-666666.h4.fontspace-815624.font-weight-300.text-uppercase {
    	font-size: 22px;
	}
}

/***
 * 
 * MAIN MENU
 * 
 ***/
.bn-phone-call span.menu-media {
    width: 45px;
    height: 45px;
}

@media screen and (min-width: 960px) {
	#menu-main-menu {
		left:40px!important;
	}
	
	#masthead.style-dark-override.is_stuck #menu-main-menu.menu-primary-inner .current-menu-item a {
		color: var(--color-charbon)!important;
	}
	
	#masthead.style-dark-override #menu-main-menu.menu-primary-inner .current-menu-item a {
		color: var(--color-blanc)!important;
	}
	
    #menu-main-menu.menu-primary-inner .current-menu-item a::after, 
	.tax-portfolio_category #menu-main-menu.menu-primary-inner .menu-item-type-custom a::after, 
	.single-portfolio #menu-main-menu.menu-primary-inner .menu-item-type-custom a::after {
        content: '';
        display: block;
        background-color: var(--color-rouille);
        position: absolute;
        height: 9px;
        width: 9px;
        bottom: 18px;
        left: 0px;
        right: 0px;
        margin: auto;
        border-radius: 50px;
    }
}

@media screen and (max-width: 959px) {
	img.size-full {
		width: 63px;
		height: 63px;
	}
	
	.bn-phone-call span.menu-media {
		width: 63px;
		height: 63px;
		margin-left: 27px;
	}
}

/***
 * 
 * HEADER
 * 
 ***/
.fa-angle-down:before {
    content: '';
    background-image: url('img/dropdown_arrow.svg');
    background-size: contain;
    width: 36px;
    height: 36px;
    display: inline-block;
	animation: fade-out-down 2s ease infinite;
}

.header-wrapper .header-scrolldown {
    bottom: 36px;
	margin-left: -18px;
    transition: none;
}

@media screen and (max-width: 569px) {
	.single-wrapper {
    	max-width: 100% !important;
	}
}

/***
 * 
 * CONTENT
 * 
 ***/

/*** Blocs full width avec une image ***/
@media screen and (min-width: 1600px) {
	.bn_max-height_1600 .uncode-single-media-wrapper {
		max-height: 850px;
	}
}

@media screen and (min-width: 570px) and (max-width: 1599px) {
	.bn-bloc-full_height .no-block-padding div {
		height:100%!important;
	}

	.bn_max-height_1600 .uncode-single-media-wrapper img {
		height: 100%!important;
		width: auto!important;
	}
}

/*** Blocs full width avec du texte ***/
@media screen and (max-width: 959px) {
	.bn_bloc-full-width .vc_custom_heading_wrap  {
		margin-top: 0!important;
	}
}

/*** Ecusson en absolute ***/
.uncode-single-media.bn-ecusson.text-right {
	position: absolute;
    right: 18%;
	bottom: -15%;
}

@media screen and (max-width: 959px) {
	.row div[class*=col-lg-].align_left > .uncol > .uncoltable > .uncell > .uncont .bn-ecusson .icon-media {
		width: 66%!important;
		margin-right: 0;
		margin-left: auto;
	}
}
	
@media screen and (max-width: 569px) {
	.uncode-single-media.bn-ecusson.text-right {
		bottom: -9%;
	}
	
	.row div[class*=col-lg-].align_left > .uncol > .uncoltable > .uncell > .uncont .bn-ecusson .icon-media {
		width: 33%!important;
		margin-right: 0;
		margin-left: auto;
	}
}

/*** Partenaires ***/
@media screen and (min-width: 570px) and (max-width: 1440px) {
	#bn_partners_flex .bn_bloc-partners_txt p:last-child {
    	display: none;
	}
}

/***
 * 
 * FOOTER
 * 
 ***/
@media screen and (min-width: 570px) {
	ul#menu-cgu-menu {
		display: inline-flex;
		gap: 36px;
	}
	
	ul#menu-cgu-menu li {
		width: fit-content;
	}
}

/***
 * 
 * ANIMATIONS
 * 
 ***/
@keyframes fade-out-down {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(36px);
  }
}

/***
 * 
 * COMPONENTS
 * 
 ***/

/*** Galerie Médias ***/
.tmb-carousel p.t-entry-excerpt {
    font-family: Jadeite, Arial, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif !important;
    font-weight: 300;
    letter-spacing: -0.02em !important;
    text-transform: uppercase;
	margin-top:0!important;
}

.bn_gallery_title .uncont div.vc_custom_heading_wrap,
.bn_gallery_title .uncont div.uncode-owl-nav-wrap {
	display: inline-flex;
	gap: 36px;
}

.bn_gallery_title .bn_gallery_arrows .fa-arrow-circle-o-right:before {
    content: "\f18e";
    content: '';
    background-image: url('img/bn_arrow_right.svg');
	display: inline-block;
    width: 45px;
    height: 45px;
}

/*** FAQ ***/
@media (max-width: 569px) {
    .main-container .bn-FAQ .row-inner > div:not(.vc_helper), .block-wrapper-parent .bn-FAQ .row-inner > div:not(.vc_helper) {
        padding: 0px;
		margin-top:-1px;
    }
}

/*** Formulaires ***/
label:not(.ff-el-form-check-label) {
    font-family: Jadeite, Arial, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif !important;
    margin-left: 18px;
    font-weight: 300 !important;
}

.fluentform .ff_t_c p {
    font-weight: 300;
    font-size: 14px;
    margin-left: 18px;
}

button.ff-btn.ff-btn-submit.ff-btn-lg.ff_btn_style.wpf_has_custom_css.cursor-init {
    padding: 9px 27px;
}

.input-background .style-light input[type="text"], .input-background .style-dark .style-light input[type="text"], .input-background .style-light input[type="email"], .input-background .style-dark .style-light input[type="email"], .input-background .style-light input[type="number"], .input-background .style-dark .style-light input[type="number"], .input-background .style-light input[type="url"], .input-background .style-dark .style-light input[type="url"], .input-background .style-light input[type="tel"], .input-background .style-dark .style-light input[type="tel"], .input-background .style-light input[type="search"], .input-background .style-dark .style-light input[type="search"], .input-background .style-light input[type="password"], .input-background .style-dark .style-light input[type="password"], .input-background .style-light input[type="date"], .input-background .style-dark .style-light input[type="date"], .input-background .style-light textarea, .input-background .style-dark .style-light textarea, .input-background .style-light select, .input-background .style-dark .style-light select, .input-background .style-light .select2-selection--single, .input-background .style-dark .style-light .select2-selection--single, .compose-mode.input-background .style-light .lateral-nav-parent li, .compose-mode.input-background .style-dark .style-light .lateral-nav-parent li {
    background-color: #F4F3EF !important;
    border-radius: 27px !important;
    border-color:  var(--color-crepe-100);
    height: 56px;
}

.ff-default .ff-el-form-control:focus {
    border-color:  var(--color-rouille);
}

.ff-default .ff-el-form-control {
    padding: 18px 18px;
}