/* Thème Syneria sur le template */
:root {
  --syneria-fuchsia: #e879f9;
  --syneria-violet: #8b5cf6;
  --syneria-bg-deep: #020006;
  --syneria-bg-mid: #0f0a1d;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 30% 12%, rgba(232,121,249,0.12), transparent 55%),
    radial-gradient(circle at 70% 10%, rgba(99,102,241,0.12), transparent 55%),
    linear-gradient(180deg, var(--syneria-bg-deep) 0%, var(--syneria-bg-mid) 60%, #05020c 100%);
  color: #e5e7eb;
}

.custom-cursor {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 9999px;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.8;
  mix-blend-mode: screen;
  transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease;
  transform: translate(0, 0) translate(-50%, -50%);
  will-change: transform;
  box-shadow:
    0 0 18px rgba(232, 121, 249, 0.6),
    0 0 32px rgba(139, 92, 246, 0.45);
}

.custom-cursor-trail {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  border: 1px solid rgba(232, 121, 249, 0.55);
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.2s ease, border-color 0.2s ease, width 0.2s ease, height 0.2s ease;
  transform: translate(0, 0) translate(-50%, -50%);
  will-change: transform;
  box-shadow: 0 0 40px rgba(232, 121, 249, 0.3);
}

.custom-cursor,
.custom-cursor-trail {
  display: none;
}

.nav-logo-highlight {
  display: none;
}

.nav-logo-img {
  height: 2.5rem;
  width: auto;
  max-width: 5rem;
  display: inline-block;
  object-fit: contain;
  line-height: 1;
}

@media (max-width: 640px) {
  .nav-logo-img {
    height: 2rem;
  }
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #020008;
}

::-webkit-scrollbar-thumb {
  background: #3b0764;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5b21b6;
}

.bg-grid-white\[0\.02\] {
  background-size: 50px 50px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

.glitch-text {
  position: relative;
  text-shadow:
    0.05em 0 0 rgba(232, 121, 249, 0.55),
    -0.025em -0.05em 0 rgba(139, 92, 246, 0.55),
    0.025em 0.05em 0 rgba(14, 165, 233, 0.4);
  animation: glitch 4000ms infinite;
}

@keyframes glitch {
  0%,
  14% {
    text-shadow:
      0.05em 0 0 rgba(232, 121, 249, 0.5),
      -0.05em -0.025em 0 rgba(139, 92, 246, 0.5),
      -0.025em 0.05em 0 rgba(14, 165, 233, 0.4);
  }
  15%,
  49% {
    text-shadow:
      -0.05em -0.025em 0 rgba(232, 121, 249, 0.5),
      0.025em 0.025em 0 rgba(139, 92, 246, 0.5),
      -0.05em -0.05em 0 rgba(14, 165, 233, 0.4);
  }
  50%,
  99% {
    text-shadow:
      0.025em 0.05em 0 rgba(232, 121, 249, 0.5),
      0.05em 0 0 rgba(139, 92, 246, 0.5),
      0 -0.05em 0 rgba(14, 165, 233, 0.4);
  }
  100% {
    text-shadow:
      -0.025em 0 0 rgba(232, 121, 249, 0.5),
      -0.025em -0.025em 0 rgba(139, 92, 246, 0.5),
      -0.025em -0.05em 0 rgba(14, 165, 233, 0.4);
  }
}

.typing-text {
  border-right: 2px solid rgba(232, 121, 249, 0.9);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: rgba(232, 121, 249, 0.9);
  }
}

section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.hover\:transform:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-grid:only-child {
  place-items: center;
}

.team-grid > * {
  margin: 0 auto;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.team-grid:has(> :only-child) {
  justify-content: center;
  grid-template-columns: minmax(auto, 300px);
}

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.badge-syneria {
  border-radius: 9999px;
  border: 1px solid rgba(232, 121, 249, 0.4);
  background: radial-gradient(circle at 0% 0%, rgba(232, 121, 249, 0.28), transparent 60%),
    rgba(15, 23, 42, 0.8);
  padding: 0.35rem 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill-tag {
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
}

.rule-category-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at 0% 0%, rgba(232, 121, 249, 0.12), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(56,189,248,0.1), transparent 55%),
    rgba(15, 23, 42, 0.95);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15,23,42,0.4);
}

.rule-category-card h3 {
  letter-spacing: 0.03em;
}

.rule-anchor {
  scroll-margin-top: 7rem;
}

.toc-reglement a {
  border-radius: 9999px;
}
