* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

::selection {
  color: #fff;
  background: rgba(99, 102, 241, 0.65);
}

:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.9);
  outline-offset: 3px;
}

:root {
  --brfa-primary: #6366f1;
  --brfa-discord: #5865f2;
  --brfa-dark: #0f172a;
  --brfa-panel: rgba(15, 23, 42, 0.88);
  --brfa-border: rgba(255, 255, 255, 0.12);
  --brfa-muted: #94a3b8;
}

img,
video,
iframe {
  max-width: 100%;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-nav-panel {
  display: none;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  letter-spacing: -0.035em;
}

h1 .text-primary,
h2 .text-primary {
  color: transparent !important;
  background: linear-gradient(90deg, #818cf8, #a5b4fc 42%, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
}

.glass-card {
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.glass-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 36%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.38) !important;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(99, 102, 241, 0.08) !important;
}

.glass-card:hover::after {
  opacity: 1;
}

nav.fixed {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

nav a.v15-active-link {
  color: #fff !important;
}

nav a.v15-nav-item {
  position: relative;
}

nav a.v15-nav-item::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, var(--brfa-primary), #22d3ee);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.55);
}

.v15-placeholder-link {
  display: none !important;
}

.v15-disabled-link {
  cursor: not-allowed !important;
  opacity: 0.62;
  filter: grayscale(0.15);
}

.v15-disabled-link::after {
  content: "Bientôt";
  display: inline-flex;
  margin-left: 0.55rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.14);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

main > .text-center:first-child,
main > .mb-16.text-center,
main > .mb-12.text-center {
  position: relative;
}

main > .text-center:first-child::after,
main > .mb-16.text-center::after,
main > .mb-12.text-center::after {
  display: block;
  width: min(14rem, 42vw);
  height: 2px;
  margin: 1.7rem auto 0;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.95), rgba(34, 211, 238, 0.7), transparent);
}

section[id] {
  scroll-margin-top: 7rem;
}

.form-field {
  display: grid;
  gap: 0.7rem;
}

.form-field span,
.form-field legend {
  color: #d1fae5;
  font-size: 0.95rem;
  font-weight: 800;
}

.form-field strong {
  color: #34d399;
}

.form-field input[type="text"],
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  color: #f8fafc;
  background: rgba(2, 44, 34, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.form-field input[type="text"]::placeholder,
.form-field textarea::placeholder {
  color: rgba(209, 250, 229, 0.38);
}

.form-field input[type="text"]:focus,
.form-field textarea:focus {
  border-color: rgba(52, 211, 153, 0.72);
  outline: none;
  background: rgba(2, 44, 34, 0.74);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.choice-grid label {
  display: flex;
  min-height: 3.2rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 0.9rem;
  color: #d1fae5;
  background: rgba(2, 44, 34, 0.44);
  font-weight: 700;
}

.choice-grid input {
  width: 1rem;
  height: 1rem;
  accent-color: #10b981;
}

a[href*="discord.gg"],
a[href*="forms.gle"],
a[href*="tebex"],
a[href^="fivem://"] {
  position: relative;
  isolation: isolate;
}

a[href*="discord.gg"]::before,
a[href*="forms.gle"]::before,
a[href*="tebex"]::before,
a[href^="fivem://"]::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  content: "";
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.5), rgba(16, 185, 129, 0.35));
  filter: blur(12px);
  transition: opacity 180ms ease;
}

a[href*="discord.gg"]:hover::before,
a[href*="forms.gle"]:hover::before,
a[href*="tebex"]:hover::before,
a[href^="fivem://"]:hover::before {
  opacity: 0.85;
}

.react-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 70;
  height: 3px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.05);
}

.react-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  background: linear-gradient(90deg, #6366f1, #10b981, #f59e0b);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.65);
}

.react-page-sheen {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.react-page-sheen span {
  position: absolute;
  width: 58vw;
  height: 1px;
  opacity: 0.22;
  filter: blur(1px);
  transform: translate3d(0, 0, 0);
}

.react-page-sheen span:first-child {
  top: 8.5rem;
  right: -10vw;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.8), transparent);
  transform: rotate(-10deg);
}

