/*!
 * TPML — Recherche rapide : liste de suggestions et page de résultats.
 * Couleurs du design system sombre du site (fond #090d20, surfaces #0e1428 / #131c35 / #19223a,
 * filets #29334d, texte #f4f5ff / #c9cfe6 / #a3adc8, violet #7651ff, violet texte #b29aff).
 * Toutes les règles sont rattachées aux identifiants de l'extension.
 */

/* ---------- Liste de suggestions ---------- */

#tpmlr-panneau {
	position: fixed;
	z-index: 100000;
	box-sizing: border-box;
	max-height: 70vh;
	overflow: auto;
	overscroll-behavior: contain;
	padding: 6px;
	border: 1px solid rgba(140, 159, 211, .3);
	border-radius: 16px;
	background: #0e1428;
	color: #f4f5ff;
	box-shadow: 0 24px 60px rgba(3, 6, 20, .62), 0 2px 8px rgba(3, 6, 20, .4);
	font-size: 14px;
	line-height: 1.35;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}
#tpmlr-panneau[hidden] { display: none; }
#tpmlr-panneau *, #tpmlr-panneau *::before, #tpmlr-panneau *::after { box-sizing: border-box; }
#tpmlr-panneau .tpmlr-etat[hidden], #tpmlr-panneau .tpmlr-tout[hidden] { display: none; }
#tpmlr-panneau .tpmlr-etat {
	margin: 0;
	padding: 12px 10px;
	color: #c9cfe6;
}
#tpmlr-panneau .tpmlr-g {
	padding: 8px 10px 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #a3adc8;
}
#tpmlr-panneau .tpmlr-opt {
	display: block;
	margin: 0;
	padding: 9px 10px;
	border-radius: 10px;
	color: #f4f5ff;
	text-decoration: none;
	outline: none;
	cursor: pointer;
}
#tpmlr-panneau .tpmlr-opt:hover { background: #131c35; }
#tpmlr-panneau .tpmlr-opt[aria-selected="true"] {
	background: #19223a;
	box-shadow: inset 0 0 0 1px rgba(178, 154, 255, .6);
}
#tpmlr-panneau .tpmlr-t {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-weight: 600;
	color: #f4f5ff;
}
#tpmlr-panneau .tpmlr-m {
	display: block;
	margin-top: 3px;
	overflow: hidden;
	font-size: 12px;
	color: #a3adc8;
	white-space: nowrap;
	text-overflow: ellipsis;
}
#tpmlr-panneau .tpmlr-x {
	display: -webkit-box;
	overflow: hidden;
	margin-top: 4px;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-size: 12.5px;
	color: #c9cfe6;
}
#tpmlr-panneau mark, #tpmlr-resultats mark {
	padding: 0 2px;
	border-radius: 3px;
	background: rgba(118, 81, 255, .34);
	color: #fff;
}
#tpmlr-panneau .tpmlr-tout {
	display: block;
	margin-top: 4px;
	padding: 10px;
	border-top: 1px solid #29334d;
	border-radius: 0 0 10px 10px;
	color: #b29aff;
	font-weight: 600;
	text-decoration: none;
}
#tpmlr-panneau .tpmlr-tout:hover, #tpmlr-panneau .tpmlr-tout:focus-visible {
	color: #c4b2ff;
	text-decoration: underline;
}
.tpmlr-sr, #tpmlr-resultats .tpmlr-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
@media (max-width: 639px) {
	#tpmlr-panneau { font-size: 15px; }
	#tpmlr-panneau .tpmlr-opt { padding: 11px 10px; }
}
@media (prefers-reduced-motion: no-preference) {
	#tpmlr-panneau:not([hidden]) { animation: tpmlr-entree .12s ease-out; }
	@keyframes tpmlr-entree { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}
@media print { #tpmlr-panneau { display: none !important; } }

/* ---------- Page de résultats ---------- */

#tpmlr-resultats {
	box-sizing: border-box;
	width: 100%;
	padding: 8px 20px 64px;
	background: #090d20;
	color: #f4f5ff;
	font-family: "InterVariable", "Inter", "TPML Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}
#tpmlr-resultats *, #tpmlr-resultats *::before, #tpmlr-resultats *::after { box-sizing: border-box; }
#tpmlr-resultats .tpmlr-page-in { max-width: 920px; margin: 0 auto; }
#tpmlr-resultats .tpmlr-sur {
	margin: 0;
	color: #b29aff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
#tpmlr-resultats .tpmlr-h1 {
	margin: 8px 0 20px;
	color: #f4f5ff;
	font-family: inherit;
	font-size: clamp(26px, 4.2vw, 40px);
	font-weight: 760;
	line-height: 1.12;
	letter-spacing: -.02em;
	text-wrap: balance;
	overflow-wrap: anywhere;
}
#tpmlr-resultats .tpmlr-form { display: flex; gap: 8px; margin: 0 0 6px; }
#tpmlr-resultats .tpmlr-champ {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid rgba(140, 159, 211, .32);
	border-radius: 999px;
	background: rgba(255, 255, 255, .05);
	color: #f4f5ff;
	font: inherit;
	font-size: 16px;
	box-shadow: none;
}
#tpmlr-resultats .tpmlr-champ::placeholder { color: #a3adc8; opacity: 1; }
#tpmlr-resultats .tpmlr-bouton {
	flex: 0 0 auto;
	height: 48px;
	margin: 0;
	padding: 0 22px;
	border: 1px solid #a58aff;
	border-radius: 999px;
	background: #7651ff;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 650;
	cursor: pointer;
}
#tpmlr-resultats .tpmlr-bouton:hover { background: #6b46f0; }
#tpmlr-resultats .tpmlr-champ:focus-visible,
#tpmlr-resultats .tpmlr-bouton:focus-visible,
#tpmlr-resultats a:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px #090d20, 0 0 0 4px #b29aff;
}
#tpmlr-resultats .tpmlr-compte { margin: 18px 0 4px; color: #c9cfe6; font-size: 15px; }
#tpmlr-resultats .tpmlr-h2 {
	margin: 26px 0 10px;
	color: #a3adc8;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	line-height: 1.3;
	text-transform: uppercase;
}
#tpmlr-resultats .tpmlr-cartes { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
#tpmlr-resultats .tpmlr-carte {
	margin: 0;
	padding: 16px 18px;
	border: 1px solid #29334d;
	border-radius: 16px;
	background: #0e1428;
}
#tpmlr-resultats .tpmlr-h3 {
	margin: 0;
	color: #f4f5ff;
	font-family: inherit;
	font-size: 17px;
	font-weight: 650;
	line-height: 1.35;
	letter-spacing: 0;
}
#tpmlr-resultats .tpmlr-h3 a { color: #f4f5ff; text-decoration: none; }
#tpmlr-resultats .tpmlr-h3 a:hover { color: #c4b2ff; text-decoration: underline; }
#tpmlr-resultats .tpmlr-meta { margin: 6px 0 0; color: #a3adc8; font-size: 13px; }
#tpmlr-resultats .tpmlr-extrait { margin: 8px 0 0; color: #c9cfe6; font-size: 14.5px; line-height: 1.55; }
#tpmlr-resultats .tpmlr-lire {
	display: inline-block;
	margin-top: 10px;
	color: #b29aff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
