/* High 5 Casino — néon, violet/cyan/magenta, verre dépoli. Police système, ressources locales uniquement. */

:root {
  --bg: #14082a;
  --bg-deep: #0c0518;
  --panel: rgba(48, 22, 88, 0.72);
  --panel-solid: #2d1858;
  --panel2: rgba(24, 10, 48, 0.92);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --pink: #ff3cac;
  --magenta: #e040fb;
  --purple: #8b5cf6;
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --gold-hot: #fb923c;
  --green: #4ade80;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(34, 211, 238, 0.08);
  --glow: 0 0 24px rgba(224, 64, 251, 0.35), 0 0 48px rgba(34, 211, 238, 0.12);
  --glow-cyan: 0 0 20px rgba(34, 211, 238, 0.45);
  --sidebar-w: 72px;
  --topbar-h: 64px;
  --bottom-nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none !important; transform: none !important; }
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: linear-gradient(165deg, var(--bg-deep) 0%, #1e0d3d 35%, var(--bg) 55%, #1a0b32 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 70% at 50% 100%, rgba(34, 211, 238, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 20%, rgba(139, 92, 246, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 55% 45% at 85% 15%, rgba(224, 64, 251, 0.2) 0%, transparent 45%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 80px,
      rgba(34, 211, 238, 0.03) 80px,
      rgba(34, 211, 238, 0.03) 81px
    );
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
}

/* ---- Sidebar (desktop) ---- */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: linear-gradient(180deg, rgba(58, 28, 102, 0.88) 0%, rgba(32, 14, 62, 0.95) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  border-right: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow: 6px 0 32px rgba(0, 0, 0, 0.35), inset -1px 0 0 rgba(255, 60, 172, 0.08);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
}

.sidebar__search {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--magenta) 0%, var(--cyan) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow), var(--glow-cyan);
}

.sidebar__toggle {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.2rem;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  margin-top: 8px;
}

.sidebar__item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.sidebar__item:hover {
  color: #fff;
  background: linear-gradient(145deg, var(--pink), var(--purple));
  box-shadow: var(--glow);
}

.sidebar__item--active {
  color: var(--text);
  background: rgba(34, 211, 238, 0.12);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.35);
}

.sidebar__item--active:hover {
  color: #fff;
  background: linear-gradient(145deg, var(--pink), var(--purple));
  box-shadow: var(--glow);
}

.sidebar__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar__social {
  display: flex;
  gap: 8px;
}

.sidebar__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel2);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.sidebar__social-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.support-pill--sidebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--panel2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.75rem;
  cursor: pointer;
}

.support-pill__badge {
  background: var(--green);
  color: #000;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
}

/* ---- Main ---- */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
}

/* ---- Topbar ---- */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  z-index: 100;
  height: var(--topbar-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(45, 20, 80, 0.92) 0%, rgba(28, 12, 52, 0.88) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(34, 211, 238, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.main .content {
  padding-top: var(--topbar-h);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  flex-shrink: 1;
}

.brand img {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand__logo--desktop {
  height: 36px;
  max-width: 140px;
}

.brand__logo--mobile {
  display: none;
}

.brand__text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 45%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.35));
}

.topbar__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-items: center;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn--ghost {
  background: rgba(34, 211, 238, 0.08);
  color: var(--text);
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.btn--ghost:hover {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.2);
}

.btn--primary {
  background: linear-gradient(135deg, var(--pink) 0%, var(--magenta) 40%, var(--purple) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--glow), 0 4px 0 rgba(0, 0, 0, 0.15);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #ff5cbc 0%, var(--pink) 50%, var(--magenta) 100%);
  box-shadow: 0 0 28px rgba(224, 64, 251, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 0 rgba(0, 0, 0, 0.12);
}

/* ---- Content ---- */
.content {
  flex: 1;
  padding: 24px;
  padding-bottom: calc(var(--bottom-nav-h) + 24px);
}

/* ---- Hero ---- */
.hero {
  margin-bottom: 32px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.hero__slider {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel-solid);
  box-shadow: var(--shadow), 0 0 0 1px rgba(34, 211, 238, 0.15);
  min-height: 0;
}

.slider {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.slider__track {
  position: relative;
  width: 100%;
  height: 200px;
}

.slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.slider__slide--active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slider__link {
  display: block;
  width: 100%;
  height: 100%;
}

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

.slider__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.slider__dot--active {
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  transform: scale(1.2);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.8), 0 0 8px rgba(224, 64, 251, 0.6);
}

.hero__sidecards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  grid-column: 2 / -1;
}

