/* ============================================================
   LIVE TWITCH — BADGE + SCOREBOARD + PLAYER + CHAT
   ============================================================ */

/* ============================
   BADGE DYNAMIQUE — TWITCH PRO
============================ */

.live-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--hac-radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

/* 🔴 EN DIRECT */
.live-badge.live {
    background: #ff0033;
    color: white;
    animation: pulseLive 1.2s infinite ease-in-out;
    box-shadow: 0 0 12px rgba(255,0,50,0.6);
}

/* Animation pulse uniquement en live */
@keyframes pulseLive {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

/* 🔵 Hors‑ligne */
.live-badge.offline {
    background: #1878d8;
    color: white;
    box-shadow: none;
}

/* ============================
   LIVE HEADER (H1 discret)
============================ */

.live-header {
    text-align: center;
    margin-bottom: 20px;
}

.live-title-h1 {
    font-size: 1.4rem;
    font-weight: 600;
    opacity: 0.85;
    text-align: center;
    margin-bottom: 10px;
}

/* ============================
   SCOREBOARD
============================ */

.scoreboard-pro {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--hac-radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    transition: 0.3s ease;
}

.team-side {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.team-name {
    font-size: 18px;
    font-weight: 700;
    opacity: 0.9;
    min-width: 160px;
}

.team-score {
    font-size: 42px;
    font-weight: 900;
    color: var(--hac-blue);
}

.vs {
    font-size: 24px;
    font-weight: 700;
    opacity: 0.8;
}

/* ============================
   SCOREBOARD DYNAMIQUE
============================ */

.score-update {
    animation: scorePulse 0.4s ease-in-out;
}

@keyframes scorePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.scoreboard-live {
    box-shadow: 0 0 18px rgba(255, 0, 50, 0.25);
    border-color: rgba(255, 0, 50, 0.35);
}

/* ============================
   TWITCH PLAYER + CHAT
============================ */

.twitch-layout {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* PLAYER — 16/9 */
.player-container {
    flex: 1;
    min-width: 350px;
}

.player-overlay {
    position: relative;
    border-radius: var(--hac-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    aspect-ratio: 16 / 9;
}

.twitch-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    border: none;
    border-radius: var(--hac-radius-md);
}

/* CHAT — même hauteur que le player */
.chat-container {
    flex: 1;
    min-width: 350px;
    height: 500px;
}

/* Supprimez l'aspect-ratio pour le chat afin qu'il soit libre de sa hauteur */
.chat-overlay {
    position: relative;
    border-radius: var(--hac-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    height: 100%;
}

/* Le chat occupe tout l'overlay */
.twitch-chat {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.offline-indicator {
    margin-top: 10px;
    padding: 10px;
    background: #1878d8;
    border-radius: var(--hac-radius-md);
    text-align: center;
    font-weight: 700;
}

/* ============================
   RESPONSIVE LIVE
============================ */

@media (max-width: 900px) {
    .twitch-layout {
        flex-direction: column;
    }

    /* Sur mobile, on donne une hauteur fixe suffisante pour voir le chat ET le bouton */
    .chat-overlay {
        height: 500px; 
    }
}
/* ============================================================
   STAFF — CARTES & GRID (Twitch Pro Style)
   ============================================================ */

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    margin-top: 30px;
}

.staff-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--hac-radius-lg);
    padding: 20px;
    text-align: center;
    transition: 0.25s ease;
}

.staff-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.35);
}

.staff-avatar img {
    width: 110px;
    height: 110px;
    border-radius: var(--hac-radius-lg);
    object-fit: cover;
    margin-bottom: 14px;
}

.staff-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--hac-blue);
}

.staff-role {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--hac-blue-light);
    margin-bottom: 10px;
}

.staff-card p {
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.5;
}
/* ============================================================
   YOUTUBE — GRID VIDEOS HAC PRO (séparé du LIVE)
   ============================================================ */

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 30px;
}

.youtube-card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--hac-radius-lg);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.15);
    padding: 14px;
    transition: 0.25s ease;
}

.youtube-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.35);
    border-color: rgba(56, 189, 248, 0.45);
}

.youtube-embed iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--hac-radius-md);
    border: none;
}

.youtube-title {
    margin-top: 10px;
    font-size: 15px;
    color: var(--hac-blue-light);
    text-align: center;
    font-weight: 600;
}

/* Responsive tablette */
@media (max-width: 1024px) {
    .youtube-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive mobile */
@media (max-width: 600px) {
    .youtube-grid {
        grid-template-columns: 1fr;
    }
}

/* Breadcrumb + SEO text */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--hac-blue-soft);
}

.breadcrumb a {
    color: var(--hac-blue);
    text-decoration: none;
}

.media-seo-text {
    font-size: 15px;
    color: var(--hac-blue-soft);
    margin-bottom: 20px;
    line-height: 1.6;
}
                             