/**
 * Illusium Index Page Styles
 * Styles spécifiques à la page d'accueil (index.html)
 */

/* ============================================
   ANIMATED BACKGROUND GRADIENT
   ============================================ */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 80% 60% at 15% 25%, rgba(139, 92, 246, 0.20) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(239, 68, 68, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 60% 70% at 75% 85%, rgba(6, 182, 212, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 10% 75%, rgba(34, 197, 94, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(252, 209, 22, 0.12) 0%, transparent 60%);
  animation: gradient-shift 25s ease infinite;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 70% 30%, rgba(239, 68, 68, 0.06) 0%, transparent 20%);
  animation: gradient-pulse 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes gradient-shift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(3%, 3%) rotate(90deg); }
  50% { transform: translate(0%, 5%) rotate(180deg); }
  75% { transform: translate(-3%, 2%) rotate(270deg); }
}

@keyframes gradient-pulse {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 80% 60% at 15% 25%, rgba(139, 92, 246, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(239, 68, 68, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse 60% 70% at 75% 85%, rgba(6, 182, 212, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 10% 75%, rgba(34, 197, 94, 0.20) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(252, 209, 22, 0.15) 0%, transparent 60%);
}

html[data-theme="light"] body::after {
  background:
    radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.12) 0%, transparent 25%),
    radial-gradient(circle at 70% 30%, rgba(239, 68, 68, 0.10) 0%, transparent 20%);
}

/* ============================================
   HEADER INDEX SPECIFIC
   ============================================ */
.main {
  position: relative;
  z-index: 1;
  max-width: 100%;
  padding: 0;
}

.main.hidden {
  display: none;
}

.header.hidden {
  display: none;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.05);
}

/* Random button */
.btn-random {
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: none;
  background: var(--accent);
  color: #000;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-random:hover {
  transform: scale(1.02);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
  transition: var(--transition);
}

.menu-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 200px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  z-index: 1000;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.mobile-menu-item:hover {
  background: var(--accent-dim);
}

.mobile-lang-container {
  padding: 0.5rem 1rem;
}

