/*
 * Global CSS for the Absyrion website.
 *
 * This stylesheet draws inspiration from modern web‑design trends like
 * Resonant Stark and Frosted Touch which strip interfaces down to
 * their essentials while layering in subtle gradients, soft shadows
 * and glassy effects【603911367285190†L348-L353】.  We also
 * incorporate micro‑interactions with gentle transitions on buttons
 * and cards to encourage engagement without overwhelming the user
 *【603911367285190†L348-L353】.  The hero section follows best
 * practices by including a powerful headline, a supporting subtitle
 * and a clear call‑to‑action【488642741900875†L46-L75】.
 */

/* Reset some default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #f5f5f5;
  background: radial-gradient(circle at top left, #0a1730, #050a1f 60%, #010615);
  min-height: 100vh;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #ffffff;
}

p {
  color: #d1d5db;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navigation bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 1rem 2rem;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

.navbar .logo {
  display: flex;
  align-items: center;
}

.navbar .logo img {
  height: 40px;
  margin-right: 0.5rem;
}

.navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1.5rem;
}

.navbar li {
  position: relative;
  display: flex;
  align-items: center;
}

.navbar a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #f5f5f5;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem;
  line-height: 1;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #a178ff;
}

/* Hero section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1rem 6rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.8) 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative cosmic swirls on the hero section */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  pointer-events: none;
  z-index: -1;
}

.hero::before {
  left: 0;
  background: radial-gradient(circle at 20% 50%, rgba(127, 90, 240, 0.4) 0%, rgba(127, 90, 240, 0) 70%);
}

.hero::after {
  right: 0;
  background: radial-gradient(circle at 80% 40%, rgba(72, 156, 255, 0.3) 0%, rgba(72, 156, 255, 0) 70%);
}

/* One shared banner style used by Accueil and Contact */
.site-banner {
  background-image: url('assets/logo2.png') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.hero .hero-content {
  max-width: 900px;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 3rem 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  text-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #cfd2f3;
}

/* Floating glass card: half on the banner, half on the next section */
.hero.hero-overlap {
  min-height: 520px;
  padding: 7rem 1rem 0;
  justify-content: flex-end;
  overflow: visible;
  z-index: 2;
}

.hero.hero-overlap .hero-content {
  position: relative;
  transform: translateY(205px);
  z-index: 5;
  background: rgba(8, 10, 22, 0.48);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 24px 70px rgba(0,0,0,0.45), 0 0 35px rgba(127,90,240,0.16);
}

.after-floating-hero {
  position: relative;
  z-index: 1;
  padding-top: 18rem !important;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  background-image: linear-gradient(135deg, #7f5af0, #5544c9);
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(127, 90, 240, 0.4);
}

.btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(127, 90, 240, 0.6);
}

.btn-secondary {
  background-image: linear-gradient(135deg, #3f3d56, #2c2a40);
  box-shadow: 0 4px 15px rgba(63, 61, 86, 0.4);
}

.btn-secondary:hover {
  box-shadow: 0 6px 20px rgba(63, 61, 86, 0.6);
}

/* Section: Games */
.games-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  color: #e5e7fa;
  text-shadow: 0 0 10px rgba(90, 50, 200, 0.5);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0,0,0,0.35);
}

.game-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.game-card-content {
  padding: 1.5rem;
}

.game-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: #f5f6ff;
}

.game-card p {
  font-size: 0.9rem;
  color: #c7cbe4;
  margin-bottom: 1.5rem;
  min-height: 60px;
}

.game-card .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
}

/* Features section */
.features-section {
  padding: 4rem 2rem;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Contact section styling */
.contact-section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-section p {
  color: #c7cbe4;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  color: #f5f5f5;
  font-size: 0.95rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
}


.feature {
  text-align: center;
  padding: 2rem;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.feature p {
  font-size: 0.9rem;
  color: #c7cbe4;
}

/* Footer */
.footer {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem;
  text-align: center;
  color: #9094b5;
  font-size: 0.85rem;
}

.footer a {
  color: #9094b5;
  margin: 0 0.5rem;
  transition: color 0.3s;
}

.footer a:hover {
  color: #cfcfff;
}

/* Media queries */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
  }
  .navbar ul {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
  }
  .navbar a {
    font-size: 0.74rem;
    padding: 0.25rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .navbar ul {
    gap: 1rem;
  }
}



/* Login page layout */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-hero {
  flex: 1;
  min-height: calc(100vh - 170px);
  padding-top: 10.5rem;
  padding-bottom: 7rem;
  justify-content: center;
}

.login-card {
  max-width: 500px;
  background: rgba(255,255,255,0.05) !important;
}

.account-card {
  max-width: 680px;
}

.account-status {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: #d7ccff;
  background: rgba(127,90,240,0.18);
  border: 1px solid rgba(127,90,240,0.38);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.account-card h1 {
  font-size: 2.15rem;
  margin-bottom: 1rem;
}

.account-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0;
}

.account-points span {
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  color: #eef0ff;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.9rem;
}

.account-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.account-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.75rem 0 1.25rem;
}

