/* Ballistat — bleu / violet / blanc (le thème nuit a été retiré ; les jetons vivent dans brand.css).
   Polices système (aucune requête externe, CSP stricte). Animations coupées si prefers-reduced-motion. */
:root {
  --blue: #3b82f6;
  --blue-d: #315d9b;
  --violet: #8b5cf6;
  --violet-d: #594c8f;
  --indigo: #6366f1;
  --bg: #f6f7ff;
  --bg2: #eef3ff;
  --card: #ffffff;
  --card2: #ffffff;
  --fg: #18212b;
  --mut: #596675;
  --line: #d9dfe6;
  --muted: #edf1f5;
  --pri: var(--indigo);
  --on-pri: #fff;
  --ring: #a78bfa;
  --bad: #fb7185;
  --ok: #34d399;
  --gold: #8a5a00;
  --warn-bg: rgba(139, 92, 246, 0.14);
  --warn-fg: #563d0b;
  --h: #3b82f6;
  --d: #5b6499;
  --a: #8b5cf6;
  --grad: linear-gradient(120deg, #2563eb 0%, #5b4fe6 48%, #7c3aed 100%);
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 40px;
  --s7: 64px;
  --r: 16px;
  --tap: 44px;
  --shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 18px 40px -22px rgba(49, 93, 155, 0.35);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  font:
    16px/1.55 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--fg);
  padding-bottom: env(safe-area-inset-bottom);
  min-height: 100vh;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 8px;
  top: 8px;
  background: var(--card);
  padding: var(--s2);
  z-index: 60;
  border-radius: 8px;
}
a {
  color: var(--blue-d);
}
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}
.num,
td.n,
.big {
  font-variant-numeric: tabular-nums;
}
::selection {
  background: rgba(139, 92, 246, 0.45);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.grow {
  flex: 1;
}

/* ---- fond : lueurs profondes + trame de terrain ---- */
.bgfx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(145deg, var(--card), var(--card2));
}
.bgfx i {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.34;
  will-change: transform;
}
.bgfx i:nth-child(1) {
  width: 46vmax;
  height: 46vmax;
  left: -14vmax;
  top: -16vmax;
  background: #2447d8;
  animation: drift1 28s ease-in-out infinite;
}
.bgfx i:nth-child(2) {
  width: 38vmax;
  height: 38vmax;
  right: -14vmax;
  top: 22vh;
  background: #6a35d9;
  animation: drift2 34s ease-in-out infinite;
}
.bgfx i:nth-child(3) {
  width: 30vmax;
  height: 30vmax;
  left: 24vw;
  bottom: -18vmax;
  background: #1a3fb0;
  animation: drift1 40s ease-in-out infinite reverse;
}
.bgfx::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(150, 160, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 160, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 20%, #000, transparent);
  mask-image: radial-gradient(80% 60% at 50% 20%, #000, transparent);
}
@keyframes drift1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(8vmax, 6vmax) scale(1.12);
  }
}
@keyframes drift2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-9vmax, 5vmax) scale(0.92);
  }
}

/* ---- barre supérieure ---- */
#top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2) var(--s4);
  padding-top: calc(var(--s2) + env(safe-area-inset-top));
  flex-wrap: nowrap;
  background: var(--card);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid var(--line);
}
#top .brand {
  display: flex;
  align-items: center;
  margin-right: var(--s3);
  text-decoration: none;
}
#top .brand img {
  height: 34px;
  width: auto;
  display: block;
  transition: transform 0.25s;
}
#top .brand:hover img {
  transform: scale(1.04);
}
#top .topnav {
  display: flex;
  gap: var(--s1);
}
#top .topnav a {
  white-space: nowrap;
}
.bnav {
  display: none;
}
nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 0 var(--s3);
  text-decoration: none;
  border-radius: 99px;
  color: var(--fg);
  font-weight: 500;
  transition:
    background-color 0.2s,
    color 0.2s;
  cursor: pointer;
}
nav a:hover {
  background: var(--muted);
  color: #fff;
}
nav a[aria-current="page"] {
  background: var(--grad);
  color: #fff;
  font-weight: 600;
}
nav svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.langbtn {
  min-height: var(--tap);
  min-width: var(--tap);
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--fg);
  border-radius: 99px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
