/* =========================================================
   BETA-PROGRAM.CSS — page /:lang/beta-program
   Fond FIXE animé : bande bleue HORIZONTALE (noir haut/bas),
   balayage qui défile. Le contenu glisse par-dessus.
   Mockup + popups flottants (parallaxe souris douce). FAQ.
   Aucune "card". Titres Inter lourds.
   ========================================================= */

/* Polices auto-hébergées (fonts.css couvre Inter 400 à 900). */
@import url('/assets/css/fonts.css');

.beta-page {
  position: relative;
  display: block;
  color: var(--ff-white);
  font-family: 'Inter', sans-serif;
  background-color: var(--ff-black);
  background-image:
    linear-gradient(110deg, transparent 38%, var(--ff-beta-sweep) 50%, transparent 62%),
    linear-gradient(180deg, var(--ff-black) 0%, var(--ff-beta-navy-950) 15%, var(--ff-beta-navy-800) 35%, var(--ff-beta-navy-600) 50%, var(--ff-beta-navy-800) 65%, var(--ff-beta-navy-950) 85%, var(--ff-black) 100%);
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  background-size: 220% 100%, 100% 100%;
  background-position: 0% 50%, 50% 50%;
  animation: bpSweep 11s ease-in-out infinite alternate;
}
@keyframes bpSweep {
  from { background-position: 0% 50%,   50% 50%; }
  to   { background-position: 100% 50%, 50% 50%; }
}

.beta-container { position: relative; z-index: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* --- Hero --- */
.beta-hero { padding: 118px 0 8px; text-align: center; }
.beta-title { font-weight: 800; font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 18px; color: var(--ff-white); animation: bpFadeUp 0.7s cubic-bezier(.2,.7,.2,1) 0.04s both; }
.beta-subtitle { font-weight: 500; font-size: clamp(1.05rem, 2.4vw, 1.35rem); line-height: 1.55; color: var(--ff-beta-text); max-width: 680px; margin: 0 auto; animation: bpFadeUp 0.7s cubic-bezier(.2,.7,.2,1) 0.1s both; }

/* --- Scène : mockup + popups flottants --- */
.beta-stage { position: relative; height: 460px; margin: 34px 0 0; display: flex; align-items: center; justify-content: center; }

.bp-window-wrap { position: relative; z-index: 2; transition: transform 0.4s cubic-bezier(.2,.7,.2,1); will-change: transform; }

.bp-window {
  position: relative; width: 560px; max-width: 100%;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--ff-beta-window-top) 0%, var(--ff-beta-window-bottom) 100%);
  border: 1px solid var(--ff-beta-window-line);
  box-shadow: 0 44px 100px var(--ff-beta-window-shadow), 0 0 0 1px var(--ff-beta-glass-3) inset;
  overflow: hidden;
  transform: perspective(1500px) rotateX(6deg) rotateY(-7deg);
  animation: bpFadeUp 0.8s cubic-bezier(.2,.7,.2,1) 0.18s both, bpTilt 10s ease-in-out 1s infinite;
}
.bp-window::after { content: ""; position: absolute; inset: -1px; border-radius: 18px; box-shadow: 0 0 70px var(--ff-beta-glow-30) inset; pointer-events: none; }

.bp-window__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--ff-beta-glass-3); border-bottom: 1px solid var(--ff-beta-glass-6); }
.bp-window__bar .d { width: 11px; height: 11px; border-radius: 50%; }
.bp-window__bar .d.r { background: var(--ff-beta-dot-red); } .bp-window__bar .d.y { background: var(--ff-beta-dot-yellow); } .bp-window__bar .d.g { background: var(--ff-beta-dot-green); }
.bp-window__logo { margin-left: 14px; height: 18px; width: auto; display: block; opacity: 0.95; }
.bp-window__beta { margin-left: auto; font-size: 0.66rem; font-weight: 800; letter-spacing: 1px; color: var(--ff-beta-ink); background: linear-gradient(100deg, var(--ff-beta-sky-300), var(--ff-beta-purple-300)); padding: 3px 9px; border-radius: 6px; }