.hero__card {
  height: 200px;
  min-height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: block;
  background: var(--panel-solid);
  box-shadow: var(--shadow), 0 0 0 1px rgba(168, 85, 247, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(34, 211, 238, 0.35), 0 0 28px rgba(224, 64, 251, 0.2);
}

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

.hero__card-img--mobile {
  display: none;
}

.hero__card-label {
  position: absolute;
  bottom: 44px;
  left: 16px;
  right: 16px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.hero__card-cta {
  position: absolute;
  bottom: 12px;
  left: 16px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Bureau : bannière principale plus haute, vignettes étroites ; images sans rognage fort */
@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 2.2fr 0.7fr 0.7fr;
  }
  .slider__track {
    height: 280px;
  }
  .hero__card {
    height: 280px;
    min-height: 280px;
  }
  .hero__card img.hero__card-img--desktop {
    object-fit: contain;
    transform: scale(1.08);
  }
}

/* ---- Hero filters ---- */
.hero__filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(45, 24, 88, 0.65);
  border: 1px solid rgba(34, 211, 238, 0.12);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.chip:hover {
  background: rgba(58, 32, 102, 0.85);
  border-color: rgba(34, 211, 238, 0.28);
}

.chip--active {
  background: linear-gradient(135deg, var(--pink) 0%, var(--magenta) 50%, var(--purple) 100%);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: var(--glow);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  min-width: 0;
}

.search__icon-link {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  z-index: 1;
}

.search__icon-link:hover {
  color: var(--text);
}

.search__icon {
  pointer-events: none;
}

.search__input {
  width: 100%;
  min-width: 0;
  padding: 12px 16px 12px 44px;
  border-radius: 999px;
  background: rgba(24, 10, 48, 0.75);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.search__input::placeholder {
  color: var(--muted);
}

.search__input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.25), 0 0 20px rgba(34, 211, 238, 0.12);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Sections ---- */
.section {
  margin-bottom: 40px;
  contain: layout style;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.2), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.section__title::after {
  content: " ›";
  color: var(--muted);
  font-weight: 400;
}

.section__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill {
  padding: 8px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
}

.pill--muted {
  background: var(--panel);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pill--muted:hover {
  background: var(--panel2);
}

.arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.arrow:hover {
  background: var(--panel2);
}

/* ---- Cards grid (slots) ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.cards-grid--slots {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.game-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--panel-solid);
  border: 1px solid rgba(34, 211, 238, 0.12);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  contain: layout style paint;
}

@media (hover: hover) {
  .game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 32px rgba(224, 64, 251, 0.15), 0 0 0 1px rgba(34, 211, 238, 0.25);
  }
}

.game-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.game-card__img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.game-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: var(--green);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #000;
  font-weight: 700;
}

.game-card__provider {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.game-card__title {
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  background: linear-gradient(180deg, rgba(36, 16, 68, 0.95) 0%, rgba(20, 8, 40, 0.98) 100%);
  border-top: 1px solid rgba(34, 211, 238, 0.12);
}

.game-card__sub {
  padding: 0 14px 12px;
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(20, 8, 40, 0.98);
}

/* ---- Cards row (horizontal scroll) ---- */
.cards-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.cards-row .game-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .cards-row .game-card {
    flex: 0 0 180px;
  }
}

/* ---- Promo wide (nouveaux jeux) ---- */
.promo-wide {
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, #5b21b6 0%, var(--magenta) 45%, var(--pink) 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: var(--shadow), 0 0 60px rgba(224, 64, 251, 0.35), 0 0 40px rgba(34, 211, 238, 0.12);
}

.promo-wide__content {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.promo-wide__title {
  margin: 0 0 20px;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.promo-wide__thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin: 0 -32px -16px;
  padding-left: 32px;
  padding-right: 32px;
}

.promo-wide__thumbs .game-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
}

.promo-wide__thumbs .game-card__img-wrap {
  aspect-ratio: 4 / 3;
}

/* ---- Wins row ---- */
.online {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.online__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .online__dot { animation: none; }
}

.wins-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.win-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--panel);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.win-card__thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

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

.win-card__info {
  flex: 1;
  min-width: 0;
}

