:root {
  color-scheme: light;
  --bg: #f6faf7;
  --paper: #ffffff;
  --ink: #111b16;
  --muted: #50645a;
  --line: #dbe8df;
  --brand: #ffce06;
  --brand-ink: #151106;
  --green: #0f7a4a;
  --red: #cf2e2e;
  --dark: #0d1712;
  --shadow: 0 16px 48px rgba(15, 45, 28, .13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

body.lite img:not(.brand img) {
  filter: saturate(.72);
}

body.lite .hero-media,
body.lite .section-media {
  opacity: .55;
}

body.lite * {
  animation: none !important;
  transition: none !important;
}

a {
  color: #075f3a;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

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

svg {
  width: 1.1em;
  height: 1.1em;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(13, 23, 18, .96);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 196px;
  min-width: 196px;
  min-height: 44px;
  padding: 7px 10px;
  background: #12664b;
  border-radius: 8px;
}

.brand img {
  width: 176px;
  height: auto;
}

.main-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav a {
  flex: 0 0 auto;
  padding: 9px 10px;
  color: #e5f1e9;
  text-decoration: none;
  border-radius: 8px;
  font-size: .92rem;
}

.main-nav a[aria-current="page"],
.main-nav a:hover {
  background: rgba(255, 206, 6, .16);
  color: #fff;
}

.header-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.btn,
.icon-button,
.carousel-buttons button {
  border: 0;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 16px;
  color: var(--brand-ink);
  background: var(--brand);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(255, 206, 6, .22);
}

.btn svg path,
.icon-button svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-secondary {
  color: #fff;
  background: #176b47;
  box-shadow: none;
}

.btn-small {
  min-height: 38px;
  padding: 8px 12px;
  font-size: .92rem;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-radius: 8px;
}

.hero {
  min-height: calc(100svh - 78px);
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(32px, 6vw, 80px) clamp(16px, 5vw, 72px) 42px;
  background: radial-gradient(circle at 44% 56%, rgba(22, 107, 71, .26), transparent 38%), #0d1712;
  overflow: hidden;
}

.hero-copy {
  color: #fff;
}

.eyebrow,
.section-head p {
  margin: 0 0 8px;
  color: #28734f;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: .8rem;
}

.hero .eyebrow {
  color: var(--brand);
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(2.25rem, 6vw, 5rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
}

h3 {
  margin: 0;
  font-size: 1.15rem;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  color: #d9eadf;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 14px;
}

.safety-note,
.fineprint {
  color: var(--muted);
  font-size: .92rem;
}

.hero .safety-note {
  color: #b8cbbf;
}

.hero-media img,
.section-media img,
.page-hero-media img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media {
  position: relative;
  isolation: isolate;
}

.hero-media::after {
  position: absolute;
  inset: auto 14px 14px;
  z-index: 1;
  padding: 8px 10px;
  color: #f2f8f4;
  content: "Interface BetWinner sur ordinateur";
  background: rgba(13, 23, 18, .86);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  font-size: .73rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.section-media img,
.page-hero-media img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}

.section,
.responsible,
.site-footer,
.legal-page,
.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: clamp(42px, 7vw, 86px) 0;
}

.section-head {
  margin-bottom: 20px;
}

.section > p,
.legal-page p {
  max-width: 890px;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 18px;
}

.info-tile {
  min-height: 126px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(12, 30, 19, .05);
}

.info-tile span {
  display: block;
  color: var(--green);
  font-size: 2rem;
  font-weight: 900;
}

.info-tile p {
  margin: 6px 0 0;
  color: var(--muted);
}

.table-card {
  margin: 20px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}

thead th {
  color: #fff;
  background: #123322;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.steps .section-head,
.steps .cta-strip {
  grid-column: 1 / -1;
}

.steps article {
  min-height: 152px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps article span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: var(--brand-ink);
  background: var(--brand);
  border-radius: 50%;
  font-weight: 900;
}

.split,
.page-hero {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: clamp(22px, 5vw, 58px);
  align-items: center;
}

.official-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  background: #102018;
  border: 1px solid rgba(13, 57, 37, .16);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(16, 47, 31, .11);
}

.official-strip img {
  width: 100%;
  height: auto;
}

.official-strip figcaption {
  padding: 10px 14px;
  color: #d8e8de;
  font-size: .82rem;
}

.page-hero {
  padding: clamp(34px, 6vw, 74px) 0;
}

.game-row {
  margin-top: 26px;
}

.row-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.carousel-buttons {
  display: flex;
  gap: 8px;
  margin-left: 4px;
}

.carousel-buttons button {
  width: 38px;
  height: 38px;
  color: #fff;
  background: #123322;
  border-radius: 8px;
  font-size: 1.25rem;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(185px, 236px);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding: 2px 2px 14px;
}

#games {
  position: relative;
  padding: clamp(52px, 8vw, 96px) 0;
}

#games::before {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, #eff7f1 0%, #f6faf7 100%);
}

#games .section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

#games .section-head::after {
  width: clamp(80px, 15vw, 180px);
  height: 4px;
  margin-bottom: 7px;
  content: "";
  background: linear-gradient(90deg, var(--brand), transparent);
  border-radius: 99px;
}