.bp-window__body { padding: 18px; }
.bp-banner { position: relative; height: 90px; border-radius: 12px; overflow: hidden; background: linear-gradient(115deg, var(--ff-beta-blue-800) 0%, var(--ff-beta-purple-700) 60%, var(--ff-beta-blue-500) 120%); display: flex; align-items: flex-end; padding: 12px; margin-bottom: 16px; }
.bp-banner::before { content: ""; position: absolute; top: 0; left: -60%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, var(--ff-beta-sheen), transparent); transform: skewX(-18deg); animation: bpSheen 4.5s ease-in-out infinite; }
.bp-banner__label { font-size: 0.64rem; font-weight: 800; letter-spacing: 1.5px; color: var(--ff-white); background: var(--ff-beta-label-bg); padding: 4px 9px; border-radius: 6px; }
.bp-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-radius: 10px; background: var(--ff-beta-row-bg); border: 1px solid var(--ff-beta-row-line); margin-bottom: 10px; }
.bp-row__label { font-size: 0.86rem; font-weight: 600; color: var(--ff-beta-row-text); }
.bp-switch { width: 42px; height: 24px; border-radius: 999px; position: relative; background: var(--ff-beta-switch-off); animation: bpSwitchBg 4s ease-in-out infinite; }
.bp-switch__knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ff-white); animation: bpSwitchKnob 4s ease-in-out infinite; }
.bp-progress { width: 150px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--ff-white-a10); }
.bp-progress__fill { display: block; height: 100%; border-radius: 999px; width: 30%; background: linear-gradient(90deg, var(--ff-beta-sky-300), var(--ff-beta-purple-300)); animation: bpFill 5s ease-in-out infinite; }
.bp-skelrow { height: 10px; margin: 12px 2px 0; }
.bp-skelrow span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ff-white-a10) 25%, var(--ff-beta-shimmer) 37%, var(--ff-white-a10) 63%); background-size: 400% 100%; animation: bpShimmer 2.2s ease-in-out infinite; }

/* Popups flottants — la CARTE est UN SEUL élément qui flotte d'un bloc.
   .bp-pop = wrapper positionné (parallaxe souris uniquement).
   .pop-in = la carte visible (fond + bordure + icône + texte) qui flotte. */
.bp-pop {
  position: absolute; z-index: 4;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
  animation: bpFadeUp 0.7s cubic-bezier(.2,.7,.2,1) both;
}
.bp-pop .pop-in {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 15px; border-radius: 13px;
  background: var(--ff-beta-pop-bg);
  border: 1px solid var(--ff-beta-pop-line);
  box-shadow: 0 18px 42px var(--ff-black-a50);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 0.86rem; font-weight: 700; color: var(--ff-beta-pop-text); white-space: nowrap;
  animation: bpFloat 6.5s ease-in-out infinite;
}
.bp-pop .ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 0.86rem; color: var(--ff-white); flex-shrink: 0; }

.bp-pop--features { top: 60px; right: 1%; animation-delay: 0.5s; }
.bp-pop--features .ic { background: linear-gradient(135deg, var(--ff-beta-blue-500), var(--ff-beta-blue-700)); }
.bp-pop--features .pop-in { animation-duration: 7s; }
.bp-pop--games { top: 154px; left: 1%; animation-delay: 0.62s; }
.bp-pop--games .ic { background: linear-gradient(135deg, var(--ff-beta-violet-500), var(--ff-beta-violet-700)); }
.bp-pop--games .pop-in { animation-duration: 8s; animation-direction: reverse; }
.bp-pop--seasons { bottom: 56px; right: 5%; animation-delay: 0.74s; }
.bp-pop--seasons .ic { background: linear-gradient(135deg, var(--ff-beta-cyan-500), var(--ff-beta-cyan-700)); }
.bp-pop--seasons .pop-in { animation-duration: 6.8s; }

