:root {
  --bg: #1a2230;
  --bg-2: #202b3b;
  --card: #243142;
  --card-hover: #2c3d54;
  --border: #314153;
  --border-strong: #3d5168;
  --text: #ffffff;
  --muted: #abb5c4;
  --accent: #1474e1;
  --accent-hover: #0f66cc;
  --accent-soft: rgba(111, 168, 255, 0.14);
  --on-accent: #ffffff;
  --gold: #e8b931;
  --silver: #b8c0cc;
  --bronze: #cd8a52;
  --danger: #ef5b6a;
  --radius: 12px;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg-dots {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 50% 0, rgba(111, 168, 255, 0.18), transparent 32%),
    radial-gradient(circle at 0% 50%, rgba(102, 187, 200, 0.1), transparent 26%),
    radial-gradient(circle at 100% 40%, rgba(111, 168, 255, 0.12), transparent 26%),
    linear-gradient(#1a2230, #1d2634 45%, #1a2230);
  background-size: 140% 140%, 120% 120%, 120% 120%, 100% 100%;
  animation: home-glow 18s ease-in-out infinite alternate;
}

@keyframes home-glow {
  from { background-position: 50% 0%, 0% 40%, 100% 30%, 0 0; }
  to { background-position: 42% 10%, 10% 58%, 90% 50%, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}

main {
  flex: 1;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(26, 34, 48, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 64px;
  max-width: 1280px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.logo-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}

.nav-links a {
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--card);
}

.nav-links a.active {
  color: var(--text);
  background: var(--card);
}

.lang {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 36px;
  padding: 0 0.65rem 0 0.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-btn svg,
.lang-menu svg {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  display: block;
  flex-shrink: 0;
}

.lang-btn > svg:last-child {
  width: 12px;
  height: 8px;
  border-radius: 0;
  opacity: 0.75;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  min-width: 190px;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #121826;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-weight: 600;
  text-align: left;
}

.lang-menu button:hover,
.lang-menu button[aria-selected="true"] {
  background: var(--card);
}

.lang-menu button[aria-selected="true"]::after {
  content: "";
  margin-left: auto;
  width: 6px;
  height: 10px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--card);
}

.btn-secondary:hover {
  background: var(--card-hover);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Typo */

h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.02rem;
  font-weight: 700;
}

.lead {
  max-width: 600px;
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.accent {
  color: var(--accent);
}

.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.card-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.note {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Structure */

.page-head {
  padding: 2.75rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
}

.block {
  padding: 2.25rem 0 0;
}

.block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card);
  background-image: repeating-linear-gradient(
    -32deg,
    transparent,
    transparent 13px,
    rgba(111, 168, 255, 0.05) 13px,
    rgba(111, 168, 255, 0.05) 14px
  );
}

a.card {
  transition: border-color 0.15s, background 0.15s;
}

a.card:hover {
  border-color: var(--border-strong);
  background-color: var(--card-hover);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.big-number {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Hero accueil */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 500px;
  margin-top: 2rem;
  padding: 4rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.hero-visual {
  background:
    linear-gradient(90deg, #05070b 0%, rgba(5, 7, 11, 0.94) 38%, rgba(5, 7, 11, 0.3) 70%, rgba(5, 7, 11, 0) 100%),
    url("assets/hero.jpg") center / cover no-repeat;
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 570px;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
}

.btn-lg {
  padding: 0.9rem 1.7rem;
  font-size: 0.95rem;
}

.hero-sub {
  margin-top: 1.2rem;
  font-size: 1.05rem;
  color: #c3ccd8;
}

.hero-socials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 0.75rem;
  margin-top: 2rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(11, 15, 22, 0.8);
  backdrop-filter: blur(6px);
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.social-btn svg {
  flex-shrink: 0;
  color: var(--accent);
}

.social-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hero-legal {
  margin-top: 1.4rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.block-head .eyebrow {
  margin-bottom: 0.3rem;
}

.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: 1px dashed var(--accent);
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  transition: background 0.15s;
}

.hero-code {
  width: 250px;
  margin-top: 1rem;
  background: rgba(7, 12, 22, 0.85);
}

.code-box:hover {
  background: rgba(47, 124, 246, 0.2);
}

.check-list {
  list-style: none;
  margin: 1.2rem 0;
  font-size: 0.92rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
}

.check-list li + li {
  margin-top: 0.45rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Offres illustrées */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.offer-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

.offer-card img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.35s ease;
}

.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.5);
}

.offer-card:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.offer-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.offers-top {
  padding-top: 3rem;
}

.offers-legal {
  margin-top: 1.2rem;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .offer-card,
  .offer-card img {
    transition: none;
  }
}

.inline-code {
  padding: 0.05rem 0.45rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
}

.cta-band p {
  margin-top: 0.3rem;
  color: var(--muted);
}

/* Compte à rebours */

.countdown {
  display: flex;
  gap: 0.5rem;
}

.cd-box {
  min-width: 72px;
  padding: 0.6rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
  text-align: center;
}

.cd-box strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.cd-box span {
  font-size: 0.7rem;
  color: var(--muted);
}

.countdown-sm .cd-box {
  min-width: 0;
  flex: 1;
  padding: 0.45rem 0.3rem;
}

.countdown-sm .cd-box strong {
  font-size: 1.15rem;
}

.countdown-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ended {
  font-weight: 600;
  color: var(--accent);
}

/* Top 5 accueil */

.top-list {
  list-style: none;
  margin-top: 1.2rem;
}

.top-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}

.top-name {
  flex: 1;
  font-weight: 600;
}

.top-wager {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.rank-pill {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 26px;
  padding: 0 0.4rem;
  border-radius: 6px;
  background: var(--bg-2);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.rank-pill.rank-1 { color: var(--gold); }
.rank-pill.rank-2 { color: var(--silver); }
.rank-pill.rank-3 { color: var(--bronze); }

/* Page Stake : étapes */

.howto {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.timeline {
  list-style: none;
  padding: 0.4rem 0;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.1rem;
  padding-bottom: 2rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: var(--border-strong);
}

.tl-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--bg-2);
  font-weight: 700;
}

.timeline h3 {
  margin: 0.55rem 0 0.25rem;
  font-size: 1.08rem;
}

.timeline h3 span {
  color: var(--accent);
}

.timeline p {
  max-width: 460px;
  font-size: 0.93rem;
  color: var(--muted);
}

.howto-panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(15, 20, 28, 0.85);
}

.howto-panel .code-box {
  margin-top: 0;
}

.howto-panel .note {
  margin-top: 0;
  text-align: center;
}

.signup-shot {
  max-width: 400px;
  margin-top: 1rem;
}

.signup-shot img {
  display: block;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.signup-shot figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.howto-panel {
  position: sticky;
  top: 88px;
}

.howto-panel:has(.vip-form) {
  max-height: calc(100vh - 104px);
  overflow-y: auto;
}

.banner-link {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s;
}

.banner-link img {
  display: block;
  width: 100%;
  transition: filter 0.35s;
}

.banner-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.5);
}

.banner-link:hover img {
  filter: brightness(1.08);
}

.eu-slot + .offer-grid,
.eu-slot + .block-head {
  margin-top: 1.6rem;
}

.home-offers .eu-slot {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.home-offers .home-banner {
  max-width: 860px;
  margin: 1.6rem auto 0;
}

.home-hero {
  position: relative;
  margin-top: 1.25rem;
  padding: 3.4rem 1rem 0.4rem;
  text-align: center;
}

.home-hero h1 {
  font-size: clamp(2.7rem, 7vw, 4.8rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.home-kicker {
  display: block;
  margin-bottom: 0.15rem;
}

.home-brand {
  display: block;
  color: #6fa8ff;
}

.home-hero-lead {
  max-width: 540px;
  margin: 1.15rem auto 0;
  color: #c5d0de;
  font-size: 1.02rem;
}

.home-hero .code-box {
  width: auto;
  min-width: 190px;
  margin: 1.35rem auto 0;
  border-radius: 999px;
}

.home-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.home-hero .btn {
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
}

.home-hero .btn-primary {
  box-shadow: 0 10px 28px rgba(47, 124, 246, 0.32);
}

.home-hero .btn-secondary {
  border-color: var(--border-strong);
  background: #202b3b;
}

.home-hero .home-stats {
  margin-top: 2.5rem;
}

.home-hero .stat {
  padding: 1.15rem 0.8rem 1.05rem;
  border-radius: 16px;
}

.home-hero .stat strong {
  display: block;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #6fa8ff;
}

.home-hero .stat span {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
}

.home-hero .hero-legal {
  margin-top: 1.1rem;
}

.home-offers .offer-grid {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Page Stake : avantages */

.perks {
  border-top: 1px solid var(--border);
}

.perk {
  display: grid;
  grid-template-columns: 1fr 160px 110px;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.perk-simple {
  grid-template-columns: 1fr 160px;
}

.perk h3 {
  margin-bottom: 0.15rem;
}

.perk p {
  font-size: 0.92rem;
  color: var(--muted);
}

.perk-value {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.perk-link {
  justify-self: end;
}

.bonus-calc {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: end;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.calc-field {
  display: grid;
  gap: 0.4rem;
}

.calc-field strong {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 44px;
  font-variant-numeric: tabular-nums;
}

.calc-total strong {
  color: var(--accent);
}

.calc-input {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 0.9rem;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.calc-input:focus-within {
  border-color: var(--accent);
}

.calc-input input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.calc-input input::-webkit-outer-spin-button,
.calc-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-input span {
  color: var(--muted);
  font-weight: 600;
}

.calc-op {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 44px;
}

.calc-min {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  color: var(--muted);
}

.calc-min strong {
  color: var(--text);
}

.below-min .calc-input {
  border-color: var(--danger);
}

.below-min .calc-min span:first-child,
.below-min .calc-min span:first-child strong {
  color: var(--danger);
}

.capped .calc-max,
.capped .calc-max strong {
  color: var(--accent);
}

/* FAQ */

.faq {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 720px;
  padding: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Podium */

.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 1rem;
}

.podium-card {
  --c: var(--silver);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--c);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
}

.podium-card.rank-1 {
  --c: var(--gold);
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
}

.podium-card.rank-3 {
  --c: var(--bronze);
}

.podium-rank {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.8rem;
  border: 1px solid var(--c);
  border-radius: 50%;
  color: var(--c);
  font-weight: 800;
}

.podium-card h3 {
  margin-bottom: 0.8rem;
}

.podium-card .wagered {
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.podium-card .prize {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.25rem 0.8rem;
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--c);
  font-weight: 700;
}

/* Tableaux */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.table th {
  padding: 0.8rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: var(--card-hover);
}

.table td small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.table tr.pending td {
  color: var(--muted);
}

.prize-cell {
  color: var(--accent);
  font-weight: 600;
}

.multi {
  font-weight: 700;
}

.multi.big { color: var(--gold); }
.multi.low { color: var(--danger); }

.rules {
  padding-left: 1.2rem;
  color: var(--muted);
}

.rules li + li {
  margin-top: 0.5rem;
}

/* Stats bonus hunt */

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.stat {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card);
  background-image: repeating-linear-gradient(
    -32deg,
    transparent,
    transparent 13px,
    rgba(111, 168, 255, 0.05) 13px,
    rgba(111, 168, 255, 0.05) 14px
  );
}

.stat span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.stat strong {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stats-compact {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.stats-compact .stat {
  padding: 0.8rem 1rem;
  background: var(--bg-2);
}

.stats-compact .stat strong {
  font-size: 1.05rem;
}

.stats-compact .stat:last-child {
  grid-column: 1 / -1;
}

.progress {
  height: 6px;
  margin-top: 1rem;
  border-radius: 999px;
  background: var(--bg-2);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
}

/* VIP */

.howto-panel .vip-form {
  display: grid;
  gap: 0.75rem;
}

.howto-panel .admin-field > span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.howto-panel .admin-field textarea {
  min-height: 88px;
}

.howto-panel .admin-msg {
  margin-top: 0;
}

#vip-turnstile {
  min-height: 65px;
}

/* Decide */

.decide {
  margin-top: 1.5rem;
  padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(90% 42% at 50% 0%, rgba(20, 116, 225, 0.2), transparent 58%),
    var(--card);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.decide-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.decide-count {
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: #121826;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(20, 116, 225, 0.12);
}

.decide-page {
  max-width: 1180px;
}

.decide-reel {
  position: relative;
  margin-top: 1rem;
  border-radius: 18px;
  background:
    radial-gradient(46% 70% at 50% 42%, rgba(20, 116, 225, 0.22), transparent 72%),
    #101722;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.decide-marker {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 34px;
  z-index: 4;
  pointer-events: none;
}

.decide-line {
  position: absolute;
  top: 14px;
  left: 2%;
  right: 2%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #3b92ee 10%, #d7ebff 50%, #3b92ee 90%, transparent);
  box-shadow:
    0 0 6px #7eb6ff,
    0 0 16px rgba(20, 116, 225, 0.95),
    0 0 36px rgba(20, 116, 225, 0.45);
}

.decide-pin {
  position: absolute;
  top: 0;
  left: 50%;
  color: #5aa8ff;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 5px #d7ebff) drop-shadow(0 0 12px #1474e1);
}

.decide-pin circle {
  fill: #0c121c;
}

.decide-viewport {
  position: relative;
  height: 268px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.decide-viewport::after {
  content: "";
  position: absolute;
  top: 42px;
  bottom: 18px;
  left: 50%;
  width: 156px;
  transform: translateX(-50%);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(126, 182, 255, 0.28);
  background: linear-gradient(180deg, rgba(20, 116, 225, 0.16), transparent 72%);
  pointer-events: none;
}

.decide-strip {
  position: absolute;
  top: 46px;
  left: 0;
  z-index: 1;
  display: flex;
  gap: 14px;
  will-change: transform;
}

.decide-tile {
  flex: 0 0 146px;
  height: 192px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38);
  transition: transform 0.35s cubic-bezier(0.2, 1.2, 0.4, 1), box-shadow 0.35s;
}

.decide-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.decide-tile.win {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px #7eb6ff, 0 12px 32px rgba(20, 116, 225, 0.65);
  z-index: 2;
}

.decide-hint {
  width: fit-content;
  margin: 0.9rem auto 0;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(20, 116, 225, 0.12);
  color: #d7ebff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.decide-spin {
  display: flex;
  width: min(440px, 100%);
  height: 58px;
  margin: 0.85rem auto 0;
  border-radius: 14px;
  font-size: 1.08rem;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(20, 116, 225, 0.38);
}

.decide-spin:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.decide-result {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(20, 116, 225, 0.16), transparent 42%),
    #121826;
  border: 1px solid rgba(20, 116, 225, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.decide-result img {
  width: 72px;
  height: 94px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
  background: #121826;
}

.decide-result h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.decide-result .btn {
  margin-left: auto;
}

.decide-prov {
  color: var(--muted);
  font-size: 0.85rem;
}

.decide-providers {
  margin-top: 1.4rem;
}

.decide-prov-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.decide-prov-head h2 {
  font-size: 1rem;
}

.decide-tools {
  display: flex;
  gap: 0.4rem;
}

.decide-tools button {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
}

.decide-tools button:hover {
  border-color: var(--accent);
}

#decide-search {
  width: 100%;
  height: 42px;
  margin-bottom: 0.75rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

#decide-search:focus {
  outline: 0;
  border-color: var(--accent);
}

.decide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-height: 280px;
  overflow: auto;
  align-content: flex-start;
}

.decide-more {
  margin-top: 0.75rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg);
  font-size: 0.82rem;
  font-weight: 700;
}

.decide-more:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.decide-chip {
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.decide-chip:hover {
  color: var(--text);
  border-color: var(--accent);
}

.decide-chip.on {
  color: #fff;
  border-color: transparent;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(126, 182, 255, 0.4);
}

@media (max-width: 800px) {
  .decide-tile {
    flex-basis: 108px;
    height: 142px;
  }

  .decide-viewport {
    height: 214px;
  }

  .decide-viewport::after {
    top: 40px;
    width: 118px;
  }

  .decide-strip {
    top: 42px;
  }

  .decide-chips {
    max-height: 220px;
  }

  .decide-result {
    flex-wrap: wrap;
  }

  .decide-result .btn {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .decide-tile {
    transition: none;
  }
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.vip-status {
  display: grid;
  gap: 0.85rem;
}

.vip-status h3 {
  font-size: 1.2rem;
}

.vip-status > p {
  color: var(--muted);
  font-size: 0.92rem;
}

.vip-status blockquote,
.ticket-card blockquote {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
  border-radius: 0 10px 10px 0;
  color: var(--text);
  white-space: pre-wrap;
}

/* Accueil */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.home-stats {
  grid-template-columns: repeat(4, 1fr);
}

.home-head {
  border-bottom: 0;
  padding-bottom: 0;
}

.home-socials {
  grid-template-columns: repeat(4, 1fr);
}

.home-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  min-height: 0;
  padding: 0.95rem 1rem;
}

.home-social svg {
  color: var(--accent);
  margin: 0;
  flex-shrink: 0;
}

.home-social h3 {
  margin: 0;
}

.home-social p {
  display: none;
}

/* Communauté */

.social-card {
  background-image: none;
}

.social-kick svg {
  color: #53fc18;
}

.social-youtube svg {
  color: #ff0000;
}

.social-card h3 {
  margin-bottom: 0.3rem;
}

.social-card p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Planning */

.next-live {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border-left: 3px solid var(--accent);
}

.next-live h2 {
  margin: 0.3rem 0 0.2rem;
  font-size: 1.7rem;
}

.next-live-when {
  color: var(--muted);
}

.next-live-when::first-letter {
  text-transform: uppercase;
}

.next-live-side {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.6rem;
}

.day {
  min-height: 150px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.day header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
  font-weight: 700;
}

.day.today {
  border-color: var(--accent);
}

.today-tag {
  width: fit-content;
  padding: 0.1rem 0.45rem;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
}

.day-live + .day-live {
  margin-top: 0.7rem;
}

.day-live strong {
  display: block;
  font-size: 1.1rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.day-live p {
  font-size: 0.85rem;
  color: #c3ccd8;
  line-height: 1.4;
}

.day.off {
  background: var(--bg-2);
}

.day-off {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */

.footer {
  margin-top: 5rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-tagline {
  max-width: 320px;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer h4 {
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-top div > a:not(.logo) {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-top div > a:not(.logo):hover {
  color: var(--text);
}

.footer-legal {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-legal p + p {
  margin-top: 0.4rem;
}

.footer-legal a {
  text-decoration: underline;
}

/* Toast */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 12px);
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Responsive */

@media (max-width: 1100px) {
  .nav-cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.6rem 24px 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    display: none;
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0.85rem;
  }

  .hero {
    min-height: 460px;
    padding: 3rem;
  }

  .grid-4,
  .home-socials { grid-template-columns: repeat(2, 1fr); }
  .home-stats { grid-template-columns: repeat(2, 1fr); }
  .home-stats > .stat:last-child { grid-column: auto; }
  .week { grid-template-columns: repeat(4, 1fr); }
  .howto { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > .stat:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .home-hero {
    padding-top: 2.2rem;
  }

  .home-hero h1 {
    font-size: 2.5rem;
  }

  .hero {
    min-height: 580px;
    align-items: flex-end;
    margin-top: 1rem;
    padding: 1.5rem;
  }

  .hero-visual {
    background:
      linear-gradient(180deg, rgba(5, 7, 11, 0.05) 10%, rgba(5, 7, 11, 0.88) 52%, #05070b 76%),
      url("assets/hero.jpg") 72% center / cover no-repeat;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .offer-grid,
  .home-offers .offer-grid,
  .home-offers .eu-slot,
  .home-banner {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .podium-card.rank-1 {
    order: -1;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .footer-top > div:first-child {
    grid-column: 1 / -1;
  }

  .perk {
    grid-template-columns: 1fr auto;
    gap: 0.4rem 1rem;
  }

  .perk-link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .perk-link:empty {
    display: none;
  }

  .bonus-calc {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .bonus-calc .calc-op {
    display: none;
  }

  .bonus-calc .calc-field:first-child {
    grid-column: 1 / -1;
  }

  .next-live,
  .next-live-side {
    flex-direction: column;
    align-items: stretch;
  }

  .next-live {
    padding: 1.5rem;
  }

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

  .day {
    min-height: 0;
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: start;
  }

  .day header {
    margin-bottom: 0;
  }

  .table th,
  .table td {
    padding: 0.75rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* Admin */

.admin-main {
  max-width: 980px;
}

.stat-countries,
.stat-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-countries {
  flex-direction: row;
  flex-wrap: wrap;
}

.stat-country {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-weight: 700;
}

.stat-row {
  display: grid;
  grid-template-columns: 9.5rem 7.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.84rem;
}

.stat-row strong,
.stat-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-row span {
  color: var(--muted);
}

.admin-gate,
.admin-panel {
  padding-bottom: 4rem;
}

.admin-form {
  display: grid;
  gap: 0.7rem;
  max-width: 420px;
}

.admin-section {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}

.admin-section h2 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.admin-section > p {
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-fields {
  display: grid;
  gap: 1rem;
}

.admin-field {
  display: grid;
  gap: 0.4rem;
}

.admin-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.admin-field input,
.admin-field textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
}

.admin-field input {
  height: 46px;
  padding: 0 0.95rem;
}

.admin-field textarea {
  min-height: 110px;
  resize: vertical;
}

.admin-field input:focus,
.admin-field textarea:focus {
  outline: 0;
  border-color: var(--accent);
}

.admin-slots {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 320px;
  margin-top: 0.85rem;
  overflow: auto;
}

.admin-slot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.86rem;
}

.admin-slot span {
  color: var(--muted);
}

.admin-tabs {
  display: flex;
  gap: 0.4rem;
  margin-top: 1.4rem;
}

.admin-tab {
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  background: var(--card);
  color: var(--muted);
  font-weight: 600;
}

.admin-tab.active {
  background: var(--accent);
  color: var(--on-accent);
}

.admin-empty,
.ticket-card {
  margin-top: 1rem;
}

.ticket-card {
  display: grid;
  gap: 0.65rem;
}

.ticket-card + .ticket-card {
  margin-top: 1rem;
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.ticket-card p strong {
  color: var(--muted);
  font-weight: 600;
  margin-right: 0.35rem;
}

.ticket-reply {
  display: grid;
  gap: 0.75rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.admin-msg {
  min-height: 1.4em;
  margin-top: 0.9rem;
  font-size: 0.92rem;
}

.admin-msg.ok {
  color: var(--accent);
}

.admin-msg.err {
  color: var(--danger);
}

/* Planning éditable */

.container.plan-page {
  max-width: 1240px;
}

.plan {
  margin-top: 1.5rem;
}

.plan-hero {
  border: 1px solid #35416b;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  line-height: 0;
}

.plan-hero img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center top;
}

.plan-main {
  padding: 1.1rem 1rem 1.2rem;
  border: 1px solid #35416b;
  border-radius: 0 0 20px 20px;
  background: #0d1526;
}

.plan-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.plan-toolbar h1 {
  font-size: 1.35rem;
}

.plan-toolbar p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.plan-toolbar-actions {
  display: flex;
  gap: 0.5rem;
}

.plan-toolbar-actions button,
.plan-actions button {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: #182440;
  font-weight: 700;
}

.plan-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.plan-day {
  min-height: 320px;
  border: 1px solid var(--accent-day);
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--tint), #0c1425 42%);
}

.plan-mascot {
  display: block;
  width: calc(100% - 0.7rem);
  height: auto;
  margin: 0.35rem auto 0;
  border-radius: 12px;
}

.plan-dayname {
  margin: 0.45rem 0.3rem 0.15rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-slots {
  padding: 0 0.45rem 0.7rem;
}

.plan-slot,
.plan-add,
.plan-soon {
  width: calc(100% - 0.15rem);
  margin-top: 0.45rem;
  border-radius: 9px;
}

.plan-slot,
.plan-soon {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr);
  gap: 0.35rem;
  align-items: center;
  min-height: 2.7rem;
  padding: 0.4rem 0.45rem;
  text-align: left;
}

.plan-slot {
  border: 1px solid #263a60;
  border-left: 4px solid var(--slot-color);
  background: #090f20;
}

.plan-slot time,
.plan-soon time {
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.plan-slot-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.plan-slot-body strong {
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.plan-slot-body small {
  color: #9eb0cc;
  font-size: 0.68rem;
}

.plan-soon {
  border: 1px dashed #405477;
  border-left: 4px solid var(--accent-day);
  background: #10192c;
  color: #c5d4ea;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-soon time {
  color: #8ea0c0;
  letter-spacing: 0;
  text-transform: none;
}

.plan-add {
  display: block;
  padding: 0.5rem 0.4rem;
  border: 1px dashed #405477;
  background: #101c32;
  color: #c5d2e6;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.plan-legend {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
  color: #cbd6e9;
  font-size: 0.88rem;
}

.plan-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.4rem;
  border-radius: 50%;
}

.plan-dot-stream { background: #b26cff; }
.plan-dot-video { background: #22d3ee; }
.plan-dot-event { background: #ffb43d; }

.plan-hint code {
  color: #d5e4ff;
}

.plan-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}

.plan-overlay[hidden] {
  display: none;
}

.plan-dialog {
  width: min(430px, 100%);
  padding: 1.4rem;
  border: 1px solid #41577c;
  border-radius: 16px;
  background: #121e35;
}

.plan-dialog h2 {
  margin-bottom: 0.4rem;
}

.plan-dialog label {
  display: block;
  margin-top: 0.75rem;
  color: #c4d0e6;
  font-size: 0.88rem;
}

.plan-dialog input,
.plan-dialog select {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid #405474;
  border-radius: 8px;
  background: #0a1325;
  color: #fff;
  font: inherit;
}

.plan-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1.1rem;
}

.plan-danger {
  margin-right: auto;
  color: #ffb1b1;
}

@media (max-width: 1100px) {
  .plan-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .plan-hero img {
    height: 140px;
  }

  .plan-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nav-soon {
  margin-left: 0.35rem;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9ec4ff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.soon-lock {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
  padding: 1.6rem;
}

.soon-lock-mark {
  margin: 0;
  color: #9ec4ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.soon-lock h2 {
  margin: 0;
}

.soon-lock p:last-of-type {
  max-width: 42rem;
  color: var(--muted);
}

.container.plan-board-page {
  max-width: 1280px;
}

.plan-board {
  margin-top: 1.5rem;
}

.plan-board-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.plan-board-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.plan-board-actions {
  display: flex;
  gap: 0.5rem;
}

.plan-board-actions button {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: #182440;
  font-weight: 700;
}

.plan-board-scroll {
  overflow-x: auto;
  border-radius: 18px;
}

.plan-board-wrap {
  position: relative;
  min-width: 900px;
}

.plan-board-img {
  display: block;
  width: 100%;
  height: auto;
}

.plan-board-slot {
  position: absolute;
  display: flex;
  align-items: center;
  margin: 0;
  border: 1px solid #263f65;
  border-radius: 8px;
  background: #041122;
  color: #fff;
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 700;
  padding: 0 8px 0 12px;
  box-shadow: inset 0 0 10px #061022;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.plan-admin {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: 0.75rem;
}

.plan-admin fieldset {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.plan-admin legend {
  padding: 0 0.35rem;
  font-weight: 800;
}

.plan-admin .admin-field + .admin-field {
  margin-top: 0.55rem;
}

@media (max-width: 1100px) {
  .plan-admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Admin : tableau de bord des stats ---------- */

#tab-stats {
  --sx-1: #3987e5; /* visiteurs, pages */
  --sx-2: #d95926; /* clics Stake */
  --sx-3: #199e70;
  --sx-4: #6b7a8f;
  --sx-grid: #33435a;
  --sx-up: #5ad19a;
  --sx-down: #f08a8a;
  margin-top: 1.6rem;
}

.sx-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.sx-title {
  font-size: 1.35rem;
  line-height: 1.2;
}

.sx-sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.sx-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.sx-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
}

.sx-seg button,
.sx-refresh {
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.sx-seg button.on {
  background: var(--accent);
  color: var(--on-accent);
}

.sx-refresh {
  background: var(--card);
  border: 1px solid var(--border);
}

.sx-refresh:hover,
.sx-seg button:not(.on):hover {
  color: var(--text);
}

.sx-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sx-kpi {
  position: relative;
  padding: 0.95rem 1rem 0.85rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  min-width: 0;
}

.sx-kpi-hero {
  border-color: rgba(217, 89, 38, 0.55);
}

.sx-kpi-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.sx-kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.sx-delta {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.3rem;
}

.sx-delta.up {
  color: var(--sx-up);
}

.sx-delta.down {
  color: var(--sx-down);
}

.sx-delta.flat {
  color: var(--muted);
  font-weight: 500;
}

.sx-kpi-help {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 0.15rem;
  line-height: 1.35;
}

.sx-spark {
  display: block;
  width: 100%;
  height: 28px;
  margin-top: 0.55rem;
}

.sx-spark polyline {
  stroke: var(--sx-1);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.75;
}

.sx-kpi-hero .sx-spark polyline {
  stroke: var(--sx-2);
  opacity: 1;
}

.sx-card {
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  min-width: 0;
}

.sx-wide {
  margin-bottom: 0.75rem;
}

.sx-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sx-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-bottom: 0.9rem;
}

.sx-card-head h3 {
  font-size: 1rem;
  line-height: 1.3;
}

.sx-card-head p {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.sx-legend {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.sx-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sx-key {
  display: inline-block;
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: var(--sx-4);
  flex-shrink: 0;
}

.sx-key-1,
.sx-key.s1 {
  background: var(--sx-1);
}

.sx-key-2,
.sx-key.s2 {
  background: var(--sx-2);
}

.sx-key.s3 {
  background: var(--sx-3);
}

.sx-chart {
  position: relative;
  width: 100%;
  min-height: 260px;
  touch-action: pan-y;
}

.sx-chart-sm {
  min-height: 180px;
}

.sx-chart svg {
  display: block;
  max-width: 100%;
}

.sx-grid-line {
  stroke: var(--sx-grid);
  stroke-width: 1;
}

.sx-axis {
  fill: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.sx-axis-strong {
  fill: var(--text);
  font-weight: 700;
}

.sx-line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.sx-line-1 {
  stroke: var(--sx-1);
}

.sx-line-2 {
  stroke: var(--sx-2);
}

.sx-area-1 {
  fill: var(--sx-1);
  opacity: 0.1;
}

.sx-dot {
  stroke: var(--card);
  stroke-width: 2;
}

.sx-dot-1 {
  fill: var(--sx-1);
}

.sx-dot-2 {
  fill: var(--sx-2);
}

.sx-cross {
  stroke: var(--border-strong);
  stroke-width: 1;
}

.sx-col {
  fill: var(--sx-1);
  opacity: 0.55;
}

.sx-col-peak {
  opacity: 1;
}

.sx-tip {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  display: grid;
  gap: 0.2rem;
  min-width: 170px;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #101826;
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-size: 0.8rem;
  pointer-events: none;
  z-index: 2;
}

.sx-tip strong {
  text-transform: capitalize;
  margin-bottom: 0.1rem;
}

.sx-tip-sm {
  min-width: 120px;
}

.sx-tip-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.sx-tip-row > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sx-tip-row b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.sx-bars {
  display: grid;
  gap: 0.55rem;
}

.sx-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr) 4.6rem;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.85rem;
}

.sx-bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-bar-track {
  height: 10px;
  border-radius: 0 4px 4px 0;
  background: rgba(255, 255, 255, 0.04);
}

.sx-bar-fill {
  display: block;
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: var(--sx-1);
}

.sx-bar-fill.other {
  background: var(--sx-4);
}

.sx-bar-value {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.sx-bar-value small {
  color: var(--muted);
  font-size: 0.72rem;
}

.sx-stack {
  display: flex;
  gap: 2px;
  height: 14px;
  margin: 0.4rem 0 1rem;
}

.sx-seg-fill {
  min-width: 4px;
  background: var(--sx-4);
}

.sx-seg-fill:first-child {
  border-radius: 4px 0 0 4px;
}

.sx-seg-fill:last-child {
  border-radius: 0 4px 4px 0;
}

.sx-seg-fill:only-child {
  border-radius: 4px;
}

.sx-seg-fill.s1 {
  background: var(--sx-1);
}

.sx-seg-fill.s2 {
  background: var(--sx-2);
}

.sx-seg-fill.s3 {
  background: var(--sx-3);
}

.sx-stack-legend {
  display: grid;
  gap: 0.55rem;
}

.sx-stack-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto auto;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.88rem;
}

.sx-stack-item b {
  font-variant-numeric: tabular-nums;
}

.sx-stack-item small,
.sx-muted {
  color: var(--muted);
  font-size: 0.75rem;
}

.sx-table-toggle {
  margin-top: 0.6rem;
}

.sx-table-toggle summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.82rem;
}

.sx-table-wrap {
  overflow: auto;
  max-height: 360px;
  margin-top: 0.6rem;
}

.sx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.sx-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--card);
}

.sx-table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.sx-table td:first-child {
  text-transform: capitalize;
}

#stats-campaigns td:first-child {
  text-transform: none;
}

.sx-table td strong {
  display: block;
}

.sx-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.sx-ellipsis {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.sx-actions {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
}

.sx-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr auto;
  gap: 0.7rem;
  align-items: end;
}

.sx-form .btn {
  height: 46px;
}

.sx-feed {
  list-style: none;
  display: grid;
  gap: 0.3rem;
  max-height: 420px;
  overflow: auto;
}

.sx-feed-item {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: var(--bg);
  font-size: 0.84rem;
}

.sx-feed-item.k-stake {
  box-shadow: inset 3px 0 0 var(--sx-2);
}

.sx-feed-what {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-feed-meta {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.sx-empty {
  color: var(--muted);
  font-size: 0.85rem;
}

.sx-foot {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.4rem;
}

@media (max-width: 900px) {
  .sx-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sx-kpi-hero {
    grid-column: 1 / -1;
  }

  .sx-grid,
  .sx-form {
    grid-template-columns: 1fr;
  }

  .sx-feed-item {
    grid-template-columns: 1.6rem minmax(0, 1fr);
  }

  .sx-feed-meta {
    grid-column: 2;
  }
}
