
/********************************************************************* ARCHIVE GENERAL */

.fas::before {
	content: "" !important;
	display: block;
	height: 1em;
	width: 1.2em;
	background-color: var(--yjb_secondary);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center center;
	mask-position: center center;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
}

.fas.fa-euro-sign::before {
	-webkit-mask-image: url("./includes/euro.svg");
	mask-image: url("./includes/euro.svg");
}

.fas.fa-file-signature::before {
	-webkit-mask-image: url("./includes/signature.svg");
	mask-image: url("./includes/signature.svg");
	margin-right: -5px;
	width: calc(1.2em + 5px);
}

.fas.fa-map-marker-alt::before {
	-webkit-mask-image: url("./includes/marker.svg");
	mask-image: url("./includes/marker.svg");
}

.fas.fa-star::before {
	-webkit-mask-image: url("./includes/star.svg");
	mask-image: url("./includes/star.svg");
}

.yjb-archive_row {
}

.yjb-archive_x_results {
	text-align: right;
	margin-bottom: 25px;
}

.yjb-archive_x_results_count:not([data-count]),
.yjb-archive_x_results_count[data-count=''] {
	opacity: 0;
	pointer-events: none;
}

.yjb-archive_x_results_count::before {
	color: var(--yjb_secondary);
	content: attr(data-count);
	margin-right: 5px;
}

.yjb-archive_x_results_count {
	font-weight: 500;
}

.yjb-archive_row_candid_sponta .bouton {
	width: 100%;
	text-align: center;
}

.yjb-archive_row_candid_sponta .bouton:not(:hover) {
	background-color: #f0f7d5;
}

/********************************************************************* MODAL */

.modal-backdrop {
	z-index: 2147483641 !important;
}

#candidSpontaModal {
	z-index: 2147483642;
}

#candidSpontaModal .modal-dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#candidSpontaModal .close {
	position: absolute;
	right: 10px;
	top: 9px;
	border: none;
	background: transparent;
	font-size: 1.6em;
}

#candidSpontaModal .modal-body {
	max-height: 80vh;
	overflow: auto;
}

.wpcf7-submit {
	background-color: #f95c38;
	border: none;
	border-radius: 0;
	color: white;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 10px 30px;
}

/********************************************************************* FILTER */

#searchForm.locked {
	pointer-events: none;
}

.yjb-archive_filter_checkbox_wrapper {
	margin-left: 30px;
	margin-bottom: 5px;
}

.yjb-archive_filter_checkbox_input {
	opacity: 0;
	height: 0;
	width: 0;
	position: absolute;
	z-index: -1;
}

.yjb-archive_filter_checkbox_label {
	cursor: pointer;
}

.yjb-archive_filter_checkbox_customized {
	height: .9em;
	width: .9em;
	margin-right: 15px;
	border: 2px solid var(--yjb_primary);
	display: inline-block;
	background-color: transparent;
	transition: all .2s ease;
}

input:checked + label > .yjb-archive_filter_checkbox_customized {
	background-color: var(--yjb_primary);
	position: relative;
}

input:checked + label > .yjb-archive_filter_checkbox_customized::before {
	position: absolute;
	content: '';
	width: 55%;
	height: 85%;
	border-bottom: 2px solid white;
	border-right: 2px solid white;
	transform: translate(40%, -10%) rotate(45deg);
}

.yjb-archive_filter_list {
	padding: 40px;
}

.yjb-archive_filter_title {
	padding-bottom: 20px;
	padding-top: 20px;
	text-align: center;
	color: var(--yjb_primary);
	position: relative;
	font-size: 1.55em;
	font-weight: 500;
	background-color: var(--yjb_bgcolor_emphasis);
}

.yjb-archive_filter_list {
	background-color: var(--yjb_bgcolor);
}

.yjb-archive_filter_keywords_wrapper {
	text-align: center;
}

.yjb-archive_filter_input::placeholder {
	color: #bcbcbc;
}

.yjb-archive_filter_input {
	padding: 15px 25px;
	border: none;
	width: 100%;
	border-radius: 0;
}

.yjb-archive_filter_subtitle {
	color: var(--yjb_primary);
	margin-top: 30px;
	margin-bottom: 20px;
	font-weight: 500;
}