/* --- "Comment ça marche" : texte, pas de cards --- */
.beta-how { padding: 8px 0 0; }
.beta-how__steps { display: flex; gap: 36px; max-width: 940px; margin: 0 auto; }
.beta-step { flex: 1; text-align: center; animation: bpFadeUp 0.7s cubic-bezier(.2,.7,.2,1) both; }
.beta-step:nth-child(1) { animation-delay: 0.20s; } .beta-step:nth-child(2) { animation-delay: 0.30s; } .beta-step:nth-child(3) { animation-delay: 0.40s; }
.beta-step__n { width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.98rem; color: var(--ff-white); background: linear-gradient(135deg, var(--ff-beta-blue-500), var(--ff-beta-blue-700)); animation: bpPulseN 2.8s ease-in-out infinite; }
.beta-step:nth-child(2) .beta-step__n { animation-delay: 0.5s; } .beta-step:nth-child(3) .beta-step__n { animation-delay: 1s; }
.beta-step h3 { font-weight: 700; font-size: 1.12rem; margin: 0 0 6px; color: var(--ff-white); }
.beta-step p  { font-size: 0.95rem; line-height: 1.6; color: var(--ff-beta-text-muted); margin: 0; }

/* --- Intro + action (texte direct sur le fond, pas de card) --- */
.beta-action-wrap { padding: 56px 0 70px; text-align: center; }
.beta-intro { font-size: 1.1rem; line-height: 1.8; color: var(--ff-beta-text); max-width: 760px; margin: 0 auto 14px; animation: bpFadeUp 0.7s cubic-bezier(.2,.7,.2,1) 0.14s both; }
.beta-intro--sub { font-size: 1rem; color: var(--ff-beta-text-muted); margin-bottom: 44px; }
.beta-action { max-width: 620px; margin: 0 auto; }
.beta-action__title { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.01em; margin: 0 0 12px; color: var(--ff-white); }
.beta-action__text  { font-size: 1.05rem; line-height: 1.65; color: var(--ff-beta-text-soft); margin: 0 auto 26px; max-width: 520px; }

/* Bouton — pulse lumineux (box-shadow) + hover repris de la navbar (.nav-btn-primary) */
.beta-action .btn { animation: bpBtnGlow 2.6s ease-in-out infinite; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.beta-action .btn.btn-light:hover { background: transparent; color: var(--ff-white); border-color: var(--ff-white); }

/* Bloc éligibilité (pas de card) */
.beta-req { list-style: none; margin: 4px auto 26px; padding: 0; max-width: 460px; text-align: left; }
.beta-req li { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--ff-beta-req-line); font-size: 1rem; color: var(--ff-beta-text); }
.beta-req li:last-child { border-bottom: 0; }
.beta-req li i { font-size: 1.15rem; width: 20px; text-align: center; flex-shrink: 0; }
.beta-req li.ok i { color: var(--ff-beta-mint); }
.beta-req li.no i { color: var(--ff-beta-text-off); }
.beta-req li span { flex: 1; }
.beta-req small { color: var(--ff-beta-gold); font-weight: 600; }
.beta-req__cta { color: var(--ff-beta-link); text-decoration: underline; font-size: 0.9rem; white-space: nowrap; }

/* Badge de statut */
.beta-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.2px; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.beta-badge i { font-size: 0.78rem; }
.beta-badge--pending  { background: var(--ff-beta-gold-bg); color: var(--ff-beta-gold); border: 1px solid var(--ff-beta-gold-line); }
.beta-badge--accepted { background: var(--ff-beta-mint-bg);  color: var(--ff-beta-mint); border: 1px solid var(--ff-beta-mint-line); }

