/*
Theme Name: Conseil Emploi
Theme URI: https://www.conseilemploi.fr/
Author: Conseil Emploi
Description: Thème magazine de Conseil Emploi. Accueil en une, grilles d’articles, article et pages.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: conseil-emploi
*/

:root {
	--ink: #111111;
	--text: #494949;
	--muted: #6d6d6d;
	--line: #e6e6e6;
	--accent: #2d53fe;
	--paper: #ffffff;
	--footer: #f7f7f7;
	--wrap: 1170px;
	--serif: "Roboto", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--serif);
	font-size: 16px;
	line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }

.wrap {
	width: min(var(--wrap), calc(100% - 40px));
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -40px;
	background: var(--ink);
	color: #fff;
	padding: 8px 12px;
	z-index: 100;
}
.skip-link:focus { top: 12px; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid transparent;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-bar {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 92px;
}

.logo img { width: 168px; height: auto; }
.logo { flex: 0 0 auto; }

.nav-toggle {
	display: none;
	border: 0;
	background: transparent;
	width: 42px;
	height: 42px;
	padding: 0;
	cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
	display: block;
	height: 2px;
	width: 20px;
	background: var(--ink);
	position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.primary-nav { flex: 1 1 auto; }
.primary-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.primary-nav a {
	color: var(--ink);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}
.primary-nav .current-menu-item > a,
.primary-nav a:hover { color: var(--accent); }

.header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
}
.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: var(--ink);
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
}
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }

.search-dialog {
	border: 0;
	padding: 0;
	background: transparent;
	max-width: none;
	width: 100%;
	height: 100%;
}
.search-dialog::backdrop { background: rgba(17, 17, 17, 0.45); }
.search-dialog form {
	margin: 18vh auto 0;
	width: min(640px, calc(100% - 32px));
	background: #fff;
	padding: 28px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}
.search-dialog input[type="search"] {
	width: 100%;
	border: 0;
	border-bottom: 2px solid var(--ink);
	padding: 10px 0;
	font-size: 22px;
	outline: none;
}
.search-dialog p { color: var(--muted); margin: 12px 0 0; }

.site-main { padding: 36px 0 80px; }

.section { margin-bottom: 56px; }
.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}
.section-title {
	margin: 0;
	color: var(--ink);
	font-size: 28px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	gap: 36px;
	align-items: start;
}

.feature .thumb { margin-bottom: 18px; }
.feature .thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cat {
	display: inline-block;
	color: var(--accent);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	text-decoration: none;
}
.feature h2,
.card h3,
.news-lead h3 {
	margin: 8px 0 10px;
	color: var(--ink);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
}
.feature h2 { font-size: 32px; }
.feature h2 a,
.card h3 a,
.news-lead h3 a,
.mini a,
.side-item h3 a,
.footer-post a { color: var(--ink); text-decoration: none; }
.feature h2 a:hover,
.card h3 a:hover,
.news-lead h3 a:hover,
.side-item h3 a:hover,
.footer-post a:hover { color: var(--accent); }

.meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	color: var(--muted);
	font-size: 13px;
	margin-bottom: 12px;
}
.meta a { color: inherit; text-decoration: none; }
.excerpt { margin: 0 0 14px; }
.more {
	color: var(--ink);
	font-weight: 500;
	text-decoration: none;
}
.more:hover { color: var(--accent); }

.side-title {
	margin: 0 0 16px;
	font-size: 18px;
	color: var(--ink);
}
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.side-item { display: grid; gap: 10px; }
.side-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.side-item h3 { margin: 6px 0 4px; font-size: 18px; line-height: 1.3; }

.grid-2,
.grid-3 {
	display: grid;
	gap: 28px 24px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card img,
.news-lead img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 12px; }
.card h3 { font-size: 20px; }

