/* ============================================================
   SEO Hub Styles — Homepage H1 + Pilier Région
   ============================================================ */

/* --- Hero wrapper for absolute positioning --- */
.seo-hero-wrap {
	position: relative;
}

/* --- Homepage H1 (centré verticalement, légèrement à droite) --- */
.seo-h1-home {
	font-family: 'DM Sans', 'Open Sans', sans-serif;
	font-size: 30px;
	font-weight: 700;
	text-align: center;
	color: #1a1d2e;
	line-height: 1.3;
	position: absolute;
	top: 50%;
	left: 30%;
	transform: translate(-50%, -50%);
	max-width: 500px;
	padding: 0 20px;
	margin: 0;
	z-index: 5;
	pointer-events: none;
}
.seo-h1-home span {
	color: #e74c6f;
}
.seo-h1-count {
	color: #e74c6f;
	font-weight: 800;
}

/* --- Card wide (Marché de l'emploi — pleine largeur dans la grille) --- */
.seo-card.seo-card--wide {
	grid-column: 1 / -1;
}

/* --- Browse pages H1 (villes, catégories) --- */
.browse-seo-h1 {
	font-family: 'DM Sans', 'Open Sans', sans-serif;
	font-size: 26px;
	color: #1a1d2e;
	margin: 0 0 8px;
	font-weight: 700;
}
.browse-seo-intro {
	font-size: 15px;
	color: #6b7280;
	margin: 0 0 20px;
}

/* --- Region Pillar Page --- */
.region-pillar {
	padding: 30px 0;
}
.region-pillar__hero {
	margin-bottom: 30px;
}
.region-pillar__hero h1 {
	font-family: 'DM Sans', 'Open Sans', sans-serif;
	font-size: 28px;
	color: #1a1d2e;
	margin: 0 0 15px;
	font-weight: 700;
}
.region-pillar__intro {
	font-size: 15px;
	color: #6b7280;
	line-height: 1.7;
}
.region-pillar__section {
	margin-bottom: 30px;
}
.region-pillar__section h2 {
	font-size: 20px;
	color: #1a1d2e;
	margin: 0 0 18px;
	font-weight: 600;
	padding-bottom: 10px;
	border-bottom: 2px solid #e5e7eb;
}
.region-pillar__breadcrumb {
	margin-bottom: 20px;
}
.region-pillar__breadcrumb a {
	color: #e74c6f;
	font-size: 14px;
}

/* --- SEO links (réutilisable sur pilier région) --- */
.seo-links {
	margin: 0;
	padding: 0;
}
.seo-links li {
	padding: 6px 0;
	line-height: 1.6;
}
.seo-links li a {
	color: #1a1d2e;
	text-decoration: none;
	font-size: 14px;
	display: block;
	padding: 4px 8px;
	border-radius: 3px;
	transition: background 0.2s;
}
.seo-links li a:hover {
	background: rgba(231, 76, 111, 0.06);
	text-decoration: none;
	color: #e74c6f;
}
.seo-links__count {
	color: #6b7280;
	font-size: 12px;
	margin-left: 4px;
}

/* --- Responsive --- */
@media (max-width: 991px) {
	/* Force vertical stacking: hero text ABOVE the search form */
	.seo-hero-wrap {
		display: flex;
		flex-direction: column;
		min-height: 0;
		background-image: none !important;
		padding: 20px 12px 0;
	}
	.seo-h1-home {
		position: static;
		transform: none;
		max-width: 100%;
		margin: 0 auto 18px;
		font-size: 22px;
		text-align: center;
		right: auto;
		left: auto;
		top: auto;
		pointer-events: auto;
	}
	.seo-hero-wrap .quick-search__frontpage {
		position: static;
		margin-top: 0;
		width: 100%;
	}
}
@media (max-width: 767px) {
	.seo-h1-home {
		font-size: 20px;
	}
	.seo-card.seo-card--wide {
		grid-column: 1 / -1;
	}
	.region-pillar__hero h1 {
		font-size: 22px;
	}
	.region-pillar__section h2 {
		font-size: 18px;
	}
	.browse-seo-h1 {
		font-size: 20px;
	}
	.browse-seo-intro {
		font-size: 14px;
	}
	.seo-bottom-content {
		padding: 20px 15px;
	}
	.seo-bottom-content h2 {
		font-size: 18px;
	}
}

/* ============================================================
   SEO Bottom Content — Textes SEO en bas des pages listings
   ============================================================ */
