/* ==========================================================================
   Nexus Club — habillage complet
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

:root {
  --bg: #06030f;
  --bg-2: #0c0720;
  --bg-3: #140a2e;
  --card: rgba(255, 255, 255, 0.05);
  --card-strong: #150c2e;
  --line: rgba(168, 85, 247, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f6f4ff;
  --muted: #a79fc4;
  --purple: #a855f7;
  --violet: #7c3aed;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --lime: #a3e635;
  --orange: #fb923c;
  --gold: #fbbf24;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 10px 40px rgba(168, 85, 247, 0.28);
  --nav-h: 70px;
  --header-h: 62px;
  --maxw: 1180px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
}

body::before,
body::after {
  content: '';
  position: fixed;
  width: 60vw;
  height: 60vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
  animation: floaty 16s ease-in-out infinite alternate;
}
body::before { top: -14vw; left: -18vw; background: var(--violet); }
body::after { bottom: -18vw; right: -18vw; background: var(--cyan); animation-delay: -6s; }

@keyframes floaty {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, 5vh, 0) scale(1.15); }
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 5vw, 2.1rem); }
h3 { font-size: 1.16rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 12px; }
a { color: var(--cyan); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ------------------------------ Ecran d'ouverture ----------------------- */
#app-splash {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #06030f;
}
#app-splash.show { display: flex; animation: splashOut 0.4s ease 1.2s forwards; }
#app-splash img { border-radius: 24px; box-shadow: var(--shadow-glow); }
#app-splash .splash-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--cyan);
}
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }
.admin-body #app-splash { background: #12082a; }

/* ------------------------------ En-tete --------------------------------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
  background: rgba(8, 4, 20, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.admin-body .app-header { background: rgba(18, 8, 42, 0.82); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); min-width: 0; }
/* Le logo : un vinyle rond avec le monogramme MC au centre, dans le degrade
   violet -> cyan de la maison. C est une image (assets/logo-mark.png), la
   meme partout : un logo ne change pas de couleur selon la page. */
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  line-height: 0;
  filter: drop-shadow(0 2px 9px rgba(168, 85, 247, 0.5));
  transition: transform 0.25s ease, filter 0.25s ease;
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.admin-body .brand-mark { filter: drop-shadow(0 2px 9px rgba(236, 72, 153, 0.5)); }
.admin-body .brand:hover .brand-mark { filter: drop-shadow(0 3px 13px rgba(236, 72, 153, 0.65)); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); filter: drop-shadow(0 3px 13px rgba(34, 211, 238, 0.6)); }
.brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* Le nom passe du violet au cyan : le meme degrade que le logo, en douceur. */
  background: linear-gradient(100deg, #ffffff 18%, #d9c7ff 55%, #8be9f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.admin-body .brand-text {
  background: linear-gradient(100deg, #ffffff 18%, #ffc9ec 55%, #c4a9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
}
.lang-btn {
  display: grid;
  place-items: center;
  min-width: 30px;
  padding: 4px 7px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-btn.active { background: linear-gradient(120deg, var(--violet), var(--cyan)); color: #fff; }
.header-avatar img, .header-avatar-fallback {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--purple);
}
.header-avatar-fallback {
  display: grid; place-items: center; background: var(--violet); font-weight: 700; color: #fff;
}

/* ------------------------------ Boutons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(120deg, var(--violet), var(--pink));
  color: #fff;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
}
.btn-neon {
  background: linear-gradient(120deg, var(--cyan), var(--lime));
  color: #04202a;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.32);
}
.btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--line-soft); }
.btn-danger { background: rgba(239, 68, 68, 0.16); color: #fecaca; border-color: rgba(239, 68, 68, 0.4); }
.btn-mini { padding: 8px 13px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------ Structure ------------------------------- */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 14px 40px;
}
.section { margin: 0 0 30px; }
.section-clear {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 16px 22px;
}
.admin-body .section-clear { background: rgba(255, 255, 255, 0.07); }

/* Cartes etapes 1 / 2 / 3 : fond aux couleurs du logo (violet -> cyan) */
.steps-grid .card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(34, 211, 238, 0.62));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.28);
}
.steps-grid .card .card-title svg { color: #ffffff; }
.steps-grid .card h3 { color: #ffffff; }
.steps-grid .card .muted { color: rgba(255, 255, 255, 0.92); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card.solid { background: var(--card-strong); }
.card + .card { margin-top: 14px; }
.card-title { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.card-title svg { color: var(--cyan); flex: 0 0 auto; }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ------------------------------ Hero ------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 30px 20px;
  margin-bottom: 26px;
  background:
    radial-gradient(120% 100% at 10% 0%, rgba(168, 85, 247, 0.45), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, rgba(34, 211, 238, 0.38), transparent 55%),
    linear-gradient(160deg, #17092f, #06030f);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-glow);
}
.hero-grid { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: center; }
.hero-image { position: relative; border-radius: 20px; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; }
.hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.35), rgba(6, 3, 15, 0.55));
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--cyan);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-lead { font-size: 1.02rem; color: #ddd7f5; max-width: 56ch; }

/* ------------------------------ Statistiques ---------------------------- */
.stat {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 15px;
  text-align: center;
}
.admin-body .stat { background: rgba(255, 255, 255, 0.06); }
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.65rem; font-weight: 700; line-height: 1.1;
  background: linear-gradient(120deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ------------------------------ Salles ---------------------------------- */
.room-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--card-strong);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform 0.12s ease, box-shadow 0.25s ease;
}
.room-card:active { transform: scale(0.97); }
.room-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.room-media img { width: 100%; height: 100%; object-fit: cover; }
.room-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 3, 15, 0.1), rgba(6, 3, 15, 0.92));
}
.room-body { padding: 15px 16px 17px; position: relative; }
.room-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.12rem; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.room-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(6, 3, 15, 0.7); border: 1px solid var(--line-soft);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; font-weight: 600;
  color: #fff;
}
.room-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--muted); margin-top: 8px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: pulse 1.6s infinite; }
.pulse-dot.calm { background: #64748b; box-shadow: none; animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.25); } }

.energy-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-top: 10px; }
.energy-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--lime)); transition: width 0.5s ease; }