.news-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 28px;
}
.news-lead h3 { font-size: 26px; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.mini {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
}
.mini img { width: 112px; height: 76px; object-fit: cover; }
.mini h3 { margin: 4px 0 0; font-size: 16px; line-height: 1.35; }

.partner { text-align: center; }
.partner img { margin-inline: auto; }

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	align-items: start;
}
.layout.solo { grid-template-columns: minmax(0, 760px); }

.entry-title {
	margin: 8px 0 12px;
	color: var(--ink);
	font-size: clamp(32px, 4vw, 44px);
	line-height: 1.15;
	letter-spacing: -0.03em;
}
.hero-image { margin: 18px 0 26px; }
.hero-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.entry-content { font-size: 17px; color: #333; }
.entry-content h2,
.entry-content h3 { color: var(--ink); line-height: 1.3; letter-spacing: -0.02em; }
.entry-content img { margin: 18px 0; }
.entry-content ul,
.entry-content ol { padding-left: 1.2em; }
.entry-content blockquote {
	margin: 24px 0;
	padding-left: 16px;
	border-left: 3px solid var(--accent);
	color: var(--ink);
}
.page-content { max-width: 760px; }

.share {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 14px;
}
.share a { color: var(--ink); font-weight: 500; }

.archive-title {
	margin: 0 0 28px;
	color: var(--ink);
	font-size: 36px;
	letter-spacing: -0.03em;
}
.archive-list { display: grid; gap: 28px; }
.archive-item {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 22px;
}
.archive-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.archive-item h2 { margin: 6px 0 8px; font-size: 24px; }
.archive-item h2 a { color: var(--ink); text-decoration: none; }
.archive-item h2 a:hover { color: var(--accent); }

.nav-links,
.pagination { margin-top: 32px; }
.nav-links { display: flex; justify-content: space-between; gap: 16px; }
.page-numbers {
	display: inline-block;
	margin-right: 6px;
	padding: 6px 10px;
	color: var(--ink);
	text-decoration: none;
}
.page-numbers.current { color: var(--accent); font-weight: 700; }

.comments { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { margin-bottom: 18px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: min(100%, 520px);
	border: 1px solid #ccc;
	padding: 10px 12px;
}
.comment-form textarea,
.wpcf7 textarea { min-height: 140px; }
.comment-form input[type="submit"],
.wpcf7 input[type="submit"] {
	background: var(--accent);
	color: #fff;
	border: 0;
	padding: 12px 18px;
	cursor: pointer;
}

.site-footer { background: var(--footer); padding: 48px 0 20px; color: var(--text); }
.footer-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}
.footer-grid h2 {
	margin: 0 0 16px;
	font-size: 16px;
	color: var(--ink);
}
.footer-post { margin-bottom: 16px; }
.footer-post.with-thumb { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
.footer-post img { width: 72px; height: 72px; object-fit: cover; }
.footer-post p { margin: 6px 0 0; font-size: 14px; }
.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 28px;
	padding-top: 16px;
	border-top: 1px solid #e4e4e4;
	font-size: 14px;
}
.to-top { color: var(--ink); text-decoration: none; }

.empty { color: var(--muted); }

@media (max-width: 980px) {
	.hero-grid,
	.news-grid,
	.layout,
	.grid-3,
	.footer-grid { grid-template-columns: 1fr; }
	.grid-2 { grid-template-columns: 1fr 1fr; }
	.archive-item { grid-template-columns: 180px minmax(0, 1fr); }
}

@media (max-width: 760px) {
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.header-bar { min-height: 74px; gap: 8px; }
	.logo { margin-inline: auto; }
	.logo img { width: 140px; }
	.primary-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 74px;
		background: #fff;
		border-bottom: 1px solid var(--line);
		padding: 12px 20px 18px;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav ul { display: grid; gap: 12px; }
	.header-actions { margin-left: 0; }
	.grid-2,
	.archive-item,
	.mini { grid-template-columns: 1fr; }
	.mini img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
	.feature h2 { font-size: 26px; }
	.section-title { font-size: 24px; }
	.footer-bottom { flex-direction: column; }
}
