@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600&display=swap');

/*
 * Base Styles & Utilities
 */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-image: url("ee.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #2a4bd7; /* texte bleu */
  font-family: 'Orbitron', sans-serif;
  line-height: 1.6;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  user-select: none;
  position: relative;
  overflow-x: hidden;
  z-index: 1;
  padding: 40px 20px;
}

/*
 * Animations
 */
@keyframes rotateLogo {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseLogo {
  0%, 100% {
    opacity: 0.02;
    transform: scale(1);
  }
  50% {
    opacity: 0.045;
    transform: scale(1.02);
  }
}

/*
 * Background & Decorative Elements
 */
.background-logo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("pro.png") center center no-repeat;
  background-size: 500px;
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
  animation: rotateLogo 120s linear infinite, pulseLogo 15s ease-in-out infinite;
}

.logo-side {
  width: 100px;
  height: 100px;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 1;
  filter: none;
  pointer-events: auto;
  cursor: pointer;
}

.logo-left {
  left: 0;
}

.logo-right {
  right: 0;
  transform: translateY(-50%) scaleX(-1);
}

.neon-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0, 100, 255, 0.4), transparent 70%);
  box-shadow:
    0 0 5px #007fff,
    0 0 10px #007fff,
    0 0 15px #007fff;
  z-index: -1;
}

.neon-ring::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 25px;
  background: #007fff;
  border-radius: 50%;
  box-shadow:
    0 0 15px #007fff,
    0 0 30px #007fff,
    0 0 50px #007fff;
  transform-origin: -80px;
  animation: orbit 5s linear infinite;
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(80px);
  }
  100% {
    transform: rotate(360deg) translateX(80px);
  }
}

/*
 * Corner Images
 */
.corner-image {
  position: fixed;
  z-index: 4;
  pointer-events: none;
  opacity: 0.25;
  transition: transform 1s ease;
}

.top-left-small {
  top: 30px;
  left: 30px;
  width: 80px;
}

.bottom-right-large {
  bottom: 30px;
  right: 30px;
  width: 180px;
}

.left-center-medium {
  top: 50%;
  left: 30px;
  width: 100px;
  transform: translateY(-50%);
}

.article-image {
  width: 100%;
  max-width: 800px;
  margin: 25px auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 50, 0.6);
}

/*
 * Typography
 */
h1, h2 {
  text-align: center;
  color: #4a90e2;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.3em;
  text-shadow:
    0 0 6px #4a90e2,
    0 0 12px #2865c7;
}

h1 {
  font-size: 3.8em;
}

h2 {
  font-size: 2.5em;
  margin-top: 1em;
}

p {
  font-size: 1.3em;
  margin-bottom: 1.5em;
  color: #2a4bd7;
  text-shadow: 0 0 2px #4a90e2;
}

strong {
  color: #3f7adf;
  text-shadow:
    0 0 6px #3f7adf;
}

/*
 * Container Styles
 */
.container {
  background: #001020;
  padding: 40px 35px;
  border-radius: 15px;
  border: 1.5px solid #4a90e2;
  box-shadow:
    0 0 8px #4a90e2,
    inset 0 0 12px #2a4bd7;
  position: relative;
  z-index: 1;
}

/*
 * Highlight Class
 */
.highlight {
  color: #3f7adf;
  text-shadow: 0 0 4px #3f7adf;
}

/*
 * Responsive Adjustments
 */
@media (max-width: 600px) {
  body {
    padding: 30px 15px;
  }
  h1 {
    font-size: 2.8em;
  }
  h2 {
    font-size: 2em;
  }
  p {
    font-size: 1.1em;
  }
  .container {
    padding: 25px 20px;
  }
  .logo-side {
    display: none;
  }
  .corner-image {
    display: none;
  }
}

.neon-orb-path {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.neon-orb {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #005eff;
  box-shadow:
    0 0 10px #005eff,
    0 0 20px #aaddff,
    0 0 40px #000044;
}

/* Animation identique mais avec décalage */
.orb-1 {
  animation: moveAroundBorder 6s linear infinite;
}

.orb-2 {
  animation: moveAroundBorder 6s linear infinite;
  animation-delay: 3s;
}

@keyframes moveAroundBorder {
  0% {
    top: 0;
    left: 0;
  }
  25% {
    top: 0;
    left: 100%;
    transform: translateX(-100%);
  }
  50% {
    top: 100%;
    left: 100%;
    transform: translate(-100%, -100%);
  }
  75% {
    top: 100%;
    left: 0;
    transform: translateY(-100%);
  }
  100% {
    top: 0;
    left: 0;
    transform: none;
  }
}
