/**
 * MarocEmploi editorial archive and article templates.
 */

.me-blog-page .careerfy-main-content,
.me-blog-page .careerfy-main-section {
	margin: 0;
	padding: 0;
}

.me-blog-index,
.me-article {
	background: var(--me-color-canvas);
}

.me-blog-hero,
.me-article-hero {
	position: relative;
	color: #fff;
	overflow: hidden;
	background:
		radial-gradient(circle at 86% 18%, rgba(31, 168, 102, .22), transparent 28%),
		linear-gradient(135deg, var(--me-color-brand-dark), #24366d);
}

.me-blog-hero::after,
.me-article-hero::after {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
	background-size: 48px 48px;
	content: "";
	pointer-events: none;
}

.me-blog-hero {
	padding: clamp(58px, 7vw, 82px) 0;
}

.me-blog-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
	align-items: center;
	gap: clamp(36px, 8vw, 92px);
}

.me-blog-hero--archive .me-blog-hero__inner {
	grid-template-columns: minmax(0, 1fr) auto;
}

.me-blog-hero .me-eyebrow,
.me-article-hero .me-eyebrow {
	color: #7ce4ac;
}

.me-blog-hero h1 {
	max-width: 820px;
	margin: 0;
	color: #fff;
	font-size: clamp(40px, 4vw, 48px);
	line-height: 1.04;
}

.me-blog-hero .me-lead {
	max-width: 740px;
	color: rgba(255, 255, 255, .78);
}

.me-blog-hero__proof {
	display: grid;
	gap: 1px;
	margin: 0;
	padding: 1px;
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: 18px;
	background: rgba(255, 255, 255, .13);
	list-style: none;
	overflow: hidden;
}

.me-blog-hero__proof li {
	display: grid;
	grid-template-columns: 78px minmax(0, 1fr);
	align-items: center;
	gap: 15px;
	margin: 0;
	padding: 18px 20px;
	background: rgba(17, 26, 56, .57);
	list-style: none;
}

.me-blog-hero__proof li::before {
	display: none;
}

.me-blog-hero__proof strong {
	color: #7ce4ac;
	font-size: 22px;
	line-height: 1;
}

.me-blog-hero__proof span {
	color: rgba(255, 255, 255, .75);
	font-size: 14px;
	line-height: 1.4;
}

.me-blog-hero .me-button--hero-secondary {
	border-color: rgba(255, 255, 255, .28);
	background: rgba(255, 255, 255, .08);
	color: #fff;
}

.me-blog-hero .me-button--hero-secondary:hover {
	border-color: #fff;
	background: #fff;
	color: var(--me-color-brand);
}

.me-blog-listing {
	padding: clamp(44px, 7vw, 84px) 0 clamp(70px, 9vw, 108px);
}

.me-blog-categories {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
	margin-bottom: clamp(42px, 6vw, 68px);
}

.me-blog-categories a {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	gap: 8px;
	padding: 9px 14px;
	border: 1px solid var(--me-color-border);
	border-radius: 999px;
	background: #fff;
	color: var(--me-color-brand);
	font-size: 14px;
	font-weight: 650;
	line-height: 1;
	text-decoration: none;
	transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.me-blog-categories a span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding-inline: 6px;
	border-radius: 999px;
	background: var(--me-color-canvas);
	color: var(--me-color-muted);
	font-size: 12px;
}

.me-blog-categories a:hover,
.me-blog-categories a[aria-current="page"] {
	border-color: var(--me-color-brand);
	background: var(--me-color-brand);
	color: #fff;
}

.me-blog-categories a:hover span,
.me-blog-categories a[aria-current="page"] span {
	background: rgba(255, 255, 255, .16);
	color: #fff;
}

.me-blog-featured {
	margin-bottom: clamp(58px, 8vw, 88px);
}

.me-blog-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 26px;
}

.me-blog-section-heading h2 {
	margin: 0;
	font-size: clamp(30px, 3.2vw, 38px);
	line-height: 1.12;
}

