/* ==========================================================================
   Alexander Casino — feuille de style unique
   Palette : navy égéen + terracotta/orange + marbre clair
   ========================================================================== */

:root {
  --header: #102d3b;
  --dark: #002e3c;
  --dark-2: #013243;
  --light: #eceff3;
  --terracotta: #e28852;
  --orange: #f18345;
  --orange-hi: #ff9459;
  --sky: #2ea3f2;
  --grey-btn: #d6d6d6;
  --ink: #111111;
  --ink-soft: #4a5560;
  --paper: #ffffff;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(16, 45, 59, 0.14);
  --radius: 8px;
  --radius-sm: 5px;
  --wrap: 1180px;
}

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

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

/* Le header est collant : sans cette marge, un lien d'ancre depose le titre
   de section sous le header. On la pose sur toutes les cibles d'ancre. */
:target,
.section,
.faq-item,
#sommaire {
  scroll-margin-top: 96px;
}

html.bg-page {
  background: var(--dark);
}

body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--paper);
  background: var(--dark);
  overflow-x: hidden;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------------------------------------------------------------- Titres */
h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  line-height: 1.22;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 800;
  color: var(--orange);
  margin-top: 0;
}

h3 {
  font-size: clamp(1.1rem, 2.4vw, 1.32rem);
  font-weight: 700;
  color: var(--orange);
  margin-top: 34px;
}

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

p {
  margin: 0 0 16px;
  text-wrap: pretty;
}

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

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: rgba(241, 131, 69, 0.16);
  color: var(--orange-hi);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.92em;
  font-weight: 700;
  /* Les codes promo contiennent des O : on desactive le zero barre et on
     aere les caracteres pour que le joueur les recopie sans se tromper. */
  font-variant-ligatures: none;
  font-feature-settings: "zero" 0;
  letter-spacing: 0.06em;
}

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

/* ---------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  user-select: none;
  border: 0;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 13px 24px;
}
.btn-primary:hover {
  background: var(--orange-hi);
}
.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: var(--grey-btn);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 11px 20px;
}
.btn-secondary:hover {
  background: #e6e6e6;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.03rem;
}

.btn-xl {
  padding: 17px 44px;
  font-size: 1.12rem;
}

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

.logo img {
  width: 168px;
  height: auto;
}

.header-nav {
  display: none;
  margin-left: auto;
  gap: 22px;
}

.header-nav a {
  color: var(--paper);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--sky);
  border-bottom-color: var(--sky);
  text-decoration: none;
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-actions .btn-secondary {
  display: none;
}

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  background: var(--dark);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 46, 60, 0.62) 0%, rgba(0, 46, 60, 0.86) 62%, var(--dark) 100%);
  z-index: -1;
}

.hero-inner {
  text-align: center;
  padding-block: 56px 44px;
}

.hero-lead {
  max-width: 720px;
  margin-inline: auto;
  font-size: 1.05rem;
}

.hero-offer {
  font-size: 1.18rem;
  margin-bottom: 24px;
}
.hero-offer strong {
  color: var(--orange-hi);
}

.hero-facts {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-facts li {
  background: rgba(16, 45, 59, 0.72);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-facts strong {
  color: var(--orange);
  font-size: 1.18rem;
}

.hero-facts span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

/* ---------------------------------------------------------------- Sommaire */
.toc {
  background: var(--header);
  border-block: 1px solid var(--line-dark);
  padding-block: 26px;
}

.toc h2 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.toc-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px 26px;
  columns: 1;
}

.toc-list a {
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 600;
}
.toc-list a:hover,
.toc-list a:focus-visible {
  color: var(--orange);
}

/* ---------------------------------------------------------------- Sections */
.section {
  padding-block: 48px;
}

.section-dark {
  background: var(--dark);
  color: var(--paper);
}

.section-light {
  background: var(--light);
  color: var(--ink);
}

.section-light h2,
.section-light h3 {
  color: #c25f22;
}

.section-light a {
  color: #b8501a;
}

.section-light .note {
  color: var(--ink-soft);
}

