/* Télé Béziers — chaîne en continu (direct.html). Complète style.css. */
.tv { padding: 32px 0 64px; background: var(--fond-2); }
.tv-grille { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.tv-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tv-tete h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; letter-spacing: -.01em; flex: 1; }
.tv-point { width: 12px; height: 12px; border-radius: 50%; background: #e5322d; box-shadow: 0 0 0 5px rgba(229, 50, 45, .18); animation: tv-pulse 1.6s infinite; }
@keyframes tv-pulse { 50% { box-shadow: 0 0 0 9px rgba(229, 50, 45, 0); } }

.tv-ecran { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.tv-ecran:fullscreen { border-radius: 0; }
.tv-video, .tv-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-mire { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: #fff; background: radial-gradient(circle at 50% 40%, var(--roi) 0%, var(--roi-fonce) 55%, var(--encre) 100%); }
.tv-mire[hidden] { display: none; }
.tv-mire img { width: min(160px, 30%); border-radius: 20px; background: #fff; }
.tv-mire p { margin: 0; font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.3rem); }
.tv-mire .tv-mire-suivant { color: var(--ciel); font-weight: 600; font-size: clamp(.9rem, 1.8vw, 1.1rem); }
.tv-lecture { position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%; border: 0; background: rgba(28, 63, 214, .92); color: #fff; cursor: pointer; display: grid; place-items: center; }
.tv-lecture[hidden] { display: none; }
.tv-lecture svg { width: 40px; height: 40px; margin-left: 6px; }

.tv-barre-fond { height: 4px; background: var(--bord); border-radius: 4px; margin-top: 14px; overflow: hidden; }
.tv-barre { height: 100%; width: 0; background: #e5322d; transition: width 1s linear; }
.tv-infos { display: flex; gap: 16px; align-items: start; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; }
.tv-infos h2 { margin: 6px 0 2px; font-size: 1.3rem; font-weight: 800; }
.tv-infos p { margin: 0; color: var(--gris); }
.tv-infos .tv-date { margin-top: 2px; font-size: .9rem; }
.tv-badge { display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--roi); background: var(--ciel-pale); padding: 3px 10px; border-radius: 999px; }
.tv-badge-live { color: #fff; background: #e5322d; }
.tv-boutons { display: flex; gap: 8px; }
.tv-bouton { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--roi); background: #fff; color: var(--roi); font: inherit; font-weight: 700; cursor: pointer; }
.tv-bouton svg { width: 20px; height: 20px; }
#tv-son:not(.actif) { background: var(--roi); color: #fff; }

.tv-programme { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 20px; }
.tv-programme h2 { margin: 0 0 12px; font-size: 1.1rem; font-weight: 800; }
.tv-programme ol { list-style: none; margin: 0; padding: 0; }
.tv-programme li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--bord); }
.tv-programme li:first-child { border-top: 0; }
.tv-programme time { font-weight: 800; color: var(--roi); font-variant-numeric: tabular-nums; flex: none; }
.tv-programme span { flex: 1; }
.tv-live { font-size: .7rem; color: #fff; background: #e5322d; padding: 2px 6px; border-radius: 4px; }
.tv-note { font-size: .85rem; color: var(--gris); margin: 14px 0 0; }

.nav a.nav-direct::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e5322d; margin-right: 6px; vertical-align: 1px; }
.nav a.nav-direct[aria-current="page"] { background: var(--ciel-pale); color: var(--roi); }

/* Page d'accueil : bouton rouge « Voir le direct » du hero */
.btn-live { background: #e5322d; color: #fff; }
.btn-live:hover { background: #c4221d; }
.btn-live-point { width: 10px; height: 10px; border-radius: 50%; background: #fff; flex: none; animation: btn-live-pulse 1.6s infinite; }
@keyframes btn-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } }

/* Page d'accueil : panneau « Regarder en direct » (entre les chiffres et les vidéos) */
.direct-panneau { padding: 56px 0 0; }
.direct-carte { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 24px; border-radius: calc(var(--rayon) + 6px); color: #fff; background: linear-gradient(135deg, var(--encre) 0%, var(--roi-fonce) 60%, var(--roi) 100%); box-shadow: var(--ombre); }
.direct-ecran { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--rayon); overflow: hidden; background: #000; }
.direct-ecran img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.direct-ecran img.direct-logo { object-fit: contain; background: #fff; padding: 12%; }
.direct-ecran:hover img { transform: scale(1.03); }
.direct-badge { position: absolute; top: 12px; left: 12px; background: #e5322d; color: #fff; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; animation: direct-clignote 2s infinite; }
@keyframes direct-clignote { 50% { opacity: .75; } }
.direct-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(28, 63, 214, .9); box-shadow: 0 0 0 8px rgba(255, 255, 255, .25); transition: transform .2s; }
.direct-play::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.direct-ecran:hover .direct-play { transform: scale(1.08); }
.direct-barre { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .25); }
.direct-barre span { display: block; height: 100%; width: 0; background: #e5322d; transition: width 1s linear; }
.direct-texte h2 { margin: 6px 0 10px; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; letter-spacing: -.01em; }
.direct-courant { margin: 0 0 16px; color: #d6e2ff; }
.direct-courant strong { display: block; color: #fff; font-size: 1.15rem; }
.direct-suivants { list-style: none; margin: 0 0 22px; padding: 0; font-size: .95rem; }
.direct-suivants li { display: flex; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.direct-suivants time { font-weight: 800; color: var(--ciel); font-variant-numeric: tabular-nums; flex: none; }
.direct-suivants span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.direct-suivants small { margin-left: auto; padding-left: 8px; flex: none; color: #aebfe6; font-size: .85rem; }
.direct-date { color: #aebfe6; }
.direct-texte .btn-primary { background: #fff; color: var(--roi); }
.direct-texte .btn-primary:hover { background: var(--ciel-pale); }

@media (max-width: 900px) {
  .tv-grille { grid-template-columns: 1fr; }
  .direct-carte { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
  .direct-panneau { padding-top: 40px; }
}
