/**
 * Bloc de recherche enrichie — mise en page validée le 24/11/2026 (maquette « laurier » et « persil ») :
 * une colonne large, des sections titrées, des cartes avec photo. La police est celle du thème.
 */

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

.jm-se {
	--jm-se-vert: #2d6a2d;
	--jm-se-vert-fonce: #1e3d2f;
	--jm-se-texte: #1f2a1f;
	--jm-se-doux: #5b6658;
	--jm-se-trait: #e3e7dc;
	--jm-se-fond: #f6f8f3;
	max-width: 1200px;
	margin: 24px auto 0;
	padding: 0 16px;
	color: var(--jm-se-texte);
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.jm-se a {
	color: inherit;
	text-decoration: none;
}

/* ── Titre et accès aux listes complètes ──────────────────── */
.jm-se__entete {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Le titre rappelle la recherche, discretement ; ce qui doit sauter aux yeux, ce sont les deux
   chemins : la boutique et les conseils (Rodolphe, 24/11/2026 : « la premiere ligne est enorme,
   on peut reduire pour que boutique et conseils apparaissent plus gros »). */
.jm-se__titre {
	margin: 0;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--jm-se-doux);
}

.jm-se__correction {
	margin: -6px 0 0;
	font-size: 14px;
	color: var(--jm-se-doux);
}

.jm-se .jm-se__correction a {
	color: var(--jm-se-vert);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.jm-se__types {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.jm-se a.jm-se__type {
	font-size: 18px;
	font-weight: 600;
	padding: 14px 28px;
	border-radius: 999px;
	background: #eef2e8;
	color: var(--jm-se-vert-fonce);
}

.jm-se a.jm-se__type:hover,
.jm-se a.jm-se__type:focus-visible {
	background: var(--jm-se-vert-fonce);
	color: #fff;
}

/* ── Sections ─────────────────────────────────────────────── */
.jm-se__section {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.jm-se__section-head {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.jm-se__section-head--ligne {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
}

.jm-se__section-title {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}

.jm-se__section-sub {
	margin: 0;
	font-size: 15px;
	color: var(--jm-se-doux);
}

.jm-se a.jm-se__more {
	font-size: 15px;
	font-weight: 600;
	color: var(--jm-se-vert);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.jm-se__card-espece,
.jm-se__eyebrow,
.jm-se__cultiver-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--jm-se-vert);
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* ── Quelle plante cherchez-vous ? ────────────────────────── */
.jm-se__especes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 16px;
}

.jm-se__espece {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--jm-se-trait);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	transition: border-color .15s;
}

.jm-se__espece:hover,
.jm-se__espece:focus-visible {
	border-color: var(--jm-se-vert);
}

.jm-se__espece-img {
	width: 100%;
	height: 130px;
	object-fit: cover;
	display: block;
}

.jm-se__espece-nom {
	padding: 12px 14px 2px;
	font-size: 15px;
	font-weight: 600;
}

.jm-se__espece-n {
	padding: 0 14px 14px;
	font-size: 13px;
	color: var(--jm-se-doux);
}

/* ── L'essentiel : la fiche en vedette ────────────────────── */
.jm-se__feat {
	display: flex;
	flex-wrap: wrap;
	border: 1px solid var(--jm-se-trait);
	border-radius: 16px;
	overflow: hidden;
	background: var(--jm-se-fond);
}

.jm-se__feat-img {
	flex: 1 1 300px;
	min-width: 0;
	max-height: 320px;
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}

.jm-se__feat-body {
	flex: 999 1 420px;
	min-width: 0;
	padding: 28px 32px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.jm-se__eyebrow {
	margin: 0;
}

.jm-se__feat-titre {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.25;
}

.jm-se__feat-extrait {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--jm-se-doux);
}

.jm-se__faits {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}

.jm-se__fait {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.jm-se__fait dt {
	font-size: 13px;
	font-weight: 600;
	color: var(--jm-se-doux);
}

.jm-se__fait dd {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

.jm-se__feat-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.jm-se a.jm-se__bouton {
	font-size: 15px;
	font-weight: 600;
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--jm-se-vert-fonce);
	color: #fff;
}

.jm-se a.jm-se__bouton:hover,
.jm-se a.jm-se__bouton:focus-visible {
	background: var(--jm-se-vert);
}

.jm-se__mention {
	font-size: 13px;
	color: var(--jm-se-doux);
}

/* ── Grilles de cartes ────────────────────────────────────── */
.jm-se__grid {
	display: grid;
	gap: 20px;
}

.jm-se__grid--produits {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jm-se__grid--articles {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.jm-se__grid--recettes {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Sucré, puis Salé : un sous-titre et son lien au-dessus de chaque rangée de recettes. */
.jm-se__recettes-tete {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 24px;
	margin-top: 8px;
}

.jm-se__recettes-titre {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
}

/* Produits */
.jm-se__card {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

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

/* Une nouvelle rangée (les graines après les plantes) commence une ligne. */
.jm-se__card--rangee {
	grid-column-start: 1;
}

.jm-se__card-img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 12px;
	display: block;
	background: #f1f4ec;
	margin-bottom: 4px;
}

.jm-se__card-title {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
}

.jm-se__card:hover .jm-se__card-title,
.jm-se__card:focus-visible .jm-se__card-title {
	text-decoration: underline;
}

.jm-se__card-price {
	font-size: 15px;
	font-weight: 600;
}

/* La derniere carte : tous les produits. Meme largeur qu une carte, carree comme sa photo. */
.jm-se a.jm-se__card--tous {
	aspect-ratio: 1 / 1;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 20px;
	border-radius: 12px;
	background: var(--jm-se-fond);
	border: 1px solid var(--jm-se-trait);
	text-align: center;
	color: var(--jm-se-vert-fonce);
}

.jm-se a.jm-se__card--tous:hover,
.jm-se a.jm-se__card--tous:focus-visible {
	background: var(--jm-se-vert-fonce);
	color: #fff;
}

.jm-se__tous-texte {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

.jm-se__tous-fleche {
	font-size: 24px;
	line-height: 1;
}

.jm-se__plus {
	align-self: flex-start;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 16px;
	border: 1px solid #cfd6c6;
	border-radius: 999px;
	background: #fff;
	color: var(--jm-se-vert-fonce);
	cursor: pointer;
}

.jm-se__plus[hidden] {
	display: none;
}

.jm-se__plus:hover,
.jm-se__plus:focus-visible {
	border-color: var(--jm-se-vert);
}

/* Pour le cultiver : une ligne discrète, pas une grille. */
.jm-se__cultiver {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	border: 1px dashed #cfd6c6;
	border-radius: 12px;
}

.jm-se__cultiver-img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 8px;
}

.jm-se__cultiver-texte {
	flex: 1 1 240px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.jm-se__cultiver-label {
	color: var(--jm-se-doux);
}

.jm-se__cultiver-nom {
	font-size: 15px;
	font-weight: 500;
}

.jm-se__cultiver-prix {
	font-size: 15px;
	font-weight: 600;
}

/* Conseils */
.jm-se__article {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--jm-se-trait);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
}

.jm-se__article-img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	display: block;
}

.jm-se__article-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 18px 20px;
}

.jm-se__article-titre {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}

.jm-se__article:hover .jm-se__article-titre,
.jm-se__article:focus-visible .jm-se__article-titre {
	text-decoration: underline;
}

/* Recettes */
.jm-se__recette {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.jm-se__recette-img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

.jm-se__recette-titre {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.jm-se__recette:hover .jm-se__recette-titre,
.jm-se__recette:focus-visible .jm-se__recette-titre {
	text-decoration: underline;
}

/* ── Tablette et téléphone ────────────────────────────────── */
@media (max-width: 960px) {
	.jm-se__grid--produits,
	.jm-se__grid--recettes {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.jm-se__grid--articles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.jm-se {
		gap: 32px;
	}

	.jm-se__grid--produits,
	.jm-se__grid--recettes,
	.jm-se__especes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jm-se__grid--articles {
		grid-template-columns: minmax(0, 1fr);
	}

	/* La fiche en vedette tenait tout l'ecran d'un telephone (841 px sur 844, persil) : image
	   basse, titre plus petit, et chaque repere en un paragraphe (libelle en tete de ligne). */
	.jm-se__feat-img {
		max-height: 120px;
	}

	.jm-se__feat-body {
		padding: 16px 18px;
		gap: 10px;
	}

	.jm-se__feat-titre {
		font-size: 20px;
	}

	.jm-se__faits {
		gap: 8px;
	}

	.jm-se__fait {
		display: block;
		font-size: 14px;
		line-height: 1.45;
	}

	.jm-se__fait dt {
		display: inline;
		margin-right: 0.4em;
		font-size: 14px;
		color: var(--jm-se-texte);
	}

	.jm-se__fait dd {
		display: inline;
		font-size: 14px;
	}

	.jm-se__feat-actions {
		gap: 6px 14px;
	}

	.jm-se a.jm-se__bouton {
		padding: 10px 16px;
		font-size: 14px;
	}

	.jm-se__espece-img {
		height: 110px;
	}
}
