/* ==========================================================================
   Alexander Casino FR — design tokens
   Palette: deep teal navy + terracotta/orange accents + light neutral
   ========================================================================== */
:root {
  --header: #102d3b;
  --dark: #002e3c;
  --dark-2: #013443;
  --light: #eceff3;
  --terracotta: #e28852;
  --orange: #f18345;
  --orange-dark: #d96c2d;
  --sky: #2ea3f2;
  --grey-btn: #d6d6d6;
  --white: #ffffff;
  --ink: #111111;
  --ink-soft: #4d5560;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: #d5dae1;
  --glow: rgba(0, 139, 219, 0.25);
  --wrap: 1180px;
  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  background: var(--dark);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--white);
  background: var(--dark);
}

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 4.2vw, 2.35rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1.1em; text-wrap: pretty; }

a { color: var(--terracotta); text-decoration: none; }
a:hover, a:focus-visible { color: var(--orange); text-decoration: underline; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* sticky header offset for in-page anchors */
[id] { scroll-margin-top: 84px; }
body.nav-locked { overflow: hidden; }

.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;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--orange); color: var(--white); padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ============================ Buttons ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: .95rem; font-weight: 700; line-height: 1;
  padding: 14px 24px; border: 0; border-radius: 8px;
  cursor: pointer; user-select: none; text-align: center;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--orange-dark); color: var(--white); }

.btn-secondary { background: var(--grey-btn); color: var(--ink); border-radius: 5px; padding: 12px 20px; }
.btn-secondary:hover, .btn-secondary:focus-visible { background: #c4c4c4; }

.btn-ghost {
  background: transparent; color: var(--white);
  box-shadow: inset 0 0 0 2px var(--white);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--white); color: var(--dark); }

.btn-lg { padding: 17px 40px; font-size: 1.05rem; }
.btn-sm { padding: 10px 16px; font-size: .82rem; border-radius: 6px; }

/* ============================ Top bar ============================ */
.topbar { background: var(--terracotta); color: var(--white); font-size: .78rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.topbar-note { font-weight: 600; }
.topbar-lang { font-weight: 700; letter-spacing: .06em; }

/* ============================ Header ============================ */
.site-header { background: var(--header); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; gap: 16px; min-height: 70px; transition: min-height .18s ease; }
.site-header.is-stuck { box-shadow: 0 6px 22px rgba(0, 0, 0, .35); }
.site-header.is-stuck .header-in { min-height: 58px; }
.site-header.is-stuck .brand img { height: 44px; }

.brand { flex: 0 0 auto; }
.brand { display: flex; align-items: center; }
.brand img { width: auto; height: 54px; filter: drop-shadow(0 0 14px var(--glow)); }

.mainnav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.mainnav a {
  color: var(--white); font-size: .88rem; font-weight: 600;
  padding: 8px 12px; border-radius: 5px; text-decoration: none;
  border-bottom: 2px solid transparent;
}
.mainnav a:hover, .mainnav a:focus-visible { color: var(--sky); border-bottom-color: var(--sky); text-decoration: none; }

.header-cta { display: flex; gap: 10px; flex: 0 0 auto; }

.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; margin-left: auto; }
.burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }
.burger span + span { margin-top: 5px; }

/* ============================ Hero ============================ */
.hero { position: relative; background: var(--dark); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%; opacity: .32;
}
.hero-in { position: relative; text-align: center; padding: 64px 20px 56px; }
.hero h1 { max-width: 20ch; margin-inline: auto; text-shadow: 0 2px 18px rgba(0, 20, 28, .85); }
.hero-sub {
  max-width: 62ch; margin: 0 auto 26px; font-size: 1.02rem;
  text-shadow: 0 1px 12px rgba(0, 20, 28, .8);
}

