:root {
  --page-background: #efefef;
  --surface-background: #ffffff;
  --primary-color: #f7b500;
  --primary-dark: #d79500;
  --text-color: #171717;
  --muted-color: #727272;
  --border-color: #dedede;
  --dark-background: #080808;
  --container-width: 1160px;
  --content-width: 1100px;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-background);
  color: var(--text-color);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, figure { margin-top: 0; }
.container { width: min(calc(100% - 40px), var(--container-width)); margin-inline: auto; }

header { background: var(--dark-background); color: #fff; }
header .responsible {
  margin: 0;
  padding: 7px 20px;
  border-bottom: 1px solid #222;
  color: #cfcfcf;
  font-size: 12px;
  text-align: center;
}
header .topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header .logo {
  display: grid;
  grid-template-columns: 27px auto;
  grid-template-rows: auto auto;
  align-items: center;
  width: max-content;
  line-height: .9;
  letter-spacing: .08em;
}
header .logo span {
  grid-row: 1 / 3;
  font-size: 27px;
  color: #e20e16;
  transform: rotate(-8deg);
}
header .logo strong { font-size: 14px; }
header .logo em { color: var(--primary-color); font-size: 11px; font-style: normal; font-weight: 800; }
header .topbar nav { display: flex; align-items: center; gap: 12px; }
header .login {
  min-width: 80px;
  padding: 10px 18px;
  border: 1px solid #494949;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
}
.primary-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--primary-color);
  color: #111;
  font-weight: 800;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.15);
}
.mobile-menu { display: none; }
.main-nav { background: var(--primary-color); color: #111; }
.main-nav ul {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.main-nav a {
  display: flex;
  align-items: center;
  min-height: 54px;
  font-size: 14px;
  font-weight: 800;
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 30%, rgba(247,181,0,.13), transparent 35%),
    linear-gradient(115deg, #050505 0%, #0d0b08 58%, #180e02 100%);
  color: #fff;
}
.hero .container {
  position: relative;
  min-height: 410px;
  display: flex;
  align-items: center;
}
.hero article { position: relative; z-index: 2; width: 42%; padding-left: 28px; }
.hero article p { margin-bottom: 8px; font-size: 30px; font-weight: 800; }
.hero article h2 { margin-bottom: 24px; font-size: 22px; line-height: 1.25; }
.hero article h2 span { color: var(--primary-color); }
.hero picture {
  position: absolute;
  inset: 0 -30px 0 34%;
  display: flex;
  justify-content: flex-end;
  opacity: .98;
}
.hero picture::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 30%;
  background: linear-gradient(90deg, #080706, transparent);
}
.hero picture img { width: 78%; height: 100%; object-fit: cover; object-position: center; mix-blend-mode: screen; }

.winners { background: #0c0c0c; border-block: 1px solid #292929; }
.winners .container {
  min-height: 58px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  align-items: center;
}
.winners span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid #3e3e3e;
  border-radius: 5px;
  background: linear-gradient(135deg, #211002, #591405 55%, #241700);
  color: #f6df9a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
}

.gaming { background: #f5f5f5; padding: 28px 0 42px; }
.gaming h2 { margin-bottom: 18px; font-size: 24px; }
.categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.categories a {
  min-width: 68px;
  padding: 7px 13px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background: #fff;
  color: #515151;
  font-size: 12px;
  text-align: center;
}
.categories a:first-child { border-color: var(--primary-color); color: #111; }
.game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.game-card {
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.game-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.game-card figure { margin: 0; }
.game-card picture { position: relative; overflow: hidden; display: block; aspect-ratio: 1.7; background: #151515; }
.game-card picture::after {
  content: "Jouer";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-weight: 800;
  opacity: 0;
  transition: opacity .15s ease;
}
.game-card:hover picture::after { opacity: 1; }
.game-card img { width: 100%; height: 100%; object-fit: cover; }
.game-card figcaption { position: relative; min-height: 82px; padding: 11px 12px 12px; }
.game-card strong { display: block; min-height: 36px; font-size: 13px; line-height: 1.25; }
.game-card span { display: block; color: var(--muted-color); font-size: 11px; }
.game-card small { position: absolute; right: 10px; bottom: 10px; color: #2aa74c; font-size: 10px; }
.load-more { display: flex; width: max-content; margin: 24px auto 38px; font-size: 13px; }

.tournaments, .promotions { margin-top: 28px; }
.tournaments > div, .promotions > div { display: grid; gap: 14px; }
.tournaments > div { grid-template-columns: repeat(3, 1fr); }
.promotions > div { grid-template-columns: repeat(4, 1fr); }
.tournaments a, .promotions a {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 130%, rgba(247,181,0,.65), transparent 35%),
    radial-gradient(circle at 8% 12%, rgba(247,181,0,.18), transparent 22%),
    linear-gradient(135deg,#0a0907,#16100b 55%,#060606);
  color: #fff;
  text-align: center;
  box-shadow: inset 0 0 30px rgba(247,181,0,.06);
}
.tournaments a::after, .promotions a::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(247,181,0,.28);
  border-radius: 50%;
  transform: rotate(18deg);
}
.tournaments strong, .promotions strong { position: relative; z-index: 1; font-size: 18px; }
.tournaments span { position: relative; z-index: 1; color: var(--primary-color); font-size: 22px; font-weight: 900; }
.promotions a { min-height: 124px; align-items: flex-start; padding: 18px; text-align: left; }
.promotions a::after { right: -70px; bottom: -85px; }
.promotions small, .promotions strong, .promotions span { position: relative; z-index: 1; }
.promotions small { color: #ddd; }
.promotions strong { color: var(--primary-color); }
.promotions span { font-size: 12px; }

footer { background: #050505; color: #bdbdbd; border-top: 1px solid #282828; }
.footer-links { padding: 26px 0 30px; text-align: center; }
.footer-links nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 24px; margin-bottom: 18px; }
.footer-links nav a { color: var(--primary-color); font-size: 12px; }
.footer-links p, .footer-links address { margin: 7px 0; font-size: 12px; font-style: normal; }
.footer-links strong { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 8px; border: 1px solid #777; border-radius: 50%; color: #fff; }
.footer-links small { color: #777; }

.editorial { padding: 36px 0 76px; background: var(--page-background); }
.article-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.article-index a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-color);
  color: #201700;
  font-size: 11px;
  font-weight: 700;
}
.editorial article > section, .article-links {
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--surface-background);
  box-shadow: var(--shadow);
}
.article-card { padding: 30px 34px; }
.article-card h1 { margin-bottom: 18px; font-size: 32px; line-height: 1.2; }
.article-card h2, .faq > h2 { margin-bottom: 18px; font-size: 24px; line-height: 1.3; }
.article-card h3 { margin: 24px 0 12px; font-size: 19px; }
.article-card p { margin-bottom: 15px; color: #363636; }
.article-card ul { padding-left: 22px; color: #363636; }
.article-card li { margin: 6px 0; }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,34%); gap: 30px; align-items: center; }
.split.left { grid-template-columns: minmax(260px,34%) minmax(0,1fr); }
.split.left picture { grid-column: 1; grid-row: 1; }
.split.left > div { grid-column: 2; }
.split picture { overflow: hidden; border-radius: 10px; background: #eee; }
.split picture img { width: 100%; height: auto; }
.intro .split > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,34%); gap: 30px; align-items: center; }
.intro .split > div picture { grid-column: 2; grid-row: 1 / span 3; }
.intro .split > div h1, .intro .split > div p { grid-column: 1; }

.table-wrap { overflow-x: auto; margin: 22px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td, th { padding: 12px 14px; border: 1px solid var(--border-color); text-align: left; }
th { background: #f6f6f6; font-weight: 800; }

.faq { padding: 26px 30px; }
.faq-item { border-top: 1px solid var(--border-color); }
.faq-item:last-child { border-bottom: 1px solid var(--border-color); }
.faq-item h3 { margin: 0; font-size: 15px; }
.faq-item h3 a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 2px; }
.faq-item h3 span { font-size: 18px; transition: transform .2s ease; }
.faq-item > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq-item > div p { overflow: hidden; margin: 0; color: #4a4a4a; }
.faq-item.open > div { grid-template-rows: 1fr; }
.faq-item.open > div p { padding: 0 2px 18px; }
.faq-item.open h3 span { transform: rotate(180deg); }

.article-links { width: 360px; padding: 24px; }
.article-links h2 { margin-bottom: 14px; font-size: 18px; }
.article-links nav { display: grid; gap: 7px; }
.article-links a { color: #d69600; font-size: 13px; text-decoration: underline; }
.chat {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 20;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 4px solid var(--primary-color);
  border-radius: 15px;
  background: #111;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

a:focus-visible { outline: 3px solid #198cff; outline-offset: 3px; }

@media (max-width: 900px) {
  .container { width: min(calc(100% - 28px), var(--container-width)); }
  .main-nav ul { overflow-x: auto; justify-content: flex-start; }
  .main-nav li { flex: 0 0 auto; }
  .hero .container { min-height: 340px; }
  .hero article { width: 55%; padding-left: 8px; }
  .hero article p { font-size: 25px; }
  .hero picture { left: 42%; }
  .winners .container { grid-template-columns: repeat(5, 1fr); padding-block: 10px; }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .promotions > div { grid-template-columns: repeat(2, 1fr); }
  .split, .split.left { grid-template-columns: 1fr; }
  .split.left picture, .split.left > div { grid-column: auto; grid-row: auto; }
  .intro .split > div { grid-template-columns: 1fr; }
  .intro .split > div picture, .intro .split > div h1, .intro .split > div p { grid-column: 1; grid-row: auto; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  header .responsible { font-size: 10px; }
  header .topbar { min-height: 62px; }
  header .topbar nav .login { display: none; }
  .mobile-menu { display: inline-flex; margin-left: auto; color: var(--primary-color); font-weight: 800; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { min-height: auto; display: grid; gap: 0; padding-block: 7px; }
  .main-nav a { min-height: 40px; }
  .hero .container { min-height: 310px; }
  .hero article { width: 70%; }
  .hero article p { font-size: 22px; }
  .hero article h2 { font-size: 17px; }
  .hero picture { inset: 0 -150px 0 30%; opacity: .75; }
  .winners .container { grid-template-columns: repeat(3, 1fr); }
  .winners span:nth-child(n+7) { display: none; }
  .gaming { padding-top: 22px; }
  .gaming h2 { font-size: 20px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .game-card figcaption { min-height: 76px; padding: 9px; }
  .game-card strong { font-size: 12px; }
  .tournaments > div, .promotions > div { grid-template-columns: 1fr; }
  .tournaments a { min-height: 120px; }
  .article-card, .faq { padding: 22px 18px; }
  .article-card h1 { font-size: 26px; }
  .article-card h2, .faq > h2 { font-size: 21px; }
  .article-links { width: 100%; }
  .chat { right: 12px; bottom: 12px; width: 46px; height: 46px; }
}

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