/* College Alerte 1.0 — Agence Camden */

.college-alerte {
	--ca-bg: #001B29;
	--ca-fg: #FFFFFF;
	position: relative;
	z-index: 1000;
	width: 100%;
	margin: 0;
	background: var(--ca-bg);
	color: var(--ca-fg);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}

.college-alerte *,
.college-alerte *::before,
.college-alerte *::after {
	box-sizing: border-box;
}

/* Permanent : fixé en haut, un espaceur garde la place dans la page. */
.college-alerte--sticky.is-ready {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
}

.admin-bar .college-alerte--sticky.is-ready {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .college-alerte--sticky.is-ready {
		top: 46px;
	}
}

.college-alerte-spacer {
	display: block;
	width: 100%;
}

.college-alerte__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 1280px;
	min-height: 44px;
	margin: 0 auto;
	padding: 6px 12px 6px 20px;
}

/* Les messages sont empilés dans la même cellule : la hauteur ne saute pas à la rotation. */
.college-alerte__messages {
	display: grid;
	flex: 1 1 auto;
	min-width: 0;
	text-align: center;
}

.college-alerte__message {
	grid-area: 1 / 1;
	margin: 0;
	padding: 4px 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .4s ease, visibility .4s ease;
}

.college-alerte__message.is-active {
	opacity: 1;
	visibility: visible;
}

.college-alerte__text {
	color: inherit;
}

.college-alerte a.college-alerte__link,
.college-alerte a.college-alerte__link:visited {
	display: inline-block;
	margin-left: .5em;
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.college-alerte a.college-alerte__link:hover {
	color: inherit;
	text-decoration-thickness: 2px;
}

.college-alerte a.college-alerte__link:focus-visible,
.college-alerte button.college-alerte__btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.college-alerte__controls {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 2px;
}

.college-alerte button.college-alerte__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	box-shadow: none;
	color: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.college-alerte button.college-alerte__btn:hover {
	background: rgba(127, 127, 127, .2);
}

.college-alerte__btn svg {
	display: block;
}

.college-alerte__icon-play,
.college-alerte__pause[aria-pressed="true"] .college-alerte__icon-pause {
	display: none !important;
}

.college-alerte__pause[aria-pressed="true"] .college-alerte__icon-play {
	display: block !important;
}

.college-alerte__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Compatibilité thème Regina : le menu fixe (headerSticky, top 12px) passe sous le bandeau. */
.has-college-alerte-sticky [is^="bubble-navigation-main"].headerSticky {
	top: calc(var(--college-alerte-h, 0px) + 12px) !important;
}

@media screen and (max-width: 640px) {
	.college-alerte {
		font-size: 14px;
	}

	.college-alerte__inner {
		padding: 6px 6px 6px 16px;
	}

	.college-alerte__messages {
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	.college-alerte__message {
		transition: none;
	}
}

@media print {
	.college-alerte,
	.college-alerte-spacer {
		display: none !important;
	}
}
