/* =====================================================
   LIVE PAGE — FINAL CLEAN VERSION (live_2.html)
   ===================================================== */

/* -------------------------
   Header
-------------------------- */

.live-page-header {
    padding: 8rem 0 4rem;
    text-align: center;
}

.live-header-content {
    max-width: 42rem;
    margin: 0 auto;
}

.live-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    border: 1px solid hsl(0, 72%, 51%, 0.35);
    background: hsl(0, 72%, 51%, 0.12);
    margin-bottom: 1.5rem;
}

.live-badge-large span:last-child {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--destructive);
}

.page-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 3.1rem;
    }
}

.page-desc {
    font-size: 1.1rem;
    color: var(--muted-foreground);
}


/* -------------------------
   Main layout
-------------------------- */

.live-stream-section {
    padding: 0 0 6rem;
}

.stream-wrapper {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .stream-wrapper {
        grid-template-columns: 2fr 1fr;
    }
}


/* -------------------------
   Stream container
-------------------------- */

.stream-main {
    border-radius: 1.25rem;
    overflow: hidden;
}

.stream-embed {
    aspect-ratio: 16 / 9;
    background: var(--secondary);
    position: relative;
}

.stream-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.stream-overlay-top {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.live-indicator-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    background: hsl(0, 72%, 51%, 0.18);
}

.live-indicator-large span:last-child {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--destructive);
}


/* -------------------------
   Info cards (RIGHT COLUMN)
-------------------------- */

.stream-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stream-stat-card {
    padding: 1.5rem 1.75rem;
    border-radius: 1rem;
}

.stat-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-icon {
    width: 20px;
    height: 20px;
    color: var(--gold);
    margin-top: 2px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f9fafb;
    line-height: 1.3;
}

.stat-divider {
    width: 32px;
    height: 2px;
    background: rgba(255, 215, 0, 0.35);
    margin: 6px 0 8px;
    border-radius: 2px;
}

.stat-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
}

/* =====================================================
   LIVE — FIX: colonne droite (cards) = variables globales
   - plus de couleurs hardcodées
   - correction du sélecteur stream-stats
   ===================================================== */

/* IMPORTANT: c'était "stream-stats" (sans .) => bug */
.stream-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Icônes: utilise la couleur du thème */
.stat-icon {
    color: var(--primary);
}

/* Titres: foreground */
.stat-title {
    color: var(--foreground);
}

/* Texte normal: muted-foreground (règle globale du site) */
.stat-desc {
    color: var(--muted-foreground);
}

/* Petit séparateur: version “theme-friendly” */
.stat-divider {
    background: color-mix(in oklab, var(--primary) 40%, transparent);
}

/* Fallback si color-mix n'est pas supporté */
@supports not (background: color-mix(in oklab, white, black)) {
    .stat-divider {
        background: rgba(255, 215, 0, 0.35);
    }
}

/* -------------------------
   Responsive
-------------------------- */

@media (max-width: 900px) {
    .stream-wrapper {
        grid-template-columns: 1fr;
    }

    .stream-stats {
        margin-top: 1.5rem;
    }
}