/* =====================================================================================
   RECHERCHE COURT-CIRCUIT.LIVE — panneau plein écran (voir scripts/recherche.js)
   ===================================================================================== */

#bloc-recherche.rch {
	--rch-fond: #0d0d0d;
	--rch-carte: #191919;
	--rch-carte-survol: #222;
	--rch-bord: #2c2c2c;
	--rch-texte: #fff;
	--rch-doux: #a3a3a3;
	--rch-rouge: #ed5e5e;
	position: fixed;
	inset: 0;
	top: 0;
	z-index: 2000;
	width: auto;
	visibility: visible;
	display: flex;
	flex-direction: column;
	background: var(--rch-fond);
	color: var(--rch-texte);
	font-family: 'GT Walsheim regular', 'GT Walsheim', sans-serif;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .18s ease, transform .18s ease;
}
#bloc-recherche.rch[hidden] { display: none; }
#bloc-recherche.rch.rch-ouvert { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { #bloc-recherche.rch { transition: none; transform: none; } }

html.rch-bloque, html.rch-bloque body { overflow: hidden !important; }

.rch-tete {
	flex: none;
	border-bottom: 1px solid var(--rch-bord);
	background: var(--rch-fond);
}
.rch-largeur {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

/* ---------- Barre de recherche ---------- */
.rch-barre {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 0 14px;
}
.rch-champ {
	position: relative;
	flex: 1;
	min-width: 0;
}
.rch-champ svg {
	position: absolute;
	left: 16px;
	top: 50%;
	width: 20px;
	height: 20px;
	transform: translateY(-50%);
	color: var(--rch-doux);
	pointer-events: none;
}
#bloc-recherche .rch-champ input {
	width: 100%;
	height: 52px;
	box-sizing: border-box;
	padding: 0 44px 0 48px;
	border: 1px solid var(--rch-bord);
	border-radius: 26px;
	background: #1c1c1c;
	color: #fff;
	font-family: 'GT Walsheim medium', sans-serif;
	font-size: 17px !important;
	outline: none;
	text-transform: none;
	-webkit-appearance: none;
	appearance: none;
}
#bloc-recherche .rch-champ input::placeholder { color: #8a8a8a; }
#bloc-recherche .rch-champ input:focus { border-color: var(--rch-rouge); box-shadow: 0 0 0 3px rgba(237, 94, 94, .25); }
#bloc-recherche .rch-champ input::-webkit-search-cancel-button { display: none; }
.rch-vider {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: #333;
	color: #fff;
	font-size: 18px;
	line-height: 32px;
	cursor: pointer;
	padding: 0;
}
.rch-fermer {
	flex: none;
	border: 0;
	background: none;
	color: #fff;
	font-family: 'GT Walsheim medium', sans-serif;
	font-size: 15px;
	cursor: pointer;
	padding: 10px 4px;
}
.rch-fermer:hover, .rch-fermer:focus-visible { color: var(--rch-rouge); }

