/* =========================================================
   VEGASINO — style.css
   Layout: sidebar fixe à gauche (desktop) + header sticky,
   contenu sur fond crème. Mobile < 1024px : burger + tiroir.
   Pour un autre brand : changer uniquement le bloc :root.
   ========================================================= */

:root {
  /* --- PALETTE (brand) --- */
  --frame:        #0f3e3c;   /* sidebar + header (teal profond) */
  --frame-2:      #15514e;   /* hover / séparateurs dans le cadre */
  --frame-text:   #e9f3ef;   /* texte sur le cadre */
  --frame-muted:  #8fb5ad;   /* titres de groupes, texte secondaire */

  --bg:           #f8e6cc;   /* fond de page crème */
  --surface:      #fff7ec;   /* cartes, tableaux */
  --surface-2:    #f1d6b0;   /* zébrage, placeholders */
  --line:         #e2c196;   /* bordures douces */
  --ink:          #2a2320;   /* texte principal */
  --ink-muted:    #6b5a4c;   /* texte secondaire */

  --sky:          #5cc4e4;   /* bouton Connexion */
  --sky-hover:    #45b2d6;
  --sky-ink:      #0d3a3f;
  --coral:        #ee8148;   /* bouton S'inscrire */
  --coral-hover:  #e06c30;
  --teal:         #13846f;   /* liens, accents */
  --gold-1:       #ffd56a;   /* CTA bonus (dégradé) */
  --gold-2:       #f39a2b;
  --gold-ink:     #4a2306;

  /* --- TYPO --- */
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body:    "Nunito Sans", "Segoe UI", Roboto, Arial, sans-serif;

  /* --- DIMENSIONS --- */
  --sidebar-w: 264px;
  --header-h:  68px;
  --radius:    14px;
  --radius-sm: 9px;
  --content-max: 1120px;
  --shadow: 0 10px 30px -14px rgba(60, 35, 10, .35);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--coral-hover); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; color: var(--ink); }