.langbtn:hover {
  background: var(--muted);
  border-color: var(--violet);
}
#banner:not(:empty) {
  background: var(--warn-bg);
  color: var(--warn-fg);
  padding: var(--s2) var(--s4);
  font-size: 0.875rem;
  text-align: center;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--s4);
  animation: pagein 0.5s ease both;
}
@keyframes pagein {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
main:focus {
  outline: none;
}

/* ---- typographie ---- */
h1 {
  font-size: 1.9rem;
  line-height: 1.15;
  margin: var(--s3) 0 var(--s3);
  letter-spacing: -0.6px;
  font-weight: 800;
}
h2 {
  font-size: 1.35rem;
  margin: var(--s7) 0 var(--s4);
  letter-spacing: -0.3px;
  font-weight: 800;
}
h2.sec-t {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
h2.sec-t::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--violet-d);
  margin-bottom: var(--s2);
}
.mut {
  color: var(--mut);
  font-size: 0.9rem;
}
.big {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- composants ---- */
.card {
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s4);
  margin: var(--s2) 0;
  box-shadow: var(--shadow);
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
a.card:hover,
.card.hov:hover,
.matchcard:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 24px 44px -24px rgba(99, 102, 241, 0.55);
}
.grid {
  display: grid;
  gap: var(--s3);
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.kpis {
  display: grid;
  gap: var(--s3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) {
  .kpis {
    grid-template-columns: repeat(4, 1fr);
  }
}
.kpi {
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s4);
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.kpi:hover {
  transform: translateY(-3px);
}
.kpi .big {
  font-size: 1.7rem;
}
.row {
  display: flex;
  gap: var(--s2);
  align-items: center;
  flex-wrap: wrap;
}
.sp {
  margin-left: auto;
}
button,
.btn {
  font: inherit;
  font-weight: 600;
  min-height: var(--tap);
  padding: 0 var(--s5);
  background: var(--grad);
  background-size: 160% 100%;
  color: #fff;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  box-shadow: 0 10px 26px -12px rgba(99, 102, 241, 0.9);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background-position 0.4s;
}
button:hover:not(:disabled),
.btn:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 16px 32px -14px rgba(124, 58, 237, 0.95);
}
button:active:not(:disabled),
.btn:active {
  transform: translateY(0);
}
button::after,
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.6s;
}
button:hover:not(:disabled)::after,
.btn:hover::after {
  left: 130%;
}
button.sec,
.btn.sec {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid rgba(167, 139, 250, 0.55);
  box-shadow: none;
}
button.sec:hover:not(:disabled),
.btn.sec:hover {
  background: var(--muted);
  box-shadow: none;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
input,
select,
textarea {
  font: inherit;
  min-height: var(--tap);
  padding: 0 var(--s3);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  color: var(--fg);
  max-width: 100%;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
select option {
  background: var(--field);
  color: var(--fg);
}
input::placeholder {
  color: var(--link);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
  outline: none;
}
textarea {
  padding: var(--s2) var(--s3);
}
input[aria-invalid="true"] {
  border-color: var(--bad);
  border-width: 2px;
}
label {
  display: block;
  margin: var(--s3) 0 var(--s1);
  font-weight: 600;
}
label.inline {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: var(--tap);
}
input[type="checkbox"] {
  min-height: 0;
  width: 20px;
  height: 20px;
  accent-color: var(--violet);
}
.field-err {
  color: var(--bad);
  font-size: 0.875rem;
  margin: var(--s1) 0 0;
  display: flex;
  gap: 6px;
  align-items: center;
}
.field-err::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22zM11 9h2v6h-2zm0 8h2v2h-2z'/%3E%3C/svg%3E")
    center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22zM11 9h2v6h-2zm0 8h2v2h-2z'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.msg {
  padding: var(--s3) var(--s4);
  border-radius: var(--r);
  margin: var(--s2) 0;
  border: 1px solid var(--line);
  background: var(--card);
  animation: pagein 0.3s ease both;
}
.msg.err {
  border-color: rgba(251, 113, 133, 0.6);
  background: rgba(251, 113, 133, 0.09);
}
.msg.err h2 {
  margin: 0 0 var(--s1);
  font-size: 1rem;
  color: var(--bad);
}
.msg.ok {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(52, 211, 153, 0.08);
}
.msg.info {
  border-color: rgba(167, 139, 250, 0.35);
  background: var(--warn-bg);
  color: var(--warn-fg);
}
.msg:focus {
  outline: 3px solid var(--ring);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 99px;
  padding: 2px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1.5px solid currentColor;
  background: transparent;
}
.pill.won,
.won {
  color: var(--ok);
}
.pill.lost,
.lost,
.err {
  color: var(--bad);
}
.pill.pending,
.pending {
  color: var(--mut);
}
.demo {
  background: var(--violet);
  color: #fff;
  border-radius: 99px;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.real {
  background: rgba(52, 211, 153, 0.14);
  color: var(--ok);
  border-radius: 99px;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---- barres de probabilité ---- */
.bar {
  display: flex;
  height: 12px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--muted);
  margin: var(--s1) 0;
}
.bar > span {
  display: block;
  height: 100%;
  transform-origin: left;
  animation: grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.b-h {
  background: linear-gradient(90deg, #2563eb, #4f7df3);
}
.b-d {
  background: #5b6499;
}
.b-a {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}
.conf-legend {
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  font-size: 0.8125rem;
}
.legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 3px;
  vertical-align: -1px;
}
.legend .h::before {
  background: var(--h);
}
.legend .d::before {
  background: var(--d);
}
.legend .a::before {
  background: var(--a);
}

/* ---- tableaux ---- */
.scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
}
th,
td {
  text-align: left;
  padding: var(--s2);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-weight: 600;
  color: var(--mut);
  white-space: nowrap;
}
tbody tr {
  transition: background-color 0.15s;
}
tbody tr:hover {
  background: var(--muted);
}
.legs {
  list-style: none;
  margin: var(--s2) 0;
  padding: 0;
}
.legs li {
  padding: var(--s2) 0;
  border-bottom: 1px dashed var(--line);
}
svg.chart {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
}
svg.chart text {
  fill: var(--mut);
  font-size: 10px;
  font-family: var(--mono);
}
svg.chart .axis {
  stroke: var(--line);
}
svg.chart .ref {
  stroke: var(--mut);
  stroke-dasharray: 4 3;
}
svg.chart circle {
  fill: var(--violet);
  fill-opacity: 0.85;
  stroke: var(--bg);
  animation: pop 0.6s both;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes pop {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ---- entrée en scène (accueil et pages) ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .rise {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .js .rise.r1 {
    animation-delay: 0.08s;
  }
  .js .rise.r2 {
    animation-delay: 0.18s;
  }
  .js .rise.r3 {
    animation-delay: 0.3s;
  }
  .js .rise.r4 {
    animation-delay: 0.42s;
  }
  .js .rise.r5 {
    animation-delay: 0.56s;
  }
  .js .rise.r6 {
    animation-delay: 0.7s;
  }
  .js .rv {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 0.8s ease,
      transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .js .rv.in {
    opacity: 1;
    transform: none;
  }
  .js .rv.d1 {
    transition-delay: 0.08s;
  }
  .js .rv.d2 {
    transition-delay: 0.16s;
  }
  .js .rv.d3 {
    transition-delay: 0.24s;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- accueil ---- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: var(--s7) var(--s5) var(--s6);
  margin: var(--s2) 0 var(--s5);
  border: 1px solid var(--line);
  background:
    radial-gradient(
      90% 120% at 85% 0%,
      rgba(99, 70, 230, 0.55),
      transparent 60%
    ),
    radial-gradient(
      80% 100% at 0% 100%,
      rgba(37, 99, 235, 0.45),
      transparent 60%
    ),
    linear-gradient(180deg, #0e1445, #0a0f33);
}
.hero::before {
  content: "";
  position: absolute;
  right: -8%;
  top: 50%;
  width: 520px;
  height: 520px;
  max-width: 80vw;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 2px solid rgba(160, 175, 255, 0.14);
  background:
    radial-gradient(
      circle,
      transparent 40%,
      rgba(160, 175, 255, 0.1) 41%,
      transparent 42%
    ),
    linear-gradient(
      90deg,
      transparent 49.7%,
      rgba(160, 175, 255, 0.14) 50%,
      transparent 50.3%
    );
  animation: spinslow 60s linear infinite;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 60%
  );
  background-size: 250% 100%;
  animation: sheen 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes spinslow {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}
@keyframes sheen {
  0%,
  100% {
    background-position: 120% 0;
  }
  50% {
    background-position: -20% 0;
  }
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  margin: 0 0 var(--s3);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -1.6px;
  max-width: 16ch;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-image: linear-gradient(120deg, #60a5fa, #a78bfa);
}
.hero p.lead {
  max-width: 52ch;
  font-size: 1.1rem;
  color: var(--mut);
  margin: 0 0 var(--s5);
}
.hero .btn.sec {
  border-color: rgba(255, 255, 255, 0.4);
}
.quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
  margin-top: var(--s6);
  max-width: 620px;
}
.qtile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--s4);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--fg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    transform 0.25s,
    background-color 0.25s,
    border-color 0.25s;
}
.qtile:hover {
  transform: translateY(-4px);
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(167, 139, 250, 0.55);
}
.qtile svg {
  width: 26px;
  height: 26px;
  color: var(--violet-d);
  margin-bottom: var(--s2);
}
.qtile b {
  font-size: 1.05rem;
}
.qtile span {
  color: var(--mut);
  font-size: 0.85rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
  margin: var(--s5) 0 0;
  max-width: 620px;
}
.stat {
  padding: var(--s2) 0;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.stat span {
  color: var(--mut);
  font-size: 0.82rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s4);
}
.chip {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 0.9rem;
}
.chip b {
  font-size: 1.1rem;
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
}
.sample {
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 20px;
  padding: var(--s4);
  margin-top: var(--s5);
  max-width: 520px;
  box-shadow: 0 30px 50px -30px #000;
}
.steps {
  display: grid;
  gap: var(--s3);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: s;
  padding: 0;
  list-style: none;
}
.steps li {
  counter-increment: s;
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s4);
  box-shadow: var(--shadow);
  position: relative;
}
.steps li::before {
  content: "0" counter(s);
  display: block;
  font: 800 1.6rem var(--mono);
  color: var(--violet-d);
  margin-bottom: var(--s2);
  opacity: 0.9;
}
.steps li strong {
  display: block;
  margin-bottom: var(--s1);
}
.dots {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  max-width: 360px;
  margin: var(--s3) 0;
}
.dots i {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--grad);
  animation: pop 0.5s both;
}
.dots i.off {
  background: transparent;
  border: 2px solid rgba(167, 139, 250, 0.4);
}
.tiles {
  display: grid;
  gap: var(--s3);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.matchcard {
  display: block;
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s4);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}
.mrow {
  display: flex;
  gap: var(--s2);
  align-items: center;
  flex-wrap: wrap;
}
.score {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--muted);
  border-radius: 8px;
  padding: 0 8px;
}
.rate {
  height: 8px;
  border-radius: 5px;
  background: var(--muted);
  overflow: hidden;
  margin-top: var(--s1);
}
.rate > span {
  display: block;
  height: 100%;
  background: var(--grad);
  border-radius: 5px;
  transform-origin: left;
  animation: grow 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.plans {
  display: grid;
  gap: var(--s3);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: stretch;
}
.plan {
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: var(--s5) var(--s4);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.plan:hover {
  transform: translateY(-5px);
}
.plan.best {
  border-color: rgba(167, 139, 250, 0.7);
  box-shadow: 0 30px 60px -30px rgba(124, 58, 237, 0.8);
  position: relative;
}
.plan.best::before {
  content: attr(data-badge);
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 99px;
  white-space: nowrap;
}
.plan ul {
  padding-left: 1.1rem;
  margin: var(--s3) 0;
  flex: 1;
}
.plan li {
  margin: 4px 0;
}
.plan .price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.faq details {
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0 var(--s4);
  margin: var(--s2) 0;
}
.faq summary {
  cursor: pointer;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.4rem;
  color: var(--violet-d);
  transition: transform 0.25s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > p {
  margin: 0 0 var(--s3);
}
.yn {
  display: grid;
  gap: var(--s3);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.yn ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.yn li {
  padding: 6px 0 6px 28px;
  position: relative;
}
.yn .yes li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--ok);
  font-weight: 800;
}
.yn .no li::before {
  content: "✕";
  position: absolute;
  left: 4px;
  color: var(--bad);
  font-weight: 800;
}
.cta {
  text-align: center;
  margin: var(--s7) 0 var(--s5);
  padding: var(--s7) var(--s4);
  border-radius: 28px;
  border: 1px solid var(--line);
  color: var(--fg);
  background:
    radial-gradient(
      70% 120% at 50% 0%,
      rgba(124, 58, 237, 0.55),
      transparent 70%
    ),
    linear-gradient(180deg, #101650, #0a0f33);
}
.cta h2 {
  margin: 0 0 var(--s4);
  color: var(--fg);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}
.cta h2::after {
  display: none;
}

/* ---- chargement ---- */
.skel {
  display: grid;
  gap: var(--s2);
}
.skel i {
  display: block;
  height: 72px;
  border-radius: var(--r);
  background: linear-gradient(90deg, var(--card), var(--card2), var(--card));
  background-size: 200% 100%;
  animation: sh 1.4s linear infinite;
}
@keyframes sh {
  to {
    background-position: -200% 0;
  }
}

/* ---- coque : barre latérale, menus ---- */
#layout {
  display: block;
}
#side {
  display: none;
}
body.has-side #side {
  display: block;
}
.search {
  display: none;
  align-items: center;
  gap: var(--s2);
  flex: 1 1 280px;
  max-width: 420px;
  min-height: var(--tap);
  padding: 0 var(--s3);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 99px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.search:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}
.search svg {
  width: 18px;
  height: 18px;
  color: var(--mut);
  flex: none;
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--fg);
  width: 100%;
  min-height: 40px;
  padding: 0;
  box-shadow: none;
}
.iconbtn,
.burger,
.userbtn {
  position: relative;
  min-height: var(--tap);
  min-width: var(--tap);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  box-shadow: none;
  transition:
    background-color 0.2s,
    transform 0.2s;
}
.iconbtn:hover,
.burger:hover,
.userbtn:hover {
  background: var(--muted);
  transform: translateY(-1px);
}
.iconbtn svg,
.burger svg {
  width: 20px;
  height: 20px;
}
.burger {
  display: inline-flex;
}
.bell-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--violet);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.bell-dot[hidden] {
  display: none;
}
.userbtn {
  gap: var(--s2);
  padding: 0 var(--s3) 0 6px;
  text-align: left;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.uname {
  display: none;
  flex-direction: column;
  line-height: 1.15;
  font-size: 0.85rem;
}
.uname small {
  color: var(--ok);
  font-weight: 600;
}
.dropwrap {
  position: relative;
}
.drop {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 230px;
  max-width: min(92vw, 340px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px -16px #000;
  padding: var(--s2);
  z-index: 70;
}
.drop.open {
  display: block;
  animation: pagein 0.2s ease both;
}
.drop a,
.drop .menuitem {
  display: flex;
  width: 100%;
  min-height: var(--tap);
  align-items: center;
  padding: 0 var(--s3);
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
  box-shadow: none;
  justify-content: flex-start;
}
.drop a:hover,
.drop .menuitem:hover {
  background: var(--muted);
  transform: none;
  box-shadow: none;
}
.drop .danger {
  color: var(--bad);
  font-weight: 600;
}
.drop hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s2) 0;
}
.drop-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s2) var(--s3);
}
.linkbtn {
  background: none;
  border: 0;
  color: var(--blue-d);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  min-height: var(--tap);
  text-decoration: underline;
  box-shadow: none;
  padding: 0 var(--s2);
}
.linkbtn:hover {
  background: none;
  transform: none;
  box-shadow: none;
}
.notifs {
  max-height: 320px;
  overflow: auto;
}
.notif {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 2px;
  padding: var(--s2) var(--s3) !important;
  height: auto;
}
.notif.unread {
  background: var(--muted);
}
.pad {
  padding: var(--s3);
}
#side {
  background: var(--chrome);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: var(--s3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
#side nav {
  display: block;
}
#side .sgroup {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line);
}
#side .sgroup:last-of-type {
  border-bottom: 0;
}
#side .sgroup small {
  color: var(--mut);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--s2) var(--s3) 2px;
  font-weight: 700;
}
#side nav a {
  border-radius: 12px;
  min-height: 42px;
  padding: 0 var(--s3);
  font-size: 0.95rem;
}
#side nav a[aria-current="page"] {
  background: rgba(139, 92, 246, 0.2);
  color: #fff;
}
#side nav a span {
  flex: 1;
}
.badge {
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 99px;
  padding: 1px 8px;
  line-height: 1.6;
}
.badge.ai {
  background: var(--grad);
  color: #fff;
}
.badge.live {
  background: rgba(251, 113, 133, 0.16);
  color: var(--bad);
}
.badge.live:empty {
  display: none;
}
.upsell {
  margin-top: var(--s3);
  padding: var(--s4);
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.22),
    rgba(124, 58, 237, 0.28)
  );
  border: 1px solid var(--line);
}
.upsell p {
  margin: var(--s2) 0;
  font-size: 0.85rem;
  color: var(--mut);
}
.upsell .btn {
  width: 100%;
  justify-content: center;
}
@media (min-width: 960px) {
  body.has-side #layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: var(--s4);
    max-width: 1480px;
    margin: 0 auto;
    padding: var(--s3) var(--s4) 0;
  }
  body.has-side #side {
    position: sticky;
    top: 76px;
    align-self: start;
    max-height: calc(100vh - 92px);
    overflow: auto;
  }
  body.has-side main {
    margin: 0;
    max-width: none;
  }
  .burger {
    display: none;
  }
  .search {
    display: flex;
  }
  .uname {
    display: flex;
  }
}
@media (max-width: 959px) {
  body.has-side #side {
    background: var(--card);
    position: fixed;
    left: var(--s2);
    top: 72px;
    bottom: 72px;
    width: min(300px, 86vw);
    overflow: auto;
    z-index: 48;
    transform: translateX(-110%);
    transition: transform 0.25s ease;
    box-shadow: 0 24px 60px -20px #000;
    display: block;
  }
  body.has-side.side-open #side {
    transform: none;
  }
}
@media (max-width: 1180px) {
  #top .topnav a {
    padding: 0 var(--s2);
    font-size: 0.9rem;
  }
}

