:root {
  --bg: #070910;
  --bg-2: #10141d;
  --bg-3: #171d2b;
  --ink: #e8eef8;
  --muted: #9aa6ba;
  --line: rgba(190, 214, 255, 0.14);
  --cyan: #3ee0c5;
  --cyan-deep: #149c8a;
  --amber: #f0a33c;
  --rose: #ff6b81;
  --violet: #9b8cff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --display: "Syne", sans-serif;
  --sans: "Outfit", sans-serif;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(62, 224, 197, 0.08), transparent 55%),
    radial-gradient(900px 420px at -10% 20%, rgba(240, 163, 60, 0.06), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
}

body.nav-lock { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: rgba(62, 224, 197, 0.28); color: #fff; }

.site-header {
  position: relative;
  z-index: 30;
  background: rgba(7, 9, 16, 0.92);
  border-bottom: 1px solid var(--line);
}

.site-header .container-xl { max-width: 1480px; }

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(62, 224, 197, 0.22), rgba(240, 163, 60, 0.08)),
    #121826;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.brand-mark svg { width: 28px; height: 28px; display: block; }

.brand-mark path { fill: #d7fff6; }

.brand-mark .brand-glaze { fill: var(--amber); }

.brand-text { display: flex; flex-direction: column; line-height: 1; }

.brand-name {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.045em;
  font-size: 1.28rem;
}

.brand-name span { color: var(--cyan); }

.brand-tag {
  margin-top: 5px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #121826;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-panel { display: flex; align-items: center; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #d5deec;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav-list a:hover,
.nav-list a.is-active { color: #fff; }

.nav-list a:hover::after,
.nav-list a.is-active::after { transform: scaleX(1); }

.nav-list a:focus-visible,
.brand:focus-visible,
.btn-glaze:focus-visible,
.btn-ghost:focus-visible,
.nav-toggle:focus-visible,
.text-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 86px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 72px 0 64px;
}

.hero-media,
.page-hero-media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  animation: drift 32s ease-in-out infinite alternate;
}

.hero-media { background-image: url("/assets/images/hero-arene.jpg"); }

.hero-shade,
.page-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 16, 0.18) 0%, rgba(7, 9, 16, 0.55) 48%, rgba(7, 9, 16, 0.94) 100%),
    linear-gradient(90deg, rgba(7, 9, 16, 0.72), rgba(7, 9, 16, 0.12) 70%);
}

.hero-content,
.page-hero-content { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  color: var(--cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  letter-spacing: -0.045em;
  line-height: 1.05;
  font-weight: 700;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.1rem);
  margin: 0 0 1rem;
  max-width: 11ch;
}

.hero-lead,
.page-lead {
  color: #d5deec;
  font-size: 1.16rem;
  max-width: 46rem;
  margin-bottom: 1.6rem;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-glaze,
.btn-ghost,
.text-link {
  text-decoration: none;
}

.btn-glaze,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-glaze {
  background: linear-gradient(120deg, var(--cyan), #b8fff1);
  color: #06241e;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(8, 12, 20, 0.35);
}

.btn-glaze:hover,
.btn-ghost:hover { transform: translateY(-2px); }

.glass-card,
.panel,
.game-card,
.news-card,
.gear-card,
.tourney-card,
.rank-card,
.setup-card,
.info-card,
.legal-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.glass-card { padding: 1.4rem 1.4rem 1.2rem; backdrop-filter: blur(8px); }

.glass-card h2 {
  font-size: 2rem;
  margin: 0.2rem 0 0.6rem;
}

.glass-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  margin-bottom: 1rem;
}

.glass-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }

.stats { margin-top: -36px; position: relative; z-index: 2; }

.stat-grid,
.split-4,
.heat-grid {
  display: grid;
  gap: 14px;
}

.stat-grid { grid-template-columns: repeat(4, 1fr); }

.stat {
  padding: 1.15rem 1.2rem 1rem;
  border-radius: 18px;
  background: #0e1420;
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
  color: #fff;
}

.stat span { color: var(--muted); font-size: 0.95rem; }

.section { padding: 92px 0; }

.section-tight { padding: 28px 0 10px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

.section-head h2,
.block-title {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  margin: 0;
}

.section-head p,
.muted { color: var(--muted); }

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(12, 17, 27, 0.9);
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: ticker 42s linear infinite;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #121826;
  color: #e7eef8;
  text-decoration: none;
  white-space: nowrap;
}

.chip i { color: var(--cyan); }

.shot {
  overflow: hidden;
  border-radius: 18px;
  background: #0c111b;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.7s ease;
}

.tourney-card,
.news-card,
.gear-card,
.setup-card,
.game-card { overflow: hidden; height: 100%; }

.tourney-card:hover .shot img,
.news-card:hover .shot img,
.gear-card:hover .shot img,
.setup-card:hover .shot img { transform: scale(1.1); }

.tourney-card .shot,
.news-card .shot { aspect-ratio: 16 / 10; border-radius: 0; }

.gear-card .shot { aspect-ratio: 4 / 3; border-radius: 0; }

.setup-card .shot { aspect-ratio: 16 / 9; border-radius: 0; }

.card-body { padding: 1.15rem 1.2rem 1.3rem; }

