
/* styles pour accueil.html */

.button-group {
  padding: 2rem;
  border: 3px solid #161C94;
  border-radius: 12px;
  background-color: #f9f9f97a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  text-align: center;
}

.button-group-title {
  font-size: 2rem;
  font-weight: bold;
  color: #161C94;
  margin-bottom: 1.5rem;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: nowrap; 
}


.button-row a {
  text-align: center;
  width: 250px;
  font-size: 1.3rem;
  line-height: 1.5;
  padding: 1rem;
}


.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #161C94;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.btn-villes {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #a10699;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.btn-GP {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #05750c;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.btn-reg {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #cca518;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.btn-reg,
.btn-villes,
.btn-GP {
  font-size: 1.3rem !important; 
  line-height: 1.5;
  text-align: center;
}

.btn-reg:hover,
.btn-villes:hover,
.btn-GP:hover {
  transform: scale(1.1);
}

.home {
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background-image: url("/static/jeux/data/logo/contour_rs.svg");
  background-size: 26%;
  background-repeat: no-repeat;
  background-position: right;
}


#pres-1,
#pres-2,
#btn-info {
  margin: 1rem 0;
  max-width: 600px;
}


#btn-info {
  display: inline-block;
  margin: 0 auto;
  text-align: center;
}

.btn:hover {
  background-color: #343ccd;
}


#pres-1,
#pres-2 {
  font-size: 1.2rem;
  font-weight: 1000;
}

.btn,
.btn-reg,
.btn-villes,
.btn-GP {
  font-size: 1.1rem;
}


.map {
  top: 100px; 
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 650px;
  z-index: 1;
}


#side-bar {
  position: absolute;
  top: 620px;
  left: 50px;
  width: 350px;
  z-index: 10;
  background: rgba(255,255,255,0.95);
  padding: 1em;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  overflow-y: auto;
  max-height: 90%;
  display: flex;
  flex-direction: column;
}

.toggleContainer {
  margin-top: 10px;
  background: white;
  padding: 5px;
  border-radius: 5px;
}

.toggleHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.arrow.open {
  transform: rotate(90deg);
}

.info-content {
  font-size: 0.9em;
  color: #333;
  padding-left: 10px;
  margin-top: 5px;
}

.ol-popup {
  position: absolute;
  background: white;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  bottom: 12px;
  left: -50px;
  min-width: 150px;
  text-align: center;
}

#popup-content {
  white-space: nowrap;
  overflow-x: auto;
  max-width: 300px; 
}

#play-button {
  margin-top: auto; 
  align-self: center; 
  padding: 0.8rem 1.5rem;
  font-size: 1.2rem;
  font-family: inherit;
  font-weight: bold;
  background-color: #161C94;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#play-button:hover {
    transform: scale(1.1);
}

.leaderboard-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
}

.leaderboard-container h2,
.leaderboard-container h3 {
  margin-bottom: 1rem;
}

.leaderboard-container ol {
  list-style: decimal inside;
  padding-left: 0;
}

/* Gérer le responsive */
@media (max-width: 768px) {
  .button-row {
    flex-wrap: wrap;
  }
    .home {
    background-image: none;
  }
  #side-bar {
    position: static;
    width: 90%;
    margin: 1em auto;
    max-height: none;
    background: rgba(255,255,255,0.95);
  }

  .map {
    position: relative;
    width: 100%;
    height: 400px; 
    top: 0;
  }
  body, html {
    overflow-y: auto;
  }
}
