/* Polices de l'app, servies d'ici : aucune requête vers un tiers. */
@font-face { font-family: Zino; src: url(fonts/Montserrat-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: Zino; src: url(fonts/Montserrat-Bold.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: Zino; src: url(fonts/Montserrat-Black.ttf); font-weight: 900; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #0D0B1E;
  --ink: #17142E;
  --line: #2C2750;
  --text: #E8E6F5;
  --mute: #A29EBF;
  --cyan: #00CFFF;
  --pink: #FF2A7B;
  --gold: #FFC828;
  --ice: #9DEFFF;
}
* { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden; color: var(--text);
  font: 500 17px/1.6 Zino, -apple-system, "Segoe UI", sans-serif;
  background: var(--night);
}
a { color: var(--cyan); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* Langue, action */
.hero { position: relative; isolation: isolate; }
.pitch { min-width: 0; }
.lang { position: absolute; top: 14px; right: 0; z-index: 1; font-weight: 700; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 26px; animation: rise .7s 1.4s both; }
.cta {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 28px; border-radius: 28px;
  background: var(--ice); color: var(--night); font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform 150ms cubic-bezier(.33, 1, .68, 1);
}
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: scale(.97); transition-duration: 90ms; }

/* Cadre de téléphone : un bord suffit, pas de halo coloré */
.phone {
  padding: clamp(5px, .7vw, 8px); border-radius: clamp(20px, 3vw, 38px); background: #05040F;
  box-shadow: 0 0 0 1px #FFFFFF1F, 0 24px 54px #000B;
}
.phone img, .phone video { display: block; width: 100%; height: auto; border-radius: clamp(15px, 2.4vw, 30px); }
.hero-phone { animation: rise .7s 1.1s both; }

/* Enseigne */
header { padding: clamp(36px, 8vw, 84px) 0 0; }
.sign {
  margin: 0;
  font-size: clamp(112px, 30vw, 330px);
}
.sign span { display: flow-root; position: relative; }
/* Le SVG garde de la marge pour son halo : on la rattrape pour caler les lettres sur le texte */
.sign img { display: block; width: 3.16em; max-width: none; height: auto; margin: -.29em 0 -.29em -.32em; }
.sign .halo { position: absolute; top: 0; left: 0; will-change: opacity; animation: breathe 6s linear infinite; }
/* Mêmes valeurs que NeonLogo : respiration lente et deux micro-coupures. */
@keyframes breathe {
  0% { opacity: 1; }
  30% { opacity: .7; }
  60%, 62% { opacity: 1; }
  62.01%, 63% { opacity: .25; }
  63.01%, 66% { opacity: 1; }
  66.01%, 67% { opacity: .35; }
  67.01%, 100% { opacity: 1; }
}
.tagline {
  margin: clamp(18px, 3vw, 30px) 0 0; max-width: 17em; font-weight: 700; line-height: 1.12;
  font-size: clamp(30px, 5.6vw, 58px); letter-spacing: -.02em;
  animation: rise .7s 1.1s both;
}
.tagline em { font-style: normal; color: var(--cyan); }
.lede { max-width: 33em; margin: 16px 0 0; color: var(--mute); animation: rise .7s 1.25s both; }
.soon { margin: 0; color: var(--mute); font-size: 14px; line-height: 1.35; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Compteur : la promesse, en un chiffre */
.stake {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 4vw, 44px); align-items: center;
  margin-top: clamp(44px, 8vw, 84px); padding: clamp(20px, 4vw, 36px) 0;
  border-block: 1px solid var(--line);
}
.stake b {
  font-weight: 900; line-height: 1; color: var(--gold); letter-spacing: -.04em;
  font-size: clamp(76px, 17vw, 176px); font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; white-space: nowrap;
}
/* Rouleau : position finale par défaut (le 0, 11e chiffre), le script arme le départ. */
.reel { --cell: 1.3em; display: block; height: var(--cell); margin-block: -.15em; padding-inline: .1em; margin-inline: -.1em; overflow: hidden; mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); }
.reel span { display: block; transform: translateY(calc(var(--cell) * -10)); transition: transform 1.6s cubic-bezier(.33, 1, .68, 1); }
.reel i { display: block; height: var(--cell); line-height: var(--cell); font-style: normal; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.stake p { margin: 0; max-width: 29em; }
.stake strong { display: block; font-size: clamp(21px, 3.2vw, 31px); line-height: 1.2; font-weight: 700; margin-bottom: 8px; }
.stake p span { color: var(--mute); }

/* Éventail de jeux */
.fan {
  display: flex; justify-content: center; list-style: none;
  margin: clamp(50px, 8vw, 92px) 0 0; padding: 0 0 22px;
}
.fan li {
  --r: 0deg; --y: 0px; --dx: calc((4 - var(--i)) * 80%);
  flex: 0 0 auto; width: clamp(140px, 18vw, 214px); margin-inline: clamp(-58px, -2.6vw, -22px);
  transform: translateY(var(--y)) rotate(var(--r)); transform-origin: 50% 120%;
  transition: transform 200ms cubic-bezier(.33, 1, .68, 1); position: relative;
}
.fan li:nth-child(1) { --i: 1; --game: #FF2A7B; --r: -21deg; --y: 42px; }
.fan li:nth-child(2) { --i: 2; --game: #FF3D00; --r: -14deg; --y: 18px; }
.fan li:nth-child(3) { --i: 3; --game: #E0245E; --r: -7deg;  --y: 4px; }
.fan li:nth-child(4) { --i: 4; --game: #00CFFF; --r: -1deg; }
.fan li:nth-child(5) { --i: 5; --game: #FFC828; --r: 5deg;   --y: 2px; }
.fan li:nth-child(6) { --i: 6; --game: #FF9100; --r: 11deg;  --y: 14px; }
.fan li:nth-child(7) { --i: 7; --game: #00E676; --r: 17deg;  --y: 34px; }
.fan li:hover { transform: translateY(calc(var(--y) - 26px)) rotate(var(--r)) scale(1.05); z-index: 2; }
.fan.in li { animation: open 300ms cubic-bezier(.33, 1, .68, 1) calc(var(--i) * 45ms) backwards; }
@keyframes open { from { opacity: 0; transform: translateX(var(--dx)) translateY(70px) rotate(0deg); } }
.card {
  display: block; margin: 0; overflow: hidden; border-radius: 20px; background: var(--ink);
  border: 1px solid color-mix(in srgb, var(--game) 55%, transparent); box-shadow: 0 16px 34px #0009;
  transition: border-color 200ms cubic-bezier(.33, 1, .68, 1);
}
.fan li:hover .card { border-color: var(--game); }
.card img { display: block; width: 100%; aspect-ratio: 3 / 3.6; object-fit: cover; transition: transform 200ms cubic-bezier(.33, 1, .68, 1); }
.fan li:hover img { transform: scale(1.06); }
/* À gauche : la carte suivante recouvre le côté droit. */
.card figcaption { padding: 8px 10px; font-weight: 700; font-size: clamp(12px, 1.25vw, 14px); line-height: 1.2; }

/* Bande défilante */
.tape {
  overflow: hidden; margin: 32px -4vw 0; padding: 11px 0; transform: rotate(-1.4deg);
  background: var(--pink); color: #17061A; font-weight: 900; font-size: 18px; white-space: nowrap;
}
.tape div { display: inline-block; animation: slide 34s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Captures de l'app */
.shots, .games, .about, .beta { margin-top: clamp(56px, 8vw, 88px); }
.shots h2, .games h2, .about h2, .beta h2 { margin: 0 0 clamp(20px, 3vw, 30px); font-size: clamp(28px, 4.4vw, 44px); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2.4vw, 28px); margin: 0; padding: 0; list-style: none; }
.phones figure { margin: 0; }
.phones li:nth-child(even) { margin-top: clamp(20px, 4vw, 48px); }
.phones li:nth-child(1) { --i: 0; --d: 22; }
.phones li:nth-child(2) { --i: 1; --d: -18; }
.phones li:nth-child(3) { --i: 2; --d: 30; }
.phones li:nth-child(4) { --i: 3; --d: -14; }
.phones figcaption { margin-top: 12px; color: var(--mute); font-size: 14px; line-height: 1.35; }

/* Les 16 jeux, rangés comme dans l'app */
.rayon { margin-top: 30px; }
.rayon h3 { margin: 0 0 6px; padding-left: 8px; border-left: 4px solid var(--head); color: var(--head); font-size: 12px; font-weight: 700; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; }
.rayon ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 34px; margin: 0; padding: 0; list-style: none; }
.rayon li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rayon li b { display: block; color: var(--game); font-size: 20px; font-weight: 700; line-height: 1.25; }
.rayon li span { display: block; margin-top: 3px; color: var(--mute); font-size: 16px; line-height: 1.45; }
.serre { position: relative; padding-right: 66px !important; }
.plant { position: absolute; right: 0; top: 50%; width: 52px; height: 73px; translate: 0 -50%; color: var(--game); }
.plant > g { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 300ms cubic-bezier(.33, 1, .68, 1), opacity 150ms; }
.js .plant > g:not(.on) { transform: scale(0); opacity: 0; }
.classics { margin: 12px 0 0; font-size: 18px; font-weight: 700; line-height: 1.5; }
.classics + p { margin: 4px 0 0; color: var(--mute); font-size: 16px; }

/* Autour des jeux */
.about dl { display: grid; grid-template-columns: minmax(150px, 13em) 1fr; margin: 0; }
.about dt, .about dd { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.about dt { font-weight: 700; }
.about dd { color: var(--mute); }

.beta { margin-bottom: clamp(48px, 7vw, 76px); }
.beta p { margin: 0 0 22px; max-width: 34em; color: var(--mute); }

/* Arrivée à l'écran */
.reveal { transition: opacity 300ms cubic-bezier(.33, 1, .68, 1), transform 300ms cubic-bezier(.33, 1, .68, 1); transition-delay: calc(var(--i, 0) * 60ms); }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal:not(.in) { opacity: 0; transform: translateY(16px); }
  .js .fan:not(.in) li { opacity: 0; }
  .js .stake:not(.in) .reel span { transform: none; }
}

footer { padding: 26px 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--mute); font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; font-weight: 700; }
footer p { margin: 6px 0 0; max-width: 46em; }
.age { display: inline-block; margin-right: 8px; padding: 0 7px; border: 1.5px solid var(--gold); border-radius: 6px; color: var(--gold); font-weight: 900; font-size: 13px; }

@media (min-width: 861px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 56px); align-items: center; }
  .hero .sign { font-size: clamp(150px, 23vw, 300px); }
  .hero .tagline { font-size: clamp(30px, 4.2vw, 50px); }
  .hero-phone { width: clamp(230px, 26vw, 310px); }
}
@supports (animation-timeline: view()) {
  @media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
    .phones figure { animation: drift linear both; animation-timeline: view(); }
    @keyframes drift { from { translate: 0 calc(var(--d) * 1px); } to { translate: 0 calc(var(--d) * -1px); } }
  }
}
@media (max-width: 860px) {
  .hero-phone { width: min(70vw, 300px); margin: 34px auto 0; }
  .fan { justify-content: flex-start; overflow-x: auto; margin-inline: -20px; padding: 44px 20px 24px; gap: 12px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .fan li { --r: 0deg !important; --y: 0px !important; --dx: 0px; flex-basis: 158px; margin: 0; scroll-snap-align: center; }
}
@media (max-width: 620px) {
  .stake { grid-template-columns: 1fr; }
  .rayon ul { grid-template-columns: 1fr; }
  .about dl { grid-template-columns: 1fr; }
  .about dd { padding-top: 0; border-top: 0; }
  .phones { display: flex; overflow-x: auto; margin-inline: -20px; padding: 0 20px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .phones li { flex: 0 0 62vw; max-width: 250px; scroll-snap-align: center; }
  .phones li:nth-child(even) { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
