/* Structure globale pour forcer le footer en bas */
html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

main {
  flex: 1;
}

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

body {
  font-family: "Belanosima", sans-serif;
  background-color: #d9f7ff;
  background-image: url("assets/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #26666d;
  line-height: 1.6;
  padding: 20px;
}

header {
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}

header h1 {
  font-size: 3rem;
  color: #ffde00;
  margin-bottom: 20px;
}

header p {
  font-size: 1.1rem;
  padding: 0 20px;
}

/* Menu interactif */
.menu-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px 0;
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-button {
  font-family: "Belanosima", sans-serif;
  font-size: 1rem;
  padding: 10px 20px;
  background-color: transparent;
  border: 2px solid #26666d;
  color: #26666d;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.tab-button.active,
.tab-button:hover {
  background-color: #26666d;
  color: white;
}

.tab-content {
  text-align: center;
}

/* Titre des sections jeux */
.game-title {
  text-align: center;
  font-size: 2rem;
  margin: 30px 0 20px;
}

/* Section de jeux */
.game-box {
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.5);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.game-box p {
  margin-bottom: 20px; /* ou 1.2em pour une unité relative */
  line-height: 1.8;
  font-size: 1.15rem;
  color: #26666d;
}

.game-box h3 {
  font-size: 1.3rem;
  color: #26666d;
  margin-bottom: 10px;
}

.game-box strong {
  color: #ffde00;
  text-shadow: 1px 1px 1px #26666d;
  margin-right: 3px;
}

.game-logo {
  max-height: 100px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 40px auto;
}

.game-description {
  max-width: 800px;
  margin: 20px auto 0;
  padding: 0 20px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #26666d;
  text-align: justify;
}

/* Accès aux stores*/
.store-box {
  text-align: center;
  margin-top: 30px;
}

.store-coming {
  font-size: 1.2rem;
  color: #26666d;
  font-weight: bold;
  margin-bottom: 15px;
}

.store-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.store-links img {
  max-height: 60px;
  width: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.store-links img:hover {
  transform: scale(1.05);
}

/* Règles */
.rule-box {
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.5);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.rule-box h3 {
  font-size: 1.3rem;
  color: #26666d;
  margin-bottom: 10px;
}

.rule-step {
  display: flex;
  align-items: flex-start;
  margin: 20px 0;
  gap: 15px;
}

.step-number {
  background-color: #26666d;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  width: 28px;
  height: 28px;
  text-align: center;
  line-height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rule-step p {
  margin-top: 5px;
}

.sub-rules {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.sub-rules li {
  margin-top: 18px;
  padding-left: 1em;
  position: relative;
}

.sub-rules li::before {
  content: "•";
  color: #26666d;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.rule-warning {
  background: rgba(255, 255, 255, 0.5);
  color: #856404;
  padding: 15px 20px;
  border-left: 10px solid #ffde00;
  border-right: 10px solid #ffde00;
  border-radius: 8px;
  font-size: 1rem;
  margin-top: 30px;
}

.example {
  display: inline-block;
  margin-top: 10px;
}

/* Conctact */

.contact-description {
  max-width: 800px;
  margin: 20px auto 0;
  padding: 0 20px;
  font-size: 1.3rem;
  line-height: 1.7;
  color: #26666d;
  text-align: center;
}

/* TIGREO */
/* Section de jeux */
.tigreo-box {
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.5);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tigreo-box p {
  margin-bottom: 20px; /* ou 1.2em pour une unité relative */
  line-height: 1.8;
  font-size: 1.15rem;
  color: #26666d;
}

.tigreo-box h3 {
  font-size: 1.3rem;
  color: #26666d;
  margin-bottom: 10px;
}

.tigreo-box strong {
  color: #ffde00;
  text-shadow: 1px 1px 1px #26666d;
}

.tigreo-description {
  max-width: 800px;
  margin: 20px auto 0;
  padding: 0 20px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #26666d;
  text-align: justify;
}

/* Footer toujours en bas */
footer {
  text-align: center;
  font-size: 0.9rem;
  padding: 30px;
  background-color: transparent;
}

footer a {
  font-family: system-ui, sans-serif;
  color: #26666d;
  text-decoration: none;
  margin: 0 5px;
}

footer a:hover {
  text-decoration: underline;
}

/* PDF Vue Modale */

#pdfModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.pdf-container {
  position: relative;
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
  width: 800px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pdf-container iframe {
  width: 100%;
  height: 80vh;
  border: none;
  border-radius: 8px;
}

.pdf-container button {
  margin-top: 15px;
  padding: 10px 20px;
  font-family: "Belanosima", sans-serif;
  background-color: #26666d;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.pdf-container button:hover {
  background-color: #1c4d55;
}

/* Responsive */
@media (max-width: 768px) {
  html,
  body {
    min-height: 100vh;
    height: auto; /* Important pour permettre le scroll */
  }

  body {
    background-color: #d9f7ff;
    position: relative;
    z-index: 0;
  }

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #d9f7ff;
    background-image: url("assets/background_mobile.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
  }

  .page-container {
    min-height: 100vh;
    position: relative;
    z-index: 1;
  }

  #pdfViewer {
    display: none;
  }

  #pdfModal {
    display: none !important;
  }

  header h1 {
    font-size: 2.2rem;
  }

  header p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .game-logo {
    max-height: 70px;
  }

  footer {
    font-size: 0.8rem;
  }
}
