/* Front — liste des vacantes paginée (KWP-plugin, Claude 26/09/2026) */

body.lvls-page { overflow-x: clip; }

.lvls {
	--lvls-beige: #F7E9CE;
	--lvls-bord: #EAD3A0;
	--lvls-txt: #384E40;
	--lvls-vert: #4F6E5A;
	--lvls-profond: #2C3D34;
	--lvls-top: 74px;
	--lvls-bar-h: 150px;
	font-family: Nunito, "nunito-sans", sans-serif;
}

/* Neutralise le décalage prévu pour l'ancienne barre ; compensé en JS si le header est fixe. */
html body.lvls-page div.site-main.lvls { padding-top: var(--lvls-pad, 0px) !important; }
@media (max-width: 1180px) {
	.lvls-wrap { padding: 0 16px; }
}

/* ---------- Barre de recherche ---------- */
.lvls-bar {
	position: sticky;
	top: var(--lvls-top);
	z-index: 50;
	background: var(--lvls-beige);
	margin: 0 calc(50% - 50vw);
	padding: 18px max(16px, calc(50vw - 570px)) 16px;
}
.lvls-titre {
	margin: 0 0 14px;
	text-align: center;
	color: var(--lvls-vert);
	font-family: "nunito sans", Nunito, sans-serif;
	font-size: 30px;
	font-weight: 500;
	line-height: 1.2;
}
.lvls-titre-b {
	font-family: Sangbleu-italic, "Sang Bleu Versailles", serif;
	font-style: normal;
}
.lvls-form { position: relative; margin: 0; }
.lvls-row {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
}
.lvls-field { position: relative; flex: 0 0 auto; }
.lvls-field--loc { width: 200px; }
.lvls-field--region { width: 240px; }
.lvls-field--duree, .lvls-field--loyer { width: 115px; }

