/* ========================================
   🎨 STREAM TEAM - CSS OPTIMISÉ
   Version nettoyée - Sans doublons
   ======================================== */

/* ========================================
   VARIABLES CSS
   ======================================== */
:root {
  --primary: #00ff9f;
  --primary-glow: rgba(0, 255, 159, 0.3);
  --accent: #7f00ff;
  --background: radial-gradient(circle at center, #1e0057, #000027 90%);
  --surface: rgba(10, 10, 30, 0.9);
  --surface-hover: rgba(30, 0, 60, 0.95);
  --text: #e6e6fa;
  --text-secondary: #d8b4fe;
  --border: rgba(0, 255, 159, 0.2);
  --shadow: 0 0 20px rgba(0, 255, 159, 0.2);
  --button-bg: #00ff9f;
  --button-text: #000000;
  --button-hover: #00c280;
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Share Tech Mono", monospace;
  background: var(--background);
  color: var(--text);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  text-align: center;
}

/* Assurer que le main prend toute la largeur */
main {
  width: 100%;
  min-height: calc(100vh - 200px);
}

body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 0, 255, 0.05),
    transparent 70%
  );
  animation: pulseBackground 6s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes pulseBackground {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.6;
  }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Orbitron", sans-serif;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s;
}

a:hover {
  color: var(--button-hover);
  text-shadow: 0 0 10px var(--primary-glow);
}

/* ========================================
   HEADER UNIVERSEL
   ======================================== */
/* Fix pour le header universel qui ne s'affiche pas correctement */
.universal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 30, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.universal-nav {
  max-width: 1600px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.nav-back-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(0, 255, 159, 0.1);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--primary);
  font-weight: 600;
  transition: all 0.3s;
}

.nav-back-btn:hover {
  background: rgba(0, 255, 159, 0.2);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateX(-3px);
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.nav-title {
  font-size: 1.5rem;
  margin: 0;
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary-glow);
}

.nav-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 10px 0;
}

.icon-btn {
  position: relative;
  background: rgba(0, 255, 159, 0.1);
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: rgba(0, 255, 159, 0.2);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #ff0000;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* ========================================
   NOTIFICATIONS PANEL
   ======================================== */
/* Fix pour le panneau de notifications */
.notif-panel {
  position: absolute;
  top: 70px;
  right: 60px;
  width: 350px;
  max-width: 90vw;
  background: rgba(10, 10, 30, 0.98);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  max-height: 500px;
  z-index: 1000;
}

.notif-panel.show {
  display: flex;
  animation: slideDown 0.3s ease;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
}

.notif-header h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.notif-close-btn:hover {
  color: var(--primary);
}

.notif-list {
  padding: 10px;
  overflow-y: auto;
  max-height: 400px;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 255, 159, 0.05);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.3s;
}

.notif-item:hover {
  background: rgba(0, 255, 159, 0.1);
}

.notif-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.notif-content {
  flex: 1;
}

.notif-content strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.notif-content small {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ========================================
   MENU DROPDOWN
   ======================================== */
/* Fix pour le menu dropdown qui ne s'ouvre pas */
.menu-dropdown {
  position: absolute;
  top: 70px;
  right: 20px;
  width: 250px;
  background: rgba(10, 10, 30, 0.98);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
}

.menu-dropdown.show {
  display: flex;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fix pour les items du dropdown */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.dropdown-item:hover {
  background: rgba(0, 255, 159, 0.1);
  color: var(--primary);
  padding-left: 25px;
}

.dropdown-item.active {
  background: rgba(0, 255, 159, 0.15);
  color: var(--primary);
  border-left: 3px solid var(--primary);
}

.dropdown-item i {
  width: 20px;
  font-size: 1.1rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 5px 0;
}

/* ========================================
   HOME PAGE - ANCIEN HEADER
   ======================================== */
.site-header {
  padding: 2rem 1rem;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 159, 0.1),
    rgba(127, 0, 255, 0.1)
  );
  border-bottom: 1px solid var(--border);
  position: relative;
}

.top-actions {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 15px;
  z-index: 50;
}