.hero-facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  list-style: none; margin: 0 0 30px; padding: 0;
}
.hero-facts li {
  display: flex; flex-direction: column; align-items: center;
  min-width: 118px; padding: 12px 16px; border-radius: 8px;
  background: rgba(1, 52, 67, .78); border: 1px solid var(--line-dark);
}
.hero-facts strong { font-size: 1.4rem; font-weight: 800; color: var(--orange); line-height: 1.1; }
.hero-facts span { font-size: .78rem; font-weight: 600; opacity: .92; }

.hero-legal { max-width: 60ch; margin: 22px auto 0; font-size: .78rem; opacity: .82; }

/* ============================ Category bar ============================ */
.catbar { background: var(--header); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.catbar-in { display: flex; gap: 6px; overflow-x: auto; padding: 8px 20px; scrollbar-width: none; }
.catbar-in::-webkit-scrollbar { display: none; }
.catbar-in a {
  flex: 0 0 auto; color: var(--white); font-size: .82rem; font-weight: 600;
  padding: 8px 14px; border-radius: 5px; text-decoration: none; white-space: nowrap;
}
.catbar-in a:hover, .catbar-in a:focus-visible { background: rgba(46, 163, 242, .18); color: var(--sky); text-decoration: none; }

/* ============================ Sections ============================ */
.sec { padding: 56px 0; }
.sec-dark { background: var(--dark); color: var(--white); }
.sec-light { background: var(--light); color: var(--ink); }

.sec-dark h2, .sec-dark h3 { color: var(--orange); }
.sec-light h2, .sec-light h3 { color: var(--dark); }
.sec-light p { color: var(--ink-soft); }
.sec-light a { color: var(--orange-dark); }

.lead { font-size: 1.04rem; }

/* ============================ Table of contents ============================ */
.toc { padding-top: 0; }
.toc-list {
  display: grid; grid-template-columns: 1fr; gap: 2px;
  margin: 0; padding: 18px 18px 18px 38px;
  background: var(--dark-2); border: 1px solid var(--line-dark); border-radius: 8px;
}
.toc-list li { margin: 0; }
.toc-list a { display: block; padding: 6px 4px; color: var(--white); font-weight: 600; font-size: .95rem; }
.toc-list a:hover, .toc-list a:focus-visible { color: var(--orange); }

/* ============================ Tables ============================ */
.table-scroll { overflow-x: auto; margin: 0 0 26px; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; vertical-align: top; }
.tbl tbody tr { border-bottom: 1px solid var(--line-dark); }
.tbl th[scope="row"] { width: 34%; font-weight: 700; color: var(--terracotta); }

.sec-light .tbl tbody tr { border-bottom: 1px solid var(--line-light); }
.sec-light .tbl th[scope="row"] { color: var(--dark); }

.tbl-compare thead th {
  background: var(--header); color: var(--white); font-weight: 700; font-size: .84rem;
  text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.tbl-compare tbody td { color: inherit; }
.sec-light .tbl-compare tbody td { color: var(--ink); }
.tbl-compare .row-hl { background: rgba(241, 131, 69, .1); }
.tbl-compare .row-hl td:first-child { font-weight: 700; }

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--white); white-space: nowrap;
}
.pill-crypto { background: var(--orange); }
.pill-card { background: var(--header); }
.pill-bank { background: var(--ink-soft); }
.pill-voucher { background: var(--terracotta); }

/* ============================ Lists ============================ */
.ticks { list-style: none; margin: 0 0 22px; padding: 0; }
.ticks li { position: relative; padding: 5px 0 5px 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 14px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--orange);
}

/* ============================ Figures ============================ */
.fig { margin: 0 0 26px; }
.fig img { border-radius: 8px; }
.fig figcaption { margin-top: 8px; font-size: .82rem; opacity: .8; }
.sec-light .fig figcaption { color: var(--ink-soft); opacity: 1; }
.fig-right { max-width: 520px; }

