/* La vitrine des membres.
   Même palette que le dashboard du staff — c'est la même maison —, mais une
   page qui se lit d'abord sur un téléphone : un panier tombe pendant qu'on
   fait autre chose, et c'est là qu'il se prend. */
:root {
  --bg: #0f1117;
  --panel: #171a23;
  --panel-2: #1e222d;
  --border: #2a2f3d;
  --text: #e6e8ee;
  --muted: #9aa3b5;
  --accent: #5865f2;
  --green: #2dd4a0;
  --amber: #f5c451;
  --red: #f2555a;
}
@keyframes battement { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

* { box-sizing: border-box; }
/* `display:` posé sur une section la rendrait visible MALGRÉ son attribut
   `hidden` — c'est la règle du navigateur qui perd, pas la nôtre. Les deux
   écrans de la page se cachent par cet attribut : sans cette ligne, l'accueil
   et la vitrine s'affichaient l'un sous l'autre. */
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  -webkit-text-size-adjust: 100%;
}
main { max-width: 1180px; margin: 0 auto; padding: 26px 20px 64px; }
h1 { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -.2px; }
h2 { margin: 0 0 4px; font-size: 15px; font-weight: 650; }
.muted { color: var(--muted); font-size: 13px; }
.spacer { flex: 1; }
code {
  background: rgba(127,127,127,.18); padding: .1rem .35rem;
  border-radius: 5px; font-size: .88em;
}

