/* =====================================================================================
   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;
	height: auto; /* (2026-11-10) l'ancien style.css téléphone met height: 100% → le panneau passait sous la barre de menu du bas */
	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); }

/* ---------- filtres repliés quand on descend dans les résultats (scripts/recherche.js : replier) ---------- */
.rch-filtres { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .22s ease, opacity .18s ease; }
.rch-filtres-int { min-height: 0; overflow: hidden; }
.rch-replie .rch-filtres { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
.rch-replie .rch-barre { padding-bottom: 14px; }
.rch-deplier {
	flex: none; display: inline-flex; align-items: center; gap: 8px;
	height: 44px; padding: 0 16px; border: 1px solid var(--rch-bord); border-radius: 22px;
	background: #1c1c1c; color: #fff; font-family: 'GT Walsheim medium', sans-serif; font-size: 15px; cursor: pointer;
}
.rch-deplier[hidden] { display: none; }
.rch-deplier:hover, .rch-deplier:focus-visible { border-color: var(--rch-rouge); outline: none; }
.rch-deplier svg { width: 14px; height: 14px; }
.rch-deplier-nb { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--rch-rouge); color: #fff; font-size: 12px; line-height: 20px; text-align: center; box-sizing: border-box; }
.rch-deplier-nb[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .rch-filtres { transition: none; } }
@media (max-width: 767px) {
	.rch-deplier { height: 48px; padding: 0 12px; }
	.rch-deplier > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* téléphone : juste l'icône (+ nombre) */
	.rch-deplier { position: relative; }
}

/* ---------- 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;
}
/* (2026-11-10) pas de barre de défilement : elle ne prenait que le bas de l'écran (sous la recherche et les filtres), ça faisait brouillon ;
   la molette, le pavé tactile, le doigt et les flèches du clavier font toujours défiler */
.rch-corps { scrollbar-width: none; -ms-overflow-style: none; }
.rch-corps::-webkit-scrollbar { display: none; width: 0; height: 0; }
.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: 15px;
	line-height: 1.25;
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-transform: uppercase; /* comme les cartes de l'accueil et de l'agenda (2026-11-09) */
}
.rch-artistes {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .02em;
	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 6px 0 0; max-height: min(230px, 38vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.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;
}

/* ---------- cœur « suivre ce concert » sur les cartes (2026-11-09) : même balisage que l'agenda ---------- */
.rch-carte-boite { position: relative; display: flex; min-width: 0; }
.rch-carte-boite > .rch-carte { flex: 1 1 auto; padding-right: 50px; }
.rch-coeur { position: absolute; z-index: 2; top: 10px; right: 10px; }
.rch-coeur #favori { position: static !important; display: flex !important; align-items: center; justify-content: center; width: 32px !important; height: 32px !important; margin: 0 !important; padding: 0 !important; border-radius: 50%; background: #fff; cursor: pointer; transition: transform .15s; }
.rch-coeur #favori a { display: flex; }
.rch-coeur #favori img { width: 16px !important; height: 16px !important; margin: 0 !important; }
.rch-coeur #favori:hover { transform: scale(1.1); }
.rch-coeur #favori:focus-visible { outline: 2px solid var(--rch-rouge); outline-offset: 2px; }

/* =====================================================================================
   (2026-11-10) Compromis avec l'ancienne recherche (plus belle, moins pratique) :
   en-tête du site visible (top = bas de #menu-principal, scripts/recherche.js sousLEntete),
   flèche retour + « RECHERCHE », sections titrées soulignées, boutons carrés en majuscules.
   Tout reste à un clic : pas d'onglets.
   ===================================================================================== */
html.rch-bloque #menu-principal { z-index: 2001; } /* au-dessus du panneau (menus déroulants compris) */
#bloc-recherche.rch { border-top: 1px solid #000; }

.rch-fermer {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; margin-left: -10px; padding: 0;
	border-radius: 50%;
}
.rch-fermer svg { width: 26px; height: 26px; }
.rch-fermer:hover, .rch-fermer:focus-visible { background: #1c1c1c; outline: none; }
.rch-titre-page {
	flex: none;
	margin: 0 18px 0 0;
	font-family: 'GT Walsheim bold', sans-serif;
	font-size: 28px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}
.rch-barre { padding: 20px 0 10px; }

.rch-groupes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 44px; padding-bottom: 14px; }
.rch-groupe { min-width: 0; }
.rch-groupe-titre {
	display: flex; align-items: center; gap: 14px;
	margin: 10px 0 8px;
	font-family: 'GT Walsheim bold', sans-serif;
	font-size: 17px;
	line-height: 1.2;
	color: #fff;
	text-transform: none;
}
.rch-groupe-titre::after { content: ""; flex: 1; height: 1px; background: #fff; opacity: .85; }
.rch-groupe .rch-rangee { padding: 2px 0; }
.rch-groupe .rch-rangee:last-child { padding-bottom: 2px; }
.rch-rayon, .rch-message { padding-left: 0; }

/* boutons comme l'ancienne recherche : bord blanc, carrés, majuscules */
#bloc-recherche .rch-puce {
	height: 32px;
	padding: 0 11px;
	border: 1px solid rgba(255, 255, 255, .75);
	border-radius: 3px;
	color: #fff;
	font-family: 'GT Walsheim bold', sans-serif;
	font-size: 12px;
	letter-spacing: .02em;
	text-transform: uppercase;
}
#bloc-recherche .rch-puce:hover { border-color: #fff; background: #1c1c1c; }
#bloc-recherche .rch-puce[aria-pressed="true"] { background: var(--rch-rouge); border-color: var(--rch-rouge); color: #fff; }
#bloc-recherche .rch-puce .rch-nb { font-family: 'GT Walsheim medium', sans-serif; font-size: 11px; color: #9a9a9a; }
#bloc-recherche .rch-puce[aria-pressed="true"] .rch-nb { color: rgba(255, 255, 255, .85); }
#bloc-recherche .rch-puce[disabled] { border-color: rgba(255, 255, 255, .25); }

@media (min-width: 768px) {
	.rch-groupes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.rch-groupe[data-groupe="style"] { grid-column: 1 / -1; }
	.rch-groupe .rch-rangee { flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 767px) {
	.rch-barre { padding: 12px 0 6px; gap: 6px; }
	.rch-titre-page { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* téléphone : la flèche + le champ */
	.rch-groupe-titre { margin: 8px 0 6px; font-size: 15px; }
	.rch-groupes { padding-bottom: 10px; }
	.rch-groupe .rch-rangee { margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
}

/* (2026-11-10) repli des filtres plus doux : avant 0,22 s, ça ressemblait à un bug. Les filtres glissent et s'estompent,
   le bouton « Filtres » apparaît en fondu. */
.rch-filtres { transition: grid-template-rows .5s cubic-bezier(.22, .8, .24, 1), opacity .35s ease; }
.rch-filtres-int { transition: transform .5s cubic-bezier(.22, .8, .24, 1); }
.rch-replie .rch-filtres-int { transform: translateY(-14px); }
.rch-barre { transition: padding .5s cubic-bezier(.22, .8, .24, 1); }
.rch-deplier:not([hidden]) { animation: rch-fondu .35s ease both; }
@keyframes rch-fondu { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rch-filtres, .rch-filtres-int, .rch-barre { transition: none; } .rch-deplier:not([hidden]) { animation: none; } }

/* (2026-11-10) « Afficher plus » / défilement : la suite d'un même jour arrive dans une nouvelle grille, collée à la précédente */
.rch-grille + .rch-grille { margin-top: 10px; }
@media (min-width: 768px) { .rch-grille + .rch-grille { margin-top: 14px; } }

/* (2026-11-10, Nicolas) les filtres ne se replient plus : ils défilent avec les résultats sous la barre de recherche, et le
   bouton « Filtres » apparaît quand ils sont sortis de l'écran (scripts/recherche.js suivreDefilement). Annule le repli animé. */
.rch-filtres, .rch-replie .rch-filtres { display: block; opacity: 1; pointer-events: auto; transition: none; border-bottom: 1px solid var(--rch-bord); }
.rch-filtres-int, .rch-replie .rch-filtres-int { min-height: 0; overflow: visible; transform: none; transition: none; }
.rch-barre, .rch-replie .rch-barre { padding-bottom: 14px; transition: none; }
@media (max-width: 767px) { .rch-barre, .rch-replie .rch-barre { padding-bottom: 10px; } }
