body {
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: #0184AF
}

header {
  background-color: #00529B;
  padding: 20px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #000;
  position: relative;
}

.logo {
  height: 70px;
  z-index: 1001;
}

.nav-liens {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding: 0 10px;
}

.nav-lien {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
  min-width: 80px; 
  text-align: center;
}

.nav-icon {
  height: 50px;
  width: 50px;
  margin-bottom: 6px;
}

.nav-lien:hover {
  color: #FFD700;
}

.bouton-jouer {
  display: block;
  width: 170px;
  height: 70px;
  background-image: url('media/jouer.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.2s ease-in-out;
  margin-right: 10px;
}

.bouton-jouer:hover {
  background-image: url('media/jouer_appuyer.webp');
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile styles */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-liens {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #00529B;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    padding: 0;
  }
  
  .nav-liens.active {
    transform: translateX(0);
  }
  
  .nav-lien {
    font-size: 18px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    min-width: 200px;
  }
  
  .nav-lien:hover {
    background-color: rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
  }
  
  .nav-icon {
    height: 40px;
    width: 40px;
    margin-bottom: 8px;
  }
  .bouton-jouer {
    margin: 10px 0 0;
  }
}

@media (max-width: 480px) {
  header {
    padding: 10px 15px;
  }
  
  .logo {
    height: 50px;
  }
  
  .bouton-jouer {
    width: 100px;
    height: 40px;
    font-size: 12px;
  }
  
  .nav-lien {
    min-width: 180px;
    font-size: 16px;
  }
}

/* Overlay pour fermer le menu en cliquant à côté */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.menu-overlay.active {
  display: block;
}

.video-accueil {
  width: 100%;
  height: auto;
  display: block;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #0085AA;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; 
}

footer {
  background-color: #078CE4;
  color: white;
  text-align: center;
  padding: 15px 40px;
  font-size: 12px;
  line-height: 1.2;
  box-sizing: border-box;
  width: 100%;
}


@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 5px;
  }
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  gap: 15px;
}

.footer-logo {
  height: 50px;
}

.footer-text {
  flex: 1;
  min-width: 250px;
  max-width: 900px;
}

.footer-links {
  margin-bottom: 1px;
}

.footer-link {
  color: white;
  text-decoration: underline;
  margin: 0 5px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
  }
  .footer-logo {
    margin-bottom: 10px;
  }
}

.section-cartes {
  background-color: #00AEEF;
  border-radius: 20px;
  padding: 40px 30px;
  margin: 50px auto 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  max-width: 1200px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.carte {
  background-color: transparent;
  color: white;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  max-width: 280px;
  flex: 1 1 250px;
}

.carte-large {
  max-width: 340px;
  flex: 1 1 300px;
}

.carte-image {
  width: 100%;
  border-radius: 10px;
  border: 2px solid black;
  margin-bottom: 12px;
}

.carte h3 {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 10px;
  color: white;
}

.carte p {
  font-size: 0.9em;
  line-height: 1.4;
  color: white;
}

.carte-separation {
  width: 1px;
  background-color: #000000;
  height: auto;
  margin: 0 5px;
}

@media (max-width: 900px) {
  .section-cartes {
    flex-direction: column;
    align-items: center;
  }

  .carte-separation {
    display: none;
  }

  .carte,
  .carte-large {
    max-width: 100%;
  }
}
.nav-liens {
  display: flex;
  gap: 20px;
}

.nav-lien {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-lien:hover {
  color: #FFD700; 
}

@media (max-width: 600px) {
  .nav-liens {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
}

.communaute-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  background-color: #22A4F3;
  color: #000;
}

.communaute-left,
.communaute-right {
  flex: 1 1 45%;
  background: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.communaute-left h2,
.communaute-right h2 {
  font-size: 24px;
  margin-bottom: 10px;
  border-bottom: 2px solid #00529B;
  padding-bottom: 8px;
}



.communaute-left p,
.communaute-right p {
  font-size: 16px;
  margin-bottom: 20px;
}

.btn-discord {
  display: inline-block;
  background-color: #5865F2;
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: background-color 0.3s;
}

.btn-discord:hover {
  background-color: #4752C4;
}

body:not(.home) {
  background-color: #22A4F3;
}

body.page-aide {
  background-color: #22A4F3;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.aide-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.aide-bloc {
  background-color: white;
  border-radius: 20px;
  padding: 30px 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.aide-bloc h1 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #00529B;
}

.aide-bloc p {
  font-size: 16px;
  color: #333;
  margin: 10px 0;
}

.aide-discord-button {
  display: inline-block;
  background-color: #5865F2;
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.aide-discord-button:hover {
  background-color: #4854c4;
}

.aide-alternative a {
  color: #00529B;
  text-decoration: underline;
}

body.page-securite {
  background-color: #22A4F3;
  margin: 0;
  padding: 0;
}

.securite-container {
  padding: 40px 20px;
  display: flex;
  background-color: #22A4F3;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.securite-bloc {
  background-color: white;
  padding: 30px;
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.securite-bloc h1, .securite-bloc h2 {
  color: #00529B;
  margin-bottom: 15px;
}

.securite-bloc p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

ul.regles {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

ul.regles li {
  margin-bottom: 10px;
  font-size: 16px;
}

.contenu-boite {
  background-color: white;
  border-radius: 20px;
  padding: 30px 40px;
  max-width: 800px;
  width: 100%;
  margin: 40px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: left;
  line-height: 1.6;
}

.contenu-principal {
  display: flex;
  justify-content: center;
  background-color: #22A4F3;
  padding: 40px 20px;
}

.contenu-boite {
  background-color: white;
  border-radius: 20px;
  padding: 30px 40px;
  max-width: 800px;
  width: 100%;
  margin: 40px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: left;
  line-height: 1.6;
}

.contenu-boite h1, .contenu-boite h2 {
  color: #00529B;
  margin-top: 20px;
}

.contenu-boite a {
  color: #00529B;
  text-decoration: underline;
}
