/* =========================================================================
   CITÉ DES CRISTAUX — ALPHA GAMES
   Design system aligné sur les affiches officielles :
   dégradé bordeaux → noir, cadre à équerres, Cinzel + Montserrat.
   ========================================================================= */

:root {
  /* Surfaces */
  --bg: #0b0a0e;
  --bg-1: #131017;
  --bg-2: #1a151f;
  --bg-3: #221b28;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Bordeaux du haut d'affiche */
  --wine-1: #6a1630;
  --wine-2: #4a1224;
  --wine-3: #2a0f1c;

  /* Texte */
  --ink: #e6e2e4;
  --ink-bright: #f6f3f4;
  --muted: #a79fa6;
  --dim: #6f6672;

  /* Rouge de l'affiche */
  --red: #f5314f;
  --red-2: #ff5d74;
  --red-deep: #b01634;
  --red-wash: rgba(245, 49, 79, 0.09);
  --red-glow: rgba(245, 49, 79, 0.5);

  /* Or — réservé au Bingo et aux moments décisifs */
  --gold: #ffd34e;
  --gold-2: #f4a81e;
  --gold-ink: #3a2200;

  /* Polices */
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-serif: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --font-label: "Montserrat", system-ui, sans-serif;

  /* Divers */
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1240px;
  --nav-h: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

::selection {
  background: var(--red);
  color: #fff;
}

/* -------------------------------------------------------------------------
   Typographie
   ------------------------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.98;
  margin: 0;
}

/* Surtitre serif — l'équivalent de « CITÉ DES CRISTAUX » sur l'affiche */
.overline {
  font-family: var(--font-serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  margin: 0;
}

.kicker {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 16px;
}

.kicker::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 88px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.kicker--center {
  justify-content: center;
}

.kicker--center::before {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 88px;
  background: linear-gradient(270deg, var(--red), transparent);
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 66ch;
  font-weight: 400;
}

.glow {
  color: var(--red);
  text-shadow: 0 0 26px rgba(245, 49, 79, 0.35);
}

.glow-gold {
  color: var(--gold);
  text-shadow: 0 0 26px rgba(255, 211, 78, 0.3);
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 26px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section--tight {
  padding: 70px 0;
}

.section--wine {
  background: linear-gradient(180deg, rgba(74, 18, 36, 0.22), rgba(11, 10, 14, 0));
}

.section-head {
  margin-bottom: 50px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
}

.section-head .lead {
  margin-top: 20px;
}

.section-head--center {
  text-align: center;
}

.section-head--center .lead {
  margin-left: auto;
  margin-right: auto;
}

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 12%, var(--red) 88%, transparent);
  opacity: 0.4;
  border: 0;
  margin: 0;
}

/* -------------------------------------------------------------------------
   Cadre à équerres (signature des affiches)
   ------------------------------------------------------------------------- */

.frame {
  position: absolute;
  inset: 26px;
  border: 2px solid var(--red);
  pointer-events: none;
  z-index: 3;
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 45%,
    rgba(0, 0, 0, 0.35) 78%,
    rgba(0, 0, 0, 0.14) 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 45%,
    rgba(0, 0, 0, 0.35) 78%,
    rgba(0, 0, 0, 0.14) 100%
  );
}

.frame span {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid var(--red);
}

.frame span:nth-child(1) { top: -9px; left: -9px; }
.frame span:nth-child(2) { top: -9px; right: -9px; }
.frame span:nth-child(3) { bottom: -9px; left: -9px; }
.frame span:nth-child(4) { bottom: -9px; right: -9px; }

@media (max-width: 640px) {
  .frame { inset: 14px; }
  .frame span { width: 11px; height: 11px; }
  .frame span:nth-child(1) { top: -7px; left: -7px; }
  .frame span:nth-child(2) { top: -7px; right: -7px; }
  .frame span:nth-child(3) { bottom: -7px; left: -7px; }
  .frame span:nth-child(4) { bottom: -7px; right: -7px; }
}

/* Fond dégradé bordeaux → noir, comme sur l'affiche */
.wine-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    135% 105% at 50% -14%,
    var(--wine-1) 0%,
    var(--wine-2) 26%,
    var(--wine-3) 48%,
    #150f17 70%,
    var(--bg) 100%
  );
}