.me-blog-section-heading > a {
	color: var(--me-color-brand);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.me-blog-section-heading > a:hover {
	color: var(--me-color-primary-dark);
}

.me-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.me-blog-card {
	position: relative;
	display: flex;
	min-width: 0;
	flex-direction: column;
	margin: 0;
	border: 1px solid var(--me-color-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--me-shadow-sm);
	overflow: hidden;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.me-blog-card:hover {
	border-color: var(--me-color-border-strong);
	box-shadow: var(--me-shadow-md);
	transform: translateY(-3px);
}

.me-blog-card--featured {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
	border-radius: 22px;
}

.me-blog-card__media {
	position: relative;
	min-height: 220px;
	background: var(--me-color-brand-soft);
	overflow: hidden;
}

.me-blog-card--featured .me-blog-card__media {
	min-height: 390px;
}

.me-blog-card__media img,
.me-blog-image-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.me-blog-card__media img {
	position: absolute;
	inset: 0;
}

.me-blog-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--me-color-brand), var(--me-color-primary));
	color: rgba(255, 255, 255, .85);
	font-size: 32px;
	font-weight: 700;
}

.me-blog-card__body {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px;
}

.me-blog-card--featured .me-blog-card__body {
	justify-content: center;
	padding: clamp(30px, 5vw, 52px);
}

.me-blog-card__category,
.me-article-hero__category {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--me-color-primary-soft);
	color: var(--me-color-primary-dark);
	font-size: 12px;
	font-weight: 650;
	letter-spacing: .035em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
}

.me-blog-card h2,
.me-blog-card h3 {
	margin: 14px 0 10px;
	font-size: clamp(20px, 2.1vw, 24px);
	font-weight: 650;
	line-height: 1.25;
}

.me-blog-card--featured h3 {
	font-size: clamp(28px, 3vw, 36px);
	line-height: 1.14;
}

.me-blog-card__link {
	color: var(--me-color-brand);
	text-decoration: none;
}

.me-blog-card__link::after {
	position: absolute;
	inset: 0;
	content: "";
}

.me-blog-card__link:focus-visible::after {
	border-radius: 18px;
	outline: 3px solid var(--me-color-action);
	outline-offset: -4px;
}

.me-blog-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 16px;
	color: var(--me-color-subtle);
	font-size: 13px;
	line-height: 1.45;
}

.me-blog-card__meta span {
	position: relative;
}

.me-blog-card__meta span::before {
	position: absolute;
	top: 50%;
	left: -9px;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	content: "";
}

.me-blog-card__body > p {
	margin: 16px 0 20px;
	color: var(--me-color-muted);
	font-size: 16px;
	line-height: 1.65;
}

.me-blog-card__read {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	color: var(--me-color-primary-dark);
	font-size: 15px;
	font-weight: 650;
}

.me-blog-card__read span {
	transition: transform 150ms ease;
}

.me-blog-card:hover .me-blog-card__read span {
	transform: translateX(3px);
}

.me-blog-all + .me-blog-pagination,
.me-blog-all .me-blog-pagination {
	margin-top: 42px;
}

.me-blog-pagination {
	margin-top: 42px;
}

.me-blog-pagination ul {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.me-blog-pagination li {
	margin: 0;
	list-style: none;
}

.me-blog-pagination li::before {
	display: none;
}

.me-blog-pagination a,
.me-blog-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 8px 13px;
	border: 1px solid var(--me-color-border);
	border-radius: 10px;
	background: #fff;
	color: var(--me-color-brand);
	font-weight: 650;
	text-decoration: none;
}

.me-blog-pagination .current,
.me-blog-pagination a:hover {
	border-color: var(--me-color-brand);
	background: var(--me-color-brand);
	color: #fff;
}

/* Single article */

.me-article-hero {
	padding: clamp(50px, 7vw, 80px) 0 clamp(62px, 9vw, 104px);
}

.me-article-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1000px;
}

.me-article-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 34px;
	color: rgba(255, 255, 255, .58);
	font-size: 13px;
}

.me-article-breadcrumb a {
	color: rgba(255, 255, 255, .78);
	text-decoration: none;
}

.me-article-breadcrumb a:hover {
	color: #fff;
}

.me-article-hero__category {
	margin-bottom: 18px;
}

.me-article-hero h1 {
	max-width: 960px;
	margin: 0;
	color: #fff;
	font-size: clamp(38px, 4.5vw, 54px);
	line-height: 1.04;
}

