/* ============================================================
   MUBA GAMES — Feuille de styles
   ------------------------------------------------------------
   Organisation :
     1. Variables & reset
     2. Typographie & utilities
     3. Hero
     4. Dernier-né (KuiKuiz)
     5. Manifeste
     6. Footer
     7. Responsive (≤ 900px)
   ============================================================ */


/* ====================== 1. VARIABLES & RESET ====================== */

:root {
  /* Palette officielle Muba Games */
  --cosmic-indigo: #0D2B3F;
  --cosmic-indigo-deep: #061821;
  --cosmic-indigo-light: #1a3d54;
  --obsidian: #1F1F1F;
  --veiled-moss: #3B533E;
  --stardust-copper: #CD8B65;
  --ether-white: #E2E8F0;

  /* Variantes utiles */
  --ether-70: rgba(226, 232, 240, 0.7);
  --ether-55: rgba(226, 232, 240, 0.55);
  --ether-45: rgba(226, 232, 240, 0.45);
  --ether-15: rgba(226, 232, 240, 0.15);
  --ether-08: rgba(226, 232, 240, 0.08);

  /* Typographie */
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --section-padding: 5rem 2rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cosmic-indigo);
  color: var(--ether-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

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


/* ====================== 2. TYPOGRAPHIE & UTILITIES ====================== */

.copper {
  color: var(--stardust-copper);
}

.copper-strong {
  color: var(--stardust-copper);
  font-weight: 500;
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  font-family: var(--font-display);
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--stardust-copper);
  color: var(--cosmic-indigo);
}

.btn-secondary {
  border: 0.5px solid var(--ether-45);
  color: var(--ether-white);
  font-weight: 300;
}

.btn-link {
  color: var(--ether-70);
  font-weight: 300;
  padding: 11px 0;
}

.btn-link:hover {
  color: var(--stardust-copper);
}

/* Eyebrow réutilisable */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ether-55);
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--stardust-copper);
  border-radius: 50%;
  flex-shrink: 0;
}

.rule {
  width: 40px;
  height: 0.5px;
  background: var(--stardust-copper);
  margin-bottom: 20px;
}


/* ====================== 3. HERO ====================== */

.hero {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(
    ellipse at 50% 35%,
    var(--cosmic-indigo-light) 0%,
    var(--cosmic-indigo) 45%,
    var(--cosmic-indigo-deep) 100%
  );
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  position: relative;
  z-index: 3;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--ether-white);
}

.nav-logo {
  width: 24px;
  height: 24px;
  /* Le SVG est tricolore par défaut ; on le forçe en blanc dans la nav */
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ether-70);
  font-family: var(--font-display);
  font-weight: 400;
}

.nav-links a:hover {
  color: var(--stardust-copper);
}

/* Sélecteur de langue */
.lang-switch {
  display: flex;
  gap: 2px;
  align-items: center;
}

.lang-switch button {
  background: transparent;
  border: none;
  color: var(--ether-45);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 6px 8px;
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
}

.lang-switch button:hover {
  color: var(--ether-white);
}

.lang-switch button.is-active {
  color: var(--stardust-copper);
}

.lang-switch button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 12px;
  height: 1px;
  background: var(--stardust-copper);
}

.lang-switch button:not(:last-child)::before {
  content: "·";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ether-15);
  font-size: 12px;
  pointer-events: none;
}

/* Hero content centré */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.hero-logo {
  width: 130px;
  height: 130px;
  margin-bottom: 2rem;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--ether-white);
  opacity: 0.65;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  color: var(--ether-70);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero footer */
.hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ether-45);
  text-transform: uppercase;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ether-45);
  font-family: var(--font-display);
}

.hero-scroll svg {
  color: var(--stardust-copper);
}


/* ====================== 4. DERNIER-NÉ (KUIKUIZ) ====================== */

.kuikuiz {
  background: var(--cosmic-indigo);
  padding: var(--section-padding);
}

.kuikuiz-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--cosmic-indigo);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.kuikuiz-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* Quiz mockup live */
.quiz-mockup {
  background: linear-gradient(135deg, var(--obsidian) 0%, var(--cosmic-indigo) 100%);
  border-radius: 6px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.quiz-mockup-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(205, 139, 101, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.quiz-mockup-content {
  position: relative;
  z-index: 2;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.quiz-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ether-70);
}

.quiz-mini-logo {
  width: 14px;
  height: 14px;
  opacity: 0.45;
}

.live-pulse {
  width: 6px;
  height: 6px;
  background: #ff5e5e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 94, 94, 0.6);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.quiz-progress {
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--ether-55);
}

.quiz-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stardust-copper);
  margin-bottom: 8px;
}