.win-card__game {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.win-card__player {
  font-size: 0.8rem;
  color: var(--muted);
}

.win-card__payout {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
}

.win-card__payout--plus {
  background: rgba(34, 197, 94, 0.2);
  color: var(--green);
}

.win-card__payout--minus {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

/* ---- Providers ---- */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.provider-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--panel);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.provider-card:hover {
  background: var(--panel2);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 20px rgba(224, 64, 251, 0.15);
  transform: translateY(-2px);
}

.provider-card img {
  max-width: 100%;
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---- Table section ---- */
.section--table .section__head {
  flex-wrap: wrap;
}

.switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch__ui {
  width: 44px;
  height: 24px;
  background: var(--panel);
  border-radius: 999px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.switch__ui::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.switch input:checked + .switch__ui::after {
  transform: translateX(20px);
}

.switch input:checked + .switch__ui {
  background: rgba(224, 64, 251, 0.25);
  border-color: var(--magenta);
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.tab:hover {
  background: var(--panel2);
}

.tab--active {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.game-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.game-table th,
.game-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.game-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.game-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.game-table .payout--plus {
  color: var(--green);
  font-weight: 600;
}

.table-cards {
  display: none;
}

/* ---- Bloc SEO (bas de page) ---- */
.seo-text {
  margin-bottom: 40px;
}

.seo-text__wrap {
  padding: 28px;
  background: rgba(45, 24, 88, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(34, 211, 238, 0.15);
  box-shadow: var(--shadow);
}

.seo-text__wrap > *:first-child {
  margin-top: 0;
}

.seo-text__h1 {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
  margin: 0 0 1.25em;
}

.seo-text__h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 2em 0 0.85em;
}

.seo-text__h2:first-of-type {
  margin-top: 1.25em;
}

.seo-text__wrap > p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 1em;
}

.seo-text__table-caption {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1.75em 0 0.65em;
}

.seo-text__sep {
  border: none;
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.35), transparent);
}

.seo-text__table-wrap {
  overflow-x: auto;
  margin: 0.75em 0 1.5em;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 211, 238, 0.12);
  -webkit-overflow-scrolling: touch;
}

.seo-text__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.seo-text__table th,
.seo-text__table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  vertical-align: top;
}

.seo-text__table th {
  font-weight: 600;
  color: var(--text);
  background: rgba(24, 10, 48, 0.85);
}

.seo-text__table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.seo-text .faq {
  margin-top: 0.5em;
}

.seo-text .faq__item {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 211, 238, 0.12);
  margin-bottom: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.seo-text .faq__item[open] {
  border-color: rgba(224, 64, 251, 0.3);
}

.seo-text .faq__question {
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.seo-text .faq__question::-webkit-details-marker {
  display: none;
}

.seo-text .faq__question::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
}

.seo-text .faq__item[open] .faq__question::after {
  content: "−";
}

