html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    background: #02030a;
    overflow: hidden;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #f7f8ff;
}

* {
    box-sizing: border-box;
}

.home-screen {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 56, 92, 0.18), transparent 28rem),
        radial-gradient(circle at 80% 20%, rgba(78, 132, 255, 0.20), transparent 30rem),
        linear-gradient(135deg, #06070d 0%, #101624 55%, #030409 100%);
}

.start-card {
    width: min(92vw, 620px);
    padding: 42px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 34px;
    background: rgba(15, 20, 33, 0.78);
    box-shadow: 0 32px 90px rgba(0,0,0,0.55);
    backdrop-filter: blur(20px);
    text-align: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: #ffb703;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    font-weight: 900;
}

h1 {
    margin: 0;
    font-size: clamp(3.2rem, 10vw, 7rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
}

.subtitle {
    margin: 18px 0 28px;
    color: #a9b3c4;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.start-btn {
    border: 0;
    border-radius: 999px;
    padding: 18px 30px;
    color: white;
    background: linear-gradient(135deg, #ff385c, #ff7a18);
    font-weight: 900;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(255, 56, 92, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(255, 56, 92, 0.38);
}

.status-text {
    min-height: 1.4em;
    margin: 18px 0 0;
    color: #a9b3c4;
}

.home-logo {
    position: fixed;
    right: clamp(18px, 3vw, 44px);
    bottom: clamp(18px, 3vw, 44px);
    width: clamp(90px, 13vw, 190px);
    height: auto;
    opacity: 0.86;
    filter: drop-shadow(0 20px 45px rgba(0,0,0,0.55));
    pointer-events: none;
}

.tv-layout {
    position: fixed;
    inset: 0;
    display: none;
    background: #000;
}

.tv-layout.active {
    display: block;
}

#video {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: #000;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    background: rgba(0,0,0,0.66);
    color: white;
    font-weight: 800;
    z-index: 5;
}

.loading-overlay.hidden {
    display: none;
}

.spinner {
    width: 54px;
    height: 54px;
    border: 5px solid rgba(255,255,255,0.18);
    border-top-color: #ff385c;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.top-info {
    position: fixed;
    left: 20px;
    top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 6;
    opacity: 0.48;
}

.top-info span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10, 13, 22, 0.38);
    border: 1px solid rgba(255,255,255,0.12);
    color: #f7f8ff;
    font-size: 0.9rem;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.exit-btn {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 7;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    color: white;
    background: rgba(10, 13, 22, 0.32);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

@media (max-width: 760px) {
    .start-card {
        padding: 30px 20px;
    }

    .top-info {
        left: 12px;
        right: 64px;
        top: 12px;
    }

    .exit-btn {
        right: 12px;
        top: 12px;
    }
}

.back-site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;

    margin-top: 1rem;
    padding: 0.8rem 1.4rem;

    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);

    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;

    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.back-site-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.back-site-btn:active {
    transform: translateY(0);
}

.back-site-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.55);
    outline-offset: 4px;
}

/* ===== BANDEAU TV DYNAMIQUE ===== */

.tv-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0%;
  z-index: 15;
  display: none;
  align-items: center;
  height: 34px;
  background: linear-gradient(
  to right,
  rgba(2, 6, 23, 0.55),
  rgba(2, 6, 23, 0.35)
);
  border-top: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  overflow: hidden;
  pointer-events: none;
}

.tv-ticker.visible {
  display: flex;
}

.tv-ticker-label {
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(239, 68, 68, 0.72);
  color: white;
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 9px;
}

.tv-ticker-text {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.tv-ticker-text span {
    display: block;
    padding: 0 22px;

    color: white;
    font-size: clamp(14px, 2vw, 24px);
    font-weight: 800;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    opacity: 1;
    transition: opacity 0.35s ease;
}

.tv-ticker-text span.changing {
    opacity: 0;
}

.tv-ticker-full {
  bottom: 7%;
  height: 58px;
}

.tv-ticker-full .tv-ticker-text span {
  font-size: clamp(18px, 2.2vw, 30px);
}

@media (max-width: 760px) {
  .tv-ticker {
    height: 36px;
    bottom: 6%;
  }

  .tv-ticker-label {
    padding: 0 10px;
    font-size: 10px;
  }
}

.video-overlay-content .tv-ticker {
  bottom: 0;
  height: 42px;
  z-index: 20;
}

.video-overlay-content .tv-ticker-text span {
  font-size: clamp(14px, 1.8vw, 22px);
}

.tv-ticker.force-hidden {
    display: none !important;
}
