/* ============================================
   ADRAMA WebTV — Design System
   Cohérent avec RadioSFM, identité propre TV
   ============================================ */

:root {
    /* Palette — accent violet/indigo pour distinguer de RadioSFM (rouge/bleu) */
    --purple: #6c3fc5;
    --purple-light: #8b5cf6;
    --purple-dark: #4c1d95;
    --indigo: #4338ca;
    --navy: #0d1b2a;
    --navy-light: #1b2838;
    --navy-mid: #162232;
    --dark: #0a0e18;
    --surface: #f5f5f7;
    --surface-alt: #eaeaed;
    --white: #ffffff;
    --text: #1a1a1a;
    --text-muted: #666;
    --text-light: #999;
    --border: #ddd;
    --shadow: 0 2px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.15);
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-heading: 'Barlow Semi Condensed', 'Inter', sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
    --container: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--purple-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--white); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Container ---- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---- Section title ---- */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 28px;
    background: var(--purple);
    border-radius: 2px;
}

/* ==========================
   HEADER
   ========================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 24, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    color: var(--white);
}
.logo:hover { color: var(--white); }
.logo-main {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: .04em;
}
.logo-sub {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: .9rem;
    color: var(--purple-light);
    text-transform: uppercase;
    letter-spacing: .1em;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.main-nav a {
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .02em;
    transition: color .2s;
}
.main-nav a:hover { color: var(--white); }
.nav-radio {
    background: rgba(196, 30, 30, .15);
    color: #e05050 !important;
    padding: .35rem .8rem;
    border-radius: 4px;
    font-weight: 600 !important;
    font-size: .8rem !important;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.nav-radio:hover {
    background: rgba(196, 30, 30, .3) !important;
    color: #ff6060 !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: .5rem;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: transform .3s;
}

/* ==========================
   HERO / PLAYER
   ========================== */
.hero {
    padding: 8rem 0 4rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark) 0%, #0f1629 50%, var(--purple-dark) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(108, 63, 197, .12) 0%, transparent 70%);
    pointer-events: none;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(108, 63, 197, .2);
    color: var(--purple-light);
    padding: .4rem 1rem;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(108, 63, 197, .3);
}
.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-live 2s infinite;
}
@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
    margin-bottom: 1.5rem;
}
.accent { color: var(--purple-light); }
.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,.6);
    line-height: 1.7;
    max-width: 420px;
}

/* Player area */
.player-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(108, 63, 197, .15);
    aspect-ratio: 16 / 9;
    position: relative;
}
.player-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.player-pattern {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(108,63,197,.08) 25%, transparent 25%),
        linear-gradient(225deg, rgba(108,63,197,.08) 25%, transparent 25%),
        linear-gradient(315deg, rgba(108,63,197,.08) 25%, transparent 25%),
        linear-gradient(45deg, rgba(108,63,197,.08) 25%, transparent 25%);
    background-size: 40px 40px;
    opacity: .5;
}
.player-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.play-btn-large {
    color: var(--purple-light);
    transition: transform .3s, color .3s;
}
.play-btn-large:hover {
    transform: scale(1.15);
    color: var(--white);
}
.player-label {
    font-size: .85rem;
    color: rgba(255,255,255,.5);
    font-weight: 500;
}
.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 0;
    margin-top: .5rem;
}
.player-status {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.5);
}
.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-live 2s infinite;
}
.player-now {
    font-size: .85rem;
    color: rgba(255,255,255,.4);
}

/* ==========================
   SECTIONS
   ========================== */
.section {
    padding: 5rem 0;
}
.section--dark {
    background: var(--navy);
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Cards — Émissions */
.card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .3s, border-color .3s;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 63, 197, .3);
}
.card-visual {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.card-visual--1 { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); }
.card-visual--2 { background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%); }
.card-visual--3 { background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 100%); }
.card-icon {
    color: rgba(255,255,255,.5);
}
.card-body {
    padding: 1.5rem;
}
.card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--white);
}
.card-body p {
    font-size: .9rem;
    color: rgba(255,255,255,.5);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.card-meta {
    font-size: .75rem;
    color: var(--purple-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Replay cards */
.replay-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius-lg);
    transition: transform .3s, border-color .3s;
    cursor: pointer;
}
.replay-card:hover {
    transform: translateY(-2px);
    border-color: rgba(108, 63, 197, .3);
}
.replay-thumb {
    flex-shrink: 0;
    width: 180px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: var(--navy);
}
.replay-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-mid) 0%, var(--purple-dark) 100%);
    color: rgba(255,255,255,.3);
}
.replay-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,.8);
    color: var(--white);
    padding: .15rem .5rem;
    border-radius: 3px;
    font-size: .7rem;
    font-weight: 600;
}
.replay-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.replay-body h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .35rem;
}
.replay-body p {
    font-size: .85rem;
    color: rgba(255,255,255,.5);
    line-height: 1.5;
}