/* ------------------------------ Avatars --------------------------------- */
/* La galerie ne montre que les personnages : ni cadre, ni nom d avatar, ni
   origine, ni description. L identite du membre, c est son pseudo, choisi a
   l inscription, et c est lui qui s affiche sur la piste et dans le tchat. */
.avatar-grid { display: grid; gap: 2px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.avatar-card {
  position: relative;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  text-align: center;
  color: var(--text);
  padding: 0 4px 6px;
  transition: transform 0.12s ease;
}
.avatar-card:active { transform: scale(0.97); }
.avatar-card.selected .avatar-photo img { filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.95)); }
.avatar-photo { position: relative; aspect-ratio: 3 / 4; overflow: visible; background: transparent; }
.avatar-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.avatar-card:hover .avatar-photo img { transform: scale(1.05); }
.cat-filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.cat-filter::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 8px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  color: var(--muted); font-size: 0.84rem; font-weight: 600; cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, color 0.2s ease;
}
.chip:active { transform: scale(0.97); }
.chip.active { background: linear-gradient(120deg, var(--violet), var(--pink)); color: #fff; border-color: transparent; }

/* --------------------- Salle : tout dans un seul encadre ---------------- */
/* La salle occupe tout l ecran. Plus d en-tete, plus de navigation basse,
   plus de logo : on ne voit que le tchat, les platines et la piste, et un
   seul bouton, Sortir, en haut a droite. */
.salon-body { padding-bottom: 0; }
.salon-body .page { max-width: none; margin: 0; padding: 8px; }
.venue-section { margin: 0; }

/* Le bouton Sortir : le seul bouton de la salle, en haut a droite */
.room-exit {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  right: 10px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  border-radius: 10px;
  background: rgba(20, 10, 44, 0.9);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.room-exit:active { transform: scale(0.97); }

/* L ecran d inclinaison a ete retire : on entre dans la salle directement,
   sans demander de tourner le telephone. */

/* L ecran des platines : sa hauteur est reglee pour que la salle entiere
   tienne a l ecran, sans defilement. */
.venue-booth .deck-screen { width: 100%; height: clamp(142px, 24vh, 228px); }

/* Le titre YouTube en haut de la video est masque par un fin degrade noir
   qui se fond dans l image (48px de haut seulement). L ancien voile montait
   a 30% de la hauteur avec un violet opaque : c est lui qui se voyait comme
   une large bande mauve sur le sommet de la video. */
.deck-screen::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: min(46px, 32%);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0) 100%);
  pointer-events: auto;
  z-index: 3;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

/* La video joue en muet des le depart : YouTube n affiche donc plus son titre
   ni son bouton « Regarder sur YouTube ». Aucun voile en bas : les commandes
   du lecteur (lecture, son, plein ecran) restent entierement accessibles. */

/* L encadre unique, plein ecran : la cabine DJ en haut au milieu (l ecran
   YouTube incruste, puis le tchat juste en dessous, a la place de la table
   de mixage), et la piste de danse en dessous. Rien d autre.
   Le tout tient dans la hauteur de l ecran : aucun defilement. */