.yjb-archive_filter_select2_dropdown {
	border: none !important;
	border-radius: 0 !important;
}

.yjb-archive_filter_submit_wrap {
	text-align: center;
	margin-top: 50px;
	position: relative;
}

.yjb-archive_filter_submit {
	cursor: pointer;
	width: 100%;
	position: relative;
}

.yjb-archive_filter_submit_loupe {
	height: 1.2em;
	width: 1.2em;
	background-image: url("./includes/loupe.svg");
	-webkit-background-size: 100%;
	background-size: 100%;
	background-repeat: no-repeat;
	display: inline-block;
	position: absolute;
	left: 30px;
	top: 50%;
	transform: translateY(-50%);
}

.yjb-archive_filter_submit .fas {
	margin-right: 10px;
}

.yjb-archive_filter_submit,
.yjb-archive_filter_submit:hover,
.yjb-archive_filter_submit:focus {
	clip-path: none;
	-webkit-clip-path: none;
	background-color: var(--yjb_secondary);
}

.yjb-archive_filter_select2_box {
	border: none !important;
	border-radius: 0 !important;
	position: relative;
	cursor: pointer;
	min-height: calc(1.6em + 30px) !important;
	padding: 0 20% 0 0 !important;
	width: 100%;
}

.yjb-archive_filter_select2_box .select2-search__field {
	min-height: calc(1.6em + 30px) !important;
	padding: 0 20px !important;
	margin: 0 !important;
}

.yjb-archive_filter_select2_box .select2-selection__rendered {
	margin-top: 0 !important;
	margin-bottom: 5px !important;
}

.yjb-archive_filter_select2_dropdown .select2-results__option--highlighted {
	background-color: var(--yjb_decoration) !important;
	color: black !important;
}

.yjb-archive_filter_checklist .yjb-archive_filter_select2_box::after {
	position: absolute;
	content: '';
	height: 12px;
	width: 12px;
	border-bottom: 3px solid var(--yjb_decoration);
	border-right: 3px solid var(--yjb_decoration);
	transform: translateY(-70%) rotate(45deg);
	top: 50%;
	right: 10%;
	cursor: pointer;
}

.yjb-archive_filter_select2_box .select2-selection__choice__remove {
	border-right: none !important;
}

.yjb-archive_filter_checklist .yjb-archive_filter_select2_box::before {
	position: absolute;
	content: '';
	height: 20px;
	width: 20px;
	cursor: pointer;
	z-index: 2;
	transform: translateY(calc(-70% + 4px));
	top: 50%;
	right: calc(10% - 4px);
}

.yjb-archive_filter_select2_box .select2-search__field::placeholder {
	color: #bcbcbc;
}

.yjb-empty_text_input_fn {
	position: relative;
}

.yjb-empty_text_input_btn {
	position: absolute;
	right: 10%;
	top: 50%;
	transform: translateY(-50%);
	padding: 0;
	background: #cecece;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	height: 1.4em;
	width: 1.4em;
}

.yjb-empty_text_input_btn::before {
	content: '';
	display: block;
	position: absolute;
	height: 0.8em;
	left: 50%;
	top: 50%;
	width: 2px;
	background: white;
	transform: translate(-50%, -50%) rotate(45deg);
}

.yjb-empty_text_input_btn::after {
	content: '';
	display: block;
	position: absolute;
	height: 0.8em;
	left: 50%;
	top: 50%;
	width: 2px;
	background: white;
	transform: translate(-50%, -50%) rotate(-45deg);
}

.yjb-archive_reset_wrapper {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	text-align: center;
}

#resetSearch {
	color: var(--yjb_secondary);
	text-decoration: underline;
}

/********************************************************************* LISTING */

.yjb-archive_empty_results {
	padding: 50px 30px;
	background-color: var(--yjb_bgcolor);
	text-align: center;
}

.yjb-archive_empty_results_txt {
	position: relative;
}

.yjb-archive_empty_results_txt::before {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateX(calc(-0.7em - 5px)) translateY(-50%);
	height: 1.2em;
	content: '';
	display: inline-block;
	width: .7em;
	background-color: var(--yjb_decoration);
	clip-path: polygon(50% 0, 100% 0, 50% 100%, 0% 100%);
}