.react-page-sheen span:last-child {
  bottom: 7rem;
  left: -14vw;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.72), transparent);
  transform: rotate(-10deg);
}

.react-quicknav {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}

.react-quicknav-toggle,
.react-top-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
}

.react-quicknav-toggle {
  gap: 0.55rem;
  min-height: 46px;
  padding: 0 1rem;
  border-radius: 999px;
  font-weight: 800;
}

.react-quicknav-panel {
  width: min(22rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.15rem;
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.8rem) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.react-quicknav.is-open .react-quicknav-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.react-quicknav-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.react-quicknav-head strong {
  font-size: 0.95rem;
}

.react-quicknav-head small {
  color: #94a3b8;
  font-weight: 800;
  text-transform: uppercase;
}

.react-quicknav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.react-quicknav-grid a {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.react-quicknav-grid a:hover,
.react-quicknav-grid a.is-active {
  border-color: rgba(99, 102, 241, 0.7);
  color: #fff;
  background: rgba(99, 102, 241, 0.18);
  transform: translateY(-1px);
}

.react-quicknav-grid i {
  width: 1rem;
  text-align: center;
}

.react-top-button {
  position: fixed;
  right: 1.25rem;
  bottom: 5.25rem;
  z-index: 59;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.8rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.react-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.react-polished main {
  position: relative;
}

.react-polished main::before {
  position: fixed;
  top: 5rem;
  right: 0;
  left: 0;
  z-index: -1;
  height: 1px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.45), rgba(34, 211, 238, 0.28), transparent);
  opacity: 0.75;
}

.react-polished .react-polished-card {
  border-color: rgba(255, 255, 255, 0.13) !important;
  box-shadow: 0 18px 54px rgba(2, 6, 23, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  animation: react-card-rise 520ms ease both;
  animation-delay: calc(var(--react-card-index, 0) * 34ms);
}

.react-polished .react-polished-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 32%),
    radial-gradient(circle at 16% 0%, rgba(99, 102, 241, 0.12), transparent 34%);
  opacity: 0.9;
}

.react-polished .react-polished-card > * {
  position: relative;
  z-index: 1;
}

.react-polished .react-polished-card:hover {
  transform: translateY(-4px);
}

.react-polished .react-reveal-block {
  animation: react-section-rise 580ms ease both;
  animation-delay: calc(var(--react-block-index, 0) * 45ms);
}

.react-polished .react-heading-lockup {
  position: relative;
}

.react-polished .react-heading-lockup::before {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.55rem;
  border-radius: 999px;
  content: "";
  vertical-align: 0.12em;
  background: #22d3ee;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.65);
}

.react-page-signature {
  position: fixed;
  top: 6.1rem;
  right: 1.25rem;
  z-index: 46;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: min(26rem, calc(100vw - 2rem));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: none;
}

