/* Jetons de palette : voir assets/palette.css, chargée en dépendance. */

/* Scène de marché — remplace le widget BuddyPress "Qui est en ligne ?" par une
   illustration vivante du marché panafricain, avec un léger zoom d'ambiance
   continu (jamais brusque) pour suggérer un lieu toujours animé. */
.kmk-market-scene {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	margin: 10px 0 24px;
	box-shadow: 0 4px 20px rgba(27, 19, 8, 0.12);
}

.kmk-market-scene figure {
	margin: 0;
	overflow: hidden;
}

.kmk-market-scene img {
	width: 100%;
	height: auto;
	display: block;
	animation: kmk-market-scene-breathe 18s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	.kmk-market-scene img {
		animation: none;
	}
}

@keyframes kmk-market-scene-breathe {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.04); }
}

.kmk-market-scene__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	padding: 28px 24px 20px;
	background: linear-gradient(to top, rgba(27, 19, 8, 0.88) 0%, rgba(27, 19, 8, 0.55) 55%, rgba(27, 19, 8, 0) 100%);
	color: var(--kmk-color-cream);
}

/* Bulles "qui est en ligne" — avatars des membres réellement actifs,
   flottant sur la scène de marché comme des clients sur la bannière. */
.kmk-market-scene__bubbles {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.kmk-market-bubble {
	position: absolute;
	display: block;
	width: 44px;
	height: 44px;
	pointer-events: auto;
	animation: kmk-market-bubble-float 4.5s ease-in-out infinite;
}

.kmk-market-bubble:nth-child(2n) {
	animation-duration: 5.5s;
	animation-delay: -1.2s;
}

.kmk-market-bubble:nth-child(3n) {
	animation-duration: 6.2s;
	animation-delay: -2.4s;
}

.kmk-market-bubble img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2.5px solid var(--kmk-color-cream);
	box-shadow: 0 3px 10px rgba(27, 19, 8, 0.35);
	object-fit: cover;
	display: block;
}

.kmk-market-bubble__dot {
	position: absolute;
	bottom: 1px;
	right: 1px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #3CCB4F;
	border: 2px solid var(--kmk-color-cream);
}

.kmk-market-scene__more {
	position: absolute;
	top: 10px;
	right: 14px;
	z-index: 2;
	background: rgba(27, 19, 8, 0.65);
	color: var(--kmk-color-cream);
	font-size: 11px;
	font-weight: 700;
	padding: 5px 10px;
	border-radius: 999px;
}

@keyframes kmk-market-bubble-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
	.kmk-market-bubble {
		animation: none;
	}
}

@media (max-width: 480px) {
	.kmk-market-bubble, .kmk-market-bubble img {
		width: 34px;
		height: 34px;
	}
	.kmk-market-bubble__dot {
		width: 9px;
		height: 9px;
	}
}

.kmk-market-scene__caption h3 {
	margin: 0 0 6px;
	font-size: 19px;
	font-weight: 800;
}

.kmk-market-scene__caption p {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	max-width: 520px;
	opacity: 0.95;
}

@media (max-width: 480px) {
	.kmk-market-scene__caption {
		padding: 18px 14px 14px;
	}
	.kmk-market-scene__caption h3 {
		font-size: 16px;
	}
	.kmk-market-scene__caption p {
		font-size: 12px;
	}
}

/* Habillage spécifique au pied de page sitewide (par opposition à l'ancien
   emplacement, réservé à l'accueil) : pleine largeur, coins non arrondis,
   pas de marge basse puisqu'il n'y a plus rien en dessous. Le wrapper
   .kmk-market-scene--footer-wrap est ajouté autour du rendu du shortcode par
   kakimakiti_shop_style_render_footer_market_scene(), sans toucher à la
   fonction du shortcode elle-même (toujours utilisée telle quelle sur les
   autres pages). */
.kmk-market-scene--footer-wrap {
	margin-top: 40px;
}

.kmk-market-scene--footer-wrap .kmk-market-scene {
	margin: 0;
	border-radius: 0;
	box-shadow: none;
}
