/* Alyys Annonce — toast d'annonce (bas à gauche, non bloquant) */

/* Conteneur : positionné en bas à gauche, ne couvre PAS l'écran,
   pointer-events:none pour laisser les clics passer vers le site. */
.alyys-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;
}

.alyys-ann-modal {
	position: relative;
	width: 380px;
	max-width: calc( 100vw - 40px );
	background: #ffffff;
	border-radius: 0; /* pas de border-radius */
	box-shadow: 0 16px 40px rgba( 0, 0, 0, 0.22 );
	padding: 30px 28px 26px;
	text-align: center;
	pointer-events: auto; /* la carte elle-même reste cliquable */
	outline: none;
	transform: translateY( 24px );
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.alyys-ann-close {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	color: #8a8a99;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	border-radius: 0;
	transition: color 0.15s ease;
}

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

.alyys-ann-visual {
	margin: 0 0 18px;
}

.alyys-ann-visual img {
	max-width: 160px;
	max-height: 70px;
	height: auto;
	width: auto;
	display: inline-block;
}

.alyys-ann-content {
	color: #1c1c28;
	font-size: 15px;
	line-height: 1.5;
}

.alyys-ann-content > :first-child {
	margin-top: 0;
}

.alyys-ann-content > :last-child {
	margin-bottom: 0;
}

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

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

.alyys-ann-content a {
	color: inherit;
}

@media ( max-width: 480px ) {
	.alyys-ann-overlay {
		padding: 14px;
		padding-bottom: calc( 14px + env( safe-area-inset-bottom, 0px ) );
		right: 0; /* la carte prend la largeur dispo en mobile */
	}
	.alyys-ann-modal {
		width: 100%;
		max-width: 100%;
		padding: 26px 20px 22px;
	}
	.alyys-ann-content h1,
	.alyys-ann-content h2,
	.alyys-ann-content h3 {
		font-size: 20px;
	}
}