.react-page-signature span {
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.react-page-signature strong {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.react-page-signature i {
  color: #a5b4fc;
}

@keyframes react-card-rise {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes react-section-rise {
  from {
    opacity: 0;
    transform: translateY(0.9rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  body {
    background-attachment: scroll !important;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.85rem;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    transition: border-color 180ms ease, background 180ms ease;
  }

  .mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--tw-ring-color, #6366f1);
    outline-offset: 3px;
  }

  .mobile-menu-toggle i {
    font-size: 1.15rem;
  }

  .mobile-nav-panel {
    position: fixed;
    top: 4.9rem;
    right: 0.75rem;
    left: 0.75rem;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 52px;
    gap: 0.4rem;
    padding: 0.65rem;
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.97);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.6rem);
    transition: opacity 180ms ease, transform 180ms ease;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .react-page-sheen span {
    width: 88vw;
    opacity: 0.12;
  }

  .react-quicknav {
    display: none;
  }

  .react-top-button {
    right: 0.9rem;
    bottom: 0.9rem;
  }

  .react-page-signature {
    display: none;
  }

  .react-polished .react-polished-card:hover {
    transform: none;
  }

  .mobile-nav-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav-panel a {
    display: flex;
    min-height: 0;
    height: 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    padding: 0.55rem 0.35rem;
    border-radius: 0.85rem;
    color: #e2e8f0;
    font-size: 0.73rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
  }

  .mobile-nav-panel a i {
    flex: 0 0 auto;
    font-size: 1rem;
    text-align: center;
  }

  .mobile-nav-panel a:hover,
  .mobile-nav-panel a:focus-visible {
    color: #fff;
    background: rgba(99, 102, 241, 0.16);
  }

  .mobile-nav-panel .mobile-nav-cta {
    justify-content: center;
    margin-top: 0;
    color: #fff;
    background: #5865f2;
  }

  .mobile-nav-open {
    overflow: hidden;
  }

  nav.fixed > div {
    height: 4.75rem !important;
  }

  nav.fixed img {
    width: 2.65rem !important;
    height: 2.65rem !important;
  }

  nav.fixed span.text-xl {
    font-size: 1.05rem !important;
    line-height: 1.1 !important;
  }

  main {
    padding-top: 7rem !important;
    padding-bottom: 3.5rem !important;
  }

  h1 {
    font-size: clamp(2.15rem, 12vw, 3.2rem) !important;
    line-height: 1.02 !important;
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.1rem) !important;
    line-height: 1.14 !important;
  }

  h3 {
    line-height: 1.2 !important;
  }

  p,
  li,
  a,
  button {
    overflow-wrap: anywhere;
  }

  .text-lg {
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }

  .glass-card {
    border-radius: 1.1rem !important;
  }

  .glass-card.p-8,
  .glass-card.md\:p-10,
  .glass-card.md\:p-12,
  section.glass-card {
    padding: 1.15rem !important;
  }

  .rounded-3xl {
    border-radius: 1.25rem !important;
  }

  .mb-20 {
    margin-bottom: 3.5rem !important;
  }

  .mb-16 {
    margin-bottom: 2.75rem !important;
  }

  .gap-8 {
    gap: 1.25rem !important;
  }

  .space-x-8 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0 !important;
  }

  .hover\:-translate-y-2:hover,
  .hover\:-translate-y-1:hover,
  .glass-card:hover {
    transform: none !important;
  }

  .aspect-video {
    min-height: 12rem;
  }

  #server-status {
    max-width: 100%;
    white-space: normal;
    justify-content: center;
    text-align: center;
  }

  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer .flex,
  footer div {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  nav.fixed span.text-\[10px\] {
    display: none !important;
  }

  .inline-flex.px-8,
  a.px-8,
  button.px-8 {
    width: 100%;
    justify-content: center;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }

  .grid {
    gap: 1rem !important;
  }

  .mobile-nav-panel {
    gap: 0.35rem !important;
    height: auto;
    min-height: 0;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }
}
/* Cookie consent */
.cookie-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.cookie-consent.is-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.cookie-consent__panel {
  width: min(100%, 58rem);
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.cookie-consent__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: rgba(99, 102, 241, 0.14);
  color: #a5b4fc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.cookie-consent__title {
  margin: 0 0 0.25rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.cookie-consent__text {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.55;
}

.cookie-consent__actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-consent__button {
  min-height: 2.65rem;
  padding: 0 1.1rem;
  border-radius: 0.75rem;
  font-weight: 800;
  font-size: 0.88rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cookie-consent__button:hover {
  transform: translateY(-1px);
}

.cookie-consent__button--secondary {
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.55);
}

.cookie-consent__button--secondary:hover {
  border-color: rgba(203, 213, 225, 0.65);
  color: #ffffff;
  background: rgba(30, 41, 59, 0.92);
}

.cookie-consent__button--primary {
  color: #ffffff;
  background: #6366f1;
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.28);
}

.cookie-consent__button--primary:hover {
  background: #818cf8;
}

@media (max-width: 768px) {
  .cookie-consent {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
  }

  .cookie-consent__panel {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .cookie-consent__icon {
    display: none;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-consent__button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .cookie-consent__actions {
    grid-template-columns: 1fr;
  }
}
