#wscourse-popup {
	width: 90vw;
	max-width: 900px;
	height: 85vh;
	padding: 0;
	border: none;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	position: relative;
}

#wscourse-popup::backdrop {
	background: rgba(0, 0, 0, 0.6);
}

#wscourse-popup .wscourse-popup-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 6px 10px;
	background: #f4f4f4;
	border-bottom: 1px solid #ddd;
}

#wscourse-popup .wscourse-popup-title {
	font-weight: bold;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#wscourse-popup .wscourse-popup-close {
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #555;
	padding: 4px 8px;
}

#wscourse-popup .wscourse-popup-close:hover {
	color: #000;
}

#wscourse-popup .wscourse-popup-body {
	width: 100%;
	height: calc(100% - 37px);
}

#wscourse-popup iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

#wscourse-popup .wscourse-popup-loading {
	position: absolute;
	top: 37px;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
}

#wscourse-popup .wscourse-popup-spinner {
	width: 42px;
	height: 42px;
	border: 4px solid #E7E8E8;
	border-top-color: #f8e642;
	border-radius: 50%;
	animation: wscourse-popup-spin 0.8s linear infinite;
}

@keyframes wscourse-popup-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Titre aligne sur l'ancien site : grand, graisse normale, fond blanc, trait fin dessous. */
#wscourse-popup .wscourse-popup-header {
padding: 14px 16px 10px;
background: #fff;
height: 60px;
box-sizing: border-box;
}

#wscourse-popup .wscourse-popup-title {
font-family: "Helvetica Neue", Helvetica, Arial, Verdana, sans-serif;
font-size: 24px;
font-weight: 400;
line-height: 1.2;
color: #444;
}

#wscourse-popup .wscourse-popup-body {
height: calc(100% - 60px);
}

#wscourse-popup .wscourse-popup-loading {
top: 60px;
}

/* Centrage dans l'ecran visible : position relative devenait absolute (couche superieure) et
la fenetre se calait sur le haut de la page. fixed garde aussi le repere pour le spinner. */
#wscourse-popup {
position: fixed;
}