.note {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.76);
  border-left: 3px solid var(--terracotta);
  padding-left: 14px;
  margin-top: 22px;
}

/* ---------------------------------------------------------------- Listes */
.check-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--orange);
}

.rules {
  margin: 18px 0 0;
  padding-left: 24px;
  display: grid;
  gap: 12px;
}

.rules li::marker {
  color: var(--orange);
  font-weight: 800;
}

/* ---------------------------------------------------------------- Étapes */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 18px 20px 18px 62px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--paper);
  font-weight: 800;
  display: grid;
  place-items: center;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
}

.steps p {
  margin: 0;
}

/* ---------------------------------------------------------------- Cartes */
.cards {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.card {
  background: rgba(16, 45, 59, 0.6);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.card h3,
.card h4 {
  margin: 0 0 8px;
  font-size: 1.03rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

.section-light .card {
  background: var(--paper);
  border-color: var(--line-light);
}

/* ---------------------------------------------------------------- Tableaux */
.table-scroll {
  overflow-x: auto;
  margin: 20px 0 8px;
  -webkit-overflow-scrolling: touch;
  /* Ombre portee sur les bords : elle disparait quand on atteint le bout,
     ce qui signale au joueur qu'il reste des colonnes a droite. */
  background:
    linear-gradient(to right, var(--dark) 30%, rgba(0, 46, 60, 0)) left center / 34px 100% no-repeat,
    linear-gradient(to left, var(--dark) 30%, rgba(0, 46, 60, 0)) right center / 34px 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.4), transparent) left center / 12px 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.4), transparent) right center / 12px 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}

.section-light .table-scroll {
  background:
    linear-gradient(to right, var(--light) 30%, rgba(236, 239, 243, 0)) left center / 34px 100% no-repeat,
    linear-gradient(to left, var(--light) 30%, rgba(236, 239, 243, 0)) right center / 34px 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, rgba(16, 45, 59, 0.22), transparent) left center / 12px 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, rgba(16, 45, 59, 0.22), transparent) right center / 12px 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}

/* Rendu focusable par script : la zone doit etre atteignable au clavier. */
.table-scroll:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.94rem;
  background: rgba(16, 45, 59, 0.55);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

/* --------------------------------------------------- Moyens de paiement */
.pay-logos {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Chaque marque garde sa couleur d'origine, posee sur une plaque claire
   pour rester lisible sur le fond sombre de la section retraits. */
.pay-logos li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.pay-logos img {
  width: auto;
  height: 34px;
  display: block;
}

.pay-logos .pay-text {
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: #000;
}

.data-table caption {
  caption-side: top;
  text-align: left;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
  padding-bottom: 8px;
}

.data-table th,
.data-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-dark);
  vertical-align: top;
}

