/* Top bar Poupette Cakaouette. Tout est scopé sur #pc-topbar. */

#pc-topbar {
	position: relative;
	z-index: 999;
	background: var(--pc-topbar-bg, #305f72);
	color: var(--pc-topbar-color, #fff);
	font-size: 14px;
	line-height: 1.4;
}

#pc-topbar.pc-topbar--hidden {
	display: none;
}

#pc-topbar .pc-topbar__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 1170px;
	margin: 0 auto;
	padding: 8px 16px;
}

#pc-topbar .pc-topbar__viewport {
	flex: 1 1 auto;
	overflow: hidden;
	text-align: center;
	white-space: nowrap;
}

#pc-topbar .pc-topbar__track {
	display: inline-block;
	white-space: nowrap;
}

#pc-topbar a {
	color: inherit;
	text-decoration: underline;
}

#pc-topbar .pc-topbar__sep {
	margin: 0 14px;
	opacity: .6;
}

#pc-topbar .pc-badge {
	display: inline-block;
	margin-right: 8px;
	padding: 1px 8px;
	border-radius: 10px;
	background: #dd6688;
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
}

/* Note Google : logo G + étoiles dorées à remplissage partiel + note + nombre d'avis. */
#pc-topbar .pc-topbar__note {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	gap: 6px;
	white-space: nowrap;
	color: inherit;
	text-decoration: none;
	font-size: 13px;
}

#pc-topbar .pc-topbar__g {
	flex: 0 0 auto;
	background: #fff;
	border-radius: 50%;
	padding: 2px;
}

#pc-topbar a.pc-topbar__note:hover {
	text-decoration: none;
	opacity: .85;
}

#pc-topbar .pc-stars {
	position: relative;
	display: inline-block;
	line-height: 1;
	font-size: 14px;
	letter-spacing: 1px;
}

#pc-topbar .pc-stars__fond {
	color: rgba(255, 255, 255, .35);
}

#pc-topbar .pc-stars__plein {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--pc-note, 100%);
	overflow: hidden;
	white-space: nowrap;
	color: #fbbc04;
}

#pc-topbar .pc-topbar__note-nb {
	opacity: .75;
}

#pc-topbar .pc-topbar__close {
	flex: 0 0 auto;
	border: 0;
	background: none;
	color: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 2px 6px;
	opacity: .7;
}

#pc-topbar .pc-topbar__close:hover {
	opacity: 1;
}

/* Mode défilement : le JS duplique le contenu du track pour une boucle continue. */
#pc-topbar.pc-topbar--scroll .pc-topbar__viewport {
	text-align: left;
}

#pc-topbar.pc-topbar--scroll .pc-topbar__track {
	animation: pc-topbar-scroll var(--pc-topbar-duree, 30s) linear infinite;
}

#pc-topbar.pc-topbar--scroll:hover .pc-topbar__track {
	animation-play-state: paused;
}

@keyframes pc-topbar-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* Accessibilité : pas d'animation pour qui la refuse. */
@media (prefers-reduced-motion: reduce) {
	#pc-topbar.pc-topbar--scroll .pc-topbar__track {
		animation: none;
	}
}

@media (max-width: 767px) {
	#pc-topbar {
		font-size: 13px;
	}
}
