 body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: linear-gradient(135deg, #0A192F, #1E3A8A);
      color: #F9FAFB;
    }

    header {
      position: relative;
      z-index: 1000;
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(10px);
      padding: 15px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    header h1 {
      font-size: 1.2rem;
      color: #60A5FA;
      margin: 0;
    }

    nav a {
      color:#F9FAFB; 
      margin-right:15px;
      text-decoration: none;
    }

    /* Cover */
    .cover-photo {
      width: 100%;
      height: 200px;
      background: url("https://picsum.photos/1200/400") center/cover no-repeat;
      position: relative;
      border-radius: 8px;
      overflow: hidden;
      z-index: 0;
    }

    .change-cover-btn2 {
      position: absolute;
      top: 10px;
      right: 10px;
      padding: 6px 12px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 14px;
      transition: background 0.2s;
      z-index: 10;
      white-space: nowrap;
    }

    .change-cover-span {
      background: rgba(0,0,0,0.6);
      color: #fff;
      padding: 6px 12px;
      border-radius: 6px;
    }

    .change-cover-span:hover {
      background: rgba(0,0,0,0.8);
    }

    .profile-wrapper {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      padding: 20px;
      max-width: 1200px;
      margin: auto;
    }

    .profile-card, .profile-form, .posts-section {
      background: rgba(255, 255, 255, 0.08);
      border-radius: 15px;
      padding: 20px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .profile-card {
      flex: 1;
      min-width: 250px;
      text-align: center;
      margin-top: -80px;
      z-index: 2;
    }

    .profile-card img {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      border: 3px solid #3B82F6;
      object-fit: cover;
      margin-top: -60px;
      background: #0A192F;
    }

    .profile-card h2 {
      margin: 10px 0 5px;
      color: #60A5FA;
    }

    .pseudo {
      font-size: 0.9rem;
      color: #93C5FD;
      margin-bottom: 10px;
    }

    .profile-form {
      flex: 1;
      min-width: 250px;
    }

    .profile-form label {
      display: block;
      margin-top: 10px;
      font-weight: bold;
      color: #93C5FD;
      font-size: 0.9rem;
    }

    .profile-form input,
    .profile-form select,
    .profile-form textarea {
      width: 100%;
      padding: 8px;
      margin-top: 5px;
      border-radius: 8px;
      border: none;
      outline: none;
    }

    .profile-form button {
      margin-top: 15px;
      background: #2563EB;
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 8px;
      cursor: pointer;
    }

    .posts-section {
      flex: 1 1 100%;
    }

    .posts-section h3 {
      margin-top: 0;
      color: #60A5FA;
    }

    
/* --- Notifications 🔔 (centrées sous le bouton) --- */
.notif-wrapper {
  position: relative;
  display: inline-block;
  z-index: 2000;
}

.notif-dropdown {
  display: none;
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  min-width: 250px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
  color: #000;
  z-index: 3000;
}

/* mark all as read */
/* Bouton "Mark all as read" */
#markAllReadBtn {
  display: block;
  width: 90%;
  margin: 5px auto 8px auto;
  padding: 6px 10px;
  font-size: 0.8rem;
  background-color: #f3f4f6;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Hover effect */
#markAllReadBtn:hover {
  background-color: #e5e7eb;
  color: #000;
}

/* Séparateur visuel sous le bouton */
#markAllReadBtn::after {
  content: "";
  display: block;
  margin-top: 8px;
  border-bottom: 1px solid #ddd;
}



/* mark all as read */
/* Bouton "Mark all as read" */
#markAllReadBtn {
  display: block;
  width: 90%;
  margin: 5px auto 10px auto;
  padding: 6px 10px;
  font-size: 0.8rem;
  background-color: #f3f4f6;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#markAllReadBtn:hover {
  background-color: #e5e7eb;
  color: #000;
}


/* --- Messages 💬 (alignés à gauche du bouton) --- */
.msg-wrapper {
  position: relative;
  display: inline-block;
  z-index: 2000;
  background-color: #000 :;
}

.msg-dropdown {
  display: none;
  position: absolute;
  top: 120%;   /* un peu sous le bouton */
  left: -50px;     /* commence pile au bord gauche */
  transform: none; /* supprime tout centrage hérité */
  background: #fff;
  min-width: 250px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
  color: #000;
  z-index: 3000;
}

    .post {
      background: rgba(255, 255, 255, 0.08);
      padding: 10px;
      border-radius: 10px;
      margin-bottom: 10px;
    }


    /* follow and send btn */
    /* === Profile Actions Section === */
#profileActions {
  margin-top: 15px;
  text-align: center;
}

#profileActions button {
  padding: 8px 16px;
  margin: 5px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Follow = bleu */
#followBtn {
  background-color: #007bff;
  color: white;
}
#followBtn:hover {
  background-color: #0056b3;
}

/* Unfollow = rouge */
#unfollowBtn {
  background-color: #dc3545;
  color: white;
}
#unfollowBtn:hover {
  background-color: #a71d2a;
}

/* Send message = vert */
#sendMsgBtn {
  background-color: #28a745;
  color: white;
}
#sendMsgBtn:hover {
  background-color: #1e7e34;
}

/* Compteur Followers */
#followersCount {
  display: inline-block;
  margin-left: 10px;
  font-size: 18px;
  color: #73ddff;
  cursor: pointer;
  font-weight: bold;
}

/* === FOLLOWERS DROPDOWN === */
#followersOverlay {
  display: none; /* caché par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* fond semi-transparent */
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#followersOverlay.active {
  display: block;
  opacity: 1;
}

/* Conteneur de la liste */
#followersList {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

/* Quand overlay actif → anim */
#followersOverlay.active #followersList {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Header avec croix */
#followersListHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

#followersListHeader h3 {
  font-size: 18px;
  margin: 0;
}

#closeFollowers {
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: #666;
  transition: color 0.2s;
}

#closeFollowers:hover {
  color: #000;
}

/* Un follower */
.follower-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}

.follower-item:hover {
  background: #f8f8f8;
}

.follower-item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 10px;
}

.follower-item a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.follower-item a:hover {
  color: #007bff;
}



    @media (max-width: 768px) {
      .profile-wrapper {
        flex-direction: column;
      }

      .profile-card {
        margin-top: -60px;
      }

      .profile-card img {
        width: 100px;
        height: 100px;
      }
    }