/* Base et imports */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap");

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #ffd700 rgba(0, 0, 0, 0.8);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #ffd700, #ffa500);
  border-radius: 10px;
  border: 3px solid rgba(0, 0, 0, 0.8);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #ffa500, #ffd700);
}

/* Body et conteneur principal */
body {
  font-family: "Bricolage Grotesque", sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

body.loaded {
  opacity: 1;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Loader */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.4s ease-in-out;
}

.loader {
  width: 150px;
  height: 150px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-top-color: #ffd700;
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

.loader::after {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  border: 4px solid transparent;
  border-top-color: #ffa500;
  border-radius: 50%;
  animation: spin 1.5s linear infinite reverse;
}

.loader img {
  width: 60%;
  height: auto;
  animation: pulse 2s ease-in-out infinite;
}

.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Background */
.starry-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: url("../images/fond_etoile_mirum_smp_000.png") repeat;
}

/* Navigation */
nav {
  background: rgba(0, 0, 0, 0.95);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  height: 40px;
  z-index: 1001;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: rgba(255, 215, 0, 0.2);
}

.nav-links .download-btn {
  background: linear-gradient(45deg, #ffd700, #ffa500);
  color: #000;
}

.nav-links .download-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(45deg, #ffa500, #ffd700);
}

/* Header */
header {
  padding-top: 120px;
  text-align: center;
}

.logo {
  width: min(300px, 80%);
  margin-bottom: 2rem;
}

.description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}

/* CTA Button */
.cta-section {
  text-align: center;
  margin: 2rem 0;
}

.cta-wrapper {
  display: inline-block;
  position: relative;
}

.cta-wrapper::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(
    circle at center,
    rgba(255, 215, 0, 0.2) 0%,
    transparent 70%
  );
  border-radius: 15px;
  animation: pulse 2s infinite;
}

.cta-button {
  display: inline-block;
  padding: 20px 40px;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  color: #000;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-text {
  position: relative;
  z-index: 2;
}

.cta-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.1) 55%,
    transparent 100%
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 40px rgba(255, 215, 0, 0.6);
  background: linear-gradient(45deg, #ffa500, #ffd700);
}

.cta-button:active {
  transform: translateY(1px);
}

/* Hero Section */
.hero {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 4rem 0 2rem;
}

.hero-content {
  flex: 1;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: #ffd700;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 2rem;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.feature {
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.feature h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
  color: #ffd700;
}

/* Download Section */
.download-section {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.download-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 2rem 0;
}

.download-button-container .cta-button {
  min-width: 300px;
  max-width: 500px;
}

.warning-box {
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid #ffd700;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.warning-box h3 {
  color: #ffd700;
  margin-bottom: 1rem;
}

.system-requirements {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.system-requirements h3 {
  color: #ffd700;
  margin-bottom: 1rem;
}

.system-requirements ul {
  list-style: none;
}

.system-requirements li {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.system-requirements li::before {
  content: "•";
  color: #ffd700;
  position: absolute;
  left: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step-card {
  background: rgba(0, 0, 0, 0.8);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.step-number {
  font-size: 2rem;
  color: #ffd700;
  margin-bottom: 1rem;
}

/* Styles spécifiques à la page de téléchargement */
.download-page .hero-section {
  text-align: center;
  padding: 6rem 0 4rem;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  margin: 8rem 0 3rem;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.download-page .hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.download-page .hero-content h1 {
  font-size: 3rem;
  color: #ffd700;
  margin-bottom: 1rem;
}

.download-page .hero-content h2 {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
}

.download-page .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-page .stat .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffd700;
}

.download-page .stat .label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

/* Features Section dans la page de téléchargement */
.features-section {
  padding: 4rem 0;
}

.features-section h2 {
  text-align: center;
  color: #ffd700;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(0, 0, 0, 0.8);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

/* FAQ Section */
.faq-section {
  margin: 4rem 0;
}

.faq-section h2 {
  text-align: center;
  color: #ffd700;
  margin-bottom: 2rem;
}

.faq-grid {
  display: grid;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.faq-item summary {
  padding: 1rem;
  cursor: pointer;
  font-weight: bold;
  list-style: none;
  position: relative;
  padding-right: 2.5rem;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #ffd700;
  font-size: 1.5rem;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  padding: 1rem;
  padding-top: 0;
}

/* Community CTA */
.community-cta {
  background: rgba(0, 0, 0, 0.8);
  padding: 4rem 2rem;
  border-radius: 15px;
  text-align: center;
  margin: 4rem 0;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.cta-content h2 {
  color: #ffd700;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.discord-btn,
.patreon-btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 200px;
}

.discord-btn {
  background: #5865f2;
  color: white;
}

.patreon-btn {
  background: #ffa500;
  color: white;
}

.discord-btn:hover,
.patreon-btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.95);
  padding: 4rem 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 215, 0, 0.3);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-section:first-child .studio-logo {
  width: 150px;
}

.footer-section h3 {
  color: #ffd700;
  font-size: 1.2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #ffd700;
  opacity: 1;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: translateY(-2px);
}

/* Animations */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes shine {
  0% {
    top: -150%;
    left: -150%;
  }
  100% {
    top: 150%;
    left: 150%;
  }
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease-in-out;
    gap: 2rem;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .download-page .hero-content h1 {
    font-size: 2rem;
  }

  .download-page .hero-content h2 {
    font-size: 1.2rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .discord-btn,
  .patreon-btn {
    width: 100%;
  }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  header {
    padding-top: 100px;
  }

  .description {
    padding: 1rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section:first-child {
    align-items: center;
  }

  .social-icons {
    justify-content: center;
  }

  .cta-button {
    padding: 15px 30px;
    font-size: 1.2rem;
    width: 90%;
    max-width: 300px;
  }
  /* Section des mentions légales */
  .mentions-legales {
    margin-top: 6rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.2);
  }

  .mentions-legales h1 {
    text-align: center;
    color: #ffd700;
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  .mentions-legales section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
  }

  .mentions-legales section h2 {
    font-size: 1.8rem;
    color: #ffd700;
    margin-bottom: 1rem;
  }

  .mentions-legales section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
  }

  .mentions-legales section ul {
    list-style: none;
    padding-left: 1rem;
    margin: 1rem 0;
  }

  .mentions-legales section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
  }

  .mentions-legales section ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ffd700;
    font-size: 1.2rem;
  }

  /* Boutons et liens */
  .mentions-legales a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
  }

  .mentions-legales a:hover {
    color: #ffa500;
  }

  /* Responsive pour les mentions légales */
  @media (max-width: 768px) {
    .mentions-legales {
      padding: 1.5rem;
    }

    .mentions-legales h1 {
      font-size: 2rem;
    }

    .mentions-legales section h2 {
      font-size: 1.5rem;
    }

    .mentions-legales section p {
      font-size: 1rem;
    }
  }

  @media (max-width: 480px) {
    .mentions-legales {
      padding: 1rem;
    }

    .mentions-legales h1 {
      font-size: 1.8rem;
    }

    .mentions-legales section h2 {
      font-size: 1.3rem;
    }

    .mentions-legales section p {
      font-size: 0.9rem;
    }
  }
}