/* Glossary button */
.btn-glossaire {
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-glossaire:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.btn-glossaire-text {
  display: inline;
}

@media (max-width: 600px) {
  .btn-glossaire-text {
    display: none;
  }
}

/* ============================================
   TICKET SYSTEM
   ============================================ */
.ticket-counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  background: linear-gradient(135deg, #fcd116 0%, #f59e0b 100%);
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.ticket-counter:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(252, 209, 22, 0.4);
}

.ticket-counter.low {
  animation: ticketPulse 1s ease infinite;
}

.ticket-counter.empty {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  animation: ticketShake 0.5s ease;
}

@keyframes ticketPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes ticketShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.ticket-icon {
  font-size: 1.1rem;
}

.ticket-count {
  min-width: 20px;
  text-align: center;
}

/* Ticket Modal */
.ticket-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.ticket-modal.active {
  opacity: 1;
  visibility: visible;
}

.ticket-modal-content {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.ticket-modal.active .ticket-modal-content {
  transform: scale(1);
}

.ticket-modal-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.ticket-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.ticket-modal-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.ticket-modal-share {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ticket-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
}

.ticket-share-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.ticket-share-whatsapp { background: #25D366; }
.ticket-share-facebook { background: #1877F2; }
.ticket-share-twitter { background: #000; }
.ticket-share-bluesky { background: #0085FF; }
.ticket-share-telegram { background: #0088cc; }
.ticket-share-linkedin { background: #0A66C2; }
.ticket-share-email { background: #6366f1; }
.ticket-share-copy { background: #ec4899; }

.ticket-modal-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.ticket-modal-close:hover {
  border-color: var(--text);
  color: var(--text);
}

.ticket-bonus {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Ticket Info Panel */
.ticket-info-panel {
  position: fixed;
  top: 70px;
  right: 20px;
  width: 320px;
  max-height: 80vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s ease;
  overflow: hidden;
}

.ticket-info-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ticket-info-header {
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  padding: 1.25rem;
  text-align: center;
}

.ticket-info-balance {
  font-size: 3rem;
  font-weight: 700;
  color: #000;
  line-height: 1;
}

.ticket-info-label {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.7);
  font-weight: 500;
}

.ticket-info-section {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.ticket-info-section:last-child {
  border-bottom: none;
}

.ticket-info-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.ticket-earn-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
}

.ticket-earn-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ticket-earn-text {
  flex: 1;
  font-size: 0.9rem;
}

.ticket-earn-amount {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.ticket-history-list {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-gutter: stable;
}

.ticket-history-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}

.ticket-history-item:last-child {
  border-bottom: none;
}

.ticket-history-icon {
  font-size: 1.1rem;
}

.ticket-history-text {
  flex: 1;
  color: var(--text-muted);
  min-width: 0;
}

.ticket-history-amount {
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

.ticket-history-amount.positive {
  color: #22c55e;
}

.ticket-history-amount.negative {
  color: #ef4444;
}

.ticket-history-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ticket-history-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 1rem 0;
}

.ticket-info-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ticket-info-close:hover {
  background: rgba(0, 0, 0, 0.3);
}

@media (max-width: 400px) {
  .ticket-info-panel {
    right: 10px;
    left: 10px;
    width: auto;
  }
}

/* ============================================
   PSYCHEDELIC ENTRANCE ANIMATION
   ============================================ */
.psyche-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.psyche-overlay.active {
  opacity: 1;
  visibility: visible;
}

.psyche-overlay.fade-out {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.psyche-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Spiral vortex */
.psyche-spiral {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200vmax;
  height: 200vmax;
}

.spiral-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 3px solid transparent;
  transform: translate(-50%, -50%);
}

.psyche-overlay.active .spiral-ring {
  animation: spiralRotate 3s ease-in-out forwards;
}

@keyframes spiralRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) rotate(720deg) scale(3);
    opacity: 0;
  }
}

/* Floating symbols */
.psyche-symbols {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.psyche-symbol {
  position: absolute;
  font-size: 2rem;
  opacity: 0;
  filter: blur(0px);
}

.psyche-overlay.active .psyche-symbol {
  animation: symbolFloat 2.5s ease-out forwards;
}

@keyframes symbolFloat {
  0% {
    transform: translate(0, 0) scale(0) rotate(0deg);
    opacity: 0;
    filter: blur(10px);
  }
  30% {
    opacity: 1;
    filter: blur(0px);
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(1.5) rotate(var(--rot));
    opacity: 0;
    filter: blur(5px);
  }
}

/* Central eye/brain */
.psyche-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8rem;
  opacity: 0;
  z-index: 10;
}

.psyche-overlay.active .psyche-center {
  animation: centerPulse 2.5s ease-in-out forwards;
}

@keyframes centerPulse {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  40% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  60% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(20);
    opacity: 0;
  }
}

/* Kaleidoscope triangles */
.psyche-kaleidoscope {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vmax;
  height: 100vmax;
}

.kaleidoscope-segment {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 50vmax solid transparent;
  border-right: 50vmax solid transparent;
  border-bottom: 100vmax solid;
  transform-origin: 0 0;
  opacity: 0;
}

.psyche-overlay.active .kaleidoscope-segment {
  animation: kaleidoscopeExpand 2.5s ease-out forwards;
}

@keyframes kaleidoscopeExpand {
  0% {
    opacity: 0;
    transform: rotate(var(--angle)) scale(0);
  }
  30% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: rotate(calc(var(--angle) + 180deg)) scale(1);
  }
}

/* Text reveal */
.psyche-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 700;
  color: white;
  text-align: center;
  opacity: 0;
  z-index: 20;
  text-shadow: 0 0 30px rgba(252, 209, 22, 0.8);
}

.psyche-overlay.active .psyche-text {
  animation: textReveal 2.5s ease-out forwards;
}

@keyframes textReveal {
  0%, 60% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    filter: blur(10px);
  }
  75% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
    filter: blur(5px);
  }
}

/* Concentric circles */
.psyche-circles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.psyche-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid;
  opacity: 0;
}

.psyche-overlay.active .psyche-circle {
  animation: circleExpand 2s ease-out forwards;
}

@keyframes circleExpand {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
}

.intro-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 80% 60% at 15% 25%, rgba(139, 92, 246, 0.20) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(239, 68, 68, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 60% 70% at 75% 85%, rgba(6, 182, 212, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 10% 75%, rgba(34, 197, 94, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(252, 209, 22, 0.12) 0%, transparent 60%);
  animation: gradient-shift 25s ease infinite;
  pointer-events: none;
  z-index: 0;
}

.intro-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 70% 30%, rgba(239, 68, 68, 0.06) 0%, transparent 20%);
  animation: gradient-pulse 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.intro-section > * {
  position: relative;
  z-index: 1;
}

.intro-section.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-logo {
  width: 200px;
  height: auto;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.intro-logo img {
  width: 100%;
  height: auto;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.intro-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-subtitle {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-shadow: 0 0 20px rgba(252, 209, 22, 0.3);
}

.intro-description {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.intro-description .highlight {
  color: var(--accent);
  font-weight: 600;
}

.intro-description .highlight-purple {
  color: var(--techno);
  font-weight: 600;
}

.intro-description .highlight-cyan {
  color: var(--illusion);
  font-weight: 600;
}

.intro-stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 2rem;
}

.intro-stat {
  text-align: center;
}

.intro-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.intro-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-enter {
  padding: 1.25rem 3rem;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(252, 209, 22, 0.4), 0 0 40px rgba(252, 209, 22, 0.3);
  animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(252, 209, 22, 0.4), 0 0 40px rgba(252, 209, 22, 0.2); }
  50% { box-shadow: 0 4px 30px rgba(252, 209, 22, 0.6), 0 0 60px rgba(252, 209, 22, 0.4); }
}

.btn-enter:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(252, 209, 22, 0.5), 0 0 80px rgba(252, 209, 22, 0.5);
  animation: none;
}

/* Mobile intro adjustments */
@media (max-width: 600px) {
  .intro-section {
    padding: 1rem;
    justify-content: flex-start;
    padding-top: 10vh;
  }

  .intro-logo {
    width: 150px;
    margin-bottom: 0.5rem;
  }

  .intro-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .intro-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .intro-stats {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .intro-stat-value {
    font-size: 1.8rem;
  }

  .intro-stat-label {
    font-size: 0.75rem;
  }

  .btn-enter {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
}

/* ============================================
   FLOATING ACTION BUTTONS
   ============================================ */
.floating-actions {
  position: fixed;
  top: 115px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 100;
  align-items: flex-end;
}

.floating-action-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  padding: 0 0.8rem 0 0.8rem;
}

.floating-action-btn:hover {
  width: auto;
  padding: 0 1rem 0 1rem;
  border-radius: 50px;
  transform: translateX(0);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.floating-action-text {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.3s ease;
  margin-right: 0;
}

.floating-action-btn:hover .floating-action-text {
  max-width: 150px;
  opacity: 1;
  margin-right: 0.5rem;
}

.floating-action-random {
  background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
  color: #000;
}

.floating-action-parcours {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.floating-action-parcours:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.floating-action-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.floating-actions.hidden {
  display: none;
}

/* Mobile floating actions */
@media (max-width: 768px) {
  .floating-actions {
    top: auto;
    bottom: 100px;
    right: 15px;
  }

  .floating-action-btn:hover {
    width: 46px;
    padding: 0;
    border-radius: 50%;
  }

  .floating-action-btn:hover .floating-action-text {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
  }
}

.map-action-text-short {
  display: none;
}

/* ============================================
   BRAIN MAP
   ============================================ */
.brain-map {
  min-height: calc(100vh - 73px);
  padding: 0;
  margin-bottom: 3rem;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

html[data-theme="light"] .brain-map {
  background: transparent;
}

.brain-container {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 500px;
}

.brain-shape {
  display: none;
}

/* Zone navigation bar */
.zone-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.zone-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0;
  border-right: 1px solid var(--border);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
  animation: zoneNavAppear 0.5s ease forwards;
}

.zone-nav-link:last-child {
  border-right: none;
}

.zone-nav-link:hover {
  filter: brightness(1.2);
}

.zone-nav-link span:last-child {
  display: none;
}

@media (min-width: 800px) {
  .zone-nav-link span:last-child {
    display: inline;
  }
}

.zone-nav-link:nth-child(1) { animation-delay: 0.1s; }
.zone-nav-link:nth-child(2) { animation-delay: 0.2s; }
.zone-nav-link:nth-child(3) { animation-delay: 0.3s; }
.zone-nav-link:nth-child(4) { animation-delay: 0.4s; }
.zone-nav-link:nth-child(5) { animation-delay: 0.5s; }
.zone-nav-link:nth-child(6) { animation-delay: 0.6s; }

@keyframes zoneNavAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zone-nav-techno { color: var(--techno); background: rgba(139, 92, 246, 0.15); }
.zone-nav-techno:hover { background: rgba(139, 92, 246, 0.3); }
.zone-nav-desinfo { color: var(--desinfo); background: rgba(239, 68, 68, 0.15); }
.zone-nav-desinfo:hover { background: rgba(239, 68, 68, 0.3); }
.zone-nav-attention { color: var(--attention); background: rgba(249, 115, 22, 0.15); }
.zone-nav-attention:hover { background: rgba(249, 115, 22, 0.3); }
.zone-nav-rhetorique { color: var(--rhetorique); background: rgba(236, 72, 153, 0.15); }
.zone-nav-rhetorique:hover { background: rgba(236, 72, 153, 0.3); }
.zone-nav-illusion { color: var(--illusion); background: rgba(6, 182, 212, 0.15); }
.zone-nav-illusion:hover { background: rgba(6, 182, 212, 0.3); }
.zone-nav-pseudo { color: var(--pseudo); background: rgba(34, 197, 94, 0.15); }
.zone-nav-pseudo:hover { background: rgba(34, 197, 94, 0.3); }

/* Brain lobes SVG */
.brain-lobes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.lobe {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  fill-opacity: 0.2;
  stroke: none;
}

.lobe-techno { fill: var(--techno); }
.lobe-desinfo { fill: var(--desinfo); }
.lobe-attention { fill: var(--attention); }
.lobe-rhetorique { fill: var(--rhetorique); }
.lobe-illusion { fill: var(--illusion); }
.lobe-pseudo { fill: var(--pseudo); }

@keyframes zoneBreathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@keyframes brainPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 10px rgba(252, 209, 22, 0.3)); }
  50% { transform: translate(-50%, -50%) scale(1.05); filter: drop-shadow(0 0 20px rgba(252, 209, 22, 0.5)); }
}

/* Central brain zone */
.lobe-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(252, 209, 22, 0.25) 0%, rgba(252, 209, 22, 0.1) 50%, transparent 80%);
  border-radius: 50%;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: brainPulse 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.lobe-center:hover {
  background: radial-gradient(ellipse at center, rgba(252, 209, 22, 0.4) 0%, rgba(252, 209, 22, 0.2) 50%, transparent 80%);
}

