@charset "UTF-8";

/* Conteneur des toasts */
#lrf-toasts {
	position: fixed;
	top: 12px;
	right: 16px;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
	max-width: 420px;
	width: 100%;
}

/* Toast individuel */
.lrf-toast {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 6px;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: 0 4px 12px rgba(0,0,0,0.25);
	pointer-events: auto;
	animation: lrf-toast-in 0.3s ease-out;
	position: relative;
	overflow: hidden;
}

.lrf-toast.lrf-toast-out {
	animation: lrf-toast-out 0.3s ease-in forwards;
}

.lrf-toast-icon {
	flex-shrink: 0;
	font-size: 18px;
}

.lrf-toast-message {
	flex: 1;
}

.lrf-toast-close {
	flex-shrink: 0;
	background: none;
	border: none;
	color: rgba(255,255,255,0.7);
	font-size: 18px;
	cursor: pointer;
	padding: 0 0 0 8px;
	line-height: 1;
}
.lrf-toast-close:hover {
	color: #fff;
}

/* Barre de progression auto-dismiss */
.lrf-toast-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 3px;
	background: rgba(255,255,255,0.4);
	animation: lrf-toast-timer 4s linear forwards;
}

/* Variantes de couleur */
.lrf-toast-ok {
	background: #2e7d32;
}
.lrf-toast-warn {
	background: #e65100;
}
.lrf-toast-ko {
	background: #c62828;
}

/* Animations */
@keyframes lrf-toast-in {
	from { opacity: 0; transform: translateX(40px); }
	to   { opacity: 1; transform: translateX(0); }
}
@keyframes lrf-toast-out {
	from { opacity: 1; transform: translateX(0); max-height: 100px; margin-bottom: 0; }
	to   { opacity: 0; transform: translateX(40px); max-height: 0; margin-bottom: -8px; }
}
@keyframes lrf-toast-timer {
	from { width: 100%; }
	to   { width: 0%; }
}

/* Classes legacy conservees pour compatibilite */
.flashOk {
	background: #2e7d32;
	color: #fff;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 6px;
}
.flashKo {
	background: #c62828;
	color: #fff;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 6px;
}
.flashWarn {
	background: #e65100;
	color: #fff;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 6px;
}