.venue {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
  padding: 8px;
  min-height: calc(100vh - 16px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.venue-dance, .venue-booth, .venue-chat { min-width: 0; }

/* La cabine DJ : centree, large, l ecran puis le tchat empiles.
   La table de mixage a ete retiree : sa place va au tchat. */
.venue-booth {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}
.venue-booth .deck { margin: 0; }

/* --- La mini platine, juste sous le bouton Platines ---------------------
   C est la que se tient le DJ en cours : debout DERRIERE sa table, tourne
   vers la salle (donc vers celui qui regarde son telephone). Le DJ n est
   plus superpose a la video.
   La face de la table est garnie de boutons, de faders et des deux platines
   qui tournent : c est du decor seulement, rien a cliquer dessus. */
.mini-deck {
  position: relative;
  /* Une vraie console est plus large que haute, mais pas etalee sur toute la
     page : on la limite, centree. Le DJ, lui, reste bien visible derriere. */
  width: 100%;
  max-width: 520px;
  margin: 6px auto 0;
  /* Assez haute pour qu on voie le DJ du buste jusqu au-dessus de la table,
     tout en restant compacte : la salle tient dans l ecran. */
  height: clamp(84px, 13vh, 126px);
  border-radius: 14px;
  overflow: hidden;
  /* L eclairage de la cabine : un halo violet tombe du plafond sur la table.
     Sans ca, la zone du DJ restait un rectangle sombre et vide. */
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(168, 85, 247, 0.30), transparent 68%),
    radial-gradient(70% 60% at 50% 100%, rgba(34, 211, 238, 0.14), transparent 70%),
    linear-gradient(180deg, #170f2e, #0a0518);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* Le DJ : debout derriere la table, son bas de corps passe derriere la face
   de la table. Il ne prend aucune place supplementaire. */
.deck-dj {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.deck-dj img {
  /* Le personnage occupe toute la hauteur du cadre : sa tete reste donc
     entiere. Son bas (jambes et pieds) passe DERRIERE la face de la table,
     qui le recouvre : c est ce qui donne l effet « DJ debout derriere ses
     platines », tourne vers la salle. */
  height: 100%;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}
/* La face de la table de mixage, vue de face : une platine tournante de
   chaque cote, et au milieu le pupitre avec ses boutons, ses molettes et ses
   faders. Tout est en decor : rien n est cliquable, on clique seulement sur
   les vrais boutons de la salle. */
.mini-deck-face {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 3px 5px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #2c1e4d, #130c28);
  background-size: 100% 26%, 100% 100%;
  background-position: 0 26%, 0 0;
  background-repeat: no-repeat, no-repeat;
}

/* --- Une platine tournante : le socle, le disque qui tourne, le bras --- */
.md-tt {
  position: relative;
  flex: 0 0 auto;
  width: 13%;
  min-width: 26px;
  max-width: 56px;
  height: 92%;
  border-radius: 8px;
  background: linear-gradient(180deg, #3a2860, #1a1130);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 2px 6px rgba(0, 0, 0, 0.5);
}
/* Les deux disques des platines sont IMMOBILES : leur rotation attirait
   l oeil et genait la lecture de la video. Ils restent dessines, mais fixes. */
.md-disc {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9) 0 6%, transparent 7%),
    radial-gradient(circle at 50% 50%, #0b0718 0 30%, #463474 31% 43%, #150e2a 44% 100%);
}
/* Le petit trait blanc du disque : le repere du sillon du vinyle. */
.md-disc::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 9%;
  width: 2px;
  height: 9%;
  margin-left: -1px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.92);
}
.md-arm {
  position: absolute;
  right: 6%;
  top: 8%;
  width: 2px;
  height: 38%;
  border-radius: 2px;
  transform: rotate(20deg);
  transform-origin: top center;
  background: linear-gradient(180deg, #d8cff2, rgba(216, 207, 242, 0.25));
}
/* Le bras de la platine de droite est le miroir de celui de gauche. */
.md-tt-r .md-arm { right: auto; left: 6%; transform: rotate(-20deg); }

/* --- Le pupitre du milieu : les molettes, les faders et les pads --- */
.md-unit {
  flex: 1 1 auto;
  min-width: 0;
  height: 92%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2px;
  padding: 3px 5px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #241845, #150e2c);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
/* Les molettes, en haut du pupitre */
.md-knobs { display: flex; justify-content: space-between; gap: 2px; flex: 0 0 auto; }
.md-knobs i {
  flex: 1 1 0;
  max-width: 11px;
  align-self: center;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #efeafd, #6b5a9c 58%, #2a1d49);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 5px rgba(34, 211, 238, 0.4);
}
/* Les faders, au milieu : chaque curseur est a une hauteur differente */
.md-faders { display: flex; justify-content: space-between; gap: 3px; flex: 1 1 auto; min-height: 8px; }
.md-faders i {
  flex: 1 1 0;
  max-width: 6px;
  position: relative;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.md-faders i::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), #a5f3fc);
  box-shadow: 0 0 5px rgba(34, 211, 238, 0.7);
}
.md-faders i:nth-child(1)::after { top: 8%; }
.md-faders i:nth-child(2)::after { top: 46%; }
.md-faders i:nth-child(3)::after { top: 22%; }
.md-faders i:nth-child(4)::after { top: 72%; }
.md-faders i:nth-child(5)::after { top: 34%; }
/* Les pads, en bas : les petites touches carrees */
.md-pads { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px; flex: 0 0 auto; }
.md-pads i {
  flex: 0 0 auto;
  width: 8px;
  height: 4px;
  border-radius: 1.5px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 4px rgba(168, 85, 247, 0.35);
}
.md-pads i:nth-child(3n) { background: rgba(236, 72, 153, 0.6); }

/* L ancienne animation des disques (deckSpin) est retiree : les disques sont
   maintenant immobiles. */

/* --- Le stroboscope, en haut a droite de la piste ----------------------
   Un petit bloc stroboscope fixe au plafond, dans le coin superieur droit de
   la piste : une lentille qui flashe et un cone de lumiere qui s ouvre vers
   la piste. C est du decor pur : rien a cliquer, aucun son. */
.floor-strobe {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 104px;
  height: 96px;
  pointer-events: none;
}
.strobe-unit {
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(180deg, #43307a, #150e2a);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.strobe-lens {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffffff, #ddd6fe 42%, #7c3aed);
  animation: strobeLens 0.5s steps(1, end) infinite;
}
.strobe-beam {
  position: absolute;
  top: 20px;
  right: 8px;
  width: 92px;
  height: 74px;
  clip-path: polygon(100% 0, 6% 100%, 100% 100%);
  transform-origin: top right;
  background: linear-gradient(200deg, rgba(255, 255, 255, 0.55), rgba(168, 85, 247, 0.18) 55%, transparent);
  filter: blur(2px);
  opacity: 0;
  animation: strobeBeam 0.5s steps(1, end) infinite;
}
/* Le flash : lentille allumee et cone visible sur la premiere moitie du
   cycle, eteints sur la seconde. Ce clignotement est franc et bref, il ne
   fatigue pas l oeil et ne gene pas la video. */
@keyframes strobeLens {
  0%, 45% { opacity: 1; box-shadow: 0 0 16px 5px rgba(255, 255, 255, 0.8); }
  46%, 100% { opacity: 0.22; box-shadow: none; }
}
@keyframes strobeBeam {
  0%, 45% { opacity: 0.6; }
  46%, 100% { opacity: 0; }
}
/* Respect du reglage « reduire les animations » du telephone : dans ce cas
   le stroboscope reste allume, mais fixe. */
@media (prefers-reduced-motion: reduce) {
  .strobe-lens { animation: none; opacity: 0.85; box-shadow: 0 0 14px 4px rgba(255, 255, 255, 0.7); }
  .strobe-beam { animation: none; opacity: 0.35; }
}

/* Le pseudo du DJ, sur la face avant de la table : un petit afficheur du
   pupitre, exactement comme sur une vraie table de mixage. */
.deck-dj-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 3px;
  z-index: 3;
  padding: 1px 9px;
  border-radius: 6px;
  background: rgba(6, 3, 15, 0.88);
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
}
.deck-dj-name:empty { display: none; }

/* La piste prend la place qui reste : rien ne depasse de l ecran. */
.venue-dance { order: 2; display: flex; flex-direction: column; }
.venue-dance .floor { flex: 1; min-height: 96px; margin-top: 8px; }

/* Le tchat, sous l ecran : compact, il partage la largeur de la cabine. */
.venue-chat { display: flex; flex-direction: column; }
.venue-chat .chat-box { height: min(22vh, 176px); }
.venue-chat .chat-log { padding: 8px; gap: 6px; }
.venue-chat .card-title { margin-bottom: 6px; }
.venue-chat .chat-body { max-width: 90%; }

@media (min-width: 900px) {
  /* La cabine au milieu en haut, la piste en dessous : la salle remplit
     exactement la hauteur de l ecran. */
  .venue { min-height: calc(100vh - 20px); }
  .venue-booth { max-width: 800px; }
  .venue-booth .deck-screen { height: clamp(142px, 23vh, 206px); }
  .venue-chat .chat-box { height: min(20vh, 168px); }
  .venue-dance .floor { min-height: 150px; }
  .venue-booth .platter { margin-top: 6px; padding: 6px 10px; }
}

/* Telephone couche (ecran tourne) : la meme salle, plein ecran, meme si la
   largeur reste sous 900px. C est le mode recommande pour jouer.
   Ici on ne pose que la disposition : les hauteurs sont reglees tout en
   bas du fichier, apres les styles de base (sinon elles sont ecrasees). */
@media (orientation: landscape) and (max-height: 620px) {
  .venue {
    min-height: calc(100vh - 12px);
    padding: 5px;
    gap: 5px;
  }
  .venue-booth { max-width: none; }
}

/* Vignettes rondes : les avatars sont en pied, on recadre sur le visage */
.queue-avatar, .chat-avatar, .header-avatar img, .header-avatar-fallback, .admin-thumb { object-position: center 14%; }
.profil-photo { object-position: center 12%; }

/* ------------------------------ Piste de danse -------------------------- */
.floor {
  position: relative;
  border-radius: 22px;
  margin-top: 12px;
  padding: 22px 14px 34px;
  min-height: 360px;
  background:
    radial-gradient(90% 90% at 50% 0%, rgba(168, 85, 247, 0.32), transparent 65%),
    linear-gradient(180deg, #150a2d, #08041a);
  border: 1px solid var(--line);
  overflow: hidden;
  perspective: 560px;
}

/* Sol en perspective : le carrelage s eloigne vers le fond de la salle */
.floor::before {
  content: '';
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -1px;
  height: 72%;
  background:
    linear-gradient(180deg, rgba(6, 3, 15, 0.05), rgba(6, 3, 15, 0.82) 78%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0 2px, transparent 2px 74px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.10) 0 2px, transparent 2px 52px);
  transform: rotateX(64deg);
  transform-origin: bottom center;
  opacity: 0.75;
  pointer-events: none;
}

/* Projecteur qui descend sur la piste */
.floor::after {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  width: 78%;
  height: 120%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 0%, rgba(236, 72, 153, 0.20), transparent 70%);
  pointer-events: none;
}
.floor.live { box-shadow: inset 0 0 80px rgba(34, 211, 238, 0.22); }
/* Beaucoup d avatars doivent tenir sur la piste : petites vignettes serrees */
.floor-dancers {
  position: relative; z-index: 1;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-content: start;
}
/* Personnages sur la piste : pas de cadre, on voit le corps entier */
.dancer {
  position: relative;
  border-radius: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  transition: transform 0.12s ease;
}
.dancer:active { transform: scale(0.97); }
.dancer img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.75)); }
.dancer-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3px 4px 4px;
  font-size: 0.6rem; font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(6, 3, 15, 0.95));
  display: flex; align-items: center; justify-content: center; gap: 4px;
  white-space: nowrap; overflow: hidden;
}
.dancer-name span:first-child { overflow: hidden; text-overflow: ellipsis; }
.dancer-likes { color: var(--gold); font-size: 0.58rem; }
.dancer.off { opacity: 0; transform: scale(0.6); pointer-events: none; }
.dancer-off { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 0.8rem; }
/* Le personnage qui vient d aimer le passage du DJ ondule : ses bras, ses
   jambes et sa tete bougent. L animation est dessinee DANS le personnage
   (dans le fichier -v6d.svg), et non posee en CSS : elle tourne donc partout,
   y compris sur iPhone, ou les animations CSS dans une image ne marchent pas.
   Ici, on ne fait que marquer le pas et legerement sautiller. */