.card-body h3,
.panel h3,
.info-card h3 { margin: 0.25rem 0 0.45rem; font-size: 1.45rem; }

.kicker {
  color: var(--amber);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--cyan);
  font-weight: 600;
  margin-top: 0.7rem;
}

.text-link:hover { color: #fff; }

.game-card {
  padding: 1.1rem 1.1rem 1rem;
  min-height: 168px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 224, 197, 0.45);
}

.game-card i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.8rem;
  background: rgba(62, 224, 197, 0.1);
  color: var(--cyan);
}

.game-card p { color: var(--muted); margin: 0; }

.timeline { display: grid; gap: 12px; }

.time-row {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(16, 20, 29, 0.8);
  text-decoration: none;
}

.time-row:hover { border-color: rgba(62, 224, 197, 0.4); }

.time-row strong { display: block; font-size: 1.05rem; }

.time-date { color: var(--cyan); font-weight: 600; }

.tag {
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.rank-table { width: 100%; border-collapse: collapse; }

.table-responsive .rank-table { min-width: 720px; }

.rank-table th,
.rank-table td {
  padding: 0.85rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.rank-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.up { color: var(--cyan); }
.down { color: var(--rose); }
.flat { color: var(--muted); }

.quote-band {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  background: url("/assets/images/scene-foule.jpg") center/cover no-repeat;
}

.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 16, 0.1), rgba(7, 9, 16, 0.88));
}

.quote-band blockquote {
  position: relative;
  margin: 0;
  max-width: 18em;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.quote-band figcaption {
  position: relative;
  margin-top: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.page-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 78px 0 54px;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  max-width: 14ch;
}

.media-tournois { background-image: url("/assets/images/tournoi-faille.jpg"); }
.media-jeux { background-image: url("/assets/images/scene-foule.jpg"); }
.media-equipements { background-image: url("/assets/images/casque-verre.jpg"); }
.media-setups { background-image: url("/assets/images/setup-atelier.jpg"); }
.media-calendrier { background-image: url("/assets/images/setup-lan.jpg"); }
.media-actualites { background-image: url("/assets/images/redaction-nuit.jpg"); }
.media-classements { background-image: url("/assets/images/podium-glace.jpg"); }
.media-propos { background-image: url("/assets/images/bootcamp.jpg"); }
.media-contact { background-image: url("/assets/images/hero-arene.jpg"); }
.media-legal { background-image: url("/assets/images/podium-glace.jpg"); }

.panel { padding: 1.3rem 1.3rem 1.2rem; height: 100%; }

.panel ol,
.panel ul,
.prose ul,
.prose ol { margin: 0.4rem 0 0; padding-left: 1.1rem; }

.panel li + li,
.prose li + li { margin-top: 0.35rem; }

.split-4 { grid-template-columns: repeat(4, 1fr); }

.heat-grid { grid-template-columns: repeat(4, 1fr); }

.heat {
  padding: 1rem 1rem 0.9rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #10151f;
}

.heat b {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.meter {
  height: 6px;
  border-radius: 99px;
  background: #242b3a;
  margin: 0.7rem 0 0.45rem;
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

.prose { max-width: 760px; }

.prose h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 2rem 0 0.7rem; }

.prose p { color: #d5deec; }

.legal-card { padding: 1.4rem 1.4rem 0.4rem; }

.info-card { padding: 1.25rem; height: 100%; }

.info-card i {
  color: var(--amber);
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

.address-block {
  padding: 1.4rem;
  border-radius: 24px;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(7, 9, 16, 0.2), rgba(7, 9, 16, 0.78)),
    url("/assets/images/redaction-nuit.jpg") center/cover no-repeat;
  border: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
  background: #090c14;
}

.footer-brand {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.footer-brand span { color: var(--cyan); }

.site-footer a { text-decoration: none; color: #d5deec; }

.site-footer a:hover { color: var(--cyan); }

.site-footer h2 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }

.site-footer li + li { margin-top: 0.45rem; }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-base ul { display: flex; flex-wrap: wrap; gap: 8px 16px; }

@keyframes drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(0, -1.5%, 0); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 1320px) {
  .nav-toggle { display: inline-flex; }

  .nav-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #0b1018;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 48px rgba(0, 0, 0, 0.45);
    padding: 8px 0 16px;
    max-height: calc(100vh - 86px);
    overflow: auto;
  }

  .nav-panel.is-open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 12px;
  }

  .nav-list a {
    display: block;
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-list a::after { display: none; }

  .nav-list a.is-active { color: var(--cyan); }
}

@media (max-width: 991px) {
  .stat-grid,
  .split-4,
  .heat-grid { grid-template-columns: repeat(2, 1fr); }

  .time-row { grid-template-columns: 1fr; gap: 6px; }

  .section-head { flex-direction: column; align-items: flex-start; }

  h1 { max-width: none; }
}

@media (max-width: 640px) {
  .stat-grid,
  .heat-grid { grid-template-columns: 1fr; }

  .hero { min-height: 0; padding: 48px 0 36px; }

  .section { padding: 64px 0; }

  .page-hero { min-height: 380px; }

  .footer-base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-media,
  .page-hero-media,
  .marquee-track,
  .reveal { animation: none; }

  .reveal { opacity: 1; transform: none; }

  .shot img { transition: none; }
}
