/* --- Variables globales --- */
:root {
  --font-family: 'Poppins', sans-serif;
  --primary-color: white;
  --bg-color: #000;
  --transition-speed: 0.3s;
}

/* --- Global Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  font-family: var(--font-family);
  background: url('../images/background2.png') no-repeat center top;
  background-size: cover;
  overflow-x: hidden;
  animation: gentleMove 12s ease-in-out infinite alternate;
}

@keyframes gentleMove {
  0% {
    background-position: center 0;
  }
  50% {
    background-position: center -30px;
  }
  100% {
    background-position: center 0;
  }
}

.container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--primary-color);
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

/* Logo et animation de l'image */
.logo img {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  transition: filter 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
}

/* Liens */
.links {
  display: flex;
  justify-content: center;
  gap: 80px;
}

.link {
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 2px;
  color: white;
  background-image: linear-gradient(to right, white 50%, black 50%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.5s ease;
}

.link:hover {
  background-position: -100% 0;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #000;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  padding: 15px;
}

.follow-us {
  margin-top: 10px;
  font-size: 14px;
}

.follow-us a {
  color: white;
  margin-left: 8px;
  font-weight: bold;
  text-decoration: none;
}

.follow-us a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Navigation & Burger Menu */
.menu-container {
  position: relative;
}

.burger-menu {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1000;
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: transform var(--transition-speed), opacity var(--transition-speed);
}

.menu {
  display: flex;
  gap: 20px;
}

@media (max-width: 768px) {
  .burger-menu {
    display: flex;
  }

  .menu {
    position: absolute;
    top: 50px;
    right: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    transform: translateX(100%);
    transition: transform var(--transition-speed);
  }

  .menu.open {
    transform: translateX(0);
  }

  .menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 0;
    text-align: center;
  }
}

.burger-menu.open span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.burger-menu.open span:nth-child(2) {
  opacity: 0;
}

.burger-menu.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .logo img {
    width: 150px;
  }
  .links {
    gap: 15px;
  }
  .link {
    font-size: 20px;
  }
  footer {
    padding: 10px;
  }
}

/* Affichage du logo animé (vidéo) vs logo statique (PNG) */

/* Par défaut (desktop) : on affiche le conteneur vidéo et on masque le conteneur statique */
.video-logo {
  display: block;
}
.static-logo {
  display: none;
}

/* Pour les écrans mobiles, on cache la vidéo et on affiche le logo PNG statique */
@media (max-width: 768px) {
  .video-logo {
    display: none;
  }
  .static-logo {
    display: block;
  }
}