.dancer.dancing { animation: bounce 0.92s ease-in-out infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  25% { transform: translateY(-7px) rotate(0deg); }
  50% { transform: translateY(-1px) rotate(1.5deg); }
  75% { transform: translateY(-8px) rotate(0deg); }
}
.dancer .like-float {
  position: absolute; top: 6px; right: 6px;
  font-size: 0.68rem; font-weight: 700; color: #fff;
  background: rgba(236, 72, 153, 0.85);
  padding: 2px 7px; border-radius: 999px;
}
.floor-empty { text-align: center; color: var(--muted); padding: 46px 10px; }

/* --------------------- Platines : pupitre de DJ ------------------------- */
/* Plus aucun cadre autour de la video : le pupitre, sa grille de haut-parleur
   et sa bordure sont retires. Il ne reste que la video incrustee, nue. */
.deck {
  position: relative;
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

/* L ecran est incruste dans le pupitre, avec son cadre et sa lumiere.
   Plus de 16/9 : sa hauteur est reglee plus bas, pour que la salle
   entiere tienne dans l ecran sans defilement. */
/* La video seule : plus d anneaux, plus de bordure, plus d ombre autour.
   Juste la video incrustee dans la page. */
.deck-screen {
  position: relative;
  z-index: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 0;
  box-shadow: none;
}
.deck-screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); text-align: center; padding: 20px;
  background: radial-gradient(80% 80% at 50% 30%, rgba(168, 85, 247, 0.22), transparent 70%);
}

/* Le champ du DJ : court, sous l ecran, pour coller un lien YouTube */
.deck-link {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 6px;
  margin: 7px 2px 0;
}
.deck-link input {
  flex: 1; min-width: 0;
  padding: 6px 10px;
  /* 16px minimum : en dessous, iOS agrandit TOUTE la page des que le champ
     est touche, et on ne voit alors plus qu une partie de la salle. */
  font-size: 1rem;
  border-radius: 9px;
}
.deck-link .btn { flex: 0 0 auto; padding: 7px 11px; font-size: 0.8rem; }

/* Les deux boutons de la salle, sous l ecran :
   J aime (on aime le passage du DJ) et Devenir DJ (on prend les platines). */
