/* TriplePixel Games — feuille de style du site vitrine */
:root {
  --bg: #120b24;
  --bg-2: #1b1236;
  --card: #221845;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f0ff;
  --muted: #b9aed6;
  --coral: #ff6f6f;
  --violet: #9b5cff;
  --cyan: #22c7e6;
  --grad: linear-gradient(120deg, var(--coral) 0%, var(--violet) 50%, var(--cyan) 100%);
  --radius: 22px;
  --wrap: 1180px;
  --shadow: 0 20px 60px rgba(5, 0, 20, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: "Baloo 2", "Fredoka", system-ui, sans-serif;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(155, 92, 255, 0.45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(155, 92, 255, 0.6); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.28); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* --- En-tête --- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(18, 11, 36, 0.82);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand img { height: 50px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-links .btn { color: #fff; padding: 11px 22px; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2.5px; background: currentColor; border-radius: 2px; margin: 5px 0; transition: transform 0.25s, opacity 0.25s; }

/* --- Héros --- */
.hero {
  position: relative;
  min-height: min(100vh, 860px);
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/hero.webp") center / cover no-repeat;
  transform: scale(1.04);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 11, 36, 0.95) 0%, rgba(18, 11, 36, 0.78) 42%, rgba(18, 11, 36, 0.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(18, 11, 36, 0) 30%);
}
.hero-content { max-width: 660px; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 36px; color: #d9d0f2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.badge-fr {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 26px;
}
.flag { display: inline-flex; width: 26px; height: 18px; border-radius: 4px; overflow: hidden; }
.flag i { flex: 1; }
.flag i:nth-child(1) { background: #2b52d4; }
.flag i:nth-child(2) { background: #fff; }
.flag i:nth-child(3) { background: #e8394a; }

/* --- Sections --- */
section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head .lead { margin-inline: auto; }

/* Piliers */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pillar {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.pillar:hover { transform: translateY(-6px); border-color: rgba(155, 92, 255, 0.5); }
.pillar-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: var(--grad);
  box-shadow: 0 10px 26px rgba(155, 92, 255, 0.4);
}
.pillar-icon svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillar p { color: var(--muted); margin: 0; }

/* Blocs image + texte */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; }
.split-media::after {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 60%;
  height: 60%;
  border-radius: var(--radius);
  background: var(--grad);
  opacity: 0.35;
  filter: blur(40px);
  z-index: -1;
}
.split p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist li::before {
  content: "";
  flex: 0 0 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 8px;
  background: var(--grad) ;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='8'/%3E%3C/svg%3E") center / contain, linear-gradient(#000 0 0);
}
.checklist li span { color: var(--text); }
.checklist li { position: relative; }
.checklist li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 8px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: "Baloo 2", sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 14px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* Chiffres */
.figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 70px;
  padding: 40px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(255, 111, 111, 0.12), rgba(155, 92, 255, 0.12), rgba(34, 199, 230, 0.12));
  border: 1px solid var(--line);
  text-align: center;
}
.figure strong { display: block; font-family: "Baloo 2", sans-serif; font-size: 2.6rem; line-height: 1.1; }
.figure span { color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 80px 50px;
  text-align: center;
  background: var(--grad);
  box-shadow: 0 30px 80px rgba(155, 92, 255, 0.35);
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/players.webp") center / cover;
  opacity: 0.18;
  mix-blend-mode: soft-light;
}
.contact-card > * { position: relative; }
.contact-card h2 { color: #fff; }
.contact-card p { color: rgba(255, 255, 255, 0.92); max-width: 620px; margin: 0 auto 32px; font-size: 1.12rem; }
.contact-card .btn { background: #fff; color: var(--bg); box-shadow: 0 12px 30px rgba(18, 11, 36, 0.3); }
.contact-card .btn:hover { transform: translateY(-2px); }
.contact-mail { display: block; margin-top: 18px; font-weight: 600; color: #fff; opacity: 0.9; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding: 50px 0 40px; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-grid img { height: 46px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }
.copyright { margin-top: 28px; font-size: 0.88rem; opacity: 0.8; }

/* Pages légales */
.legal { padding: 150px 0 90px; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.6rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.legal a { color: var(--cyan); }
.legal strong { color: var(--text); }
.legal .updated { color: var(--cyan); font-weight: 600; }
.fill { background: rgba(255, 196, 0, 0.16); color: #ffd666; padding: 0 6px; border-radius: 6px; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- Responsive --- */
@media (max-width: 980px) {
  .pillars, .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 80px 0; }
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    background: #120b24;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s linear 0.25s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform 0.25s ease, opacity 0.25s ease; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 12px; }
  .site-header.menu-open { background: #120b24; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .pillars, .steps, .figures { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(180deg, rgba(18, 11, 36, 0.7) 0%, rgba(18, 11, 36, 0.92) 70%, var(--bg) 100%); }
  .contact-card { padding: 60px 24px; }
  .brand img { height: 42px; }
}
