/* Recherche sur tout le site : loupe de l'en-tête et fenêtre de recherche */

/* Loupe de l'en-tête, ordinateur : pastille ronde comme « Espace client » */
#menu-menu-principal li.ns-menu-recherche { display: flex; align-items: center; }
#menu-menu-principal li.ns-menu-recherche > .ns-recherche-ouvrir {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: 0 4px 0 10px;
	padding: 0;
	border: 1.5px solid rgba(255, 255, 255, .75);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
#menu-menu-principal li.ns-menu-recherche > .ns-recherche-ouvrir:hover,
#menu-menu-principal li.ns-menu-recherche > .ns-recherche-ouvrir:focus-visible { background: rgba(255, 255, 255, .16); transform: scale(1.06); }
.jdo-menu.fixed-menu #menu-menu-principal li.ns-menu-recherche > .ns-recherche-ouvrir { border-color: #8e3d80; color: #8e3d80; }
.jdo-menu.fixed-menu #menu-menu-principal li.ns-menu-recherche > .ns-recherche-ouvrir:hover { background: rgba(142, 61, 128, .09); }
.ns-recherche-ouvrir .ns-recherche-icone { display: block; }
@media (max-width: 1140px) {
	#menu-menu-principal li.ns-menu-recherche { display: none !important; }
}

