/* ============================================================
   🪩 LE RETRO - FEUILLE DE STYLE (ambiance néon disco)
   Inspirée de l'overlay de stream de K7VHS : fond sombre,
   néons rose/violet/bleu/orange, cadres arrondis lumineux.
   ============================================================ */

:root {
  --bg: #0a0a12;
  --bg-card: #15151f;
  --bg-card-hover: #1c1c2a;
  --border: #2a2a3a;

  --pink: #ff2bd6;
  --purple: #9146ff;
  --cyan: #2fd8ff;
  --orange: #ffb020;

  --text: #f1f0f7;
  --text-dim: #9a98ab;
  --text-faint: #6b6880;

  --success: #35e08a;
  --danger: #ff5577;

  --radius: 14px;
  --radius-pill: 999px;

  --font-display: "Bungee", "Poppins", sans-serif;
  --font-script: "Pacifico", cursive;
  --font-body: "Poppins", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at 20% 0%, #1b1430 0%, var(--bg) 45%),
    radial-gradient(circle at 85% 100%, #0f1d33 0%, var(--bg) 55%), var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  padding: 1.5rem 1rem 3rem;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  max-width: min(1200px, 96vw);
  margin: 0 auto;
}

@media (min-width: 640px) {
  body {
    padding: 2rem 1.5rem 3rem;
  }
}

/* ------------------------------------------------------------
   📐 Colonne "Mon espace" à gauche + contenu principal à droite
   ------------------------------------------------------------ */

.layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 760px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}

.sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
  position: sticky;
  top: 1.25rem;
}

@media (max-width: 760px) {
  .sidebar {
    position: static;
  }
}

.sidebar-user {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.avatar-large {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 3px solid var(--pink);
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.5);
  margin-bottom: .7rem;
}

.sidebar-user .name {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 .6rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
}

.sidebar .section-title {
  text-align: center;
  margin: 1.25rem 0 .75rem;
}

.sidebar .card {
  text-align: left;
}

.sidebar .pochette-grid {
  justify-content: center;
}

.main-col .section-title:first-child {
  margin-top: 0;
}

/* ------------------------------------------------------------
   👯 Liste des personnes présentes (cliquable - ex: page "donner")
   ------------------------------------------------------------ */

.person-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.sidebar .person-list {
  flex-direction: column;
}

.person-chip {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: .45rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: border-color .1s ease, box-shadow .1s ease, background .1s ease;
}

.person-chip:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(47, 216, 255, 0.25);
}

.person-chip-active {
  color: var(--cyan);
  background: rgba(47, 216, 255, 0.12);
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(47, 216, 255, 0.35);
}

/* ------------------------------------------------------------
   🪩 En-tête / logo
   ------------------------------------------------------------ */

.site-header {
  text-align: center;
  margin-bottom: 2rem;
}

.site-header .logo-image {
  max-width: 420px;
  width: 80%;
  height: auto;
  filter: drop-shadow(0 0 22px rgba(255, 43, 214, 0.35));
}

.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--text-dim);
  font-size: .9rem;
}

.back-link:hover {
  color: var(--cyan);
}

/* ------------------------------------------------------------
   🧱 Cartes
   ------------------------------------------------------------ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.25rem;
}

.card-glow-pink {
  border-color: rgba(255, 43, 214, 0.45);
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.12), inset 0 0 18px rgba(255, 43, 214, 0.04);
}

.card-glow-cyan {
  border-color: rgba(47, 216, 255, 0.4);
  box-shadow: 0 0 18px rgba(47, 216, 255, 0.1), inset 0 0 18px rgba(47, 216, 255, 0.04);
}

.card-glow-purple {
  border-color: rgba(145, 70, 255, 0.45);
  box-shadow: 0 0 18px rgba(145, 70, 255, 0.14), inset 0 0 18px rgba(145, 70, 255, 0.05);
}

.card h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin: 0 0 .75rem;
}

.section-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin: 1.75rem 0 .75rem;
}

/* ------------------------------------------------------------
   💊 Pastilles (rôle, statut...)
   ------------------------------------------------------------ */

.pill {
  display: inline-block;
  padding: .35rem .9rem;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid currentColor;
}

.pill-purple {
  color: var(--purple);
  background: rgba(145, 70, 255, 0.1);
  text-shadow: 0 0 8px rgba(145, 70, 255, 0.5);
}

.pill-pink {
  color: var(--pink);
  background: rgba(255, 43, 214, 0.1);
  text-shadow: 0 0 8px rgba(255, 43, 214, 0.5);
}

.pill-cyan {
  color: var(--cyan);
  background: rgba(47, 216, 255, 0.1);
  text-shadow: 0 0 8px rgba(47, 216, 255, 0.5);
}