.lobe-center-icon {
  font-size: 3rem;
  filter: drop-shadow(0 2px 8px rgba(252, 209, 22, 0.5));
}

.lobe-center-label {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lobe-center:hover .lobe-center-label {
  opacity: 1;
}

/* Neural signals SVG */
.neural-signals {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.neural-signals line {
  stroke: var(--border);
  stroke-width: 1;
  opacity: 0.2;
  animation: lineFlicker 4s ease-in-out infinite;
}

@keyframes lineFlicker {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.3; }
}

.signal-pulse {
  fill: var(--accent);
  opacity: 0;
}

.signal-pulse.active {
  animation: signal-travel 2.5s ease-in-out infinite;
}

@keyframes signal-travel {
  0% { opacity: 0; offset-distance: 0%; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; offset-distance: 100%; }
}

.signal-path {
  fill: none;
  stroke: transparent;
  stroke-width: 2;
}

.signal-glow {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0;
  filter: blur(2px);
  stroke-dasharray: 15 150;
}

.signal-glow.active {
  animation: signal-flow var(--signal-duration, 2s) ease-in-out forwards;
}

.signal-techno { stroke: var(--techno); }
.signal-desinfo { stroke: var(--desinfo); }
.signal-illusion { stroke: var(--illusion); }
.signal-pseudo { stroke: var(--pseudo); }
.signal-attention { stroke: var(--attention); }
.signal-rhetorique { stroke: var(--rhetorique); }
.signal-cross { stroke: var(--accent); }

@keyframes signal-flow {
  0% { stroke-dashoffset: 165; opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.9; }
  100% { stroke-dashoffset: -165; opacity: 0; }
}

/* ============================================
   NEURONS (attractions)
   ============================================ */
.neuron {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  z-index: 3;
  transition: all 0.3s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(252, 209, 22, 0.3);
  touch-action: manipulation;
  opacity: 0;
  transform: scale(0.5);
  animation: neuronAppear 0.6s ease forwards;
}

.neuron-body {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
}

.neuron.open .neuron-body {
  background: var(--bg-card);
  border: 2px solid var(--neuron-color);
  box-shadow: 0 0 15px color-mix(in srgb, var(--neuron-color) 40%, transparent);
}

.neuron.closed .neuron-body {
  background: var(--bg);
  border: 2px dashed var(--border);
  opacity: 0.5;
  filter: grayscale(0.7);
}

.neuron:hover .neuron-body,
.neuron:active .neuron-body {
  transform: scale(1.2);
  box-shadow: 0 0 25px color-mix(in srgb, var(--neuron-color) 60%, transparent);
}

.neuron:active .neuron-body {
  transform: scale(1.1);
}

.neuron.closed:hover .neuron-body,
.neuron.closed:active .neuron-body {
  opacity: 0.7;
  filter: grayscale(0.4);
}

.neuron.visited .neuron-body {
  background: var(--neuron-color);
  border-color: var(--neuron-color);
}

.neuron.visited .neuron-name {
  color: var(--neuron-color);
}

.neuron-badge-popular {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
  z-index: 10;
  animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
  }
  50% {
    box-shadow: 0 2px 15px rgba(251, 191, 36, 0.8),
                0 0 20px rgba(251, 191, 36, 0.4);
  }
}