/* Loupe de l'en-tête, téléphone et tablette : même carré que les icônes du thème */
.submenu-mobile-container .ns-recherche-mobile { color: #fff; text-decoration: none; }
.submenu-mobile-container .ns-recherche-mobile .ns-recherche-icone { width: 24px; height: 24px; }
.fixed-menu .submenu-mobile-container .ns-recherche-mobile { color: #8e3d80; }
/* Place pour la loupe : sur les petits téléphones, le drapeau passe dans le menu (il y figure déjà) et les icônes se resserrent */
@media (max-width: 479px) {
	.submenu-mobile-container .ns-langue { display: none !important; }
}
@media (max-width: 389px) {
	.submenu-mobile-container div { width: 42px !important; height: 42px !important; padding: 8px 9px !important; margin-right: 6px !important; }
	.submenu-mobile-container .ns-recherche-mobile .ns-recherche-icone { width: 21px; height: 21px; }
}

/* Fenêtre */
html.ns-rech-ouverte { overflow: hidden; }
.ns-rech[hidden] { display: none !important; }
.ns-rech {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	font-family: Montserrat, 'Segoe UI', Arial, sans-serif;
	color: #2e2e2e;
}
.ns-rech-fond {
	position: absolute;
	inset: 0;
	background: rgba(46, 18, 40, .55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity .18s ease;
}
.ns-rech-panneau {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(760px, calc(100% - 32px));
	max-height: min(78vh, 760px);
	margin: 9vh auto 0;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(46, 18, 40, .35);
	overflow: hidden;
	opacity: 0;
	transform: translateY(-10px) scale(.985);
	transition: opacity .18s ease, transform .18s ease;
}
.ns-rech.est-ouverte .ns-rech-fond,
.ns-rech.est-ouverte .ns-rech-panneau { opacity: 1; transform: none; }

.ns-rech-barre {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 14px 0 22px;
	border-bottom: 1px solid #ece4ea;
	color: #8e3d80;
}
.ns-rech-barre > svg { flex: none; }
.ns-rech-champ {
	flex: 1;
	min-width: 0;
	height: 66px;
	padding: 0;
	border: 0 !important;
	outline: 0;
	background: transparent !important;
	box-shadow: none !important;
	font: 500 19px/1.2 Montserrat, 'Segoe UI', Arial, sans-serif;
	color: #2e2e2e;
	-webkit-appearance: none;
	appearance: none;
}
.ns-rech-champ::placeholder { color: #9a8f97; font-weight: 400; }
.ns-rech-champ::-webkit-search-cancel-button { -webkit-appearance: none; }
.ns-rech-fermer {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 32px;
	padding: 0 10px;
	border: 1px solid #e3d8e0;
	border-radius: 8px;
	background: #faf7f9;
	color: #6b6b6b;
	font: 600 12px/1 Montserrat, 'Segoe UI', Arial, sans-serif;
	cursor: pointer;
}
.ns-rech-fermer:hover { border-color: #8e3d80; color: #8e3d80; }
.ns-rech-croix { display: none; font-size: 26px; font-weight: 400; line-height: 1; }

.ns-rech-res { overflow-y: auto; overscroll-behavior: contain; padding: 8px 10px 14px; }
.ns-rech-compte { padding: 10px 12px 0; font-size: 12px; color: #8a8a8a; }
.ns-rech-groupe { padding-top: 8px; }
.ns-rech-entete {
	padding: 10px 12px 6px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #6f7116;
}
.ns-rech-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 9px 12px;
	border-radius: 12px;
	color: inherit !important;
	text-decoration: none !important;
	scroll-margin: 8px;
}
.ns-rech-item:hover, .ns-rech-item.est-actif { background: #f7f1f6; }
.ns-rech-item.est-actif { box-shadow: inset 3px 0 0 #8e3d80; }
.ns-rech-vignette {
	flex: none;
	display: grid;
	place-items: center;
	width: 64px;
	height: 48px;
	border-radius: 9px;
	overflow: hidden;
	background: #f3ecf1;
	color: #8e3d80;
}
.ns-rech-vignette img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ns-rech-vignette.est-icone { width: 44px; height: 44px; border-radius: 50%; margin: 0 10px 0 10px; }
.ns-rech-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ns-rech-titre { font-size: 15px; font-weight: 700; line-height: 1.3; color: #2e2e2e; }
.ns-rech-titre mark { padding: 0 1px; border-radius: 3px; background: #eef0c7; color: inherit; }
.ns-rech-etat {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #f2e7f0;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #8e3d80;
	vertical-align: 2px;
	white-space: nowrap;
}
.ns-rech-sous { font-size: 13px; color: #6b6b6b; line-height: 1.35; }
.ns-rech-extrait {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12.5px;
	line-height: 1.4;
	color: #8a8a8a;
}
.ns-rech-fleche { flex: none; color: #c9b8c5; transition: transform .15s, color .15s; }
.ns-rech-item:hover .ns-rech-fleche, .ns-rech-item.est-actif .ns-rech-fleche { color: #8e3d80; transform: translateX(2px); }

.ns-rech-puces { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 12px 8px; }
.ns-rech-puce {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border: 1px solid #e3d8e0;
	border-radius: 999px;
	background: #fff;
	font: 600 13px/1.2 Montserrat, 'Segoe UI', Arial, sans-serif;
	color: #4b2246;
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.ns-rech-puce svg { color: #8e3d80; }
.ns-rech-puce:hover, .ns-rech-puce:focus-visible { border-color: #8e3d80; background: #f7f1f6; }

.ns-rech-vide { padding: 26px 14px; font-size: 14.5px; line-height: 1.55; color: #585858; }
.ns-rech-vide p { margin: 0 0 10px; }
.ns-rech-vide a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #8e3d80; }

.ns-rech-pied {
	padding: 11px 22px;
	border-top: 1px solid #ece4ea;
	background: #faf7f9;
	font-size: 12px;
	color: #8a8a8a;
}

/* Téléphone : plein écran */
@media (max-width: 700px) {
	.ns-rech-panneau { width: 100%; max-height: none; height: 100%; margin: 0; border-radius: 0; }
	.ns-rech-barre { padding: 0 8px 0 16px; }
	.ns-rech-champ { height: 60px; font-size: 17px; }
	.ns-rech-touche { display: none; }
	.ns-rech-croix { display: block; }
	.ns-rech-fermer { min-width: 44px; height: 44px; border: 0; background: transparent; color: #4b2246; }
	.ns-rech-pied { display: none; }
	.ns-rech-res { flex: 1; padding: 4px 6px 24px; }
	.ns-rech-vignette { width: 56px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
	.ns-rech-fond, .ns-rech-panneau, .ns-rech-fleche, #menu-menu-principal li.ns-menu-recherche > .ns-recherche-ouvrir { transition: none; }
}
