@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@300;400;600&display=swap');

/* ===================== */
/* Variables globales */
/* ===================== */
:root {
  --bg: #0b0b14;
  --bg-alt: #131326;
  --primary: #00ffd1;
  --secondary: #ff4ecd;
  --text: #eaeaf0;
  --muted: #9aa0b5;
  --border: rgba(255,255,255,0.12);
}

body.corporate{
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --primary: #1a5cff;
  --secondary: #2b2f42;
  --text: #1e1e2f;
  --muted: #5a627a;
  --border: rgba(0,0,0,0.1);
}


/* ===================== */
/* Reset / base */
/* ===================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, var(--bg), var(--bg-alt));
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===================== */
/* Effet CRT */
/* ===================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.035) 0px,
    rgba(255,255,255,0.035) 1px,
    transparent 2px,
    transparent 4px
  );
  z-index: 999;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(0,255,209,0.06),
    transparent 70%
  );
  z-index: 998;
}

/* ===================== */
/* Typographie */
/* ===================== */
h1, h2, h3 {
  font-family: 'Press Start 2P', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 0.75rem;
  margin-bottom: 0.6rem;
}

p {
  color: var(--muted);
  max-width: 900px;
}

/* ===================== */
/* Layout */
/* ===================== */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 4rem 1.5rem;
}

/* ===================== */
/* HERO */
/* ===================== */
.hero {
  text-align: center;
  padding: 6rem 1.5rem;
  border-bottom: 1px dashed var(--border);
}

.hero h1 {
  color: var(--primary);
}

.hero-sub {
  margin: 1rem auto 0 auto;
  text-align: center;
  max-width: 520px;
  text-shadow:
    0 0 6px rgba(0,255,209,0.35),
    0 0 12px rgba(0,255,209,0.15);
}

/* ===================== */
/* Flicker rétro */
/* ===================== */
.flicker {
  animation: flicker 3s infinite;
}

@keyframes flicker {
  0%, 19%, 22%, 62%, 64%, 100% { opacity: 1; }
  20%, 21%, 63% { opacity: 0.6; }
}

/* ===================== */
/* Boutons */
/* ===================== */
.cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 1.4rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  transition: all 0.2s ease;
  image-rendering: pixelated;
}

.cta:hover {
  background: var(--primary);
  color: #000;
}

/* ===================== */
/* Sections */
/* ===================== */
.section-intro {
  margin-bottom: 2.5rem;
}

/* ===================== */
/* Grilles */
/* ===================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* ===================== */
/* Cards */
/* ===================== */
.skill {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
  padding: 1.5rem;
  image-rendering: pixelated;
}

/* ===================== */
/* Game card icon */
/* ===================== */

.game-card {
  text-align: center;
}

.game-icon {
  width: 96px;
  height: 96px;
  margin: 1rem auto;
  display: block;
  image-rendering: pixelated;
  border: 2px solid var(--primary);
  background: #000;
  box-shadow:
    0 0 8px rgba(0,255,209,0.5),
    inset 0 0 6px rgba(0,0,0,0.6);  
}


/* ===================== */
/* Team card */
/* ===================== */

.team-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.team-avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
  image-rendering: pixelated;
  border: 2px solid var(--primary);
  background: #000;
  box-shadow:
    0 0 6px rgba(0,255,209,0.5),
    inset 0 0 4px rgba(0,0,0,0.6);  
}

.team-info h3 {
  margin-top: 0;
}

.team-info p {
  margin: 0;
  font-size: 0.85rem;
}

/* ===================== */
/* Liens */
/* ===================== */
a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===================== */
/* Footer */
/* ===================== */
footer {
  text-align: center;
  padding: 3rem 1.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px dashed var(--border);
}

.site-footer {
  border-top: 1px dashed var(--border);
  padding: 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

body:not(.corporate) .footer-social a:hover {
  box-shadow: 0 0 8px rgba(0,255,209,0.6);
}


.section-active {
  animation: sectionFade 0.6s ease-out;
}

@keyframes sectionFade {
  from {
    opacity: 0.85;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================== */
/* Corporate overrides */
/* ===================== */

body.corporate h1,
body.corporate h2,
body.corporate h3 {
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
}

body.corporate .flicker {
  animation: none;
}

body.corporate .cta {
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
}

body.corporate body::before,
body.corporate body::after {
  display: none;
}

/* ===================== */
/* Theme toggle */
/* ===================== */

.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 2px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 0.75rem;
  z-index: 1000;
}