.seo-bottom-content {
	margin-top: 40px;
	padding: 30px 20px;
	border-top: 2px solid #f0f0f0;
	background: #fafafa;
	border-radius: 8px;
}
.seo-bottom-content h2 {
	font-size: 20px;
	color: #1a1a2e;
	margin-bottom: 15px;
	font-weight: 600;
	line-height: 1.4;
}
.seo-bottom-content .seo-text {
	font-size: 14.5px;
	line-height: 1.75;
	color: #555;
}
.seo-bottom-content .seo-text p {
	margin-bottom: 12px;
}
.seo-bottom-content .seo-text a {
	color: #ed174b;
	text-decoration: none;
	font-weight: 500;
}
.seo-bottom-content .seo-text a:hover {
	text-decoration: underline;
}

/* ============================================================
   SEO Pages — /emploi/ guide pages
   ============================================================ */
.seo-page-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 40px 20px 60px;
}

/* --- Breadcrumb --- */
.seo-breadcrumb {
	font-size: 13px;
	color: #999;
	margin-bottom: 20px;
}
.seo-breadcrumb a {
	color: #ed174b;
	text-decoration: none;
}
.seo-breadcrumb a:hover {
	text-decoration: underline;
}
.seo-breadcrumb__sep {
	margin: 0 6px;
	color: #ccc;
}

/* --- H1 --- */
.seo-page-h1 {
	font-size: 28px;
	font-weight: 700;
	color: #1a1a2e;
	margin-bottom: 16px;
	line-height: 1.3;
}

/* --- Intro (1er paragraphe mis en avant) --- */
.seo-page-intro {
	font-size: 16.5px;
	line-height: 1.8;
	color: #333;
	border-left: 4px solid #ed174b;
	padding: 16px 20px;
	margin-bottom: 24px;
	background: #fdf2f5;
	border-radius: 0 8px 8px 0;
}
.seo-page-intro p {
	margin: 0;
}

/* --- CTA (haut + bas) --- */
.seo-page-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin: 28px 0;
}
.seo-page-cta--top {
	margin-bottom: 30px;
}
.seo-page-cta--bottom {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 2px solid #f0f0f0;
}
.btn-cta {
	display: inline-block;
	background: #ed174b;
	color: #fff !important;
	padding: 13px 32px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.2s, transform 0.15s;
	border: 2px solid #ed174b;
	cursor: pointer;
	font-family: inherit;
}
.btn-cta:hover {
	background: #d41442;
	border-color: #d41442;
	transform: translateY(-1px);
}
.btn-cta--outline {
	background: transparent;
	color: #ed174b !important;
	border: 2px solid #ed174b;
}
.btn-cta--outline:hover {
	background: #ed174b;
	color: #fff !important;
}
.btn-cta--alert {
	background: #1a1a2e;
	border-color: #1a1a2e;
}
.btn-cta--alert:hover {
	background: #2d2d4e;
	border-color: #2d2d4e;
}

/* --- Sommaire (menu ancres) --- */
.seo-toc {
	background: #f8f9fb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px 24px;
	margin-bottom: 32px;
}
.seo-toc__title {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a2e;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.seo-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: toc;
}
.seo-toc__list li {
	counter-increment: toc;
	margin-bottom: 6px;
}
.seo-toc__list li::before {
	content: counter(toc) ".";
	color: #ed174b;
	font-weight: 700;
	margin-right: 8px;
	font-size: 13px;
}
.seo-toc__list a {
	color: #444;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s;
}
.seo-toc__list a:hover {
	color: #ed174b;
}

/* --- Contenu principal --- */
.seo-page-content {
	font-size: 15px;
	line-height: 1.8;
	color: #444;
}
.seo-page-content h2 {
	font-size: 22px;
	font-weight: 600;
	color: #1a1a2e;
	margin: 36px 0 14px;
	padding-top: 12px;
}
.seo-page-content h3 {
	font-size: 18px;
	font-weight: 600;
	color: #1a1a2e;
	margin: 24px 0 10px;
}
.seo-page-content p {
	margin-bottom: 14px;
}
.seo-page-content a {
	color: #ed174b;
	text-decoration: none;
	font-weight: 500;
}
.seo-page-content a:hover {
	text-decoration: underline;
}
.seo-page-content ul, .seo-page-content ol {
	margin: 10px 0 16px 20px;
}
.seo-page-content li {
	margin-bottom: 6px;
}

/* --- FAQ section styling --- */
.seo-page-content h2.seo-faq-title {
	background: #f8f9fb;
	padding: 14px 20px;
	border-radius: 8px;
	border-left: 4px solid #ed174b;
	margin-top: 40px;
	font-size: 20px;
}
.seo-page-content .seo-faq-item {
	padding: 4px 0 4px 20px;
	border-left: 2px solid #e5e7eb;
	margin-left: 4px;
}
.seo-page-content .seo-faq-item strong {
	color: #1a1a2e;
}