.deck-actions {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 6px 2px 0;
}
.deck-actions .btn { flex: 1 1 auto; padding: 7px 14px; font-size: 0.82rem; }
.deck-actions .btn.is-on {
  background: linear-gradient(120deg, var(--cyan), var(--lime));
  color: #04202a;
}

/* L ancienne ligne de statut (« aux platines ... encore N min »), affichee
   sous les platines, a ete retiree : rien ne s ecrit plus sous la table. */

/* Le tchat de la salle et la file des DJs : DEUX ONGLETS a la meme place.
   Il n y a pas la place de montrer les deux a la fois, donc on bascule de
   l un a l autre d une touche. Les deux panneaux sont empiles : ouvrir la
   file ne pousse donc JAMAIS la piste de danse hors de l ecran. */
.venue-chat-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.venue-chat-row .venue-chat { flex: 1 1 auto; min-width: 0; }

/* Les deux onglets, cote a cote, au-dessus du panneau. */
.venue-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  flex: 0 0 auto;
}
/* Un onglet : bouton fin, rectangulaire, jamais ovale. */
.vt-tab {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 5px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, color 0.18s ease;
}
.vt-tab.active { background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #06030f; }
.vt-tab:not(.active):hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.vt-tab svg { flex: 0 0 auto; }
/* Le petit compteur d attente, pose sur l onglet de la file. */
.vt-badge {
  flex: 0 0 auto;
  min-width: 15px;
  padding: 0 4px;
  border-radius: 5px;
  background: var(--cyan);
  color: #06030f;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
}
.vt-tab.active .vt-badge { background: #06030f; color: var(--cyan); }
.vt-panel { min-width: 0; }
.vt-panel[hidden] { display: none !important; }

/* La file des DJs : le DJ aux platines, puis les cinq premiers inscrits.
   Les pseudos viennent de la base, choisis a l inscription. */
.decks-queue {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
/* La file affichee en onglet : la liste prend la hauteur du panneau et
   defile au besoin, au lieu de pousser la salle vers le bas. */
.vt-panel .dq-list { padding: 6px 8px 8px; max-height: min(22vh, 176px); overflow-y: auto; }
.vt-panel .dq-empty { padding: 10px 8px; color: var(--muted); font-size: 0.78rem; text-align: center; }
.dq-count { font-size: 0.64rem; color: var(--muted); white-space: nowrap; flex: 0 0 auto; }
.dq-count:empty { display: none; }
.dq-list {
  list-style: none;
  margin: 0;
  padding: 0 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dq-item {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 8px 3px 3px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line-soft);
  font-size: 0.74rem;
}
.dq-item.dq-mine { border-color: var(--cyan); }
.dq-tag {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dq-now { background: linear-gradient(120deg, var(--violet), var(--pink)); color: #fff; }
.dq-next { background: rgba(255, 255, 255, 0.1); color: var(--muted); }
.dq-pseudo {
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* La barre lumineuse sous l ecran a ete retiree avec les autres cadres.
   Il ne reste que la video incrustee, nue, et le champ du DJ en dessous. */

/* Le bloc titre / artiste sous l ecran a ete retire de la salle.
   La liste des morceaux n y est plus non plus : seuls le tchat, la video
   incrustee et la piste de danse restent. */
.track-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  cursor: pointer; transition: transform 0.12s ease, background 0.2s ease;
  color: var(--text); text-align: left; width: 100%;
}
.track-item:active { transform: scale(0.98); }
.track-item.active { border-color: var(--cyan); background: rgba(34, 211, 238, 0.1); }
.track-index { width: 24px; text-align: center; color: var(--muted); font-size: 0.82rem; flex: 0 0 auto; }

/* ------------------------------ File DJ --------------------------------- */
.queue-current {
  border-radius: 16px; padding: 15px;
  background: linear-gradient(120deg, rgba(168, 85, 247, 0.22), rgba(34, 211, 238, 0.14));
  border: 1px solid var(--line);
}
.queue-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  margin-top: 8px;
}
.queue-row.me { border: 1px solid var(--cyan); }
.queue-pos {
  width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.76rem; font-weight: 700;
}
.queue-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--line-soft); }
.countdown {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.5rem;
  color: var(--cyan);
}
.progress-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-top: 10px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--pink), var(--cyan)); transition: width 1s linear; }

/* ------------------------------ Tchat ----------------------------------- */
.chat-box {
  display: flex; flex-direction: column;
  height: min(58vh, 460px);
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; gap: 9px; align-items: flex-start; }
.chat-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--line-soft); }
.chat-body { background: rgba(255, 255, 255, 0.06); border-radius: 13px; padding: 8px 12px; max-width: 82%; }
.chat-author { font-size: 0.76rem; font-weight: 700; color: var(--cyan); }
.chat-text { font-size: 0.92rem; word-break: break-word; }
.chat-time { font-size: 0.68rem; color: var(--muted); }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line-soft); background: rgba(6, 3, 15, 0.6); }
.chat-form input { flex: 1; }

/* ------------------------------ Formulaires ----------------------------- */
label { display: block; font-size: 0.83rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}
.field { margin-bottom: 14px; }
.form-note { font-size: 0.8rem; color: var(--muted); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; }

.auth-shell { max-width: 460px; margin: 0 auto; }
.auth-shell .card { padding: 22px; }

.alert {
  border-radius: 13px; padding: 11px 14px; font-size: 0.88rem; margin-bottom: 13px;
  border: 1px solid transparent;
}
.alert-error { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.42); color: #fecaca; }
.alert-success { background: rgba(163, 230, 53, 0.13); border-color: rgba(163, 230, 53, 0.4); color: #d9f99d; }
.alert-info { background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.36); color: #cffafe; }

/* ------------------------------ Navigation basse ------------------------ */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: flex;
  justify-content: space-around;
  gap: 2px;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 5, 24, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-soft);
}
.admin-body .bottom-nav { background: rgba(20, 9, 44, 0.76); }
.nav-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 3px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.66rem; font-weight: 600;
  transition: transform 0.12s ease, background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-item:active { transform: scale(0.97); }