.game-card {
  position: relative;
  align-self: start;
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid #cfe0d4;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17, 44, 30, .09);
  transition: transform .22s ease, box-shadow .22s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(17, 44, 30, .17);
}

.game-toggle {
  display: block;
  width: 100%;
  padding: 0;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  background: transparent;
}

.game-toggle span {
  position: relative;
  margin-top: -58px;
  min-height: 58px;
  display: block;
  padding: 12px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(8, 20, 13, .92));
  font-weight: 900;
  font-size: 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .75);
}

.game-toggle span::before {
  display: block;
  margin-bottom: 2px;
  color: #ffdd43;
  content: "Voir le jeu";
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.game-toggle img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

.game-card:hover .game-toggle img {
  transform: scale(1.045);
}

.game-details {
  padding: 0 12px 14px;
}

.game-details p {
  margin-top: 0;
  color: var(--muted);
  font-size: .93rem;
}

.icon-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.icon-strip img {
  width: 100%;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  color: var(--muted);
}

.reviews {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 20px;
}

.reviews .section-head {
  grid-column: 1 / -1;
}

.review-grid {
  display: grid;
  gap: 12px;
}

.review-card,
.review-form {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-card strong {
  display: block;
}

.stars {
  color: #a46a00;
  font-weight: 900;
}

.review-form {
  display: grid;
  gap: 12px;
}

.review-form h3,
.review-form p {
  margin: 0;
}

.review-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.review-form input,
.review-form select,
.review-form textarea {
  width: 100%;
  border: 1px solid #b8cbbf;
  border-radius: 8px;
  padding: 10px 12px;
  background: #12664b;
}

.review-form textarea {
  min-height: 122px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
}

output {
  min-height: 24px;
  color: #075f3a;
  font-weight: 800;
}

.responsible {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 44px;
  padding: 18px;
  background: #102018;
  color: #fff;
  border-radius: 8px;
}

.responsible h2 {
  font-size: 1.35rem;
}

.responsible p {
  margin-bottom: 0;
  color: #d8e8de;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 32px 0 42px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: clamp(16px, 5vw, 72px);
  color: #fff;
  background: #0d1712;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-content: start;
}

.site-footer a {
  color: #dff4e7;
}

.site-footer p,
.site-footer .fineprint {
  color: #c8d9cf;
}

.site-footer > div > img {
  width: 212px;
  height: auto;
  padding: 9px 12px;
  background: #fff;
  border-radius: 8px;
}

.site-footer .fineprint {
  grid-column: 1 / -1;
}

.legal-page {
  padding: 54px 0 38px;
}

.legal-page h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.legal-page h2 {
  margin-top: 28px;
  font-size: 1.35rem;
}

.notice {
  padding: 14px 16px;
  background: #fff8cf;
  border: 1px solid #e7c944;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
  }

  .hero,
  .split,
  .page-hero,
  .reviews,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    background: #0d1712;
  }

  .hero-copy,
  .hero-media {
    min-width: 0;
  }

  .compact-grid,
  .steps,
  .icon-strip {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    gap: 10px;
    padding: 12px;
  }

  .brand {
    width: 154px;
    min-width: 154px;
    min-height: 40px;
    padding: 7px 8px;
  }

  .brand img {
    width: 138px;
  }

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

  .section,
  .page-hero,
  .legal-page {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    width: 100%;
    padding: 28px 12px 32px;
  }

  .compact-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .icon-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-card {
    border: 0;
    background: transparent;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  tbody tr {
    margin-bottom: 12px;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  th,
  td {
    border: 0;
    padding: 8px 0;
  }

  td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .carousel {
    grid-auto-columns: minmax(148px, 70vw);
  }
}

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