body
{
   background-color: #FFFFFF;
   color: #000000;
   font-family: Arial;
   font-weight: normal;
   font-size: 13px;
   line-height: 1.1875;
   margin: 0;
   padding: 0;
}
/* ========== VARIABLES ET RESET ========== */
:root {
  --primary: #8B5CF6;
  --primary-light: #A78BFA;
  --primary-dark: #7C3AED;
  --secondary: #06B6D4;
  --accent: #F59E0B;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;
  --background: #f8fafc;
  --card-bg: #ffffff;
  --header-bg: linear-gradient(135deg, #1F2937 0%, #374151 100%);
  --footer-bg: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  --text-light: #ffffff;
  --text-dark: #1F2937;
  --text-muted: #6B7280;
  --border-light: #E5E7EB;
  --border: #D1D5DB;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 40px -5px rgba(0, 0, 0, 0.12), 0 10px 20px -5px rgba(0, 0, 0, 0.06);
  --active-color: #8B5CF6;
  --menu-hover-bg: rgba(255,255,255,0.1);
  --dropdown-bg: #1F2937;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--text-dark);
  font-size: 12px;
  line-height: 1.4;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

/* ========== STRUCTURE PRINCIPALE ========== */
.main-content-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
}

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--footer-bg);
  color: var(--text-light);
  padding: 8px 15px;
  border-bottom: 2px solid var(--primary);
  position: relative;
  z-index: 1002;
  min-height: 40px;
  flex-shrink: 0;
  font-size: 12px;
}

.streaming-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  flex-wrap: wrap;
  margin-left: 10px;
}

.streaming-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
}

.streaming-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.live-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.top-play-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
  flex-shrink: 0;
  font-size: 12px;
}

.top-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.top-player-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-player-title {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.95;
  white-space: nowrap;
}

.streaming-stats {
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
}

.stat-item i {
  color: var(--primary-light);
  font-size: 12px;
}

/* ========== HEADER PRINCIPAL ========== */
.main-header {
  background: var(--header-bg);
  color: var(--text-light);
  padding: 0 15px;
  height: 60px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-shrink: 0;
  font-size: 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
}

.site-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.site-title span {
  color: var(--primary);
  position: relative;
}

.site-title span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* ========== MENU HORIZONTAL ========== */
.nav-container {
  flex: 1;
  min-width: 0;
  position: relative;
  font-size: 12px;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}

.menu-item {
  position: relative;
  height: 100%;
  font-size: 12px;
}

.menu-button {
  background: none;
  border: none;
  color: var(--text-light);
  padding: 0 15px;
  height: 100%;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  min-width: 100px;
}

.menu-button:hover {
  background: var(--menu-hover-bg);
  border-bottom-color: var(--primary);
  color: var(--primary-light);
}

.menu-button.active {
  background: var(--menu-hover-bg);
  border-bottom-color: var(--active-color);
  color: var(--active-color);
}

.menu-button .menu-icon {
  font-size: 12px;
  width: 14px;
  text-align: center;
}

.menu-button .arrow {
  font-size: 9px;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.menu-item:hover .arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* SOUS-MENUS DÉROULANTS */
.submenu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dropdown-bg);
  min-width: 180px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid var(--active-color);
  overflow: hidden;
  font-size: 12px;
}

.menu-item:hover .submenu-dropdown {
  display: block;
  animation: fadeIn 0.2s ease;
}

.submenu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  font-size: 12px;
  font-weight: 500;
}

.submenu-item:hover {
  background: var(--menu-hover-bg);
  color: var(--text-light);
  border-left-color: var(--primary);
  padding-left: 20px;
}

.submenu-item.active {
  background: rgba(139, 92, 246, 0.15);
  color: var(--active-color);
  border-left-color: var(--active-color);
}

.submenu-item .submenu-icon {
  font-size: 12px;
  width: 14px;
  color: var(--primary-light);
}

/* ========== CONTENU IFRAME ========== */
.content-frame-container {
  flex: 1;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--background);
}

.iframe-fullscreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Message de chargement */
.loading-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  font-size: 12px;
}

.loading-spinner {
  font-size: 36px;
  color: #8B5CF6;
  margin-bottom: 15px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========== LECTEUR AUDIO ========== */
#audioPlayerContainer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--footer-bg);
  border-top: 2px solid var(--primary);
  padding: 12px 15px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  font-size: 12px;
}

#audioPlayerContainer.active {
  transform: translateY(0);
}

.player-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  color: white;
  font-size: 12px;
}

.player-info {
  flex-grow: 1;
  min-width: 0;
  font-size: 12px;
}

.player-title {
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  color: white;
}