/* --- Liens navigation bas --- */
.seo-page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}
.seo-page-links a {
	color: #ed174b;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	padding: 6px 14px;
	border: 1px solid #f0e0e5;
	border-radius: 20px;
	transition: all 0.2s;
}
.seo-page-links a:hover {
	background: #ed174b;
	color: #fff;
	border-color: #ed174b;
	text-decoration: none;
}

/* --- Modal alertes --- */
.seo-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.seo-modal-overlay.seo-modal--open {
	display: flex;
}
.seo-modal {
	background: #fff;
	border-radius: 14px;
	padding: 36px 32px;
	max-width: 480px;
	width: 100%;
	position: relative;
	box-shadow: 0 20px 60px rgba(0,0,0,0.2);
	text-align: center;
}
.seo-modal__close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	color: #999;
	cursor: pointer;
	line-height: 1;
}
.seo-modal__close:hover {
	color: #333;
}
.seo-modal__title {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 10px;
}
.seo-modal__desc {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	margin-bottom: 24px;
}
.seo-modal__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.seo-modal__actions .btn-cta {
	width: 100%;
}

/* Index /emploi/ — Hub intro & bottom */
.seo-hub-intro {
	font-size: 15px;
	line-height: 1.8;
	color: #444;
	margin-bottom: 10px;
}
.seo-hub-intro h2 {
	font-size: 21px;
	font-weight: 600;
	color: #1a1a2e;
	margin: 28px 0 12px;
}
.seo-hub-intro h3 {
	font-size: 17px;
	font-weight: 600;
	color: #1a1a2e;
	margin: 20px 0 8px;
}
.seo-hub-intro p {
	margin-bottom: 14px;
}
.seo-hub-intro a {
	color: #ed174b;
	text-decoration: none;
	font-weight: 500;
}
.seo-hub-intro a:hover {
	text-decoration: underline;
}
.seo-hub-bottom {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 2px solid #f0f0f0;
	font-size: 15px;
	line-height: 1.8;
	color: #444;
}
.seo-hub-bottom h2 {
	font-size: 21px;
	font-weight: 600;
	color: #1a1a2e;
	margin: 32px 0 14px;
}
.seo-hub-bottom h2:first-child {
	margin-top: 0;
}
.seo-hub-bottom h3 {
	font-size: 17px;
	font-weight: 600;
	color: #1a1a2e;
	margin: 22px 0 8px;
}
.seo-hub-bottom p {
	margin-bottom: 14px;
}
.seo-hub-bottom a {
	color: #ed174b;
	text-decoration: none;
	font-weight: 500;
}
.seo-hub-bottom a:hover {
	text-decoration: underline;
}
.seo-index-intro {
	font-size: 16px;
	color: #555;
	line-height: 1.7;
	margin-bottom: 30px;
}
.seo-index-section {
	margin-bottom: 40px;
}
.seo-index-section h2 {
	font-size: 20px;
	font-weight: 600;
	color: #1a1a2e;
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid #ed174b;
	display: inline-block;
}
.seo-index-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}
.seo-index-card {
	display: block;
	padding: 20px;
	border: 1px solid #eee;
	border-radius: 8px;
	text-decoration: none !important;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.seo-index-card:hover {
	border-color: #ed174b;
	box-shadow: 0 2px 8px rgba(237,23,75,0.1);
}
.seo-index-card h3 {
	font-size: 15px;
	font-weight: 600;
	color: #1a1a2e;
	margin: 0 0 6px;
}
.seo-index-card p {
	font-size: 13px;
	color: #777;
	margin: 0;
	line-height: 1.5;
}
@media (max-width: 768px) {
	.seo-page-container {
		padding: 20px 15px 40px;
	}
	.seo-page-h1 {
		font-size: 22px;
	}
	.seo-page-intro {
		font-size: 15px;
		padding: 12px 16px;
	}
	.seo-page-content h2 {
		font-size: 19px;
	}
	.seo-page-cta {
		flex-direction: column;
		align-items: stretch;
	}
	.seo-page-cta .btn-cta {
		text-align: center;
	}
	.seo-toc {
		padding: 16px 18px;
	}
	.seo-toc__list a {
		font-size: 13px;
	}
	.seo-page-links {
		gap: 8px;
	}
	.seo-page-links a {
		font-size: 13px;
		padding: 5px 12px;
	}
	.seo-modal {
		padding: 28px 20px;
		margin: 0 10px;
	}
	.seo-modal__title {
		font-size: 19px;
	}
	.seo-index-grid {
		grid-template-columns: 1fr;
	}
}