/* -------------------------------------------------------------------------
   Boutons
   ------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 4px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
  text-align: center;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 30px rgba(245, 49, 79, 0.28);
}

.btn--primary:hover:not(:disabled) {
  background: var(--red-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 38px rgba(245, 49, 79, 0.42);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--ink);
}

.btn--ghost:hover:not(:disabled) {
  border-color: var(--red);
  color: var(--red-2);
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 8px 30px rgba(244, 168, 30, 0.25);
}

.btn--gold:hover:not(:disabled) { transform: translateY(-2px); }

.btn--discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.3);
}

.btn--discord:hover:not(:disabled) {
  background: #4752c4;
  transform: translateY(-2px);
}

.btn--sm { padding: 10px 20px; font-size: 12.5px; }
.btn--block { width: 100%; }

/* -------------------------------------------------------------------------
   Pastilles
   ------------------------------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px;
  border-radius: 3px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
}

.pill--red {
  background: var(--red-wash);
  border-color: rgba(245, 49, 79, 0.4);
  color: var(--red-2);
}

.pill--gold {
  background: rgba(255, 211, 78, 0.1);
  border-color: rgba(255, 211, 78, 0.4);
  color: var(--gold);
}

.pill--live {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.dot--pulse { animation: pulse 1.8s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

/* -------------------------------------------------------------------------
   Marque (logo + nom)
   ------------------------------------------------------------------------- */

.crest {
  color: var(--red);
  display: block;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__over {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand__main {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-bright);
  margin-top: 3px;
}

/* -------------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(11, 10, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
  position: relative;
  padding: 5px 0;
}

.nav__link:hover,
.nav__link[data-active="true"] { color: var(--ink-bright); }

.nav__link[data-active="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--red);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  width: 42px;
  height: 42px;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
}

.nav__mobile a {
  padding: 12px 4px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__mobile[data-open="true"] { display: flex; }

@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__right .btn { display: none; }
}

.nav-drawer {
  position: sticky;
  top: var(--nav-h);
  z-index: 99;
  background: rgba(11, 10, 14, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

/* -------------------------------------------------------------------------
   Hero — reprend la composition de l'affiche
   ------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 70px 0 80px;
  overflow: hidden;
}

.hero__inner {
  text-align: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__crest {
  margin: 0 auto 34px;
  width: clamp(64px, 8vw, 96px);
}

.hero__over {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(20px, 3.6vw, 50px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 8.4vw, 122px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink-bright);
  margin: 2px 0 0;
  line-height: 1;
}

.hero__dates {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(19px, 2.8vw, 38px);
  color: var(--red);
  margin: 12px 0 0;
  line-height: 1.2;
}

.hero__tagline {
  margin: 26px 0 0;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: clamp(13px, 1.5vw, 16px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__meta {
  margin-top: 10px;
  color: var(--dim);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.hero__cta {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
   Countdown
   ------------------------------------------------------------------------- */

.countdown {
  margin-top: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.countdown__label {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
}

.countdown__grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.countdown__cell {
  min-width: 88px;
  padding: 14px 14px 11px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  text-align: center;
  backdrop-filter: blur(6px);
}

.countdown__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  color: var(--ink-bright);
  font-variant-numeric: tabular-nums;
}

.countdown__unit {
  margin-top: 7px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.countdown--live .countdown__num { color: var(--red); }

@media (max-width: 520px) {
  .countdown__grid { gap: 7px; }
  .countdown__cell { min-width: 0; flex: 1; padding: 12px 5px 9px; }
  .countdown__num { font-size: 26px; }
  .countdown__unit { font-size: 9px; letter-spacing: 0.1em; }
}

/* -------------------------------------------------------------------------
   Stats
   ------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats__item {
  padding: 38px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stats__item:last-child { border-right: 0; }

.stats__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.02em;
}

.stats__label {
  margin-top: 12px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: 0; }
  .stats__item:nth-child(1),
  .stats__item:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* -------------------------------------------------------------------------
   Cartes
   ------------------------------------------------------------------------- */

.card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: rgba(245, 49, 79, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
}

.card__num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--red);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 25px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 12px 0 0;
}

.card__lead {
  margin-top: 8px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-2);
}