/* Fix pour le hero content de la page home */
.hero-content {
  text-align: center;
  padding: 40px 20px;
  margin: 0 auto;
  max-width: 800px;
}

.hero-content .logo {
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px var(--primary-glow));
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.logo {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  border: 3px solid var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ========================================
   DROPDOWN WRAPPER (HOME)
   ======================================== */
.dropdown-wrapper {
  position: relative;
}

.dropdown-trigger {
  background: rgba(0, 255, 159, 0.1);
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 10px 20px;
  margin: 10px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  font-size: 1rem;
}

.dropdown-trigger:hover {
  background: rgba(0, 255, 159, 0.2);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.dropdown-menu {
  position: absolute;
  top: 50px;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 0;
  min-width: 200px;
  display: none;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.dropdown-menu a {
  padding: 12px 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.dropdown-menu a:hover {
  background: rgba(0, 255, 159, 0.1);
  color: var(--primary);
}

/* ========================================
   STATS & CARDS
   ======================================== */
/* Fix pour les stats cards */
.stats-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--primary-glow);
  border-color: var(--primary);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: "Orbitron", sans-serif;
  text-shadow: 0 0 10px var(--primary-glow);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   STREAMERS GRID
   ======================================== */
/* Fix pour la section streamers */
.streamers-section {
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Fix pour streamers grid */
.streamers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
  transform: translateY(-10px);
}

.card.offline {
  opacity: 0.6;
  border-color: rgba(255, 50, 50, 0.3);
}

.card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  margin-bottom: 15px;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff0000;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  animation: pulse 2s infinite;
}

/* ========================================
   WATCH PAGE
   ======================================== */
.watch-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
}

/* Fix pour watch page - hero */
.watch-hero {
  text-align: center;
  padding: 30px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  margin-top: 10px;
}

.watch-hero h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.live-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(0, 255, 159, 0.1);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--primary);
  font-weight: 600;
}