.nav-item.active { background: linear-gradient(120deg, rgba(124, 58, 237, 0.9), rgba(236, 72, 153, 0.85)); color: #fff; }
.admin-body .nav-item.active { background: linear-gradient(120deg, rgba(236, 72, 153, 0.9), rgba(124, 58, 237, 0.85)); }
.nav-icon { display: grid; place-items: center; }
.nav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ------------------------------ Modal installation ---------------------- */
.install-modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: rgba(3, 1, 9, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* margin auto : la fenetre reste centree quand elle est courte,
   et devient defilable quand elle est plus haute que l ecran. */
.install-modal { max-width: 400px; width: 100%; text-align: center; margin: auto; }
.install-modal h4 { margin-bottom: 10px; }
.install-logos { display: flex; justify-content: center; gap: 12px; margin: 14px 0 16px; }
.install-logo {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-soft);
  font-size: 0.84rem; font-weight: 600;
}

/* ------------------------------ Divers ---------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
}
.pill.ok { background: rgba(163, 230, 53, 0.16); color: var(--lime); }
.pill.warn { background: rgba(251, 191, 36, 0.16); color: var(--gold); }
.pill.off { background: rgba(148, 163, 184, 0.18); color: #cbd5e1; }
.pill.live { background: rgba(34, 211, 238, 0.18); color: var(--cyan); }

.list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap;
}
.list-row:last-child { border-bottom: 0; }

.toast-wrap {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 300; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px);
}
.toast {
  padding: 12px 15px; border-radius: 13px;
  background: rgba(20, 10, 44, 0.96); border: 1px solid var(--line);
  box-shadow: var(--shadow); font-size: 0.88rem;
  animation: toastIn 0.28s ease;
}
.toast.error { border-color: rgba(239, 68, 68, 0.5); color: #fecaca; }
.toast.success { border-color: rgba(163, 230, 53, 0.45); color: #d9f99d; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

.footer-note {
  text-align: center; color: var(--muted); font-size: 0.8rem;
  padding: 22px 10px 6px; border-top: 1px solid var(--line-soft); margin-top: 22px;
}

/* ------------------------------ Administration -------------------------- */
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 560px; }
table.admin-table th, table.admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.admin-table th { color: var(--muted); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.07em; }
table.admin-table tr:active { background: rgba(255, 255, 255, 0.03); }
.admin-thumb { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.chart-box { position: relative; height: 240px; }
.chart-box canvas { width: 100% !important; height: 100% !important; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bar-row .bar-label { width: 74px; font-size: 0.78rem; color: var(--muted); flex: 0 0 auto; }
.bar-track { flex: 1; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.bar-value { font-size: 0.78rem; color: var(--muted); width: 46px; text-align: right; flex: 0 0 auto; }
.gate { max-width: 460px; margin: 40px auto; }

/* ------------------------------ Responsive ------------------------------- */
@media (min-width: 420px) {
  .floor-dancers { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .avatar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .floor-dancers { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .booth { grid-template-columns: 1.3fr 0.7fr; }
  .salon-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }
  .avatar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .floor-dancers { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .page { padding: 26px 22px 54px; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .avatar-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .floor-dancers { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .salon-col { display: block; }
  .hero { padding: 24px 16px; }
}

/* =====================================================================
   SALLE — tenir dans l ecran (reglages en dernier volontairement)
   Places plus haut, ces styles seraient ecrases par les styles de base
   de la cabine DJ (meme selecteur, ecrit plus bas dans le fichier) :
   c est ce qui faisait deborder la salle et obligeait a defiler.
   Objectif : tout est visible d un coup, sans defilement.
   ===================================================================== */

/* --- Telephone / tablette tenu droit : les blocs s empilent --- */
@media (max-width: 899px) {
  /* La salle est verrouillee sur la hauteur de l ecran (height, et non plus
     min-height) : quand un element apparait en plus (la file des DJs, le champ
     du lien du DJ), la piste se comprime au lieu de pousser la salle hors de
     l ecran. Sans ca, on ne voyait plus qu une moitie de la salle.
     La 2e rangee garde 72px garantis : la piste de danse ne disparait jamais. */
  .venue {
    padding: 6px;
    gap: 5px;
    height: calc(100vh - 12px);
    height: calc(100dvh - 12px);
    min-height: 0;
    overflow: hidden;
    grid-template-rows: minmax(0, auto) minmax(72px, 1fr);
  }
  /* Le tchat est agrandi : il prend la place liberee par la table de mixage */
  .venue-chat .chat-box { height: min(28vh, 228px); min-height: 150px; }
  .venue-chat .chat-log { padding: 10px; gap: 8px; }
  /* Ecran agrandi d environ 1 cm : le tchat descend, la piste raccourcit */
  .venue-booth .deck-screen { height: clamp(122px, 20vh, 174px); }
  .deck-link { margin: 5px 2px 0; gap: 5px; }
  .deck-link input { padding: 5px 9px; font-size: 1rem; }
  .deck-link .btn { padding: 5px 10px; font-size: 0.74rem; }
  /* La piste cede un peu de hauteur a la mini platine : le DJ occupe
     maintenant sa propre place sous les boutons. */
  .venue-dance .floor { min-height: 0; padding: 6px 10px 10px; }
  .dancer img { max-height: 62px; }
  .dancer-name { font-size: 0.55rem; padding: 2px 3px 3px; }
  /* La mini platine, sous le bouton Platines : compacte, elle accueille le
     DJ debout derriere sa table. */
  .mini-deck { height: clamp(56px, 9vh, 84px); }
  .deck-dj-name { font-size: 0.6rem; padding: 1px 7px; }
  /* Le champ du lien n apparait que pendant TON passage aux platines. Il
     occupe une trentaine de pixels : l ecran lui cede exactement cette place,
     sinon la cabine pousse la piste de danse hors de l ecran. */
  .venue:has(#deckLink:not([hidden])) .deck-screen { height: clamp(96px, 15vh, 138px); }
}

/* Le cadre est toujours calque sur la hauteur de l ecran, sans marge qui
   depasse : aucun defilement, quel que soit l appareil. */
.salon-body .page { padding: 6px; }
.salon-body { overflow: hidden; }

/* --- Ordinateur : cabine au milieu en haut, puis la piste dessous --- */
@media (min-width: 900px) {
  .venue-booth .deck-screen { height: clamp(138px, 23vh, 206px); }
  /* Tchat agrandi, piste raccourcie, avatars plus petits : la salle tient
     toujours dans l ecran, sans defilement. */
  .venue-chat .chat-box { min-height: 160px; max-height: 300px; }
  .venue-dance .floor { min-height: 0; }
  .dancer img { max-height: 92px; }
}

/* --- Telephone couche (paysage) : le mode de jeu, tres compact --- */
@media (orientation: landscape) and (max-height: 620px) {
  /* La salle est verrouillee sur la hauteur de l ecran : rien ne depasse,
     aucun defilement possible. */
  .venue {
    height: calc(100vh - 12px);
    height: calc(100dvh - 12px);
    min-height: 0;
    overflow: hidden;
  }
  /* Le tchat cede ~20px : cette place revient a la piste et aux deux
     nouveaux boutons (J aime et Devenir DJ), pour que tout tienne a l ecran. */
  .venue-chat .chat-box { height: auto; min-height: 64px; max-height: 98px; }
  .venue-booth .deck-screen { height: clamp(82px, 21vh, 124px); }
  .deck-link { margin: 4px 2px 0; gap: 5px; }
  /* 16px imperatif : en dessous, iOS agrandit TOUTE la page des qu on touche
     le champ, et on ne voit alors plus qu une moitie de la salle. */
  .deck-link input { padding: 4px 8px; font-size: 1rem; border-radius: 8px; }
  .deck-link .btn { padding: 4px 8px; font-size: 0.7rem; }
  .venue-booth .platter { display: none; }
  /* La mini platine est ecrasee en paysage : on ne garde que le DJ et une
     fine bande de table, pour que la piste garde le maximum de place. */
  .mini-deck { height: clamp(42px, 13vh, 62px); margin-top: 4px; }
  .deck-dj-name { font-size: 0.56rem; padding: 1px 6px; bottom: calc(46% + 2px); }

  /* La piste : avatars petits et serres, pour tenir dans la hauteur qui reste */
  .venue-dance { min-height: 0; }
  .venue-dance .floor { min-height: 0; padding: 6px 8px 8px; overflow: hidden; }
  .floor-dancers { grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 3px; }
  .dancer img { max-height: 44px; }
  .dancer-name { font-size: 0.5rem; padding: 1px 3px 2px; }
  .dancer .like-float { font-size: 0.54rem; top: 2px; right: 2px; padding: 1px 4px; }
  /* Le stroboscope est reduit en paysage : la piste est courte, il ne doit pas
     manger la place des danseurs. */
  .floor-strobe { width: 62px; height: 52px; top: 5px; right: 5px; }
  .strobe-unit { width: 24px; height: 15px; border-radius: 5px; }
  .strobe-lens { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
  .strobe-beam { top: 12px; right: 5px; width: 54px; height: 38px; }
}

/* --- Le stroboscope sur petit ecran (telephone tenu droit) --------------
   Il est plus discret : la piste est etroite, il ne doit pas recouvrir les
   premiers danseurs. */
@media (max-width: 899px) {
  .floor-strobe { width: 74px; height: 66px; }
  .strobe-unit { width: 28px; height: 17px; }
  .strobe-lens { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
  .strobe-beam { top: 14px; width: 66px; height: 50px; }
}

/* --- La file des DJs, juste a droite du tchat (ordinateur) --------------
   Sur ordinateur, le tchat et le deroulant de la file sont cote a cote : le
   tchat a gauche, la file juste a sa droite. Sur telephone, les deux blocs
   restent l un sous l autre (regle ecrite plus haut). */
@media (min-width: 900px) {
  .venue-chat-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }
  .venue-chat-row .venue-chat { flex: 1 1 auto; }
  .venue-chat-row .decks-queue { flex: 0 0 auto; width: min(230px, 32%); }
}

/* --------------------- Classement (Top des DJs) -------------------------
   Seuls les pseudos reels des visiteurs y figurent : ceux qui ont recu des
   j aime pendant leur passage aux platines. Aucun DJ preenregistre. */
.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
}
.rank-pos {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
/* Les trois premiers sont mis en avant : or, argent, bronze. */
.rank-row:nth-child(1) .rank-pos { background: linear-gradient(120deg, var(--gold), #f59e0b); color: #2a1a00; }
.rank-row:nth-child(2) .rank-pos { background: linear-gradient(120deg, #e2e8f0, #94a3b8); color: #1a1a2e; }
.rank-row:nth-child(3) .rank-pos { background: linear-gradient(120deg, #f59e0b, #b45309); color: #fff; }
.rank-img img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 14%;
  border: 1px solid var(--line-soft);
}
.rank-who { flex: 1 1 auto; min-width: 0; }
.rank-pseudo {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-likes {
  flex: 0 0 auto;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
}
.rank-heart { font-size: 0.78rem; }

/* --------------------- Administration : apercu du personnage ------------
   Dans la fenetre d un avatar (ou d un personnage), on voit le dessin en
   grand avant d enregistrer : la liste ne montre plus que les personnages. */
.avatar-preview { display: flex; justify-content: center; margin: 4px 0 12px; }
.avatar-preview img {
  max-height: 170px;
  max-width: 100%;
  width: auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

/* ------------------------------------------------------------------
   Personnages djfree : ils sont dessines en images fixes, c est le CSS
   qui les fait danser. Seul l avatar qui vient d aimer le passage du DJ
   danse : le reste de la salle ne bouge pas.
   ------------------------------------------------------------------ */
.dancer.dancing { animation: mxDance 1.05s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes mxDance {
  0%, 100% { transform: translateY(0) rotate(-2.5deg); }
  20%      { transform: translateY(-6px) rotate(1.5deg); }
  40%      { transform: translateY(-2px) rotate(2.5deg); }
  60%      { transform: translateY(-7px) rotate(-1.5deg); }
  80%      { transform: translateY(-1px) rotate(-2.5deg); }
}
.dancer.dancing img { animation: mxOndule 0.92s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes mxOndule {
  0%, 100% { transform: skewX(-3.5deg) scaleY(1); }
  50%      { transform: skewX(3.5deg) scaleY(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .dancer.dancing, .dancer.dancing img { animation: none; }
}

/* ------------------------------------------------------------------
   Amis : la fiche d un membre, et les boutons de demande.
   ------------------------------------------------------------------ */
.rank-row[data-membre] { cursor: pointer; }
.rank-row[data-membre]:active { transform: scale(0.995); }

.fiche-card { max-width: 460px; margin: 0 auto; text-align: center; }
.fiche-photo {
  width: 120px; height: 120px; margin: 0 auto 12px;
  border-radius: 20px; overflow: hidden; background: rgba(255, 255, 255, 0.06);
}
.fiche-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.fiche-pseudo { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; margin: 0 0 4px; }
.fiche-etat { font-size: 0.75rem; color: var(--muted); }
.fiche-etat.en-ligne { color: #4ade80; }
.fiche-stats { display: flex; justify-content: center; gap: 26px; margin: 14px 0; }
.fiche-stats div { text-align: center; }
.fiche-stats strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; }
.fiche-stats span { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.fiche-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }
.friend-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px; border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.06); color: var(--text);
  font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.friend-btn:hover { background: rgba(255, 255, 255, 0.12); }
.friend-btn.primary { background: linear-gradient(120deg, #7c3aed, #22d3ee); border-color: transparent; color: #fff; }
.friend-btn.ok { background: rgba(74, 222, 128, 0.16); border-color: rgba(74, 222, 128, 0.45); color: #86efac; }
.friend-btn:disabled { opacity: 0.55; cursor: default; }

.friends-list { display: grid; gap: 8px; }
.friend-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-soft);
}
.friend-row img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; object-position: center 12%; }
.friend-row .fr-who { flex: 1 1 auto; min-width: 0; }
.friend-row .fr-pseudo { font-weight: 600; font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-row .fr-etat { font-size: 0.68rem; color: var(--muted); }
.friend-row .fr-etat.en-ligne { color: #4ade80; }
.friend-row .fr-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.friend-row .friend-btn { padding: 6px 11px; font-size: 0.74rem; }

@media (max-width: 420px) {
  .fiche-stats { gap: 18px; }
  .friend-row .friend-btn { padding: 5px 9px; font-size: 0.7rem; }
}

/* ------------------------------------------------------------------
   En-tete sur petit telephone : le nom « djfree » doit rester
   entier. On resserre les espacements et on reduit un peu le logo et
   les boutons FR/EN plutot que de couper le nom.
   ------------------------------------------------------------------ */
@media (max-width: 520px) {
  .app-header { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .brand { gap: 7px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-text { font-size: 0.86rem; }
  .lang-switch { padding: 2px; }
  .lang-switch .lang-btn { padding: 4px 7px; font-size: 0.7rem; }
  .header-actions { gap: 6px; }
}
@media (max-width: 375px) {
  .brand-text { font-size: 0.78rem; }
  .brand-mark { width: 27px; height: 27px; }
}

/* ------------------------------------------------------------------
   Le menu de l en-tete (ordinateur uniquement).
   Sur telephone il n existe pas : c est la barre du bas qui sert de
   menu. Ici il prend place au centre de l en-tete.
   ------------------------------------------------------------------ */
.top-nav { display: none; }

/* =====================================================================
   ORDINATEUR : le site utilise toute la largeur de l ecran.
   Sur telephone, une barre fixe en bas est le bon choix (le pouce y
   arrive). Sur ordinateur, elle masquerait le contenu pour rien : le
   menu passe donc dans l en-tete, et les contenus s etalent sur une
   largeur plus confortable.
   Rien ici ne touche au telephone : tout est sous min-width: 900px.
   ===================================================================== */
@media (min-width: 900px) {
  :root { --maxw: 1280px; }

  .page { padding: 34px 32px 48px; }

  /* --- Le menu dans l en-tete ------------------------------------------ */
  .top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 10px;
  }
  .top-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease;
  }
  .top-nav-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
  .top-nav-item.active { background: linear-gradient(120deg, var(--violet), var(--pink)); color: #fff; }
  .admin-body .top-nav-item.active { background: linear-gradient(120deg, var(--pink), var(--violet)); }
  .tn-icon { display: grid; place-items: center; flex: 0 0 auto; }
  .tn-label { overflow: hidden; text-overflow: ellipsis; }

  /* La barre du bas disparait sur ordinateur : le menu est dans l en-tete.
     L administration garde la sienne (c est sa seule navigation).
     La salle, elle, garde son plein ecran : ni marge, ni barre. */
  body:not(.admin-body) .bottom-nav { display: none; }
  body:not(.admin-body):not(.salon-body) { padding-bottom: 24px; }

  /* Le bandeau d accueil respire et prend de la hauteur. */
  .hero { padding: 48px 42px; border-radius: 30px; }
  .hero-grid { gap: 36px; grid-template-columns: 1.12fr 0.88fr; }
  .hero-image img { max-height: 420px; }
  .hero-lead { font-size: 1.1rem; }

  .section { margin-bottom: 42px; }
  .section-head h2 { font-size: 1.9rem; }
  .card { padding: 22px; }
  .grid, .grid-2 { gap: 18px; }
  .grid-3 { gap: 18px; }

  /* Les cartes reagissent au survol : la souris n a pas de doigt. */
  .room-card { transition: transform 0.18s ease, box-shadow 0.25s ease; }
  .room-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(124, 58, 237, 0.35); }
  .avatar-card:hover .avatar-photo img { transform: scale(1.07); }
  .btn:hover { filter: brightness(1.1); }
  .chip:hover { color: var(--text); }

  /* Le classement : deux colonnes sur grand ecran, plus lisible. */
  .rank-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* --- Tres grand ecran : on garde des lignes de texte lisibles -------- */
@media (min-width: 1400px) {
  .page { padding: 40px 44px 56px; }
  .hero { padding: 56px 52px; }
}


