/**
 * Bloc de recherche enrichie — styles portés du worker Cloudflare
 */

/* L'entête native est remplacée par le bloc enrichi */
body.jm-se-active .search-entete,
body.jm-se-active .bloc-titre.search-entete {
	display: none !important;
}

.jm-se {
	max-width: 900px;
	margin: 20px auto 0;
	padding: 0 16px;
}

/* ── Réponse rapide + article vedette ─────────────────────── */
.jm-se__feat {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 16px rgba(30, 61, 47, .1);
	display: flex;
	margin: 0 0 20px;
}

.jm-se__feat-img {
	width: 200px;
	min-width: 200px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	height: auto;
}

.jm-se__feat-body {
	padding: 18px 22px;
	flex: 1;
}

.jm-se__answer-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #2d6a2d;
	margin: 0 0 8px;
}

.jm-se__answer-text {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.65;
	color: #1a3a1e;
}

.jm-se__feat-link {
	background: #1e3d2f;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	padding: 7px 14px;
	border-radius: 5px;
	display: inline-block;
}

.jm-se__answer-disclaimer {
	margin: 8px 0 0;
	font-size: 10px;
	color: #aaa;
}

/* ── Sections ─────────────────────────────────────────────── */
.jm-se__section {
	margin: 0 0 20px;
}

.jm-se__section-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #1e3d2f;
	border-bottom: 2px solid #1e3d2f;
	padding-bottom: 6px;
	margin: 0 0 12px;
}

.jm-se__section-title--recipes {
	color: #c2501f;
	border-bottom-color: #c2501f;
}

.jm-se__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.jm-se__more {
	display: inline-block;
	margin-top: 10px;
	font-size: 12px;
	font-weight: 700;
	color: #2d6a2d;
	text-decoration: none;
}

.jm-se__more--recipes {
	color: #c2501f;
}

/* ── Cards produits / recettes ────────────────────────────── */
.jm-se__card {
	text-decoration: none;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 8px rgba(0, 0, 0, .08);
	display: block;
}

.jm-se__card--recipe {
	background: #fff8f0;
	box-shadow: none;
	border: 1px solid #f0dcc8;
}

.jm-se__card.is-hidden {
	display: none;
}

.jm-se__card-img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	height: auto;
}

.jm-se__card--recipe .jm-se__card-img {
	aspect-ratio: 4 / 3;
}

.jm-se__card-placeholder {
	aspect-ratio: 4 / 3;
	background: #fef3e8;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
}

.jm-se__card-body {
	padding: 8px 10px 12px;
}

.jm-se__card-title {
	margin: 0 0 3px;
	font-size: 12px;
	color: #1e3d2f;
	font-weight: 600;
	line-height: 1.3;
}

.jm-se__card-price {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 700;
	color: #2d6a2d;
}

.jm-se__card-btn {
	display: block;
	background: #2d6a2d;
	color: #fff;
	text-align: center;
	padding: 5px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
}

.jm-se__card-cta {
	font-size: 11px;
	font-weight: 700;
	color: #c2501f;
}

/* ── Lignes articles de blog ──────────────────────────────── */
.jm-se__rows {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.jm-se__row {
	text-decoration: none;
	background: #f6faf5;
	border-radius: 8px;
	padding: 10px 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid #dceeda;
}

.jm-se__row-img {
	width: 54px;
	height: 54px;
	min-width: 54px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.jm-se__row-placeholder {
	width: 54px;
	height: 54px;
	min-width: 54px;
	background: #dceeda;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.jm-se__row-title {
	display: block;
	margin: 0 0 3px;
	font-size: 13px;
	color: #1e3d2f;
	font-weight: 600;
	line-height: 1.3;
}

.jm-se__row-cta {
	font-size: 11px;
	font-weight: 700;
	color: #2d6a2d;
}

/* ── Filtres recettes ─────────────────────────────────────── */
.jm-se__filters {
	margin: 0 0 12px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.jm-se__filter {
	background: #f0f0f0;
	color: #333;
	border: none;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 12px;
	cursor: pointer;
}

.jm-se__filter.is-active {
	background: #1e3d2f;
	color: #fff;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 700px) {
	.jm-se__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.jm-se__feat {
		flex-direction: column;
	}

	.jm-se__feat-img {
		width: 100%;
		min-width: 0;
	}
}
