/* =====================================================
   LevelStore — Thème sombre / animations
   ===================================================== */

:root {
  --bg: #07080f;
  --bg-soft: #0d0f1a;
  --card: #11131f;
  --card-border: rgba(255, 255, 255, 0.07);
  --text: #eef0f8;
  --text-muted: #9aa0b5;
  --accent: #2e7bff;
  --accent-2: #00d4ff;
  --accent-3: #b7c4d8; /* argenté, comme le "L" du logo */
  --gradient: linear-gradient(120deg, var(--accent), var(--accent-2));
  --radius: 18px;
  --nav-h: 72px;
  --font-title: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { width: min(1150px, 92%); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-title); }

/* ================= Barre de progression scroll ================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 300;
  height: 3px; width: 0%;
  background: var(--gradient);
  box-shadow: 0 0 12px rgba(46, 123, 255, 0.8);
  transition: width 0.1s linear;
}

/* ================= Fond animé ================= */
.bg-glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

/* Particules flottantes */
.particles { position: absolute; inset: 0; }
.particle {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: var(--p-color, rgba(46, 123, 255, 0.6));
  box-shadow: 0 0 8px var(--p-color, rgba(46, 123, 255, 0.6));
  animation: rise linear infinite;
  opacity: 0;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 30px)); opacity: 0; }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  animation: float 18s ease-in-out infinite alternate;
  transition: margin 0.6s ease-out; /* parallaxe souris */
}
.orb-1 { width: 520px; height: 520px; background: var(--accent); top: -160px; left: -120px; }
.orb-2 { width: 420px; height: 420px; background: var(--accent-2); top: 30%; right: -160px; animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; background: var(--accent-3); bottom: -140px; left: 30%; animation-delay: -12s; opacity: 0.18; }

@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
}

/* ================= Navbar ================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.navbar.scrolled {
  background: rgba(7, 8, 15, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }

.logo {
  font-family: var(--font-title);
  font-weight: 800; font-size: 1.35rem;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.logo .accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.logo-img {
  height: 46px; width: 46px;
  object-fit: cover;
  mix-blend-mode: screen; /* fond noir du logo invisible sur le site sombre */
  filter: brightness(1.3) contrast(1.05); /* logo plus clair */
  transition: transform 0.3s ease;
}
.logo:hover .logo-img { transform: scale(1.1) rotate(-5deg); }

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  position: relative; transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--gradient); border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= Boutons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s;
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 8px 24px rgba(46, 123, 255, 0.35);
  position: relative; overflow: hidden;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 34px rgba(46, 123, 255, 0.5); }
.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

/* Reflet lumineux qui balaye les boutons */
.btn-primary::before {
  content: "";
  position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine {
  0%, 60% { left: -80%; }
  100% { left: 180%; }
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05); color: var(--text);
  border: 1px solid var(--card-border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-3px); }
.btn-lg { padding: 15px 34px; font-size: 1.02rem; }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }

/* ================= Hero ================= */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  padding-top: var(--nav-h);
  text-align: center;
}
.hero-content { display: flex; flex-direction: column; align-items: center; gap: 22px; }

.hero-logo {
  width: clamp(150px, 20vw, 220px);
  mix-blend-mode: screen;
  /* pas de drop-shadow : elle dessinait un carré autour de l'image */
  filter: brightness(1.35) contrast(1.05);
  animation: hero-logo-float 5s ease-in-out infinite;
  margin-bottom: -14px;
}
@keyframes hero-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.badge {
  display: inline-block;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(46, 123, 255, 0.12);
  border: 1px solid rgba(46, 123, 255, 0.35);
  color: #a9c9ff; font-size: 0.85rem; font-weight: 600;
}

.hero h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); font-weight: 800; line-height: 1.12; letter-spacing: -1px; }

.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradient-shift 6s linear infinite;
}
@keyframes gradient-shift { to { background-position: 300% center; } }

/* Curseur de la machine à écrire */
.type-cursor {
  display: inline-block;
  color: var(--accent-2);
  font-weight: 400;
  margin-left: 2px;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-sub { max-width: 560px; color: var(--text-muted); font-size: 1.08rem; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.hero-stats {
  display: flex; gap: clamp(24px, 6vw, 70px);
  margin-top: 26px; flex-wrap: wrap; justify-content: center;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-family: var(--font-title); font-size: 2rem; font-weight: 800; color: var(--text); }
.stat-label { color: var(--text-muted); font-size: 0.85rem; }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--text-muted); border-radius: 14px;
  opacity: 0.6;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 4px; background: var(--text);
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; }
}

/* ================= Sections ================= */
.section { padding: 110px 0; position: relative; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; text-align: center; letter-spacing: -0.5px; position: relative; }

