/* ============================================================
   Trait-d'union — page émission, style plateforme vidéo
   ============================================================ */

:root {
  --tu-bg: #0c0612;
  --tu-surface: #1a1026;
  --tu-violet: #a855f7;
  --tu-magenta: #d946a0;
  --tu-text: #f5f0fa;
  --tu-muted: #b29ec7;
  --font-display: "Anton", Impact, sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--tu-bg);
  color: var(--tu-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Barre supérieure ---------- */
.tu-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(12, 6, 18, 0.9), rgba(12, 6, 18, 0));
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.tu-nav--solid {
  background: rgba(12, 6, 18, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.tu-nav__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--tu-text);
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.9);
}
.tu-nav__back {
  margin-left: auto;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--tu-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tu-nav__back img { height: 22px; }
.tu-nav__back:hover { color: var(--tu-text); }

/* ---------- Hero : mur de vignettes ---------- */
.tu-hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.tu-wall {
  position: absolute;
  inset: -12%;
  transform: perspective(900px) rotateX(16deg) rotateZ(-4deg) scale(1.18);
  transform-origin: center 30%;
}
.tu-wall__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  animation: wall-pan 60s linear infinite alternate;
}
.tu-wall__grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0.85;
}
@keyframes wall-pan {
  from { transform: translateY(0); }
  to   { transform: translateY(-12%); }
}
.tu-hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(75% 65% at 50% 45%, rgba(12, 6, 18, 0.55), rgba(12, 6, 18, 0.92) 78%),
    linear-gradient(rgba(30, 10, 50, 0.45), rgba(30, 10, 50, 0.45));
}
.tu-hero__fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 18vh;
  background: linear-gradient(to bottom, transparent, var(--tu-bg));
}
.tu-hero__inner {
  position: relative;
  text-align: center;
  padding: 6rem clamp(1rem, 4vw, 3rem) 4rem;
  max-width: 880px;
  z-index: 2;
}
.tu-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  animation: neon-pulse 3.2s ease-in-out infinite;
}
.tu-hero__title span { color: var(--tu-violet); }
@keyframes neon-pulse {
  0%, 100% { text-shadow: 0 0 14px rgba(168, 85, 247, 0.8), 0 0 48px rgba(168, 85, 247, 0.45); }
  50%      { text-shadow: 0 0 26px rgba(217, 70, 160, 0.95), 0 0 90px rgba(168, 85, 247, 0.7); }
}
.tu-hero__tagline {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 700;
  margin: 1.4rem 0 0.5rem;
}
.tu-hero__sub { color: var(--tu-muted); margin-bottom: 1.8rem; }
.tu-hero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; }

