:root {
  color-scheme: dark;
  --ink: #070707;
  --surface: #101010;
  --surface-2: #171717;
  --text: #f6f6f2;
  --muted: #b7b7af;
  --line: rgba(255, 255, 255, 0.13);
  --yellow: #f3c600;
  --yellow-bright: #ffd800;
  --yellow-dark: #ae8e00;
  --display: "Arial Narrow", "Roboto Condensed", Impact, Haettenschweiler, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 26px 65px rgba(0, 0, 0, 0.38);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 3%, rgba(243, 198, 0, 0.12), transparent 24rem),
    radial-gradient(circle at 86% 35%, rgba(243, 198, 0, 0.055), transparent 22rem),
    repeating-linear-gradient(118deg, transparent 0 48px, rgba(255, 255, 255, 0.012) 49px, transparent 50px),
    var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--yellow-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: #050505;
  background: var(--yellow);
  font-weight: 800;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(100% - 2rem, 1180px); margin-inline: auto; }

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--yellow);
  font-family: var(--display);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.19em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 450px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before,
.download-page::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(107deg, transparent 0 46%, rgba(243, 198, 0, 0.08) 46.2% 46.7%, transparent 47%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), var(--ink) 92%);
}

.hero__stadium {
  position: absolute;
  inset: -8rem -10%;
  opacity: 0.55;
  background:
    conic-gradient(from 203deg at 18% -8%, transparent 0 20deg, rgba(255, 236, 156, 0.14) 21deg 23deg, transparent 24deg),
    conic-gradient(from 150deg at 82% -8%, transparent 0 20deg, rgba(255, 236, 156, 0.11) 21deg 23deg, transparent 24deg),
    radial-gradient(ellipse at 50% 38%, rgba(243, 198, 0, 0.18), transparent 33%);
  filter: blur(2px);
}

.hero__inner { position: relative; z-index: 1; padding-block: 3rem 2.2rem; }

.brand-lockup { display: grid; justify-items: center; gap: 1.5rem; text-align: center; }
.brand-lockup__copy { min-width: 0; }

.brand-logo {
  width: clamp(96px, 28vw, 128px);
  aspect-ratio: 1;
  border: 2px solid rgba(243, 198, 0, 0.8);
  border-radius: 8px;
  box-shadow: 0 0 0 7px rgba(0, 0, 0, 0.45), 0 0 44px rgba(243, 198, 0, 0.2);
}

h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { overflow-wrap: normal; word-break: normal; }

.hero h1,
.download-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5.7rem);
  font-stretch: condensed;
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 0.82;
  text-transform: uppercase;
}

.hero h1 span, .hero h1 strong { display: block; }
.hero h1 strong, .download-hero h1 strong { color: var(--yellow); font-weight: inherit; }

.hero__services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.65rem;
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__services i { align-self: center; width: 4px; height: 4px; background: var(--yellow); border-radius: 50%; }

.hero__rule { display: flex; align-items: center; gap: 0.8rem; margin-top: 2.2rem; color: var(--yellow); font: 800 0.75rem/1 var(--display); letter-spacing: 0.12em; }
.hero__rule::after { height: 1px; flex: 1; content: ""; background: linear-gradient(90deg, var(--yellow), transparent); }

.access { padding-block: 3.3rem 4.5rem; }
.section-heading { margin-bottom: 1.5rem; }
.section-heading h2 {
  max-width: 700px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.portal-grid { display: grid; gap: 1rem; }

.portal-card {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.45rem;
  background: linear-gradient(150deg, rgba(26, 26, 26, 0.96), rgba(10, 10, 10, 0.97));
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.portal-card::after, .store-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 54%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--yellow));
}

.portal-card:hover { transform: translateY(-3px); border-color: rgba(243, 198, 0, 0.72); box-shadow: 0 28px 72px rgba(0, 0, 0, 0.46), 0 0 35px rgba(243, 198, 0, 0.08); }

.portal-card--featured {
  background:
    radial-gradient(circle at 92% 12%, rgba(243, 198, 0, 0.17), transparent 13rem),
    linear-gradient(150deg, rgba(30, 29, 20, 0.98), rgba(8, 8, 8, 0.98));
  border-color: rgba(243, 198, 0, 0.56);
}

.portal-card__topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.portal-card__icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 1.55rem; color: var(--yellow); }
.portal-card__icon svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.portal-card__icon--facebook svg { fill: currentColor; stroke: none; }

.badge {
  padding: 0.4rem 0.65rem;
  color: var(--ink);
  background: var(--yellow);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
  transform: skewX(-4deg);
}

