/* =========================================================
   Détail offre — layout aéré, simple, professionnel
   ========================================================= */

.job {
	--navy: #0e386d;
	--ink: #1a2332;
	--muted: #6b7785;
	--line: #e6ebf0;
	--bg: #f5f7fa;
	--white: #ffffff;
	--ok: #0f766e;
	padding: 96px 0 80px;
	background: var(--bg);
	color: var(--ink);
	font-family: Montserrat, "Segoe UI", sans-serif;
	margin-top: 0 !important;
}

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

/* ---- En-tête ---- */
.job-top {
	background: var(--white);
	border-bottom: 1px solid var(--line);
	padding: 48px 0 36px;
	margin-bottom: 40px;
}

.job-back {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	margin-bottom: 28px;
	font-size: 14px;
	font-weight: 600;
	color: var(--navy) !important;
	text-decoration: none !important;
}

.job-back:hover {
	opacity: 0.75;
}

.job-head {
	display: grid;
	grid-template-columns: 72px 1fr auto;
	gap: 24px;
	align-items: center;
}

.job-head__logo {
	width: 72px;
	height: 72px;
	object-fit: contain;
	background: var(--bg);
	border: 1px solid var(--line);
	padding: 8px;
}

.job-head__company {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--navy);
}

.job-head__title {
	margin: 0 0 10px;
	font-size: clamp(26px, 3.5vw, 36px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--ink) !important;
	letter-spacing: -0.02em;
}

.job-head__place {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--muted);
}

.job-head__cta {
	justify-self: end;
}

.job-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	min-height: 48px;
	padding: 12px 28px;
	background: var(--navy);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none !important;
	border: none;
	transition: background 0.2s, transform 0.2s;
}

.job-btn:hover {
	background: #1565c0;
	color: #fff !important;
	transform: translateY(-1px);
}

.job-badge {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 18px;
	background: #eef1f5;
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
}

.job-badge--ok {
	background: #ecfdf5;
	color: var(--ok);
}

/* ---- Contenu central ---- */
.job-main {
	max-width: 860px;
}

.job-content {
	background: var(--white);
	border: 1px solid var(--line);
	padding: 48px 52px;
}

.job-dates {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-bottom: 48px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--line);
}

.job-dates span {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.job-dates strong {
	font-size: 16px;
	font-weight: 700;
	color: var(--ink);
}

.job-section {
	margin-bottom: 48px;
	padding-bottom: 48px;
	border-bottom: 1px solid var(--line);
}

.job-section:last-of-type {
	margin-bottom: 0;
}

.job-section h2 {
	margin: 0 0 24px;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--navy);
	font-style: normal;
	font-family: Montserrat, "Segoe UI", sans-serif;
}

.job-missions {
	list-style: none;
	margin: 0;
	padding: 0;
}

.job-missions li {
	position: relative;
	padding: 14px 0 14px 28px;
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	border-bottom: 1px solid #f0f3f6;
}

.job-missions li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.job-missions li:first-child {
	padding-top: 0;
}

.job-missions li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 22px;
	width: 8px;
	height: 8px;
	background: var(--navy);
}

.job-missions li:first-child::before {
	top: 10px;
}

.job-specs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.job-spec {
	padding: 24px;
	background: var(--bg);
	border: 1px solid var(--line);
}

.job-spec--wide {
	grid-column: 1 / -1;
}

.job-spec span,
.job-traits > span {
	display: block;
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.job-spec p {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--ink);
}

.job-traits {
	margin-top: 28px;
}

.job-traits > div {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.job-traits em {
	font-style: normal;
	padding: 10px 16px;
	background: #e8f0fa;
	color: var(--navy);
	font-size: 14px;
	font-weight: 600;
}

.job-company {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 28px;
}

.job-company img {
	width: 64px;
	height: 64px;
	object-fit: contain;
	background: var(--bg);
	border: 1px solid var(--line);
	padding: 6px;
	flex-shrink: 0;
}

.job-company strong {
	display: block;
	margin-bottom: 8px;
	font-size: 18px;
	color: var(--ink);
}

.job-company p {
	margin: 0 0 4px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--muted);
}

.job-company__desc {
	margin-bottom: 28px;
	font-size: 16px;
	line-height: 1.75;
	color: var(--ink);
}

.job-contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.job-contacts a {
	display: inline-flex;
	padding: 12px 18px;
	border: 1px solid var(--line);
	color: var(--navy) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	background: var(--white);
	transition: background 0.2s, border-color 0.2s;
}

.job-contacts a:hover {
	background: var(--bg);
	border-color: var(--navy);
}

.job-bottom-cta {
	margin-top: 48px;
	padding: 36px;
	text-align: center;
	background: var(--navy);
	color: #fff;
}

.job-bottom-cta p {
	margin: 0 0 20px;
	font-size: 18px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
}

.job-bottom-cta .job-btn {
	background: #fff;
	color: var(--navy) !important;
}

.job-bottom-cta .job-btn:hover {
	background: #e8f0fa;
	color: var(--navy) !important;
}

.job-bottom-cta--done {
	background: #ecfdf5;
}

.job-bottom-cta--done p {
	margin: 0;
	color: var(--ok);
}

.job-empty {
	padding: 80px 16px;
	text-align: center;
}

.job-empty p {
	margin-top: 32px;
	font-size: 16px;
	color: var(--muted);
}

@media (max-width: 767.98px) {
	.job {
		padding: 88px 0 56px;
	}

	.job-top {
		padding: 20px 0 28px;
		margin-bottom: 28px;
	}

	.job-head {
		grid-template-columns: 56px 1fr;
		gap: 16px;
	}

	.job-head__logo {
		width: 56px;
		height: 56px;
	}

	.job-head__cta {
		grid-column: 1 / -1;
		justify-self: stretch;
	}

	.job-head__cta .job-btn,
	.job-head__cta .job-badge {
		width: 100%;
		justify-content: center;
	}

	.job-content {
		padding: 28px 20px;
	}

	.job-dates,
	.job-specs {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.job-section {
		margin-bottom: 36px;
		padding-bottom: 36px;
	}

	.job-bottom-cta {
		margin-top: 36px;
		padding: 28px 20px;
	}
}