.attraction-badge-popular {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
  display: flex;
  align-items: center;
  gap: 3px;
}

.neuron-name {
  font-size: 0.6rem;
  font-weight: 600;
  margin-top: 0.25rem;
  text-align: center;
  max-width: 70px;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  background: var(--bg-card);
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  white-space: nowrap;
}

.neuron:hover .neuron-name {
  opacity: 1;
  transform: translateY(0);
}

/* Neuron colors by zone */
.neuron-techno { --neuron-color: var(--techno); }
.neuron-desinfo { --neuron-color: var(--desinfo); }
.neuron-illusion { --neuron-color: var(--illusion); }
.neuron-pseudo { --neuron-color: var(--pseudo); }
.neuron-attention { --neuron-color: var(--attention); }
.neuron-rhetorique { --neuron-color: var(--rhetorique); }

/* Neuron animations */
@keyframes neuronAppear {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.neuron:nth-child(1) { animation-delay: 0.1s; }
.neuron:nth-child(2) { animation-delay: 0.15s; }
.neuron:nth-child(3) { animation-delay: 0.2s; }
.neuron:nth-child(4) { animation-delay: 0.25s; }
.neuron:nth-child(5) { animation-delay: 0.3s; }
.neuron:nth-child(6) { animation-delay: 0.35s; }
.neuron:nth-child(7) { animation-delay: 0.4s; }
.neuron:nth-child(8) { animation-delay: 0.45s; }
.neuron:nth-child(9) { animation-delay: 0.5s; }
.neuron:nth-child(10) { animation-delay: 0.55s; }
.neuron:nth-child(11) { animation-delay: 0.6s; }
.neuron:nth-child(12) { animation-delay: 0.65s; }
.neuron:nth-child(13) { animation-delay: 0.7s; }
.neuron:nth-child(14) { animation-delay: 0.75s; }
.neuron:nth-child(15) { animation-delay: 0.8s; }
.neuron:nth-child(16) { animation-delay: 0.85s; }
.neuron:nth-child(17) { animation-delay: 0.9s; }
.neuron:nth-child(18) { animation-delay: 0.95s; }
.neuron:nth-child(19) { animation-delay: 1s; }
.neuron:nth-child(20) { animation-delay: 1.05s; }
.neuron:nth-child(n+21) { animation-delay: 1.1s; }

@keyframes neuronPulse {
  0%, 100% {
    box-shadow: 0 0 15px color-mix(in srgb, var(--neuron-color) 40%, transparent);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px color-mix(in srgb, var(--neuron-color) 80%, transparent),
                0 0 50px color-mix(in srgb, var(--neuron-color) 40%, transparent);
    transform: scale(1.1);
  }
}

.neuron.open .neuron-body.pulsing {
  animation: neuronPulse 1s ease-in-out;
}

/* Brain outline SVG */
.brain-outline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  opacity: 0.15;
  z-index: 0;
}