/* --- FAQ (accordéon, pas de cards) --- */
.beta-faq { padding: 30px 0 110px; }
.beta-faq__title { text-align: center; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.01em; margin: 0 0 8px; color: var(--ff-white); }
.beta-faq__sub { text-align: center; color: var(--ff-beta-text-muted); margin: 0 auto 30px; }
.faq { max-width: 760px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--ff-beta-line); }
.faq__item:first-child { border-top: 1px solid var(--ff-beta-line); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; color: var(--ff-white); font-family: inherit; font-size: 1.05rem; font-weight: 600; padding: 20px 44px 20px 0; cursor: pointer; position: relative; }
.faq__q::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; line-height: 1; color: var(--ff-beta-link); transition: transform 0.25s ease; }
.faq__item.open .faq__q::after { content: '−'; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.32s ease; }
.faq__a p { margin: 0 0 20px; padding-right: 44px; color: var(--ff-beta-faq-text); line-height: 1.7; font-size: 0.98rem; }

/* --- Animations --- */
@keyframes bpFadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; } }
@keyframes bpFloat  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bpTilt { 0%,100% { transform: perspective(1500px) rotateX(6deg) rotateY(-7deg) translateY(0); } 50% { transform: perspective(1500px) rotateX(3deg) rotateY(-2deg) translateY(-12px); } }
@keyframes bpSheen  { 0% { left: -60%; } 55%,100% { left: 130%; } }
@keyframes bpShimmer{ 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes bpFill   { 0% { width: 22%; } 50% { width: 78%; } 100% { width: 22%; } }
@keyframes bpSwitchBg  { 0%,45% { background: var(--ff-beta-switch-off); } 55%,100% { background: var(--ff-info); } }
@keyframes bpSwitchKnob{ 0%,45% { left: 3px; } 55%,100% { left: 21px; } }
@keyframes bpPulseN { 0%,100% { box-shadow: 0 0 0 6px var(--ff-beta-glow-14); } 50% { box-shadow: 0 0 0 11px var(--ff-beta-glow-4); } }
@keyframes bpBtnGlow { 0%,100% { box-shadow: 0 12px 30px var(--ff-beta-glow-30); } 50% { box-shadow: 0 14px 46px var(--ff-beta-glow-58); } }

/* --- Carte membre (pending / accepted) --- */
.beta-card { max-width: 560px; margin: 0 auto; text-align: left; padding: 26px 28px; border-radius: 18px; background: var(--ff-beta-card-bg); border: 1px solid var(--ff-beta-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 24px 60px var(--ff-beta-card-shadow); animation: bpFadeUp 0.6s cubic-bezier(.2,.7,.2,1) 0.1s both; }
.beta-card .beta-action__title { text-align: left; }
.beta-card .beta-action__text { text-align: left; margin-left: 0; }
.beta-card__rows { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--ff-white-a10); }
.beta-card__rows li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 0.95rem; }
.beta-card__rows .k { color: var(--ff-beta-label); } .beta-card__rows .v { color: var(--ff-white); font-weight: 600; text-align: right; }

/* Cooldown (rouge) + bouton désactivé */
.beta-cooldown { color: var(--ff-beta-cooldown); font-weight: 600; font-size: 0.95rem; margin: 14px auto 0; max-width: 470px; }
.btn.is-disabled, .btn:disabled { opacity: 0.45; pointer-events: none; cursor: not-allowed; animation: none !important; box-shadow: none !important; }