/* ---- matchs : sports, jours, onglets, listes ---- */
.sports,
.days,
.tabs {
  display: flex;
  gap: var(--s2);
  overflow-x: auto;
  padding: var(--s1) 0 var(--s2);
  scrollbar-width: thin;
}
.sportchip,
.daychip,
.tab {
  flex: none;
  min-height: var(--tap);
  min-width: var(--tap);
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0 var(--s4);
  box-shadow: none;
  transition:
    background-color 0.2s,
    color 0.2s,
    transform 0.2s;
}
.sportchip.on,
.daychip.on {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px -12px rgba(124, 58, 237, 0.9);
}
.sportchip:disabled {
  opacity: 1;
  color: var(--mut);
  background: var(--muted);
  cursor: not-allowed;
}
.daychip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  padding: var(--s1) var(--s4);
  border-radius: 16px;
}
.daychip small {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  opacity: 0.8;
}
.daychip b {
  font-size: 0.95rem;
}
.daychip.all {
  border-radius: 16px;
}
.daychip:hover:not(.on),
.tab:hover:not(.on),
.sportchip:hover:not(.on) {
  background: var(--muted);
  transform: translateY(-1px);
  box-shadow: none;
}
.tabs {
  border-bottom: 1px solid var(--line);
  gap: var(--s4);
}
.tab {
  border: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 3px solid transparent;
  padding: 0 var(--s1);
  color: var(--mut);
}
.tab.on {
  color: #fff;
  border-bottom-color: var(--violet);
}
.tab::after,
.daychip::after,
.sportchip::after {
  display: none !important;
}
.filters select,
.filters input {
  min-height: var(--tap);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s4);
  justify-content: flex-end;
  font-size: 0.82rem;
  color: var(--mut);
  margin: var(--s2) 0;
}
.conf-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin: 0;
  flex: none;
}
.dot.strong {
  background: var(--violet);
}
.dot.mid {
  background: var(--blue);
}
.conf-legend .lgi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lg {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin: var(--s3) 0;
  overflow: hidden;
}
.lg-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s3) var(--s4);
  background: linear-gradient(
    90deg,
    rgba(37, 99, 235, 0.18),
    rgba(124, 58, 237, 0.18)
  );
  border-bottom: 1px solid var(--line);
}
.lg-t {
  width: 100%;
  border-collapse: collapse;
  min-width: 430px;
}
.lg-t th {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mut);
  text-align: left;
  padding: var(--s2) var(--s3);
  font-weight: 700;
}
.lg-t td {
  padding: var(--s2) var(--s3);
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.lg-t tbody tr:hover {
  background: rgba(139, 92, 246, 0.1);
}
.lg-t .when {
  white-space: nowrap;
  font-size: 0.85rem;
}
.lg-t .teams a {
  text-decoration: none;
  color: var(--fg);
}
.lg-t .teams a:hover strong {
  color: var(--violet-d);
}
.vs {
  color: var(--mut);
  font-weight: 400;
  font-size: 0.85rem;
}
.pick {
  white-space: nowrap;
}
.pick strong {
  display: block;
  font-size: 0.95rem;
}
.pick .num {
  font-size: 0.8rem;
  font-weight: 700;
}
.conf-strong strong,
.conf-strong .num {
  color: var(--violet-d);
}
.conf-mid .num {
  color: var(--blue-d);
}
.conf-low .num {
  color: var(--mut);
}
.lock {
  display: inline-grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  color: var(--mut);
  border-radius: 50%;
}
.lock:hover {
  background: var(--muted);
  color: var(--violet-d);
}
.lock svg {
  width: 18px;
  height: 18px;
}
.star {
  width: var(--tap);
  height: var(--tap);
  min-height: 0;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--mut);
  box-shadow: none;
  transition:
    transform 0.2s,
    color 0.2s,
    background-color 0.2s;
}
.star svg {
  width: 20px;
  height: 20px;
}
.star:hover {
  background: var(--muted);
  transform: scale(1.1);
  box-shadow: none;
}
.star[aria-pressed="true"] {
  color: var(--gold);
}
.star[aria-pressed="true"] svg {
  fill: currentColor;
}
.livepill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251, 113, 133, 0.16);
  color: var(--bad);
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 6px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
}
.livepill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bad);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}
.empty {
  text-align: center;
  padding: var(--s6) var(--s4);
  border: 1.5px dashed var(--line);
  border-radius: 20px;
  background: var(--card);
  margin: var(--s4) 0;
}
.lgcard .chips {
  margin: var(--s2) 0;
}
.favcard {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  text-decoration: none;
  color: var(--fg);
}
.refcode {
  margin: var(--s4) 0;
  text-align: center;
}
.refcode code {
  font: 800 2rem var(--mono);
  letter-spacing: 0.2em;
  padding: var(--s3) var(--s5);
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  display: inline-block;
}
.gbtn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  width: 100%;
  justify-content: center;
}
.gbtn:disabled {
  opacity: 1;
  color: var(--mut);
}
.pager {
  display: flex;
  gap: var(--s3);
  align-items: center;
  justify-content: center;
  margin: var(--s5) 0;
}
.crest {
  display: inline-block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  margin: 0 0.35em 0 0;
}
.crest.ini {
  border-radius: 50%;
  background: var(--card2);
  color: var(--fg);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  border: 1px solid var(--line);
}
.lg-t .teams a strong + .crest {
  margin-left: 0.15em;
}

/* ---- page d'un match : bandeau façon application de pronostics ---- */
.mhero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: var(--s5) var(--s4) var(--s4);
  margin: var(--s2) 0 var(--s4);
  border: 1px solid var(--line);
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(79, 70, 229, 0.5), transparent 70%),
    linear-gradient(180deg, #0f1650, #090e30);
}
.mhero::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 70%;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.035) 0 60px,
    transparent 60px 120px
  );
  transform: perspective(500px) rotateX(58deg);
  transform-origin: bottom;
  pointer-events: none;
}
.mhero > * {
  position: relative;
}
.mhero .ctx {
  color: var(--violet-d);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mhero .duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4) 0;
}
.mhero .side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  font-size: 1.05rem;
  font-weight: 700;
}
.mhero .side .crest {
  width: 72px;
  height: 72px;
  line-height: 72px;
  font-size: 1.2rem;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
}
.mhero .vsx {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.mhero .when {
  color: var(--mut);
}
.count {
  display: inline-flex;
  gap: var(--s2);
  margin-top: var(--s3);
}
.count span {
  min-width: 58px;
  padding: var(--s2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.count b {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
}
.count small {
  color: var(--mut);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mainres .bigpick {
  justify-content: space-between;
  align-items: baseline;
  margin-top: var(--s2);
}
.mainres .bp {
  font-size: 1.25rem;
}
.mainres .bigpick .num {
  font-size: 1.5rem;
  color: var(--ok);
}
.pbar {
  height: 8px;
  border-radius: 4px;
  background: var(--muted);
  overflow: hidden;
  flex: 1;
  min-width: 60px;
}
.pbar > span {
  display: block;
  height: 100%;
  border-radius: 4px;
}
.plist {
  margin-top: var(--s3);
  border-top: 1px solid var(--line);
  padding-top: var(--s3);
  display: grid;
  gap: var(--s2);
}
.plist .small {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.prow {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) 2fr auto auto;
  align-items: center;
  gap: var(--s3);
}
.prow.top {
  font-weight: 700;
}
.lockpanel {
  text-align: center;
  padding: var(--s5) var(--s4);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.16), var(--card));
  border-color: rgba(167, 139, 250, 0.4);
}
.lockpanel .lockicon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--card2);
  border: 1px solid var(--line);
  color: var(--violet-d);
}
.lockpanel .lockicon svg {
  width: 24px;
  height: 24px;
}
.lockchips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  justify-content: center;
  margin: var(--s3) 0 var(--s4);
}
.chip.lk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px dashed var(--line);
  border-radius: 99px;
  padding: 6px 12px;
  color: var(--mut);
  font-size: 0.85rem;
  background: transparent;
}
.chip.lk svg {
  width: 14px;
  height: 14px;
}
.mkt {
  margin: var(--s3) 0;
}
.mkt > strong {
  display: block;
  margin-bottom: var(--s2);
}
.outs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--s2);
}
.out {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--s3) var(--s2);
  border-radius: 12px;
  background: rgba(120, 132, 255, 0.1);
  border: 1px solid var(--line);
  text-align: center;
  transition:
    transform 0.2s,
    border-color 0.2s,
    background-color 0.2s;
}
.out:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.55);
}
.out small {
  color: var(--mut);
  font-size: 0.78rem;
}
.out b {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}
.out .odd {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}
.out.top {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(167, 139, 250, 0.6);
}
.out.ok {
  border-color: rgba(52, 211, 153, 0.7);
}
.out.ko {
  opacity: 0.6;
}
@media (max-width: 560px) {
  .prow {
    grid-template-columns: 1fr auto;
  }
  .prow .pbar {
    grid-column: 1/-1;
    order: 3;
  }
}

