/**
 * Vesxpress — Suivi des visiteurs : styles côté public.
 *
 * Couvre le bandeau de consentement et les shortcodes de statistiques.
 */

/* --------------------------------------- Bandeau de consentement */
.vx-consent {
	position: fixed;
	left: 20px;
	right: 20px;
	bottom: 20px;
	z-index: 99999;
	background: var(--vx-primary, #2d2419);
	color: #fff;
	padding: 18px 22px;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	max-width: 900px;
	margin: 0 auto;
	font-size: 14px;
	line-height: 1.5;
}

.vx-consent p {
	margin: 0;
	flex: 1 1 300px;
}

.vx-consent__actions {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.vx-consent button {
	padding: 9px 20px;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
	transition: opacity 0.15s;
}

.vx-consent button:hover {
	opacity: 0.88;
}

.vx-consent__yes {
	background: var(--vx-accent, #c75b39);
	color: #fff;
}

.vx-consent__no {
	background: transparent;
	color: #ddd;
	border: 1px solid #666;
}

/* ------------------------------------ Boîte de statistiques */
.vx-widget-stat {
	background: #fff;
	border: 1px solid var(--vx-border, #e3d9cc);
	border-radius: 10px;
	padding: 16px 18px;
	box-sizing: border-box;
}

.vx-widget-stat__title {
	margin: 0 0 4px;
	font-size: 15px;
	color: var(--vx-primary, #2d2419);
}

.vx-widget-stat__period {
	margin: 0 0 12px;
	font-size: 11px;
	color: var(--vx-muted, #857463);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.vx-widget-stat__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vx-widget-stat__list li {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 0;
	border-bottom: 1px solid var(--vx-linen, #efe6d9);
	font-size: 13px;
}

.vx-widget-stat__list li:last-child {
	border-bottom: none;
}

.vx-widget-stat__lbl {
	color: var(--vx-muted, #857463);
}

.vx-widget-stat__val {
	font-weight: 700;
	color: var(--vx-primary, #2d2419);
}

.vx-widget-stat__val.vx-live {
	color: #2a7d36;
}

.vx-widget-stat__sep {
	font-size: 11px !important;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--vx-muted, #857463);
	padding-top: 12px !important;
	border-bottom: none !important;
}

/* ------------------------------------------- Tableau des pays */
.vx-table-pays {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.vx-table-pays td {
	padding: 5px 6px;
	border: none;
	vertical-align: middle;
}

.vx-pays-nom {
	width: 34%;
	color: var(--vx-primary, #2d2419);
	font-weight: 500;
}

.vx-pays-barre {
	width: 46%;
}

.vx-pays-barre span {
	display: block;
	height: 7px;
	background: var(--vx-accent, #c75b39);
	border-radius: 4px;
	min-width: 2px;
}

.vx-pays-val {
	width: 20%;
	text-align: right;
	font-weight: 600;
	color: var(--vx-primary, #2d2419);
}

/* ------------------------------------------------ Graphiques */
.vx-chart {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	width: 100%;
	box-sizing: border-box;
}

.vx-chart__col {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: 100%;
}

.vx-chart__barre {
	display: block;
	width: 100%;
	max-width: 40px;
	min-height: 2px;
	border-radius: 3px 3px 0 0;
}

.vx-chart__axe {
	display: flex;
	margin-top: 6px;
	font-size: 10px;
	color: var(--vx-muted, #857463);
	text-align: center;
}

.vx-chart--lignes {
	display: block;
}

/* --------------------------------------------------- Divers */
.vx-vide {
	color: var(--vx-muted, #857463);
	font-style: italic;
	font-size: 13px;
}

/* ----------------------------------------------- Responsive */
@media (max-width: 782px) {
	.vx-consent {
		left: 10px;
		right: 10px;
		bottom: 10px;
		flex-direction: column;
		align-items: stretch;
		padding: 16px 18px;
	}

	.vx-consent__actions {
		width: 100%;
	}

	.vx-consent button {
		flex: 1;
	}
}