/* Modal sombre (confirmation + éligibilité) */
.beta-modal { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 16px; }
.beta-modal.is-open { display: flex; }
.beta-modal__backdrop { position: absolute; inset: 0; background: var(--ff-beta-backdrop); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.beta-modal__panel { position: relative; width: 100%; max-width: 460px; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, var(--ff-beta-modal-top) 0%, var(--ff-beta-modal-bottom) 100%); border: 1px solid var(--ff-beta-modal-line); box-shadow: 0 40px 90px var(--ff-beta-modal-shadow); animation: bpFadeUp 0.3s cubic-bezier(.2,.7,.2,1) both; }
.beta-modal__panel::before { content: ''; display: block; height: 4px; background: linear-gradient(100deg, var(--ff-beta-blue-500), var(--ff-beta-purple-300)); }
.beta-modal__head { padding: 20px 22px 0; }
.beta-modal__head h3 { margin: 0; font-weight: 800; font-size: 1.2rem; color: var(--ff-white); }
.beta-modal__body { padding: 12px 22px 18px; color: var(--ff-beta-text-soft); font-size: 0.97rem; line-height: 1.6; }
.beta-modal__body p { margin: 0 0 12px; }
.beta-modal__body .beta-req { margin: 4px 0 0; }
.beta-modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 20px; }
.beta-modal__btn { padding: 10px 18px; border-radius: 9px; font-weight: 700; font-size: 0.9rem; font-family: inherit; cursor: pointer; border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.beta-modal__btn--ghost { background: transparent; color: var(--ff-beta-ghost-text); border-color: var(--ff-beta-ghost-line); }
.beta-modal__btn--ghost:hover { background: var(--ff-beta-glass-6); }
.beta-modal__btn--primary { background: var(--ff-white); color: var(--ff-beta-ink); border-color: var(--ff-white); }
.beta-modal__btn--primary:hover { background: transparent; color: var(--ff-white); border-color: var(--ff-white); }

/* --- Responsive --- */
@media (max-width: 980px) { .bp-pop--games { display: none; } }
@media (max-width: 860px) { .beta-how__steps { flex-direction: column; gap: 26px; max-width: 420px; } }
@media (max-width: 760px) {
  .beta-hero { padding: 92px 0 4px; }
  .beta-stage { height: auto; margin: 26px 0 6px; }
  .bp-window { transform: none; width: 100%; animation: bpFadeUp 0.8s ease 0.18s both; }
  .bp-pop { display: none; }
  .beta-action-wrap { padding: 44px 0 50px; }
  .beta-page { background-attachment: scroll, scroll; }
}

/* ── Invitations per-beta (état "membre accepté") ───────────────────────── */
.beta-invites { max-width: 560px; margin: 22px auto 0; text-align: left; }
.beta-invites__title { font-size: 1.05rem; font-weight: 800; color: var(--ff-white); margin: 0 0 14px; letter-spacing: -0.01em; }
.beta-invite { padding: 18px 20px; border-radius: 14px; background: var(--ff-beta-invite-bg); border: 1px solid var(--ff-beta-line); margin-bottom: 12px; }
.beta-invite__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.beta-invite__type { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ff-beta-label); font-weight: 700; }
.beta-invite__ok { font-size: 0.8rem; color: var(--ff-beta-mint); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.beta-invite__name { font-size: 1.15rem; font-weight: 800; color: var(--ff-white); margin: 0 0 6px; }
.beta-invite__desc { font-size: 0.95rem; line-height: 1.55; color: var(--ff-beta-text-soft); margin: 0 0 10px; }
.beta-invite__nda { font-size: 0.82rem; color: var(--ff-beta-nda); display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; }
.beta-invite__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.beta-invite__actions .btn { animation: none; }

/* Bouton secondaire clair (fantôme) pour "Refuser" */
.btn-ghost-light { background: transparent; color: var(--ff-beta-text-soft); border: 1px solid var(--ff-beta-ghost-btn-line); }
.btn-ghost-light:hover { color: var(--ff-white); border-color: var(--ff-white); background: var(--ff-beta-glass-6); }

/* Texte NDA dans le modal sombre + case à cocher */
.beta-nda-text { max-height: 240px; overflow-y: auto; padding: 14px 16px; margin-bottom: 14px; border-radius: 10px; background: var(--ff-beta-nda-bg); border: 1px solid var(--ff-beta-line); font-size: 0.9rem; line-height: 1.55; color: var(--ff-beta-text-soft); white-space: normal; }
.beta-nda-chk { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--ff-beta-text-soft); cursor: pointer; }
.beta-nda-chk input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }
