/* ============================================================
   EASY ACADEMY — SALLE DE DIRECT & RÉGIE (Phase 15)
   Complète live-experts.css : styles propres au visionnage d'un
   direct intégré (YouTube/TikTok) et à la régie de l'intervenant.
   ============================================================ */

.ea-liveroom-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(900px 500px at 10% -10%, rgba(30, 94, 255, .22), transparent 60%),
        radial-gradient(700px 460px at 100% 0%, rgba(229, 72, 77, .16), transparent 60%),
        #06122A;
    color: #E8EEF9;
    display: flex;
    flex-direction: column;
}

.ea-liveroom-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px clamp(12px, 3vw, 26px);
    background: rgba(6, 15, 34, .82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    position: sticky;
    top: 0;
    z-index: 30;
}

.ea-liveroom-title {
    font-weight: 600;
    color: rgba(255, 255, 255, .72);
    font-size: .95rem;
    min-width: 0;
    flex: 1 1 auto;
}

.ea-liveroom-exit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: .16s ease;
}

.ea-liveroom-exit:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.ea-liveroom-main { flex: 1 1 auto; }

.ea-liveroom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 1560px;
    margin: 0 auto;
    padding: clamp(14px, 2.4vw, 26px);
}

.ea-liveroom.has-chat {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
}

@media (max-width: 1100px) {
    .ea-liveroom.has-chat { grid-template-columns: minmax(0, 1fr); }
}

.ea-liveroom-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06);
}

.ea-liveroom-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ea-liveroom-stage:fullscreen {
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.ea-liveroom-stage:fullscreen .ea-liveroom-bar,
.ea-liveroom-stage:fullscreen .ea-liveroom-meta { display: none; }

.ea-liveroom-stage:fullscreen .ea-liveroom-frame { border-radius: 0; box-shadow: none; }

.ea-liveroom-tiktok {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    background: linear-gradient(150deg, #10101a, #1c1430);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.ea-liveroom-tiktok .glow {
    position: absolute;
    inset: -40% 30% auto -30%;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 244, 238, .3), transparent 62%);
    pointer-events: none;
}

.ea-liveroom-tiktok > i {
    font-size: 3rem;
    color: #25F4EE;
    margin-bottom: 14px;
    filter: drop-shadow(2px 2px 0 #FE2C55);
    position: relative;
}

.ea-liveroom-tiktok h2 { font-weight: 800; font-size: 1.4rem; margin-bottom: 8px; position: relative; }
.ea-liveroom-tiktok p { color: rgba(255, 255, 255, .68); max-width: 44ch; margin: 0 0 20px; position: relative; }

.ea-liveroom-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
}

.ea-liveroom-live { display: inline-flex; align-items: center; gap: 12px; }

.ea-liveroom-watchers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .84rem;
    color: rgba(255, 255, 255, .72);
    font-weight: 600;
}

