/* =========================================================================
   RCB Éléments — styles front
   Calé sur onair2 : angles carrés, ombre portée dure, titres Barlow
   Semi Condensed en capitales. Les couleurs viennent des réglages du thème
   (voir RCB_Assets::palette) et sont injectées en variables --rcb-*.
   ========================================================================= */

.rcb {
	--rcb-gap: 26px;
	/* --rcb-cols-max est posé en style inline par le shortcode ; --rcb-cols en
	   dérive pour que les media queries puissent le réduire (un style inline
	   l'emporterait sinon sur toute règle de la feuille). */
	--rcb-cols: var(--rcb-cols-max, 3);
	--rcb-shadow: 0 5px 0 0 rgba(0, 0, 0, .1);
	--rcb-shadow-hover: 0 9px 0 0 var(--rcb-accent, #1801ad);
	--rcb-font-title: "Barlow Semi Condensed", "Open Sans", Helvetica, Arial, sans-serif;
	--rcb-font-body: "Open Sans", Helvetica, Arial, sans-serif;
	/* 6,7:1 sur blanc. L'ancienne valeur (.62) passait AA sans marge, sur du
	   texte de 12-13 px en capitales — les deux plugins doivent rester
	   alignés, la carte publique et l'espace partagent la même grammaire. */
	--rcb-muted: rgba(27, 27, 33, .72);

	font-family: var(--rcb-font-body);
	margin: 0 0 42px;
}

.rcb *,
.rcb *::before,
.rcb *::after {
	box-sizing: border-box;
}

.rcb a {
	text-decoration: none;
}

/* ------------------------------------------- Défense contre le thème

   La feuille dynamique du thème (Kirki) impose
       .qt-main a, .qt-content-main a, … { color: #1801ad !important; }
   ce qui repeint en bleu d'accent tout lien de nos cartes — dont le bouton
   « Tout voir », qui devenait bleu sur fond noir.

   Contre un !important, seule une spécificité supérieure l'emporte : ces
   sélecteurs valent (0,2,0) face à (0,1,1). Strictement limité à la couleur
   du texte de nos composants.
   -------------------------------------------------------------------- */

.rcb a.rcb-btn,
a.rcb-btn.rcb-btn { color: #fff !important; }

.rcb a.rcb-btn--ghost,
a.rcb-btn--ghost.rcb-btn--ghost { color: var(--rcb-dark, #101010) !important; }

/* Meme parade pour le bouton d'appel : la feuille dynamique Kirki force
   .qt-main a { color: #1801ad !important }, ce qui donnait du bleu sur bleu.
   Nos selecteurs doubles valent (0,2,0) contre (0,1,1). */
.rcb a.rcb-btn--accent,
a.rcb-btn--accent.rcb-btn--accent { color: #fff !important; }

.rcb a.rcb-btn--ghost:hover,
a.rcb-btn--ghost.rcb-btn--ghost:hover { color: #fff !important; }

.rcb-chip.rcb-chip { color: var(--rcb-dark, #101010) !important; }
.rcb-chip.rcb-chip:hover,
.rcb-chip.is-active { color: #fff !important; }

.rcb-card__title a.rcb-card__link,
.rcb-card__title a { color: var(--rcb-dark, #101010) !important; }
.rcb-card:hover .rcb-card__title a { color: var(--rcb-accent, #1801ad) !important; }

/* --------------------------------------------------- Le bloc de la page d'accueil

   Injecté autour du contenu de la page d'accueil, ce bloc n'hérite d'aucun
   conteneur du thème : sans cette règle il colle aux deux bords de l'écran,
   alors que tout le reste de la page respire dans un conteneur centré. On lui
   donne la même largeur utile et la même respiration verticale que les autres
   sections du thème.
   -------------------------------------------------------------------------- */

.rcb-accueil {
	box-sizing: border-box;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 56px 24px 64px;
}

@media (max-width: 620px) {
	.rcb-accueil {
		padding: 36px 16px 44px;
	}
}

/* ------------------------------------------------------------------ En-tête */

.rcb-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.rcb-head__title {
	margin: 0;
	font-family: var(--rcb-font-title);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -.02em;
	line-height: 1;
	font-size: clamp(26px, 3.4vw, 40px);
	color: var(--rcb-dark, #101010);
}

.rcb-head__title::after {
	content: "";
	display: block;
	width: 54px;
	height: 5px;
	margin-top: 12px;
	background: var(--rcb-accent, #1801ad);
}

.rcb-head__tools {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

/* ------------------------------------------------------------------ Boutons */

.rcb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 24px;
	border: 2px solid var(--rcb-dark, #101010);
	background: var(--rcb-dark, #101010);
	color: #fff;
	font-family: var(--rcb-font-title);
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: -.01em;
	white-space: nowrap;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.rcb-btn:hover,
.rcb-btn:focus-visible {
	background: var(--rcb-accent, #1801ad);
	border-color: var(--rcb-accent, #1801ad);
	color: #fff;
}

.rcb-btn--ghost {
	background: transparent;
	color: var(--rcb-dark, #101010);
}

.rcb-btn--ghost:hover,
.rcb-btn--ghost:focus-visible {
	color: #fff;
}

/* Le second bouton du bloc d'annonces. Il porte l'accent de la radio pour se
   distinguer du bouton noir « tout voir » : deux boutons noirs cote a cote ne
   diraient pas lequel est l'action, et c'est celui-ci qui fait entrer un
   commercant dans l'espace annonceurs. */
.rcb-btn--accent {
	background: var(--rcb-accent, #1801ad);
	border-color: var(--rcb-accent, #1801ad);
	color: #fff;
}

.rcb-btn--accent:hover,
.rcb-btn--accent:focus-visible {
	background: var(--rcb-dark, #101010);
	border-color: var(--rcb-dark, #101010);
	color: #fff;
}

/* A 620 px les deux boutons ne tiennent plus sur une ligne a cote du titre. */
@media (max-width: 620px) {
	.rcb-head__tools {
		width: 100%;
		margin-left: 0;
		flex-wrap: wrap;
	}

	.rcb-head__tools .rcb-btn {
		flex: 1 1 auto;
	}
}

.rcb-nav {
	display: flex;
	gap: 6px;
}

.rcb-nav__btn {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	/* 1,4:1 auparavant : un contrôle dont on ne distingue pas le contour.
	   #8d8d90 donne 3,31:1, seuil des éléments d'interface (WCAG 1.4.11). */
	border: 2px solid #8d8d90;
	background: transparent;
	color: var(--rcb-dark, #101010);
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.rcb-nav__btn svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: square;
	stroke-linejoin: miter;
}

.rcb-nav__btn:hover:not([disabled]),
.rcb-nav__btn:focus-visible {
	background: var(--rcb-accent, #1801ad);
	border-color: var(--rcb-accent, #1801ad);
	color: #fff;
}

.rcb-nav__btn[disabled] {
	opacity: .3;
	cursor: default;
}

/* -------------------------------------------------------------- Grille/piste */

.rcb-grid {
	display: grid;
	grid-template-columns: repeat(var(--rcb-cols), minmax(0, 1fr));
	gap: var(--rcb-gap);
}

.rcb-grid--pin {
	margin-bottom: var(--rcb-gap);
}

.rcb-carousel {
	position: relative;
}

.rcb-track {
	display: flex;
	gap: var(--rcb-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-bottom: 10px;
	/* laisse respirer l'ombre portée */
}

.rcb-track::-webkit-scrollbar {
	display: none;
}

.rcb-track:focus-visible {
	outline: 3px solid var(--rcb-accent, #1801ad);
	outline-offset: 4px;
}

.rcb-slide {
	flex: 0 0 calc((100% - (var(--rcb-cols) - 1) * var(--rcb-gap)) / var(--rcb-cols));
	scroll-snap-align: start;
}

.rcb-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.rcb-dots button {
	width: 26px;
	height: 5px;
	padding: 0;
	border: 0;
	background: #8d8d90;
	cursor: pointer;
	transition: background .2s ease;
}

.rcb-dots button.is-active {
	background: var(--rcb-accent, #1801ad);
}

/* ------------------------------------------------------------------- Carte */

.rcb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--rcb-paper, #fff);
	box-shadow: var(--rcb-shadow);
	transition: transform .25s ease, box-shadow .25s ease;
}

.rcb-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--rcb-shadow-hover);
}

/* Toute la carte est une seule cible tactile : le lien du titre s'étire sur
   la carte entière via son ::after. Un seul lien dans l'arbre d'accessibilité,
   aucune zone morte au doigt. */
.rcb-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Le focus clavier doit encadrer la carte, pas seulement le texte du titre. */
.rcb-card:focus-within {
	outline: 3px solid var(--rcb-accent, #1801ad);
	outline-offset: 3px;
}

.rcb-card__link:focus {
	outline: none;
}

/* Seul un CTA qui vise ailleurs que la carte reste cliquable par-dessus. */
.rcb-card__cta--lien {
	position: relative;
	z-index: 2;
}

.rcb-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #e9e9ee;
}

.rcb-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}

.rcb-card:hover .rcb-card__img {
	transform: scale(1.05);
}

.rcb-card__img--vide {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--rcb-dark, #101010), var(--rcb-accent, #1801ad));
	opacity: .9;
}

.rcb-card__type {
	position: absolute;
	top: 0;
	left: 0;
	padding: 7px 12px;
	background: var(--rcb-accent, #1801ad);
	color: #fff;
	font-family: var(--rcb-font-title);
	font-weight: 600;
	font-size: 12px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.rcb-card__date {
	position: absolute;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 62px;
	padding: 9px 8px;
	background: var(--rcb-paper, #fff);
	color: var(--rcb-dark, #101010);
	font-family: var(--rcb-font-title);
	line-height: 1;
}

.rcb-card__date b {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -.02em;
}

.rcb-card__date i {
	font-style: normal;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--rcb-accent, #1801ad);
}

.rcb-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 22px 24px 24px;
}

.rcb-card__title {
	margin: 0 0 10px;
	font-family: var(--rcb-font-title);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.08;
	letter-spacing: -.02em;
	text-transform: uppercase;
}

.rcb-card__title a {
	color: var(--rcb-dark, #101010);
	transition: color .2s ease;
}

.rcb-card:hover .rcb-card__title a {
	color: var(--rcb-accent, #1801ad);
}

.rcb-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin: 0 0 12px;
	font-size: 12.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--rcb-accent, #1801ad);
}

.rcb-card__lieu {
	color: var(--rcb-muted);
}

.rcb-card__text {
	margin: 0 0 18px;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--rcb-muted);
}

/* Le CTA est un vrai lien : il peut viser une billetterie externe alors que
   la carte, elle, ouvre la page de l'annonce sur le site. */
.rcb-card__cta {
	margin-top: auto;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 40px;
	padding: 0 18px;
	border: 2px solid var(--rcb-dark, #101010);
	background: transparent;
	color: var(--rcb-dark, #101010);
	font-family: var(--rcb-font-title);
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .02em;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.rcb-card:hover .rcb-card__cta,
.rcb-card__cta:hover,
.rcb-card__cta:focus-visible {
	background: var(--rcb-accent, #1801ad);
	border-color: var(--rcb-accent, #1801ad);
	color: #fff;
}

.rcb-card__cta-ico {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: square;
	stroke-linejoin: miter;
	transition: transform .2s ease;
}

.rcb-card__cta:hover .rcb-card__cta-ico {
	transform: translateX(2px);
}

.rcb-card__cta--externe:hover .rcb-card__cta-ico {
	transform: translate(2px, -2px);
}

/* Texte réservé aux lecteurs d'écran. */
.rcb-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.rcb-card--pin {
	outline: 3px solid var(--rcb-accent, #1801ad);
	outline-offset: 0;
}

/* --------------------------------------------------------- Bandeau défilant */

.rcb-bandeau {
	overflow: hidden;
	background: var(--rcb-dark, #101010);
	padding: 12px 0;
}

.rcb-bandeau__track {
	display: flex;
	width: max-content;
	animation: rcb-marquee var(--rcb-duree, 45s) linear infinite;
}

.rcb-bandeau:hover .rcb-bandeau__track,
.rcb-bandeau:focus-within .rcb-bandeau__track {
	animation-play-state: paused;
}

@keyframes rcb-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

.rcb-tick {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 26px;
	border-right: 1px solid rgba(255, 255, 255, .14);
	color: #fff;
}

.rcb-tick__img {
	width: 46px;
	height: 46px;
	object-fit: cover;
	flex: 0 0 auto;
}

.rcb-tick__txt {
	display: flex;
	flex-direction: column;
	gap: 2px;
	white-space: nowrap;
}

.rcb-tick__txt strong {
	font-family: var(--rcb-font-title);
	font-weight: 700;
	font-size: 17px;
	text-transform: uppercase;
	letter-spacing: -.01em;
	line-height: 1.1;
}

.rcb-tick__txt em {
	font-style: normal;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--rcb-secondary, #64c9d9);
}

.rcb-tick:hover strong {
	color: var(--rcb-secondary, #64c9d9);
}

/* ------------------------------------------------------------ Page liste */

/* Les filtres et la pagination sont des <nav>, et le thème onair2 impose à tout
   <nav> une hauteur fixe de 56 px (64 au-dessus de 601 px), héritée de
   Materialize. Sur une seule rangée cela ne se voit pas ; dès que les puces
   passent à la ligne, la boîte reste à 56 px et le contenu suivant remonte
   par-dessus. On rend la hauteur au contenu, et l'interlignage avec. */
.rcb-filtres {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	height: auto;
	margin-bottom: 26px;
	line-height: 1.4;
}

.rcb-chip {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 16px;
	border: 2px solid #8d8d90;
	color: var(--rcb-dark, #101010);
	font-family: var(--rcb-font-title);
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .02em;
	transition: all .2s ease;
}

.rcb-chip:hover,
.rcb-chip.is-active {
	background: var(--rcb-accent, #1801ad);
	border-color: var(--rcb-accent, #1801ad);
	color: #fff;
}

.rcb-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 18px;
	height: auto;
	margin-top: 38px;
	line-height: 1.4;
}

.rcb-pagination__count {
	font-family: var(--rcb-font-title);
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--rcb-muted);
}

.rcb-empty {
	padding: 26px;
	background: var(--rcb-paper, #fff);
	box-shadow: var(--rcb-shadow);
	text-align: center;
	color: var(--rcb-muted);
}

.rcb-empty--admin {
	border-left: 5px solid var(--rcb-accent, #1801ad);
	text-align: left;
}

/* -------------------------------------------------- Page d'une annonce */

.rcb-single {
	margin-top: 34px;
}

.rcb-single__infos {
	display: flex;
	flex-wrap: wrap;
	gap: 1px;
	background: rgba(27, 27, 33, .1);
	border-left: 5px solid var(--rcb-accent, #1801ad);
	margin-bottom: 26px;
}

.rcb-single__info {
	flex: 1 1 200px;
	padding: 16px 20px;
	background: var(--rcb-paper, #fff);
}

.rcb-single__info span {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--rcb-accent, #1801ad);
}

.rcb-single__info strong {
	font-family: var(--rcb-font-title);
	font-weight: 700;
	font-size: 19px;
	text-transform: uppercase;
	letter-spacing: -.01em;
	color: var(--rcb-dark, #101010);
}

.rcb-single__action {
	margin: 0 0 22px;
}

.rcb-single__retour a {
	font-family: var(--rcb-font-title);
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: var(--rcb-muted);
}

.rcb-single__retour a:hover {
	color: var(--rcb-accent, #1801ad);
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 1024px) {
	.rcb {
		--rcb-cols: min(2, var(--rcb-cols-max, 3));
		--rcb-gap: 20px;
	}
}

@media (max-width: 680px) {
	.rcb {
		--rcb-cols: 1;
	}

	.rcb-head__tools {
		width: 100%;
		margin-left: 0;
		justify-content: space-between;
	}

	.rcb-card__body {
		padding: 18px 18px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rcb-bandeau__track {
		animation: none;
	}

	.rcb-track {
		scroll-behavior: auto;
	}

	.rcb-card,
	.rcb-card__img {
		transition: none;
	}
}
