/* =======================================================
   styles.css — Funky time (nettoyé + menu style Mo)
   ======================================================= */

/* ----- Base / Reset léger ----- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { overflow-x: hidden; }

body{
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
}

/* ----- Layout principal ----- */
.container{
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

/* ----- Titres ----- */
h1, h2{
  color: #03283b;
  text-align: left;
  margin: 20px 0 20px;
}

h1{ font-size: 2.5rem; }

/* Pour garder le bouton "JOUER" à droite du titre */
.header{
  display: flex;
  align-items: center;
}

/* ----- Texte ----- */
p{
  font-size: 18px;
  color: #333;
  line-height: 1.6;
  text-align: justify;
}

/* ----- Images ----- */
img{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
}

/* Image “hero” en haut */
.image-container{
  width: 100%;
  text-align: center;
}
.image-container img{
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ----- Boutons ----- */
.btn-jouer{
  display: inline-block;
  padding: 10px 20px;
  background: #0f627e;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  margin-left: 20px;
  transition: background-color .3s ease-in-out;
}
.btn-jouer:hover{
  background: #03283b;
  color: #fff;
}

/* Bouton “JOUER” sticky en bas (si tu l’utilises) */
.fixed-btn{
  position: sticky;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: #0f627e;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  font-size: 16px;
  z-index: 9999;
  margin-top: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,.2);
}
.fixed-btn:hover{
  background: #03283b;
  color: #fff;
}

/* =======================================================
   MENU — barre noire + hamburger (style Monop
   HTML attendu :
   <nav id="navBar" class="nav-black"> ... </nav>
   ======================================================= */

.nav-black{
  background: #111;
  margin: 0 0 8px 0;
}

.nav-black-inner{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 8px 12px;
}

.nav-toggle{
  display: none; /* caché sur desktop */
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a{
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 10px;
  transition: background-color .2s ease;
}

.nav-links a:hover{
  background: #d4252a;
  color: #fff;
}

/* Lien actif */
.nav-links a[aria-current="page"]{
  background: #d4252a;
  color: #fff;
}

/* Mobile */
@media (max-width: 780px){
  .nav-toggle{
    display: inline-flex;
    align-items: center;
    line-height: 1;
  }

  .nav-links{
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 8px;
  }

  .nav-links a{
    display: block;
    padding: 12px 10px;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: 18px;
  }

  /* Ouverture via JS : #navBar.is-open */
  #navBar.is-open .nav-links{
    display: flex;
  }
}

/* =======================================================
   Blocs “jeux bonus” (texte + image)
   ======================================================= */
.jeux-bonus-container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.jeux-bonus-container .text{
  width: 63%;
  padding-right: 5px;
}

.jeux-bonus-container .image{
  width: 35%;
  height: auto;
}

/* Paragraphes statistiques un peu aérés */
.stat-block{
  margin: 14px 0;
}

/* =======================================================
   Footer
   ======================================================= */
footer{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  padding: 20px;
  margin-top: 75px;
  background: #F8F7FE;
  color: #333;
  font-size: 14px;
}

/* =======================================================
   Tableau statistiques Lightning Storm
   ======================================================= */
.stats-table{
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .95rem;
  text-align: center;
  background: #fff;
}

.stats-table caption{
  caption-side: top;
  text-align: left;
  font-weight: bold;
  margin-bottom: 8px;
  color: #03283b;
}

.stats-table th,
.stats-table td{
  border: 1px solid #ddd;
  padding: 8px 10px;
}

.stats-table thead th{
  background: #f5f5f5;
  font-weight: bold;
}

.stats-table tbody tr:nth-child(even){
  background: #fafafa;
}

.stats-table tbody tr:hover{
  background: #f0f8ff;
}

/* Wrapper scrollable mobile */
.table-scroll{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}
.table-scroll > .stats-table{
  min-width: 560px;
}

/* =======================================================
   Responsive global
   ======================================================= */
@media (max-width: 768px){
  h1, h2{
    font-size: 24px;
    margin: 18px 0 10px;
  }

  p{ font-size: 16px; }

  .container{
    padding: 10px;
    margin: 0 5px;
    width: 100%;
  }

  .btn-jouer{
    padding: 10px 20px;
    font-size: 16px;
  }

  .jeux-bonus-container{
    flex-direction: column;
    align-items: center;
  }

  .jeux-bonus-container .text{
    width: 100%;
    padding-right: 0;
    margin-bottom: 20px;
  }

  .jeux-bonus-container .image{
    width: 100%;
  }

  .stats-table{
    font-size: .9rem;
  }
  .stats-table th,
  .stats-table td{
    padding: 5px 6px;
  }
}