h1 { font: 800 clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem)/1.1 var(--font-body); margin: 0 0 .6rem; letter-spacing: -.01em; }
h2 { font: 800 clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem)/1.2 var(--font-body); margin: 0 0 .8rem; }
h3 { font: 700 1.15rem/1.3 var(--font-body); margin: 1.4rem 0 .5rem; }
p { margin: 0 0 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Icônes (sprite) ---------- */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 50;
  width: var(--sidebar-w);
  background: var(--frame); color: var(--frame-text);
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar__top {
  height: var(--header-h); flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.logo img { height: 38px; width: auto; }
.sidebar__close { display: none; }

.nav { flex: 1; overflow-y: auto; padding: 14px 12px 18px; scrollbar-width: thin; scrollbar-color: var(--frame-2) transparent; }
.nav__group + .nav__group { margin-top: 16px; }
.nav__title {
  margin: 0 0 6px; padding: 0 12px;
  font: 700 .7rem/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--frame-muted);
}
.nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav__link {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--frame-text); text-decoration: none;
  font: 600 .93rem/1.3 var(--font-body);
  transition: background .18s, color .18s;
}
.nav__link .ico { color: var(--frame-muted); transition: color .18s; }
.nav__link:hover { background: var(--frame-2); color: #fff; }
.nav__link:hover .ico { color: var(--sky); }
.nav__link[aria-current="page"] { background: var(--coral); color: #fff; }
.nav__link[aria-current="page"] .ico { color: #fff; }

.sidebar__bottom {
  flex: none; padding: 12px 22px 16px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: grid; gap: 10px;
  font-size: .82rem; color: var(--frame-muted);
}
.lang { display: flex; align-items: center; gap: 10px; color: var(--frame-text); font-weight: 600; }
.lang b { font-weight: 800; letter-spacing: .04em; }
.age { display: flex; align-items: center; gap: 10px; }
.age__badge {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  border: 1.5px solid var(--frame-muted); font: 800 .72rem/1 var(--font-body); color: var(--frame-text);
}

/* =========================================================
   HEADER
   ========================================================= */
.page { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: var(--frame);
  display: flex; align-items: center; gap: 12px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  box-shadow: 0 6px 18px -12px rgba(0,0,0,.5);
}
.header__logo { display: none; }
.burger { display: none; }
.header__actions { margin-left: auto; display: flex; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; border: 0; cursor: pointer;
  font: 800 .95rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: background .18s, transform .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn--login  { background: var(--sky);   color: var(--sky-ink); }
.btn--login:hover  { background: var(--sky-hover); color: var(--sky-ink); }
.btn--signup { background: var(--coral); color: #fff; box-shadow: 0 6px 16px -8px var(--coral); }
.btn--signup:hover { background: var(--coral-hover); color: #fff; }

/* =========================================================
   CONTENU
   ========================================================= */
.main {
  flex: 1; width: 100%; max-width: calc(var(--content-max) + 64px); margin: 0 auto;
  padding-block: 32px 56px;
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
  display: grid; gap: 44px;
}
.main > * { min-width: 0; }
.intro p { color: var(--ink-muted); max-width: 72ch; margin: 0; font-size: 1.04rem; }
.section > p, .section > ul:not([class]), .section > ol:not([class]) { max-width: 75ch; }
.section ul:not([class]) { padding-left: 1.2rem; }
.section ul:not([class]) li::marker { color: var(--coral); }

/* ---------- HERO / BANNER ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 20px; min-height: 380px;
  display: flex; align-items: center;
  padding: 40px clamp(24px, 4vw, 52px);
  box-shadow: var(--shadow);
  background: #0e6b5d;
  text-decoration: none; color: #fff;
}
.hero:hover { color: #fff; }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__bg img { object-fit: cover; object-position: 78% center; }
.hero__card {
  width: min(470px, 100%);
  display: grid; gap: 18px;
}
.hero__box {
  padding: 22px 26px 24px; border-radius: 16px;
  background: rgba(8, 40, 38, .52);
  border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  color: #fff;
}
.hero__eyebrow {
  display: inline-block; margin-bottom: 10px; padding: 5px 14px; border-radius: 999px;
  background: rgba(92,196,228,.9); color: var(--sky-ink);
  font: 800 .78rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
}
.hero__offer {
  margin: 0; color: #fff;
  font: italic 800 clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem)/.98 var(--font-display);
  text-transform: uppercase; letter-spacing: .005em;
  text-shadow: 0 3px 14px rgba(0,0,0,.3);
}
.hero__offer span { display: block; font-size: .62em; margin-top: 8px; color: var(--gold-1); }

/* CTA principal (bonus) — dégradé or + reflet au survol */
.btn-cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 28px; border-radius: 14px;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  color: var(--gold-ink); text-decoration: none;
  font: italic 800 1.35rem/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 0 0 3px rgba(255,255,255,.35) inset, 0 12px 26px -10px rgba(243,154,43,.9);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-20deg); transition: left .55s ease;
}
.btn-cta .ico { width: 22px; height: 22px; stroke-width: 2.6; transition: transform .2s ease; }
.btn-cta:hover, .hero:hover .btn-cta {
  color: var(--gold-ink);
  transform: translateY(-3px);
  filter: saturate(1.15) brightness(1.04);
  box-shadow: 0 0 0 3px rgba(255,255,255,.5) inset, 0 18px 34px -10px rgba(243,154,43,1);
}
.btn-cta:hover::after, .hero:hover .btn-cta::after { left: 120%; }
.btn-cta:hover .ico, .hero:hover .btn-cta .ico { transform: translateX(4px); }
.btn-cta:active { transform: translateY(0); }

/* ---------- Bande paiements ---------- */
.payments {
  background: var(--frame); border-radius: var(--radius);
  padding: 18px 24px;
  display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap;
}
.payments__label { color: var(--frame-muted); font: 700 .72rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.payments__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.pay { color: #cfe2dc; opacity: .8; display: flex; align-items: center; gap: 6px; white-space: nowrap; transition: opacity .2s, color .2s; }
.pay:hover { opacity: 1; color: #fff; }
.pay--visa   { font: italic 900 1.45rem/1 var(--font-body); letter-spacing: -.02em; }
.pay--mc     { font: 600 .82rem/1 var(--font-body); }
.pay--mc i   { display: inline-flex; }
.pay--mc i::before, .pay--mc i::after { content: ""; width: 15px; height: 15px; border-radius: 50%; background: currentColor; }
.pay--mc i::after { margin-left: -6px; opacity: .55; }
.pay--btc    { font: 700 .95rem/1 var(--font-body); }
.pay--btc b  { width: 20px; height: 20px; border-radius: 50%; background: var(--frame-text); color: var(--frame); display: grid; place-items: center; font: 800 .75rem/1 var(--font-body); }
.pay--word   { font: 800 1rem/1 var(--font-body); letter-spacing: -.01em; }
.pay--word em{ font-style: italic; }
.pay--small  { font: 700 .8rem/1 var(--font-body); }

/* ---------- Tableau ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 13px 18px; vertical-align: top; }
thead th { background: var(--frame); color: var(--frame-text); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
tbody tr + tr { border-top: 1px solid var(--line); }
tbody tr:nth-child(even) { background: rgba(241,214,176,.35); }
.table--facts th[scope="row"] { width: 38%; color: var(--ink-muted); font-weight: 700; }

/* ---------- Grille de jeux ---------- */
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin: 0 0 20px; padding: 0; }
.game {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 8px 12px; text-align: center; text-decoration: none; color: var(--ink);
  display: grid; gap: 10px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.game:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--coral); color: var(--ink); }
.game__img { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.game__img img { width: 100%; height: 100%; object-fit: cover; }
.game__ph { width: 100%; height: 100%; display: grid; place-items: center; font: italic 800 1.3rem/1 var(--font-display); text-transform: uppercase; color: rgba(255,255,255,.92); padding: 8px; text-shadow: 0 2px 6px rgba(0,0,0,.25); }
.game__name { font: 700 .9rem/1.25 var(--font-body); }

/* ---------- Divers contenu ---------- */
.section h2 + .table-wrap, .section p + .table-wrap { margin-top: 4px; }
.section .table-wrap + p { margin-top: 1rem; }
.section > .table-wrap, .section > .steps, .section > .proscons, .section > .faq, .section > .games { margin-bottom: 1rem; }
.section > :last-child { margin-bottom: 0; }
.breadcrumbs { font-size: .85rem; color: var(--ink-muted); margin-bottom: 10px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--ink-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal); }
.related { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.related a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; }
.related a:hover { border-color: var(--coral); color: var(--coral-hover); }
.notfound { text-align: center; padding-block: 40px; display: grid; gap: 16px; justify-items: center; }
.notfound .big { font: italic 800 7rem/1 var(--font-display); color: var(--coral); }

/* ---------- Étapes ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step::before {
  content: counter(step); display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%; margin-bottom: 12px;
  background: var(--coral); color: #fff; font: italic 800 1.3rem/1 var(--font-display);
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; font-size: .95rem; color: var(--ink-muted); }

/* ---------- Avantages / inconvénients ---------- */
.proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.proscons > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.proscons h3 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.proscons ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.proscons li { position: relative; padding-left: 26px; font-size: .96rem; }
.proscons li::before { position: absolute; left: 0; top: 0; font-weight: 900; }
.pros h3 { color: var(--teal); }
.pros li::before { content: "+"; color: var(--teal); }
.cons h3 { color: var(--coral-hover); }
.cons li::before { content: "–"; color: var(--coral-hover); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font: 700 1rem/1.35 var(--font-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: -4px;
  border-right: 2.5px solid var(--coral); border-bottom: 2.5px solid var(--coral);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details > div { padding: 0 20px 16px; color: var(--ink-muted); }
.faq details > div p:last-child { margin: 0; }

/* ---------- CTA final ---------- */
.cta-band {
  background: var(--frame); color: var(--frame-text);
  border-radius: 20px; padding: 28px clamp(22px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
}
.cta-band p { margin: 0; }
.cta-band__offer { font: italic 800 clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem)/1 var(--font-display); text-transform: uppercase; color: #fff; }
.cta-band__offer span { color: var(--gold-1); }
.cta-band .btn-cta { min-width: 260px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--frame); color: var(--frame-muted); font-size: .88rem; }
.footer__inner {
  max-width: calc(var(--content-max) + 64px); margin: 0 auto;
  padding-block: 32px 28px;
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
  display: grid; gap: 22px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer__links a { color: var(--frame-text); text-decoration: none; font-weight: 600; }
.footer__links a:hover { color: var(--sky); }
.footer__legal { display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; }
.footer__legal p { margin: 0; max-width: 90ch; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1023px) {
  .page { margin-left: 0; }
  .sidebar {
    width: min(300px, 86vw);
    transform: translateX(-100%); transition: transform .28s ease;
    padding-left: env(safe-area-inset-left, 0px);
    visibility: hidden;
  }
  .sidebar.is-open { transform: none; visibility: visible; box-shadow: 20px 0 40px rgba(0,0,0,.35); }
  .sidebar__close {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
    border: 0; background: var(--frame-2); color: var(--frame-text); cursor: pointer;
  }
  .overlay { position: fixed; inset: 0; z-index: 45; background: rgba(10,25,24,.55); opacity: 0; visibility: hidden; transition: opacity .25s; }
  .overlay.is-open { opacity: 1; visibility: visible; }

  .header { padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); gap: 10px; }
  .burger {
    display: grid; place-items: center; width: 42px; height: 42px; flex: none;
    border-radius: 10px; border: 0; cursor: pointer;
    background: var(--frame-2); color: var(--frame-text);
  }
  .header__logo { display: block; }
  .header__logo img { height: 32px; width: auto; }
  .main { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); padding-block: 22px 44px; gap: 36px; }
  .footer__inner { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
}

@media (max-width: 899px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .games { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
  .header__actions { gap: 6px; }
  .btn { padding: 9px 12px; font-size: .84rem; border-radius: 9px; }
  .header__logo img { height: 26px; }

  .hero { min-height: 0; aspect-ratio: 720 / 1080; align-items: stretch; padding: 18px; border-radius: 16px; }
  .hero__bg img { object-position: center top; }
  .hero__card { width: 100%; gap: 12px; display: flex; flex-direction: column; justify-content: space-between; }
  .hero__box { padding: 16px 18px 18px; text-align: center; }
  .btn-cta { padding: 15px 20px; font-size: 1.2rem; }

  .payments { padding: 16px 18px; }
  .payments__list { gap: 12px 20px; }
  .games { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .steps { grid-template-columns: 1fr; }
  th, td { padding: 11px 13px; }
  .cta-band .btn-cta { min-width: 0; width: 100%; }
}

@media (max-width: 360px) {
  .header__logo { display: none; }
}

/* =========================================================
   HEADER NAV (brand.json "header_links", desktop only)
   ========================================================= */
.header__nav { display: none; }
@media (min-width: 1280px) {
  .header__nav { display: block; }
  .header__nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
  .header__nav a {
    display: block; padding: 8px 12px; border-radius: 8px;
    color: var(--frame-text); text-decoration: none; font: 700 .92rem/1 var(--font-body);
    transition: color .18s, background .18s;
  }
  .header__nav a:hover { color: var(--gold-1); background: var(--frame-2); }
}

/* =========================================================
   BONUS BAR (brand.json "bonus_bar") — bandeau flottant bas
   ========================================================= */
.bonusbar {
  position: fixed; z-index: 30; bottom: 16px;
  left: calc(var(--sidebar-w) + 24px); right: 24px;
  max-width: 1080px; margin-inline: auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
  padding: 14px 52px 14px 16px; border-radius: 18px;
  background: var(--frame); color: var(--frame-text);
  border: 1px solid var(--frame-2);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6);
  transform: translateY(calc(100% + 24px)); opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.bonusbar.is-visible { transform: none; opacity: 1; }
.bonusbar__icon {
  width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: var(--gold-ink);
}
.bonusbar__icon .ico { width: 28px; height: 28px; stroke-width: 2; }
.bonusbar__text { text-align: center; min-width: 0; }
.bonusbar__eyebrow { display: block; font: 800 .7rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-1); }
.bonusbar__offer { margin: 2px 0; font: 800 clamp(1.15rem, .8rem + 1.2vw, 1.8rem)/1.1 var(--font-display); color: #fff; }
.bonusbar__offer span { color: var(--gold-1); }
.bonusbar__sub-short { display: none; }
.bonusbar__note { display: block; font-size: .78rem; color: var(--frame-muted); }
.bonusbar__btn {
  padding: 15px 26px; border-radius: 10px; white-space: nowrap; text-decoration: none;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: var(--gold-ink);
  font: 900 .95rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  transition: transform .2s, filter .2s, box-shadow .2s;
}
.bonusbar__btn:hover { color: var(--gold-ink); transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 10px 22px -8px var(--gold-2); }
.bonusbar__close {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: transparent; color: var(--frame-muted);
}
.bonusbar__close:hover { background: var(--frame-2); color: #fff; }
.bonusbar__close .ico { width: 18px; height: 18px; }
body.has-bonusbar .footer { padding-bottom: 110px; }
@media (max-width: 1023px) {
  .bonusbar { left: 12px; right: 12px; bottom: 12px; }
}
@media (max-width: 639px) {
  .bonusbar { grid-template-columns: 1fr auto; gap: 10px; padding: 10px 40px 10px 14px; border-radius: 14px; }
  .bonusbar__icon, .bonusbar__note { display: none; }
  .bonusbar__text { text-align: left; }
  .bonusbar__eyebrow { font-size: .6rem; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bonusbar__offer { font-size: 1rem; white-space: nowrap; }
  .bonusbar__offer span { display: block; font-size: .85em; }
  .bonusbar:has(.bonusbar__sub-short) .bonusbar__sub { display: none; }
  .bonusbar__sub-short { display: block; }
  .bonusbar__btn { padding: 12px 12px; font-size: .8rem; }
  .bonusbar__close { top: 50%; transform: translateY(-50%); right: 4px; }
  body.has-bonusbar .footer { padding-bottom: 90px; }
}

/* =========================================================
   FULL-WIDTH HERO (brand.json "hero_full": true)
   Banner spans the whole content area (sidebar → right edge),
   text column aligned with the content grid.
   ========================================================= */
.main--full { max-width: none; padding: 0 0 56px; }
.main--full :is(.intro, .section, .payments, .cta-band, .notfound) {
  width: calc(100% - 64px); max-width: var(--content-max); margin-inline: auto;
}
.main--full > .intro:first-child { margin-top: 32px; }
.hero--full {
  border-radius: 0; box-shadow: none;
  min-height: clamp(440px, 34vw, 640px);
  padding-block: 56px;
  padding-inline: max(32px, calc((100% - var(--content-max)) / 2));
}
.hero--full .hero__bg img { object-position: var(--focus, 85% center); }
.hero--full .hero__bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 28%, transparent 58%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}
.hero--full .hero__card { width: min(560px, 52%); }

.footer__pay {
  display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap;
  padding-block: 18px; border-top: 1px solid rgba(255,255,255,.08);
}
.footer__pay-label { color: var(--frame-muted); font: 700 .72rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }

@media (max-width: 1023px) {
  .main--full { padding: 0 0 44px; }
  .main--full :is(.intro, .section, .payments, .cta-band, .notfound) { width: calc(100% - 36px); }
  .main--full > .intro:first-child { margin-top: 22px; }
  .hero--full { padding-inline: 18px; }
}
@media (max-width: 899px) {
  .hero--full .hero__card { width: min(420px, 70%); }
  .hero--full .hero__bg img { object-position: 70% center; }
}
@media (max-width: 639px) {
  .hero--full { min-height: 0; aspect-ratio: 720 / 1180; padding: 24px 16px 28px; }
  .hero--full .hero__bg img { object-position: center top; }
  .hero--full .hero__bg::after {
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent) 0%, transparent 30%, transparent 75%, var(--bg) 100%);
  }
  .hero--full .hero__card { width: 100%; }
}

/* =========================================================
   HERO SLIDER (brand.json "slides")
   ========================================================= */
.slider { position: relative; display: grid; isolation: isolate; }
.slider > .hero { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.slider > .hero.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slider__nav {
  position: absolute; z-index: 2; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
}
.slider__dot { width: 52px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.slider__dot i { position: relative; display: block; width: 100%; height: 2px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; transition: height .2s; }
.slider__dot:hover i { height: 3px; background: rgba(255,255,255,.55); }
.slider__dot.is-active i::after {
  content: ""; position: absolute; inset: 0; background: var(--gold-1); transform-origin: left;
  animation: slider-progress var(--slider-interval, 6s) linear forwards;
}
.slider.is-paused .slider__dot.is-active i::after, .slider.is-hover .slider__dot.is-active i::after { animation-play-state: paused; }
@keyframes slider-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.slider__pause {
  width: 30px; height: 30px; margin-left: 6px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); color: #fff;
  display: grid; place-items: center; transition: border-color .2s, background .2s;
}
.slider__pause:hover { border-color: var(--gold-1); color: var(--gold-1); }
.slider__pause-ico { width: 8px; height: 10px; border-left: 2.5px solid currentColor; border-right: 2.5px solid currentColor; }
.slider.is-paused .slider__pause-ico {
  width: 0; height: 0; border: 0; margin-left: 2px;
  border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
@media (max-width: 639px) {
  .slider > .hero { padding-bottom: 54px; }
  .slider__nav { bottom: 10px; }
  .slider__dot { width: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .slider__dot.is-active i::after { animation: none; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   TOP NAV (brand.json "topnav") — desktop: menu horizontal
   + dropdown "more" à colonnes, sidebar = tiroir mobile seul
   ========================================================= */
.tnav { display: none; }
@media (min-width: 1024px) {
  body.has-topnav .sidebar, body.has-topnav .overlay { display: none; }
  body.has-topnav .page { margin-left: 0; }
  body.has-topnav .header__logo { display: block; flex: none; margin-right: 18px; }
  body.has-topnav .header__logo img { height: 38px; width: auto; }
  body.has-topnav .bonusbar { left: 24px; }
  .tnav { display: block; min-width: 0; }
  .tnav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
  .tnav__list > li { position: relative; }
  .tnav__list > li > .tnav__link, .tnav__btn {
    display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
    border: 1px solid transparent; border-radius: 8px; background: none; cursor: pointer;
    color: var(--frame-text); text-decoration: none; font: 700 .95rem/1 var(--font-body); white-space: nowrap;
    transition: color .18s, background .18s, border-color .18s;
  }
  .tnav__list > li > .tnav__link:hover, .tnav__btn:hover { color: var(--gold-1); background: var(--frame-2); }
  .tnav__list > li > .tnav__link[aria-current="page"], .tnav__more.is-current > .tnav__btn { color: var(--gold-1); }
  .tnav__more.is-open > .tnav__btn { color: var(--gold-1); border-color: var(--gold-2); }
  .tnav__caret { width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
  .tnav__more.is-open .tnav__caret { transform: rotate(-135deg); margin-top: 3px; }
  .tnav__panel {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, auto); gap: 8px 48px;
    padding: 24px 28px 22px; border-radius: 12px;
    background: var(--frame); border: 1px solid var(--frame-2);
    box-shadow: 0 24px 48px -16px rgba(0,0,0,.7);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
  }
  .tnav__more.is-open .tnav__panel { opacity: 1; visibility: visible; transform: none; }
  .tnav__head { margin: 0 0 12px; font: 800 .72rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-1); }
  .tnav__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .tnav__col .tnav__link {
    display: block; padding: 7px 0; color: var(--frame-text); text-decoration: none;
    font: 500 .95rem/1.3 var(--font-body); white-space: nowrap; transition: color .15s;
  }
  .tnav__col .tnav__link:hover, .tnav__col .tnav__link[aria-current="page"] { color: var(--gold-1); }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .tnav__list > li > .tnav__link, .tnav__btn { padding: 0 10px; font-size: .9rem; }
}

/* =========================================================
   TOC (brand.json "toc") — sommaire à droite, fixe (sticky)
   sur desktop, bloc repliable sous le H1 sur mobile
   ========================================================= */
.main--toc { max-width: calc(var(--content-max) + 64px); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 44px; align-items: start; }
.article { display: grid; gap: 44px; min-width: 0; }
.article > * { min-width: 0; }
.article h2[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
.toc__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px 16px; }
.toc__title { list-style: none; margin: 0 0 12px; font: 800 1.1rem/1.25 var(--font-display); color: var(--gold-1); cursor: default; }
.toc__title::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a {
  display: block; margin-left: -1px; padding: 8px 0 8px 14px; border-left: 2px solid transparent;
  color: var(--ink-muted); text-decoration: none; font: 500 .88rem/1.35 var(--font-body);
  transition: color .15s, border-color .15s;
}
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--gold-1); border-left-color: var(--gold-1); font-weight: 700; }
@media (max-width: 1023px) {
  .layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; max-height: none; overflow: visible; order: -1; }
  .toc__box { padding: 0; }
  .toc__title { margin: 0; padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 1rem; }
  .toc__title::after { content: ""; width: 9px; height: 9px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
  .toc__box[open] .toc__title::after { transform: rotate(-135deg); margin-top: 4px; }
  .toc nav { padding: 0 18px 14px; }
  .article { gap: 36px; }
}
@media (min-width: 1024px) {
  body.has-topnav .header { padding-inline: max(24px, calc((100% - var(--content-max)) / 2)); }
}

/* brand theme */
:root{--frame:#0a0b0e;--frame-2:#1d2028;--frame-text:#f1f2f4;--frame-muted:#8b909c;--bg:#101116;--surface:#16181f;--surface-2:#1e2029;--line:#2a2d37;--ink:#e8e9ed;--ink-muted:#a4a8b3;--sky:#252832;--sky-hover:#30343f;--sky-ink:#f1f2f4;--coral:#ffe033;--coral-hover:#fff06b;--teal:#ffe033;--gold-1:#fff35c;--gold-2:#f5cf00;--gold-ink:#15140b;--font-display:"Manrope", "Segoe UI", Roboto, Arial, sans-serif;--font-body:"Manrope", "Segoe UI", Roboto, Arial, sans-serif}

/* brand overrides (brands/<brand>/custom.css) */
/* =========================================================
   KINBET — dark / yellow (overrides template/style.css)
   ========================================================= */
:root {
  color-scheme: dark;
  --content-max: 1240px;
  --header-h: 72px;
  --radius: 12px;
  --shadow: 0 16px 36px -18px rgba(0, 0, 0, .9);
}
body { background: var(--bg); }
a { color: var(--gold-1); }
a:hover { color: #fff; }
:focus-visible { outline-color: var(--gold-1); }
h1, h2, h3 { color: #fff; }
h1 { font-weight: 800; letter-spacing: -.02em; }
h2 { font-weight: 800; letter-spacing: -.01em; }
.section ul:not([class]) li::marker { color: var(--gold-1); }

/* header */
.header { background: var(--frame); border-bottom: 1px solid var(--frame-2); box-shadow: none; }
.btn { border-radius: 8px; font-weight: 700; }
.btn--login { background: var(--sky); color: var(--sky-ink); border: 1px solid #353946; }
.btn--signup { background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: var(--gold-ink); box-shadow: 0 6px 18px -10px var(--gold-2); }
.btn--signup:hover { color: var(--gold-ink); background: linear-gradient(180deg, #fff79a, var(--gold-1)); }

/* mobile drawer */
.sidebar { background: var(--frame); border-right: 1px solid var(--frame-2); }
.nav__title { color: var(--gold-1); }
.nav__link:hover .ico { color: var(--gold-1); }
.nav__link[aria-current="page"] { background: var(--gold-1); color: var(--gold-ink); }
.nav__link[aria-current="page"] .ico { color: var(--gold-ink); }

/* hero — like the official banner: text on the dark left side, no glass box */
.hero { border-radius: 16px; min-height: 400px; background: #06100d; }
.hero__bg img { object-position: right center; }
.hero__card { width: min(520px, 100%); gap: 26px; }
.hero__box { padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero__eyebrow { padding: 0; margin-bottom: 14px; background: none; color: #c3c7cf; font: 600 .85rem/1.2 var(--font-body); letter-spacing: .32em; }
.hero__offer { font: 800 clamp(2rem, 1.4rem + 2vw, 2.9rem)/1.12 var(--font-display); text-transform: uppercase; text-shadow: none; letter-spacing: -.01em; }
.hero__offer span { color: #fff; font-size: 1em; margin-top: 2px; }
.btn-cta {
  width: min(360px, 100%); border-radius: 12px; padding: 20px 28px;
  background: linear-gradient(180deg, #fff86a 0%, var(--gold-2) 100%);
  color: var(--gold-ink); font: 800 1.2rem/1 var(--font-body); letter-spacing: .02em;
  box-shadow: 0 0 0 2px rgba(255,255,255,.35) inset, 0 0 0 4px #000, 0 14px 28px -12px rgba(245,207,0,.7);
}
.btn-cta:hover, .hero:hover .btn-cta { color: var(--gold-ink); box-shadow: 0 0 0 2px rgba(255,255,255,.5) inset, 0 0 0 4px #000, 0 18px 34px -10px rgba(245,207,0,.9); }

/* content blocks */
thead th { background: var(--surface-2); color: var(--gold-1); }
tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }
.table-wrap { background: var(--surface); }
.game { background: var(--surface); border-color: var(--line); color: var(--ink); }
.game:hover { border-color: var(--gold-1); color: #fff; }
.step::before { background: var(--gold-1); color: var(--gold-ink); font-family: var(--font-body); font-style: normal; }
.pros h3, .pros li::before { color: #4fd18b; }
.cons h3, .cons li::before { color: #ff7a6b; }
.faq summary::after { border-color: var(--gold-1); }
.faq details[open] { border-color: #3a3d48; }
.payments { background: var(--surface); border: 1px solid var(--line); }
.pay { color: #d6d9e0; }
.cta-band { background: linear-gradient(110deg, #0c1a15 0%, #10251d 55%, #16181f 100%); border: 1px solid #1f3a2f; }
.cta-band__offer { font-style: normal; font-weight: 800; }
.breadcrumbs li + li::before { color: var(--ink-muted); }
.related a:hover, .breadcrumbs a:hover { color: var(--gold-1); }
.footer { border-top: 1px solid var(--frame-2); }
.footer__links a:hover { color: var(--gold-1); }

/* bonus bar */
.bonusbar { border-color: #2c2f3a; }
.bonusbar__offer { font-weight: 800; }

@media (max-width: 639px) {
  .hero { aspect-ratio: 720 / 1180; padding: 20px 18px 22px; }
  .hero__bg img { object-position: center top; }
  .hero__card { justify-content: flex-end; gap: 18px; }
  .hero__box { text-align: center; }
  .hero__eyebrow { letter-spacing: .2em; font-size: .72rem; }
  .hero__offer { font-size: 1.8rem; }
  .btn-cta { width: 100%; padding: 17px 20px; font-size: 1.1rem; }
}
@media (min-width: 640px) and (max-width: 1199px) {
  .hero__offer { font-size: 2rem; }
  .hero__card { width: min(420px, 100%); }
}