/* ---- marché des cotes ---- */
.mkview {
  margin: var(--s4) 0;
}
.out .odd {
  color: var(--gold);
}
.out .up {
  color: var(--ok);
  font-weight: 700;
}
.out .down {
  color: var(--bad);
  font-weight: 700;
}
.sparkrow {
  margin-top: var(--s3);
}
.spark {
  width: 100%;
  height: 56px;
  display: block;
  background: rgba(120, 132, 255, 0.06);
  border-radius: 10px;
}
.spark path {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
.spark .s-H,
.spark .s-O,
.spark .s-Y,
.spark .s-1X {
  stroke: #3b82f6;
}
.spark .s-D,
.spark .s-12 {
  stroke: #8b94c9;
}
.spark .s-A,
.spark .s-U,
.spark .s-N,
.spark .s-X2 {
  stroke: #a78bfa;
}
.sparkrow .legend {
  justify-content: flex-start;
  margin: var(--s1) 0 0;
}
.lg-H::before,
.lg-O::before,
.lg-Y::before {
  background: #3b82f6 !important;
}
.lg-D::before {
  background: #8b94c9 !important;
}
.lg-A::before,
.lg-U::before,
.lg-N::before {
  background: #a78bfa !important;
}
.sparkrow .legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 3px;
  vertical-align: -1px;
}
td.bestodd {
  color: var(--gold);
  font-weight: 800;
}
.mkt details {
  margin-top: var(--s3);
}
.mkt summary {
  cursor: pointer;
  font-weight: 600;
  min-height: var(--tap);
  display: flex;
  align-items: center;
}

/* ---- coupons vendus (ticket) ---- */
.tickets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s3);
}
.ticket {
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: var(--s4);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: 58%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
}
.ticket::before {
  left: -9px;
}
.ticket::after {
  right: -9px;
}
.tk-head {
  display: flex;
  gap: var(--s2);
  align-items: center;
  flex-wrap: wrap;
}
.tk-head strong {
  flex: 1;
}
.tk-price {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--gold);
}
.tk-sp {
  margin-right: 6px;
}
.ticket .lk {
  font-style: italic;
}
.tk-foot {
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  flex-wrap: wrap;
  border-top: 2px dashed var(--line);
  padding-top: var(--s2);
}

/* ---- pied de page ---- */
#foot {
  margin-top: var(--s7);
  border-top: 1px solid var(--line);
  background: linear-gradient(145deg, var(--card), var(--card2));
  padding: var(--s6) var(--s4) 96px;
}
.fgrid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: var(--s5) var(--s6);
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
.fcol h3 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
  margin: 0 0 var(--s3);
}
.fcol a {
  display: block;
  padding: 5px 0;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.93rem;
  min-height: 30px;
}
.fcol a:hover {
  color: var(--violet-d);
}
.fbrand img {
  height: 34px;
  margin-bottom: var(--s3);
}
.fbrand p {
  color: var(--mut);
  font-size: 0.9rem;
  max-width: 34ch;
  margin: 0 0 var(--s3);
}
.fbottom {
  max-width: 1120px;
  margin: var(--s6) auto 0;
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  justify-content: space-between;
  color: var(--mut);
  font-size: 0.8rem;
}
.fbottom p {
  margin: 0;
  max-width: 78ch;
}
@media (max-width: 760px) {
  .fgrid {
    grid-template-columns: 1fr 1fr;
  }
  .fbrand {
    grid-column: 1/-1;
  }
}

/* ---- économie de données ---- */
.saver #fx {
  display: none;
}
.saver *,
.saver *::before,
.saver *::after {
  animation: none !important;
  transition: none !important;
  box-shadow: none !important;
}
.saver .js .rv,
.saver .rv,
.saver .rise {
  opacity: 1 !important;
  transform: none !important;
}
.saver .hero,
.saver .cta {
  background: var(--blue-50) !important;
}

@media (max-width: 719px) {
  #top .topnav {
    display: none;
  }
  #top {
    padding: var(--s2) var(--s3);
    gap: var(--s2);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--chrome);
  }
  #top .bnav {
    display: grid;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    background: var(--chrome);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  #top .bnav a {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 58px;
    padding: var(--s1);
    border-radius: 0;
    color: var(--mut);
    font-size: 0.72rem;
    text-align: center;
    background: transparent;
  }
  #top .bnav a[aria-current="page"] {
    color: #fff;
    background: rgba(139, 92, 246, 0.18);
  }
  main {
    padding: var(--s3);
  }
  .hero {
    border-radius: 22px;
    padding: var(--s6) var(--s4) var(--s5);
  }
  .search {
    display: none;
  }
  #top > .btn.sec {
    display: none;
  }
  #top > .btn {
    padding: 0 var(--s3);
    font-size: 0.85rem;
    white-space: nowrap;
  }
  #top .brand img {
    height: 30px;
  }
  .lg-t {
    min-width: 0;
  }
  .conf-legend {
    justify-content: flex-start;
  }
  .tabs {
    gap: var(--s3);
  }
  .mhero .side .crest {
    width: 56px;
    height: 56px;
    line-height: 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---- v7 : fonds animés par page (fx.js), image d'accueil, chargement plein écran ---- */
.bgfx {
  background: var(--card);
}
.bgfx i {
  display: none;
}
.bgfx::after {
  display: none;
}
.bgimg {
  position: absolute;
  inset: 0;
  background: none;
  opacity: 0.14;
  filter: blur(5px) saturate(1.3);
  transform: scale(1.06);
  transition: opacity 0.5s;
}
body.app-ready[data-fx="home"] .bgimg {
  background: url(/bg.jpg) center/cover no-repeat;
}
#fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.26s;
}
#fx.off {
  opacity: 0;
}
.bgshade {
  position: absolute;
  inset: 0;
  transition: background 0.5s;
  background: transparent;
}
body[data-fx="home"] .bgimg {
  opacity: 1;
  filter: none;
  transform: none;
}
body[data-fx="home"] .bgshade {
  background:
    linear-gradient(
      180deg,
      rgba(246, 247, 255, 0) 0,
      rgba(246, 247, 255, 0) 45%,
      rgba(246, 247, 255, 0.55) 78%,
      rgba(246, 247, 255, 0.9) 100%
    ),
    rgba(246, 247, 255, calc(var(--sc, 0) * 0.82));
}
body[data-fx="pitch"] .bgfx {
  background: linear-gradient(145deg, var(--card), var(--card2));
}
body[data-fx="radar"] .bgfx {
  background: linear-gradient(145deg, var(--card), var(--card2));
}
body[data-fx="coins"] .bgfx {
  background: linear-gradient(145deg, var(--card), var(--card2));
}
body[data-fx="beams"] .bgfx {
  background: linear-gradient(145deg, var(--card), var(--card2));
}
body[data-fx="chart"] .bgfx {
  background: linear-gradient(145deg, var(--card), var(--card2));
}
body[data-fx="net"] .bgfx {
  background: linear-gradient(145deg, var(--card), var(--card2));
}
body:not([data-fx="home"]) .bgshade {
  background: linear-gradient(
    180deg,
    rgba(246, 247, 255, 0.18),
    rgba(246, 247, 255, 0.42)
  );
}
.card,
.tile,
.qtile {
  background: linear-gradient(145deg, var(--card), var(--card2));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
#top {
  background: var(--chrome);
}
#foot {
  background: var(--chrome);
}
/* accueil : le héros laisse voir l'image */
body[data-fx="home"] .hero {
  background: none;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(48vh - 120px) var(--s2) var(--s6);
  margin: 0 0 var(--s5);
  overflow: visible;
}
body[data-fx="home"] .hero::before {
  content: "";
  display: block;
  position: absolute;
  left: -50vw;
  right: -50vw;
  top: calc(34vh - 120px);
  bottom: -60px;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(246, 247, 255, 0),
    rgba(246, 247, 255, 0.72) 42%,
    rgba(246, 247, 255, 0.55)
  );
  border: 0;
  border-radius: 0;
  transform: none;
  animation: none;
  width: auto;
  height: auto;
  max-width: none;
  pointer-events: none;
}
body[data-fx="home"] .hero::after {
  display: none;
}
body[data-fx="home"] .hero h1 {
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.75);
}
body[data-fx="home"] .hero p.lead {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
  color: var(--mut);
}
body[data-fx="home"] .hero .eyebrow {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Chargement unique : halo bleu pour le boot initial et toutes les navigations. */
.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  background: var(--card);
  pointer-events: none;
}
.loading-orbit {
  box-sizing: border-box;
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  border: 3px solid rgba(96, 165, 250, 0.24);
  border-top-color: #60a5fa;
  border-right-color: #8b5cf6;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.28), inset 0 0 14px rgba(59, 130, 246, 0.12);
  animation: loading-orbit-spin 0.85s linear infinite;
}
.loading-orbit::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(147, 197, 253, 0.2);
  border-left-color: rgba(147, 197, 253, 0.72);
  border-radius: 50%;
  animation: loading-orbit-spin 1.5s linear infinite reverse;
}
.loading-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes loading-orbit-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .loading-orbit,
  .loading-orbit::after { animation: none; }
}
@media (max-width: 760px) {
  body[data-fx="home"] .hero {
    padding-top: calc(40vh - 100px);
  }
}
body {
  background: transparent;
}
body[data-fx="home"] .hero h1 em {
  background-image: linear-gradient(120deg, #ffe3a1, #ffb347 60%, #ff8a3c);
}
body[data-fx="home"] .hero .eyebrow {
  color: var(--mut);
}

/* ---- v7 : coupons en tickets (images) ---- */
.tickets {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--s4);
  align-items: start;
}
.tkcard {
  position: relative;
  padding: 10px;
  border-radius: 26px;
  background: linear-gradient(145deg, var(--card), var(--card2));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.8);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.tkcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px -22px rgba(99, 102, 241, 0.55);
}
.tkimg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: var(--card);
}
.tkmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 4px 0;
}
.tkmeta .chip {
  display: inline-block;
  font-size: 0.76rem;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(120, 132, 255, 0.14);
  border: 1px solid var(--line);
  color: var(--mut);
}
.tkfoot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  padding: 12px 4px 6px;
}
.paybtn {
  flex: 1 1 auto;
  min-width: 180px;
  min-height: 50px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 99px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(120deg, var(--blue-600), var(--violet-500));
  box-shadow: 0 10px 26px -10px rgba(118, 82, 230, 0.7);
  animation: paypulse 2.4s ease-in-out infinite;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.paybtn:hover {
  filter: brightness(1.08);
}
@keyframes paypulse {
  0%,
  100% {
    box-shadow: 0 10px 26px -10px rgba(118, 82, 230, 0.55);
  }
  50% {
    box-shadow: 0 10px 34px -4px rgba(118, 82, 230, 0.85);
  }
}
.tkpay {
  padding: var(--s2) 4px var(--s2);
}
.tkpay[hidden] {
  display: none;
}
.small {
  font-size: 0.8rem;
}
@media (prefers-reduced-motion: reduce) {
  .paybtn {
    animation: none;
  }
}

/* ---- adaptation écrans : téléphone, tablette, ordinateur ---- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
}
@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}
img,
video,
canvas {
  max-width: 100%;
}
#top .brand {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
}
#top .brand img {
  max-width: none;
  width: auto;
  height: 34px;
}
#top .grow {
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 719px) {
  #top {
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }
  #top .iconbtn,
  #top .burger,
  #top .langbtn,
  #top .userbtn {
    min-width: 40px;
    min-height: 40px;
  }
  #top .userbtn {
    padding: 0 3px;
  }
  #top .avatar {
    width: 32px;
    height: 32px;
  }
  #top .langbtn {
    padding: 0 10px;
  }
  #top .brand {
    margin-right: 0;
  }
  #top .brand img {
    height: 28px;
  }
  h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
    overflow-wrap: anywhere;
  }
  main {
    padding-left: var(--s3);
    padding-right: var(--s3);
  }
  .card,
  .tile,
  .qtile,
  .msg {
    max-width: 100%;
  }
  table {
    font-size: 0.85rem;
  }
  .tickets {
    grid-template-columns: 1fr;
  }
  .row {
    flex-wrap: wrap;
  }
  .row > input,
  .row > select,
  .row > button {
    max-width: 100%;
  }
  .drop {
    right: -8px;
  }
}
@media (max-width: 359px) {
  #top .brand img {
    height: 24px;
  }
  #top .iconbtn,
  #top .burger,
  #top .langbtn,
  #top .userbtn {
    min-width: 36px;
    min-height: 36px;
  }
  #top .avatar {
    width: 28px;
    height: 28px;
  }
  #top .langbtn {
    padding: 0 8px;
    font-size: 0.8rem;
  }
  main {
    padding-left: var(--s2);
    padding-right: var(--s2);
  }
}
@media (min-width: 720px) and (max-width: 959px) {
  .tickets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  main {
    padding-left: var(--s4);
    padding-right: var(--s4);
  }
}
@media (min-width: 1500px) {
  main {
    max-width: 1280px;
  }
}
@media (hover: none) {
  .iconbtn:hover,
  .burger:hover,
  .userbtn:hover {
    transform: none;
  }
}
/* le contenu décoratif qui dépasse (fond du héros) est rogné : sinon les navigateurs mobiles dézooment la page */
#layout,
main,
#foot {
  overflow-x: hidden;
}
@supports (overflow: clip) {
  #layout,
  main,
  #foot {
    overflow-x: clip;
  }
}
@media (max-width: 359px) {
  #top .iconbtn {
    min-width: 34px;
    padding: 0 4px;
  }
  #top .burger {
    min-width: 34px;
    padding: 0 4px;
  }
  #top .langbtn {
    min-width: 34px;
    padding: 0 6px;
  }
  #top {
    gap: 4px;
  }
  #top .brand img {
    height: 22px;
  }
}

