/* Ajustements spécifiques au CPT offer, par-dessus le CSS JobSearch embarqué. */

/* ====================== SINGLE OFFER ====================== */

/* Masque le titre + la méta blog ("date | catégorie") en double : la fiche a son propre titre. */
.single-offer .et_post_meta_wrapper {
	display: none;
}

/* Supprime les marges hautes que Divi ajoute au-dessus du contenu, pour que le
   bandeau colle au menu (comme la page /job/ de JobSearch). */
.single-offer #main-content .container { padding-top: 0 !important; }
.single-offer #content-area,
.single-offer #left-area { padding-top: 0 !important; }
.single-offer .entry-content { padding-top: 0 !important; }
.single-offer article.et_pb_post { margin-top: 0 !important; padding-top: 0 !important; }

/* Bandeau de couverture pleine largeur (le contenu Divi est contraint, on déborde). */
.mace-offer-single .mace-cover {
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
	/* Remonte sous l'en-tête fixe opaque pour coller au menu (comble l'offset Divi résiduel). */
	margin-top: -30px;
	height: 320px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.mace-offer-single .mace-cover-overlay {
	position: absolute;
	inset: 0;
	background: rgba(48, 56, 68, .5);
}

/* La carte et les colonnes passent au-dessus du bandeau. */
.mace-offer-single .mace-titlecard,
.mace-offer-single .mace-cols {
	position: relative;
	z-index: 2;
}

/* Carte-titre blanche qui déborde sur le bas du bandeau. */
.mace-offer-single .mace-titlecard {
	background: #fff;
	padding: 35px 40px;
	margin: -190px 0 30px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
	position: relative;
	z-index: 2;
}
.mace-offer-single .mace-titlecard figcaption { margin: 0; }
.mace-offer-single .mace-offer-meta { display: inline-block; margin: 6px 0; }
/* Aligne la ligne « Date de publication » avec le titre et le badge (pas de retrait de liste). */
.mace-offer-single .mace-titlecard .jobsearch-jobdetail-options {
	list-style: none !important;
	padding-left: 0 !important;
	margin-left: 0 !important;
}

/* 2 colonnes : contenu + bloc postuler. */
.mace-offer-single .mace-cols {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}
.mace-offer-single .mace-col-main { flex: 1 1 auto; min-width: 0; }
.mace-offer-single .mace-col-side { flex: 0 0 320px; }
@media (max-width: 980px) {
	.mace-offer-single .mace-cols { flex-direction: column; }
	.mace-offer-single .mace-col-side { flex-basis: auto; width: 100%; }
}

/* Bloc « Postuler ». */
.mace-offer-single .jobsearch_apply_job {
	padding: 25px;
	border: 1px solid #eee;
	border-radius: 6px;
	background: #fff;
}
.mace-offer-apply-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 16px 20px;
	background: #d9881c;
	color: #fff !important;
	font-weight: 600;
	border-radius: 4px;
	text-decoration: none;
	transition: background .2s ease;
}
.mace-offer-apply-btn:hover { background: #bf7414; color: #fff !important; }

/* Listes du contenu : flèche bleue (comme la référence), sans puce. */
.mace-offer-single .jobsearch-jobdetail-content ul {
	list-style: none;
	padding-left: 0;
}
.mace-offer-single .jobsearch-jobdetail-content ul li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 8px;
}
.mace-offer-single .jobsearch-jobdetail-content ul li:before {
	content: "\2192"; /* → */
	position: absolute;
	left: 0;
	top: 0;
	color: #13b5ea;
	font-weight: 700;
}

/* ====================== LISTE (shortcode) ====================== */

/* Le conteneur ne flotte pas : le bouton/section suivant passe DESSOUS (pas à côté). */
.jobsearch-job.jobsearch-joblisting-classic {
	float: none;
	width: 100%;
}

/* Extrait limité à ~4 lignes comme avant. */
.jobsearch-list-excerpt p {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
}

/* ====================== PAGINATION ====================== */
.jobsearch-pagination { margin-top: 24px; text-align: center; }
.jobsearch-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 3px;
	border-radius: 3px;
	background: #f4f5f7;
	text-decoration: none;
}
.jobsearch-pagination .page-numbers.current { background: #d9881c; color: #fff; font-weight: 700; }
