:root {
  --bg: #07110e;
  --bg-2: #0c1d18;
  --glass: rgba(255, 255, 255, .055);
  --glass-2: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f1f6f3;
  --muted: #8fa39b;
  --faint: #5e7069;
  --accent: #3dd68c;
  --accent-2: #1fa56c;
  --accent-ink: #04170e;
  --grad: linear-gradient(135deg, #6fe8ae 0%, #23b072 100%);
  --blue: #6aa8ff;
  --amber: #f2b84b;
  --danger: #f0605d;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  color: var(--text); min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(61, 214, 140, .16), transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 520px) fixed;
  font: 16px/1.45 "Inter", "SF Pro Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
h1 { font-size: 1.85rem; font-weight: 700; margin: 0; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: 1.3rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; margin: 0; }
p { margin: .3rem 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .85rem; }
.accent { color: var(--accent); }
.strong { font-weight: 700; }
.grow { flex: 1; }
[hidden] { display: none !important; }

/* Structure */
#app { min-height: 100vh; }
main { max-width: 1120px; margin: 0 auto; padding: 18px 18px 140px; }
.page { display: flex; flex-direction: column; gap: 26px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .two-cols { grid-template-columns: 1fr; } }

/* En-tête de page */
.page-top { display: flex; align-items: center; gap: 14px; min-height: 56px; }
.page-top h1 { flex: 1; min-width: 0; }
.back { width: 40px; height: 40px; display: grid; place-items: center; color: var(--text); border-radius: 50%; flex-shrink: 0; }
.back:hover { background: var(--glass); }
.greeting { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.greeting .logo { width: 52px; height: 52px; flex-shrink: 0; }
.greeting strong { display: block; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.02em; }
.greeting span { font-size: 1.6rem; line-height: 1.1; color: var(--text); font-weight: 400; }
.game-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 99px;
  background: var(--glass-2); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-weight: 600;
  cursor: pointer; backdrop-filter: blur(14px); flex-shrink: 0;
}
.game-pill:hover { border-color: var(--accent); }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2);
  border: 1px solid var(--line-2); color: var(--text); cursor: pointer; flex-shrink: 0;
}
.round-btn:hover { border-color: var(--accent); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.see-all { color: var(--accent); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.see-all.off { color: var(--faint); pointer-events: none; }

/* Logo Folia */
.logo { width: 32px; height: 32px; border-radius: 6px 72% 6px 72%; background: var(--grad); box-shadow: 0 0 22px rgba(61, 214, 140, .35); display: inline-block; }

/* Navigation flottante */
.dock { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; z-index: 40; }
.dock nav {
  display: flex; gap: 6px; padding: 8px; border-radius: 30px; background: rgba(6, 14, 11, .88);
  border: 1px solid var(--line); backdrop-filter: blur(18px); box-shadow: var(--shadow);
}
.dock nav a { width: 64px; height: 56px; display: grid; place-items: center; border-radius: 22px; color: var(--faint); position: relative; }
.dock nav a:hover { color: var(--muted); }
.dock nav a.active { color: var(--text); }
.dock nav a.active::after { content: ""; position: absolute; bottom: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.dock nav a .badge { position: absolute; top: 8px; right: 12px; min-width: 16px; height: 16px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.fab {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--accent-ink);
  box-shadow: 0 10px 30px rgba(35, 176, 114, .45), inset 0 1px 0 rgba(255, 255, 255, .35); border: 0; cursor: pointer;
}
.fab:hover { filter: brightness(1.06); }

/* Authentification */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 20px; gap: 26px; }
.auth-hero { text-align: center; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 2.2rem; letter-spacing: -.03em; }
.brand .logo { width: 46px; height: 46px; }
.auth-hero p { color: var(--muted); }
.auth-card { width: 100%; max-width: 420px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; backdrop-filter: blur(14px); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form h1 { font-size: 1.5rem; }

@media (max-width: 520px) {
  main { padding: 12px 14px 130px; }
  h1 { font-size: 1.6rem; }
  .dock { bottom: 12px; gap: 10px; }
  .dock nav a { width: 56px; height: 52px; }
  .fab { width: 66px; height: 66px; }
  .game-pill { padding: 9px 15px; }
}