.brain-outline path {
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px var(--accent-dim));
}

.brain-outline path:first-child {
  stroke-width: 2.5;
  opacity: 0.8;
}

/* ============================================
   MONDE (Zone) SECTIONS
   ============================================ */
.monde {
  margin-bottom: 3rem;
  scroll-margin-top: 100px;
}

.monde-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.monde-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.monde-techno .monde-icon { background: rgba(139, 92, 246, 0.15); }
.monde-desinfo .monde-icon { background: rgba(239, 68, 68, 0.15); }
.monde-illusion .monde-icon { background: rgba(6, 182, 212, 0.15); }
.monde-pseudo .monde-icon { background: rgba(34, 197, 94, 0.15); }
.monde-attention .monde-icon { background: rgba(249, 115, 22, 0.15); }
.monde-rhetorique .monde-icon { background: rgba(236, 72, 153, 0.15); }

.monde-info {
  flex: 1;
}

.monde-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.monde-techno .monde-title { color: var(--techno); }
.monde-desinfo .monde-title { color: var(--desinfo); }
.monde-illusion .monde-title { color: var(--illusion); }
.monde-pseudo .monde-title { color: var(--pseudo); }
.monde-attention .monde-title { color: var(--attention); }
.monde-rhetorique .monde-title { color: var(--rhetorique); }

