/**
 * Page "Web TV" — passerelle minimale vers la WebTV externe. Fidèle à
 * claude-design-reference/WEBTV/TNT Plus France - WebTV.dc.html.
 * Page volontairement autonome (pas de header/footer du site) : réutilise
 * uniquement les tokens (variables.css) et le logo existants.
 */

.tp-webtv-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: #020302;
	color: var(--tp-white);
	position: relative;
	overflow: clip;
}

/* ---- ambiance : halos vert très sombre + trame discrète ---- */
.tp-webtv-page__ambient { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.tp-webtv-page__ambient--base {
	background:
		radial-gradient(900px 620px at 50% -12%, rgba(11, 92, 46, .26), transparent 64%),
		radial-gradient(760px 520px at 12% 108%, rgba(11, 92, 46, .14), transparent 66%),
		linear-gradient(180deg, #040604 0%, #020302 46%, #030503 100%);
}
.tp-webtv-page__ambient--halo {
	left: 50%; top: 38%; width: min(1100px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%);
	border-radius: 50%; background: radial-gradient(circle, rgba(15, 122, 61, .18), transparent 62%); filter: blur(30px);
	animation: tpWebtvBreathe 11s ease-in-out infinite;
}
.tp-webtv-page__ambient--grid {
	opacity: .5;
	background-image: linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
	background-size: 78px 78px;
	mask-image: radial-gradient(780px 520px at 50% 42%, #000 12%, transparent 76%);
	-webkit-mask-image: radial-gradient(780px 520px at 50% 42%, #000 12%, transparent 76%);
}
.tp-webtv-page__ambient--line {
	left: 0; right: 0; top: 0; height: 1px; z-index: 1;
	background: linear-gradient(90deg, transparent, rgba(31, 140, 74, .45), transparent);
	animation: tpWebtvBreathe2 9s ease-in-out infinite;
}

@keyframes tpWebtvBreathe { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes tpWebtvBreathe2 { 0%, 100% { opacity: .5; } 50% { opacity: .85; } }
@keyframes tpWebtvDot { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes tpWebtvFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---- header minimal ---- */
.tp-webtv-header {
	position: relative; z-index: 3; padding: 22px clamp(20px, 4vw, 52px);
	display: flex; align-items: center; gap: 18px;
}
.tp-webtv-header__back {
	margin-left: auto; display: inline-flex; align-items: center; gap: 9px;
	font-size: 13.5px; font-weight: 500; color: var(--tp-text-mute2);
	padding: 9px 15px; border-radius: var(--tp-radius-pill);
	border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .015);
	transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.tp-webtv-header__back:hover { color: var(--tp-text); border-color: rgba(31, 140, 74, .4); background: rgba(15, 122, 61, .1); }

/* ---- contenu central ---- */
.tp-webtv-main {
	position: relative; z-index: 3; flex: 1;
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	padding: clamp(28px, 5vh, 64px) clamp(20px, 4vw, 52px);
}

.tp-webtv-eyebrow {
	display: inline-flex; align-items: center; gap: 9px;
	font-family: var(--font-mono); font-size: 10px; letter-spacing: .24em; color: var(--tp-green-mist);
	background: rgba(15, 122, 61, .14); border: 1px solid rgba(31, 140, 74, .3); padding: 7px 14px; border-radius: var(--tp-radius-pill);
}
.tp-webtv-eyebrow__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--tp-green-400); animation: tpWebtvDot 2.6s ease-in-out infinite; }

.tp-webtv-title { font-size: clamp(30px, 5vw, 58px); line-height: 1.04; letter-spacing: -.03em; margin: 22px 0 0; max-width: 16ch; text-wrap: balance; }
.tp-webtv-lead { font-size: clamp(14.5px, 1.3vw, 16.5px); line-height: 1.65; color: var(--tp-text-muted); margin: 16px 0 0; max-width: 44ch; text-wrap: pretty; }

/* ---- bouton d'accès à la WebTV ---- */
.tp-webtv-choices {
	width: 100%; max-width: 820px; margin-top: clamp(30px, 4.4vh, 48px);
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 258px), 1fr)); gap: clamp(14px, 1.6vw, 22px);
}
.tp-webtv-choices--single { max-width: 380px; margin-left: auto; margin-right: auto; }

.tp-webtv-card {
	position: relative; display: block; text-align: left; padding: clamp(22px, 2.4vw, 30px);
	border-radius: var(--tp-radius-lg); background: #080a08; border: 1px solid rgba(255, 255, 255, .07); color: var(--tp-white);
	transition: transform .3s cubic-bezier(.2, .7, .3, 1), border-color .3s ease, background .3s ease, box-shadow .3s ease;
	cursor: pointer;
}
.tp-webtv-card:hover, .tp-webtv-card:focus-visible {
	transform: translateY(-5px); border-color: rgba(31, 140, 74, .55); background: #0a0f0b;
	box-shadow: 0 22px 52px rgba(0, 0, 0, .6), 0 0 34px rgba(15, 122, 61, .16);
}
.tp-webtv-card:focus-visible { outline: 2px solid rgba(31, 140, 74, .7); outline-offset: 3px; }
.tp-webtv-card.is-selected {
	transform: translateY(-4px); border-color: rgba(31, 140, 74, .9); background: #0c160f;
	box-shadow: 0 0 0 1px rgba(31, 140, 74, .35), 0 26px 60px rgba(6, 60, 28, .5), 0 0 46px rgba(15, 122, 61, .3);
}
.tp-webtv-card:hover .tp-webtv-card__arrow, .tp-webtv-card:focus-visible .tp-webtv-card__arrow, .tp-webtv-card.is-selected .tp-webtv-card__arrow { transform: translateX(6px); }
.tp-webtv-card[aria-disabled="true"] { cursor: default; }

.tp-webtv-card__code { display: block; font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: .02em; color: #fff; }
.tp-webtv-card__label { display: block; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--tp-white); margin-top: 26px; }
.tp-webtv-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.tp-webtv-card__note { font-size: 13.5px; color: var(--tp-text-mute2); }
.tp-webtv-card__arrow { font-size: 15px; color: var(--tp-green-300); transition: transform .3s cubic-bezier(.2, .7, .3, 1); }

/* ---- variante bouton unique (pas de badge de langue) ---- */
.tp-webtv-card--single { text-align: center; }
.tp-webtv-card--single .tp-webtv-card__label { margin-top: 0; }
.tp-webtv-card--single .tp-webtv-card__foot { justify-content: center; margin-top: 10px; }

.tp-webtv-hint { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--tp-text-mute4); margin: clamp(20px, 3vh, 30px) 0 0; }