.player-subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 12px;
}

.player-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 12px;
}

.player-btn:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.player-progress {
  flex-grow: 1;
  max-width: 350px;
  min-width: 180px;
  font-size: 12px;
}

.progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 4px;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
  transition: width 0.1s linear;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}

/* ========== MENU MOBILE ========== */
.mobile-header {
  display: none;
  background: var(--header-bg);
  color: var(--text-light);
  padding: 8px 12px;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1003;
  font-size: 12px;
  border-bottom: 2px solid var(--primary);
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.mobile-logo img {
  height: 26px;
  width: auto;
}

.mobile-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-light);
}

.mobile-logo-text span {
  color: var(--primary);
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 12px;
}

.mobile-menu-btn:hover {
  background: var(--menu-hover-bg);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1004;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-container {
  position: fixed;
  top: 0;
  left: -100%;
  width: 250px;
  height: 100%;
  background: var(--dropdown-bg);
  z-index: 1005;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  font-size: 12px;
}

.mobile-nav-header {
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.mobile-nav-title {
  color: var(--text-light);
  font-size: 16px;
  font-weight: 600;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 16px;
  cursor: pointer;
  padding: 3px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-nav-close:hover {
  background: var(--menu-hover-bg);
  color: var(--primary-light);
}

.mobile-nav-content {
  padding: 15px 0;
  font-size: 12px;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.mobile-nav-button {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-light);
  padding: 14px 15px;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.mobile-nav-button:hover {
  background: var(--menu-hover-bg);
  color: var(--primary-light);
}

.mobile-nav-button.active {
  background: rgba(139, 92, 246, 0.2);
  color: var(--primary-light);
  border-left: 3px solid var(--primary);
}

.mobile-nav-submenu {
  display: none;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 0;
  font-size: 12px;
}

.mobile-nav-submenu.active {
  display: block;
}

.mobile-nav-subitem {
  display: block;
  padding: 10px 15px 10px 35px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 11px;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-nav-subitem:hover {
  background: var(--menu-hover-bg);
  color: var(--text-light);
  padding-left: 40px;
}

.mobile-nav-subitem.active {
  background: rgba(139, 92, 246, 0.2);
  color: var(--primary-light);
  border-left: 3px solid var(--primary);
}

/* ========== ANIMATIONS ========== */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .nav-container {
    display: none;
  }
  
  .main-header {
    justify-content: space-between;
  }
  
  .site-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 6px 10px;
  }
  
  .streaming-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    margin-left: 5px;
    padding-bottom: 5px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  
  .streaming-container::-webkit-scrollbar {
    height: 3px;
  }
  
  .streaming-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
  }
  
  .streaming-item {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
  }
  
  .streaming-status span:not(.live-indicator) {
    font-size: 10px;
  }
  
  .top-player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .top-player-status {
    font-size: 9px;
  }
  
  .top-player-title {
    font-size: 11px;
  }
  
  .stat-item {
    font-size: 10px;
  }
  
  .stat-item i {
    font-size: 11px;
  }
  
  /* Masquer le header desktop sur mobile */
  .main-header {
    display: none;
  }
  
  .mobile-header {
    display: flex;
  }
  
  .content-frame-container {
    height: calc(100vh - 90px);
  }
  
  .top-play-btn {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .mobile-nav-container {
    width: 220px;
  }
  
  .streaming-container {
    gap: 8px;
  }
  
  .streaming-item {
    padding: 3px 6px;
    min-height: 28px;
  }
  
  .mobile-header {
    padding: 6px 10px;
    height: 50px;
  }
  
  .mobile-logo-text {
    font-size: 14px;
  }
  
  .mobile-logo img {
    height: 22px;
  }
  
  .top-bar {
    min-height: 35px;
  }
  
  .streaming-status {
    font-size: 10px;
  }
}

@media (max-width: 375px) {
  .streaming-container {
    gap: 6px;
  }
  
  .streaming-item {
    padding: 2px 4px;
    font-size: 10px;
  }
  
  .top-player-title {
    font-size: 10px;
  }
  
  .mobile-logo-text {
    font-size: 12px;
  }
}

/* MESSAGES D'ERREUR */
.error-message {
  background: #FEE2E2;
  color: #DC2626;
  padding: 12px;
  border-radius: var(--radius);
  margin: 15px 0;
  border-left: 3px solid #DC2626;
  text-align: center;
  font-size: 12px;
}

.info-message {
  background: #DBEAFE;
  color: #1D4ED8;
  padding: 12px;
  border-radius: var(--radius);
  margin: 15px 0;
  border-left: 3px solid #1D4ED8;
  text-align: center;
  font-size: 12px;
}