.monde-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.monde-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
}

/* ============================================
   ATTRACTIONS GRID
   ============================================ */
.attractions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.attraction {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
  cursor: default;
  position: relative;
  width: 180px;
  flex-shrink: 0;
}

.attraction.active {
  cursor: pointer;
}

.attraction.active:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.attraction.inactive {
  opacity: 0.4;
}

.attraction-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
}

.monde-techno .attraction-icon { color: var(--techno); }
.monde-desinfo .attraction-icon { color: var(--desinfo); }
.monde-attention .attraction-icon { color: var(--attention); }
.monde-rhetorique .attraction-icon { color: var(--rhetorique); }
.monde-illusion .attraction-icon { color: var(--illusion); }
.monde-pseudo .attraction-icon { color: var(--pseudo); }

.attraction-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.3px;
}

.attraction-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.attraction-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.attraction.inactive .attraction-badge {
  display: none;
}

/* ============================================
   DONATION BUTTON & POPUP
   ============================================ */
.donate-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  z-index: 1000;
  animation: pulse-donate 2s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.donate-btn:hover {
  transform: scale(1.1);
  animation: none;
}

@keyframes pulse-donate {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 4px 35px rgba(239, 68, 68, 0.7), 0 0 0 10px rgba(239, 68, 68, 0.1);
    transform: scale(1.05);
  }
}

.donate-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.donate-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.donate-popup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
  position: relative;
}

.donate-popup-overlay.active .donate-popup {
  transform: translateY(0) scale(1);
}

.donate-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.donate-popup-close:hover {
  color: var(--text);
}