.portal-card__watermark {
  position: absolute;
  top: 0.35rem;
  right: 0.9rem;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--display);
  font-size: 7rem;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.portal-card h3, .store-card h2 {
  position: relative;
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.portal-card p { position: relative; margin: 0 0 0.75rem; color: #e0e0da; font-size: 1rem; line-height: 1.55; }
.portal-card .portal-card__detail { color: var(--muted); font-size: 0.9rem; }

.button {
  position: relative;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding: 0.82rem 1rem;
  color: var(--text);
  background: #181818;
  border: 1px solid rgba(243, 198, 0, 0.68);
  border-radius: 5px;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.button:hover { color: #050505; background: var(--yellow-bright); transform: translateY(-2px); }
.button--yellow { color: #070707; background: var(--yellow); border-color: var(--yellow); }
.button--yellow:hover { background: #ffe346; }
.button--wide { width: min(100%, 420px); margin-top: 0; justify-content: center; }

.platform-note { margin: 0.65rem 0 0 !important; color: var(--muted) !important; font-size: 0.7rem !important; letter-spacing: 0.08em; text-transform: uppercase; }

.site-footer { background: #050505; border-top: 1px solid var(--line); }
.site-footer__main { display: grid; gap: 1.6rem; padding-block: 2rem; }
.site-footer p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.site-footer .site-footer__club { color: var(--text); font: 900 1.25rem/1.1 var(--display); letter-spacing: 0.035em; text-transform: uppercase; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.65rem 1.25rem; }
.site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 0.88rem; font-weight: 700; text-underline-offset: 4px; }
.site-footer nav a:hover { color: var(--yellow); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem; padding-block: 1rem 1.3rem; color: #777; border-top: 1px solid rgba(255,255,255,0.07); font-size: 0.72rem; }

/* Page de téléchargement */
.download-page { position: relative; min-height: 100vh; }
.download-page::before { position: fixed; z-index: -1; background: radial-gradient(circle at 50% 0, rgba(243,198,0,.14), transparent 26rem); }
.download-shell { padding-block: 2rem 3rem; text-align: center; }
.download-hero { position: relative; max-width: 850px; margin-inline: auto; }
.download-logo { width: clamp(96px, 26vw, 132px); display: block; margin: 0 auto 1.5rem; border: 2px solid rgba(243,198,0,.72); border-radius: 8px; box-shadow: 0 0 42px rgba(243,198,0,.16); }
.download-logo img { width: 100%; border-radius: 6px; }
.download-hero h1 { font-size: clamp(2.9rem, 11vw, 5.7rem); }
.download-intro { max-width: 600px; margin: 1.25rem auto 0; color: var(--muted); font-size: 1.05rem; }

.loading-line { width: min(100%, 330px); height: 3px; margin: 1.5rem auto 0; overflow: hidden; background: #242424; }
.loading-line span { display: block; width: 100%; height: 100%; background: var(--yellow); transform-origin: left; animation: redirect-progress 1.1s linear both; }
@keyframes redirect-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.device-redirect { display: grid; justify-items: center; gap: 1rem; margin: 1.4rem auto 0; }
.device-redirect[hidden] { display: none; }
.device-redirect p { margin: 0; color: var(--muted); }
.text-button { min-height: 48px; padding: 0.65rem; color: var(--muted); background: transparent; border: 0; font: 700 0.9rem/1.3 var(--body); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.text-button:hover { color: var(--yellow); }

.store-grid { display: grid; gap: 1rem; margin-top: 2.5rem; text-align: left; }
.store-grid[hidden] { display: none; }
.store-card { position: relative; overflow: hidden; padding: 1.5rem; background: rgba(16,16,16,.94); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.store-card__number { margin: 0 0 0.35rem; color: var(--yellow); font: 900 .75rem/1 var(--display); letter-spacing: .18em; }
.store-badge-link { width: 180px; min-height: 60px; display: grid; align-items: center; margin: 1.1rem 0 1.5rem; }
.store-badge-link img { width: 100%; height: auto; }
.qr-frame { width: 192px; min-height: 192px; display: grid; place-items: center; padding: 10px; background: #fff; border: 4px solid #fff; border-radius: 4px; }
.qr-frame svg { width: 100%; height: auto; }
.scan-label { margin: .65rem 0 1.3rem; color: var(--muted); font-size: .82rem; }
.store-card .button { max-width: 350px; margin-top: 0; }
.back-link { min-height: 48px; display: inline-flex; align-items: center; margin-top: 2rem; color: var(--text); font-weight: 800; text-underline-offset: 4px; }
.back-link:hover { color: var(--yellow); }
.store-legal { max-width: 780px; margin: 1.4rem auto 0; color: #777; font-size: .72rem; line-height: 1.5; }
.noscript-box { max-width: 650px; margin: 2rem auto; padding: 1.5rem; background: #111; border: 1px solid var(--yellow-dark); }
.noscript-box h2 { font-family: var(--display); text-transform: uppercase; }
.noscript-box .button { margin: .5rem; }

.reveal { animation: rise-in 600ms cubic-bezier(.2,.75,.25,1) both; }
.reveal--1 { animation-delay: 70ms; }
.reveal--2 { animation-delay: 150ms; }
.reveal--3 { animation-delay: 220ms; }
.reveal--4 { animation-delay: 290ms; }
.reveal--5 { animation-delay: 360ms; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 680px) {
  .shell { width: min(100% - 3rem, 1180px); }
  .hero { min-height: 500px; }
  .brand-lockup { grid-template-columns: auto 1fr; align-items: center; justify-items: start; text-align: left; }
  .hero__services { justify-content: flex-start; }
  .portal-grid, .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__main { grid-template-columns: 1fr auto; align-items: center; }
  .site-footer nav { justify-content: flex-end; }
  .download-shell { padding-top: 3rem; }
}

@media (min-width: 1040px) {
  .portal-page {
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto;
  }

  .portal-page .shell { width: min(calc(100% - 3rem), 1440px); }
  .portal-page main { min-height: 0; display: grid; }

  .hero { min-height: 135px; height: clamp(135px, 18svh, 180px); align-items: center; }
  .hero__inner { padding-block: 1rem; }
  .brand-lockup { gap: 1.15rem; }
  .brand-logo { width: 92px; }
  .hero h1 { font-size: clamp(2.7rem, 4vw, 4.2rem); line-height: .82; }
  .hero__services { display: none; }
  .hero__rule { display: none; }

  .access {
    min-height: 0;
    height: 100%;
    display: grid;
    align-content: center;
    gap: 1rem;
    padding-block: 1rem;
  }
  .section-heading { margin-bottom: 0; }
  .section-heading .eyebrow { margin-bottom: .25rem; }
  .section-heading h2 { font-size: clamp(1.9rem, 2.5vw, 2.65rem); }
  .portal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .portal-card { min-height: 330px; height: clamp(330px, 45svh, 430px); padding: 1.15rem; }
  .portal-card--featured { grid-column: span 1; }
  .portal-card__icon { width: 38px; height: 38px; margin-bottom: .85rem; }
  .portal-card__icon svg { width: 35px; height: 35px; }
  .portal-card h3 { font-size: clamp(1.35rem, 1.55vw, 1.7rem); }
  .portal-card__watermark { font-size: 5.5rem; }
  .portal-card p { margin-bottom: .55rem; line-height: 1.45; }
  .portal-card .portal-card__detail { font-size: .82rem; line-height: 1.45; }
  .portal-card .button { min-height: 48px; padding: .65rem .85rem; font-size: .85rem; }
  .platform-note { margin-top: .4rem !important; }

  .site-footer__main { padding-block: .55rem; }
  .site-footer__legal { padding-block: .45rem .6rem; }

  .download-shell {
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    align-items: center;
    padding-block: 1rem;
  }
  .download-logo { width: 74px; margin-bottom: .55rem; }
  .download-hero .eyebrow { margin-bottom: .3rem; }
  .download-hero h1 { font-size: clamp(2.65rem, 4.4vw, 4rem); }
  .download-intro { margin-top: .65rem; }
  .download-page .store-grid { width: 100%; margin-top: 1rem; align-self: center; }
  .download-page .store-card {
    min-height: 230px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 164px;
    grid-template-areas:
      "number qr"
      "title qr"
      "badge qr"
      "button scan";
    align-items: center;
    gap: .35rem 1rem;
    padding: 1.25rem;
  }
  .download-page .store-card__number { grid-area: number; }
  .download-page .store-card h2 { grid-area: title; margin-bottom: 0; font-size: clamp(1.8rem, 2.4vw, 2.5rem); }
  .download-page .store-badge-link { grid-area: badge; width: 160px; min-height: 48px; margin: .35rem 0; }
  .download-page .qr-frame { grid-area: qr; width: 164px; min-height: 164px; padding: 7px; }
  .download-page .scan-label { grid-area: scan; margin: 0; text-align: center; font-size: .72rem; line-height: 1.3; }
  .download-page .store-card .button { grid-area: button; width: min(100%, 290px); }
  .download-page .back-link { margin-top: .5rem; }
  .download-page .store-legal { margin-top: .25rem; }
}

@media (max-width: 374px) {
  .shell { width: min(100% - 1.25rem, 1180px); }
  .portal-card { padding: 1.2rem; }
  .hero h1 { font-size: 2.8rem; }
  .button { font-size: .84rem; }
}

@media (max-width: 679px) {
  .hero h1 { font-size: clamp(2.15rem, 11vw, 3rem); letter-spacing: -0.055em; }
  .download-hero h1 { font-size: clamp(2.15rem, 10vw, 3rem); letter-spacing: -0.055em; }
}

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