.lvls-form input[type="text"],
.lvls-form select,
.lvls-field--dates {
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	margin: 0;
	background: #fff;
	color: var(--lvls-txt);
	font: 500 14px/1.2 Nunito, "nunito-sans", sans-serif;
	border: 1px solid var(--lvls-bord);
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(40, 60, 48, .06);
	transition: border-color .15s, box-shadow .15s;
}
.lvls-form input[type="text"] { padding: 10px 12px 10px 32px; }
.lvls-form select {
	-webkit-appearance: none;
	appearance: none;
	padding: 10px 32px 10px 14px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23384E40' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px 8px;
	text-overflow: ellipsis;
	cursor: pointer;
}
.lvls-form input[type="text"]:hover, .lvls-form select:hover, .lvls-field--dates:hover { border-color: #d9b96f; }
.lvls-form input:focus-visible, .lvls-form select:focus-visible, .lvls-form button:focus-visible,
.lvls-tri select:focus-visible, .lvls-more:focus-visible {
	outline: 2px solid var(--lvls-vert);
	outline-offset: 2px;
}
.lvls-ico {
	position: absolute;
	left: 11px;
	top: 50%;
	width: 15px;
	height: 15px;
	transform: translateY(-50%);
	fill: var(--lvls-vert);
	pointer-events: none;
}

/* Dates : un seul champ visuel Arrivée → Départ */
.lvls-field--dates {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 230px;
	padding: 0 10px;
}
.lvls-date {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	cursor: pointer;
}
.lvls-date span { color: var(--lvls-txt); font-size: 14px; white-space: nowrap; }
.lvls-date::after {
	content: "";
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	margin-left: auto;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23384E40' d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zm-2 8h14v10H5V10z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.lvls-date.has-val span { font-weight: 700; color: var(--lvls-profond); }
.lvls-date input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
}
.lvls-fleche { color: #9aa39c; font-size: 13px; }

/* Autocomplétion */
.lvls-ac {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: auto;
	min-width: 100%;
	width: max-content;
	max-width: 360px;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(40, 60, 48, .16);
	z-index: 70;
}
.lvls-ac li { padding: 9px 14px; font-size: 14px; color: var(--lvls-txt); cursor: pointer; }
.lvls-ac li.is-on, .lvls-ac li:hover { background: #F3EEE4; }

/* + Critères */
.lvls-plus {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 12px;
	background: var(--lvls-vert);
	color: #fff;
	font: 700 14px Nunito, sans-serif;
	white-space: nowrap;
	cursor: pointer;
}
.lvls-plus:hover, .lvls-plus.is-open { background: var(--lvls-profond); }
.lvls-plus-nb {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: #fff;
	color: var(--lvls-vert);
	font-size: 12px;
}
.lvls-plus-nb[hidden] { display: none; }
.lvls-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 300px;
	box-sizing: border-box;
	padding: 16px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(40, 60, 48, .18);
	z-index: 60;
}
.lvls-panel[hidden] { display: none; }
.lvls-panel select { margin-bottom: 10px !important; background-color: #F6F3EC !important; border-color: transparent !important; box-shadow: none !important; }
.lvls-checks { display: grid; gap: 10px; margin: 6px 0 14px; padding-top: 12px; border-top: 1px solid #EFE8DA; }
.lvls-checks label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--lvls-txt); cursor: pointer; }
.lvls-checks input { width: 17px; height: 17px; margin: 0; accent-color: var(--lvls-vert); }
.lvls-reset {
	display: block;
	margin: 0 auto;
	padding: 8px 18px;
	border: 0;
	border-radius: 8px;
	background: #EFEBE3;
	color: var(--lvls-txt);
	font: 600 13px Nunito, sans-serif;
	cursor: pointer;
}
.lvls-hint { display: none; }

/* ---------- Résultats ---------- */
.lvls-wrap { display: flex; align-items: flex-start; gap: 24px; margin: 26px 0 40px; }
.lvls-list-col { flex: 1 1 auto; min-width: 0; }
.lvls-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin: 0 0 18px;
}
.lvls-count { margin: 0; color: var(--lvls-vert); font-size: 15px; }
.lvls-count b { font-weight: 700; }
.lvls-clear {
	margin-left: 10px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--lvls-vert);
	font: 600 14px Nunito, sans-serif;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.lvls-clear[hidden] { display: none; }
.lvls-tri { display: flex; align-items: center; gap: 8px; }
.lvls-tri label { margin: 0; color: var(--lvls-txt); font-size: 14px; white-space: nowrap; }
.lvls-tri select {
	height: 38px;
	padding: 6px 30px 6px 10px;
	border: 1px solid #D8CDB8;
	border-radius: 8px;
	background: #fff;
	color: #181818;
	font: 400 14px Nunito, sans-serif;
}
.lvls-map-open, .lvls-map-close {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border: 0;
	border-radius: 20px;
	background: var(--lvls-vert);
	color: #fff;
	font: 600 14px Nunito, sans-serif;
	cursor: pointer;
}
.lvls-map-open[hidden] { display: none; }
.lvls-note { margin: -8px 0 16px; color: #7a6a45; font-size: 14px; }
.lvls-note[hidden] { display: none; }

.lvls-track { height: 2px; margin: -10px 0 8px; overflow: hidden; position: relative; opacity: 0; transition: opacity .15s; }
.lvls-loading .lvls-track { opacity: 1; }
.lvls-track::after {
	content: ""; position: absolute; top: 0; left: 0; height: 100%; width: 40%;
	background: var(--lvls-vert); opacity: .55; border-radius: 2px;
	animation: lvlsSlide 1.1s ease-in-out infinite;
}
@keyframes lvlsSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }

.lvls-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 25px 20px;
	transition: opacity .18s;
}
.lvls-has-map .lvls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lvls-loading .lvls-grid { opacity: .35; pointer-events: none; }
.lvls-grid > article.vacante_card { display: block; min-width: 0; margin: 0; }

.lvls-empty { padding: 40px 16px 10px; text-align: center; color: var(--lvls-txt); }
.lvls-empty[hidden] { display: none; }
.lvls-empty-t { margin: 0 0 6px; font-size: 20px; font-weight: 600; color: var(--lvls-vert); }
.lvls-empty-s { margin: 0 0 14px; font-size: 15px; opacity: .8; }
.lvls-clear--btn { margin: 0; }