#tpmlr-resultats .tpmlr-lire:hover { color: #c4b2ff; text-decoration: underline; }
#tpmlr-resultats .tpmlr-pages { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
#tpmlr-resultats .tpmlr-pages a {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid #29334d;
	border-radius: 999px;
	background: #131c35;
	color: #f4f5ff;
	font-size: 14px;
	text-decoration: none;
}
#tpmlr-resultats .tpmlr-pages a:hover { border-color: #3a4566; background: #19223a; }
#tpmlr-resultats .tpmlr-vide {
	margin: 18px 0 0;
	padding: 20px 22px;
	border: 1px dashed #3a4566;
	border-radius: 16px;
	background: #0e1428;
	color: #c9cfe6;
}
#tpmlr-resultats .tpmlr-vide p { margin: 0 0 6px; }
#tpmlr-resultats .tpmlr-vide p:last-child { margin-bottom: 0; }
#tpmlr-resultats .tpmlr-vide a, #tpmlr-resultats .tpmlr-plus a { color: #b29aff; }
#tpmlr-resultats .tpmlr-alerte {
	margin: 14px 0 0;
	padding: 12px 14px;
	border: 1px solid rgba(255, 211, 138, .4);
	border-radius: 12px;
	background: rgba(255, 211, 138, .08);
	color: #ffd38a;
}
#tpmlr-resultats .tpmlr-plus { margin: 14px 0 0; color: #a3adc8; font-size: 14px; }
@media (max-width: 480px) {
	#tpmlr-resultats { padding: 4px 14px 48px; }
	#tpmlr-resultats .tpmlr-form { flex-wrap: wrap; }
	#tpmlr-resultats .tpmlr-bouton { width: 100%; }
	#tpmlr-resultats .tpmlr-carte { padding: 14px; }
}

