@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lilita+One&display=swap');
@font-face {
  font-family: 'Gobold-Bold';
  src: url('../assets/Gobold-Bold.woff') format('woff');
}

body {
  background-color: #000000;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  color: white;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1%, rgba(0, 0, 0, 0) 60%);
  animation: rotate 60s infinite linear;
  z-index: 0;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

a {
  text-decoration: none;
}

main {
  position: relative;
  z-index: 1;
  margin-bottom: 100px;
}

.contenu {
  margin: 150px 0 100px;
  padding-bottom: 25px;
  border-bottom: solid 2px white;
  text-align: center;
  opacity: 0;
  animation: fadeIn 2s forwards;
}

.contenu .titre h1 {
  font-family: 'Lilita One', sans-serif;
  font-weight: 300;
  font-size: 60px;
  color: white;
  margin: 0;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 5px #55B039, 0 0 10px #55B039, 0 0 15px #55B039, 0 0 20px #55B039, 0 0 25px #55B039, 0 0 30px #55B039, 0 0 35px #55B039;
  }
  100% {
    text-shadow: 0 0 10px #55B039, 0 0 20px #55B039, 0 0 30px #55B039, 0 0 40px #55B039, 0 0 50px #55B039, 0 0 60px #55B039, 0 0 70px #55B039;
  }
}

.container-article {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.container-article .article {
  width: 500px;
  margin: 20px;
  padding-bottom: 35px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  animation: fadeInUp 1s forwards;
}

.container-article .article:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.container-article img {
  width: 100%;
  border-radius: 2%;
  object-fit: cover;
  transition: transform 0.3s, filter 0.3s;
}

.container-article img:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.container-article h1 {
  color: #55B039;
  font-size: 28px;
  font-weight: 300;
  font-family: 'Lilita One', sans-serif;
  margin-top: 15px;
  transition: color 0.3s;
}

.container-article h1:hover {
  color: #fff;
}

.container-article p {
  font-size: 16px;
}

@media (max-width: 430px) {
  .contenu .titre h1 {
    font-size: 40px;
  }

  .container-article {
    max-width: 333px;
  }

  .container-article .article {
    width: 100%;
  }

  .container-article img {
    max-height: 183px;
    max-width: 100%;
  }

  .container-article h1 {
    font-size: 20px;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
