/* ==========================================
   1. VARIABLES GLOBALÈS & THÈME (RADIO BLEU)
   ========================================== */
:root {
    --bg-main: #0f1015;
    --bg-card: #181920;
    --bg-sidebar: #13141b;
    --primary: #007bc7; /* Bleu principal Radio */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #2a2b36;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* ==========================================
   2. SIDEBAR NAVIGATION
   ========================================== */
.sidebar {
    width: 240px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.logo i {
    color: var(--primary);
}

.logo .highlight {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 12px 16px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.nav-menu a:hover, 
.nav-menu a.active {
    background-color: var(--primary);
    color: #fff;
}

/* ==========================================
   3. CONTENU PRINCIPAL & EN-TÊTE
   ========================================== */
.main-content {
    flex: 1;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-box {
    background-color: var(--bg-card);
    padding: 10px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 300px;
    border: 1px solid var(--border-color);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    width: 100%;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 18px;
    cursor: pointer;
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   4. LECTEUR RADIO & VISUALISEUR
   ========================================== */
.player-container {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.audio-wrapper {
    position: relative;
    width: 100%;
    background-color: #000;
    border-radius: var(--radius);
    overflow: hidden;
}

.radio-visualizer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: radial-gradient(circle, rgba(0, 123, 199, 0.15) 0%, rgba(24, 25, 32, 1) 70%);
    border-radius: var(--radius);
    gap: 25px;
}

.radio-icon-glow {
    width: 90px;
    height: 90px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: white;
    box-shadow: 0 0 30px rgba(0, 123, 199, 0.5);
}

/* Animation Égaliseur Audio */
.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 30px;
}

.equalizer span {
    width: 5px;
    height: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    animation: bounce 1.2s infinite ease-in-out;
}

.equalizer.paused span {
    animation-play-state: paused;
    height: 8px;
}

.equalizer span:nth-child(1) { animation-delay: 0.1s; }
.equalizer span:nth-child(2) { animation-delay: 0.3s; }
.equalizer span:nth-child(3) { animation-delay: 0.2s; }
.equalizer span:nth-child(4) { animation-delay: 0.4s; }
.equalizer span:nth-child(5) { animation-delay: 0.15s; }

@keyframes bounce {
    0%, 100% { height: 8px; }
    50% { height: 30px; }
}

/* Badge En Direct */
.live-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 123, 199, 0.85);
    backdrop-filter: blur(5px);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
}

.live-badge .dot {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Stream Info & Boutons */
.stream-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.info-main h1 {
    font-size: 22px;
    font-weight: 600;
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 5px;
}

.stream-actions {
    display: flex;
    gap: 10px;
}

.btn {
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-secondary {
    background-color: var(--border-color);
    color: white;
}

/* ==========================================
   5. GRILLE DES PROGRAMMES (ACCUEIL)
   ========================================== */
.schedule-section {
    margin-top: 10px;
}

.schedule-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.schedule-section h2 i {
    color: var(--primary);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.program-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.program-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.program-card.active {
    border-color: var(--primary);
    background-color: rgba(0, 123, 199, 0.08);
}

.time-badge {
    font-size: 11px;
    font-weight: bold;
    color: var(--primary);
    text-transform: uppercase;
}

.program-card h3 {
    font-size: 15px;
    color: var(--text-main);
}

.program-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================
   6. PAGE PROGRAMMES & NORMES ADSENSE
   ========================================== */
.program-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-header h1 {
    font-size: 24px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.program-layout {
    display: flex;
    gap: 25px;
}

.program-timeline {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.timeline-item.active {
    border-color: var(--primary);
    background-color: rgba(0, 123, 199, 0.08);
}

.timeline-item .time {
    font-weight: bold;
    font-size: 14px;
    color: var(--primary);
    min-width: 100px;
}

.timeline-item .details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-item .tag {
    font-size: 11px;
    background-color: var(--border-color);
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 4px;
    width: fit-content;
}

.timeline-item .tag.live-tag {
    background-color: var(--primary);
    color: #fff;
}

.timeline-item h3 {
    font-size: 16px;
}

.timeline-item p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Conteneurs d'Annonces AdSense */
.ad-container {
    width: 100%;
    margin: 10px 0;
    text-align: center;
    clear: both;
}

.ad-label {
    display: block;
    font-size: 10px;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.ad-placeholder {
    background-color: #1a1b23;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 20px;
    color: #666;
    font-size: 12px;
}

.ad-placeholder-vertical {
    background-color: #1a1b23;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
    padding: 15px;
}

.ad-sidebar {
    width: 300px;
}

.ad-sticky {
    position: sticky;
    top: 20px;
}

/* ==========================================
   7. PAGE À PROPOS
   ========================================== */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-hero {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.about-hero h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

.about-hero .lead {
    color: var(--text-muted);
    font-size: 15px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.about-card {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-card .card-icon {
    font-size: 28px;
    color: var(--primary);
}

.about-card h3 {
    font-size: 18px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.about-contact {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.about-contact h2 {
    font-size: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-contact h2 i {
    color: var(--primary);
}

.about-contact p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-main);
    font-size: 14px;
}

.contact-info div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--primary);
}

/* ==========================================
   8. RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .main-content {
        padding: 15px;
    }
    .stream-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .stream-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .btn {
        flex: 1;
        justify-content: center;
    }
    .program-layout {
        flex-direction: column;
    }
    .ad-sidebar {
        width: 100%;
    }
    .timeline-item {
        flex-direction: column;
        gap: 8px;
    }
    .timeline-item .time {
        min-width: auto;
    }
}