/* ============================ Steps ============================ */
.steps { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 30px; }
.steps .step {
  flex: 1 1 240px; padding: 22px; border-radius: 8px;
  background: var(--dark-2); border: 1px solid var(--line-dark);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 12px; border-radius: 8px;
  background: var(--orange); color: var(--white); font-weight: 800; font-size: 1.05rem;
}
.steps h3 { margin-bottom: .4em; }
.steps p { margin: 0; font-size: .92rem; }

/* ============================ Cards ============================ */
.cards-2, .cards-3, .cards-4 { display: grid; gap: 16px; margin: 0 0 28px; }
.cards-2 { grid-template-columns: 1fr; }
.cards-3 { grid-template-columns: 1fr; }
.cards-4 { grid-template-columns: 1fr; }

.card { padding: 22px; border-radius: 8px; }
.sec-dark .card { background: var(--dark-2); border: 1px solid var(--line-dark); }
.sec-light .card { background: var(--white); border: 1px solid var(--line-light); }
.card h3 { margin-bottom: .45em; font-size: 1.05rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .ticks { margin-bottom: 0; }

/* ============================ Game rails ============================ */
.rail {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 18px;
  margin: 0 0 26px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: rgba(0, 46, 60, .3); border-radius: 8px; }
.sec-dark .rail::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .25); }

.rail-wrap { position: relative; }

.rail-nav {
  position: absolute; top: calc(50% - 22px); transform: translateY(-50%); z-index: 2;
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0 0 4px;
  font-size: 1.6rem; line-height: 1; font-family: inherit;
  color: var(--white); background: var(--header);
  border: 1px solid var(--line-dark); border-radius: 50%;
  cursor: pointer; transition: background-color .15s ease;
}
.rail-nav:hover, .rail-nav:focus-visible { background: var(--orange); }
.rail-prev { left: -8px; }
.rail-next { right: -8px; }
.rail-wrap.at-start .rail-prev,
.rail-wrap.at-end .rail-next { opacity: 0; pointer-events: none; }

@media (min-width: 900px) {
  .rail-nav { display: flex; }
}

.tile {
  --tile-name-h: 56px;
  position: relative; flex: 0 0 168px; scroll-snap-align: start;
  border-radius: 8px; overflow: hidden; background: var(--header);
}
.tile > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.tile-hover {
  position: absolute; left: 0; right: 0; top: 0; bottom: var(--tile-name-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(0, 24, 32, .82) 0%, rgba(0, 24, 32, .94) 100%);
  opacity: 0; transition: opacity .18s ease;
}
.tile:hover .tile-hover,
.tile:focus-within .tile-hover { opacity: 1; }
.tile-hover .btn {
  width: 100%; max-width: 150px; padding: 12px 14px;
  font-size: .88rem; letter-spacing: .01em;
}

/* Sélecteur à double classe : indispensable pour battre `.sec-light p`,
   sinon le titre passe en gris foncé sur fond sombre et devient illisible. */
.tile .tile-name {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  margin: 0; padding: 9px 10px 11px; min-height: var(--tile-name-h);
  overflow: hidden;
  font-size: .82rem; font-weight: 700; line-height: 1.3;
  color: var(--white); background: var(--header);
}
.tag {
  display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px;
  background: var(--orange); color: var(--white); font-size: .62rem; letter-spacing: .04em; text-transform: uppercase;
}

/* touch devices: always show the two CTAs, no hover state to rely on */
@media (pointer: coarse) {
  .tile-hover { position: static; opacity: 1; flex-direction: row; background: var(--header); padding: 10px; bottom: auto; }
  .tile-hover .btn { min-width: 0; flex: 1 1 auto; }
}

/* ============================ CTA bands ============================ */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; border-radius: 8px; margin: 8px 0 0;
  background: var(--dark-2); border: 1px solid var(--line-dark);
  border-left: 4px solid var(--orange);
}
.cta-band p { margin: 0; font-weight: 700; font-size: 1rem; color: var(--white); }
.cta-band-light { background: var(--white); border: 1px solid var(--line-light); border-left: 4px solid var(--orange); }
.cta-band-light p { color: var(--dark); }

