/* auteur : Z3S_2 */

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  color: white;
  overflow-x: hidden;
  position: relative;
  background: linear-gradient(120deg, #0b0b0b, #1c1c1c, #2e2e2e, #1c1c1c);
  background-size: 300% 300%;
  animation: containerGradient 35s ease infinite;
}

@keyframes fadeSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideLeft {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeSlideRight {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    text-shadow: 0 0 8px rgba(0, 255, 120, 0.7);
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 255, 120, 1);
  }
}

.container {
  margin-top: 90px;
  width: 100%;
  max-width: 900px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.logo-container h1 {
  font-family: "Press Start 2P", cursive;
  font-size: 1.8rem;
  text-align: center;
  text-shadow: 0 0 8px #e98a4f;
  margin-bottom: 20px;
  margin-top: -10px;
}

.intro-box {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
  animation: fadeSlideDown 0.8s ease;
}

.rule-box {
  background: rgba(0, 0, 0, 0.45);
  border-left: 4px solid #e98a4f;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 20px;
  animation: fadeSlideUp 0.8s ease forwards;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.rule-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #e98a4f;
}

.rules .rule-box:nth-child(2) {
  animation-delay: 0.2s;
}

.rules .rule-box:nth-child(3) {
  animation-delay: 0.4s;
}

.rules .rule-box:nth-child(4) {
  animation-delay: 0.6s;
}

.rules .rule-box:nth-child(5) {
  animation-delay: 0.8s;
}

.rules .rule-box:nth-child(6) {
  animation-delay: 1s;
}

.rule-box h2 {
  color: #e98a4f;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.rule-box h3 {
  color: #e98a4f;
  font-size: 1.4rem;
  margin: 10px 0 6px;
  line-height: 1.8rem;
}

.rule-box p {
  font-size: 1rem;
  margin: 4px 0;
  line-height: 1.5;
}

.rule-box h5 {
  font-size: 1rem;
  color: #f5d1a9;
  margin: 4px 0;
  line-height: 1.5;
}

.rule-box h5::before {
  content: "➮";
  color: #ff3333;
  margin-right: 6px;
}

.last-mod {
  margin-top: 25px;
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.7;
}

footer {
  margin-top: 40px;
  font-size: 0.75rem;
  color: #aaa;
  text-align: center;
  z-index: 2;
  animation: fadeSlideUp 1s ease;
}

@media (max-width: 1024px) {
  .container {
    padding: 20px;
    margin-top: 120px;
  }

  h1 {
    font-size: 1.4rem;
  }

  .header-logo {
    width: 40px;
  }

  .site-title {
    font-size: 1rem;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    gap: 20px;
    background: rgba(0, 0, 0, 0.9);
    width: 200px;
    height: 100vh;
    padding: 40px 20px;
    transition: right 0.3s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 1025px) {
  .rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1600px;
    margin: 0 auto;
  }

  .rules .rule-box:first-child {
    grid-column: 1/-1;
    justify-self: center;
    margin-bottom: 40px;
  }

  .rule-box {
    margin-bottom: 0;
  }
}

#box2 p {
  line-height: 1.6;
  font-size: 0.95rem;
  color: #f1f1f1;
}

#box2 ul {
  margin-left: 1.5rem;
  list-style-type: disc;
  line-height: 1.5;
}

#box2 li {
  margin-bottom: 0.5rem;
}

#box2 .last-mod {
  font-size: 0.85rem;
  color: #a0a0a0;
  text-align: right;
  margin-top: 1rem;
}

#box2 {
  margin-top: 2rem;
}