.account-tabs button {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  color: #eef0ff;
  background: rgba(255,255,255,0.06);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.account-tabs button.active {
  border-color: rgba(161,120,255,0.82);
  background: rgba(127,90,240,0.28);
  box-shadow: 0 0 24px rgba(127,90,240,0.16);
}

.account-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  text-align: left;
}

.account-form[hidden],
.account-session[hidden] {
  display: none !important;
}

.account-form label {
  display: grid;
  gap: 0.35rem;
  color: #d7dcff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-form input {
  min-height: 46px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 0 0.9rem;
  color: #f8fafc;
  background: rgba(3,7,18,0.52);
  outline: none;
}

.account-form input:focus {
  border-color: rgba(161,120,255,0.82);
  box-shadow: 0 0 0 3px rgba(127,90,240,0.18);
}

.account-form .btn {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.account-session {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
}

.account-session span,
.account-session small {
  color: #b8bddc;
}

.account-session strong {
  color: #ffffff;
  font-size: 1.25rem;
}

.account-note[data-state="error"] {
  color: #ffb4b4 !important;
}

.account-note[data-state="success"] {
  color: #a7f3d0 !important;
}

.account-note {
  margin-top: 1.35rem;
  font-size: 0.9rem !important;
  color: #b8bddc !important;
}

.login-page .footer {
  margin-top: auto;
}

.navbar a[data-account-nav-link] {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-right: 2rem;
}

.account-user-icon {
  display: none;
  position: absolute;
  top: 50%;
  right: 0;
  width: 22px;
  height: 22px;
  margin-left: 0;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.72);
  background: rgba(127, 90, 240, 0.24);
  box-shadow: 0 0 16px rgba(127, 90, 240, 0.35);
  flex: 0 0 auto;
  transform: translateY(-50%);
  cursor: pointer;
}

.account-connected .account-user-icon {
  display: inline-flex;
}

.account-user-icon::before,
.account-user-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #f5f3ff;
}

.account-user-icon::before {
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.account-user-icon::after {
  bottom: 4px;
  width: 12px;
  height: 6px;
  border-radius: 999px 999px 4px 4px;
}

.account-profile-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: 260px;
  z-index: 1200;
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
  border: 1px solid rgba(167, 139, 250, 0.38);
  border-radius: 8px;
  background: rgba(9, 13, 28, 0.98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), 0 0 24px rgba(127, 90, 240, 0.18);
  text-align: left;
}

.account-profile-menu[hidden] {
  display: none !important;
}

.account-profile-menu strong,
.account-profile-menu small {
  display: block;
}

.account-profile-menu strong {
  color: #ffffff;
  font-size: 1rem;
}

.account-profile-menu small {
  margin-bottom: 0.45rem;
  color: #b8bddc;
  overflow-wrap: anywhere;
}

.account-profile-menu button {
  min-height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: #eef0ff;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  text-align: left;
  padding: 0 0.75rem;
}

.account-profile-menu button:hover {
  border-color: rgba(161,120,255,0.62);
  background: rgba(127,90,240,0.2);
}

.account-form .btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.account-dialog {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(1, 6, 21, 0.72);
  backdrop-filter: blur(8px);
}

.account-dialog[hidden] {
  display: none !important;
}

.account-dialog-panel {
  width: min(420px, 100%);
  padding: 1.8rem;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.46);
  background: rgba(12, 17, 35, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 28px rgba(127, 90, 240, 0.2);
  text-align: center;
}

.account-dialog-icon {
  display: inline-block;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7f5af0, #22c55e);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.28);
}

.account-dialog-icon::before {
  content: "";
  display: block;
  width: 18px;
  height: 10px;
  margin: 14px auto 0;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg);
}

.account-dialog-panel strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-size: 1.25rem;
}

.account-dialog-panel p {
  margin: 0;
  color: #cfd2f3;
}


/* Social links */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5f5f5;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 25px rgba(0,0,0,0.18);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-social a:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.24);
  box-shadow: 0 12px 30px rgba(127,90,240,0.32);
}

.footer-social .social-discord:hover {
  background: #5865F2;
}

.footer-social .social-youtube:hover {
  background: #FF0033;
}

.footer-social .social-instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.footer-social .social-tiktok:hover {
  background: linear-gradient(135deg, #25F4EE, #000000 45%, #FE2C55);
}

.footer-social .social-x:hover {
  background: #000000;
}