/* Le fond animé reste visible derrière les surfaces translucides de l'application. */
.conf-legend { flex-wrap: wrap; align-items: center; justify-content: flex-start; }
@media (max-width: 719px) {
  .lg { border-radius: 12px; }
  .lg-t, .lg-t tbody { display: block; width: 100%; }
  .lg-t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lg-t tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; padding: 12px; border-bottom: 1px solid var(--line); }
  .lg-t tbody tr:last-child { border-bottom: 0; }
  .lg-t td { min-width: 0; padding: 2px 0; border: 0; white-space: normal; }
  .lg-t td.when { grid-column: 1 / -1; color: var(--mut); font-size: .82rem; }
  .lg-t td.teams { grid-column: 1 / -1; }
  .lg-t td.teams a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
  .lg-t td.pick { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
  .lg-t td.pick::before { content: attr(data-label); color: var(--mut); font-size: .7rem; line-height: 1.3; }
  .lg-t td.fav { grid-column: 1 / -1; justify-self: end; }
}
@media (max-width: 719px) {
  .lg-t tbody tr { position: relative; padding: 10px 48px 10px 10px; gap: 6px 10px; }
  .lg-t td.fav { position: absolute; top: 8px; right: 8px; padding: 0; }
}


/* ---- Ballistat production UI: surfaces, navigation and fixture cards ---- */
:root {
  --blue: #3b82f6;
  --blue-d: #93b4ff;
  --violet: #8b5cf6;
  --violet-d: #c4b5fd;
  --indigo: #6366f1;
  --bg: #060919;
  --bg2: #0b1030;
  --card: rgba(15, 21, 56, 0.74);
  --card2: rgba(20, 27, 69, 0.7);
  --fg: #eef0ff;
  --mut: #b0b8e6;
  --line: rgba(148, 160, 255, 0.2);
  --muted: rgba(120, 132, 255, 0.1);
  --ring: #a78bfa;
  --grad: linear-gradient(120deg, #2563eb, #5b4fe6 48%, #7c3aed);
  --r: 14px;
  --shadow: 0 1px 0 rgba(255,255,255,.035) inset, 0 14px 34px -24px rgba(0,0,0,.76);
}
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { min-height: 100vh; min-height: 100svh; color: var(--fg); background: transparent; overflow-y: auto; }
#layout, main, #foot { overflow-x: clip; overflow-y: visible; }
#top {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 64px;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px -22px #000;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
#banner:empty { display: none; }
main {
  width: 100%;
  max-width: 1280px;
  min-width: 0;
  min-height: calc(100svh - 150px);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px);
  overflow-y: visible;
  animation: none;
}
body.has-side main { max-width: none; }
#side {
  background: var(--chrome);
  border-color: rgba(186, 198, 216, .12);
  border-radius: 14px;
  box-shadow: none;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