.card__text {
  margin-top: 15px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.card__icon {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--red-wash);
  border: 1px solid rgba(245, 49, 79, 0.3);
  color: var(--red-2);
  margin-bottom: 22px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   Planning
   ------------------------------------------------------------------------- */

.planning {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 1000px) { .planning { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .planning { grid-template-columns: 1fr; } }

.day { display: flex; flex-direction: column; gap: 8px; }

.day__head {
  height: 46px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(245, 49, 79, 0.13);
  border: 1px solid rgba(245, 49, 79, 0.3);
  color: var(--ink-bright);
}

.day--gold .day__head {
  background: rgba(255, 211, 78, 0.12);
  border-color: rgba(255, 211, 78, 0.42);
  color: var(--gold);
}

.day__body {
  position: relative;
  flex: 1;
  min-height: 248px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.day:hover .day__body {
  border-color: rgba(245, 49, 79, 0.42);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
}

.day--gold .day__body {
  border-color: rgba(255, 211, 78, 0.3);
  background: linear-gradient(180deg, rgba(58, 38, 6, 0.42), var(--bg-1));
}

.day--gold:hover .day__body { border-color: rgba(255, 211, 78, 0.6); }

.day__wm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 92px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.032);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.day--gold .day__wm { color: rgba(255, 211, 78, 0.07); }

.day__badge {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.day__time {
  position: relative;
  z-index: 2;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-2);
}

.day--gold .day__time { color: var(--gold); }

.day__title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.06;
  margin: 9px 0 0;
}

.day__desc {
  position: relative;
  z-index: 2;
  margin: 11px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* -------------------------------------------------------------------------
   Split (texte + visuel)
   ------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split--reverse .split__visual { order: -1; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__visual { order: 0; }
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--ink);
}

.checklist li span.bullet {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 10px;
  transform: rotate(45deg);
}

/* Visuel Capitale */
.capitale {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 70% at 50% 118%, rgba(245, 49, 79, 0.28), transparent 62%),
    linear-gradient(180deg, #150c14 0%, #1a1020 55%, #0a070c 100%);
}

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

.capitale__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 16%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.2px 1.2px at 31% 34%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.6px 1.6px at 67% 14%, rgba(255, 255, 255, 0.44), transparent),
    radial-gradient(1.2px 1.2px at 86% 30%, rgba(255, 255, 255, 0.28), transparent),
    radial-gradient(1.4px 1.4px at 49% 9%, rgba(255, 255, 255, 0.38), transparent),
    radial-gradient(1.2px 1.2px at 21% 48%, rgba(255, 255, 255, 0.22), transparent),
    radial-gradient(1.2px 1.2px at 78% 46%, rgba(255, 255, 255, 0.24), transparent);
}

.capitale__horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 49, 79, 0.42), transparent);
}

.capitale__fog {
  position: absolute;
  left: -16%;
  right: -16%;
  bottom: -14%;
  height: 56%;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(245, 49, 79, 0.32), transparent 66%),
    radial-gradient(ellipse at 22% 100%, rgba(176, 22, 52, 0.26), transparent 62%);
  filter: blur(18px);
}

.capitale__island { position: absolute; }

.capitale__island::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 78%;
  height: 190%;
  background: linear-gradient(180deg, #2a1a26 0%, #1a1019 45%, rgba(11, 7, 13, 0) 100%);
  clip-path: polygon(0% 0%, 100% 0%, 74% 42%, 52% 100%, 34% 58%, 14% 34%);
}

.capitale__slab {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, #3a2434, #1f141f);
  border-top: 1px solid rgba(245, 49, 79, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.capitale__tower {
  position: absolute;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 93, 116, 0.15) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, rgba(255, 93, 116, 0.15) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, #362334, #180f18);
  border: 1px solid rgba(245, 49, 79, 0.2);
  border-bottom: 0;
}

.capitale__tower::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -3px;
  width: 4px;
  height: 4px;
  background: var(--red);
  box-shadow: 0 0 12px var(--red-glow);
  animation: beacon 3.4s ease-in-out infinite;
}

@keyframes beacon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.capitale__tag { position: absolute; left: 18px; bottom: 16px; z-index: 3; }

/* Pièce Alpha Coin */
.coin {
  width: min(240px, 60vw);
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 0 auto;
  background: radial-gradient(circle at 34% 28%, var(--gold), var(--gold-2) 62%, #b87d0c);
  border: 9px solid rgba(122, 62, 0, 0.22);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 100px;
  color: var(--gold-ink);
  box-shadow: 0 22px 62px rgba(244, 168, 30, 0.24), inset 0 -10px 22px rgba(122, 62, 0, 0.28);
  animation: coin-float 5s ease-in-out infinite;
}

@keyframes coin-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

/* Shop */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.chip {
  padding: 10px 20px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  transition: all 0.25s ease;
}

.chip:hover {
  border-color: rgba(245, 49, 79, 0.55);
  background: var(--red-wash);
  color: var(--red-2);
}

.clock {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(54px, 10vw, 118px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* -------------------------------------------------------------------------
   Bandeau CTA
   ------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 78px);
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 38px;
  position: relative;
  z-index: 1;
}

.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }

