/* UNCJ Annonce — toast bas-gauche non bloquant */

.uncj-ann-overlay {
	position: fixed;
	left: 0;
	bottom: 0;
	z-index: 999999;
	max-width: 100%;
	padding: 20px;
	padding-bottom: calc( 20px + env( safe-area-inset-bottom, 0px ) );
	pointer-events: none; /* les clics passent à travers le conteneur */
}

.uncj-ann-modal {
	position: relative;
	width: 400px;
	max-width: calc( 100vw - 40px );
	background: #ffffff;
	border-radius: 4px;
	box-shadow: 0 16px 40px rgba( 0, 0, 0, 0.22 );
	padding: 32px 28px 26px;
	pointer-events: auto; /* la carte reste cliquable */
	transform: translateY( 24px );
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.uncj-ann-overlay.is-visible .uncj-ann-modal {
	transform: translateY( 0 );
	opacity: 1;
}

/* Bouton fermer */
.uncj-ann-close {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	color: #9a9aaa;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	border-radius: 0;
	transition: color 0.15s ease;
}

.uncj-ann-close:hover,
.uncj-ann-close:focus {
	color: #111;
}

/* Badge */
.uncj-ann-badge {
	display: inline-block;
	margin: 0 0 16px;
	padding: 3px 12px;
	border-radius: 2px;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

/* Visuel */
.uncj-ann-visual {
	margin: 0 0 18px;
}

.uncj-ann-visual img {
	max-width: 100%;
	max-height: 160px;
	width: auto;
	height: auto;
	display: block;
	border-radius: 2px;
}

/* Contenu éditeur */
.uncj-ann-content {
	color: #1c1c28;
	font-size: 15px;
	line-height: 1.55;
}

.uncj-ann-content > :first-child { margin-top: 0; }
.uncj-ann-content > :last-child  { margin-bottom: 0; }

.uncj-ann-content h1,
.uncj-ann-content h2,
.uncj-ann-content h3 {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 700;
	color: #0f0f1a;
}

.uncj-ann-content p {
	margin: 0 0 8px;
	color: #44444f;
}

.uncj-ann-content ul,
.uncj-ann-content ol {
	margin: 0 0 10px;
	padding-left: 18px;
	color: #44444f;
}

.uncj-ann-content li {
	margin-bottom: 3px;
}

.uncj-ann-content strong {
	color: #1c1c28;
}

.uncj-ann-content a {
	color: inherit;
	text-decoration: underline;
}

/* Bouton CTA */
.uncj-ann-cta {
	margin-top: 20px;
}

.uncj-ann-btn {
	display: inline-block;
	padding: 11px 24px;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	border-radius: 2px;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.uncj-ann-btn:hover,
.uncj-ann-btn:focus {
	filter: brightness( 1.12 );
	transform: translateY( -1px );
}

/* Mobile : carte pleine largeur */
@media ( max-width: 480px ) {
	.uncj-ann-overlay {
		padding: 14px;
		padding-bottom: calc( 14px + env( safe-area-inset-bottom, 0px ) );
		right: 0;
	}

	.uncj-ann-modal {
		width: 100%;
		max-width: 100%;
		padding: 26px 20px 22px;
	}

	.uncj-ann-btn {
		display: block;
		text-align: center;
	}
}