.tu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.tu-btn--play { background: #fff; color: #0c0612; }
.tu-btn--play:hover { transform: scale(1.05); box-shadow: 0 0 34px rgba(255, 255, 255, 0.35); }
.tu-btn--sub { background: rgba(168, 85, 247, 0.25); color: #fff; border: 2px solid var(--tu-violet); }
.tu-btn--sub:hover { background: rgba(168, 85, 247, 0.45); }
.tu-btn--info { background: rgba(255, 255, 255, 0.18); color: #fff; backdrop-filter: blur(6px); }
.tu-btn--info:hover { background: rgba(255, 255, 255, 0.3); }
.tu-ico { flex: 0 0 auto; display: block; }

.tu-badge {
  background: var(--tu-violet);
  color: #fff;
  padding: 0.12rem 0.55rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tu-badge--new { background: #e50914; }

/* ---------- Billboard dernier épisode ---------- */
.tu-billboard {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: center;
  margin: 1.5rem clamp(1rem, 4vw, 3rem);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(78deg, rgba(12, 6, 18, 0.96) 32%, rgba(12, 6, 18, 0.25) 70%, rgba(12, 6, 18, 0.05)), var(--bb) right center / cover no-repeat;
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}
.tu-billboard__content {
  max-width: 560px;
  padding: clamp(2rem, 5vw, 3.5rem);
}
.tu-billboard__badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--tu-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.tu-billboard__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.12;
  margin-bottom: 1rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8);
}
.tu-billboard__desc { color: rgba(245, 240, 250, 0.88); margin-bottom: 1.6rem; max-width: 48ch; }
.tu-billboard .tu-hero__cta { justify-content: flex-start; }

/* ---------- Rangées ---------- */
.tu-row { padding: 1.6rem 0 0.4rem; }
.tu-row__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.4rem;
  margin: 0 clamp(1rem, 4vw, 3rem) 0.9rem;
}
.tu-row__title span { color: var(--tu-violet); }
.tu-row__wrap { position: relative; }
.tu-row__scroller {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding: 0.6rem clamp(1rem, 4vw, 3rem) 1.6rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.tu-row__scroller::-webkit-scrollbar { display: none; }

.tu-arrow {
  position: absolute;
  top: 0;
  bottom: 1rem;
  width: 52px;
  z-index: 5;
  border: none;
  cursor: pointer;
  font-size: 2.6rem;
  color: #fff;
  background: linear-gradient(to right, rgba(12, 6, 18, 0.85), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tu-arrow--left { left: 0; }
.tu-arrow--right { right: 0; background: linear-gradient(to left, rgba(12, 6, 18, 0.85), transparent); }
.tu-row__wrap:hover .tu-arrow, .tu-arrow:focus-visible { opacity: 1; }
.tu-arrow:hover { color: var(--tu-violet); }

/* ---------- Cartes épisode ---------- */
.tu-card {
  flex: 0 0 min(330px, 76vw);
  scroll-snap-align: start;
  position: relative;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  background: var(--tu-surface);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1.2), box-shadow 0.25s ease;
}
.tu-card:hover {
  transform: scale(1.07);
  box-shadow: 0 10px 50px rgba(168, 85, 247, 0.5);
  z-index: 3;
}
.tu-card__thumb { aspect-ratio: 16 / 9; overflow: hidden; }
.tu-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tu-card:hover .tu-card__thumb img { transform: scale(1.08); }
.tu-card__info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 0.9rem 0.8rem;
  background: linear-gradient(to top, rgba(8, 4, 12, 0.95) 40%, transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.tu-card:hover .tu-card__info { opacity: 1; transform: translateY(0); }
.tu-card__info h3 { font-size: 0.95rem; line-height: 1.3; margin-bottom: 0.35rem; }
.tu-card__info p { font-size: 0.75rem; color: var(--tu-muted); display: flex; gap: 0.5rem; align-items: center; }

/* ---------- Top 5 ---------- */
.tu-row__scroller--top { gap: 0; padding-left: clamp(0.4rem, 2vw, 1.6rem); }
.tu-top {
  flex: 0 0 min(340px, 80vw);
  scroll-snap-align: start;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  position: relative;
  padding-left: clamp(3.4rem, 8vw, 5rem);
  transition: transform 0.25s ease;
}
.tu-top:hover { transform: scale(1.05); z-index: 3; }
.tu-top__rank {
  position: absolute;
  left: 0;
  bottom: -1.2rem;
  font-family: var(--font-display);
  font-size: clamp(7rem, 16vw, 11rem);
  line-height: 1;
  color: var(--tu-bg);
  -webkit-text-stroke: 4px var(--tu-violet);
  text-stroke: 4px var(--tu-violet);
  z-index: 2;
  text-shadow: 0 0 40px rgba(168, 85, 247, 0.35);
}
.tu-top__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.tu-top__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Bandeau abonnement ---------- */
.tu-sub {
  margin: 3.5rem clamp(1rem, 4vw, 3rem);
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: 14px;
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(168, 85, 247, 0.35), transparent 70%),
    var(--tu-surface);
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.tu-sub h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 0.7rem;
}
.tu-sub p { color: var(--tu-muted); max-width: 60ch; margin: 0 auto 1.5rem; }

/* ---------- Apparition au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal--visible { opacity: 1; transform: none; }

/* ---------- Pied de page ---------- */
.tu-footer {
  padding: 2.5rem clamp(1rem, 4vw, 3rem) 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--tu-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.tu-footer a { color: var(--tu-text); font-weight: 600; text-decoration: none; }
.tu-footer a:hover { text-decoration: underline; }
.tu-footer__flag { height: 30px; }

/* ---------- Responsive & accessibilité ---------- */
@media (max-width: 700px) {
  .tu-hero { min-height: 78vh; }
  .tu-billboard { min-height: 56vh; background-position: 72% center; }
  .tu-card__info { opacity: 1; transform: none; }
  .tu-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tu-wall__grid, .tu-hero__title { animation: none; }
  .tu-card, .tu-top, .tu-btn { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
