/* 🌐 Layout principal */
.layout-social {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 1rem;
}

/* 📁 Colonne gauche */
.profile-sidebar {
  flex: 0 0 280px;
  background: #1e1e1e;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* 👤 Profil */
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #3b82f6;
  margin-bottom: 1rem;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-info h1 {
  font-size: 1.6rem;
  margin: 0 0 0.3rem;
}
.profile-handle {
  font-size: 0.95rem;
  color: #aaa;
  margin-bottom: 0.8rem;
}
.profile-metier,
.profile-bio {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* 📋 Liste des salles */
.menu-salles h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #60a5fa;
}
.menu-salles ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.menu-salles li {
  margin-bottom: 0.6rem;
}
.menu-salle-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2b2b2b;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.menu-salle-link:hover {
  background: #3a3a3a;
}
.statut {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: capitalize;
}
.statut.en_attente { background: #f59e0b; color: white; }
.statut.en_cours { background: #3b82f6; color: white; }
.statut.terminee { background: #10b981; color: white; }

/* 🧩 Boutons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
.btn-success { background: #3b82f6; color: white; }
.btn-secondary { background: #6b7280; color: white; }
.btn-info { background: #38bdf8; color: black; }

/* 🪟 Modale */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  display: none;
  z-index: 999;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #1f1f1f;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  color: white;
}
.modal-content input,
.modal-content select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  color: white;
}

/* 🪞 Colonne droite */
.salon-container {
  flex: 1;
  background: #141414;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

/* 🎥 Vidéos */
.videos {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-top: 1rem;
}
.videos video {
  flex: 1;
  max-height: 300px;
  border-radius: 10px;
  background: black;
  object-fit: cover;
}

/* 💬 Tchat */
.chat {
  margin-top: 2rem;
  background: #111827;
  padding: 1rem;
  border-radius: 10px;
}
.chat-log {
  max-height: 200px;
  overflow-y: auto;
  background: #1f2937;
  padding: 0.5rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.chat-log div { margin-bottom: 0.4rem; }

.chat-input-container {
  display: flex;
  gap: 0.5rem;
}
.chat-input-container input {
  flex: 1;
  padding: 0.7rem;
  border-radius: 6px;
  border: 1px solid #333;
  background: #2a2a2a;
  color: white;
}
.chat-input-container button {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
}
.chat-input-container button:hover {
  background: #2563eb;
}

/* 🎙️ Panneau Audio */
.audio-panel {
  margin-top: 2rem;
  padding: 1rem;
  background: #1a1a1a;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 320px;
}
.audio-panel select,
.audio-panel button {
  width: 100%;
}
.audio-panel audio {
  width: 100%;
}
.audio-history ul {
  list-style: none;
  padding: 0;
}
.audio-history li {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #ccc;
}
.audio-history audio {
  width: 100%;
  margin-top: 0.3rem;
}

/* 📱 Responsive */
@media (max-width: 1024px) {
  .layout-social {
    flex-direction: column;
  }
  .profile-sidebar,
  .salon-container {
    width: 100%;
  }
  .videos {
    flex-direction: column;
  }
  .audio-panel {
    max-width: 100%;
  }
}
