/* =========================================================
   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: currentColor; 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; }
}

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