/* Animations générales */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomBackground {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.05);
  }
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  background: url('/img/background/fond.png') center center / cover no-repeat;
  position: relative;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('img/background/fond.png') center center / cover no-repeat;
  z-index: -2;
  animation: zoomBackground 30s ease-in-out infinite alternate;
}

header,
footer {
  background-color: #2B7D2D;
  color: white;
  width: 100%;
  height: 5vh;
  z-index: 10;
  animation: fadeIn 1.2s ease forwards;
}

.info-text,
p {
  color: white;
  text-decoration: none;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  animation: fadeIn 2s ease forwards;
}

.main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90vh;
  text-align: center;
  padding: 20px;
  z-index: 1;
  position: relative;
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(90deg, #ffffff, #2B7D2D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  opacity: 0;
  animation: fadeInUp 1.6s ease-out 0.3s forwards;
}

a.info-text,
a.text-white {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color 0.3s ease;
}

a.info-text::after,
a.text-white::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background-color: white;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

a.info-text:hover::after,
a.text-white:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
