/*
ANIMATIONS DE BOUTONS AVANCÉES
Variantes d'animations sophistiquées pour les boutons
Note: Les boutons .btn--dot (accordéons) sont exclus de ces animations
*/

/* ========================================
   VARIANTE 1: EFFET DE GLOW
   ======================================== */
.btn--glow:not(.btn--dot) {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn--glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 0 20px rgba(75, 190, 207, 0.4);
  pointer-events: none;
}

.btn--glow:hover::after {
  opacity: 1;
}

.btn--glow.bg--primary::after {
  box-shadow: 0 0 20px rgba(75, 190, 207, 0.4);
}

.btn--glow.bg--secondary::after {
  box-shadow: 0 0 20px rgba(244, 150, 0, 0.4);
}

/* ========================================
   VARIANTE 2: EFFET DE BORDER ANIMÉ
   ======================================== */
.btn--border-animated:not(.btn--dot) {
  position: relative;
  background: transparent !important;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--border-animated::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn--border-animated:hover::before {
  opacity: 1;
}

.btn--border-animated.bg--primary {
  color: var(--color-primary);
}

.btn--border-animated.bg--secondary {
  color: var(--color-secondary);
}

.btn--border-animated.bg--light {
  color: var(--color-dark);
}

/* ========================================
   VARIANTE 3: EFFET DE RIPPLE
   ======================================== */
.btn--ripple:not(.btn--dot) {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--ripple::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 ease, height 0.6s ease;
}

.btn--ripple:hover::before {
  width: 300px;
  height: 300px;
}

/* ========================================
   VARIANTE 4: EFFET DE SLIDE
   ======================================== */
.btn--slide:not(.btn--dot) {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: skewX(-15deg);
  transition: left 0.5s ease;
}

.btn--slide:hover::before {
  left: 100%;
}

/* ========================================
   VARIANTE 5: EFFET DE PULSE
   ======================================== */
.btn--pulse:not(.btn--dot) {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  border: 2px solid currentColor;
  opacity: 0;
  transform: scale(1.2);
  transition: all 0.3s ease;
}

.btn--pulse:hover::after {
  opacity: 0.3;
  transform: scale(1.4);
}

/* ========================================
   VARIANTE 6: EFFET DE 3D
   ======================================== */
.btn--3d:not(.btn--dot) {
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn--3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.1);
  transform: translateZ(-10px);
  transition: transform 0.3s ease;
}

.btn--3d:hover {
  transform: translateY(-3px) rotateX(5deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.btn--3d:hover::before {
  transform: translateZ(-5px);
}

/* ========================================
   VARIANTE 7: EFFET DE MORPHING
   ======================================== */
.btn--morph:not(.btn--dot) {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius);
}

.btn--morph:hover {
  border-radius: calc(var(--radius) / 2);
  transform: scale(1.05);
}

/* ========================================
   VARIANTE 8: EFFET DE NEON
   ======================================== */
.btn--neon:not(.btn--dot) {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 5px rgba(75, 190, 207, 0.3);
}

.btn--neon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  box-shadow: 0 0 20px rgba(75, 190, 207, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn--neon:hover::before {
  opacity: 1;
}

.btn--neon.bg--primary::before {
  box-shadow: 0 0 20px rgba(75, 190, 207, 0.6);
}

.btn--neon.bg--secondary::before {
  box-shadow: 0 0 20px rgba(244, 150, 0, 0.6);
}

/* ========================================
   RESPONSIVE ET ACCESSIBILITÉ
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .btn--glow::after,
  .btn--border-animated::before,
  .btn--ripple::before,
  .btn--slide::before,
  .btn--pulse::after,
  .btn--3d::before,
  .btn--neon::before {
    transition: none !important;
    animation: none !important;
  }
  
  .btn--morph:hover {
    transform: none !important;
  }
}

/* ========================================
   ÉTATS D'ACCESSIBILITÉ
   ======================================== */
body.accessibility-mode .btn--glow,
body.accessibility-mode .btn--border-animated,
body.accessibility-mode .btn--ripple,
body.accessibility-mode .btn--slide,
body.accessibility-mode .btn--pulse,
body.accessibility-mode .btn--3d,
body.accessibility-mode .btn--morph,
body.accessibility-mode .btn--neon {
  transition: all 0.2s ease !important;
}

body.accessibility-mode .btn--glow::after,
body.accessibility-mode .btn--border-animated::before,
body.accessibility-mode .btn--ripple::before,
body.accessibility-mode .btn--slide::before,
body.accessibility-mode .btn--pulse::after,
body.accessibility-mode .btn--3d::before,
body.accessibility-mode .btn--neon::before {
  transition: opacity 0.2s ease !important;
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */
@media (max-width: 768px) {
  .btn--3d:hover {
    transform: translateY(-2px);
  }
  
  .btn--morph:hover {
    transform: scale(1.02);
  }
  
  .btn--pulse::after {
    transform: scale(1.1);
  }
  
  .btn--pulse:hover::after {
    transform: scale(1.2);
  }
} 