/* ---------- Rangées de boutons rapides ---------- */
.rch-rangee {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.rch-rangee::-webkit-scrollbar { display: none; }
.rch-rangee:last-child { padding-bottom: 14px; }
.rch-etiquette {
	flex: none;
	width: 52px;
	color: var(--rch-doux);
	font-family: 'GT Walsheim bold', sans-serif;
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.rch-puce {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	border: 1px solid var(--rch-bord);
	border-radius: 18px;
	background: transparent;
	color: #eaeaea;
	font-family: 'GT Walsheim medium', sans-serif;
	font-size: 14px;
	white-space: nowrap;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
}
.rch-puce:hover { border-color: #555; background: #161616; }
.rch-puce:focus-visible { outline: 2px solid var(--rch-rouge); outline-offset: 2px; }
.rch-puce[aria-pressed="true"] {
	background: var(--rch-rouge);
	border-color: var(--rch-rouge);
	color: #fff;
}
.rch-puce[disabled] { opacity: .35; cursor: default; }
.rch-puce .rch-nb { color: var(--rch-doux); font-size: 12px; }
.rch-puce[aria-pressed="true"] .rch-nb { color: rgba(255, 255, 255, .8); }
.rch-puce-geo svg { width: 15px; height: 15px; }
.rch-puce-geo.rch-attente { opacity: .7; }
.rch-puce-date { position: relative; }
.rch-puce-date input[type="date"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	font-size: 16px !important;
}
.rch-puce-x { font-size: 16px; line-height: 1; margin-left: 2px; }

/* Rayon (« Près de moi ») */
.rch-rayon {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 2px 0 6px 60px;
	color: var(--rch-doux);
	font-size: 13px;
	flex-wrap: wrap;
}
.rch-rayon button {
	border: 0;
	background: #1e1e1e;
	color: #ddd;
	height: 28px;
	padding: 0 11px;
	border-radius: 14px;
	font-size: 13px;
	cursor: pointer;
}
.rch-rayon button[aria-pressed="true"] { background: #fff; color: #000; }
.rch-message { color: #ffb3b3; font-size: 13px; padding: 2px 0 8px 60px; }

/* ---------- Résultats ---------- */
.rch-corps {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 40px;
}
.rch-resume {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 20px 0 6px;
}
.rch-total {
	margin: 0;
	font-family: 'GT Walsheim bold', sans-serif;
	font-size: 22px;
	line-height: 1.2;
	color: #fff;
}
.rch-total b { color: var(--rch-rouge); font-weight: normal; }
.rch-actions { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.rch-lien {
	border: 0;
	background: none;
	color: var(--rch-doux);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	font-size: 14px;
	padding: 4px 0;
}
.rch-lien:hover { color: #fff; }
.rch-tri { display: inline-flex; border: 1px solid var(--rch-bord); border-radius: 16px; overflow: hidden; }
.rch-tri button { border: 0; background: none; color: var(--rch-doux); padding: 6px 12px; font-size: 13px; cursor: pointer; }
.rch-tri button[aria-pressed="true"] { background: #fff; color: #000; }

.rch-jour {
	margin: 22px 0 10px;
	font-family: 'GT Walsheim bold', sans-serif;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--rch-doux);
}
.rch-jour:first-letter { color: inherit; }
.rch-grille {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
}
@media (min-width: 768px) {
	.rch-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.rch-rangee { flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 1100px) { .rch-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.rch-carte {
	display: flex;
	min-width: 0;
	gap: 14px;
	min-height: 104px;
	padding: 10px;
	border-radius: 12px;
	background: var(--rch-carte);
	color: #fff !important;
	text-decoration: none !important;
	transition: background .15s, transform .15s;
}
.rch-carte:hover { background: var(--rch-carte-survol); }
.rch-carte:focus-visible { outline: 2px solid var(--rch-rouge); outline-offset: 2px; }
.rch-carte img {
	flex: none;
	width: 84px;
	height: 84px;
	border-radius: 8px;
	object-fit: cover;
	background: #2a2a2a;
}
.rch-infos { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rch-quand {
	font-family: 'GT Walsheim bold', sans-serif;
	font-size: 12px;
	letter-spacing: .01em;
	color: var(--rch-rouge);
}
.rch-titre {
	margin: 0;
	font-family: 'GT Walsheim bold', sans-serif;
	font-size: 16px;
	line-height: 1.25;
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-transform: none;
}
.rch-artistes {
	font-size: 13px;
	line-height: 1.3;
	color: #cfcfcf;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.rch-lieu { font-size: 13px; color: var(--rch-doux); line-height: 1.3; }
.rch-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.rch-badge {
	font-size: 11px;
	line-height: 18px;
	padding: 0 7px;
	border-radius: 9px;
	background: #2b2b2b;
	color: #ddd;
	white-space: nowrap;
}
.rch-badge-dist { background: rgba(237, 94, 94, .16); color: #ffb0b0; }
.rch-badge-annule { background: #5a1d1d; color: #fff; }

.rch-vide {
	padding: 48px 0;
	text-align: center;
	color: var(--rch-doux);
}
.rch-vide strong { display: block; color: #fff; font-family: 'GT Walsheim bold', sans-serif; font-size: 18px; margin-bottom: 8px; }
.rch-vide .rch-puce { margin: 14px 4px 0; }

.rch-plus { display: block; margin: 24px auto 0; }

/* chargement */
.rch-squelette { height: 104px; border-radius: 12px; background: linear-gradient(90deg, #161616, #1f1f1f, #161616); background-size: 200% 100%; animation: rch-brille 1.2s infinite; }
@keyframes rch-brille { to { background-position: -200% 0; } }

/* ---------- Téléphone ---------- */
@media (max-width: 767px) {
	.rch-largeur { padding: 0 14px; }
	.rch-barre { padding: 12px 0 10px; gap: 8px; }
	#bloc-recherche .rch-champ input { height: 48px; }
	.rch-etiquette { display: none; }
	.rch-rangee { margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
	.rch-rayon, .rch-message { padding-left: 0; }
	.rch-total { font-size: 19px; }
	.rch-carte img { width: 76px; height: 76px; }
	.rch-corps { padding-bottom: 24px; }
}

/* ---------- Vue carte ---------- */
.rch-plan {
	margin-top: 12px;
	height: 480px;
	border-radius: 12px;
	overflow: hidden;
	background: #1a1a1a;
	z-index: 0;
}
.rch-plan .leaflet-control-attribution { font-size: 10px; }
.rch-repere span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	box-sizing: border-box;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #ed5e5e;
	color: #fff;
	font-family: 'GT Walsheim bold', sans-serif;
	font-size: 13px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
	transition: transform .12s;
}
.rch-repere:hover span, .rch-repere:focus span { transform: scale(1.12); }
.rch-plan .leaflet-popup-content-wrapper { border-radius: 12px; }
.rch-plan .leaflet-popup-content { margin: 14px 16px; }
.rch-bulle { color: #111; font-family: 'GT Walsheim regular', sans-serif; font-size: 13px; line-height: 1.35; }
.rch-bulle strong { display: block; font-family: 'GT Walsheim bold', sans-serif; font-size: 15px; }
.rch-bulle-ville { display: block; color: #777; margin-bottom: 8px; }
.rch-bulle ul { list-style: none; margin: 0; padding: 0; }
.rch-bulle li { border-top: 1px solid #eee; }
.rch-bulle a { display: block; padding: 7px 0; color: #111 !important; text-decoration: none !important; }
.rch-bulle a:hover { color: #ed5e5e !important; }
.rch-bulle a b { display: block; color: #ed5e5e; font-family: 'GT Walsheim bold', sans-serif; font-weight: normal; font-size: 12px; }
.rch-bulle-tout {
	display: block;
	width: 100%;
	margin-top: 8px;
	height: 34px;
	border: 0;
	border-radius: 17px;
	background: #111;
	color: #fff;
	font-family: 'GT Walsheim medium', sans-serif;
	font-size: 13px;
	cursor: pointer;
}
.rch-bulle-tout:hover { background: #ed5e5e; }

/* ---------- Raccourcis sous le champ « Trouver un concert » (accueil, agenda) ---------- */
.rch-raccourcis {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 14px;
	margin-bottom: 6px;
}
.rch-raccourcis button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 16px;
	border: 0;
	border-radius: 19px;
	background: #101010;
	color: #fff;
	font-family: 'GT Walsheim medium', sans-serif;
	font-size: 14px;
	white-space: nowrap;
	cursor: pointer;
	transition: background .15s;
}
.rch-raccourcis button:hover, .rch-raccourcis button:focus-visible { background: #ed5e5e; outline: none; }
.rch-raccourcis svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 767px) {
	.rch-raccourcis {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		scrollbar-width: none;
		padding: 0 12px;
	}
	.rch-raccourcis::-webkit-scrollbar { display: none; }
}
.rch-repere.rch-groupe span {
	width: 100%;
	height: 100%;
	background: #111;
	border-color: #ed5e5e;
	border-width: 3px;
	font-size: 14px;
}