/* ---------- Résistance aux styles du thème et du CSS additionnel du site ----------
 * Relevé sur le site le 10.10.2026 : le thème numérote les listes (« body ol > li::before »,
 * interlignes de 40 px), impose aux titres de niveau 3 et à leurs liens Prata 30 px, et le CSS
 * additionnel colore en violet tous les liens et boutons des pages secondaires avec des
 * sélecteurs très forts (« body:not(.home):not(#_) a »). D'où ces quelques « !important »,
 * limités aux éléments de l'extension.
 */
#tpmlr-resultats .tpmlr-carte,
#tpmlr-resultats .tpmlr-pages li {
	position: static !important;
	list-style: none !important;
	line-height: 1.5 !important;
}
#tpmlr-resultats .tpmlr-carte { padding: 16px 18px !important; }
#tpmlr-resultats .tpmlr-pages li { margin: 0 !important; padding: 0 !important; }
#tpmlr-resultats .tpmlr-carte::before,
#tpmlr-resultats .tpmlr-carte::after,
#tpmlr-resultats .tpmlr-pages li::before,
#tpmlr-resultats .tpmlr-pages li::after {
	content: none !important;
	display: none !important;
}
#tpmlr-resultats .tpmlr-h1 {
	margin: 8px 0 20px !important;
	font-size: clamp(26px, 4.2vw, 40px) !important;
	line-height: 1.12 !important;
}
#tpmlr-resultats .tpmlr-h2 {
	color: #a3adc8 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: .1em !important;
	line-height: 1.3 !important;
	text-transform: uppercase !important;
}
#tpmlr-resultats .tpmlr-h3 {
	color: #f4f5ff !important;
	font-size: 17px !important;
	line-height: 1.35 !important;
}
#tpmlr-resultats .tpmlr-h3 a {
	color: #f4f5ff !important;
	font: inherit !important;
	letter-spacing: inherit !important;
	text-decoration: none !important;
}
#tpmlr-resultats .tpmlr-h3 a:hover { color: #c4b2ff !important; text-decoration: underline !important; }
#tpmlr-resultats .tpmlr-meta,
#tpmlr-resultats .tpmlr-extrait,
#tpmlr-resultats .tpmlr-compte,
#tpmlr-resultats .tpmlr-sur,
#tpmlr-resultats .tpmlr-plus { font-family: inherit !important; }
#tpmlr-resultats .tpmlr-meta { color: #a3adc8 !important; font-size: 13px !important; line-height: 1.5 !important; }
#tpmlr-resultats .tpmlr-extrait { color: #c9cfe6 !important; font-size: 14.5px !important; line-height: 1.55 !important; }
#tpmlr-resultats .tpmlr-pages a { color: #f4f5ff !important; line-height: 1.4 !important; }
#tpmlr-resultats .tpmlr-lire,
#tpmlr-resultats .tpmlr-vide a,
#tpmlr-resultats .tpmlr-plus a { color: #b29aff !important; }
#tpmlr-resultats .tpmlr-champ {
	height: 48px !important;
	padding: 0 18px !important;
	border: 1px solid rgba(140, 159, 211, .32) !important;
	border-radius: 999px !important;
	background: rgba(255, 255, 255, .05) !important;
	color: #f4f5ff !important;
	font-size: 16px !important;
	line-height: normal !important;
}
#tpmlr-resultats .tpmlr-bouton {
	height: 48px !important;
	padding: 0 22px !important;
	border: 1px solid #a58aff !important;
	border-radius: 999px !important;
	background: #7651ff !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 650 !important;
	line-height: normal !important;
	opacity: 1 !important;
}
#tpmlr-resultats .tpmlr-bouton:hover { background: #6b46f0 !important; }
#tpmlr-panneau .tpmlr-opt { color: #f4f5ff !important; }
#tpmlr-panneau .tpmlr-tout { color: #b29aff !important; }
