@import url('./palette.css');

/* === Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--color-bg-main);
  color: var(--color-text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}

/* === Hero === */
.hero {
  height: 100vh;
  background: linear-gradient(var(--color-gradient-hero1), var(--color-gradient-hero2)), url('../assets/3.webp') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  animation: fadeInUp 1s ease forwards;
  position: relative;
  z-index: 1;
}
.hero-content {
  background: var(--color-bg-glass);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2.5rem 3rem;
  max-width: 720px;
  box-shadow: 0 0 30px var(--color-shadow-glass);
  border: 1px solid var(--color-border-glass);
}
.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 4.5rem);
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--color-accent);
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--color-text-white);
  margin-bottom: 2.5rem;
  opacity: 0.9;
  text-shadow: 0 0 6px var(--color-accent2);
  font-weight: 400;
}

/* === Boutons === */
.btn-primary, .btn-secondary, .btn-social {
  font-family: 'Orbitron', sans-serif;
  border: none;
  border-radius: 40px;
  color: var(--color-text-white);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 0 15px var(--color-accent);
  padding: 1rem 3rem;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-light));
}
.btn-primary:hover, .btn-primary:focus,
.btn-secondary:hover, .btn-secondary:focus,
.btn-social:hover, .btn-social:focus {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  box-shadow: 0 0 25px var(--color-secondary);
  transform: scale(1.08);
  outline: none;
}
.btn-secondary {
  background: var(--color-accent2);
  border-radius: 10px;
  font-weight: bold;
  padding: 10px 25px;
}
.btn-secondary:hover {
  background: var(--color-secondary);
}

/* === Section === */
.section {
  padding: 6rem 1.5rem 8rem;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  animation: fadeInUp 1.2s ease forwards;
}
.section h2 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 2.7rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.section p {
  max-width: 680px;
  margin: 0 auto 3rem;
  font-size: 1.15rem;
  opacity: 0.85;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* === Features === */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 3rem;
  justify-items: center;
}
.feature {
  background: var(--color-bg-feature);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 0 25px var(--color-accent3);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
  width: 100%;
  max-width: 320px;
}
.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 45px var(--color-accent3);
}
.feature h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
  color: var(--color-secondary);
  text-shadow: 0 0 6px var(--color-secondary);
}
.feature p {
  font-size: 1rem;
  color: var(--color-text-white);
  line-height: 1.5;
}

/* === Modal === */
.game-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg-modal);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 2rem 1rem;
}
.game-modal iframe {
  width: 90vw;
  max-width: 1280px;
  height: 80vh;
  border-radius: 15px;
  box-shadow: 0 0 40px var(--color-shadow-modal);
  border: none;
  background: var(--color-bg-dark);
  animation: fadeInUp 0.6s ease forwards;
}
.close-btn {
  margin-top: 1.5rem;
  background: var(--color-text-dark);
  border: none;
  border-radius: 30px;
  color: var(--color-text-white);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.9rem 2.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 0 15px var(--color-accent2);
}
.close-btn:hover, .close-btn:focus {
  background: var(--color-accent);
  box-shadow: 0 0 25px var(--color-accent);
  transform: scale(1.1);
  outline: none;
}

/* === Recruitment === */
.recruitment {
  background: var(--color-bg-dark);
  padding: 80px 20px;
  text-align: center;
}
.recruitment h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.recruitment-intro {
  max-width: 700px;
  margin: 0 auto 50px;
  opacity: 0.8;
  font-size: 1.1rem;
}
.job-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}
.job-card {
  background: var(--color-bg-gradient-end);
  padding: 30px;
  border-radius: 15px;
  text-align: left;
  box-shadow: 0 0 15px var(--color-shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px var(--color-shadow-card);
}
.job-card h3 {
  color: var(--color-primary);
  margin-bottom: 15px;
}
.job-card p {
  opacity: 0.85;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* === Team & Bestiary (homogénéisé) === */
.team, .bestiary {
  text-align: center;
  padding: 60px 20px;
  background: var(--color-bg-gradient-start);
  color: var(--color-text-light);
}
.team h2, .bestiary h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--color-primary);
}
.team p, .bestiary p {
  color: var(--color-text-muted);
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
}
.team-grid, .bestiary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  justify-items: center;
}
.team-card, .bestiary-card {
  background: var(--color-bg-glass);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 0 20px var(--color-shadow-glass);
  border: 1px solid var(--color-border-glass);
  transition: box-shadow 0.3s ease;
  max-width: 250px;
}
.team-card:hover, .bestiary-card:hover {
  box-shadow: 0 0 35px var(--color-primary);
}
.team-photo, .bestiary-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.2rem;
}
.bestiary-photo {
  object-fit: contain;
  border-radius: 0;
  border: none;
}
.team-card h3, .bestiary-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  color: var(--color-primary);
}
.team-card p, .bestiary-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* === Learn More Banner === */
.learn-more-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 50px;
  background: var(--color-bg-banner);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border-glass);
  box-shadow: 0 -5px 20px var(--color-shadow-glass);
  position: relative;
}
.learn-banner-content {
  max-width: 70%;
}
.learn-banner-content h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  color: var(--color-primary);
  text-shadow: 0 0 8px var(--color-shadow-card);
  margin-bottom: 8px;
}
.learn-banner-content p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  opacity: 0.85;
}

/* === Social Icons === */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.btn-social {
  padding: 10px 25px;
  background: var(--color-accent2);
  border: none;
  border-radius: 10px;
  color: var(--color-text-white);
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}
.btn-social:hover {
  transform: scale(1.05);
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1, .section h2, .team h2, .bestiary h2 { font-size: 2rem; }
  .hero-content { padding: 2rem; }
  .btn-primary, .btn-secondary, .btn-social { padding: 1rem 2.5rem; font-size: 1.1rem; }
  .feature { max-width: 100%; }
  .learn-more-banner { flex-direction: column; text-align: center; }
  .learn-banner-content { max-width: 100%; }
}

/* === Social hover colors (non palette, réseaux) === */
.btn-social.twitter:hover { background-color: #1DA1F2; color: white; }
.btn-social.reddit:hover { background-color: #FF4500; color: white; }
.btn-social.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color: white; }
.btn-social.tiktok:hover { background-color: #69C9D0; color: white; }
