/* Tunfcb · site vitrine
   Thème sombre unique, aux couleurs de l'app (src/theme/colors.ts) :
   bleu nuit, bleu et grenat du club, or pour les Barça Points.
   Cartes rectangulaires comme dans l'app ; seuls boutons et pastilles sont arrondis. */
:root {
  --navy-deep: #080f26;
  --navy: #0c1532;
  --surface: #131d3d;
  --surface-raised: #1a2650;
  --border: rgba(130, 156, 230, 0.16);
  --border-strong: rgba(130, 156, 230, 0.3);

  --blue: #2f6bff;
  --blue-deep: #1f49d6;
  --club-blue: #004d98;
  --garnet: #a50044;
  --magenta: #d6246e;
  --gold: #ffcb05;
  --success: #22c55e;

  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --dim: rgba(255, 255, 255, 0.55);
  --link: #9db4e8;

  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --nav-h: 72px;
  --container: 1200px;
  --gutter: 20px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--gold); color: var(--navy-deep); font-weight: 700;
}
.skip:focus { top: 12px; }

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

.ico { width: 18px; height: 18px; flex: none; }
.ico--lg { width: 26px; height: 26px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent; border-radius: 999px;
  font: 700 15px/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(47, 107, 255, 0.7);
}
.btn--primary:hover { background: var(--blue-deep); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(157, 180, 232, 0.5); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 14px 26px; font-size: 16px; min-height: 60px; }
.btn--block { width: 100%; }
.btn__stack { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.btn__label { font-weight: 800; }
.btn__meta { font-size: 12px; font-weight: 600; opacity: 0.75; margin-top: 2px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.04);
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.pill--live { color: #4ade80; border-color: rgba(34, 197, 94, 0.45); background: rgba(34, 197, 94, 0.1); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.nav.is-scrolled,
body.menu-open .nav {
  background: rgba(8, 15, 38, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 4px 12px rgba(165, 0, 68, 0.35)); }

.nav__menu { flex: 1; display: flex; align-items: center; justify-content: center; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative; display: block;
  padding: 8px 14px;
  font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none;
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 3px; border-radius: 3px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--gold); }
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--border-strong); border-radius: 50%;
  background: rgba(255, 255, 255, 0.04); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav__toggle span {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__inner { justify-content: space-between; }
  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
    padding: 20px var(--gutter) 32px;
    background: rgba(8, 15, 38, 0.97);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    overflow-y: auto;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links a {
    padding: 16px 4px; font: 800 22px/1.2 var(--font-display); color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .nav__links a::after { display: none; }
}

/* ---------- Hero ----------
   Photo du stade en transparence sur le bleu nuit, texte à gauche,
   téléphones à droite. Sur mobile : texte puis téléphones. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(720px, 100svh, 980px);
  padding: calc(var(--nav-h) + 48px) 0 96px;
  display: flex; align-items: center;
  background: var(--navy-deep);
}

.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img {
  object-fit: cover; object-position: center 35%;
  opacity: 0.32;
  transform-origin: 70% 40%;
  animation: hero-zoom 20s ease-out both;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--navy-deep) 0%, rgba(8, 15, 38, 0.88) 28%, rgba(8, 15, 38, 0.35) 62%, rgba(8, 15, 38, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 15, 38, 0.75) 0%, rgba(8, 15, 38, 0) 22%, rgba(8, 15, 38, 0) 72%, var(--navy-deep) 100%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(100px); }
.hero__glow--blue { width: 520px; height: 520px; right: 22%; top: 18%; background: rgba(47, 107, 255, 0.28); }
.hero__glow--red { width: 460px; height: 460px; right: -6%; top: 34%; background: rgba(214, 36, 110, 0.24); }
@keyframes hero-zoom {
  from { transform: scale(1.1); }
  to { transform: scale(1); }
}

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center; gap: 40px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 203, 5, 0.45); background: rgba(255, 203, 5, 0.08);
  color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: 0.02em;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 203, 5, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(255, 203, 5, 0); }
}

.hero__title {
  margin: 24px 0 0;
  font: 900 clamp(34px, 5.2vw, 72px)/1.04 var(--font-display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hl {
  background: linear-gradient(90deg, #6c98ff 0%, #b45cff 50%, #ff3d6e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__lead {
  margin-top: 22px; max-width: 32em;
  font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.65; color: var(--muted);
}

/* Badges plateformes : pas encore sur les stores */
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.store {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 220px; padding: 12px 22px 12px 16px;
  border: 1px solid var(--border-strong); border-radius: 14px;
  background: rgba(8, 15, 38, 0.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  cursor: default;
}
.store__ico { width: 30px; height: 30px; flex: none; color: rgba(255, 255, 255, 0.85); }
.store__text { display: flex; flex-direction: column; line-height: 1.15; }
.store__small { font-size: 12px; font-weight: 600; color: var(--dim); }
.store__name { font: 800 19px/1.2 var(--font-display); letter-spacing: -0.01em; }
.store__tag {
  position: absolute; top: -10px; right: 12px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--gold); color: var(--navy-deep);
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 6px 16px -6px rgba(255, 203, 5, 0.7);
}

/* Téléphones */
.hero__visual { position: relative; }
.phones { position: relative; height: 640px; max-width: 560px; margin: 0 auto; }
.phone {
  position: absolute; margin: 0;
  width: 280px; aspect-ratio: 9 / 18.8;
  padding: 9px; border-radius: 44px;
  background: linear-gradient(160deg, #2c3866, #0d1430 60%);
  border: 1px solid rgba(157, 180, 232, 0.3);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6) inset;
}
.phone img {
  width: 100%; height: 100%; border-radius: 36px;
  object-fit: cover; object-position: top center;
  background: var(--navy);
}
.phone--center { left: 50%; top: 20px; margin-left: -140px; z-index: 3; }
.phone--left { left: -10px; top: 90px; transform: rotate(-7deg) scale(0.84); z-index: 1; }
.phone--right { right: -10px; top: 90px; transform: rotate(7deg) scale(0.84); z-index: 2; }
.phone--left img, .phone--right img { filter: brightness(0.75); }

.float {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(19, 29, 61, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.85);
  animation: bob 6s ease-in-out infinite;
}
.float--live {
  left: 0; top: 40px;
  border-radius: 999px; padding: 9px 16px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
  animation-delay: -4s;
}
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #ef4444;
  animation: live 1.6s ease-out infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.float--bp {
  right: -24px; top: 210px;
  border-color: rgba(255, 203, 5, 0.5);
  background: linear-gradient(135deg, rgba(74, 60, 10, 0.96), rgba(19, 29, 61, 0.96));
  animation-delay: -2s;
}
.float__star {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(255, 203, 5, 0.5); background: rgba(255, 203, 5, 0.14);
  color: var(--gold); font-size: 20px;
}
.float__big { font: 900 24px/1 var(--font-display); color: var(--gold); }
.float__small { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }

.float--notif { left: -40px; bottom: 40px; width: 300px; border-radius: 18px; }
.float--notif img { width: 36px; height: 36px; flex: none; }
.float__head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--dim); }
.float__head strong { color: var(--text); font-weight: 800; }
.float__text { margin-top: 2px; font-size: 13px; line-height: 1.35; font-weight: 600; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.stripes {
  position: absolute; inset: auto 0 0; height: 6px; z-index: 5;
  background: repeating-linear-gradient(90deg, var(--club-blue) 0 48px, var(--garnet) 48px 96px);
}

@media (max-width: 1120px) {
  .float--notif { left: -10px; }
  .float--bp { right: -6px; }
}

@media (max-width: 960px) {
  .hero { min-height: 0; padding: calc(var(--nav-h) + 36px) 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__shade {
    background: linear-gradient(180deg, rgba(8, 15, 38, 0.7) 0%, rgba(8, 15, 38, 0.82) 40%, rgba(8, 15, 38, 0.6) 70%, var(--navy-deep) 100%);
  }
}

@media (max-width: 760px) {
  .hero__media img { object-position: center top; opacity: 0.38; }
}

@media (max-width: 560px) {
  .stores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .store { min-width: 0; padding: 12px 12px; gap: 10px; }
  .store__ico { width: 24px; height: 24px; }
  .store__name { font-size: 16px; }

  .phones { height: 500px; }
  .phone { width: 220px; border-radius: 34px; padding: 7px; }
  .phone img { border-radius: 28px; }
  .phone--center { margin-left: -110px; top: 10px; }
  .phone--left { left: -60px; top: 70px; transform: rotate(-8deg) scale(0.8); }
  .phone--right { right: -60px; top: 70px; transform: rotate(8deg) scale(0.8); }
  .float--live { left: -4px; top: 18px; }
  .float--bp { right: -4px; top: 180px; padding: 10px 12px; }
  .float__big { font-size: 19px; }
  .float--notif { left: 0; right: 0; margin: 0 auto; bottom: 10px; width: min(300px, 100%); }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 112px 0; }
.section__head { max-width: 720px; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--gold); }
.section__title {
  margin: 16px 0 0;
  font: 900 clamp(32px, 4.2vw, 54px)/1.06 var(--font-display);
  letter-spacing: -0.025em; text-wrap: balance;
}
.section__lead { margin-top: 18px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: var(--muted); max-width: 40em; }

.badge {
  --c: 47, 107, 255;
  width: 44px; height: 44px; display: grid; place-items: center; flex: none;
  border: 1px solid rgba(var(--c), 0.45); background: rgba(var(--c), 0.14);
  color: rgb(var(--c)); border-radius: 12px;
}
.badge svg { width: 22px; height: 22px; }
.badge--red { --c: 239, 68, 68; }
.badge--blue { --c: 96, 140, 255; }
.badge--gold { --c: 255, 203, 5; }
.badge--magenta { --c: 236, 72, 153; }
.badge--info { --c: 14, 165, 233; }
.badge--green { --c: 34, 197, 94; }
.badge--violet { --c: 167, 139, 250; }

/* ---------- Fonctionnalités : une ligne de petites cartes ----------
   8 colonnes sur grand écran ; en dessous, la ligne défile horizontalement. */
.features {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px;
  margin-top: 48px;
}
.feat {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 16px;
  background: linear-gradient(180deg, #131d3d 0%, #0e1733 100%);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.feat:hover { border-color: rgba(157, 180, 232, 0.4); transform: translateY(-3px); }
.feat .badge { margin-bottom: 10px; }
.feat__title { margin: 0; font: 800 16px/1.25 var(--font-display); letter-spacing: -0.005em; }
.feat__text { font-size: 13px; line-height: 1.45; color: var(--muted); }
.feat__soon {
  position: absolute; top: 12px; right: 12px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--gold); color: var(--navy-deep);
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}

@media (max-width: 1199px) {
  .features {
    display: flex; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px;
    scrollbar-width: none;
  }
  .features::-webkit-scrollbar { display: none; }
  .feat { flex: 0 0 172px; scroll-snap-align: start; }
}

@media (max-width: 700px) {
  .section { padding: 80px 0; }
  .features { margin-top: 36px; }
}

/* ---------- Jeux & points ----------
   Liste des jeux à gauche, aperçu solde / classement / boutique à droite (or = Barça Points). */
.section--games {
  background:
    radial-gradient(ellipse 45% 45% at 80% 40%, rgba(255, 203, 5, 0.08), transparent 70%),
    linear-gradient(180deg, var(--navy-deep), var(--navy) 50%, var(--navy-deep));
  border-top: 1px solid var(--border);
}
.games { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: center; }
.hl--gold { background: linear-gradient(90deg, #ffcb05, #ff9f1c); -webkit-background-clip: text; background-clip: text; color: transparent; }

.games__list { display: flex; flex-direction: column; gap: 10px; margin-top: 36px; }
.game {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #131d3d 0%, #0e1733 100%);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.game:hover { border-color: rgba(255, 203, 5, 0.35); transform: translateX(4px); }
.game__info { flex: 1; min-width: 0; }
.game__name { margin: 0; font: 800 16px/1.25 var(--font-display); }
.game__desc { margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.game__bp {
  flex: none; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 203, 5, 0.45); background: rgba(255, 203, 5, 0.1);
  color: var(--gold); font-size: 13px; font-weight: 800; white-space: nowrap;
}

/* Aperçu */
.games__visual { display: flex; flex-direction: column; gap: 16px; }
.wallet, .board, .soon { border: 1px solid var(--border); }

.wallet {
  padding: 24px;
  background: linear-gradient(135deg, #1a2650 0%, #131d3d 45%, #4a3c0a 130%);
}
.wallet__top { display: flex; justify-content: space-between; align-items: center; }
.wallet__label { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.wallet__rank {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 203, 5, 0.5); background: rgba(255, 203, 5, 0.12);
  color: var(--gold); font-weight: 800; font-size: 14px;
}
.wallet__rank svg { width: 16px; height: 16px; }
.wallet__amount { margin-top: 10px; font: 900 56px/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wallet__amount span { font-size: 24px; color: var(--gold); }
.wallet__level { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 14px; }
.wallet__level p { flex: 1; }
.wallet__lvl {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid rgba(255, 203, 5, 0.5); background: rgba(255, 203, 5, 0.14); color: var(--gold);
}
.wallet__lvl svg { width: 18px; height: 18px; }
.wallet__xp { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.wallet__bar { margin-top: 14px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.wallet__bar span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #ffcb05, #ffdf5e); }
.wallet__hint { margin-top: 10px; font-size: 12.5px; color: var(--dim); }

.board { padding: 20px 20px 12px; background: linear-gradient(180deg, #131d3d 0%, #0e1733 100%); }
.board__head { display: flex; justify-content: space-between; align-items: baseline; }
.board__head h3 { margin: 0; font: 800 17px/1.2 var(--font-display); }
.board__head span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.board__list { margin: 12px 0 0; padding: 0; list-style: none; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
.row:last-child { border-bottom: 0; }
.row__pos {
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, 0.08); font-size: 12px; font-weight: 800;
}
.row--1 .row__pos { background: var(--gold); color: var(--navy-deep); }
.row--2 .row__pos { background: #cbd5e1; color: var(--navy-deep); }
.row--3 .row__pos { background: #d97706; color: #fff; }
.row__av {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--club-blue), var(--garnet)); font-size: 11px; font-weight: 800;
}
.row__name { flex: 1; font-weight: 700; }
.row__bp { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.row--me { background: rgba(47, 107, 255, 0.12); border-bottom-color: transparent; box-shadow: inset 3px 0 0 var(--blue); }
.row--me .row__av { background: var(--blue); font-size: 10px; }

.soon {
  position: relative; padding: 18px 20px 18px 20px;
  background: linear-gradient(90deg, rgba(255, 203, 5, 0.1), rgba(19, 29, 61, 0.6));
  border-color: rgba(255, 203, 5, 0.3);
  font-size: 14px; line-height: 1.55; color: var(--muted);
}
.soon strong { color: var(--text); }
.soon__tag {
  display: inline-block; margin-bottom: 8px;
  padding: 2px 9px; border-radius: 999px; background: var(--gold); color: var(--navy-deep);
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}

@media (max-width: 1000px) {
  .games { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 480px) {
  .game { flex-wrap: wrap; padding: 14px; }
  .game__info { flex: 1 1 calc(100% - 60px); }
  .game__bp { margin-left: 58px; }
  .wallet__amount { font-size: 46px; }
  .wallet__level { flex-wrap: wrap; }
}

/* ---------- Aperçu : captures d'écran qui défilent ---------- */
.section--tour { border-top: 1px solid var(--border); }
.tour__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.tour__nav { display: flex; gap: 10px; flex: none; }
.tour__btn {
  width: 48px; height: 48px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--border-strong); border-radius: 50%;
  background: rgba(255, 255, 255, 0.04); color: var(--text); cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.tour__btn:hover { background: rgba(255, 255, 255, 0.1); }
.tour__btn:disabled { opacity: 0.35; cursor: default; }
.tour__btn svg { width: 20px; height: 20px; }

.tour {
  display: flex; gap: 20px; margin-top: 44px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.tour::-webkit-scrollbar { display: none; }
.tour:focus-visible { outline-offset: -2px; }
.shot { flex: 0 0 230px; scroll-snap-align: start; }
.shot figure { margin: 0; }
.shot__frame {
  padding: 8px; border-radius: 38px; aspect-ratio: 9 / 18.8;
  background: linear-gradient(160deg, #2c3866, #0d1430 60%);
  border: 1px solid rgba(157, 180, 232, 0.3);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  transition: transform 0.25s ease;
}
.shot__frame img { width: 100%; height: 100%; border-radius: 30px; object-fit: cover; object-position: top center; background: var(--navy); }
.shot:hover .shot__frame { transform: translateY(-6px); }
.shot figcaption { margin-top: 16px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.shot figcaption strong { display: block; margin-bottom: 2px; font: 800 16px/1.25 var(--font-display); color: var(--text); }

@media (max-width: 700px) {
  .tour__nav { display: none; }
  .tour { margin-top: 32px; gap: 16px; }
  .shot { flex-basis: 200px; }
}

/* ---------- Communauté ----------
   Téléphone + publication du mur à gauche, les trois piliers à droite. */
.section--community {
  background:
    radial-gradient(ellipse 45% 50% at 15% 50%, rgba(214, 36, 110, 0.12), transparent 70%),
    linear-gradient(180deg, var(--navy-deep), var(--navy) 50%, var(--navy-deep));
  border-top: 1px solid var(--border);
}
.community { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }

.community__visual { position: relative; min-height: 600px; display: flex; justify-content: center; align-items: center; }
.phone--solo { position: relative; width: 280px; transform: rotate(-4deg); }

.post {
  position: absolute; right: 0; bottom: 48px; z-index: 2;
  width: min(320px, 90%);
  padding: 16px;
  background: rgba(19, 29, 61, 0.95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
  animation: bob 6s ease-in-out infinite;
}
.post__head { display: flex; align-items: center; gap: 10px; }
.post__name { font-weight: 800; font-size: 14px; }
.post__meta { font-size: 12px; color: var(--dim); }
.post__text { margin-top: 10px; font-size: 14px; line-height: 1.5; }
.post__foot { display: flex; gap: 18px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.post__reacts b, .post__comments { font-weight: 700; }
.post__comments { display: inline-flex; align-items: center; gap: 6px; }
.post__comments svg { width: 16px; height: 16px; }

.pillars { display: flex; flex-direction: column; gap: 22px; margin-top: 36px; }
.pillar { display: flex; gap: 16px; align-items: flex-start; }
.pillar__title { margin: 0; font: 800 18px/1.25 var(--font-display); }
.pillar__text { margin-top: 4px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.manager {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 32px; padding: 18px 20px;
  border: 1px solid rgba(214, 36, 110, 0.4);
  background: linear-gradient(90deg, rgba(214, 36, 110, 0.12), rgba(19, 29, 61, 0.5));
  font-size: 14px; line-height: 1.55; color: var(--muted);
}
.manager strong { color: var(--text); }

@media (max-width: 1000px) {
  .community { grid-template-columns: 1fr; gap: 40px; }
  .community__visual { order: 2; min-height: 0; padding-bottom: 120px; }
}
@media (max-width: 560px) {
  .phone--solo { width: 230px; border-radius: 34px; padding: 7px; }
  .phone--solo img { border-radius: 28px; }
  .post { right: 50%; transform: translateX(50%); bottom: 0; animation: none; }
}

/* ---------- Installer ---------- */
.section--install {
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(47, 107, 255, 0.16), transparent 70%),
    var(--navy-deep);
  border-top: 1px solid var(--border);
}
.section__head--center { margin: 0 auto; text-align: center; }
.section__head--center .section__lead { margin-inline: auto; }

.install {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
  max-width: 820px; margin: 48px auto 0;
}
.install__card {
  position: relative;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, #131d3d 0%, #0e1733 100%);
  border: 1px solid var(--border);
}
.install__tag {
  position: absolute; top: -10px; right: 16px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--gold); color: var(--navy-deep);
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.install__top { display: flex; align-items: center; gap: 14px; }
.install__title { margin: 0; font: 900 22px/1.15 var(--font-display); }
.install__meta { margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--dim); }
.install__text { margin-top: 14px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.install__follow { display: flex; justify-content: center; margin-top: 36px; }

@media (max-width: 860px) {
  .install { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .install__card { padding: 24px 16px 20px; }
  .install__follow .btn { width: 100%; }
}

/* ---------- FAQ ---------- */
.section--faq { border-top: 1px solid var(--border); }
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq .section__head { position: sticky; top: calc(var(--nav-h) + 24px); }
.link { color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.link:hover { color: #fff; }

.faq__list { display: flex; flex-direction: column; gap: 10px; }
.qa {
  background: linear-gradient(180deg, #131d3d 0%, #0e1733 100%);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}
.qa[open] { border-color: rgba(255, 203, 5, 0.4); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font: 800 16.5px/1.35 var(--font-display);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.2s ease;
}
.qa[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.qa p { padding: 0 20px 20px; font-size: 15px; line-height: 1.65; color: var(--muted); }

@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq .section__head { position: static; }
}
@media (max-width: 480px) {
  .qa summary { padding: 16px; font-size: 15.5px; }
  .qa p { padding: 0 16px 16px; font-size: 14.5px; }
}

/* ---------- Pied de page ---------- */
.footer { position: relative; padding: 72px 0 32px; background: #060b1d; }
.stripes--top { inset: 0 0 auto; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand img { width: 56px; height: 56px; }
.footer__tag { margin-top: 8px; font-size: 14px; color: var(--muted); max-width: 22em; }
.footer__title {
  margin: 0 0 16px; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px;
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; overflow-wrap: anywhere;
  transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--dim);
}

@media (max-width: 760px) {
  .footer { padding-top: 56px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- Corrections responsive : petits téléphones ---------- */
@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .eyebrow { font-size: 12px; padding: 7px 12px 7px 10px; }
  .stores { grid-template-columns: 1fr; }
  .store { width: 100%; }
  .btn--lg { padding-inline: 18px; }
  .btn__label { font-size: 15px; }
  .section__title { font-size: 30px; }
}
@media (max-width: 360px) {
  .phones { height: 440px; }
  .phone { width: 190px; border-radius: 30px; padding: 6px; }
  .phone img { border-radius: 24px; }
  .phone--center { margin-left: -95px; }
  .phone--left { left: -56px; top: 64px; }
  .phone--right { right: -56px; top: 64px; }
  .float--bp { top: 150px; }
  .float--notif { width: 100%; }
  .float__text { font-size: 12px; }
  .wallet { padding: 20px 16px; }
  .wallet__amount { font-size: 40px; }
  .board { padding: 16px 12px 8px; }
  .row { gap: 8px; padding: 10px 4px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tour { scroll-behavior: auto; }
}

/* Grand écran : le carrousel déborde jusqu'au bord de la fenêtre au lieu d'être coupé au conteneur. */
@media (min-width: 1240px) {
  .tour { margin-right: calc((var(--container) - 100vw) / 2 - var(--gutter)); }
}
