/* ===== DESIGN SYSTEM ===== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --bg: #0d1117;
  --fg: #c8d6df;
  --primary: #2ca1b6;
  --primary-dark: #238a9e;
  --accent: #e08030;
  --accent-dark: #c86828;
  --card: #141b24;
  --muted: #6b7f8e;
  --border: #1e2e3a;
  --glass-bg: rgba(13, 17, 23, 0.7);
  --glow-primary: 0 0 30px -5px rgba(44, 161, 182, 0.4);
  --glow-accent: 0 0 30px -5px rgba(224, 128, 48, 0.4);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== UTILITIES ===== */
.text-glow {
  text-shadow: 0 0 20px rgba(44, 161, 182, 0.6), 0 0 40px rgba(44, 161, 182, 0.3);
}

.text-glow-accent {
  text-shadow: 0 0 20px rgba(224, 128, 48, 0.6), 0 0 40px rgba(224, 128, 48, 0.3);
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(44, 161, 182, 0.15);
}

.scanline {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(44, 161, 182, 0.03) 2px,
    rgba(44, 161, 182, 0.03) 4px
  );
  pointer-events: none;
}

/* ===== ANIMATIONS ===== 
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px -5px rgba(44, 161, 182, 0.4); }
  50% { box-shadow: 0 0 40px -5px rgba(44, 161, 182, 0.7); }
}
*/
/* ===== ANIMATIONS ===== */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 30px -10px rgba(44, 161, 182, 0.6); }
  50% { box-shadow: 0 0 60px -10px rgba(44, 161, 182, 1); }
}

@keyframes pulseGlowAccent {
  0%, 100% { box-shadow: 0 0 20px -5px rgba(224, 128, 48, 0.4); }
  50% { box-shadow: 0 0 40px -5px rgba(224, 128, 48, 0.7); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.animate-fade-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,17,23,0.3) 0%, rgba(13,17,23,0.6) 50%, var(--bg) 100%);
}

.hero__scanline {
  position: absolute;
  inset: 0;
}

.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
  max-width: 900px;
}

.hero__tag {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.2s forwards;
  opacity: 0;
}

.hero__title span {
  color: var(--primary);
}

.hero__desc {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: #a0b4c0;
  max-width: 650px;
  margin: 0 auto 1rem;
  animation: fadeInUp 1s ease-out 0.5s forwards;
  opacity: 0;
}

.hero__awards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(44, 161, 182, 0.5), 0 0 40px rgba(44, 161, 182, 0.2);
  animation: fadeIn 1s ease-out 0.7s forwards;
  opacity: 0;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
  opacity: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: filter 0.2s;
  animation: pulseGlow 1.5s ease-in-out infinite; /* Animation uniquement pour btn-primary */
}
.btn-primary:hover {
  filter: brightness(1.15);
}


.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(44, 161, 182, 0.3);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-secondary:hover {
  background: rgba(44, 161, 182, 0.1);
}

.hero__platforms {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  animation: fadeIn 1s ease-out 1.2s forwards;
  opacity: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 1.5s infinite;
  color: rgba(44, 161, 182, 0.5);
}

/* ===== SECTIONS ===== */
.section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section:last-of-type {
  padding-top: 0.5rem;
}

.section__tag {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  display: block;
  margin-bottom: 0.75rem;
}
.section__tag--primary { color: var(--primary); }
.section__tag--accent { color: var(--primary); }

.section__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--fg);
}
.section__title span { color: var(--primary); }
.section__title .accent { color: var(--primary); }

.section__desc {
  text-align: center;
  font-size: 1.3rem;
  color: var(--muted);
  max-width: 550px;
  margin: 0 auto 3rem;
}

/* ===== FACTIONS ===== */
.factions__image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 15px -3px rgba(44, 161, 182, 0.3), inset 0 0 15px -3px rgba(44, 161, 182, 0.1);
}

.factions__image-wrapper img {
  width: 100%;
  height: auto;
}

.factions__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 60%);
}

.factions__grid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.faction-card {
  text-align: center;
  padding: 0.75rem;
  border-radius: 4px;
}

.faction-card__name {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
}

.faction-card__desc {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ===== FEATURES ===== */
.features__list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.feature {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.feature--reverse {
  flex-direction: row-reverse;
}

.feature__image {
  flex: 0 0 50%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  max-height: 250px;
}
.feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.feature__image:hover img {
  transform: scale(1.05);
}

.feature__text {
  flex: 1;
}

.feature__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature__desc {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.feature__line {
  width: 4rem;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* ===== AWARDS ===== */
.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.award-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

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

.award-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,0.9) 0%, transparent 60%);
}

.award-card__badges {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  gap: 1rem;
}

.award-badge {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-align: center;
}

.award-badge__title {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
}
.award-badge__title--accent {
  color: var(--accent);
}

.award-badge__sub {
  font-size: 0.6rem;
  color: var(--muted);
}

/* ===== FINAL CTA ===== */
.final-cta {
  text-align: center;
  padding: 4rem 1rem;
}

.final-cta__title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.final-cta__desc {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 3rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: filter 0.2s;
  animation: pulseGlowAccent 2s ease-in-out infinite;
}
.btn-accent:hover {
  filter: brightness(1.15);
}

.final-cta__platforms {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.15em;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 6rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .factions__grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
  }
  .feature, .feature--reverse {
    flex-direction: column;
  }
  .feature__image {
    flex: none;
    width: 100%;
  }
  .awards-grid {
    grid-template-columns: 1fr;
  }
  .award-card img {
    height: 240px;
  }
}