#side nav a { border-radius: 9px; color: #c1cad8; }
#side nav a[aria-current="page"] { color: #f3f5f8; background: rgba(99, 102, 241, .18); box-shadow: inset 2px 0 #8b7cf6; }
#side .sgroup { border-color: rgba(186, 198, 216, .1); }
#side .sgroup small { letter-spacing: .08em; }
.search { background: var(--card); border-color: rgba(186, 198, 216, .16); border-radius: 11px; }
.drop { background: var(--card); border-color: var(--line); }
h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 3.3vw, 2.55rem); line-height: 1.12; letter-spacing: -.035em; }
h2 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.02em; }
h2.sec-t { margin: 38px 0 16px; }
.eyebrow { color: var(--mut); font-size: .72rem; letter-spacing: .11em; }
.mut { color: var(--mut); }
.card, .kpi, .plan, .ticket, .lg, .faq details, .mkt, .fixture-item, .home-feature, .home-callout, .sport-link {
  background: var(--card);
  border: 1px solid rgba(148, 160, 255, .18);
  border-radius: 14px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.card, .plan, .ticket { padding: clamp(14px, 2vw, 20px); }
.card:hover, .plan:hover, .ticket:hover, .matchcard:hover, .sport-link:hover {
  border-color: rgba(186, 198, 216, .3);
  box-shadow: 0 16px 38px -25px rgba(0,0,0,.8);
  transform: translateY(-1px);
}
button, .btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(186, 198, 216, .22);
  border-radius: 10px;
  background: var(--grad);
  background-image: none;
  color: #fff;
  box-shadow: none;
  font-weight: 650;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
button:hover:not(:disabled), .btn:hover { background: linear-gradient(120deg, #3478ed, #6659ee 48%, #8751ee); box-shadow: none; transform: translateY(-1px); }
button.sec, .btn.sec, button.linkbtn {
  background: var(--card);
  color: var(--fg);
  border-color: rgba(186, 198, 216, .18);
  box-shadow: none;
}
button.sec:hover:not(:disabled), .btn.sec:hover { background: rgba(62, 75, 94, .55); border-color: rgba(186, 198, 216, .32); }
button::after, .btn::after { display: none !important; }
button:disabled { opacity: .48; }
input, select, textarea { border-color: rgba(186, 198, 216, .2); border-radius: 9px; background-color: var(--field); color: var(--fg); }
input:focus, select:focus, textarea:focus { border-color: #94a7c1; box-shadow: 0 0 0 3px rgba(148, 167, 193, .16); }
.js .rv, .js .rv.in { opacity: 1; transform: none; transition: none; }

/* Home */
.hero.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, .94fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  min-height: 340px;
  margin: 8px 0 34px;
  padding: clamp(22px, 4vw, 48px);
  overflow: hidden;
  background: linear-gradient(145deg, var(--card), var(--card2));
  border: 1px solid rgba(186, 198, 216, .17);
  border-radius: 18px;
  box-shadow: 0 24px 54px -44px #000;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.hero.home-hero::before { opacity: .09; animation: none; border-color: rgba(194, 206, 224, .2); }
.hero.home-hero::after { display: none; }
.home-hero-copy, .home-feature { position: relative; z-index: 1; min-width: 0; }
.home-hero .eyebrow { margin-bottom: 14px; color: var(--mut); }
.hero.home-hero h1 { max-width: 14ch; margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.08; text-shadow: none; }
.hero.home-hero h1 em { color: inherit; background: none; }
.hero.home-hero p.lead { max-width: 48ch; margin: 0 0 22px; color: var(--mut); font-size: 1rem; text-shadow: none; }
.home-feature { padding: clamp(15px, 2.3vw, 24px); border-radius: 14px; background: var(--card); border: 1px solid rgba(186, 198, 216, .13); }
.home-feature > .eyebrow { display: block; margin: 0 0 12px; }
.home-feature h2 { margin: 8px 0; font-size: 1.12rem; }
.home-feature > .btn { margin-top: 14px; }
.home-feature .matchcard { box-shadow: none; }
.sport-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sport-link { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px; color: var(--fg); text-decoration: none; transition: border-color .16s, background-color .16s, transform .16s; }
.sport-link > span:nth-child(2) { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.sport-link strong { font-size: .96rem; }
.sport-link small { overflow: hidden; color: var(--mut); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.sport-link-icon { display: grid; width: 38px; height: 38px; flex: none; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--mut); background: rgba(186, 198, 216, .06); }
.sport-link-icon svg { width: 19px; height: 19px; }
.sport-arrow { color: var(--mut); }
.home-callout { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; }
.home-callout h3 { margin: 0 0 4px; font-size: 1rem; }
.home-callout p { margin: 0; max-width: 58ch; }
.home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.home-step { display: flex; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); }
.home-step strong { display: block; margin-bottom: 4px; }
.home-step p { margin: 0; font-size: .88rem; }
.step-index { color: var(--mut); font: 600 .78rem/1.5 var(--mono); }
.section-action { margin: 14px 0 0; }
.section-action a { text-decoration: none; font-weight: 650; }
.home-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.home-cta h2 { margin: 0; font-size: 1.1rem; }

/* Match centre and compact team-first cards */
.sports, .days, .tabs { gap: 8px; scrollbar-color: rgba(186,198,216,.3) transparent; scrollbar-width: thin; }
.sports, .days, .tabs { padding: 5px 1px 10px; }
.sportchip, .daychip, .tab { min-height: 40px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--fg); }
.sportchip.on, .daychip.on, .tab.on { color: #f3f5f8; background: rgba(99, 102, 241, .22); border-color: rgba(167, 139, 250, .42); box-shadow: none; }
.sportchip:hover, .daychip:hover, .tab:hover { background: rgba(99, 102, 241, .15); }
.days .daychip { min-width: 86px; border-radius: 10px; }
.filters { display: grid; grid-template-columns: minmax(120px, .75fr) minmax(150px, 1fr) minmax(180px, 1.3fr) auto; gap: 10px; align-items: end; margin: 14px 0 18px; }
.filters > select, .filters > input, .filters > button { width: 100%; min-width: 0; }
.lg { margin: 16px 0; padding: 16px; }
.lg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.lg-h strong { font-size: .96rem; }
.fixture-list { display: grid; gap: 9px; }
.fixture-item { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(235px, .95fr) auto; align-items: center; gap: 12px 16px; padding: 13px 14px; background: var(--card); border-radius: 12px; box-shadow: none; }
.fixture-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; color: var(--mut); font-size: .78rem; }
.fixture-competition { overflow: hidden; color: var(--mut); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.fixture-duel { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 10px; min-width: 0; color: var(--fg); text-decoration: none; }
.fixture-side { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--fg); }
.fixture-side:last-child { justify-content: flex-end; text-align: right; }
.fixture-side strong { overflow: hidden; font-size: .88rem; font-weight: 650; text-overflow: ellipsis; }
.fixture-vs { color: var(--mut); font: 600 .73rem/1.4 var(--mono); white-space: nowrap; }
.crest { width: 30px; height: 30px; flex: none; object-fit: contain; }
.crest.ini { display: inline-grid; place-items: center; border: 1px solid rgba(186,198,216,.2); border-radius: 50%; background: rgba(186,198,216,.08); color: var(--mut); font-size: .65rem; font-weight: 700; }
.fixture-bottom { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; min-width: 0; }
.fixture-selections { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; min-width: 0; }
.fixture-selection { display: grid; gap: 2px; min-width: 0; }
.fixture-selection > span:first-child, .fixture-pick > span:first-child { color: var(--mut); font-size: .67rem; line-height: 1.3; }
.pick-value { display: block; overflow: hidden; color: var(--fg); font-size: .8rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pick-value.unavailable { color: var(--mut); font-weight: 400; }
.fixture-lock { color: var(--mut); font-size: .75rem; text-decoration: none; white-space: nowrap; }
.fixture-lock:hover { text-decoration: underline; }
.star { width: 38px; min-width: 38px; min-height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--mut); box-shadow: none; }
.star[aria-pressed="true"] { color: var(--blue-700); border-color: rgba(224,202,134,.35); }
.star svg { width: 17px; height: 17px; }
.matchcard.fixture-card { display: block; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; text-decoration: none; box-shadow: none; }
.fixture-card .fixture-meta { margin-bottom: 14px; }
.fixture-card .fixture-duel { margin-bottom: 13px; }
.fixture-card .fixture-side { flex-direction: column; justify-content: center; gap: 6px; text-align: center; }
.fixture-card .fixture-side:last-child { text-align: center; }
.fixture-card .fixture-side strong { max-width: 15ch; }
.fixture-card .crest { width: 38px; height: 38px; }
.fixture-pick { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.fixture-pick > strong { overflow: hidden; font-size: .85rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.fixture-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.match-preview .fixture-duel { margin: 12px 0; }
.empty { padding: 24px; border: 1px dashed rgba(186,198,216,.22); border-radius: 12px; background: var(--card); color: var(--fg); }


@media (min-width: 960px) {
  body.has-side #layout { max-width: 1480px; grid-template-columns: 260px minmax(0,1fr); gap: 24px; padding: 18px 24px 0; }
  body.has-side #side { top: 78px; max-height: calc(100svh - 96px); min-width: 0; scrollbar-width: thin; scrollbar-color: rgba(186,198,216,.16) transparent; }
  body.has-side main { min-width: 0; padding: 24px clamp(20px,2.5vw,38px); }
  #side .sgroup { gap: 1px; margin-bottom: 8px; padding-bottom: 8px; }
  #side .sgroup small { padding: 6px 10px 2px; font-size: .68rem; }
  #side nav a { min-height: 40px; padding: 0 10px; gap: 9px; font-size: .88rem; }
  #side nav a span { min-width: 0; }
}
main[aria-busy="true"] { position: relative; }
main[aria-busy="true"]::before { position: absolute; z-index: 2; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, #b8c7dd, transparent); content: ""; animation: ballistat-progress 1.2s ease-in-out infinite; }
@keyframes ballistat-progress { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
/* Connexion et création de compte : formulaire centré, lisible sur le fond animé. */
body[data-page="login"] main,
body[data-page="signup"] main { display: grid; align-content: center; justify-items: center; padding-top: clamp(30px, 7vh, 84px); padding-bottom: clamp(40px, 9vh, 100px); }
.auth-panel { width: min(100%, 520px); padding: clamp(24px, 4vw, 40px); border: 1px solid rgba(186,198,216,.2); border-radius: 20px; background: var(--card); box-shadow: 0 28px 80px -42px #000; -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.auth-heading { margin-bottom: 26px; }
.auth-heading .eyebrow { color: var(--mut); font-weight: 700; }
.auth-heading h1 { margin: 10px 0 8px; font-size: clamp(2rem,4vw,2.7rem); }
.auth-heading p { margin: 0; }
.auth-panel form { display: grid; gap: 10px; }
.auth-panel form > label:not(.inline) { margin-top: 7px; color: var(--fg); font-size: .9rem; font-weight: 650; }
.auth-panel form > input { width: 100%; min-height: 48px; }
.auth-panel form > p { margin: 6px 0 0; }
.auth-panel form > p > button { width: 100%; min-height: 48px; }
.auth-panel .gbtn { width: 100%; min-height: 46px; }
.auth-panel form > p:last-child a { color: var(--mut); }
body[data-page="matches"] main > h1 { margin-top: 4px; }
body[data-page="matches"] .sports { margin-top: 18px; }
body[data-page="matches"] .lg { padding: 18px; background: var(--card); }
body[data-page="matches"] .fixture-item { grid-template-columns: minmax(260px,1.05fr) minmax(230px,.95fr) auto; padding: 15px 16px; background: var(--card); }
body[data-page="matches"] .fixture-duel { grid-template-columns: minmax(0,1fr) 44px minmax(0,1fr); gap: 12px; }
body[data-page="matches"] .fixture-side { gap: 11px; }
body[data-page="matches"] .fixture-side .crest { width: 38px; height: 38px; }
body[data-page="matches"] .fixture-side strong { font-size: .94rem; }
body[data-page="matches"] .fixture-vs { display: grid; min-height: 34px; place-items: center; border: 1px solid rgba(186,198,216,.13); border-radius: 9px; background: rgba(186,198,216,.05); }
body[data-page="matches"] .filters { padding: 14px; border: 1px solid rgba(186,198,216,.13); border-radius: 14px; background: var(--card); }
@media (max-width: 1150px) {
  .fixture-item { grid-template-columns: minmax(0,1fr) auto; }
  .fixture-meta { grid-column: 1/-1; }
  .fixture-duel { grid-column: 1; }
  .fixture-bottom { grid-column: 2; grid-row: 2; }
}
@media (max-width: 959px) {
  main { padding: 22px clamp(16px,3vw,28px) 100px; }
  .home-hero { grid-template-columns: minmax(0,1fr) minmax(260px,.9fr); }
}
@media (max-width: 719px) {
  #top { position: sticky; }
  main { min-height: calc(100svh - 128px); padding: 20px 14px 100px; }
  body.has-side #side { background: var(--card); }
  .hero.home-hero { grid-template-columns: minmax(0,1fr); gap: 20px; min-height: 0; margin: 4px 0 28px; padding: 22px 18px; border-radius: 15px; }
  .hero.home-hero h1 { max-width: 16ch; font-size: clamp(1.9rem, 8vw, 2.55rem); }
  .hero.home-hero p.lead { font-size: .96rem; }
  .hero.home-hero .row { align-items: stretch; }
  .hero.home-hero .row .btn { flex: 1 1 160px; }
  .home-feature { padding: 14px; }
  .sport-links, .home-steps { grid-template-columns: minmax(0,1fr); }
  .sport-link { padding: 13px; }
  .home-callout, .home-cta { align-items: flex-start; flex-direction: column; }
  .fixture-grid { grid-template-columns: minmax(0,1fr); }
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; }
  .filters input { grid-column: 1/-1; }
  .filters button { grid-column: 1/-1; }
  .fixture-item { grid-template-columns: minmax(0,1fr); gap: 10px; padding: 12px; }
  .fixture-meta, .fixture-duel, .fixture-bottom { grid-column: 1; grid-row: auto; }
  .fixture-meta { flex-wrap: wrap; }
  .fixture-duel { gap: 7px; }
  .fixture-side { gap: 6px; }
  .fixture-side strong { font-size: .82rem; }
  .fixture-bottom { grid-template-columns: minmax(0,1fr) auto; }
  .fixture-selections { gap: 6px; }
  .fixture-card .fixture-side strong { font-size: .9rem; }
  .lg { padding: 12px; }
  .sportchip, .daychip, .tab { min-height: 38px; }
  h2.sec-t { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Refinements after desktop/mobile visual review. */
body[data-fx="home"] .bgfx { opacity: .28; filter: saturate(.62) brightness(.74); }
body[data-fx="home"] .bgimg { opacity: .3; }
body[data-fx="home"] #fx { opacity: .08; }
body[data-fx="home"] .bgshade { background: linear-gradient(180deg, rgba(8,12,19,.16), rgba(8,12,19,.44) 55%, rgba(8,12,19,.7)); }
body[data-fx="home"] .hero.home-hero {
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(300px,.92fr);
  align-items: center;
  justify-content: stretch;
  gap: clamp(22px,4vw,54px);
  min-height: 360px;
  margin: 10px 0 32px;
  padding: clamp(22px,4vw,48px);
  overflow: hidden;
  background: linear-gradient(145deg, var(--card), var(--card2));
  border: 1px solid rgba(186,198,216,.18);
  border-radius: 18px;
}
body[data-fx="home"] .hero.home-hero::before { inset: 0; left: auto; right: 0; top: 0; bottom: 0; width: 42%; height: auto; opacity: .08; border: 0; background: radial-gradient(ellipse at center, rgba(186,198,216,.12), transparent 70%); }
body[data-fx="home"] .hero.home-hero::after { display: none; }
body[data-fx="home"] .hero.home-hero h1 { max-width: 14ch; margin: 0 0 14px; font-size: clamp(2rem,4vw,3.2rem); line-height: 1.08; text-shadow: none; }
body[data-fx="home"] .hero.home-hero h1 em { color: inherit; background: none; }
body[data-fx="home"] .hero.home-hero p.lead { max-width: 48ch; color: var(--mut); text-shadow: none; }
.fixture-item { grid-template-columns: minmax(0,1.1fr) minmax(240px,.9fr) auto; }
.fixture-meta { grid-column: 1/-1; grid-row: 1; }
.fixture-duel { grid-column: 1; grid-row: 2; }
.fixture-bottom { grid-column: 2/-1; grid-row: 2; }
.fixture-side strong { white-space: nowrap; }
.lg-h { padding: 0 0 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.lg-h strong { color: var(--fg); }
@media (max-width: 1150px) {
  .fixture-item { grid-template-columns: minmax(0,1fr) auto; }
  .fixture-meta { grid-column: 1/-1; grid-row: 1; }
  .fixture-duel { grid-column: 1; grid-row: 2; }
  .fixture-bottom { grid-column: 2; grid-row: 2; }
}
@media (max-width: 719px) {
  body[data-fx="home"] .bgfx { opacity: .2; }
  body[data-fx="home"] .hero.home-hero { grid-template-columns: minmax(0,1fr); gap: 20px; min-height: 0; margin: 4px 0 28px; padding: 22px 18px; border-radius: 15px; }
  .fixture-item { grid-template-columns: minmax(0,1fr); }
  .fixture-meta { grid-column: 1; grid-row: 1; }
  .fixture-duel { grid-column: 1; grid-row: 2; }
  .fixture-bottom { grid-column: 1; grid-row: 3; }
}


@media (max-width: 719px) {
  #top { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.fixture-side strong {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.28;
}
.fixture-card .fixture-side strong { max-width: 18ch; }

/* Un seul fond Ballistat sur toutes les routes : le canvas change de motif,
   mais ni le décor, ni sa teinte, ni sa transparence ne basculent avec la page. */
body[data-fx] .bgfx {
  opacity: 1;
  filter: none;
  background: linear-gradient(145deg, var(--card), var(--card2));
}
body[data-fx] .bgimg { opacity: .24; filter: blur(3px) saturate(1.08); transform: scale(1.03); }
body[data-fx] .bgshade { background: linear-gradient(180deg, rgba(246, 247, 255, .16), rgba(246, 247, 255, .34) 62%, rgba(246, 247, 255, .48)); }
body.has-side #side { background: var(--card); }
body[data-fx] #top { background: var(--card); }
body[data-page="matches"] .fixture-item,
body[data-page="live"] .fixture-item,
body[data-page="favorites"] .fixture-item { background: var(--card); }
body[data-page="account"] h2,
body[data-page="pricing"] h2,
body[data-page="performance"] h2,
body[data-page="coupons"] h2,
body[data-page="admin"] h2 { margin: 28px 0 12px; }
body[data-page] main > h1 + p.mut { max-width: 72ch; margin: 0 0 20px; line-height: 1.55; }
body[data-page] main > h2 { margin: 30px 0 12px; }
body[data-page="coupons"] main > [role="tablist"] { display: flex; flex-wrap: wrap; gap: 8px; width: fit-content; max-width: 100%; margin: 18px 0; padding: 5px; border: 1px solid rgba(148,160,255,.18); border-radius: 13px; background: var(--card); }
body[data-page="coupons"] main > [role="tablist"] .btn { min-height: 38px; padding-inline: 13px; border: 0; border-radius: 9px; background: transparent; box-shadow: none; }
body[data-page="coupons"] main > [role="tablist"] .btn[aria-selected="true"] { background: rgba(99,102,241,.25); color: #fff; }
body[data-page="pricing"] .plans { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); align-items: stretch; gap: 16px; margin: 18px 0; }
body[data-page="pricing"] .plan { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; }
body[data-page="pricing"] .plan > .row { margin-top: auto; padding-top: 12px; }
body[data-page="pricing"] .plan-selected { border-color: var(--line); box-shadow: 0 0 0 2px rgba(224,202,134,.16), 0 16px 36px -24px rgba(0,0,0,.85); }
.pay-auth-actions, .pay-test-action { display: grid; gap: 8px; width: 100%; margin-top: auto; padding-top: 12px; }
.pay-auth-actions .btn, .pay-test-action button { width: 100%; }
.test-checkout { max-width: 620px; margin: 24px auto; border-color: rgba(224,202,134,.45); }
.test-checkout h2 { margin: 8px 0 12px; }
.test-checkout .price { margin: 8px 0; font-size: 1.8rem; font-weight: 800; }
.test-checkout button { width: 100%; }
body[data-page="performance"] .kpis { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 12px; }
body[data-page="account"] main > .card:first-of-type { display: grid; gap: 12px; }
body[data-page="account"] main > .card:first-of-type h2 { margin: 14px 0 2px; }
body[data-page="account"] main > .card:first-of-type .row { flex-wrap: wrap; }
body[data-page="account"] main > .scroll { margin: 0 0 18px; border: 1px solid rgba(148,160,255,.18); border-radius: 12px; background: var(--card); }
body[data-page="live"] .livepill { box-shadow: 0 0 0 3px rgba(251,113,133,.08); }
body[data-page="quality"] main > .card { margin: 12px 0; }
body[data-page="match"] .mhero { padding: clamp(18px,3vw,30px); border: 1px solid rgba(148,160,255,.2); border-radius: 18px; background: var(--card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
body[data-page="account"] .card,
body[data-page="pricing"] .card,
body[data-page="performance"] .card,
body[data-page="coupons"] .card,
body[data-page="quality"] .card,
body[data-page="admin"] .card { margin-block: 12px; }
.conf-legend { flex-wrap: wrap; row-gap: 6px; }
@media (max-width: 959px) {
  body.has-side #side { background: var(--card); }
}
@media (max-width: 719px) {
  body[data-fx] .bgimg { opacity: .2; }
  body[data-page] main > h1 + p.mut { margin-bottom: 16px; }
  body[data-page="coupons"] main > [role="tablist"] { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  body[data-page="coupons"] main > [role="tablist"] .btn { flex: none; }
  body[data-page="pricing"] .plan { padding: 18px; }
  body[data-page="matches"] .fixture-item { grid-template-columns: minmax(0,1fr); }
  body[data-page="matches"] .fixture-meta,
  body[data-page="matches"] .fixture-duel,
  body[data-page="matches"] .fixture-bottom { grid-column: 1; }
}

/* Refonte transversale : profondeur, repères colorés et réponses tactiles sobres. */
body[data-fx="home"] .bgimg { opacity: .52; filter: saturate(1.12) contrast(1.04); transform: scale(1.015); }
body[data-fx="home"] .bgshade { background: linear-gradient(180deg, rgba(246, 247, 255, .04), rgba(246, 247, 255, .22) 58%, rgba(246, 247, 255, .54)); }
body[data-fx="home"] .hero.home-hero { background: linear-gradient(118deg, rgba(9,15,50,.78), rgba(24,19,72,.38) 56%, rgba(8,13,36,.58)); border-color: rgba(135,126,255,.28); box-shadow: 0 28px 70px -42px rgba(5,0,47,.94); }
body[data-fx="home"] .home-feature { background: linear-gradient(145deg, var(--card), var(--card2)); }
body[data-page] main > h1 { text-wrap: balance; }
body[data-page] main > h1::after { display: block; width: 42px; height: 3px; margin-top: 13px; border-radius: 999px; background: var(--grad); content: ""; }
.card, .kpi, .plan, .ticket, .lg, .faq details, .mkt, .fixture-item, .home-feature, .home-callout, .sport-link { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
@media (hover: hover) {
  .card:hover, .kpi:hover, .plan:hover, .ticket:hover, .fixture-item:hover, .sport-link:hover { transform: translateY(-3px); border-color: rgba(160,148,255,.45); box-shadow: 0 20px 44px -31px rgba(23,11,96,.78); }
  .fixture-duel:hover strong { color: var(--violet-600); }
  #side nav a:hover { background: rgba(99,102,241,.14); color: #fff; transform: translateX(2px); }
}
.fixture-item { border-color: rgba(138,146,255,.18); }
.fixture-competition, .lg-h strong { color: var(--mut); }
.fixture-vs { color: var(--violet-600); border-color: rgba(147,130,255,.28) !important; background: rgba(112,92,236,.12) !important; }
.sport-link-icon { color: var(--violet-600); border-color: rgba(154,137,255,.3); background: linear-gradient(135deg, rgba(87,82,233,.22), rgba(59,130,246,.12)); }
.kpi { position: relative; overflow: hidden; min-height: 116px; padding: 18px; background: linear-gradient(145deg, var(--card), var(--card2)); }
.kpi::after { position: absolute; right: -22px; bottom: -35px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,255,.22), transparent 68%); content: ""; pointer-events: none; }
.kpi .big { position: relative; z-index: 1; color: var(--fg); font-size: clamp(1.7rem,4vw,2.45rem); }
.plans .plan { position: relative; overflow: hidden; border-color: rgba(145,140,255,.23); background: linear-gradient(145deg, var(--card), var(--card2)); }
.plans .plan::after { position: absolute; inset: auto -42px -58px auto; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(74,142,255,.26), transparent 66%); content: ""; pointer-events: none; }
.plans .plan:nth-child(3n+2) { background: linear-gradient(145deg, var(--card), var(--card2)); }
.plans .plan:nth-child(3n) { background: linear-gradient(145deg, var(--card), var(--card2)); }
.plans .plan > * { position: relative; z-index: 1; }
.plans .plan .price { color: var(--fg); text-shadow: 0 6px 22px rgba(120,91,255,.28); }
.plans .plan li::marker { color: var(--link); }
.payment-unavailable { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 12px; margin-top: auto; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; background: rgba(244,189,92,.09); color: #ffd0d4; font-size: .86rem; }
.payment-unavailable a { color: var(--mut); font-weight: 700; }
.payment-unavailable.plan-selection-control { display: grid; align-items: stretch; }
.plan-selection-control .choose-plan-btn { width: 100%; min-height: 44px; white-space: normal; }
.plan-selection-notice { max-width: 620px; margin: 24px auto; border-color: var(--line); }
.plan-selection-notice h2 { margin: 8px 0 12px; }
.plan-selection-notice .price { margin: 8px 0; font-size: 1.8rem; font-weight: 800; }
.quota-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.quota-card { display: grid; gap: 6px; min-width: 0; padding: 13px; border: 1px solid rgba(148,160,255,.2); border-radius: 12px; background: linear-gradient(145deg, var(--card), var(--card2)); }
.quota-card strong { overflow: hidden; color: var(--fg); text-overflow: ellipsis; white-space: nowrap; }
.account-language-label { display: block; margin-top: 4px; color: var(--mut); font-size: .86rem; font-weight: 650; }
.account-language select { min-width: 180px; }
body[data-page="login"] .auth-panel, body[data-page="signup"] .auth-panel { position: relative; overflow: hidden; border-color: rgba(166,154,255,.34); background: linear-gradient(145deg, var(--card), var(--card2)); }
body[data-page="login"] .auth-panel::before, body[data-page="signup"] .auth-panel::before { position: absolute; top: -88px; right: -78px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(88,112,255,.3), transparent 67%); content: ""; pointer-events: none; }
body[data-page="login"] .auth-panel > *, body[data-page="signup"] .auth-panel > * { position: relative; z-index: 1; }
body[data-page="signup"] .auth-heading h1::after { width: 64px; }
body[data-page="signup"] .auth-heading p::after { display: block; margin-top: 12px; color: var(--violet-600); font-size: .85rem; content: "Un mot de passe confirmé et la validation de majorité sont demandés pour protéger votre espace."; }
body[data-page="login"] .auth-heading p::after { display: block; margin-top: 12px; color: var(--mut); font-size: .85rem; content: "Utilisez l’adresse e-mail et le mot de passe de votre compte."; }
@media (max-width: 959px) { .quota-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 719px) {
  body[data-fx="home"] .bgimg { opacity: .38; }
  .kpi { min-height: 96px; }
  .quota-grid { grid-template-columns: 1fr; }
  .payment-unavailable { font-size: .82rem; }
  body[data-page="login"] main, body[data-page="signup"] main { align-content: start; padding-top: 34px; }
  .auth-panel { padding: 22px 18px; border-radius: 16px; }
}

/* UX cleanup: loading replaces stale content; restrained edges and predictable responsive cards. */
.prediction-probabilities { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 8px; margin-top: 14px; }
.prediction-probability { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 10px 12px; border: 1px solid rgba(186,198,216,.12); border-radius: 10px; background: var(--card); color: var(--fg); }
.prediction-probability span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prediction-probability strong, .coupon-confidence strong { color: var(--fg); font-variant-numeric: tabular-nums; }
.coupon-shop-card { min-width: 0; }
.coupon-shop-head { align-items: flex-start; }
.coupon-shop-head > strong { min-width: 0; overflow-wrap: anywhere; }
.coupon-shop-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.coupon-shop-prices { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.coupon-shop-prices > div { display: grid; gap: 3px; }
.coupon-shop-card .paybtn { min-height: 44px; padding: 10px 16px; border: 1px solid var(--blue-700); border-radius: 10px; background: var(--blue-600); color: #fff; font-weight: 700; box-shadow: none; }
.coupon-shop-card .paybtn:hover { background: var(--blue-700); }
.coupon-shop-card .tkpay .row { flex-wrap: wrap; }
.plan-crown { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(224,202,134,.32); border-radius: 12px; background: rgba(224,202,134,.08); color: #ffd0d4; font-size: 1.45rem; line-height: 1; }
.plans .plan { background: var(--card); border-color: rgba(186,198,216,.16); }
.plans .plan::after { display: none; }
.plans .plan:nth-child(3n+2), .plans .plan:nth-child(3n) { background: var(--card); }
.plans .plan-featured { border-color: rgba(224,202,134,.32); }
.plans .plan .price { text-shadow: none; }
.plan li::marker { color: var(--mut); }
.payment-quote-list { display: grid; gap: 8px; margin: 12px 0; }
.payment-quote-row { display: grid; grid-template-columns: minmax(90px,1fr) auto; align-items: baseline; gap: 4px 16px; padding: 12px 14px; border: 1px solid rgba(186,198,216,.16); border-radius: 12px; background: var(--card); }
.payment-quote-total { font-size: 1.1rem; font-weight: 750; font-variant-numeric: tabular-nums; text-align: right; }
.payment-quote-row .small { grid-column: 1 / -1; }
.payment-fx-note { max-width: 76ch; margin: 10px 0 0; }
@media (max-width: 480px) {
  .payment-quote-row { grid-template-columns: 1fr; gap: 5px; }
  .payment-quote-total { text-align: left; }
}
.auth-panel { width: min(100%, 440px); padding: clamp(20px, 3vw, 30px); border-radius: 16px; }
.auth-heading { margin-bottom: 18px; }
.auth-heading h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); }
body[data-page="contact"] main > .card { width: min(100%, 680px); }
main[aria-busy="true"]::before { display: none; }
#side nav a[aria-current="page"] { box-shadow: none; border-left: 0; background: rgba(186,198,216,.1); }
@media (hover: hover) {
  .card:hover, .kpi:hover, .plan:hover, .ticket:hover, .fixture-item:hover, .sport-link:hover { border-color: rgba(186,198,216,.22); box-shadow: 0 12px 28px -24px rgba(0,0,0,.7); }
  #side nav a:hover { transform: none; }
}
@media (max-width: 719px) {
  .tickets { grid-template-columns: minmax(0,1fr); }
  .coupon-shop-card .tkpay .row > * { min-width: min(100%, 180px); }
  .auth-panel { padding: 20px 16px; }
  .prediction-probabilities { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}

/* Production authentication forms: compact, accessible, and usable on short screens. */
body[data-page="login"] main, body[data-page="signup"] main { min-height: calc(100svh - 78px); align-content: start; padding: clamp(18px, 4vh, 42px) 16px; }
body[data-page="login"] .auth-panel, body[data-page="signup"] .auth-panel { width: min(100%, 430px); padding: clamp(18px, 3vw, 28px); border-color: rgba(186,198,216,.2); background: var(--card); box-shadow: 0 22px 54px -42px #000; }
body[data-page="login"] .auth-panel::before, body[data-page="signup"] .auth-panel::before { display: none; }
body[data-page="login"] .auth-heading, body[data-page="signup"] .auth-heading { margin-bottom: 16px; }
body[data-page="login"] .auth-heading h1, body[data-page="signup"] .auth-heading h1 { margin: 7px 0 5px; font-size: clamp(1.65rem, 4vw, 2rem); }
body[data-page="login"] .auth-heading p, body[data-page="signup"] .auth-heading p { max-width: 48ch; font-size: .9rem; line-height: 1.5; }
body[data-page="login"] .auth-heading h1::after, body[data-page="signup"] .auth-heading h1::after,
body[data-page="login"] .auth-heading p::after, body[data-page="signup"] .auth-heading p::after { display: none; content: none; }
.auth-panel form { gap: 7px; }
.auth-panel form > label:not(.inline) { margin-top: 5px; }
.auth-panel form > input, .password-control > input { min-height: 44px; }
.password-control { display: flex; align-items: stretch; min-width: 0; border: 1px solid rgba(186,198,216,.24); border-radius: 10px; background: var(--card); }
.password-control:focus-within { outline: 2px solid rgba(196,206,221,.38); outline-offset: 2px; }
.password-control input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; }
.password-control input:focus { box-shadow: none; }
.password-toggle { display: grid; width: 44px; min-width: 44px; min-height: 44px; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--mut); box-shadow: none; }
.password-toggle:hover { background: rgba(186,198,216,.1); transform: none; }
.password-control[data-strength="weak"] { border-color: #c97575; }
.password-control[data-strength="medium"] { border-color: #d0a54f; }
.password-control[data-strength="strong"] { border-color: #62b78d; }
.password-strength { display: grid; gap: 5px; }
.strength-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.strength-track span { height: 4px; border-radius: 4px; background: rgba(186,198,216,.18); }
.password-strength .strength-track span.active { background: #ba7373; }
.password-strength[data-level="medium"] .strength-track span.active { background: #d0a54f; }
.password-strength[data-level="strong"] .strength-track span.active { background: #62b78d; }
.password-strength:has(.strength-track span.active:nth-child(3)) { --strength-state: medium; }
.password-strength:has(.strength-track span.active:nth-child(4)) .strength-track span.active { background: #62b78d; }
.strength-label, .password-hint { color: var(--mut); font-size: .78rem; line-height: 1.4; }
.auth-panel .inline { display: flex; align-items: flex-start; gap: 9px; font-size: .86rem; line-height: 1.4; }
.auth-panel .inline input { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.auth-panel form > p { margin: 4px 0 0; }
.auth-panel form > p > button { min-height: 44px; }
.auth-panel .gbtn { min-height: 42px; }
.auth-panel .field-err { margin: 3px 0; font-size: .82rem; }
.auth-panel .msg { padding: 10px 12px; }
@media (max-height: 740px) and (min-width: 720px) {
  body[data-page="signup"] main, body[data-page="login"] main { padding-block: 12px; }
  body[data-page="signup"] .auth-panel, body[data-page="login"] .auth-panel { padding: 16px 22px; }
  body[data-page="signup"] .auth-heading, body[data-page="login"] .auth-heading { margin-bottom: 10px; }
  body[data-page="signup"] .auth-panel form, body[data-page="login"] .auth-panel form { gap: 5px; }
}
@media (max-width: 719px) {
  body[data-page="signup"] main, body[data-page="login"] main { min-height: calc(100svh - 128px); padding: 14px 12px 30px; }
  body[data-page="signup"] .auth-panel, body[data-page="login"] .auth-panel { width: min(100%, 430px); padding: 18px 16px; }
  body[data-page="signup"] .auth-heading .eyebrow, body[data-page="login"] .auth-heading .eyebrow { font-size: .7rem; }
}
@media (max-width: 719px) {
  body[data-page="signup"] main, body[data-page="login"] main { padding-bottom: 92px; }
}
.password-strength[data-level="weak"] .strength-track span.active { background: #ba7373; }
.password-strength[data-level="medium"] .strength-track span.active { background: #d0a54f; }
.password-strength[data-level="strong"] .strength-track span.active { background: #62b78d; }
@media (max-width: 719px) and (max-height: 740px) {
  body[data-page="signup"] main { padding-top: 6px; }
  body[data-page="signup"] .auth-panel { padding: 12px 14px; }
  body[data-page="signup"] .auth-heading { margin-bottom: 4px; }
  body[data-page="signup"] .auth-heading p { display: none; }
  body[data-page="signup"] .auth-heading h1 { margin: 0; font-size: 1.5rem; }
  body[data-page="signup"] .auth-panel form { gap: 3px; }
  body[data-page="signup"] .auth-panel form > label:not(.inline) { margin-top: 2px; }
  body[data-page="signup"] .password-hint { font-size: .72rem; line-height: 1.2; }
  body[data-page="signup"] .password-strength { gap: 3px; }
  body[data-page="signup"] .strength-label { font-size: .7rem; }
  body[data-page="signup"] .auth-panel .inline { min-height: 26px; align-items: center; margin-top: 2px; }
}