.pill-dim {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.pill-success {
  color: var(--success);
  background: rgba(53, 224, 138, 0.1);
  border-color: var(--success);
}

.pill-danger {
  color: var(--danger);
  background: rgba(255, 85, 119, 0.1);
  border-color: var(--danger);
}

/* ------------------------------------------------------------
   👤 Profil
   ------------------------------------------------------------ */

.profile-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.25rem;
}

.profile-row img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  box-shadow: 0 0 14px rgba(255, 43, 214, 0.5);
}

.profile-row .name {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 .3rem;
}

.profile-row .pill {
  margin: 0 .4rem .3rem 0;
}

/* ------------------------------------------------------------
   🔘 Boutons / formulaires
   ------------------------------------------------------------ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: .6rem 1.3rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.35);
  transition: transform .1s ease, box-shadow .1s ease;
}

.btn:hover {
  box-shadow: 0 0 22px rgba(255, 43, 214, 0.55);
  transform: translateY(-1px);
}

.btn:disabled {
  background: #333647;
  box-shadow: none;
  color: var(--text-faint);
  cursor: not-allowed;
  transform: none;
}

.btn-small {
  font-size: .8rem;
  padding: .4rem .9rem;
}

.btn-danger {
  background: linear-gradient(90deg, #7a1a33, #a3233f);
  box-shadow: 0 0 12px rgba(255, 85, 119, 0.25);
}

label {
  display: block;
  margin-bottom: .9rem;
  font-size: .9rem;
  color: var(--text-dim);
}

input[type="text"],
input[type="number"],
input[type="file"] {
  width: 100%;
  margin-top: .35rem;
  padding: .55rem .7rem;
  background: #0d0d16;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
}

input[type="text"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(145, 70, 255, 0.2);
}

/* ------------------------------------------------------------
   🖼️ Grille de pochettes
   ------------------------------------------------------------ */

.pochette-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.pochette {
  width: 140px;
  text-align: center;
}

.pochette img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.4);
}

.pochette-mini img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
}

.pochette-mini {
  width: 70px;
}

.pochette .name {
  margin: .4rem 0 0;
  font-size: .85rem;
}

.pochette .price {
  margin: 0;
  color: var(--cyan);
  font-size: .85rem;
}

.pochette form {
  margin-top: .4rem;
}

.empty {
  color: var(--text-faint);
  font-size: .9rem;
}

.meta {
  color: var(--text-faint);
  font-size: .8rem;
}

ul.simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .9rem;
  color: var(--text-dim);
}

ul.simple-list li {
  padding: .3rem 0;
  border-bottom: 1px solid var(--border);
}

ul.simple-list li:last-child {
  border-bottom: none;
}

.nav-links p {
  margin: .4rem 0;
}

/* ------------------------------------------------------------
   🧭 Barre de navigation (en haut de page, boutons encadrés)
   ------------------------------------------------------------ */

.nav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.75rem;
}

.nav-card {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem .75rem;
  text-align: center;
  font-weight: 600;
  font-size: .85rem;
  color: var(--text);
  text-decoration: none;
  transition: transform .1s ease, box-shadow .1s ease, border-color .1s ease;
}

.nav-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.nav-card .icon {
  font-size: 1.5rem;
}

.nav-card-pink {
  border-color: rgba(255, 43, 214, 0.4);
}

.nav-card-pink:hover {
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.3);
}

.nav-card-purple {
  border-color: rgba(145, 70, 255, 0.4);
}

.nav-card-purple:hover {
  box-shadow: 0 0 16px rgba(145, 70, 255, 0.3);
}

.nav-card-cyan {
  border-color: rgba(47, 216, 255, 0.4);
}

.nav-card-cyan:hover {
  box-shadow: 0 0 16px rgba(47, 216, 255, 0.3);
}

.nav-card-dim {
  color: var(--text-dim);
}

/* ------------------------------------------------------------
   📋 Liste de commandes (page /aide)
   ------------------------------------------------------------ */

.cmd-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cmd-list li {
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}

.cmd-list li:last-child {
  border-bottom: none;
}

.cmd-name {
  display: inline-block;
  font-family: monospace;
  font-size: .85rem;
  color: var(--cyan);
  background: rgba(47, 216, 255, 0.1);
  border: 1px solid rgba(47, 216, 255, 0.35);
  border-radius: 6px;
  padding: .15rem .5rem;
  margin-bottom: .35rem;
}

.cmd-desc {
  margin: 0;
  color: var(--text-dim);
  font-size: .9rem;
  line-height: 1.4;
}

/* ------------------------------------------------------------
   📊 Statistiques en direct du Rétro
   ------------------------------------------------------------ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .75rem;
}

.stat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem .5rem;
  text-align: center;
}

.stat-icon {
  font-size: 1.4rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(47, 216, 255, 0.4);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: .75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .6rem;
}

.job-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .6rem .8rem;
}

.job-tile-occupied {
  border-color: rgba(53, 224, 138, 0.4);
}

.job-name {
  font-size: .85rem;
  font-weight: 600;
}