.me-article-hero__dek {
	max-width: 800px;
	margin: 22px 0 0;
	color: rgba(255, 255, 255, .75);
	font-size: clamp(17px, 1.7vw, 19px);
	line-height: 1.6;
}

.me-article-byline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-top: 28px;
	color: rgba(255, 255, 255, .7);
	font-size: 14px;
}

.me-article-byline > * + * {
	position: relative;
}

.me-article-byline > * + *::before {
	position: absolute;
	top: 50%;
	left: -11px;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	content: "";
}

.me-article-byline a {
	color: #fff;
}

.me-article-body {
	padding: 0 0 clamp(72px, 9vw, 112px);
}

.me-article-featured-image {
	position: relative;
	z-index: 2;
	width: min(100%, 1050px);
	margin: clamp(-50px, -5vw, -34px) auto clamp(40px, 6vw, 66px);
	border: 8px solid #fff;
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--me-shadow-md);
	overflow: hidden;
}

.me-article-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 620px;
	object-fit: cover;
}

.me-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
	align-items: start;
	gap: clamp(28px, 5vw, 58px);
	max-width: 1120px;
	margin-inline: auto;
}

.me-article-main {
	min-width: 0;
}

.me-article-content,
.me-article-comments {
	padding: clamp(28px, 5vw, 54px);
	border: 1px solid var(--me-color-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--me-shadow-sm);
}

.me-article-content {
	color: #30394a;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(17px, 1.5vw, 18px);
	line-height: 1.65;
}

.me-article-content > :first-child {
	margin-top: 0;
}

.me-article-content > :last-child {
	margin-bottom: 0;
}

.me-article-content h2 {
	margin: 1.15em 0 .4em;
	color: var(--me-color-brand);
	font-family: var(--me-font-sans);
	font-size: clamp(24px, 2.8vw, 32px);
	line-height: 1.22;
}

.me-article-content p,
.me-article-content li,
.me-article-content td,
.me-article-content th {
	font-size: inherit;
	line-height: inherit;
}

.me-article-content p,
.me-article-content ul,
.me-article-content ol,
.me-article-content blockquote,
.me-article-content figure,
.me-article-content table {
	margin: 0 0 1.1em;
}

.me-article-content ul,
.me-article-content ol {
	padding-left: 1.35em;
}

.me-article-content li {
	margin-bottom: .35em;
}

.me-article-content a {
	color: #1d5fc3;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.me-article-content blockquote {
	padding: 20px 24px;
	border-left: 4px solid var(--me-color-primary);
	background: var(--me-color-primary-soft);
	color: var(--me-color-brand);
	font-size: 1.08em;
}

.me-article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.me-article-content iframe,
.me-article-content video {
	max-width: 100%;
}

.me-article-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.me-article-content th,
.me-article-content td {
	padding: 10px 12px;
	border: 1px solid var(--me-color-border);
}

.me-article-aside {
	position: sticky;
	top: 24px;
	display: grid;
	gap: 18px;
}

.me-article-facts,
.me-article-job-cta {
	padding: 24px;
	border: 1px solid var(--me-color-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--me-shadow-sm);
}

.me-article-facts h2,
.me-article-job-cta h2 {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
}

.me-article-facts dl {
	display: grid;
	gap: 0;
	margin: 20px 0 0;
}

.me-article-facts dl div {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 12px;
	padding: 11px 0;
	border-top: 1px solid var(--me-color-border);
}

.me-article-facts dt {
	color: var(--me-color-muted);
	font-size: 13px;
	font-weight: 600;
}

.me-article-facts dd {
	margin: 0;
	color: var(--me-color-ink);
	font-size: 14px;
	font-weight: 500;
}

.me-article-facts dd a {
	color: var(--me-color-primary-dark);
}

.me-article-job-cta {
	border-color: rgba(31, 168, 102, .3);
	background: linear-gradient(145deg, #fff, var(--me-color-primary-soft));
}

.me-article-job-cta > p:not(.me-eyebrow) {
	margin: 13px 0 18px;
	color: var(--me-color-muted);
	font-size: 15px;
	line-height: 1.55;
}

.me-article-job-cta .me-button {
	width: 100%;
}

.me-article-post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-top: 22px;
}