/* ---------------- La barre du haut ---------------- */
.barre {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 20px; background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.marque { display: flex; align-items: center; gap: 9px; font-weight: 650; }
.marque .pastille {
  display: grid; place-items: center; width: 28px; height: 28px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 8px; font-size: 15px;
}
.onglets { display: flex; gap: 6px; }
.onglet {
  background: transparent; color: var(--muted); border: 1px solid transparent;
  border-radius: 9px; padding: 7px 13px; font: inherit; font-size: 14px;
  cursor: pointer;
}
.onglet:hover { color: var(--text); }
.onglet.actif {
  background: var(--panel-2); border-color: var(--border); color: var(--text);
}
.compte { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.compte img { border-radius: 50%; background: var(--panel-2); }
.lien {
  background: none; border: 0; color: var(--muted); font: inherit;
  font-size: 13px; cursor: pointer; padding: 4px 2px;
}
.lien:hover { color: var(--red); }

/* ---------------- L'accueil ---------------- */
#accueil { display: grid; place-items: center; padding-top: 4vh; }
.accueil-carte {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 30px; max-width: 520px; width: 100%;
}
.intro { color: var(--muted); font-size: 14px; margin: 10px 0 18px; }
.arguments { list-style: none; margin: 0 0 22px; padding: 0; font-size: 14px; }
.arguments li {
  display: flex; gap: 10px; align-items: baseline; padding: 7px 0;
  border-top: 1px solid var(--border);
}
.arguments li span { font-size: 15px; }
.bouton-discord {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; border-radius: 11px; background: var(--accent);
  color: #fff; font-weight: 650; text-decoration: none; font-size: 15px;
}
.bouton-discord:hover { filter: brightness(1.08); }
.mention { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; text-align: center; }
.alerte {
  margin: 16px 0 0; padding: 11px 14px; border-radius: 10px; font-size: 13.5px;
  background: rgba(242,85,90,.12); border: 1px solid rgba(242,85,90,.4);
  color: #ffc9cb;
}

/* ---------------- L'en-tête de la vitrine ---------------- */
.titre-ligne {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.etat { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.live {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px;
  color: var(--green); background: rgba(45,212,160,.1);
  border: 1px solid rgba(45,212,160,.3); border-radius: 999px; padding: 3px 10px;
}
.live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  animation: battement 1.8s infinite;
}

/* ---------------- Les filtres ---------------- */
.filtres-barre {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px; margin-bottom: 16px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
  border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13.5px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
}
.chip:hover { color: var(--text); }
.chip.actif { color: var(--text); border-color: #43496b; background: #232741; }
.chip .n {
  background: rgba(255,255,255,.07); border-radius: 999px; padding: 0 7px;
  font-size: 12px; font-variant-numeric: tabular-nums;
}
.chip.bascule { margin-left: auto; }
.chip.bascule.actif { color: var(--amber); border-color: rgba(245,196,81,.45); background: rgba(245,196,81,.12); }

.ligne-recherche { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.recherche {
  flex: 1 1 260px; display: flex; align-items: center; gap: 8px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 0 12px; min-height: 40px; color: var(--muted);
}
.recherche input {
  flex: 1; background: none; border: 0; color: var(--text); font: inherit;
  font-size: 14px; outline: none; min-width: 0;
}
select {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; min-height: 40px; padding: 0 10px; font: inherit;
  font-size: 14px; max-width: 100%;
}
.vues { display: flex; gap: 4px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.vue {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 13.5px;
  border-radius: 8px; padding: 6px 12px; cursor: pointer;
}
.vue.actif { background: #232741; color: var(--text); }

/* ---------------- Les paniers, en cartes ---------------- */
.cartes {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.carte {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 15px; display: flex; flex-direction: column;
  gap: 12px;
}
/* Le dernier quart d'heure d'un panier, puis ses deux dernières minutes : la
   bordure le dit avant qu'on ait lu le chiffre. */
.carte.chaud { border-color: rgba(245,196,81,.5); }
.carte.brulant { border-color: rgba(242,85,90,.6); }
.carte.pris { opacity: .55; }
.carte-tete { display: flex; gap: 10px; align-items: flex-start; }
.carte-titre { font-weight: 650; font-size: 15.5px; line-height: 1.3; }
.carte-seance { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.minuteur {
  margin-left: auto; text-align: right; font-variant-numeric: tabular-nums;
  font-weight: 650; font-size: 16px; white-space: nowrap;
}
.minuteur.chaud { color: var(--amber); }
.minuteur.brulant { color: var(--red); }
.minuteur small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }

.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
  border-radius: 7px; padding: 3px 8px; font-size: 12px;
}
.tag b { color: var(--text); font-weight: 600; }
.tag.split { color: var(--amber); border-color: rgba(245,196,81,.35); }

.prix { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.prix .total { font-size: 19px; font-weight: 680; letter-spacing: -.3px; }
.prix .detail { color: var(--muted); font-size: 12.5px; }

.prendre {
  min-height: 44px; border-radius: 11px; border: 0; background: var(--green);
  color: #06281f; font: inherit; font-weight: 680; font-size: 14.5px;
  cursor: pointer; width: 100%;
}
.prendre:hover { filter: brightness(1.06); }
.prendre[disabled] { background: var(--panel-2); color: var(--muted); cursor: not-allowed; }

/* ---------------- Les paniers, en table ---------------- */
.table-enveloppe {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; overflow: auto;
}
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.pris { opacity: .55; }
td.num { font-variant-numeric: tabular-nums; }
td .mini {
  min-height: 34px; padding: 0 14px; border-radius: 9px; border: 0;
  background: var(--green); color: #06281f; font: inherit; font-weight: 650;
  font-size: 13px; cursor: pointer;
}
td .mini[disabled] { background: var(--panel-2); color: var(--muted); cursor: not-allowed; }

.vide {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 40px; text-align: center; color: var(--muted);
}

/* ---------------- Les alertes ---------------- */
.bloc {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px; margin-top: 16px;
}
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.role {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13.5px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.role:hover { color: var(--text); }
.role.actif { background: rgba(88,101,242,.16); border-color: #4a53b8; color: var(--text); }
.role .coche { color: var(--green); }
.ajout { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.ajout input {
  flex: 1 1 220px; background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; min-height: 40px; padding: 0 12px;
  font: inherit; font-size: 14px; outline: none;
}
.ajout button {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 650;
  cursor: pointer;
}
.mots { display: flex; flex-wrap: wrap; gap: 8px; }
.mot {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 8px 6px 14px; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 10px;
}
.mot .criteres { color: var(--muted); font-size: 12px; }
.mot button {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font-size: 15px; line-height: 1; padding: 2px 6px; border-radius: 6px;
}
.mot button:hover { color: var(--red); background: rgba(242,85,90,.12); }
.pause { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* ---------------- Le message, et la fenêtre de prise ---------------- */
#toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(140%);
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  padding: 12px 18px; border-radius: 11px; font-size: 14px; max-width: 90vw;
  transition: transform .22s ease; z-index: 40; text-align: center;
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.err { border-color: rgba(242,85,90,.6); }
#toast.ok { border-color: rgba(45,212,160,.55); }

.voile {
  position: fixed; inset: 0; background: rgba(5,7,12,.72); z-index: 50;
  display: grid; place-items: center; padding: 20px;
}
.dialogue {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px; max-width: 420px; width: 100%; text-align: center;
}
.dialogue h2 { font-size: 18px; margin-bottom: 8px; }
.dialogue p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.dialogue .ouvrir {
  display: flex; align-items: center; justify-content: center; min-height: 46px;
  border-radius: 11px; background: var(--accent); color: #fff; font-weight: 650;
  text-decoration: none; margin-bottom: 10px;
}
.dialogue .fermer {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 13.5px;
  cursor: pointer;
}

@media (max-width: 640px) {
  main { padding: 18px 14px 56px; }
  .chip.bascule { margin-left: 0; }
  .etat { margin-left: 0; width: 100%; }
  .barre { padding: 12px 14px; gap: 10px; }
  .onglets { order: 3; width: 100%; }
  .onglet { flex: 1; }
}
