/* Moissons - Emplois (archive)
 *
 * Basé sur `bb-bewod/modules/moissons-emplois/css/moissons-emplois.css`
 * adapté à une grille (hors Swiper).
 */

body {
	background-color: var(--light) !important;
}

/* Ancre candidature */
#candidature {
	scroll-margin-top: 120px;
}

/* CTA sticky (mobile + desktop) */
.candidature-sticky {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 9999;
	background: var(--purple);
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.candidature-sticky.is-hidden {
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
}

.candidature-sticky:hover {
	background: var(--green);
}

/* Bloc candidature (après la liste) */
.candidature-section {
	margin: 2rem auto 4rem;
	padding: 2rem 1.25rem;
}

.card.card-candidature {
	background: var(--candidature-bg);
	color: #fff;
}

.card.card-candidature .card-body {
	gap: 1.5rem;
}

.candidature-section__form {
	width: 100%;
}

/* Barre de recherche (top) */
.emplois-searchbar {
	max-width: var(--mxw-large);
	margin: 0 auto 1.5rem;
	padding: 0 1.25rem;
}

.emplois-searchbar__mobile-toggle {
	display: none;
}

.emplois-searchbar__mobile-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--green);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 56px;
}

.emplois-searchbar__mobile-icon img {
	width: 20px;
	height: 20px;
	filter: brightness(0) invert(1);
}

.emplois-searchbar__row {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1fr 1fr auto;
	/*
	gap: 1px;
	background: rgba(0, 0, 0, 0.08);
	*/
	background: #fff;
	border-radius: 999px;
	overflow: hidden;
}

.emplois-searchbar__field {
	position: relative;
	padding: 0.85rem 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.25rem;
	min-width: 0;
}

.emplois-searchbar__field:first-child {
	padding-left: 2rem;
}

.emplois-searchbar__field:before {
	z-index: 10;
	border-left: 1px solid rgba(0, 0, 0, 0.12);
	content: '';
	position: absolute;
	right: 0;
	height: 60%;
	width: 1px;
}

.emplois-searchbar__last {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 2rem 1rem;
}

.emplois-searchbar__field-noborder:before {
	border-left: none;
}

.emplois-searchbar__label {
	font-size: 0.75rem;
	font-weight: 600;
	color: rgba(0, 0, 0, 0.6);
}

.emplois-searchbar input,
.emplois-searchbar select {
	border: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
	background: transparent;
	font-size: 0.95rem;
	min-width: 0;
}

.emplois-searchbar input:focus,
.emplois-searchbar select:focus {
	outline: none;
}

.emplois-searchbar__submit {
	width: 56px;
	height: 56px;
	border: 0;
	border-radius: 50%;
	background: var(--green);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

@media (max-width: 991px) {
	/* Mobile: on masque le moteur complet par défaut,
	   et on l'ouvre via JS en ajoutant .is-open sur .emplois-searchbar */
	.emplois-searchbar__mobile-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		border: 0;
		padding: 0.75rem 0.75rem 0.75rem 1.25rem;
		background: #fff;
		border-radius: 999px;
		box-shadow: 0 10px 16px rgba(0, 0, 0, 0.08);
		cursor: pointer;
	}
	.emplois-searchbar__mobile-toggle:hover,
	.emplois-searchbar__mobile-toggle:focus {
		background: var(--green);
	}
	.emplois-searchbar__mobile-toggle:hover .emplois-searchbar__mobile-label,
	.emplois-searchbar__mobile-toggle:focus .emplois-searchbar__mobile-label {
		color: #fff;
	}

	.emplois-searchbar__mobile-label {
		font-size: 0.95rem;
		font-weight: 500;
		color: rgba(0, 0, 0, 0.7);
	}

	.emplois-searchbar__panel {
		display: none;
		margin-top: 0.75rem;
	}

	.emplois-searchbar.is-open .emplois-searchbar__panel {
		display: block;
	}

	.emplois-searchbar__row {
		grid-template-columns: 1fr;
		border-radius: 1.5rem;
		gap: 1rem;
		background-color: var(--light);
	}
	.emplois-searchbar__field {
		background-color: #fff;
		padding-top: 1.5rem;
		padding-bottom: 1.5rem;
		border-radius: 1.5rem;
	}
	.emplois-searchbar__field:before {
		display: none;
	}
	.emplois-searchbar__last {
		background-color: #fff;
		border-radius: 1.5rem;
	}
	.emplois-searchbar__submit {
		width: 100%;
		border-radius: 1.5rem;
	}

	.candidature-sticky {
		right: 1rem;
		bottom: 1rem;
		padding: 0.85rem 1rem;
	}
}

/* Contact form */


.notitle .nf-field-label,
.contacter .nf-form-fields-required {
	display: none !important;
}
  
.contacter .nf-field-label .nf-label-span,
.contacter .nf-field-label label {
	font-weight: 400;
	font-size: 12px;
}
.contacter .ninja-forms-req-symbol {
	color: #fff;
}
    
body div.wpomp_search_form input.wpomp_search_input,
.contacter select.ninja-forms-field.nf-element, 
.contacter input[type="text"], 
.contacter input[type="email"], 
.contacter input[type="url"], 
.contacter input[type="password"], 
.contacter input[type="search"], 
.contacter input[type="number"], 
.contacter input[type="tel"], 
.contacter input[type="range"], 
.contacter input[type="date"], 
.contacter input[type="month"], 
.contacter input[type="week"], 
.contacter input[type="time"], 
.contacter input[type="datetime"], 
.contacter input[type="datetime-local"], 
.contacter input[type="color"], 
.contacter textarea {
	color: #fff;
	border: 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.6) !important;
	border-radius: 0;
	padding: 10px 0px;
	background-color: transparent;
}
.contacter .cp input {
	max-width: 280px;
}
  
.contacter select:focus, 
.contacter input:focus, 
.contacter textarea:focus {
	color: #fff !important;
	border-color: #fff !important;
}

.contacter .nf-fu-progress {
	padding: 0;
	background: transparent !important;
	box-shadow: none !important;
}

.contacter .nf-fu-progress .nf-fu-progress-bar {
	box-shadow: none !important;
}

.contacter .file_upload-wrap a.delete {
	color: var(--yellow) !important;
}
  
.contacter .nf-error-msg,
.contacter .nf-error select, 
.contacter .nf-error input, 
.contacter .nf-error textarea {
	color: var(--yellow) !important;
	border-color: var(--yellow) !important;
}
.contacter .nf-error-msg {
	font-size: 14px;
}
  
.contacter .nf-after-form-content .nf-error-msg {
	font-size: 12px;
}
  
.contacter select {
	cursor: pointer;
}