/* Trait animé sous les titres de section */
.section-title::after {
  content: "";
  display: block;
  width: 70px; height: 4px;
  margin: 16px auto 0;
  border-radius: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.3, 1) 0.3s;
}
.section-title.visible::after { transform: scaleX(1); }
.section-sub { text-align: center; color: var(--text-muted); margin: 12px auto 48px; max-width: 480px; }

/* ================= Filtres ================= */
.filters { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.filter-btn {
  padding: 10px 24px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text-muted); font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: all 0.25s;
}
.filter-btn:hover { color: var(--text); border-color: rgba(46, 123, 255, 0.5); }
.filter-btn.active {
  background: var(--gradient); color: #fff; border-color: transparent;
  box-shadow: 0 6px 20px rgba(46, 123, 255, 0.35);
}

/* ================= Produits ================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 24px;
  perspective: 1200px; /* pour le tilt 3D des cartes */
}

.product-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s, box-shadow 0.35s, opacity 0.3s, scale 0.3s;
  display: flex; flex-direction: column; gap: 12px;
  transform-style: preserve-3d;
  will-change: transform;
}
.product-card.tilting { transition: border-color 0.35s, box-shadow 0.35s; }
.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(46, 123, 255, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(46, 123, 255, 0.12);
}
.product-card.hidden { display: none; }

.card-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(46, 123, 255, 0.14), transparent 60%);
  transition: opacity 0.3s;
}
.product-card:hover .card-glow { opacity: 1; }

.product-icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--icon-bg, rgba(46, 123, 255, 0.14));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  overflow: hidden;
  transition: transform 0.35s ease;
}
.product-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-card:hover .product-icon { transform: scale(1.12) rotate(-6deg); }

