/* Koeurplay – mode app et invitation à installer. */

/* En mode app : seul l'espace replays, sans l'en-tête ni le pied de page du site. */
html.kr-mode-app,
html.kr-mode-app body { background: #020418 !important; }
html.kr-mode-app #top-header,
html.kr-mode-app #main-header,
html.kr-mode-app .et-l--header,
html.kr-mode-app #main-footer,
html.kr-mode-app .et-l--footer,
html.kr-mode-app #wpadminbar { display: none !important; }
html.kr-mode-app #page-container { padding-top: 0 !important; margin-top: 0 !important; }
html.kr-mode-app { margin-top: 0 !important; -webkit-tap-highlight-color: transparent; }
@media (display-mode: standalone) {
	html { overscroll-behavior-y: none; }
}

/* Invitation dans l'espace ou sur la page de connexion */
.kr-app-invitation {
	background: #19213A;
	border: 1px solid #2F3B5A;
	border-radius: 16px;
	padding: 14px 16px;
	color: #F3EFE9;
	font-size: 15px;
	line-height: 1.45;
	text-align: left;
	margin: 0;
}
.kr-carte-connexion .kr-app-invitation { margin-top: 22px; }
.kr-app-invitation-haut { display: flex; gap: 12px; align-items: center; }
.kr-app-invitation-haut img { width: 40px; height: 40px; border-radius: 24%; flex: none; }
.kr-app-invitation-haut p { margin: 0; padding: 0; color: #F3EFE9; }
.kr-app-invitation-actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.kr-app-installer {
	flex: 1;
	background: #F99D5B;
	color: #020418;
	border: 0;
	border-radius: 999px;
	min-height: 44px;
	padding: 10px 18px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.kr-app-plus-tard {
	background: none;
	border: 0;
	color: #B9C3D0;
	font: inherit;
	font-size: 14px;
	min-height: 44px;
	padding: 0 8px;
	cursor: pointer;
}

/* Feuille « comment installer » */
.kr-app-feuille-fond {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(10, 14, 28, .62);
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
.kr-app-feuille {
	width: 100%;
	max-width: 520px;
	background: #F3EEE8;
	color: #1F2840;
	border-radius: 22px 22px 0 0;
	padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
	box-sizing: border-box;
	font-family: "KR Questrial", "Century Gothic", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.45;
}
.kr-app-feuille-titre {
	font-family: "KR Josefin", "Century Gothic", sans-serif;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-size: 14px;
	margin: 0 0 16px;
	padding: 0;
}
.kr-app-feuille ol { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: etape; }
.kr-app-feuille li { counter-increment: etape; display: block; position: relative; min-height: 28px; margin: 0 0 14px; padding: 3px 0 0 40px; }
.kr-app-feuille li::before {
	content: counter(etape);
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #1F2840;
	color: #F3EEE8;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 14px;
	position: absolute;
	left: 0;
	top: 0;
}
.kr-app-feuille-note { font-size: 13.5px; color: #4F4B46; margin: 0 0 16px; padding: 0; }
.kr-app-feuille .kr-app-installer { width: 100%; background: #1F2840; color: #F3EEE8; }

/* Sur ordinateur : la feuille au centre de l'écran, et l'invitation plus étroite */
.kr-app-bureau { align-items: center; padding: 24px; }
.kr-app-bureau .kr-app-feuille { border-radius: 22px; max-width: 460px; padding: 26px; }
.kr-espace .kr-app-invitation { max-width: 560px; }

@media (prefers-reduced-motion: no-preference) {
	.kr-app-feuille { animation: kr-app-monte .35s ease-out both; }
}
@keyframes kr-app-monte { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