@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

.footer__col h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 14px;
}

.footer__col a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer__col a:hover { color: var(--red-2); }

.footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 13px;
}

/* -------------------------------------------------------------------------
   Formulaires
   ------------------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.input::placeholder { color: var(--dim); }

.input:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(245, 49, 79, 0.05);
  box-shadow: 0 0 0 3px rgba(245, 49, 79, 0.12);
}

.input:disabled { opacity: 0.55; cursor: not-allowed; }

.slot { display: flex; align-items: center; gap: 13px; }

.slot__num {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  background: var(--red-wash);
  border: 1px solid rgba(245, 49, 79, 0.32);
  color: var(--red-2);
}

.slot--sub .slot__num {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  border-style: dashed;
  color: var(--dim);
}

.alert {
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 15.5px;
  line-height: 1.55;
  border: 1px solid;
}

.alert--error {
  background: rgba(245, 49, 79, 0.09);
  border-color: rgba(245, 49, 79, 0.42);
  color: #ffb0bb;
}

.alert--ok {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.35);
  color: #86efac;
}

.alert--info {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--muted);
}

/* -------------------------------------------------------------------------
   En-tête des sous-pages
   ------------------------------------------------------------------------- */

.page-head {
  position: relative;
  padding: 76px 0 62px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(34px, 6.4vw, 74px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 14px 0 0;
}

/* -------------------------------------------------------------------------
   Wiki
   ------------------------------------------------------------------------- */

.wiki { display: grid; grid-template-columns: 240px 1fr; gap: 54px; align-items: start; }

@media (max-width: 940px) {
  .wiki { grid-template-columns: 1fr; gap: 28px; }
  .wiki__nav { position: static !important; }
}

.wiki__nav {
  position: sticky;
  top: calc(var(--nav-h) + 30px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--line);
  padding-left: 4px;
}

.wiki__nav a {
  padding: 9px 16px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  border-left: 2px solid transparent;
  margin-left: -5px;
  transition: all 0.2s ease;
}

.wiki__nav a:hover { color: var(--ink); border-left-color: var(--red); }

.wiki__body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(26px, 3.8vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  scroll-margin-top: calc(var(--nav-h) + 30px);
}

.wiki__body h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-2);
  margin: 32px 0 10px;
}

.wiki__body p { color: var(--muted); font-size: 16px; line-height: 1.75; margin: 0 0 14px; }

.wiki__body ul {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  padding-left: 22px;
  margin: 0 0 16px;
}

.wiki__body li { margin-bottom: 9px; }
.wiki__body li::marker { color: var(--red); }
.wiki__body strong { color: var(--ink); font-weight: 600; }

.wiki__section { padding: 44px 0; border-bottom: 1px solid var(--line); }
.wiki__section:first-child { padding-top: 0; }
.wiki__section:last-child { border-bottom: 0; }

.note {
  margin: 22px 0;
  padding: 17px 22px;
  border-radius: 4px;
  border-left: 2px solid var(--red);
  background: var(--red-wash);
}

.note p { margin: 0; color: var(--ink); font-size: 15.5px; }

.note--gold { border-left-color: var(--gold); background: rgba(255, 211, 78, 0.07); }

/* Tableau */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 22px 0;
}

table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }

thead th {
  text-align: left;
  padding: 13px 18px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* -------------------------------------------------------------------------
   Règlement
   ------------------------------------------------------------------------- */

.article {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 24px;
}

@media (max-width: 700px) { .article { grid-template-columns: 1fr; gap: 10px; } }

.article__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(245, 49, 79, 0.32);
}

.article h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  line-height: 1.1;
  scroll-margin-top: calc(var(--nav-h) + 30px);
}

.article ul { padding-left: 20px; margin: 0; color: var(--muted); line-height: 1.72; }
.article li { margin-bottom: 9px; }
.article li::marker { color: var(--red); }

/* -------------------------------------------------------------------------
   Classement
   ------------------------------------------------------------------------- */