.tag {
  position: absolute; top: 20px; right: 20px;
  padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.06); color: var(--text-muted);
  border: 1px solid var(--card-border);
}
.tag-hot {
  background: rgba(255, 78, 116, 0.14); color: #ff7a9c; border-color: rgba(255, 78, 116, 0.3);
  animation: pulse-tag 2s ease-in-out infinite;
}
@keyframes pulse-tag {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 78, 116, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(255, 78, 116, 0); }
}
.tag-new { background: rgba(0, 212, 255, 0.12); color: #6fe6ff; border-color: rgba(0, 212, 255, 0.3); }

.product-card h3 { font-size: 1.15rem; font-weight: 700; }
.product-card > p { color: var(--text-muted); font-size: 0.9rem; flex: 1; }

.plan-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.plan-pill {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.plan-pill:hover {
  color: var(--text);
  border-color: rgba(46, 123, 255, 0.45);
  transform: translateY(-1px);
}
.plan-pill.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(46, 123, 255, 0.3);
}

.price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { display: flex; flex-direction: column; line-height: 1.2; }
.old-price { color: var(--text-muted); text-decoration: line-through; font-size: 0.8rem; }
.new-price { font-family: var(--font-title); font-weight: 800; font-size: 1.35rem; color: var(--text); }

/* ================= Avantages ================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  transition: transform 0.35s ease, border-color 0.35s;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(0, 212, 255, 0.4); }
.feature-icon {
  font-size: 2rem; margin-bottom: 14px;
  display: inline-block;
  animation: bob 3.5s ease-in-out infinite;
}
.feature-card:nth-child(2) .feature-icon { animation-delay: -1s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: -2s; }
.feature-card:nth-child(4) .feature-icon { animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ================= Avis ================= */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.35s ease, border-color 0.35s;
}
.review-card:hover { transform: translateY(-6px); border-color: rgba(183, 196, 216, 0.35); }
.stars { color: #ffc93c; letter-spacing: 3px; margin-bottom: 14px; }
.review-card p { color: var(--text-muted); font-size: 0.93rem; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-family: var(--font-title);
}
.review-author small { display: block; color: var(--text-muted); }

/* ================= FAQ ================= */
.faq-container { max-width: 760px; }
.faq-list { margin-top: 44px; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item[open] { border-color: rgba(46, 123, 255, 0.45); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 20px 24px;
  font-weight: 600; font-size: 0.98rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #a9c9ff; }
.faq-icon { font-size: 1.3rem; color: var(--accent); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-muted); font-size: 0.92rem;
  animation: faq-open 0.35s ease;
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= CTA ================= */
.cta-section { padding-top: 30px; }
.cta-box {
  position: relative;
  text-align: center;
  padding: clamp(40px, 7vw, 80px);
  border-radius: 26px;
  background:
    radial-gradient(600px circle at 20% 0%, rgba(46, 123, 255, 0.18), transparent 55%),
    radial-gradient(600px circle at 85% 100%, rgba(0, 212, 255, 0.14), transparent 55%),
    var(--card);
  border: 1px solid transparent;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  overflow: hidden;
}

/* Bordure lumineuse animée qui tourne autour du bloc CTA */
.cta-box::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 26px;
  padding: 1.5px;
  background: conic-gradient(from var(--angle, 0deg), transparent 0%, var(--accent) 12%, var(--accent-2) 24%, transparent 36%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-border 5s linear infinite;
  pointer-events: none;
}
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes spin-border { to { --angle: 360deg; } }
.cta-box h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
.cta-box p { color: var(--text-muted); max-width: 480px; }

/* ================= Footer ================= */
.footer { border-top: 1px solid var(--card-border); background: var(--bg-soft); margin-top: 40px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 56px 0 40px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 14px; }
.footer-col h4 { font-family: var(--font-title); font-size: 0.95rem; margin-bottom: 16px; }
.footer-col a {
  display: block; color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem; margin-bottom: 10px; transition: color 0.25s, transform 0.25s;
}
.footer-col a:hover { color: var(--text); transform: translateX(4px); }
.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding: 20px 0; text-align: center;
  color: var(--text-muted); font-size: 0.85rem;
}

/* ================= Connexion Google ================= */
.auth-area { position: relative; display: flex; align-items: center; }

.auth-login-btn { white-space: nowrap; }

.user-chip {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  color: var(--text); font-weight: 600; font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.user-chip:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(46, 123, 255, 0.5); transform: translateY(-2px); }
.user-chip img { width: 32px; height: 32px; border-radius: 50%; }

.user-menu {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: 230px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: menu-pop 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.15);
  z-index: 150;
}
@keyframes menu-pop {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.user-menu-head { padding: 14px 16px; border-bottom: 1px solid var(--card-border); }
.user-menu-head strong { display: block; font-size: 0.92rem; }
.user-menu-head small { color: var(--text-muted); font-size: 0.78rem; word-break: break-all; }
.user-menu-item {
  display: block; width: 100%; text-align: left; text-decoration: none;
  background: none; border: none; cursor: pointer;
  padding: 13px 16px;
  color: var(--text); font-family: var(--font-body); font-weight: 600; font-size: 0.88rem;
  transition: background 0.2s;
}
.user-menu-item:hover { background: rgba(255, 84, 112, 0.1); color: #ff7a9c; }

/* ================= Modale ================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 180;
  background: rgba(3, 4, 9, 0.72);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: modal-fade 0.25s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 40px 34px 34px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: modal-pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  color: var(--text-muted); font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.modal-close:hover { background: rgba(255, 84, 112, 0.14); color: #ff7a9c; transform: rotate(90deg); }

.login-modal { text-align: center; }
.login-modal-logo {
  width: 96px;
  mix-blend-mode: screen;
  filter: brightness(1.35);
}
.login-modal h3 { font-size: 1.35rem; font-weight: 800; margin-top: 4px; }
.login-modal-sub { color: var(--text-muted); font-size: 0.9rem; margin: 10px 0 24px; }

.google-btn-container { display: flex; justify-content: center; min-height: 44px; }

.auth-setup-help {
  text-align: left;
  background: rgba(46, 123, 255, 0.07);
  border: 1px solid rgba(46, 123, 255, 0.25);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.auth-setup-help p { margin-bottom: 10px; color: var(--text); }
.auth-setup-help ol { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.auth-setup-help em { color: #6fb2ff; font-style: normal; font-weight: 600; }

/* ================= Toast ================= */
.toast {
  position: fixed; bottom: 30px; left: 50%;
  transform: translate(-50%, 80px);
  background: var(--card);
  border: 1px solid rgba(46, 123, 255, 0.5);
  color: var(--text);
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  opacity: 0; pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.3s;
  z-index: 200;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ================= Reveal on scroll ================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ================= Offres GTA / Fortnite ================= */
.game-variants-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.35;
}
.from-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.game-offers-modal {
  width: min(640px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  text-align: left;
}
.game-offers-sub {
  color: var(--text-muted);
  margin: 6px 0 18px;
  font-size: 0.92rem;
}
.game-offers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.game-offer-card {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.game-offer-body {
  min-width: 0;
  flex: 1;
}
.game-offer-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.game-offer-body p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.4;
  margin: 0;
}
.game-offer-buy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.game-offer-price {
  text-align: right;
}
.game-offer-price .old-price {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.game-offer-price strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
}
.game-offers-loading,
.game-offers-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 28px 12px;
}

@media (max-width: 560px) {
  .game-offer-card {
    flex-direction: column;
    align-items: stretch;
  }
  .game-offer-buy {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ================= Responsive ================= */
@media (max-width: 820px) {
  .nav-cta { display: none; }
  .burger { display: flex; }
  .user-chip span { display: none; } /* avatar seul sur mobile */
  .user-chip { padding: 4px; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: center; gap: 0;
    background: rgba(7, 8, 15, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--card-border);
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 16px 0; width: 100%; }
  .nav-links a::after { display: none; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}
