@charset "utf-8";
/* Espace de jeux — pages d'accueil, connexion, compte */
:root {
  --red: #e84855; --yellow: #f2b632; --green: #2bb07f; --blue: #3a7bd5;
  --bg: #0d1320; --panel: #141c2b; --panel2: #1b2537; --line: #26324a;
  --text: #e8edf5; --muted: #8e9bb3; --accent: #ffd166;
  --felt1: #1f6f5f; --felt2: #0c3a32;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; color: var(--text); font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
body { background: radial-gradient(ellipse at 50% 30%, var(--felt1), var(--felt2) 70%, var(--bg)) fixed; min-height: 100vh; }
a { color: var(--accent); }
button { font: inherit; }

.barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: rgba(10, 15, 25, .85); border-bottom: 1px solid var(--line); }
.marque { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.barre nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.barre nav a { color: var(--text); text-decoration: none; opacity: .85; }
.barre nav a:hover { opacity: 1; text-decoration: underline; }
.qui { font-weight: 700; }

.logo { display: inline-block; width: 16px; height: 16px; transform: rotate(45deg); border-radius: 3px;
  background: conic-gradient(var(--red) 0 25%, var(--yellow) 0 50%, var(--green) 0 75%, var(--blue) 0); }
.logo.grand { width: 36px; height: 36px; border-radius: 7px; }
.logo.tres-grand { width: 64px; height: 64px; border-radius: 12px; margin: 14px 0 22px; box-shadow: 0 6px 24px rgba(0,0,0,.4); }

.contenu { max-width: 960px; margin: 0 auto; padding: 32px 16px 60px; }
.carte { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; margin: 0 auto 24px; box-shadow: 0 18px 60px rgba(0,0,0,.35); }
.carte.etroite, .carte.connexion { max-width: 440px; }
.carte.connexion { margin-top: 8vh; }
.carte h2 { margin-top: 0; }
.titre-jeu { display: flex; align-items: center; gap: 16px; }
.titre-jeu h1 { margin: 0; font-size: 26px; letter-spacing: .06em; }
.discret { color: var(--muted); }
small { color: var(--muted); font-weight: 400; }

form label { display: block; margin: 14px 0; font-weight: 600; font-size: 14px; }
.champ { display: block; width: 100%; margin-top: 6px; background: var(--panel2); border: 2px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 12px; font-size: 16px; }
.champ:focus { outline: none; border-color: var(--accent); }
.champ.petit { display: inline-block; width: 190px; margin: 0; padding: 6px 10px; font-size: 14px; }

.btn { display: inline-block; background: #2a3650; color: var(--text); border: 1px solid #3a4866; border-radius: 10px; padding: 8px 16px; cursor: pointer; font-weight: 600; text-decoration: none; margin-top: 6px; }
.btn:hover { background: #34425f; }
.btn.principal { background: #f0b429; color: #231a00; border-color: #f0b429; }
.btn.principal:hover { background: #ffc94a; }
.btn.grand { width: 100%; padding: 12px; font-size: 17px; margin-top: 10px; }
.btn.danger { background: #6b2a36; border-color: #a33d4f; }
.btn.danger:hover { background: #85323f; }
.lien { background: none; border: 0; color: var(--text); opacity: .85; cursor: pointer; padding: 0; }
.lien:hover { opacity: 1; text-decoration: underline; }
.enligne { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.enligne .btn { margin: 0; }

.alerte { padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.alerte.ok { background: rgba(43, 176, 127, .18); border: 1px solid var(--green); }
.alerte.err { background: rgba(232, 72, 85, .18); border: 1px solid var(--red); }
.alerte.info { background: rgba(255, 209, 102, .12); border: 1px solid var(--accent); }

.accueil h1 { margin-top: 0; }
.jeux { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 18px; }
.jeu { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 18px 26px; border-radius: 20px;
  background: var(--panel); border: 2px solid var(--line); color: var(--text); text-decoration: none;
  transition: transform .15s, border-color .15s, box-shadow .15s; }
a.jeu:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.nom-jeu { font-size: 24px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.desc-jeu { margin-top: 8px; color: var(--muted); font-size: 14px; }
.jeu.bientot { justify-content: center; border-style: dashed; opacity: .6; }
.jeu.bientot .nom-jeu { font-size: 18px; letter-spacing: .05em; text-transform: none; }

.liste { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 14px; }
.liste th { text-align: left; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding: 8px 6px; }
.liste td { border-bottom: 1px solid var(--line); padding: 8px 6px; vertical-align: middle; }
.actions-ligne { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pastille { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 99px; background: #3a4866; color: var(--text); vertical-align: middle; }

@media (max-width: 640px) {
  .liste thead { display: none; }
  .liste tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .liste td { display: block; border: 0; padding: 4px 0; }
  .actions-ligne { justify-content: flex-start; }
  .champ.petit { width: 100%; }
}