.yjb-archive_item_left {
	padding: 25px;
}

.yjb-archive_item_right {
	padding: 15px 25px 25px;
}

.yjb-archive_item_right {
	background-color: var(--yjb_bgcolor);
}
	
.yjb-archive_item {
	margin-bottom: 40px;
	border: 2px solid var(--yjb_decoration);
    line-height: 1;
	display: flex;
	flex-wrap: wrap;
}

.yjb-archive_item_title {
	font-weight: 500;
	font-size: 1.2em;
	color: var(--yjb_secondary);
	margin-bottom: 20px;
}

.yjb-archive_item_desc {
	font-size: 0.95em;
	line-height: 1.4;
}

.yjb-archive_item_comp_req_item {
	line-height: 1.2;
}

.yjb-archive_item_comp_req_title {
	margin-top: 20px;
	font-weight: 500;
	margin-bottom: 10px;
}

.yjb-archive_item:not(.empty_skel) .yjb-archive_item_comp_req_title::before {
	content: attr(data-cont);
}

.yjb-archive_item_comp_req_list {
	padding-left: 0;
	margin-top: 5px;
	margin-bottom: 5px;
}

.yjb-archive_item_comp_req_item {
	list-style: none;
	margin: 3px 0;
}

.yjb-archive_item_comp_req_item::before {
	width: 0.7em;
	height: 0.5em;
	content: '';
	display: inline-block;
	border-left: 3px solid var(--yjb_secondary);
	border-bottom: 3px solid var(--yjb_secondary);
	transform: translateY(-0.2em) rotate(-45deg);
	margin-right: 12px;
}

.yjb-archive_item_secteur {
    height: 120px;
    position: relative;
}

.yjb-archive_item_secteur::after {
	position: absolute;
	left: 50%;
	top: 50%;
	content: attr(data-name);
}

.yjb-archive_item_secteur::after {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	font-size: 1.13em;
	content: attr(data-name);
	display: inline-block;
	transform: translateY(-50%);
	text-align: center;
	color: var(--yjb_primary);
	text-transform: uppercase;
	font-weight: 500;
}

.yjb-archive_item_specs {
	font-size: 1.13em;
	line-height: 1.1;
	padding-left: 40px;
	margin: 11px 0;
	position: relative;
}

.yjb-archive_item_specs.empty_specs {
	display: none;
}

.yjb-archive_item_specs .fas {
	position: absolute;
	transform: translateX(-50%);
	left: 20px;
	color: var(--yjb_secondary);
}

.yjb-archive_item_secteur_icon {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	background-size: 100% 70%;
	background-repeat: no-repeat;
	background-position: center;
	opacity: .17;
}

.yjb-archive_item_salaire::after {
	content: attr(data-per_year);
	margin-left: 5px;
}

/********************************************************************* SKELETON */

.empty_skel {
	overflow: hidden;
	position: relative;
}

.empty_skel::after{
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 40%;
	display: block !important;
	animation: skel_loading 2s ease infinite;
	background: linear-gradient(to right, transparent 0%, white 50%, transparent 100%);
	opacity: .5;
	z-index: 2;
}

@keyframes skel_loading {
	0% {
		right: 140%;
		opacity: .4;
	}
	100% {
		right: -40%;
		opacity: .2;
	}
}

.empty_skel, .empty_skel * {
	background-color: rgba(0, 0, 0, .05);
	color: transparent !important;
}

.empty_skel *::after,
.empty_skel *::before {
	opacity: 0;
}

.empty_skel > * > * > * > *{
	background-color: rgba(0, 0, 0, .05);
}

.empty_skel .yjb-archive_item_title {
    display: inline-block;
    width: 30ch;
}

.empty_skel .yjb-archive_item_title::before {
	display: inline-block;
	content: " ";
}

.empty_skel .yjb-archive_item_desc::before {
	content: "";
	height: 3em;
	display: block;
}

.empty_skel .yjb-archive_item_comp_req,
.empty_skel .yjb-archive_item_comp_req_list {
	background-color: unset;
}

