/*
  - Sur la page d'accueil (.accueil-body), le flou est plus fort (15px).
  - Sur la page de jeu (.jeu-body), le flou est moins fort (8px).
*/

/* RESET */
html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  height: 100%;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ffffffcc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  height: 50px;
  display: flex;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.container-nav {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.logo-img {
  height: 35px;
}

.invisible-timer {
  visibility: hidden;
}

/* FOOTER collé en bas */
.footer {
  text-align: center;
  padding: 0.5rem;
  font-weight: 300;
  background-color: rgba(255,255,255,0.7);
  position: fixed;
  bottom: 0;
  width: 100%;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  z-index: 9999;
}

/* ============ PAGE D'ACCUEIL ============ */

/* Sur l'accueil : body.accueil-body => Fond + flou(15px) */
.accueil-body {
  background: url('https://cdn.elsasscloud.fr/taverne-biais.avif') no-repeat center center fixed;
  background-size: cover;
}
.accueil-body::before {
  content: '';
  position: fixed; 
  top: 0; left: 0; right: 0; bottom: 0;
  backdrop-filter: blur(15px);
  background-color: rgba(255, 255, 255, 0.3);
  z-index: -1;
}

.container-accueil {
  max-width: 600px;
  margin: 80px auto 0 auto; /* 80px => nav */
  padding: 2rem;
  background-color: rgba(255,255,255,0.8);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  min-height: 300px;
  text-align: center;
}

.container-accueil h1 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.container-accueil p {
  margin-bottom: 2rem;
}

/* ============ PAGE DE JEU (moins flou) ============ */
.jeu-body {
  background: url('https://cdn.elsasscloud.fr/taverne-biais.avif') no-repeat center center fixed;
  background-size: cover;
}
.jeu-body::before {
  content: '';
  position: fixed; 
  top: 0; left: 0; right: 0; bottom: 0;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.25);
  z-index: -1;
}

.container {
  max-width: 800px;
  margin: 80px auto 0 auto; 
  padding: 2rem;
  background-color: rgba(255,255,255,0.8);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  min-height: 300px;
}

/* BOUTONS */
.btn {
  display: inline-block;
  background-color: #007aff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: #005bb5;
}
.button-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

/* LISTES */
ol {
  text-align: left;
  margin-left: 2rem;
}

/* OVERLAY */
.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}
.popup {
  background-color: #fff;
  border-radius: 10px;
  padding: 2rem;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.popup h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.popup p {
  margin-bottom: 1rem;
}