/* Reset basique */
* {
  box-sizing: border-box;
}

/* Thème sombre global */
body.dark-theme {
  background-color: #121212;
  color: #e0e0e0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

/* Liens */
a {
  color: #00c3ff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Conteneur en grille 3 colonnes */
.dashboard-grid {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  grid-gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 10px;
}

/* Sidebar gauche */
.sidebar-left {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 195, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sidebar-left h2 {
  margin-bottom: 10px;
  color: #00c3ff;
}

.sidebar-left .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid #00c3ff;
  object-fit: cover;
  margin-bottom: 15px;
}

.sidebar-left p {
  margin-bottom: 20px;
  font-size: 14px;
}

.sidebar-left nav a {
  display: block;
  padding: 10px 0;
  font-weight: 600;
  border-bottom: 1px solid #333;
  transition: background 0.3s ease;
}

.sidebar-left nav a:hover {
  background: #004c6d;
  color: #a0e9ff;
}

.logout-btn {
  margin-top: auto;
  background-color: #ff4b4b;
  color: white !important;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
}

/* Zone principale */
.main-feed {
  background: #1e1e1e;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 12px rgba(0, 195, 255, 0.3);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Formulaire de nouvelle publication */
.new-post textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  border-radius: 6px;
  border: none;
  padding: 12px;
  font-size: 14px;
  background-color: #121212;
  color: #e0e0e0;
  box-shadow: inset 0 0 4px rgba(0,195,255,0.5);
  margin-bottom: 10px;
}

.new-post input[type="file"] {
  color: #00c3ff;
  margin-bottom: 10px;
}

.new-post button {
  background-color: #00c3ff;
  color: #121212;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
}

.new-post button:hover {
  background-color: #008bbf;
}

/* Mur perso - liste des posts */
.my-wall .post-card {
  background: #121212;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 195, 255, 0.4);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border: 1px solid #00c3ff;
}

.my-wall .post-card img.post-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.my-wall .post-card p {
  padding: 12px 15px 5px;
  font-size: 15px;
  line-height: 1.3;
}

.my-wall .post-card .timestamp {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #999;
  padding: 0 15px 10px;
}

/* Sidebar droite - fiche technicien */
.sidebar-right {
  background: #1e1e1e;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 12px rgba(0, 195, 255, 0.3);
  color: #e0e0e0;
}

.sidebar-right h3 {
  color: #00c3ff;
  margin-bottom: 15px;
}

.sidebar-right ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.sidebar-right ul li {
  margin-bottom: 8px;
  font-size: 14px;
}

/* Responsive - petite largeur */
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .sidebar-left, .sidebar-right, .main-feed {
    margin-bottom: 20px;
  }
}
/* Barre de recherche en haut */
.search-bar-container {
  background-color: #1e1e1e;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 20px auto 10px auto;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 195, 255, 0.3);
  position: relative;
}

#searchInput {
  width: 100%;
  padding: 10px 15px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  background-color: #121212;
  color: #e0e0e0;
  box-shadow: inset 0 0 6px rgba(0, 195, 255, 0.5);
}

#searchResults {
  position: absolute;
  margin-top: 3%;
  left: 20px;
  right: 20px; 
  overflow-y: auto;
  background-color: #1e1e1e; 
  border-radius: 6px;
  z-index: 100;
}

.search-result-item {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #333;
  color: #00c3ff;
}

.search-result-item:hover {
  background-color: #004c6d;
  color: #a0e9ff;
}
.my-wall-wide {
  max-width: 1200px;
  margin: 30px auto 60px auto;
  background: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 195, 255, 0.35);
  color: #e0e0e0;
}

.my-wall-wide h3 {
  margin-bottom: 20px;
  color: #00c3ff;
}

.my-wall-wide .post-card {
  background: #121212;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 195, 255, 0.4);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border: 1px solid #00c3ff;
}

.my-wall-wide .post-card img.post-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.my-wall-wide .post-card p {
  padding: 12px 15px 5px;
  font-size: 15px;
  line-height: 1.3;
}

.my-wall-wide .post-card .timestamp {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #999;
  padding: 0 15px 10px;
}



.topbar-buttons {
  display: flex;
  gap: 12px;
}

.topbar-buttons .top-btn {
  background: #00c3ff;
  color: #121212;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.topbar-buttons .top-btn:hover {
  background: #008bbf;
}
.profile-pic-label {
  cursor: pointer;
  display: inline-block;
  border-radius: 50%;
  overflow: hidden;
  width: 120px;
  height: 120px;
  border: 2px solid #00c3ff;
}

.profile-pic-label img.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}






.fixed-left-column {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  overflow-y: auto;
  background-color: #1f1f1f;
  color: #fff;
  padding: 20px;
  border-right: 1px solid #333;
  z-index: 200;
}

body {
  margin-left: 260px; /* décale tout le reste du contenu vers la droite */
}
