/*
 * Exuvie - Bandeau d'annonce. Les couleurs viennent de Apparence → Personnaliser
 * (--exv-bandeau-fond, --exv-bandeau-couleur, écrites dans la page).
 *
 * Les infos sont superposées dans la même case : le bandeau prend la hauteur de la plus longue et ne
 * saute pas quand elles se relaient.
 */

.exv-bandeau {
	position: relative;
	z-index: 100;
	display: flex;
	align-items: stretch;
	background: var(--exv-bandeau-fond, #c05621);
	color: var(--exv-bandeau-couleur, #fff);
	text-align: center;
	font-size: 14px;
	line-height: 1.35;
}

.exv-bandeau-infos {
	display: grid;
	flex: 1;
	min-width: 0;
}

.exv-bandeau .exv-bandeau-info {
	grid-area: 1 / 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0 8px;
	padding: 8px 16px;
	color: inherit;
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity .4s ease, visibility .4s;
}

.exv-bandeau .exv-bandeau-info.is-active {
	opacity: 1;
	visibility: visible;
}

.exv-bandeau a.exv-bandeau-info:hover,
.exv-bandeau a.exv-bandeau-info:focus-visible {
	color: inherit;
	background: rgba(0, 0, 0, .08);
}

.exv-bandeau-action {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.exv-bandeau .exv-bandeau-fleche,
.exv-bandeau .exv-bandeau-fleche:hover,
.exv-bandeau .exv-bandeau-fleche:focus {
	flex: none;
	display: grid;
	place-items: center;
	width: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	cursor: pointer;
	opacity: .75;
}

.exv-bandeau .exv-bandeau-fleche:hover,
.exv-bandeau .exv-bandeau-fleche:focus-visible {
	opacity: 1;
	background: rgba(0, 0, 0, .08);
}

.exv-bandeau .exv-bandeau-fleche[hidden] {
	display: none;
}

.exv-bandeau-fleche--apres svg {
	transform: rotate(180deg);
}

@media (max-width: 599px) {
	.exv-bandeau {
		font-size: 13px;
	}

	.exv-bandeau .exv-bandeau-info {
		padding: 7px 8px;
	}

	.exv-bandeau .exv-bandeau-fleche {
		width: 30px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.exv-bandeau .exv-bandeau-info {
		transition: none;
	}
}