.me-article-post-nav a {
	display: grid;
	gap: 5px;
	min-width: 0;
	padding: 18px;
	border: 1px solid var(--me-color-border);
	border-radius: 12px;
	background: #fff;
	color: var(--me-color-brand);
	text-decoration: none;
}

.me-article-post-nav a:hover {
	border-color: var(--me-color-primary);
}

.me-article-post-nav span {
	color: var(--me-color-muted);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.me-article-post-nav strong {
	font-size: 15px;
	line-height: 1.35;
}

.me-article-comments {
	margin-top: 22px;
}

.me-article-comments > h2,
.me-article-comments .comment-reply-title {
	margin: 0 0 22px;
	font-size: 24px;
}

.me-article-comments .comment-list {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.me-article-comments .comment-list .comment {
	margin: 0 0 16px;
	padding: 18px;
	border: 1px solid var(--me-color-border);
	border-radius: 12px;
	list-style: none;
}

.me-article-comments .children {
	margin: 14px 0 0 20px;
}

.me-article-comments label {
	display: block;
	margin-bottom: 6px;
	color: var(--me-color-brand);
	font-weight: 600;
}

.me-article-comments input[type="text"],
.me-article-comments input[type="email"],
.me-article-comments input[type="url"],
.me-article-comments textarea {
	width: 100%;
	min-height: 46px;
	padding: 11px 13px;
	border: 1px solid var(--me-color-border-strong);
	border-radius: 9px;
	background: #fff;
}

.me-article-comments textarea {
	min-height: 150px;
	resize: vertical;
}

.me-article-comments .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.me-article-comments .comment-form-cookies-consent label {
	margin: 0;
	font-weight: 500;
}

.me-article-related {
	padding: clamp(62px, 8vw, 96px) 0;
	background: #fff;
}

.me-article-related .me-blog-card {
	background: var(--me-color-canvas);
}

@media (max-width: 980px) {
	.me-blog-hero__inner,
	.me-blog-hero--archive .me-blog-hero__inner {
		grid-template-columns: 1fr;
	}

	.me-blog-hero__proof {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.me-blog-hero__proof li {
		grid-template-columns: 1fr;
	}

	.me-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.me-blog-card--featured {
		grid-template-columns: 1fr;
	}

	.me-blog-card--featured .me-blog-card__media {
		min-height: 360px;
	}

	.me-article-layout {
		grid-template-columns: 1fr;
	}

	.me-article-aside {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.me-blog-hero {
		padding: 46px 0 50px;
	}

	.me-blog-hero__inner {
		gap: 28px;
	}

	.me-blog-hero h1 {
		font-size: clamp(34px, 11vw, 42px);
	}

	.me-blog-hero__proof li {
		gap: 6px;
		padding: 13px 7px;
		text-align: center;
	}

	.me-blog-hero__proof strong {
		font-size: 18px;
	}

	.me-blog-hero__proof span {
		font-size: 12px;
		line-height: 1.3;
	}

	.me-blog-categories {
		flex-wrap: nowrap;
		margin-right: -14px;
		margin-left: -14px;
		padding: 0 14px 8px;
		overflow-x: auto;
		-ms-overflow-style: none;
		scrollbar-width: none;
	}

	.me-blog-categories::-webkit-scrollbar {
		display: none;
	}

	.me-blog-categories a {
		flex: 0 0 auto;
	}

	.me-blog-grid,
	.me-article-aside,
	.me-article-post-nav {
		grid-template-columns: 1fr;
	}

	.me-blog-grid {
		gap: 18px;
	}

	.me-blog-card--featured .me-blog-card__media {
		min-height: 230px;
	}

	.me-blog-card--featured .me-blog-card__body,
	.me-blog-card__body {
		padding: 22px;
	}

	.me-blog-section-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.me-article-hero {
		padding: 38px 0 78px;
	}

	.me-article-breadcrumb {
		margin-bottom: 26px;
	}

	.me-article-hero h1 {
		font-size: clamp(34px, 9vw, 38px);
	}

	.me-article-featured-image {
		margin-top: -40px;
		border-width: 5px;
		border-radius: 16px;
	}

	.me-article-content,
	.me-article-comments {
		padding: 24px 20px;
	}

	.me-article-content {
		font-size: 17px;
		line-height: 1.65;
	}

	.me-article-byline {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}

	.me-article-byline > * + *::before {
		display: none;
	}
}