/* ============================ Bonus banner ============================ */
.banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
  padding: 22px; border-radius: 8px; margin: 28px 0 0;
  background: var(--dark-2); border: 1px solid var(--line-dark);
}
/* `min-width: 0` empêche l'image de forcer la largeur du flex item
   et de faire déborder la carte sur les petits écrans. */
.banner img {
  flex: 1 1 260px; min-width: 0; width: 100%; max-width: 380px;
  height: auto; border-radius: 8px;
}
.banner-txt { flex: 1 1 260px; min-width: 0; }
.banner-kicker { font-size: 1.2rem; font-weight: 800; color: var(--orange); margin-bottom: .3em; }
.banner-txt p { color: var(--white); }
.banner-txt .btn { margin-top: 6px; }

/* ============================ Reviews ============================ */
.reviews { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0 0 28px; }
.review { padding: 22px; border-radius: 8px; background: var(--white); border: 1px solid var(--line-light); }
.review p { color: var(--ink-soft); }
.review p:last-child { margin-bottom: 0; }
.stars { color: var(--orange); font-size: 1.05rem; letter-spacing: .12em; margin-bottom: 10px; }
.star-off { color: var(--line-light); }
.review-meta { font-size: .82rem; font-weight: 700; color: var(--dark); }

/* ============================ FAQ ============================ */
.faq { margin: 0 0 28px; }
.faq-item { border-bottom: 1px solid var(--line-dark); }
.faq-item summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 18px 44px 18px 0;
  font-size: 1.05rem; font-weight: 700; color: var(--orange);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--orange);
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { color: var(--white); }
.faq-item summary:hover::after { color: var(--white); }
.faq-body { padding: 0 0 18px; }
.faq-body p:last-child { margin-bottom: 0; }

/* ============================ Footer ============================ */
.site-footer { background: var(--header); padding: 40px 0 28px; font-size: .88rem; }
.pay-row {
  display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 24px; margin-bottom: 24px;
  border-bottom: 1px solid var(--line-dark);
}
.pay-row span {
  padding: 6px 14px; border-radius: 5px; font-size: .78rem; font-weight: 700;
  background: rgba(255, 255, 255, .08); color: var(--white); border: 1px solid var(--line-dark);
}

.foot-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 26px; }
.foot-grid h2 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--terracotta); margin-bottom: .8em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { padding: 4px 0; color: rgba(255, 255, 255, .82); }
.foot-grid a { color: rgba(255, 255, 255, .82); }
.foot-grid a:hover, .foot-grid a:focus-visible { color: var(--orange); }

.foot-legal {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: .78rem; line-height: 1.7; color: rgba(255, 255, 255, .72);
  padding-top: 22px; border-top: 1px solid var(--line-dark);
}
.age {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--orange); color: var(--orange); font-weight: 800; font-size: .82rem;
}
.foot-copy { margin: 0; font-size: .78rem; color: rgba(255, 255, 255, .6); }

/* ============================ Breakpoints ============================ */
@media (min-width: 640px) {
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .toc-list { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .tile { flex: 0 0 190px; }
}

@media (min-width: 900px) {
  body { font-size: 15px; }
  .sec { padding: 72px 0; }
  .hero-in { padding: 96px 20px 84px; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 899px) {
  .mainnav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px 20px 16px;
    background: var(--header); border-top: 2px solid var(--sky);
  }
  .mainnav.is-open { display: flex; }
  .mainnav a { padding: 12px 4px; border-bottom: 1px solid var(--line-dark); }
  .burger { display: block; order: 3; }
  .site-header { position: relative; }
  .header-in { flex-wrap: wrap; position: relative; }
  .header-cta { order: 2; margin-left: auto; }
  .header-cta .btn { padding: 10px 16px; font-size: .85rem; }
  .brand img { height: 42px; }
  .topbar-note { font-size: .7rem; }
}

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