/* Fix pour filters section */
.filters-section {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filters-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: rgba(0, 255, 159, 0.1);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
  font-family: "Share Tech Mono", monospace;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  background: rgba(0, 255, 159, 0.2);
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.sort-select {
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: "Share Tech Mono", monospace;
  cursor: pointer;
  transition: all 0.3s;
}

.sort-select:hover {
  border-color: var(--primary);
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Fix pour loading state */
.loading-state {
  text-align: center;
  padding: 60px 20px;
}

.loading-state .spinner {
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.no-live-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.no-live-state i {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-live-state h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.no-live-state .btn-primary {
  display: none;
}

.stream-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.stream-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.stream-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.stream-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff0000;
  color: white;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 700;
}

.viewer-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.85rem;
}

.stream-info {
  padding: 15px;
}

.stream-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.stream-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.stream-title {
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 5px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-section {
  margin-bottom: 60px;
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
}

.btn-back,
.btn-action {
  padding: 10px 20px;
  background: rgba(0, 255, 159, 0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-back:hover,
.btn-action:hover {
  background: rgba(0, 255, 159, 0.2);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.player-wrapper {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.twitch-player iframe,
.twitch-chat iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 10px;
}

/* ========================================
   PROFILE PAGE
   ======================================== */
.profile-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 20px;
}

.profile-header {
  text-align: center;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
  margin-bottom: 1rem;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
}

.clips-section {
  margin-top: 2rem;
}

.clip-title {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clip-link {
  display: block;
  padding: 10px;
  background: rgba(0, 255, 159, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s;
}

.clip-link:hover {
  background: rgba(0, 255, 159, 0.1);
  border-color: var(--primary);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  margin-top: 80px;
  background: rgba(5, 5, 15, 0.95);
  border-top: 1px solid var(--border);
  padding: 40px 20px 20px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
  justify-content: center;
}

.footer-brand-text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  border: 2px solid var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.footer-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  font-family: "Orbitron", sans-serif;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-nav-section h4 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 15px;
}

.footer-nav-section a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  padding: 8px 0;
  transition: all 0.3s;
}

.footer-nav-section a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 15px;
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-badges {
  display: flex;
  gap: 15px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0, 255, 159, 0.1);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--primary);
  font-size: 0.85rem;
}

/* ========================================
   UTILITIES
   ======================================== */
.hidden {
  display: none !important;
}

.btn-primary,
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  background: var(--primary);
  color: #000;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover,
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

/* Fix pour le CTA section */
.cta-section {
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.cta-banner {
  background: linear-gradient(135deg, var(--surface), var(--surface-hover));
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Fix pour la roadmap banner */
.roadmap-banner {
  background: linear-gradient(
    90deg,
    rgba(0, 255, 159, 0.1),
    rgba(127, 0, 255, 0.1)
  );
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  text-align: center;
  color: var(--text);
  font-size: 0.9rem;
  animation: bannerSlide 0.5s ease;
}

@keyframes bannerSlide {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.roadmap-banner a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Fix pour le nav logo */
.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

/* ========================================
   🍪 STYLES BANNIÈRE COOKIES RGPD
   ======================================== */

/* Bannière principale */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--primary);
  padding: 25px;
  box-shadow: 0 -5px 30px rgba(0, 255, 159, 0.2);
  z-index: 9999;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cookie-icon {
  font-size: 3rem;
  flex-shrink: 0;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.cookie-text {
  flex: 1;
}

.cookie-text h3 {
  color: var(--primary);
  margin: 0 0 10px 0;
  font-size: 1.3rem;
}

.cookie-text p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.cookie-text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-text a:hover {
  color: var(--button-hover);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions button {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: "Share Tech Mono", monospace;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-cookie-accept {
  background: var(--primary);
  color: #000;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-cookie-accept:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-cookie-decline {
  background: rgba(255, 50, 50, 0.2);
  color: #ff3232;
  border: 2px solid #ff3232;
}

.btn-cookie-decline:hover {
  background: rgba(255, 50, 50, 0.3);
  transform: translateY(-2px);
}

.btn-cookie-customize {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-cookie-customize:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Modal de personnalisation */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cookie-modal-content {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 50px rgba(0, 255, 159, 0.3);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.cookie-modal-header {
  padding: 25px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-header h2 {
  margin: 0;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px 10px;
  transition: all 0.3s;
}

.cookie-modal-close:hover {
  color: #ff3232;
  transform: rotate(90deg);
}

.cookie-modal-body {
  padding: 25px;
  overflow-y: auto;
  flex: 1;
}

.cookie-category {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.cookie-category:hover {
  border-color: var(--primary);
  box-shadow: 0 5px 20px rgba(0, 255, 159, 0.1);
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cookie-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-category-title input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
}

.cookie-category-title input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-category-title label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-required {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.cookie-optional {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.cookie-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px 10px;
  transition: all 0.3s;
}

.cookie-toggle:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.cookie-toggle.open i {
  transform: rotate(180deg);
}

.cookie-details {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

.cookie-details p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.cookie-details ul {
  list-style: none;
  padding-left: 0;
}

.cookie-details li {
  color: var(--text-secondary);
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}

.cookie-details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.cookie-modal-footer {
  padding: 20px 25px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.cookie-modal-footer button {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: "Share Tech Mono", monospace;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-cookie-save {
  background: var(--surface-hover);
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-cookie-save:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-cookie-accept-all {
  background: var(--primary);
  color: #000;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-cookie-accept-all:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

/* Bouton flottant paramètres */
.cookie-settings-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 5px 20px var(--primary-glow);
  transition: all 0.3s;
  z-index: 9998;
}

.cookie-settings-btn:hover {
  transform: scale(1.1) rotate(20deg);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.cookie-settings-btn i {
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-icon {
    font-size: 2rem;
  }

  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-actions button {
    width: 100%;
    justify-content: center;
  }

  .cookie-modal-content {
    max-height: 95vh;
  }

  .cookie-modal-footer {
    flex-direction: column;
  }

  .cookie-modal-footer button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 15px;
  }

  .cookie-text h3 {
    font-size: 1.1rem;
  }

  .cookie-text p {
    font-size: 0.9rem;
  }

  .cookie-settings-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    bottom: 15px;
    right: 15px;
  }
}

/* ========================================
   Fin cookies
   ======================================== */

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .universal-nav {
    padding: 12px 15px;
  }

  .nav-back-text {
    display: none;
  }

  .nav-title {
    font-size: 1.2rem;
  }

  .nav-center {
    position: static;
    transform: none;
    flex: 1;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .notif-panel,
  .menu-dropdown {
    right: 10px;
  }

  .live-stats {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .stat-badge {
    justify-content: center;
  }

  .no-live-state {
    padding: 40px 10px;
    gap: 10px;
  }

  .streamers-grid,
  .streamers {
    grid-template-columns: 1fr;
  }

  .player-wrapper {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .streamers {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  .filters-section {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }

  @media (max-width: 480px) {
    .nav-title {
      font-size: 1rem;
    }

    .notif-panel {
      width: calc(100vw - 20px);
    }

    h1 {
      font-size: 1.5rem;
    }
    h2 {
      font-size: 1.2rem;
    }
  }

  .filters-container {
    justify-content: center;
  }
}

/* ========================================
   📜 STYLES PAGES LÉGALES
   Mentions légales, CGU, Confidentialité
   ======================================== */

/* Container principal */
.legal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.legal-hero {
  text-align: center;
  padding: 4rem 2rem 3rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, rgba(127, 0, 255, 0.1) 0%, rgba(0, 255, 159, 0.05) 100%);
  border-radius: 20px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 159, 0.03) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.legal-hero-content {
  position: relative;
  z-index: 1;
}

.legal-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
}

.legal-hero h1 i {
  margin-right: 1rem;
  color: var(--accent);
}

.legal-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  background: rgba(0, 255, 159, 0.1);
  border: 1px solid var(--primary);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Card principale */
.legal-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

/* Sections */
.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 255, 159, 0.1);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.legal-section h2 i {
  color: var(--accent);
  font-size: 1.5rem;
}

.legal-section h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin: 2rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--primary);
}

.legal-content {
  color: var(--text);
  line-height: 1.8;
  text-align: left;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content strong {
  color: var(--primary);
  font-weight: 600;
}

/* Grille d'informations */
.legal-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.info-item {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 159, 0.1);
}

.info-item strong {
  display: block;
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.info-item p {
  margin: 0;
  color: var(--text);
}

/* Listes */
.legal-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.legal-list li {
  padding: 0.8rem 0 0.8rem 2rem;
  position: relative;
  border-bottom: 1px solid rgba(0, 255, 159, 0.05);
}

.legal-list li:last-child {
  border-bottom: none;
}

.legal-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.2rem;
}

/* Boxes d'information */
.legal-warning-box,
.legal-info-box,
.legal-cta-box {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 1.5rem 0;
  align-items: flex-start;
}

.legal-warning-box {
  background: rgba(255, 100, 0, 0.1);
  border: 1px solid rgba(255, 100, 0, 0.3);
}

.legal-warning-box i {
  color: #ff6400;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.legal-info-box {
  background: rgba(0, 150, 255, 0.1);
  border: 1px solid rgba(0, 150, 255, 0.3);
}

.legal-info-box i {
  color: #0096ff;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.legal-cta-box {
  background: rgba(0, 255, 159, 0.1);
  border: 1px solid var(--primary);
}

.legal-cta-box i {
  color: var(--primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.legal-warning-box strong,
.legal-info-box strong,
.legal-cta-box strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Catégories de données */
.legal-data-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.data-category {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 159, 0.1);
}

.data-category h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.data-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.data-category li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.data-category li::before {
  content: '•';
  color: var(--primary);
  margin-right: 0.5rem;
}

/* Grille de droits */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.right-card {
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 159, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.right-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 255, 159, 0.2);
  transform: translateY(-5px);
}

.right-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.right-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 0 0 0.8rem 0;
  padding: 0;
  border: none;
}

.right-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Types de cookies */
.cookie-types {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.cookie-type {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 159, 0.1);
  align-items: flex-start;
}

.cookie-type i {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.cookie-type strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.cookie-type p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Méthodes de contact */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.contact-method {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 159, 0.1);
  align-items: center;
}

.contact-method i {
  font-size: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-method strong {
  display: block;
  margin-bottom: 0.3rem;
}

.contact-method a {
  color: var(--text);
  text-decoration: underline;
}

.legal-response-time {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(0, 255, 159, 0.05);
  border-radius: 10px;
  border-left: 4px solid var(--primary);
}

.legal-response-time i {
  font-size: 1.5rem;
  color: var(--primary);
}

.legal-response-time p {
  margin: 0;
}

/* Quick Links */
.legal-quick-links {
  margin-top: 3rem;
  text-align: center;
}

.legal-quick-links h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  background: var(--surface);
  border-radius: 15px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  text-decoration: none;
}

.quick-link-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(0, 255, 159, 0.3);
  transform: translateY(-5px);
}

.quick-link-card i {
  font-size: 2.5rem;
  color: var(--primary);
}

.quick-link-card span {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-hero h1 {
    font-size: 2rem;
  }
  
  .legal-card {
    padding: 2rem 1.5rem;
  }
  
  .legal-section h2 {
    font-size: 1.5rem;
  }
  
  .legal-info-grid,
  .legal-data-box,
  .rights-grid,
  .contact-methods {
    grid-template-columns: 1fr;
  }
  
  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .legal-container {
    padding: 1rem 0.5rem;
  }
  
  .legal-hero {
    padding: 2rem 1rem;
  }
  
  .legal-card {
    padding: 1.5rem 1rem;
  }
  
  .quick-links-grid {
    grid-template-columns: 1fr;
  }
};

/* ========================================
   🔥 SYSTÈME DE SALVES - CSS COMPLET
   À ajouter dans style.css ou créer salves.css
   ======================================== */

/* ========================================
   BOUTON SALVE
   ======================================== */

.salve-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.salve-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.salve-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.salve-button:hover::before {
  width: 300px;
  height: 300px;
}

.salve-button:active {
  transform: translateY(0);
}

.salve-button .salve-icon {
  font-size: 20px;
  animation: flicker 2s infinite;
}

.salve-button .salve-count {
  font-size: 12px;
  opacity: 0.8;
  margin-left: 4px;
}

/* État cooldown */
.salve-button.cooldown {
  background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
  cursor: not-allowed;
  opacity: 0.7;
}

.salve-button.cooldown:hover {
  transform: none;
}

/* État envoi */
.salve-button.sending {
  animation: pulse-button 0.6s ease;
}

/* Animation succès */
.salve-button.success-flash {
  animation: success-flash 0.5s ease;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes pulse-button {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.95); }
}

@keyframes success-flash {
  0%, 100% { background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%); }
  50% { background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%); }
}

/* ========================================
   PARTICULES DE FEU
   ======================================== */

.fire-particle {
  position: fixed;
  font-size: 24px;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fire-particle.animate {
  opacity: 1;
  transform: translateY(-100px) rotate(360deg) scale(2);
}

/* ========================================
   NOTIFICATIONS
   ======================================== */

.salve-notification {
  position: fixed;
  top: 80px;
  right: -400px;
  background: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  z-index: 10001;
  transition: right 0.3s ease;
  max-width: 350px;
}

.salve-notification.show {
  right: 20px;
}

.salve-notification.success {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
}

.salve-notification.error {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  color: white;
}

.salve-notification.levelup {
  background: linear-gradient(135deg, #fbbf24 0%, #fcd34d 100%);
  color: #1f2937;
  font-size: 18px;
  animation: celebration 0.5s ease;
}

@keyframes celebration {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-5deg); }
  75% { transform: scale(1.1) rotate(5deg); }
}

/* ========================================
   COMPTEUR DE SALVES (dans le profil)
   ======================================== */

.salves-total, #salves-count {
  display: inline-block;
  transition: transform 0.3s ease;
}

.salves-total.pulse, #salves-count.pulse {
  animation: pulse-counter 0.5s ease;
}

@keyframes pulse-counter {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); color: #ff6b6b; }
}

/* ========================================
   SECTION HISTORIQUE (Dashboard)
   ======================================== */

.salve-history-container {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
}

.salve-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.salve-history-tabs {
  display: flex;
  gap: 8px;
  background: rgba(30, 41, 59, 0.5);
  padding: 4px;
  border-radius: 8px;
}

.salve-history-tab {
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.salve-history-tab:hover {
  color: #e2e8f0;
}

.salve-history-tab.active {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  color: white;
}

.salve-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.salve-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(30, 41, 59, 0.4);
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.salve-history-item:hover {
  transform: translateX(4px);
  background: rgba(30, 41, 59, 0.6);
}

.salve-history-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.salve-history-info {
  flex: 1;
}

.salve-history-name {
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 2px;
}

.salve-history-time {
  font-size: 12px;
  color: #94a3b8;
}

.salve-history-icon {
  font-size: 24px;
}

/* ========================================
   STATS SALVES (Dashboard)
   ======================================== */

.salve-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.salve-stat-card {
  background: rgba(30, 41, 59, 0.4);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.salve-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #ff6b6b;
  margin-bottom: 4px;
}

.salve-stat-label {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .salve-button {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .salve-notification {
    max-width: 90%;
    right: -100%;
  }
  
  .salve-notification.show {
    right: 5%;
  }
  
  .salve-history-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* ========================================
   ANIMATIONS ADDITIONNELLES
   ======================================== */

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Animation de l'icône feu au survol */
.salve-button:hover .salve-icon {
  animation: float 1s ease infinite;
}

/* Effet de brillance */
.salve-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.btn-salve.cooldown {
  opacity: 0.6;
  cursor: not-allowed;
  background: #64748b !important;
}

.btn-salve.sending {
  animation: pulse 0.6s ease;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.95); }
}

@keyframes slideIn {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(400px); opacity: 0; }
}

    .dashboard-container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 2rem 1rem;
    }

    .dashboard-header {
      background: var(--surface);
      border-radius: 20px;
      padding: 2rem;
      margin-bottom: 2rem;
      border: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 2rem;
    }

    .profile-info {
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }

    .profile-avatar-large {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      border: 3px solid var(--primary);
    }

    .profile-details h1 {
      font-size: 1.8rem;
      margin: 0 0 0.5rem 0;
    }

    .rank-badge {
      background: linear-gradient(135deg, var(--primary), var(--accent));
      padding: 0.3rem 1rem;
      border-radius: 20px;
      font-weight: 600;
      display: inline-block;
    }

    .level-progress {
      flex: 1;
      max-width: 500px;
    }

    .level-info {
      display: flex;
      justify-content: space-between;
      margin-bottom: 0.5rem;
    }

    .progress-bar {
      height: 20px;
      background: rgba(0, 0, 0, 0.3);
      border-radius: 10px;
      overflow: hidden;
      margin-bottom: 0.5rem;
    }

    .progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      transition: width 0.5s ease;
    }

    .streak-info {
      text-align: right;
      color: var(--text-secondary);
    }

    .kpis-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .kpi-card {
      background: var(--surface);
      border-radius: 15px;
      padding: 1.5rem;
      border: 1px solid var(--border);
      display: flex;
      gap: 1rem;
      align-items: center;
      transition: transform 0.3s, box-shadow 0.3s;
    }

    .kpi-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 0 20px rgba(0, 255, 159, 0.3);
    }

    .kpi-icon {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
    }

    .kpi-icon.views { background: rgba(0, 255, 159, 0.2); color: var(--primary); }
    .kpi-icon.salves { background: rgba(127, 0, 255, 0.2); color: var(--accent); }
    .kpi-icon.referrals { background: rgba(255, 0, 255, 0.2); color: #ff00ff; }
    .kpi-icon.ranking { background: rgba(255, 215, 0, 0.2); color: #ffd700; }

    .kpi-value {
      font-size: 1.8rem;
      font-weight: 700;
      color: var(--primary);
      margin: 0.3rem 0;
    }

    .kpi-evolution {
      font-size: 0.9rem;
      color: var(--text-secondary);
    }

    .trend-icon.up { color: #00ff00; }
    .trend-icon.down { color: #ff4444; }

    .charts-section {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
      gap: 2rem;
      margin-bottom: 2rem;
    }

    .chart-card {
      background: var(--surface);
      border-radius: 15px;
      padding: 1.5rem;
      border: 1px solid var(--border);
      height: 350px;
    }

    .chart-card h3 {
      margin-bottom: 1rem;
      font-size: 1.1rem;
    }

    .chart-card canvas {
      max-height: 280px;
    }

    .activity-quests-section {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
    }

    .activity-card, .quests-card {
      background: var(--surface);
      border-radius: 15px;
      padding: 1.5rem;
      border: 1px solid var(--border);
    }

    .activity-feed {
      max-height: 400px;
      overflow-y: auto;
    }

    .activity-item {
      display: flex;
      gap: 1rem;
      padding: 1rem 0;
      border-bottom: 1px solid rgba(0, 255, 159, 0.1);
    }

    .activity-item:last-child {
      border-bottom: none;
    }

    .activity-icon {
      font-size: 1.5rem;
      flex-shrink: 0;
    }

    .activity-time {
      font-size: 0.85rem;
      color: var(--text-secondary);
    }

    .quest-item {
      padding: 1rem;
      background: rgba(0, 0, 0, 0.3);
      border-radius: 10px;
      margin-bottom: 1rem;
    }

    .quest-item.completed {
      opacity: 0.6;
    }

    .quest-item h4 {
      margin: 0 0 0.5rem 0;
      font-size: 1rem;
    }

    .quest-item p {
      margin: 0;
      font-size: 0.9rem;
      color: var(--text-secondary);
    }

    .progress-bar-small {
      height: 8px;
      background: rgba(0, 0, 0, 0.3);
      border-radius: 4px;
      overflow: hidden;
      margin: 0.5rem 0;
    }

    .quest-reward {
      font-size: 0.85rem;
      color: var(--primary);
      font-weight: 600;
    }

    @media (max-width: 1024px) {
      .activity-quests-section {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 768px) {
      .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
      }

      .charts-section {
        grid-template-columns: 1fr;
      }
    }

    .referral-container {
      max-width: 1200px;
      margin: 100px auto 50px;
      padding: 20px;
    }

    .referral-header {
      text-align: center;
      margin-bottom: 50px;
    }

    .referral-header h1 {
      font-size: 2.5rem;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      margin-bottom: 10px;
    }

    .referral-header p {
      color: rgba(255, 255, 255, 0.7);
      font-size: 1.1rem;
    }

    /* Code de parrainage */
    .referral-code-section {
      background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
      border: 2px solid rgba(102, 126, 234, 0.3);
      border-radius: 20px;
      padding: 40px;
      margin-bottom: 30px;
      text-align: center;
    }

    .referral-code-title {
      font-size: 1.2rem;
      color: rgba(255, 255, 255, 0.7);
      margin-bottom: 20px;
      text-transform: uppercase;
      letter-spacing: 2px;
    }

    .referral-code-display {
      background: rgba(0, 0, 0, 0.3);
      border: 2px solid rgba(102, 126, 234, 0.5);
      border-radius: 15px;
      padding: 25px;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 15px;
    }

    .referral-code-text {
      font-size: 2rem;
      font-weight: 900;
      color: #667eea;
      letter-spacing: 3px;
      text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    }

    .copy-btn {
      background: linear-gradient(135deg, #667eea, #764ba2);
      color: white;
      border: none;
      padding: 12px 30px;
      border-radius: 10px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .copy-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    }

    .copy-btn.copied {
      background: linear-gradient(135deg, #00ff88, #00cc6a);
    }

    .referral-link {
      font-size: 0.9rem;
      color: rgba(255, 255, 255, 0.5);
      margin-top: 10px;
    }

    /* Stats rapides */
    .referral-stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      margin-bottom: 30px;
    }

    .stat-card {
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 15px;
      padding: 25px;
      text-align: center;
      transition: all 0.3s;
    }

    .stat-card:hover {
      transform: translateY(-5px);
      border-color: rgba(102, 126, 234, 0.5);
    }

    .stat-icon {
      font-size: 2.5rem;
      margin-bottom: 15px;
    }

    .stat-value {
      font-size: 2.5rem;
      font-weight: 900;
      color: #667eea;
      margin-bottom: 10px;
    }

    .stat-label {
      color: rgba(255, 255, 255, 0.6);
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    /* Paliers */
    .milestones-section {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 15px;
      padding: 30px;
      margin-bottom: 30px;
    }

    .milestones-title {
      font-size: 1.5rem;
      color: white;
      margin-bottom: 25px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .milestone-item {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      padding: 20px;
      margin-bottom: 15px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: all 0.3s;
    }

    .milestone-item:hover {
      border-color: rgba(102, 126, 234, 0.5);
    }

    .milestone-item.completed {
      border-color: rgba(0, 255, 136, 0.5);
      background: rgba(0, 255, 136, 0.05);
    }

    .milestone-info {
      flex: 1;
    }

    .milestone-title {
      font-size: 1.1rem;
      color: white;
      font-weight: 700;
      margin-bottom: 5px;
    }

    .milestone-reward {
      color: rgba(255, 255, 255, 0.6);
      font-size: 0.9rem;
    }

    .milestone-progress {
      width: 200px;
      text-align: right;
    }

    .progress-bar-container {
      width: 100%;
      height: 8px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      overflow: hidden;
      margin-top: 8px;
    }

    .progress-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, #667eea, #764ba2);
      border-radius: 10px;
      transition: width 0.5s ease;
    }

    .progress-text {
      color: rgba(255, 255, 255, 0.7);
      font-size: 0.85rem;
      margin-bottom: 5px;
    }

    /* Liste des filleuls */
    .referrals-list-section {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 15px;
      padding: 30px;
      margin-bottom: 30px;
    }

    .referrals-list-title {
      font-size: 1.5rem;
      color: white;
      margin-bottom: 25px;
    }

    .referral-item {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      padding: 20px;
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      gap: 20px;
      transition: all 0.3s;
    }

    .referral-item:hover {
      border-color: rgba(102, 126, 234, 0.5);
      transform: translateX(5px);
    }

    .referral-avatar {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      border: 2px solid rgba(102, 126, 234, 0.5);
    }

    .referral-info {
      flex: 1;
    }

    .referral-name {
      font-size: 1.1rem;
      color: white;
      font-weight: 700;
      margin-bottom: 5px;
    }

    .referral-meta {
      color: rgba(255, 255, 255, 0.5);
      font-size: 0.85rem;
    }

    .referral-status {
      padding: 5px 15px;
      border-radius: 20px;
      font-size: 0.85rem;
      font-weight: 700;
    }

    .status-active {
      background: rgba(0, 255, 136, 0.2);
      color: #00ff88;
      border: 1px solid #00ff88;
    }

    .status-inactive {
      background: rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.5);
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Analytics */
    .analytics-section {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 15px;
      padding: 30px;
      margin-bottom: 30px;
    }

    .analytics-title {
      font-size: 1.5rem;
      color: white;
      margin-bottom: 25px;
    }

    .analytics-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
    }

    .analytics-card {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      padding: 20px;
      text-align: center;
    }

    .analytics-value {
      font-size: 2rem;
      font-weight: 900;
      color: #667eea;
      margin-bottom: 5px;
    }

    .analytics-label {
      color: rgba(255, 255, 255, 0.6);
      font-size: 0.9rem;
    }

    /* Loading */
    .loading-spinner {
      text-align: center;
      padding: 50px;
      color: rgba(255, 255, 255, 0.5);
    }

    .spinner {
      border: 3px solid rgba(255, 255, 255, 0.1);
      border-top: 3px solid #667eea;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      animation: spin 1s linear infinite;
      margin: 0 auto 20px;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    /* Responsive */
    @media (max-width: 768px) {
      .referral-code-display {
        flex-direction: column;
      }
      
      .referral-code-text {
        font-size: 1.5rem;
      }
      
      .referral-stats-grid {
        grid-template-columns: 1fr;
      }
    }