.quiz-question {
  color: var(--ether-white);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.quiz-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.quiz-answer {
  background: rgba(13, 43, 63, 0.8);
  border: 0.5px solid var(--ether-15);
  border-radius: 4px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ether-70);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.quiz-answer:hover {
  border-color: var(--ether-45);
}

.quiz-answer.is-correct {
  background: rgba(59, 83, 62, 0.5);
  border-color: var(--stardust-copper);
  box-shadow: 0 0 16px rgba(205, 139, 101, 0.15);
  color: var(--ether-white);
}

.quiz-letter {
  width: 18px;
  height: 18px;
  border: 0.5px solid rgba(226, 232, 240, 0.3);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.quiz-letter.is-filled {
  background: var(--stardust-copper);
  color: var(--cosmic-indigo);
  font-weight: 500;
  border-color: var(--stardust-copper);
}

.quiz-timer {
  height: 3px;
  background: var(--ether-08);
  border-radius: 2px;
  margin-bottom: 14px;
  overflow: hidden;
}

.quiz-timer-bar {
  height: 100%;
  width: 38%;
  background: var(--stardust-copper);
  border-radius: 2px;
  animation: countdown 8s linear forwards;
}

@keyframes countdown {
  to { width: 0; }
}

.quiz-footer {
  border-top: 0.5px solid rgba(226, 232, 240, 0.1);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-footer-left {
  display: flex;
  gap: 14px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ether-55);
}

.quiz-countdown {
  font-size: 13px;
  color: var(--stardust-copper);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Pitch côté droit */
.kuikuiz-pitch {
  padding: 0 1rem;
}

.section-tagline {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ether-55);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.lead {
  color: rgba(226, 232, 240, 0.75);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.body {
  color: rgba(226, 232, 240, 0.6);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

/* Méta-grid (durée / joueurs / rythme) */
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--ether-08);
  margin-bottom: 1.75rem;
}

.meta-cell {
  background: var(--cosmic-indigo);
  padding: 14px 12px;
}

.meta-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ether-55);
  margin-bottom: 6px;
}

.meta-value {
  font-size: 16px;
  font-weight: 300;
  color: var(--ether-white);
}

.kuikuiz-cta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}


/* ====================== 5. MANIFESTE ====================== */

.manifeste {
  background: var(--cosmic-indigo);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.manifeste-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59, 83, 62, 0.18) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.manifeste-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

.manifeste-header {
  text-align: center;
  margin-bottom: 3rem;
}

.manifeste-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ether-55);
}

.rule-h {
  width: 24px;
  height: 0.5px;
  background: rgba(205, 139, 101, 0.6);
}

.manifeste-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.2;
  max-width: 540px;
  margin: 0 auto;
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  max-width: 880px;
  margin: 0 auto;
}

.principle {
  padding: 1.5rem 1.75rem;
  border-right: 0.5px solid rgba(226, 232, 240, 0.12);
}

.principle:last-child {
  border-right: none;
}

.principle-num {
  font-size: 38px;
  color: var(--stardust-copper);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  font-family: var(--font-display);
}

.principle-label {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ether-55);
  margin-bottom: 14px;
}

.principle-lead {
  color: var(--ether-white);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 12px;
}

.principle-body {
  color: rgba(226, 232, 240, 0.6);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
}

.manifeste-signature {
  text-align: center;
  margin-top: 3rem;
  color: var(--ether-55);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.15em;
  font-style: italic;
}

.dot-copper {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--stardust-copper);
  border-radius: 50%;
  margin-bottom: 1.25rem;
}


/* ====================== 6. FOOTER ====================== */

.footer {
  background: var(--cosmic-indigo-deep);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 0.5px solid rgba(226, 232, 240, 0.1);
}

.footer-brand {
  max-width: 280px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--ether-white);
  font-family: var(--font-display);
}

.footer-logo {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.footer-pitch {
  color: var(--ether-55);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.socials {
  display: flex;
  gap: 14px;
  margin-top: 1rem;
}

.social {
  width: 28px;
  height: 28px;
  border: 0.5px solid rgba(226, 232, 240, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 232, 240, 0.6);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.social:hover {
  border-color: var(--stardust-copper);
  color: var(--stardust-copper);
}

.footer-col-title {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(205, 139, 101, 0.7);
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--ether-70);
  font-size: 12px;
  font-weight: 300;
}

.footer-col a:hover {
  color: var(--stardust-copper);
}

.muted-italic {
  color: var(--ether-45);
  font-size: 12px;
  font-weight: 300;
  font-style: italic;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ether-45);
}

.legal-links {
  display: flex;
  gap: 20px;
  letter-spacing: 0.12em;
}

.legal-links a:hover {
  color: var(--stardust-copper);
}


/* ====================== 7. RESPONSIVE (≤ 900px) ====================== */

@media (max-width: 900px) {

  .nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .lang-switch {
    order: 3;
    gap: 0;
  }

  .lang-switch button {
    font-size: 10px;
    padding: 4px 6px;
  }

  .hero-content {
    padding: 2rem 1.5rem;
  }

  .hero-logo {
    width: 100px;
    height: 100px;
  }

  .kuikuiz-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .kuikuiz-pitch {
    padding: 0;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle {
    border-right: none;
    border-bottom: 0.5px solid rgba(226, 232, 240, 0.12);
    padding: 1.5rem 0;
  }

  .principle:last-child {
    border-bottom: none;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

}

@media (max-width: 600px) {

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

}