.ea-liveroom-watchers i { color: #E5484D; }

.ea-liveroom-host { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.ea-liveroom-host .who { min-width: 0; line-height: 1.25; }
.ea-liveroom-host .who strong { display: block; color: #fff; font-size: .9rem; }
.ea-liveroom-host .who span {
    font-size: .78rem;
    color: rgba(255, 255, 255, .58);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.ea-liveroom-actions { margin-inline-start: auto; display: flex; gap: 8px; }

.ea-liveroom-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    transition: .16s ease;
}

.ea-liveroom-btn:hover { background: rgba(255, 255, 255, .18); }

.ea-liveroom-meta { margin-top: 16px; }
.ea-liveroom-meta h1 {
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 8px;
    color: #fff;
}
.ea-liveroom-meta p { color: rgba(255, 255, 255, .68); max-width: 80ch; line-height: 1.65; margin: 0; }

.ea-liveroom-side {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: min(78vh, 720px);
}

.ea-liveroom.has-chat .ea-liveroom-side { position: sticky; top: 84px; }

.ea-liveroom-side-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: .9rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    flex-shrink: 0;
}

.ea-liveroom-side-head i { color: var(--ea-gold-light); }

.ea-liveroom-chat { flex: 1 1 auto; background: #fff; }
.ea-liveroom-chat iframe { width: 100%; height: 100%; border: 0; display: block; }

.ea-liveroom-side-body { padding: 18px; overflow-y: auto; }
.ea-liveroom-desc { color: rgba(255, 255, 255, .74); font-size: .9rem; line-height: 1.7; }
.ea-liveroom-side-body h3 {
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    font-weight: 800;
    margin: 18px 0 10px;
}

.ea-liveroom-agenda { list-style: none; margin: 0; padding: 0; }
.ea-liveroom-agenda li {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: .88rem;
    color: rgba(255, 255, 255, .82);
}
.ea-liveroom-agenda li:last-child { border-bottom: 0; }
.ea-liveroom-agenda .t { color: var(--ea-gold-light); font-weight: 700; flex-shrink: 0; }

.ea-liveroom-hostbar {
    position: sticky;
    bottom: 0;
    z-index: 25;
    background: rgba(6, 15, 34, .92);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(233, 168, 32, .3);
}

.ea-liveroom-hostbar-inner {
    max-width: 1560px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px clamp(14px, 2.4vw, 26px);
}

.ea-liveroom-hostbar .badge-host {
    display: inline-flex;
    align-items: center;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(233, 168, 32, .16);
    border: 1px solid rgba(233, 168, 32, .4);
    color: var(--ea-gold-light);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------
   Régie « passer en direct » (fiche session)
   ------------------------------------------------------------ */

.ea-golive {
    background: linear-gradient(150deg, #0A1F44, #10294f);
    border: 1px solid rgba(233, 168, 32, .3);
    border-radius: var(--ea-radius-lg);
    padding: clamp(18px, 2.4vw, 24px);
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 18px 44px rgba(8, 22, 52, .3);
}

.ea-golive-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.ea-golive-head > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.ea-golive-head i { color: var(--ea-gold-light); }

.ea-golive-intro { color: rgba(255, 255, 255, .68); font-size: .88rem; line-height: 1.6; margin-bottom: 16px; }

.ea-golive-platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }

.ea-golive-platform { cursor: pointer; }
.ea-golive-platform input { position: absolute; opacity: 0; pointer-events: none; }
.ea-golive-platform span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .05);
    font-weight: 700;
    font-size: .9rem;
    transition: .16s ease;
}
.ea-golive-platform span i { font-size: 1.15rem; }
.ea-golive-platform:hover span { border-color: rgba(255, 255, 255, .32); }
.ea-golive-platform input:checked + span {
    border-color: var(--ea-gold);
    background: rgba(233, 168, 32, .14);
    box-shadow: 0 0 0 3px rgba(233, 168, 32, .16);
}

.ea-golive .ea-field-label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 6px; color: rgba(255, 255, 255, .82); }
.ea-golive .form-control {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    border-radius: 12px;
}
.ea-golive .form-control::placeholder { color: rgba(255, 255, 255, .4); }
.ea-golive .form-control:focus {
    background: rgba(255, 255, 255, .1);
    border-color: var(--ea-gold);
    box-shadow: 0 0 0 3px rgba(233, 168, 32, .16);
    color: #fff;
}

.ea-golive-hint { font-size: .78rem; color: rgba(255, 255, 255, .55); margin: 4px 0 12px; line-height: 1.5; }
.ea-golive .form-check-label { color: rgba(255, 255, 255, .8); }

.ea-pulse-btn { animation: ea-btn-pulse 2s infinite; }
@keyframes ea-btn-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(229, 72, 77, .5); }
    70%  { box-shadow: 0 0 0 12px rgba(229, 72, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .ea-pulse-btn { animation: none; }
}
