/* Popup System */
.nox-popup
{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.nox-popup.active
{
	opacity: 1;
}

.nox-exit-popup
{
	pointer-events: auto;
}

.nox-popup-overlay
{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	cursor: pointer;
}

.nox-popup-content
{
	position: absolute;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	max-width: 90%;
	max-height: 90%;
	overflow: visible;
	pointer-events: auto;
}

.nox-exit-popup .nox-popup-content
{
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	max-width: 800px;
}

.nox-entry-popup .nox-popup-content
{
	bottom: 20px;
	right: 20px;
	width: 220px;
	transform: translateY(400px);
	transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nox-entry-popup.active .nox-popup-content
{
	transform: translateY(0);
}

.nox-popup-close
{
	position: absolute;
	top: -12px;
	right: -12px;
	background: #fff;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #333;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.2s ease;
	z-index: 10;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nox-popup-close:hover
{
	background-color: #f0f0f0;
}

.nox-popup-link
{
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.nox-popup-link:hover
{
	text-decoration: none;
}

.nox-popup-inner
{
	padding: 0;
	overflow: auto;
	max-height: 90vh;
}

.nox-popup-title
{
	margin-top: 0;
	margin-bottom: 0;
	font-size: 15px;
	color: #333;
	font-weight: 600;
	line-height: 1.2;
	padding: 12px 12px 8px;
}

.nox-exit-popup .nox-popup-title
{
	font-size: 28px;
	line-height: 1.2;
	padding: 20px 40px 15px;
}

.nox-popup-image-wrapper
{
	position: relative;
	margin-bottom: 0;
	line-height: 0;
}

.nox-popup-image-wrapper img
{
	width: 100%;
	height: auto;
	display: block;
}

.nox-popup-btn
{
	position: absolute;
	bottom: 6px;
	left: 50%;
	transform: translateX(-50%);
	background-color: #EC6522;
	color: #fff;
	padding: 8px 16px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 12px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.nox-popup-btn:hover
{
	background-color: #d15a1e;
	transform: translateX(-50%) scale(1.05);
}

.nox-popup-btn i
{
	margin-left: 6px;
	font-size: 11px;
}

.nox-popup-btn-large
{
	font-size: 14px;
	padding: 10px 20px;
	bottom: 15px;
}

.nox-popup-btn-large i
{
	margin-left: 8px;
	font-size: 13px;
}

/* Bouton latéral */
.nox-side-trigger
{
	position: fixed;
	right: 18px;
	top: 70%;
	transform: translateY(-50%) rotate(-90deg);
	transform-origin: right center;
	background-color: #EC6522;
	color: #fff;
	padding: 10px 20px;
	cursor: pointer;
	border-radius: 4px 4px 0 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	z-index: 99999;
	transition: background-color 0.2s ease;
	font-weight: 600;
	font-size: 14px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	display: flex;
	align-items: center;
	gap: 8px;
}

.nox-side-trigger:hover
{
	background-color: #d15a1e;
}

.nox-side-trigger-icon
{
	font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px)
{
	.nox-exit-popup .nox-popup-content
	{
		width: calc(100% - 40px);
		max-width: calc(100% - 40px);
	}
}

@media (max-width: 768px)
{
	.nox-exit-popup .nox-popup-content
	{
		width: calc(100% - 40px);
		max-width: none;
	}

	.nox-entry-popup .nox-popup-content
	{
		bottom: 10px;
		right: 10px;
		width: 180px;
	}

	.nox-popup-title
	{
		font-size: 13px;
		line-height: 1.2;
		padding: 10px 10px 6px;
	}

	.nox-exit-popup .nox-popup-title
	{
		font-size: 22px;
		line-height: 1.2;
		padding: 18px 25px 12px;
	}

	.nox-popup-btn
	{
		font-size: 10px;
		padding: 6px 12px;
		bottom: 8px;
	}

	.nox-popup-btn i
	{
		margin-left: 4px;
		font-size: 9px;
	}

	.nox-popup-btn-large
	{
		font-size: 12px;
		padding: 8px 16px;
		bottom: 12px;
	}

	.nox-popup-btn-large i
	{
		margin-left: 6px;
		font-size: 11px;
	}

	.nox-side-trigger
	{
		right: 15px;
		font-size: 12px;
		padding: 8px 15px;
	}

	.nox-side-trigger-icon
	{
		font-size: 14px;
	}
}
