/* ================= FULLSCREEN TELEVISION ================= */


.television-support {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'VT323', monospace !important;
    color: white;
    width: 100%;
    height: 90vh;
    overflow: hidden;          /* empêche le scroll */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}



/* ---------------- CONTENT ---------------- */
.television-support .content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* premier enfant collé en bas */
    align-items: center;
    width: 60%;
    height: 100vh;             /* prend toute la hauteur de la fenêtre */
    padding-top: 100px;
    padding-bottom: 20px;
    margin: 0 20%;
    box-sizing: border-box;
    font-family: sans-serif !important;
}

/* tous les enfants sauf le premier */
.television-support .content > div:nth-child(n+2) {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* contenu en haut */
    align-items: center;
    width: 100%;
    max-height: 100%;            /* ne dépasse pas le parent */
    overflow-y: auto;            /* scroll si nécessaire */
    overflow-x: hidden;
    scroll-behavior: smooth;
}


.television-support .content .bottom-align {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* aligne le contenu en bas */
    align-items: center;
}

/* ---------------- HIDE EXTRA CHANNELS ---------------- */
.television-support .hide_when_loaded_channel {
    display: none;
}

/* ---------------- VIDEO ---------------- */
.television-support .video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.television-support .background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: black;
    z-index: -2;
    transition: filter 0.5s ease, transform 0.5s ease;
}

.television-support .blur {
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(1.05);
}

.television-support .background-blur {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ---------------- MAIN BOX ---------------- */
.television-support .main-box {
    position: absolute;
    left: 15%;
    right: 15%;
    width: auto;
    height: 100vh;
    object-fit: contain;
    z-index: -1;
}

@media (max-width: 1000px) {
    .television-support .main-box {
        left: 0;
        right: 0;
        width: 100vw;
    }
}

/* ---------------- CHANNEL INFO ---------------- */
.television-support .ch {
    font-size: 90%;
    position: fixed;
    width: 40%;
    font-family: 'VT323', monospace;
    letter-spacing: -0.05em;
    font-weight: bold;
    font-style: italic;
    color: rgba(255, 255, 255, 0.63);
}

.television-support .ch_bottom_left {
    text-align: left;
    bottom: 10%;
    left: 20%;
}

.television-support .ch_top_left {
    text-align: left;
    top: 5%;
    left: 20%;
}

.television-support .ch_bottom_right {
    text-align: right;
    bottom: 10%;
    right: 20%;
}

.television-support .ch_top_right {
    text-align: right;
    top: 5%;
    right: 20%;
}

@media (max-width: 1000px) {
    .television-support .ch_bottom_left,
    .television-support .ch_top_left {
        left: 5%;
    }

    .television-support .ch_bottom_right,
    .television-support .ch_top_right {
        right: 5%;
    }
}

/* ---------------- OVERLAY ---------------- */
.television-support .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: -1;
    filter: blur(10px) brightness(1);
}

/* ---------------- LOGO ---------------- */
.television-support .logo {
    position: fixed;
    width: 20%;
    height: auto;
    top: 25%;
    left: auto;
    z-index: 1;
}

/* ---------------- LINKS ---------------- */
.television-support  .links {
    padding-top: 20px;
    margin: 10px;
display: flex; /* Utilise le modèle flexbox */
justify-content: center; /* Centre les éléments horizontalement */
align-items: center; /* Centre verticalement les éléments */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.television-support  .links a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight: bold;
    position: relative;
    margin: 0 10px;
    transition: color 0.3s, font-size 0.3s, transform 0.3s;
}

/* Lien survolé */
.television-support  .links a:hover {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-style: italic;
    font-size: 110%;
    transform: scale(1.2);
}

.television-support  .links a::before {
    content: "";
    position: absolute;
  top: -10px; /* Ajuste pour agrandir la zone de détection */
    left: -10px;
    right: -10px;
    bottom: -10px;
  z-index: -1; /* Permet au pseudo-élément de rester derrière */
}

/* Appliquer l'animation de tremblement à tous les autres liens lorsque l'un d'eux est survolé */
.television-support  .links:hover a {
    animation: tremble 0.3s infinite; /* Appliquer le tremblement à tous les liens */
}

.television-support  .links a:hover {
    animation: none; /* Pas d'animation pour le lien survolé */
}

.television-support .separator {
    color: #fff;
    font-weight: bold;
    margin: 0 10px;
}

@keyframes tremble {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
    100% { transform: rotate(0deg); }
}
/* ---------------- BOTTOM LEFT RECTANGLE ---------------- */
.television-support .bottom-left-rectangle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    z-index: 3;
}

/* ---------------- FONTS ---------------- */
@font-face {
    font-family: 'Nokian';
    src: url('../font/Nokian.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'VT323';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../font/VT323.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
