/* TP Calendrier — mode application (PWA) : bouton, bannière, fenêtre d'aide.
   Chargé sur tout le site quand le mode application est activé. */

.tp-pwa-install-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: #0284c7;
	color: #fff;
	font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 6px 16px rgba(2, 132, 199, .3);
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
}
.tp-pwa-install-btn:hover { background: #0369a1; color: #fff; }
.tp-pwa-install-btn[hidden] { display: none !important; }

/* Bannière bas d'écran (smartphone) */
.tp-pwa-banner {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	z-index: 99998;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 520px;
	margin: 0 auto;
	padding: 12px 12px 12px 14px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(11, 42, 69, .28);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	animation: tp-pwa-up .35s ease;
}
@keyframes tp-pwa-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.tp-pwa-banner img { flex-shrink: 0; width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.tp-pwa-banner-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.tp-pwa-banner-text strong { font-size: 14px; color: #0b2a45; }
.tp-pwa-banner-text span { font-size: 12.5px; color: #64748b; }
.tp-pwa-banner-install {
	flex-shrink: 0;
	margin: 0;
	padding: 9px 16px;
	border: 0;
	border-radius: 999px;
	background: #0284c7;
	color: #fff;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}
.tp-pwa-banner-close {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #64748b;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

/* Fenêtre d'aide (iPhone, autres navigateurs) */
.tp-pwa-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 16px;
	background: rgba(8, 24, 40, .55);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (min-width: 600px) { .tp-pwa-modal { align-items: center; } }
.tp-pwa-modal-box {
	position: relative;
	width: 100%;
	max-width: 420px;
	padding: 26px 22px 22px;
	border-radius: 22px;
	background: #fff;
	color: #1e293b;
	text-align: center;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	animation: tp-pwa-up .3s ease;
}
.tp-pwa-modal-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.tp-pwa-modal-box h3 { margin: 12px 0 10px; font-size: 19px; color: #0b2a45; }
.tp-pwa-modal-box p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #475569; }
.tp-pwa-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #475569;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.tp-pwa-steps { margin: 6px 0 0; padding: 0; list-style: none; text-align: left; }
.tp-pwa-steps li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 10px 0;
	border-top: 1px solid #eef2f7;
	font-size: 14.5px;
	line-height: 1.4;
	color: #1e293b;
}
.tp-pwa-steps li:first-child { border-top: 0; }
.tp-pwa-steps li::before { content: none; }
.tp-pwa-step-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #e0f2fe;
	color: #0284c7;
	font-weight: 700;
}
