/**
 * Popup Welcome - Styles
 */

/* Overlay */
.popup-welcome-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 99999;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	backdrop-filter: blur(3px);
}

.popup-welcome-overlay.show {
	display: flex;
	animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Container */
.popup-welcome-container {
	position: relative;
	background: #ffffff;
	border-radius: 16px;
	max-width: 600px;
	width: 90%;
	max-height: 90vh;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	animation: slideUp 0.4s ease;
}

@keyframes slideUp {
	from {
		transform: translateY(50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Close Button */
.popup-welcome-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.popup-welcome-close:hover {
	background: #ffffff;
	transform: rotate(90deg);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.popup-welcome-close svg {
	color: #333333;
}

/* Content */
.popup-welcome-content {
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	max-height: 90vh;
}

/* Image */
.popup-welcome-image {
	width: 100%;
	overflow: hidden;
	background: #f5f5f5;
}

.popup-welcome-image img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	max-height: 400px;
}

/* Text Content */
.popup-welcome-text {
	padding: 40px 32px;
	text-align: center;
}

.popup-welcome-title {
	font-size: 28px;
	font-weight: 700;
	color: #333333;
	margin: 0 0 16px 0;
	line-height: 1.3;
}

.popup-welcome-description {
	font-size: 16px;
	color: #283583;
	margin: 0 0 32px 0;
	line-height: 1.6;
}

/* Styles pour le contenu HTML du WYSIWYG */
.popup-welcome-description p {
	margin: 0 0 12px 0;
}

.popup-welcome-description p:last-child {
	margin-bottom: 0;
}

.popup-welcome-description strong,
.popup-welcome-description b {
	font-weight: 700;
	color: #333333;
}

.popup-welcome-description em,
.popup-welcome-description i {
	font-style: italic;
}

.popup-welcome-description ul,
.popup-welcome-description ol {
	text-align: left;
	margin: 12px auto;
	padding-left: 24px;
	max-width: 500px;
}

.popup-welcome-description li {
	margin-bottom: 8px;
}

.popup-welcome-description a {
	color: #4a90e2;
	text-decoration: underline;
}

.popup-welcome-description a:hover {
	color: #357abd;
}

/* Button */
.popup-welcome-button {
	display: inline-block;
	padding: 10px 30px;
	background: #f03000;
	color: #ffffff;
	text-decoration: none;
	border-radius: 8px;
	font-size: 20px;
	font-weight: 600;
	transition: all 0.3s ease;
	border: 2px solid #f03000;
	cursor: pointer;
	font-family: inherit;
}

.popup-welcome-button:hover {
	background: #283583;
	border-color: #283583;
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.popup-welcome-button:active {
	transform: translateY(0);
}

/* Animations de fermeture */
.popup-welcome-overlay.hide {
	animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

/* Responsive */
@media (max-width: 768px) {
	.popup-welcome-container {
		width: 95%;
		border-radius: 12px;
	}

	.popup-welcome-text {
		padding: 32px 24px;
	}

	.popup-welcome-title {
		font-size: 24px;
	}

	.popup-welcome-description {
		font-size: 15px;
	}

	.popup-welcome-button {
		padding: 12px 32px;
		font-size: 15px;
	}

	.popup-welcome-image img {
		max-height: 300px;
	}
}

@media (max-width: 480px) {
	.popup-welcome-container {
		max-height: 100vh;
	}

	.popup-welcome-text {
		padding: 24px 20px;
	}

	.popup-welcome-title {
		font-size: 22px;
	}

	.popup-welcome-description {
		font-size: 14px;
		margin-bottom: 24px;
	}

	.popup-welcome-image img {
		max-height: 250px;
	}
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
	.popup-welcome-overlay,
	.popup-welcome-container,
	.popup-welcome-close,
	.popup-welcome-button {
		animation: none !important;
		transition: none !important;
	}
}

/* Focus visible pour l'accessibilité */
.popup-welcome-close:focus-visible,
.popup-welcome-button:focus-visible {
	outline: 3px solid #4a90e2;
	outline-offset: 2px;
}