.lvls-more-wrap { display: flex; justify-content: center; margin: 32px 0 8px; }
.lvls-more-wrap[hidden] { display: none; }
.lvls-more {
	display: inline-block;
	padding: 13px 30px;
	border: 1px solid var(--lvls-vert);
	border-radius: 24px;
	background: #fff;
	color: var(--lvls-vert) !important;
	font: 700 15px Nunito, sans-serif;
	text-decoration: none !important;
	transition: background .15s, color .15s;
}
.lvls-more:hover { background: var(--lvls-vert); color: #fff !important; }
.lvls-more[aria-busy="true"] { opacity: .6; pointer-events: none; }

.lvls .lvls-alert { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Carte */
.lvls-map-col {
	position: sticky;
	top: calc(var(--lvls-top) + var(--lvls-bar-h) + 16px);
	flex: 0 0 42%;
	height: calc(100vh - var(--lvls-top) - var(--lvls-bar-h) - 32px);
	min-height: 380px;
	border-radius: 16px;
	overflow: hidden;
	background: #E9E4D8;
}
.lvls-map-col[hidden], .lvls-map-closed .lvls-map-col { display: none; }
#lvls-map { position: absolute; inset: 0; }
.lvls-map-close { position: absolute; top: 12px; right: 12px; z-index: 500; }

.lvls-pin span {
	display: inline-block;
	transform: translate(-50%, -50%);
	padding: 5px 9px;
	border-radius: 14px;
	background: var(--lvls-profond);
	color: #fff;
	font: 700 12px Nunito, sans-serif;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.lvls-pin { background: none; border: 0; }
.lvls-cluster { background: none; }
.lvls-cluster span {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--lvls-vert);
	color: #fff;
	font: 700 14px Nunito, sans-serif;
	box-shadow: 0 0 0 5px rgba(79, 110, 90, .3);
}
.lvls-pop { display: block; color: var(--lvls-txt) !important; text-decoration: none !important; font-family: Nunito, sans-serif; }
.lvls-pop img { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.lvls-pop strong { display: block; font-size: 14px; line-height: 1.3; }
.lvls-pop span { display: block; margin-top: 4px; font-weight: 700; color: var(--lvls-vert); }
.lvls-pop em { display: block; margin-top: 6px; font-style: normal; font-size: 13px; text-decoration: underline; }

/* ---------- Tablette ---------- */
@media (max-width: 1024px) {
	.lvls-row { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
	.lvls-row::-webkit-scrollbar { display: none; }
	.lvls-panel { position: fixed; right: 16px; top: auto; }
	.lvls-grid, .lvls-has-map .lvls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lvls-has-map { flex-direction: column-reverse; align-items: stretch; }
	.lvls-list-col { width: 100%; }
	.lvls-row { padding-right: 40px; }
	.lvls-hint {
		display: block;
		position: absolute;
		top: 0;
		right: 0;
		bottom: 2px;
		width: 44px;
		pointer-events: none;
		background: linear-gradient(90deg, rgba(247, 233, 206, 0), var(--lvls-beige) 60%);
		transition: opacity .2s;
	}
	.lvls-hint::after {
		content: "";
		position: absolute;
		right: 12px;
		top: 50%;
		width: 8px;
		height: 8px;
		border-top: 2px solid var(--lvls-vert);
		border-right: 2px solid var(--lvls-vert);
		transform: translateY(-50%) rotate(45deg);
		animation: lvlsNudge 1.6s ease-in-out 3;
	}
	.lvls-row-end .lvls-hint { opacity: 0; }
	.lvls-has-map .lvls-map-col { position: relative; top: auto; flex: none; width: 100%; height: 360px; min-height: 0; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.lvls-bar { padding: 12px 0 12px 16px; }
	.lvls-titre { margin: 0 16px 10px 0; font-size: 22px; }
	.lvls-titre-a, .lvls-titre-b { display: block; }
	.lvls-row { gap: 8px; padding-right: 40px; scroll-snap-type: x proximity; }
	.lvls-field { scroll-snap-align: start; }
	.lvls-field--dates { display: none; }
	.lvls-field--loc { width: 150px; }
	.lvls-field--region { width: 190px; }
	.lvls-field--duree, .lvls-field--loyer { width: 100px; }
	.lvls-form input[type="text"], .lvls-form select, .lvls-plus { height: 40px; font-size: 14px; }
	.lvls-panel { left: 16px; right: 16px; width: auto; max-height: 70vh; overflow-y: auto; }
	.lvls-wrap { margin-top: 16px; }
	.lvls-head { margin-bottom: 14px; }
	.lvls-tri label { display: none; }
	.lvls-grid, .lvls-has-map .lvls-grid { grid-template-columns: 1fr; }
	.lvls-has-map .lvls-map-col { height: 55vh; }
	.lvls .lvls-alert { flex-direction: column; align-items: flex-start; }
}
@keyframes lvlsNudge { 0%, 100% { transform: translate(0, -50%) rotate(45deg); } 50% { transform: translate(4px, -50%) rotate(45deg); } }

@media (prefers-reduced-motion: reduce) {
	.lvls-track::after, .lvls-hint::after { animation: none; }
	.lvls-grid { transition: none; }
}

/* ---------- Blindage contre les styles globaux de formulaires du site ---------- */
html body .lvls .lvls-form input[type="text"],
html body .lvls .lvls-form select,
html body .lvls .lvls-tri select {
	box-sizing: border-box !important;
	height: 44px !important;
	min-height: 0 !important;
	margin: 0 !important;
	background-color: #fff !important;
	color: var(--lvls-txt) !important;
	font: 500 14px/1.2 Nunito, "nunito-sans", sans-serif !important;
	border: 1px solid var(--lvls-bord) !important;
	border-radius: 12px !important;
	box-shadow: 0 1px 2px rgba(40, 60, 48, .06) !important;
	outline-offset: 2px;
}
html body .lvls .lvls-form input[type="text"] { padding: 10px 12px 10px 32px !important; }
html body .lvls .lvls-form select,
html body .lvls .lvls-tri select {
	padding: 10px 32px 10px 14px !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23384E40' stroke-width='1.6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	background-size: 12px 8px !important;
}
html body .lvls .lvls-tri select { height: 38px !important; padding: 6px 30px 6px 12px !important; border-color: #D8CDB8 !important; border-radius: 8px !important; box-shadow: none !important; color: #181818 !important; font-weight: 400 !important; }
html body .lvls .lvls-panel select { background-color: #F6F3EC !important; border-color: transparent !important; box-shadow: none !important; margin: 0 0 10px !important; width: 100% !important; }
html body .lvls .lvls-field--dates { height: 44px !important; box-sizing: border-box !important; }
html body .lvls .lvls-plus { height: 44px !important; padding: 0 18px !important; border-radius: 12px !important; margin: 0 !important; line-height: 1 !important; }
html body .lvls .lvls-reset { border-radius: 8px !important; padding: 8px 18px !important; margin: 0 auto !important; }
html body .lvls .lvls-map-open, html body .lvls .lvls-map-close { border-radius: 20px !important; padding: 9px 16px !important; }
html body .lvls .lvls-clear { padding: 0 !important; background: none !important; border: 0 !important; }
html body .lvls .lvls-checks input[type="checkbox"] { width: 17px !important; height: 17px !important; margin: 0 !important; padding: 0 !important; }
@media (max-width: 767px) {
	html body .lvls .lvls-form input[type="text"], html body .lvls .lvls-form select, html body .lvls .lvls-plus { height: 40px !important; }
}

html body .lvls .lvls-date, html body .lvls .lvls-tri label { margin: 0 !important; padding: 0 !important; line-height: 1.2 !important; display: flex !important; align-items: center !important; }
html body .lvls .lvls-date span { line-height: 1.2 !important; margin: 0 !important; }
html body .lvls .lvls-tri select { width: auto !important; min-width: 230px !important; }
@media (max-width: 767px) { html body .lvls .lvls-tri select { min-width: 0 !important; max-width: 60vw !important; } }

/* Fond beige pleine largeur par un pseudo-élément (au lieu de box-shadow + clip-path),
   pour que le panneau « + Critères » et l'autocomplétion passent par-dessus la liste. */
.lvls .lvls-bar { box-shadow: none; clip-path: none; }
html:has(body.lvls-page) { overflow-x: clip; }
.lvls .lvls-bar::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(50% - 50vw);
	right: calc(50% - 50vw);
	background: var(--lvls-beige, #F7E9CE);
	z-index: -1;
	pointer-events: none;
}

/* Bloc alerte de la liste : même bandeau que la fiche (icône cloche, « Recevez l’info en premier ») */
.lvls .lvls-alert{background:#F3DEB0!important;padding:26px 28px!important;gap:24px;align-items:center;border-radius:18px;box-shadow:0 6px 18px rgba(120,90,20,.10)}
.lvls .lvls-alert .lv-alert-cta__txt{display:flex;flex-direction:column;justify-content:center;position:relative;padding-left:62px;min-height:48px}
.lvls .lvls-alert .lv-alert-cta__txt::before{content:"\f0f3";font-family:"Font Awesome 6 Pro","Font Awesome 6 Free","Font Awesome 5 Pro","Font Awesome 5 Free";font-weight:900;position:absolute;left:0;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;background:#fff;color:#4F6E5A;display:flex;align-items:center;justify-content:center;font-size:20px}
.lvls .lvls-alert .lv-alert-cta__t{font-size:22px!important;line-height:1.2!important;color:#2f4437!important;margin:0 0 4px!important}
.lvls .lvls-alert .lv-alert-cta__s{font-size:15px!important;color:#3b3b3b!important;margin:0!important}
.lvls .lvls-alert .lv-alert-btn{min-width:240px;padding:15px 32px!important;font-size:16px!important;font-weight:700;flex-shrink:0;transition:background .2s,transform .2s}
.lvls .lvls-alert .lv-alert-btn:hover{background:#3d5847!important;transform:translateY(-1px)}
@media (max-width:767px){
.lvls .lvls-alert{flex-direction:column;align-items:stretch;padding:22px 20px!important;gap:16px}
.lvls .lvls-alert .lv-alert-btn{width:100%;min-width:0}
.lvls .lvls-alert .lv-alert-cta__t{font-size:19px!important}
}
