/* Style global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100%;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-style: normal;
  background-color: #000000;
  overflow: hidden;
}

.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.background-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  width: 100vw;
  height: auto;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(0, 0, 0, 0.8);
  color: #c9e1b7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  z-index: 100;
  border-bottom: 1px solid #83bb5c;
}

.header h1 {
  margin: 0;
  flex-grow: 1;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
}

.logo {
  width: auto;
  height: auto;
}

.main-content {
  position: absolute;
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
  z-index: 1;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.button-group a {
  background-color: rgba(255, 255, 255, 0.5);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.2s;
  display: inline-block;
  text-align: center;
}

.button-group a:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Version Mobile */
@media (max-width: 768px) {
	
  .main-content {
    position: fixed;
    top: auto;               /* annule le centrage vertical */
    transform: none;         /* supprime le translateY */
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%); /* recentre horizontalement */
  }

  .button-group {
    flex-direction: row;
    gap: 5px;
  }

  .button-group button {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
	
  .background-container video {
    width: auto;
    height: 100vh;
  }

  .header {
    height: 70px;
    padding: 0 10px;
  }

  .header h1 {
    font-size: 16px;
  }
}


/* Styles pour l'écran de chargement */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000; /* Fond noir */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000; /* Au-dessus de tout le reste */
  transition: opacity 0.8s ease-out;
}

#loading-logo {
  width: 200px; /* Taille initiale du logo */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease-out;
  transform-origin: top left;
}

/* Cache le contenu du site au chargement */
body.loading #loading-screen {
  opacity: 1;
}

body:not(.loading) #loading-screen {
  opacity: 0;
  pointer-events: none;
}

/* Transition du logo pour se réduire */
body:not(.loading) #loading-logo {
  width: 70px; /* Taille finale du logo */
  top: 0; /* Coin supérieur gauche */
  left: 0; /* Coin supérieur gauche */
  transform: translate(0, 0); /* Pas de décalage pour le coin */
}