.rank {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px 22px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  margin-bottom: 9px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.rank:hover { border-color: rgba(245, 49, 79, 0.4); transform: translateX(3px); }

.rank__pos {
  width: 48px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  color: var(--dim);
  text-align: center;
}

.rank--1 { border-color: rgba(255, 211, 78, 0.45); background: linear-gradient(180deg, rgba(58, 42, 8, .42), var(--bg-1)); }
.rank--1 .rank__pos { color: var(--gold); }
.rank--2 { border-color: rgba(255, 255, 255, .2); }
.rank--2 .rank__pos { color: #d8d2da; }
.rank--3 { border-color: rgba(205, 127, 50, .35); }
.rank--3 .rank__pos { color: #cd7f32; }

.rank__name {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank__meta {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  text-transform: none;
  color: var(--dim);
  letter-spacing: 0;
  margin-top: 3px;
}

.rank__pts {
  flex-shrink: 0;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.rank__pts small {
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--dim);
  margin-top: 3px;
}

/* -------------------------------------------------------------------------
   Panel admin
   ------------------------------------------------------------------------- */

.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 34px; }

.tab {
  padding: 13px 22px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tab:hover { color: var(--ink); }
.tab[data-active="true"] { color: var(--ink-bright); border-bottom-color: var(--red); }

.tab__count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 2px;
  background: var(--red-wash);
  border: 1px solid rgba(245, 49, 79, 0.3);
  color: var(--red-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tab[data-active="true"] .tab__count { background: var(--red); border-color: var(--red); color: #fff; }

.admin-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 24px;
}

.admin-card + .admin-card { margin-top: 12px; }
.admin-card--rank { display: flex; gap: 18px; align-items: flex-start; }

.admin-rank {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.admin-rank--1 { background: rgba(255, 211, 78, 0.13); border-color: rgba(255, 211, 78, 0.45); color: var(--gold); }
.admin-rank--2 { border-color: rgba(255, 255, 255, .25); color: #d8d2da; }
.admin-rank--3 { border-color: rgba(205, 127, 50, .4); color: #cd7f32; }

.admin-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}

.admin-sub { font-size: 13.5px; color: var(--dim); margin-top: 4px; }

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.score-form { display: flex; gap: 8px; align-items: center; }

.score-form .input {
  width: 124px;
  padding: 9px 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  text-align: center;
}

.btn--danger { background: transparent; border-color: rgba(245, 49, 79, 0.42); color: var(--red-2); }
.btn--danger:hover:not(:disabled) { background: rgba(245, 49, 79, 0.12); border-color: var(--red); transform: translateY(-2px); }

.btn--ok { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.4); color: #6ee7b7; }
.btn--ok:hover:not(:disabled) { background: rgba(52, 211, 153, 0.2); transform: translateY(-2px); }

details.roster { margin-top: 14px; }

details.roster > summary {
  cursor: pointer;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

details.roster > summary::-webkit-details-marker { display: none; }

details.roster > summary::before {
  content: "▸";
  color: var(--red);
  transition: transform 0.2s ease;
  display: inline-block;
}

details.roster[open] > summary::before { transform: rotate(90deg); }
details.roster > summary:hover { color: var(--ink); }

.hint { font-size: 14px; color: var(--dim); line-height: 1.6; }

/* -------------------------------------------------------------------------
   État vide
   ------------------------------------------------------------------------- */

.empty {
  text-align: center;
  padding: 74px 26px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.015);
}

.empty__icon {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  background: var(--red-wash);
  border: 1px solid rgba(245, 49, 79, 0.28);
  color: var(--red-2);
}

.empty h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.empty p { color: var(--muted); max-width: 46ch; margin: 0 auto; }

/* -------------------------------------------------------------------------
   Utilitaires
   ------------------------------------------------------------------------- */

.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-22 { gap: 22px; }
.gap-30 { gap: 30px; }

.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-dim { color: var(--dim); }
.text-sm { font-size: 14px; }

.avatar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); flex-shrink: 0; }

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 2px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-status--pending { background: rgba(255, 211, 78, 0.12); color: var(--gold); }
.badge-status--validated { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }
.badge-status--rejected { background: rgba(245, 49, 79, 0.12); color: var(--red-2); }

/* Révélation au scroll.
   Le contenu est VISIBLE par défaut : l'effet n'est activé que si le
   JavaScript a démarré (attribut data-js posé sur <html>). Sans ce garde-fou,
   une erreur JS rendrait toute la page blanche. */
html[data-js="1"] .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-js="1"] .reveal[data-visible="true"] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html[data-js="1"] .reveal { opacity: 1; transform: none; transition: none; }
  .coin, .capitale__tower::after, .dot--pulse { animation: none; }
  html { scroll-behavior: auto; }
}
