* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #1e1e1e;
  color: #fff;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


/* Navbar */

header nav {
  background-color: #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-name {
  font-size: 22px;
  color: white;
  font-weight: bold;
}

nav .logo img {
  height: 50px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  color: #E53C00;
}

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger img {
  height: 30px;
}

.wrapper {
  flex: 1;
}


/* Accueil */

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-box {
  background-color: rgba(0, 0, 0, 0.65);
  padding: 40px;
  border-radius: 15px;
  backdrop-filter: blur(3px);
  text-align: center;
  max-width: 90%;
}

.hero-box h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero-box p {
  font-size: 20px;
  margin-bottom: 20px;
}

.play-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 15px 30px;
  background: linear-gradient(#EC9600, #E53C00);
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: 700;
  font-size: 0.95em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  line-height: 1;
}
  
.play-btn span {
  margin: 0;
  padding: 0;
  line-height: 1;
}
  
.play-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.content-section {
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: white;
  background-color: #1e1e1e;
}

.content-section h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.content-section p {
  font-size: 18px;
  margin-bottom: 20px;
}

.content-section a {
  color: #00bfff;
  text-decoration: none;
  font-weight: bold;
}

.socials-large {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.socials-large img {
  height: 48px;
  transition: transform 0.2s ease;
}

.socials-large img:hover {
  transform: scale(1.2);
}


/* Téléchargements */

.download-hero {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
  
.download-hero-content {
  background-color: rgba(0, 0, 0, 0.65);
  padding: 40px;
  border-radius: 12px;
  backdrop-filter: blur(3px);
  max-width: 90%;
}
  
.download-hero-content h1 {
  font-size: 42px;
  margin-bottom: 10px;
}
  
.download-hero-content p {
  font-size: 18px;
}

.download-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 80px 20px;
  gap: 80px;
  background-color: #1e1e1e;
}
  
.download-card {
  background-color: #2c2c2c;
  padding: 30px;
  border-radius: 12px;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
  
.download-card img {
  width: 80px;
}
  
.download-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
  
.download-card p {
  font-size: 16px;
  margin-bottom: 20px;
}
  
.download-card .btn {
  display: inline-block;
  background-color: #00bfff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: background 0.3s;
}
  
.download-card .btn:hover {
  background-color: #009acd;
}

#macos_dev {
    color: red;
}


/* Footer */

footer {
  background-color: #111;
  text-align: center;
  padding: 17px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

footer .socials {
  display: flex;
  justify-content: center;
  gap: 15px;
}

footer .socials img {
  height: 24px;
  margin: 0;
  filter: none;
  transition: transform 0.2s ease;
}

footer .socials img:hover {
  transform: scale(1.2);
}


/* Parallax */

.parallax-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.parallax-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transform: translateY(0);
  will-change: transform;
  z-index: 1;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}


/* News */

.news-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 40px auto 0 auto; /* <-- marge haute augmentée */
  background-color: #1e1e1e;
  color: white;
}

.news-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* <-- 2 colonnes fixes */
  gap: 40px;
}

.news-card {
  background-color: #2c2c2c;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-content h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.news-content .date {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 10px;
}

.news-content p {
  font-size: 16px;
  color: #ccc;
}

.news-more {
  text-align: center;
  margin-top: 40px;
}

.news-more button {
  background: linear-gradient(#EC9600, #E53C00);
  border: none;
  padding: 15px 30px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}


/* Articles */

.article-section {
  max-width: 800px;
  margin: 80px auto;
  padding: 20px;
  background-color: #1e1e1e;
  color: white;
}

.article-section h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #aaa;
  margin-bottom: 30px;
}

.article-meta .author {
  font-weight: bold;
  color: #ccc;
}

.article-meta .date::before {
  content: "•";
  margin: 0 6px;
  color: #666;
}

.article-banner {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 30px;
}

.article-content h2 {
  margin-top: 30px;
  font-size: 24px;
  color: #EC9600;
}

.article-content p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.7;
}

.hidden-article {
  display: none;
}


/* Dynmap */

.dynmap-wrapper {
  min-height: calc(100vh - 70px); /* ✅ Tu peux garder ça */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1e1e1e;
  padding: 110px 20px 30px; /* ✅ Ajoute un peu de haut/bas pour bien respirer */
}

.dynmap-frame {
  width: 100%;
  max-width: 1600px; /* ✅ Large mais raisonnable */
  height: 85vh;       /* ✅ Presque tout l’écran */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  border: 4px solid #444;
  background-color: #000;
}

.dynmap-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}


.pn-category img {
  width: 30px;
  height: auto;
  position: relative;
  top: 7px;
  left: -5px;
}


/* --- Responsive Tablet --- */

@media screen and (max-width: 1024px) {
  .hero-box h1 {
    font-size: 36px;
  }

  .hero-box p,
  .download-hero-content p {
    font-size: 16px;
  }

  .play-btn {
    padding: 12px 24px;
    font-size: 0.9em;
  }

  .content-section {
    padding: 50px 15px;
  }

  .download-section {
    gap: 40px;
    padding: 60px 15px;
  }

  .socials-large img {
    height: 42px;
  }
}

/* --- Responsive Mobile --- */

@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  nav ul {
    display: none;
    flex-direction: column;
    gap: 15px;
    background-color: #111;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    padding: 15px;
  }

  nav ul.show {
    display: flex;
  }

  .hero-box h1 {
    font-size: 28px;
  }

  .hero-box p {
    font-size: 16px;
  }

  .play-btn {
    padding: 10px 20px;
    font-size: 0.85em;
  }

  .content-section {
    padding: 40px 15px;
  }

  .download-section {
    flex-direction: column;
    align-items: center;
    padding: 50px 15px;
  }

  .download-card {
    width: 90%;
  }

  .socials-large {
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
  }

  .socials-large img {
    height: 40px;
  }

  /* News */
  .news-grid {
    grid-template-columns: 1fr; /* 1 colonne sur petit écran */
  }

  .news-title {
    font-size: 28px;        /* réduit un peu */
    line-height: 1.2;       /* resserre les lignes */
    margin-bottom: 30px;    /* garde un bon espacement en dessous */
  }

  .article-section h1 {
    font-size: 28px;        /* aussi réduire le titre de l’article */
    line-height: 1.2;
  }
}