/* Partie IFrame */
.twitch .twitch-video, .twitch #offline-banner {
    padding-top: 56.25%;
    position: relative;
    height: 0;
}

.twitch .twitch-video iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
}

.twitch .twitch-chat {
    height: 400px;
}

.twitch .twitch-chat iframe {
    width: 100%;
    height: 100%;
}

#offline-banner {
    background-image: url('/images/static/offline_banner.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    position: relative;
}

#twitch-video {
    display: none;
}

.livestream-box {
    bottom: 15px;
    left: 15px;
    width: 190px;
    height: 70px;
    background-color: var(--terciary-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    z-index: 10;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

@media screen and (min-width: 1200px) {
    .twitch {
        position: relative;
        width: 80%;
        margin: 0 auto;
    }

    .twitch .twitch-video, .twitch #offline-banner {
        width: 75% !important;
        padding-top: 42.1875%;
    }

    .twitch .twitch-chat {
        width: 25%;
        height: auto;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
    }
}

@media (max-width: 1200px) {
    .twitch-chat {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .twitch .twitch-video, .twitch #offline-banner {
        width: 100% !important;
        padding-top: 42.1875%;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .custom-card {
        height: 420px !important;
    }
    .twitch .twitch-video, .twitch #offline-banner {
        width: 100% !important;
        padding-top: 60%;
    }
}

@media (max-width: 540px) {
    .custom-card {
        height: 450px !important;
    }

    .livestream-box {
        width: 150px !important;
        height: 40px !important;
    }

    .livestream-info p {
        font-size: x-small !important;
    }
}

@media (max-width: 450px) {
    .custom-card {
        height: 520px !important;
    }
}

/* Styles carte double face */
.custom-card {
    height: 520px;
    border-radius: 12px;
    box-shadow: 0 4px 8px 0 var(--terciary-color), 0 6px 20px 0 var(--terciary-color);
}

.fa-check {
    color: var(--primary-color) !important;
}

.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card-front, .flip-card-back {
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.toggle-icon {
    margin-left: 10px;
    bottom: 10px; 
    right: 10px;
    transition: transform 0.3s ease;
    color: var(--text-color);
    cursor: pointer;
}

.opacity-0 {
    opacity: 0;
}