.empty_skel .yjb-archive_item_comp_req_title::before {
	content: " ";
	display: inline-block;
}

.empty_skel .yjb-archive_item_comp_req_title {
	width: 20ch;
}

.empty_skel .yjb-archive_item_comp_req_item {
	width: 30ch;
}

.empty_skel .yjb-archive_item_specs::before {
	content: " ";
	display: inline-block;
}

/********************************************************************* PAGINATION */

#yjbPagination.hidden_pagination {
	opacity: 0;
	pointer-events: none;
}

#yjbPagination,
.yjb-pagination_inside{
	display: flex;
	justify-content: center;
	margin: 15px 0 0;
}

.yjb-results_pagination {
	text-align: center;
}

.first_page,
.last_page {
	display: inline-block;
	opacity: .2;
	pointer-events: none;
	border: none;
	padding: 5px;
	background: transparent;
	height: 2em;
	width: 2em;
	filter: drop-shadow(0 0 0 var(--yjb_primary));
	transition: .3s ease all;
}

.last_page::before, .first_page::before {
	content: "";
	position: relative;
	display: block;
	height: 2em;
	width: 2em;
	border-bottom: 3px solid var(--yjb_primary);
}
.first_page::before {
	transform: rotate(45deg);
	border-left: 3px solid var(--yjb_primary);
}
.last_page::before {
	border-right: 3px solid var(--yjb_primary);
	transform: rotate(-45deg);
}

.last_page::before, .first_page::before {
	content: "";
	position: relative;
	height: .7em;
	width: .7em;
}

.first_page.visible_navigation,
.last_page.visible_navigation {
	opacity: 1;
	pointer-events: auto;
}

.page_link:focus {
	outline: 1px dotted black;
}

.first_page {
	filter: drop-shadow(-6px 0 0 var(--yjb_primary));
}
.last_page {
	filter: drop-shadow(6px 0 0 var(--yjb_primary));
}

.page_link[data-page=""] {
	pointer-events: none;
	background: rgba(0,0,0,0.1);
	background-clip: content-box;
	border-radius: 50%;
	padding: 13px;
}

.page_link::before {
	content: attr(data-page);
	line-height: 1;
	display: block;
	font-weight: normal;
	font-size: 1.13em;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.page_link {
	border: none;
	padding: 5px;
	width: 2em;
	height: 2em;
	position: relative;
	background: transparent;
	color: var(--yjb_secondary);
	margin: 0 2px;
}

.page_link.current_page{
	background: var(--yjb_primary);
	color: white;
	pointer-events: none;
	cursor: default;
}

.page_link.blocked, .yjb-ob_submit_button.blocked, .first_page.blocked, .last_page.blocked {
	pointer-events: none;
	cursor: not-allowed;
}

.yjb-archive_item::before {
	display: none !important;
}

/********************************************************************* RESPONSIVE */

@media (min-width: 992px) {
	.yjb-archive_sidebar {
		padding-right: 30px;
	}
	.yjb-archive_results_col,
	.yjb-archive_empty_results {
		padding-left: 30px;
	}
}

@media (max-width: 991px) {
	.yjb-archive_filter_list {
		margin-bottom: 50px;
	}
	.yjb-archive_sidebar {
		padding-right: 30px;
	}
	.yjb-archive_filter_list {
		padding: 20px !important;
	}
	.yjb-archive_item_right {
		width: 40% !important;
		padding: 20px 15px;
	}
	.yjb-archive_item_left {
		width: 60% !important;
	}
	.yjb-archive_filter_submit_loupe {
		left: 15px;
	}
	.yjb-archive_filter_submit.bouton {
		padding: 10px 10px 10px 30px;
	}
	
}

@media (max-width: 767px) {
	.yjb-archive_sidebar {
		padding-right: 0px;
	}
	.yjb-archive_item.row.filled_post .col-sm-8.yjb-archive_item_left {
		order: 2;
	}
	#candidSpontaModal .modal-dialog {
		width: 90%;
		margin: 0;
	}
	.yjb-archive_item_right {
		width: 100% !important;
	}
	.yjb-archive_item_left {
		width: 100% !important;
	}
}