.data-table thead th {
  background: var(--header);
  color: var(--orange);
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody th {
  font-weight: 700;
  color: var(--paper);
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table .row-total th,
.data-table .row-total td {
  background: rgba(241, 131, 69, 0.14);
  font-weight: 700;
}

.section-light .data-table {
  background: var(--paper);
  border-color: var(--line-light);
}
.section-light .data-table caption {
  color: var(--ink-soft);
}
.section-light .data-table th,
.section-light .data-table td {
  border-bottom-color: var(--line-light);
}
.section-light .data-table tbody th {
  color: var(--ink);
}

.table-compare td {
  white-space: nowrap;
}

.win {
  color: #2f8f4e;
  font-weight: 700;
}

.section-dark .win {
  color: #6fd693;
}

.lose {
  color: #c0392b;
  font-weight: 700;
}

.section-dark .lose {
  color: #ff8a7a;
}

/* ---------------------------------------------------------------- Bannières */
.banner {
  margin: 32px 0;
  background: var(--header);
  border: 1px solid var(--line-dark);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 16px;
  align-items: center;
  color: var(--paper);
}

.banner img {
  width: 92px;
  border-radius: var(--radius-sm);
  justify-self: start;
}

.banner-copy {
  display: grid;
  gap: 4px;
}

.banner-sub {
  margin: 0;
  font-size: 0.86rem;
  color: var(--terracotta);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.banner-title {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1.25;
}

.banner-note {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

.banner .btn {
  justify-self: start;
}

/* ---------------------------------------------------------------- Jeux */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 8px;
}

.game {
  position: relative;
  display: block;
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.section-dark .game {
  background: rgba(16, 45, 59, 0.65);
  border-color: var(--line-dark);
}

/* Affordance : la plaque se souleve, se cerne d'orange et l'image s'eclaircit
   au survol comme au focus clavier, pour montrer que la tuile est cliquable. */
.game:hover,
.game:focus-visible {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

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

.game img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.game:hover img,
.game:focus-visible img {
  transform: scale(1.04);
}

/* Pastille "Jouer" toujours visible : signale sans ambiguite que chaque
   vignette mene a l'inscription. Elle s'illumine au survol. */
.game::after {
  content: "\25B6  Jouer";
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0.92;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.game:hover::after,
.game:focus-visible::after {
  opacity: 1;
  transform: translateY(-1px);
}

.game-cap {
  padding: 10px 12px 12px;
  display: grid;
  gap: 2px;
}

.game-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.game-tag {
  font-size: 0.79rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.section-dark .game-tag {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------------------------------------------------------------- Avis */
.reviews {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.review {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.review header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.stars {
  color: #f5a623;
  font-size: 1.08rem;
  letter-spacing: 2px;
}

.star-off {
  color: #cfd6dd;
}

.review-date {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.review h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--ink);
}

.review p {
  margin: 0 0 10px;
  font-size: 0.96rem;
}

.review footer {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.verified {
  color: #2f8f4e;
  font-weight: 700;
}

/* ---------------------------------------------------------------- FAQ */
.faq {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.faq-item {
  background: rgba(16, 45, 59, 0.6);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 18px;
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--orange);
  position: relative;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--terracotta);
}

.faq-item[open] summary::after {
  content: "\2013";
}

.faq-body {
  padding: 0 18px 16px;
}

.faq-body p {
  margin: 0;
}

/* ---------------------------------------------------------------- Footer */
.site-footer {
  background: var(--header);
  border-top: 1px solid var(--line-dark);
  padding-block: 34px 100px;
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.footer-top img {
  width: 160px;
}

.footer-licence {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-block: 16px;
  border-block: 1px solid var(--line-dark);
}

.footer-nav a {
  color: var(--paper);
  font-weight: 600;
}
.footer-nav a:hover {
  color: var(--orange);
}

.footer-pay {
  margin: 16px 0 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
}

.footer-legal {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.6;
}

.age {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--terracotta);
  color: var(--terracotta);
  font-weight: 800;
  font-size: 0.78rem;
  margin-right: 8px;
  vertical-align: middle;
}

/* ---------------------------------------------------------------- CTA collant */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: rgba(16, 45, 59, 0.97);
  border-top: 2px solid var(--orange);
  padding-block: 10px;
}

.sticky-cta[hidden] {
  display: none;
}

.sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sticky-copy {
  margin: 0;
  font-size: 0.94rem;
}

.sticky-copy strong {
  color: var(--orange);
}

/* ==========================================================================
   Tablette
   ========================================================================== */
@media (min-width: 640px) {
  .hero-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cards-2,
  .cards-3,
  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .banner {
    grid-template-columns: 1fr auto;
    padding: 24px 26px;
  }
  .banner-bonus {
    grid-template-columns: auto 1fr auto;
  }
  .toc-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-top {
    grid-template-columns: auto 1fr;
    gap: 22px;
  }
}

/* ==========================================================================
   Bureau
   ========================================================================== */
@media (min-width: 1000px) {
  body {
    font-size: 16.5px;
  }
  .header-nav {
    display: flex;
  }
  .header-actions {
    margin-left: 0;
  }
  .header-actions .btn-secondary {
    display: inline-flex;
  }
  .hero-inner {
    padding-block: 96px 64px;
  }
  .hero-lead {
    font-size: 1.12rem;
  }
  .section {
    padding-block: 68px;
  }
  .game-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .game-grid-live {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cards-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toc-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer {
    padding-bottom: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}
