/* Bonuscasinofrance — Obsidian UX v2.1 (AX)
   Radical visual redesign: diamond motif, timeline panels, parallax backdrop. */

/* 0) Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html,
body {
  height: 100%;
}
html:focus-within {
  scroll-behavior: smooth;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
}
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: anywhere;
}
:root {
  color-scheme: dark;
}

/* 1) Tokens — Obsidian palette */
:root {
  --ax-bg: #0b0d10;
  --ax-bg-2: #0e1116;
  --ax-surface: #0f141a;
  --ax-panel: #121821;
  --ax-primary: #60a5fa;
  --ax-primary-2: #22c55e;
  --ax-accent: #fb923c;
  --ax-success: #86efac;
  --ax-danger: #f87171;
  --ax-text: #e5eaf1;
  --ax-text-dim: #a6b0c2;
  --ax-border: rgba(229, 234, 241, 0.08);
  --ax-border-strong: rgba(229, 234, 241, 0.16);
  --ax-r-xl: 18px;
  --ax-r-lg: 14px;
  --ax-r-md: 10px;
  --ax-r-sm: 8px;
  --ax-container: 1200px;
  --ax-gutter: 18px;
  --ax-shadow-1: 0 8px 24px rgba(2, 6, 12, 0.45);
  --ax-shadow-2: 0 16px 44px rgba(2, 6, 12, 0.6);
  --ax-focus: 0 0 0 3px rgba(96, 165, 250, 0.55);
  --ax-meter-bg: #0e1a25;
}

/* 2) Base */
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto,
    Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--ax-text);
  background: radial-gradient(
      1200px 800px at -10% -10%,
      rgba(96, 165, 250, 0.08),
      transparent 60%
    ),
    radial-gradient(
      1100px 700px at 110% 0%,
      rgba(34, 197, 94, 0.08),
      transparent 55%
    ),
    radial-gradient(
      900px 650px at 50% 120%,
      rgba(251, 146, 60, 0.06),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      var(--ax-bg) 0%,
      #0b0f14 40%,
      var(--ax-bg-2) 75%,
      #0f141a 100%
    );
}
.ax-display,
.ax-h2,
.ax-hero_title {
  font-family: "Space Grotesk", system-ui;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.ax-text {
  color: var(--ax-text-dim);
}

a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--ax-focus);
  border-radius: 10px;
}

/* 3) A11y */
.ax-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 1px, 1px);
  white-space: nowrap;
  border: 0;
}
.ax-skip {
  position: absolute;
  left: 8px;
  top: -40px;
  background: #0e1116;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: var(--ax-shadow-1);
  transition: top 0.2s ease;
  z-index: 1000;
}
.ax-skip:focus {
  top: 10px;
}

/* 4) Layout */
.ax-container {
  width: 100%;
  max-width: var(--ax-container);
  margin: 0 auto;
  padding-inline: var(--ax-gutter);
}

/* 5) Backdrop with parallax image */
.ax-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: linear-gradient(
      180deg,
      rgba(6, 10, 20, 0.75),
      rgba(6, 10, 20, 0.75)
    ),
    radial-gradient(
      600px 600px at 10% 5%,
      rgba(96, 165, 250, 0.12),
      transparent 60%
    ),
    radial-gradient(
      700px 700px at 90% 10%,
      rgba(34, 197, 94, 0.1),
      transparent 60%
    ),
    url("../img/bg-new.webp");
  background-size: cover, auto, auto, cover;
  background-position: center, 10% 5%, 90% 10%, center;
  background-attachment: fixed, fixed, fixed, fixed;
  filter: contrast(1.02) saturate(1.03);
}

/* 6) Hero */
.ax-hero {
  padding: 34px 0 8px;
}
.ax-hero_wrap {
  display: grid;
  gap: 16px;
}
.ax-hero_title {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12;
}
.ax-hero_lead {
  color: var(--ax-text-dim);
  font-size: clamp(15px, 1.7vw, 18px);
  max-width: 80ch;
}
.ax-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ax-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.ax-metric {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--ax-border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--ax-shadow-1);
}
.ax-metric h3 {
  font-family: "Space Grotesk";
  font-weight: 700;
  font-size: 14px;
  color: #c7d2e1;
}
.ax-metric p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ax-text-dim);
}

/* 7) Operator list */
.ax-listingSection {
  padding: 10px 0 16px;
}
.ax-gridCards {
  display: grid;
  gap: 12px;
}
.ax-card {
  display: grid;
  grid-template-columns: 56px 2.2fr 1.2fr 0.9fr;
  gap: 14px;
  align-items: center;
  background: linear-gradient(180deg, #121a24 0%, #0f151d 100%);
  border: 1px solid var(--ax-border-strong);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--ax-shadow-1);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.ax-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ax-shadow-2);
  border-color: var(--ax-border-strong);
}

/* Rank — diamond */
.ax-rank {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8f0ff 0%, #dbeafe 100%);
  border: 2px solid rgba(96, 165, 250, 0.45);
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.18);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  font-weight: 800;
  font-family: "Space Grotesk";
  color: #0b0d10;
  font-size: 13px;
}