/* ---- footer minimal ---- */
.tp-webtv-footer {
	position: relative; z-index: 3; padding: 18px clamp(20px, 4vw, 52px) 24px;
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 12px; color: var(--tp-text-mute4);
	animation: tpWebtvFadeIn 1s ease .5s both;
}
.tp-webtv-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-left: auto; }
.tp-webtv-footer__legal a { color: var(--tp-text-mute4); font-size: 12px; }
.tp-webtv-footer__legal a:hover { color: var(--tp-text-muted); }

/* ---- micro-transition avant redirection ---- */
.tp-webtv-connecting {
	position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
	background: rgba(2, 3, 2, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	animation: tpWebtvFadeIn .18s ease both;
}
.tp-webtv-connecting[hidden] { display: none; }
.tp-webtv-connecting__pill {
	display: inline-flex; align-items: center; gap: 11px;
	font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; color: #cfe3d7;
	padding: 14px 22px; border-radius: var(--tp-radius-pill); border: 1px solid rgba(31, 140, 74, .4); background: rgba(6, 12, 8, .9);
}
.tp-webtv-connecting__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tp-green-400); animation: tpWebtvDot 1s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
	.tp-webtv-page__ambient--halo, .tp-webtv-page__ambient--line, .tp-webtv-eyebrow__dot, .tp-webtv-connecting__dot, .tp-webtv-footer, .tp-webtv-connecting {
		animation: none !important;
		transition: none !important;
	}
}