.seo-text .faq__answer {
  margin: 0;
  padding: 0 18px 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.seo-text .faq__answer::before {
  content: "";
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

/* ---- Footer ---- */
.footer {
  padding: 40px 24px 24px;
  background: linear-gradient(180deg, rgba(22, 8, 42, 0.98) 0%, #0a0414 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-top: 1px solid rgba(34, 211, 238, 0.15);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer__logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.lang-pill--flag {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--panel2);
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer__col h3 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.footer__col .footer__link {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__col .footer__link:hover {
  color: var(--text);
}

.footer__bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lang-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--panel2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

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

/* ---- Bottom nav (mobile) ---- */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  background: linear-gradient(180deg, rgba(45, 20, 80, 0.96) 0%, rgba(18, 6, 36, 0.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(34, 211, 238, 0.2);
  box-shadow: 0 -8px 32px rgba(224, 64, 251, 0.12);
  z-index: 90;
  padding: 8px 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.7rem;
  cursor: pointer;
  transition: color 0.2s;
}

.bottom-nav__item svg {
  flex-shrink: 0;
}

.bottom-nav__item--active,
.bottom-nav__item--active span {
  color: var(--cyan);
}

.bottom-nav__item--active svg {
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.65)) drop-shadow(0 0 6px rgba(224, 64, 251, 0.4));
}

/* ---- Drawer ---- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}

.drawer[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}

.drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s;
}

.drawer[aria-hidden="false"] .drawer__overlay {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: linear-gradient(180deg, rgba(52, 26, 95, 0.98) 0%, rgba(20, 8, 42, 0.99) 100%);
  border-top: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.45);
}

.drawer[aria-hidden="false"] .drawer__panel {
  transform: translateY(0);
}

.drawer__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--panel2);
  color: var(--text);
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}

.drawer__title {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
}

.drawer__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.drawer__section {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 0 8px;
}

.drawer__item {
  display: block;
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.drawer__item:hover {
  color: var(--cyan);
}

.drawer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 0;
}

.drawer__social {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--panel2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.support-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--panel2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ---- Modal ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  visibility: hidden;
}

.modal[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.25s;
}

.modal[aria-hidden="false"] .modal__overlay {
  opacity: 1;
}

.modal__panel {
  position: relative;
  background: linear-gradient(165deg, rgba(48, 22, 88, 0.98) 0%, rgba(24, 10, 48, 0.99) 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 400px;
  width: 100%;
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: var(--shadow), 0 0 48px rgba(224, 64, 251, 0.2);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
}

.modal[aria-hidden="false"] .modal__panel {
  transform: scale(1);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--panel2);
  color: var(--text);
  font-size: 1.25rem;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}

.modal__panel h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.modal__panel .muted {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ========== RESPONSIVE ========== */
@media (min-width: 768px) {
  .brand__logo--mobile {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .sidebar {
    display: none;
  }

  .topbar {
    left: 0;
  }

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

  .hero__sidecards {
    grid-column: 1 / -1;
    min-height: 160px;
  }

  .hero__card {
    min-height: 160px;
    height: auto;
  }

  /* Bannières secondaires : visuels mobile (tablette et téléphone) */
  .hero__card-img--desktop {
    display: none !important;
  }

  .hero__card-img--mobile {
    display: block !important;
  }
}

@media (max-width: 767px) {
  .content {
    padding: 16px;
    padding-bottom: calc(var(--bottom-nav-h) + 16px);
    overflow-x: hidden;
    width: 100%;
    min-width: 0;
  }

  .seo-text__wrap {
    padding: 18px;
  }

  .seo-text__table {
    font-size: 0.68rem;
    min-width: 0;
    table-layout: fixed;
    width: 100%;
  }

  .seo-text__table th,
  .seo-text__table td {
    padding: 8px 6px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .topbar {
    padding: 0 12px 0 16px;
    height: 56px;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .brand {
    flex-shrink: 1;
    min-width: 0;
  }

  .brand__logo--desktop {
    display: none !important;
  }

  .brand__logo--mobile {
    display: block !important;
    height: 64px;
    width: auto;
    max-width: 200px;
  }

  .hero__card-img--desktop {
    display: none !important;
  }

  .hero__card-img--mobile {
    display: block !important;
  }

  .hero__sidecards {
    min-height: 0;
  }

  .hero__card {
    aspect-ratio: 2 / 1;
    height: auto;
    min-height: 0;
  }

  .hero__card img.hero__card-img--mobile {
    object-fit: contain;
  }

  .topbar__actions {
    flex-shrink: 0;
    gap: 8px;
  }

  .btn {
    padding: 8px 14px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .hero__filters {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .search {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex-shrink: 0;
  }

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

  .section__title {
    font-size: 1.25rem;
  }

  .cards-grid--slots {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .cards-grid--slots .game-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
  }

  .promo-wide {
    padding: 28px 20px;
  }

  .promo-wide__title {
    font-size: 1.5rem;
  }

  .promo-wide__thumbs {
    margin: 0 -20px -12px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .win-card {
    padding: 12px 14px;
  }

  .win-card__thumb {
    width: 48px;
    height: 48px;
  }

  .bottom-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
  }

  /* Table des mises sur mobile — tableau compact */
  .table-wrap {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-cards {
    display: none;
  }

  .section--table .game-table {
    font-size: 0.7rem;
    table-layout: fixed;
    width: 100%;
    min-width: 0;
  }

  .section--table .game-table th:nth-child(1) { width: 26%; }
  .section--table .game-table th:nth-child(2) { width: 18%; }
  .section--table .game-table th:nth-child(3) { width: 18%; }
  .section--table .game-table th:nth-child(4) { width: 14%; }
  .section--table .game-table th:nth-child(5) { width: 24%; }

  .section--table .game-table th,
  .section--table .game-table td {
    padding: 5px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .section--table .game-table th {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--muted);
  }

  .section--table .game-table .payout--plus {
    color: var(--green);
    font-weight: 600;
  }

  .section--table .section__head {
    flex-wrap: wrap;
    gap: 12px;
  }

  .section--table .tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .section--table .tabs::-webkit-scrollbar {
    display: none;
  }

  .section--table .tab {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

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

@media (max-width: 389px) {
  .hero__sidecards {
    flex-direction: column;
  }

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