/* =========================================================
   Offres d'emploi — affichage front
   ========================================================= */

.oe-offres {
	--oe-accent: #1d4ed8;
	--oe-text: #1f2937;
	--oe-surface: #ffffff;
	--oe-border: #e5e7eb;
	--oe-muted: #6b7280;
	--oe-badge-bg: #eef2ff;
	--oe-badge-text: #1d4ed8;
	--oe-btn-bg: #1d4ed8;
	--oe-btn-text: #ffffff;
	--oe-modal-accent: #1d4ed8;
	--oe-radius: 14px;

	color: var(--oe-text);
	width: 100%;
	box-sizing: border-box;
}

.oe-offres *,
.oe-offres *::before,
.oe-offres *::after { box-sizing: border-box; }

.oe-ico { width: 1em; height: 1em; flex: 0 0 auto; vertical-align: -0.15em; }

/* ---------- Grille ---------- */
.oe-grid { display: grid; gap: 20px; align-items: start; }

.oe-card {
	background: var(--oe-surface);
	border: 1px solid var(--oe-border);
	border-radius: var(--oe-radius);
	padding: 22px;
	display: flex;
	flex-direction: column;
}

.oe-card-title {
	margin: 0 0 12px;
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1.25;
	color: var(--oe-text);
}

/* ---------- Badges (profil recherché) ---------- */
.oe-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.oe-badge {
	font-size: .78em;
	font-weight: 600;
	color: var(--oe-badge-text);
	background: var(--oe-badge-bg);
	padding: 4px 11px;
	border-radius: 999px;
	line-height: 1.3;
}

/* ---------- Méta ---------- */
.oe-meta { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 9px; }

.oe-meta li { display: flex; align-items: center; gap: 9px; font-size: .95em; color: var(--oe-text); }

.oe-meta .oe-ico { color: var(--oe-accent); font-size: 1.1em; }

/* ---------- Bouton En savoir plus ---------- */
.oe-more {
	margin-top: auto;
	align-self: flex-start;
	font: inherit;
	cursor: pointer;
	border: 1px solid var(--oe-accent);
	background: transparent;
	color: var(--oe-accent);
	font-weight: 600;
	padding: 9px 18px;
	border-radius: 10px;
	-webkit-appearance: none;
	appearance: none;
	transition: background .15s ease, color .15s ease;
}

.oe-more:hover { background: var(--oe-accent); color: #fff; }

.oe-empty { text-align: center; color: var(--oe-muted); padding: 40px 16px; }

/* =========================================================
   POP-UP
   ========================================================= */
body.oe-modal-open { overflow: hidden; }

.oe-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.oe-modal[hidden] { display: none; }

.oe-modal-ov { position: absolute; inset: 0; background: rgba(17, 24, 39, .55); backdrop-filter: blur(2px); }

.oe-modal-box {
	position: relative;
	background: #fff;
	color: var(--oe-text);
	width: 100%;
	max-width: 620px;
	max-height: 88vh;
	overflow: auto;
	border-radius: 16px;
	padding: 34px 30px 30px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.oe-modal-accent { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--oe-modal-accent); }

.oe-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: none;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: var(--oe-muted);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.oe-modal-close:hover { color: var(--oe-text); }

.oe-d-title { margin: 0 40px 12px 0; font-size: 1.5em; font-weight: 700; line-height: 1.2; }

.oe-d-badges { margin-bottom: 20px; }

/* ---------- Sections riches ---------- */
.oe-section { margin: 0 0 22px; }

.oe-section h4 {
	margin: 0 0 8px;
	font-size: 1.02em;
	font-weight: 700;
	color: var(--oe-accent);
	padding-bottom: 6px;
	border-bottom: 2px solid var(--oe-badge-bg);
}

.oe-rte { font-size: .98em; line-height: 1.65; }
.oe-rte p { margin: 0 0 10px; }
.oe-rte ul, .oe-rte ol { margin: 0 0 10px; padding-left: 20px; }
.oe-rte li { margin-bottom: 5px; }
.oe-rte strong { font-weight: 700; }

/* ---------- Récapitulatif ---------- */
.oe-recap {
	background: var(--oe-badge-bg);
	border-radius: 12px;
	padding: 16px 18px;
	margin: 0 0 22px;
}

.oe-recap-title {
	font-size: .74em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--oe-accent);
	margin-bottom: 10px;
}

.oe-recap ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 18px; }
.oe-recap li { display: flex; align-items: center; gap: 8px; font-size: .95em; }
.oe-recap .oe-ico { color: var(--oe-accent); font-size: 1.1em; }

/* ---------- Bouton Postuler ---------- */
.oe-apply {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	text-decoration: none;
	background: var(--oe-btn-bg);
	color: var(--oe-btn-text);
	font-weight: 600;
	padding: 12px 24px;
	border-radius: 10px;
	transition: filter .15s ease;
}

.oe-apply:hover { filter: brightness(.92); color: var(--oe-btn-text); }
.oe-apply .oe-ico { font-size: 1.1em; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
	.oe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 640px) {
	.oe-grid { grid-template-columns: 1fr !important; }
	.oe-modal-box { padding: 28px 20px 24px; }
	.oe-d-title { font-size: 1.3em; }
}