/* Brand */
.ax-brand {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  align-items: center;
}
.ax-brandLogo {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--ax-border);
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 8px;
}
.ax-brandLogo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.ax-brandMeta {
  display: grid;
  gap: 8px;
  align-content: center;
}
.ax-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ax-rating .ax-score {
  flex: 0 0 auto;
}
.ax-rating .ax-meter {
  flex: 1 1 180px;
  min-width: 160px;
}
.ax-rating .ax-line {
  flex-basis: 100%;
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.9;
}
.ax-score {
  font-weight: 800;
  color: var(--ax-success);
  font-size: 14px;
}
.ax-line {
  color: var(--ax-text-dim);
  font-size: 13px;
  margin: 0;
}

/* Meter */
.ax-meter {
  height: 10px;
  border-radius: 999px;
  background: var(--ax-meter-bg);
  border: 1px solid var(--ax-border);
  overflow: hidden;
}
.ax-meter > span {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  background: linear-gradient(90deg, var(--ax-primary), var(--ax-primary-2));
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.25);
}

/* Tags — diamond bullets */
.ax-bulletTags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.ax-bullet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--ax-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ax-text-dim);
  transition: transform 0.16s ease, background 0.16s ease,
    border-color 0.16s ease;
}
.ax-bullet::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: linear-gradient(135deg, var(--ax-primary), var(--ax-primary-2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.35);
}
.ax-bullet:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--ax-border-strong);
}
@supports not (gap: 1rem) {
  .ax-bullet {
    margin: 0 8px 8px 0;
  }
  .ax-bulletTags {
    margin-top: 6px;
  }
}

/* Offer */
.ax-offerWrap {
  margin: 2px 0;
}
.ax-offer {
  font-size: 13px;
  color: var(--ax-text);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--ax-border);
  padding: 8px 10px;
  border-radius: 12px;
}

/* CTA + payments */
.ax-cta {
  display: grid;
  gap: 8px;
  justify-items: center;
}
.ax-button {
  appearance: none;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  padding: 10px 16px;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #0b0d10;
  background: linear-gradient(90deg, var(--ax-primary), var(--ax-primary-2));
  box-shadow: 0 6px 16px rgba(96, 165, 250, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  font-size: 14px;
}
.ax-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(96, 165, 250, 0.32);
}
.ax-payments {
  display: flex;
  gap: 6px;
  opacity: 0.95;
}
.ax-payments img {
  width: 44px;
  height: 25px;
  object-fit: contain;
  filter: saturate(0.85);
}

/* 8) Sections — timeline instead of 2x2 grid */
.ax-section {
  padding: 18px 0;
}
.ax-sections {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 20px 0;
}
.ax-sections::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(96, 165, 250, 0.35),
    rgba(34, 197, 94, 0.35)
  );
}
.ax-panel {
  position: relative;
  background: var(--ax-panel);
  border: 1px solid var(--ax-border);
  border-radius: 16px;
  padding: 16px 16px 16px 48px;
  box-shadow: var(--ax-shadow-1);
}
.ax-panel::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 22px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  border-radius: 3px;
  background: linear-gradient(135deg, var(--ax-primary), var(--ax-primary-2));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.35);
}
.ax-h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin: 10px 0 8px;
}
.ax-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: grid;
  gap: 8px;
}
.ax-list li {
  background: var(--ax-surface);
  border: 1px solid var(--ax-border);
  border-radius: 12px;
  padding: 10px 12px;
}

/* 9) FAQ */
.ax-faq {
  display: grid;
  gap: 10px;
}
.ax-faq details {
  background: var(--ax-surface);
  border: 1px solid var(--ax-border);
  border-radius: 12px;
  padding: 10px 12px;
}
.ax-faq summary {
  cursor: pointer;
  font-weight: 700;
}
.ax-faq details[open] {
  border-color: var(--ax-border-strong);
}

/* 10) Footer */
.ax-footer {
  border-top: 1px solid var(--ax-border);
  background: #0a0f14;
  padding: 24px 0;
  color: var(--ax-text-dim);
}
.ax-footerGrid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.ax-footerBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.ax-badgeCard {
  position: relative;
  width: 120px;
  height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.06)
  );
  border: 1px solid var(--ax-border-strong);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(2, 6, 12, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.ax-badgeCard:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.09)
  );
  box-shadow: 0 10px 24px rgba(2, 6, 12, 0.45);
}
.ax-badgeCard img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: saturate(0.95);
}
.ax-footerNav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.ax-footerNav a {
  padding: 6px 10px;
  border: 1px solid var(--ax-border);
  border-radius: 10px;
}

/* 11) Responsive */
@media (max-width: 980px) {
  .ax-brand {
    grid-template-columns: 1fr;
  }
  .ax-card {
    grid-template-columns: 1fr;
  }
  .ax-cta {
    grid-column: 1 / -1;
    justify-items: stretch;
  }
  .ax-metrics {
    grid-template-columns: 1fr;
  }
}

/* 12) Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
