@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* ------------------------------ */
/* RESET & STYLES GLOBAUX        */
/* ------------------------------ */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #3b2f2f; /* Brun terreux */
  font-family: 'Orbitron', sans-serif;
  
  /* Centrage vertical/horizontal */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ------------------------------ */
/* CONTENEUR PRINCIPAL            */
/* ------------------------------ */
.video-container {
  position: relative;
  margin: 20px auto;
  width: 80%;            /* Largeur réactive */
  max-width: 800px;      /* Limite max sur écran large */
  border: 3px solid #a4c639;
  border-radius: 12px;
  box-shadow: 0 0 15px #a4c639;
  overflow: hidden;

  /* Pas de height fixe => s'adapte au contenu (vidéo + boutons) */
  display: flex;
  flex-direction: column;
}

/* ------------------------------ */
/* VIDÉO                          */
/* ------------------------------ */
#bgvid {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ------------------------------ */
/* CONTENEUR DES BOUTONS          */
/* ------------------------------ */
.buttons-container {
  display: flex;
  flex-wrap: wrap;         /* Permet le retour à la ligne si nécessaire */
  justify-content: center; /* Aligne les boutons au centre */
  gap: 20px;               /* Espace horizontal/vertical entre boutons */
  background: #3b2f2f;
  padding: 20px;
}

/* ------------------------------ */
/* BOUTONS                        */
/* ------------------------------ */
.btn {
  /* “flex: 1 1 45%” => chaque bouton fait ~45% de la largeur, 
     garde la même taille si l’un passe sur la ligne suivante. */
  flex: 1 1 45%;
  box-sizing: border-box;

  text-align: center;
  white-space: nowrap;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;

  color: #3b2f2f;       /* Brun foncé */
  background: #a4c639;  /* Vert clair */
  border: 2px solid #a4c639;
  border-radius: 5px;

  transition: all 0.3s ease;
}

/* 
   Survol (:hover) et clic (:active) 
   => inversion des couleurs + légère mise à l'échelle (zoom)
*/
.btn:hover,
.btn:active {
  background: #3b2f2f;
  color: #a4c639;
  border-color: #a4c639;
  transform: scale(1.05);
}

/* ------------------------------ */
/* MEDIA QUERIES                  */
/* ------------------------------ */

/* Sur écrans moyens (<= 600px) */
@media (max-width: 600px) {
  .btn {
    font-size: 16px;
    padding: 12px 20px;
  }
}

/* Sur petits écrans (<= 400px) */
@media (max-width: 400px) {
  .video-container {
    width: 90%;
    max-width: 350px;
    margin: 10px auto;
  }
  .btn {
    font-size: 14px;
    padding: 10px 16px;
  }
}

/* Sur écrans très larges (> 1200px) */
@media (min-width: 1200px) {
  .video-container {
    width: 70%;
    max-width: 1000px;
    margin: 50px auto;
  }
  .btn {
    font-size: 20px;
    padding: 16px 28px;
  }
}
