Accueil

Modifié par Admin le 2026/05/11 09:22

.bouton-guide-multicolore {
  display: inline-block;
  padding: 40px 80px;
  font-size: 36px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
  background-size: 300% 300%;
  border-radius: 60px;
  box-shadow: 0 0 40px rgba(102, 126, 234, 0.8), 0 0 80px rgba(118, 75, 162, 0.6);
  transition: all 0.3s ease;
  animation: gradient-shift 3s ease infinite, pulse-glow 1.5s ease-in-out infinite, flash-extreme 0.8s linear infinite;
  text-align: center;
  border: 3px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-family: Arial, sans-serif;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.bouton-guide-multicolore::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 2s linear infinite;
}

.bouton-guide-multicolore:hover {
  transform: translateY(-8px) scale(1.15) rotate(2deg);
  box-shadow: 0 0 60px rgba(102, 126, 234, 1), 0 0 120px rgba(118, 75, 162, 0.8), 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: gradient-shift 1s ease infinite, pulse-glow 0.5s ease-in-out infinite, flash-extreme 0.3s linear infinite, shake 0.5s ease infinite;
}

.bouton-guide-multicolore:active {
  transform: translateY(-3px) scale(1.1);
}

/* Cercles hypnotiques */
.hypnotic-circle {
  position: absolute;
  border-radius: 50%;
  border: 3px solid;
  animation: spin-hypnotic 4s linear infinite;
}

.circle1 {
  width: 300px;
  height: 300px;
  border-color: rgba(102, 126, 234, 0.6) transparent rgba(240, 147, 251, 0.6) transparent;
  animation: spin-hypnotic 3s linear infinite;
}

.circle2 {
  width: 400px;
  height: 400px;
  border-color: transparent rgba(118, 75, 162, 0.5) transparent rgba(79, 172, 254, 0.5);
  animation: spin-hypnotic-reverse 4s linear infinite;
}

.circle3 {
  width: 500px;
  height: 500px;
  border-color: rgba(0, 242, 254, 0.4) transparent rgba(240, 147, 251, 0.4) transparent;
  animation: spin-hypnotic 5s linear infinite;
}

.circle4 {
  width: 600px;
  height: 600px;
  border-color: transparent rgba(102, 126, 234, 0.3) transparent rgba(118, 75, 162, 0.3);
  animation: spin-hypnotic-reverse 6s linear infinite;
}

/* Spirale hypnotique */
.spiral {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(102, 126, 234, 0.3) 90deg,
    transparent 180deg,
    rgba(240, 147, 251, 0.3) 270deg,
    transparent 360deg
  );
  animation: spin-hypnotic 8s linear infinite;
}

/* Rayons rotatifs */
.ray {
  position: absolute;
  width: 400px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.8), transparent);
  transform-origin: center;
  animation: spin-ray 3s linear infinite;
}

.ray:nth-child(2) {
  animation-delay: -1s;
}

.ray:nth-child(3) {
  animation-delay: -2s;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.8), 0 0 80px rgba(118, 75, 162, 0.6);
  }
  50% { 
    box-shadow: 0 0 80px rgba(240, 147, 251, 1), 0 0 160px rgba(79, 172, 254, 0.9), 0 0 200px rgba(0, 242, 254, 0.7);
  }
}

@keyframes flash-extreme {
  0%, 49%, 51%, 100% { 
    opacity: 1;
    filter: brightness(1);
  }
  50% { 
    opacity: 0.7;
    filter: brightness(1.8) saturate(1.5);
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

@keyframes shake {
  0%, 100% { transform: translateY(-8px) scale(1.15) rotate(0deg); }
  25% { transform: translateY(-8px) scale(1.15) rotate(-3deg); }
  75% { transform: translateY(-8px) scale(1.15) rotate(3deg); }
}

@keyframes spin-hypnotic {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spin-hypnotic-reverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes spin-ray {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.bouton-container {
  text-align: center;
  padding: 100px 20px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1a1a2e 0%, #0f0f1e 100%);
  position: relative;
  overflow: hidden;
}

.hypnotic-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sound-control {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(102, 126, 234, 0.8);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sound-control:hover {
  background: rgba(118, 75, 162, 0.9);
}
// Création du contexte audio
const audioContext = new (window.AudioContext || window.webkitAudioContext)();
let oscillator = null;
let gainNode = null;
let isPlaying = false;

function playTututu() {
  if (oscillator) return; // Déjà en train de jouer
  
  oscillator = audioContext.createOscillator();
  gainNode = audioContext.createGain();
  
  oscillator.connect(gainNode);
  gainNode.connect(audioContext.destination);
  
  // Fréquence pour le son "tu"
  oscillator.frequency.value = 800;
  oscillator.type = 'square'; // Son électronique
  
  // Volume
  gainNode.gain.value = 0.1;
  
  oscillator.start();
  isPlaying = true;
  
  // Créer l'effet tututututu en modulant la fréquence
  let time = audioContext.currentTime;
  const pattern = [800, 900, 800, 950, 800, 900, 800, 1000]; // Variation de fréquences
  const duration = 0.1; // Durée de chaque "tu"
  
  function schedulePattern() {
    if (!isPlaying) return;
    
    pattern.forEach((freq, index) => {
      oscillator.frequency.setValueAtTime(freq, time + (index * duration));
    });
    
    time += pattern.length * duration;
    setTimeout(schedulePattern, pattern.length * duration * 1000);
  }
  
  schedulePattern();
}

function stopSound() {
  if (oscillator) {
    isPlaying = false;
    oscillator.stop();
    oscillator.disconnect();
    oscillator = null;
    gainNode.disconnect();
    gainNode = null;
  }
}

// Contrôle du bouton
const soundToggle = document.getElementById('soundToggle');
let soundEnabled = true;

soundToggle.addEventListener('click', function() {
  soundEnabled = !soundEnabled;
  if (soundEnabled) {
    playTututu();
    soundToggle.textContent = '🔊 Son ON';
  } else {
    stopSound();
    soundToggle.textContent = '🔇 Son OFF';
  }
});

// Démarrer automatiquement le son
playTututu();