.donate-popup-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.donate-popup h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.donate-popup p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.donate-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.donate-popup-btn {
  padding: 0.875rem 1.5rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.donate-popup-btn.primary {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: white;
}

.donate-popup-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.donate-popup-btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.donate-popup-btn.secondary:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ============================================
   SHARE TOASTS
   ============================================ */
.share-pending-toast,
.share-success-toast {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s ease;
}

.share-pending-toast.visible,
.share-success-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.share-pending-icon {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.share-pending-countdown {
  background: var(--accent);
  color: #000;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  min-width: 32px;
  text-align: center;
}

.share-success-toast {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-color: #22c55e;
  color: white;
}

/* ============================================
   SUPPORT TOAST
   ============================================ */
.support-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 420px;
  width: calc(100% - 2rem);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  z-index: 2000;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.support-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.support-toast-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s;
}

.support-toast-close:hover {
  color: var(--text);
}

.support-toast-content {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.support-toast-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.support-toast-text strong {
  display: block;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.support-toast-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.support-toast-text p:last-child {
  margin-bottom: 0;
}

.support-toast-text em {
  font-style: italic;
  opacity: 0.8;
}

.support-toast-cta {
  color: var(--text) !important;
  font-weight: 500;
}

.support-toast-actions {
  display: flex;
  gap: 0.75rem;
}

.support-toast-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.support-toast-btn.primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border: none;
  color: white;
}

.support-toast-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.support-toast-btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.support-toast-btn.secondary:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
  .header {
    padding: 1rem;
    position: relative;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .btn-glossaire,
  .theme-toggle {
    display: none !important;
  }

  .mobile-menu .lang-switcher {
    display: flex !important;
    width: 100%;
    border-radius: 12px;
    justify-content: center;
  }

  .menu-toggle {
    display: flex;
  }

  .main {
    padding: 2rem 1rem;
  }

  .stats {
    gap: 1.5rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .attractions {
    gap: 0.75rem;
  }

  .attraction {
    width: 160px;
    padding: 1rem;
  }

  .attraction-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .attraction-name {
    font-size: 0.8rem;
  }

  .brain-map {
    padding: 0;
    height: auto;
    min-height: calc(100vh - 150px);
  }

  .zone-nav {
    padding: 0.5rem;
    gap: 0.4rem;
  }

  .zone-nav-link {
    font-size: 0.65rem;
    padding: 0.4rem 0.7rem;
  }

  .brain-container {
    width: 100%;
    height: calc(100vh - 200px);
    min-height: 400px;
  }

  .neuron {
    min-width: 44px;
    min-height: 44px;
    padding: 6px;
  }

  .neuron-body {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .neuron-name {
    font-size: 0.5rem;
    max-width: 55px;
    text-align: center;
  }

  .lobe-center {
    width: 80px;
    height: 80px;
  }

  .lobe-center-icon {
    font-size: 2rem;
  }

  .lobe-center-label {
    font-size: 0.55rem;
    bottom: -20px;
  }
}

@media (max-width: 600px) {
  .main {
    padding: 0 !important;
    display: block;
  }

  .zone-nav {
    grid-template-columns: repeat(3, 1fr);
    flex-shrink: 0;
  }

  .zone-nav-link:nth-child(3) {
    border-right: none;
  }

  .zone-nav-link:nth-child(4),
  .zone-nav-link:nth-child(5),
  .zone-nav-link:nth-child(6) {
    border-top: 1px solid var(--border);
  }

  .brain-map {
    flex: 1;
    min-height: 0;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }

  .brain-container {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .neuron-body {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .neuron-name {
    font-size: 0.55rem;
    max-width: 60px;
  }
}

@media (max-width: 480px) {
  .attraction {
    width: 140px;
  }

  .monde-header {
    flex-wrap: wrap;
  }

  .monde-count {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .zone-nav-link {
    font-size: 0.6rem;
    padding: 0.3rem 0.5rem;
  }

  .zone-nav-link span:last-child {
    display: none;
  }

  .neuron {
    min-width: 44px;
    min-height: 44px;
    padding: 4px;
  }

  .neuron-body {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .neuron-name {
    display: none;
  }

  .lobe-center {
    width: 60px;
    height: 60px;
  }

  .lobe-center-icon {
    font-size: 1.5rem;
  }

  .lobe-center-label {
    display: none;
  }

  .donate-btn {
    bottom: 1.5rem;
    right: 1rem;
  }

  .donate-popup {
    padding: 1.5rem;
  }

  .donate-popup h3 {
    font-size: 1.25rem;
  }

  .support-toast {
    bottom: 1rem;
    padding: 1.25rem;
  }

  .support-toast-content {
    flex-direction: column;
    text-align: center;
  }

  .support-toast-icon {
    font-size: 2rem;
  }

  .support-toast-actions {
    flex-direction: column;
  }
}
