/* ErbxAI - Styles optimisés et fusionnés */

/* ============================================
   1. EFFETS NÉON ET BACKGROUND
   ============================================ */

body {
  position: relative;
  overflow-x: hidden;
}

/* Fond dégradé animé */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #0f172a 50%, #1e1b4b 75%, #0f172a 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: -2;
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Cercles néon flottants */
.neon-circle {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.neon-circle-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, transparent 70%);
  top: -200px;
  left: -200px;
}

.neon-circle-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
  top: 50%;
  right: -250px;
  animation-delay: 5s;
}

.neon-circle-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
  bottom: -175px;
  left: 30%;
  animation-delay: 10s;
}

.neon-circle-4 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.4) 0%, transparent 70%);
  top: 20%;
  left: 50%;
  animation-delay: 7s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -50px) scale(1.1); }
  50% { transform: translate(-30px, 50px) scale(0.9); }
  75% { transform: translate(30px, 30px) scale(1.05); }
}

/* Lignes néon animées */
.neon-line {
  position: fixed;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.8), transparent);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.8), 0 0 20px rgba(59, 130, 246, 0.5);
  animation: lineMove 8s linear infinite;
  pointer-events: none;
  z-index: -1;
}

.neon-line-1 {
  width: 300px;
  top: 20%;
  left: -300px;
}

.neon-line-2 {
  width: 400px;
  top: 60%;
  left: -400px;
  animation-delay: 3s;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.8), transparent);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.8), 0 0 20px rgba(139, 92, 246, 0.5);
}

.neon-line-3 {
  width: 250px;
  top: 80%;
  left: -250px;
  animation-delay: 6s;
  background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.8), transparent);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.8), 0 0 20px rgba(236, 72, 153, 0.5);
}

@keyframes lineMove {
  0% { left: -400px; }
  100% { left: 100%; }
}

/* Particules brillantes */
.particle {
  position: fixed;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: particleFloat 15s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) translateX(100px); opacity: 0; }
}

/* Grille néon subtile */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
  animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* ============================================
   2. LOGO DIV
   ============================================ */

div.rounded-xl[style*="background-image"] {
  width: 120px !important;
  height: 120px !important;
  min-width: 120px !important;
  min-height: 120px !important;
}

/* Logo plus petit sur le dashboard - détection par URL */
div.rounded-xl[style*="background-image"][data-dashboard="true"],
body.dashboard-page div.rounded-xl[style*="background-image"] {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
}

/* ============================================
   3. RESPONSIVE MOBILE
   ============================================ */

@media (max-width: 768px) {
  body { font-size: 14px; padding: 0; margin: 0; }
  
  #root { padding: 0; width: 100%; box-sizing: border-box; overflow-x: hidden; }
  
  /* Conteneurs */
  div[class*="container"], div[class*="wrapper"], main, section {
    padding: 15px !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Typographie */
  h1 { font-size: 1.5rem !important; line-height: 1.3 !important; margin: 15px 0 !important; padding: 0 10px !important; }
  h2 { font-size: 1.3rem !important; line-height: 1.4 !important; margin: 12px 0 !important; }
  h3 { font-size: 1.1rem !important; margin: 10px 0 !important; }
  p { font-size: 0.9rem !important; line-height: 1.6 !important; margin: 8px 0 !important; }
  
  /* Boutons */
  button, a[class*="button"] {
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
    width: auto !important;
    min-width: 80px !important;
    white-space: nowrap !important;
    min-height: 44px !important;
  }
  
  /* Header */
  header, nav, div[class*="header"], div[class*="nav"] {
    flex-wrap: nowrap !important;
    padding: 15px !important;
    gap: 10px !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-height: 80px !important;
  }
  
  /* Logo div */
  div.rounded-xl[style*="background-image"] {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    min-height: 90px !important;
  }
  
  /* Inputs */
  input, textarea, select {
    font-size: 16px !important;
    padding: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Images */
  img:not(.erbx-logo) { max-width: 100% !important; height: auto !important; }
  
  /* Effets néon réduits */
  .neon-circle { filter: blur(30px) !important; opacity: 0.2 !important; }
  .neon-line, .particle { display: none; }
  body::after { background-size: 30px 30px !important; opacity: 0.2 !important; }
  
  /* Classes Tailwind */
  .text-6xl { font-size: 2.5rem !important; line-height: 1.1 !important; }
  .text-4xl { font-size: 2rem !important; line-height: 1.2 !important; }
  .text-3xl { font-size: 1.75rem !important; line-height: 1.3 !important; }
  .text-2xl { font-size: 1.5rem !important; line-height: 1.4 !important; }
  .p-12 { padding: 1.5rem !important; }
  .px-12 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  .py-20 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .max-w-6xl, .max-w-4xl, .max-w-7xl { max-width: 95vw !important; }
  .grid-cols-2, .grid-cols-3 { grid-template-columns: 1fr !important; gap: 1rem !important; }
}

@media (max-width: 480px) {
  body { font-size: 13px; }
  
  h1 { font-size: 1.3rem !important; padding: 0 5px !important; }
  h2 { font-size: 1.15rem !important; }
  h3 { font-size: 1rem !important; }
  
  button, a[class*="button"] {
    padding: 10px 15px !important;
    font-size: 0.85rem !important;
    min-width: 70px !important;
  }
  
  header, nav, div[class*="header"], div[class*="nav"] {
    padding: 10px !important;
    min-height: 70px !important;
  }
  
  div.rounded-xl[style*="background-image"] {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
  }
  
  .neon-circle { display: none; }
  
  .text-6xl { font-size: 2rem !important; }
  .text-4xl { font-size: 1.75rem !important; }
  .text-3xl { font-size: 1.5rem !important; }
}

/* Tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
  div.rounded-xl[style*="background-image"] {
    width: 100px !important;
    height: 100px !important;
  }
}

/* ============================================
   4. EFFET GLOW MODERNE SUR LE TEXTE HERO
   ============================================ */

.hero-text-enhanced {
  position: relative;
  font-weight: 700 !important;
}

.glow-text {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShiftText 3s ease infinite, glowPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
  position: relative;
}

/* Animation du dégradé */
@keyframes gradientShiftText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Animation du glow pulsant */
@keyframes glowPulse {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 35px rgba(139, 92, 246, 0.8));
  }
}

/* Effet de brillance qui traverse le texte */
.glow-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* Particules autour du texte */
.hero-text-enhanced::after {
  content: '✨';
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  animation: sparkle 2s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0.8;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
  }
}

/* Responsive - réduire les effets sur mobile */
@media (max-width: 768px) {
  .glow-text {
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
  }
  
  .hero-text-enhanced::after {
    font-size: 1rem;
    right: -20px;
  }
}

/* Éviter débordement horizontal */
* { max-width: 100%; box-sizing: border-box; }
html, body { overflow-x: hidden; width: 100%; }