.section-more {
    text-align: center;
    margin-top: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .9rem;
    transition: all .3s;
}
.btn--primary {
    background: var(--purple);
    color: var(--white);
}
.btn--primary:hover {
    background: var(--purple-light);
    color: var(--white);
}
.btn--outline {
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.7);
}
.btn--outline:hover {
    border-color: var(--purple-light);
    color: var(--white);
}

/* ==========================
   ABOUT / L'ÉCOLE
   ========================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 1rem;
    line-height: 1.7;
}
.about-text p {
    color: rgba(255,255,255,.5);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.about-links {
    margin-top: 1rem;
}
.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--navy-mid) 0%, var(--purple-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid rgba(255,255,255,.06);
}
.about-placeholder span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.5rem;
    color: rgba(255,255,255,.15);
    letter-spacing: .06em;
}
.about-placeholder small {
    font-size: .85rem;
    color: rgba(255,255,255,.2);
}

/* ==========================
   FOOTER
   ========================== */
.site-footer {
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding: 3rem 2rem;
}
.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--white);
    letter-spacing: .04em;
}
.footer-logo small {
    font-weight: 400;
    color: var(--purple-light);
    font-size: .7em;
    margin-left: .3rem;
}
.footer-brand p {
    color: rgba(255,255,255,.4);
    font-size: .85rem;
    margin-top: .75rem;
    line-height: 1.6;
}
.footer-links h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.5);
    margin-bottom: 1rem;
}
.footer-links a {
    display: block;
    color: rgba(255,255,255,.4);
    font-size: .85rem;
    padding: .2rem 0;
    transition: color .2s;
}
.footer-links a:hover {
    color: var(--white);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 1rem 0;
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.3);
}

/* ==========================
   LIVE PLAYER
   ========================== */
.cam-viewport {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
    overflow: hidden;
}
.cam-stream {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    display: block;
}
.cam-message {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.4);
    font-size: .95rem;
    text-align: center;
    padding: 2rem;
    background: var(--navy);
}

/* Overlay transparent */
.cam-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}
.cam-overlay-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.cam-live-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(220, 38, 38, .85);
    color: #fff;
    padding: .3rem .7rem;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.cam-live-dot {
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-live 1.5s infinite;
}
.cam-count {
    background: rgba(0,0,0,.5);
    color: rgba(255,255,255,.7);
    padding: .25rem .6rem;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 600;
}

.cam-overlay-bottom {
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    margin: -1rem -1.25rem;
    padding: 2.5rem 1.25rem 1rem;
}
.cam-city {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
    line-height: 1.2;
}
.cam-name {
    font-size: .85rem;
    color: rgba(255,255,255,.7);
    margin-top: .25rem;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.cam-fade-in {
    animation: camFadeIn .6s ease-out;
}
@keyframes camFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Barre de progression */
.cam-progress {
    margin-top: .75rem;
    height: 3px;
    background: rgba(255,255,255,.15);
    border-radius: 2px;
    overflow: hidden;
}
.cam-progress-bar {
    height: 100%;
    width: 0;
    background: var(--purple-light);
    border-radius: 2px;
}

/* Contrôles */
.cam-controls {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 15;
    display: flex;
    gap: .25rem;
    padding: .5rem;
    opacity: 0;
    transition: opacity .3s;
}
.player-container:hover .cam-controls {
    opacity: 1;
}
.cam-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.6);
    color: rgba(255,255,255,.8);
    border-radius: 6px;
    font-size: .8rem;
    transition: background .2s, color .2s;
    pointer-events: auto;
}
.cam-btn:hover {
    background: var(--purple);
    color: #fff;
}

/* Fullscreen adjustments */
.player-container:fullscreen {
    background: #000;
}
.player-container:fullscreen .cam-controls {
    opacity: 1;
    padding: 1rem;
}
.player-container:fullscreen .cam-city {
    font-size: 3rem;
}
.player-container:fullscreen .cam-name {
    font-size: 1.1rem;
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero {
        min-height: auto;
        padding: 7rem 0 3rem;
    }
    .hero h1 { font-size: 2.5rem; }
    .grid--3 { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 14, 24, .98);
        padding: 2rem;
        gap: 1.5rem;
        z-index: 99;
    }
    .main-nav.active a {
        font-size: 1.2rem;
    }
    .nav-toggle { display: flex; }
    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: .95rem; }
    .grid--2 { grid-template-columns: 1fr; }
    .replay-card { flex-direction: column; }
    .replay-thumb { width: 100%; }
    .container { padding: 0 1.25rem; }
}
