
:root{
    --main-bg-color:#e5e4e4;
    --secondary-bg-color: linear-gradient(
      135deg,
      rgba(12, 125, 255, 0.12),
      rgba(12, 125, 255, 0.03)
    );
    --text-color: #2c2b2b;
    --hover-text-color: #1A1A2E;
    --accent-color: #F9B216;
    --border-color: #2c2c2c;
    --hover-bg-color: #F9B216;

    --bg: #0a0a0f;
    --surface: #111118;
    --border: #1e1e2e;
    --accent: #e8c840;
    --accent2: #ff6b35;
    --text: #f5f0eb;
    --muted: #6b6b88;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'DM Sans', sans-serif;

}

/* body{
    overflow: hidden;

} */

html {
    scroll-behavior: smooth;
}
 /* ---- SIDEBAR ---- */
  .sidebar {
    width: 20%;
    position: fixed;
    padding: 20px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    background-color:var(--main-bg-color); 
    display: flex;
    flex-direction: column; /* éléments empilés verticalement */
    gap: 15px;
    overflow: hidden;
 /* si beaucoup d'items dans la sidebar */
  }

/* Formulaire caché par défaut */
.sidebar li.recherche form.search-form,
.bottom-nav li.recherche form.search-form{
  position: relative;
  margin: 0;
  padding: 0;
  border: transparent;
  background: transparent;
  width: 100%;
}

/* Input transparent */
.sidebar li.recherche form.search-form input,
.bottom-nav li.recherche form.search-form input {
  width: 100%;
  padding: 4px 30px 4px 8px; 
  border: none;           /* plus de bordure */
  border-radius: 8px;       /* ou 4px si tu veux un arrondi */
  background: transparent; /* fond transparent */
  color: inherit;         /* couleur du texte hérite du li */
  outline: none;          /* pas de contour bleu au focus */
  font: inherit; 
  margin: inherit;    
  padding: inherit;     /* hérite de la police de la sidebar */
}
.sidebar li.recherche form.search-form input:focus,
.bottom-nav li.recherche form.search-form input:focus {
  border-radius: 8px;
  padding: 6px; /* soulignement au focus */
}
.sidebar li.recherche .search-form input:focus + .clear-icon,
.bottom-nav li.recherche .search-form input:focus + .clear-icon {
  color: white;
}

/* Quand le li a la classe 'open', on affiche le formulaire */
.sidebar li.recherche.open form.search-form,
.bottom-nav li.recherche.open form.search-form {
  display: block;
  margin-top: 5px;      /* espace entre l’icône et le champ */
}

.sidebar li.recherche.open form.search-form input::placeholder,
.bottom-nav li.recherche.open form.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.6); /* placeholder légèrement visible */
}
/* Placeholder quand l'input est survolé */
.sidebar li.recherche form.search-form input:hover::placeholder,
.bottom-nav li.recherche form.search-form input:hover::placeholder {
  color: var(--hover-text-color); /* plus visible */
}
/* L'icône clear */
.sidebar li.recherche form.search-form .clear-icon,
.bottom-nav li.recherche form.search-form .clear-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: rgb(253, 252, 252);
  opacity: 0; /* Rendre l'icône invisible */
  visibility: hidden; /* Empêcher l'interaction avec l'icône */
  transition: opacity 0.2s ease, visibility 0.2s ease; /* Transition fluide */
}

/* Afficher le form et l'icône quand open */
.sidebar li.recherche.open form.search-form,
.bottom-nav li.recherche.open form.search-form {
  display: block;
}

.sidebar li.recherche.open form.search-form input:not(:placeholder-shown) + .clear-icon,
.bottom-nav li.recherche.open form.search-form input:not(:placeholder-shown) + .clear-icon {
  opacity: 1; /* Rendre l'icône visible */
  visibility: visible; /* Permettre l'interaction avec l'icône */
  transform: translateY(-50%) scale(1); 
  
}
.sidebar li.recherche form.search-form input:-webkit-autofill,
.bottom-nav li.recherche form.search-form input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px var(--background-color) inset !important;
  -webkit-text-fill-color: var(--text-color) !important;
  color: var(--text-color) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.bottom-nav {
  display: none;
}
.toggle-bottom-nav{
  display: none;
}


.btn{
  margin-top: 25px;
}

.settings{
  margin: 0 20px;
}

h3{
  color: var(--text-color);
}


  /* ---- FEED ---- */
  .main-container {
    width: 55%;
    margin-left: 20%;   /* laisse la place à la sidebar */
    margin-right: 25%;  /* laisse la place à socials */
    background-color:var(--main-bg-color); 
    min-height: 100vh;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);


  }

        /* SCROLL BAR */
  .main-container::-webkit-scrollbar {
    width: 4px; /* plus fine que 8px */
}

.main-container::-webkit-scrollbar-thumb {
    background-color:var(--accent-color) ; /* couleur du curseur */
    border-radius: 2px;     /* coins arrondis */
}

.main-container::-webkit-scrollbar-track {
    background-color:transparent;/* fond de la scrollbar */
}
  /* ---- SOCIALS ---- */
  
  .socials {
    width: 25%;
    background-color:var(--main-bg-color); 
    padding: 20px;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;

  }

.socials ul{
    white-space: normal;
    display: block;
    list-style-type:decimal;
    margin-left: 15px;
    color: var(--text-color);
    padding:5px;
    
}
.socials ul li a{
    color: var(--text-color);
    font-size: 10px;
}

.social-cards h2{
    color: var(--text-color);
    font-size: 18px;
    margin-bottom: 10px;
    
}

.social-cards{
    border:transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 15px;
    background:var(--secondary-bg-color); 

}
/* -----------------------Notification STYLES ----------------------- */

.notifications-section {
  margin-top: 20px;
  display: block;
  flex-direction: column;

}
.notifications-section h3 {
  margin: 20px;
  color: white;
}
.notifications-section ul {
  list-style-type: none;
  padding: 10px;
  display: block;
}
.notifications-section ul li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px;
  gap: 15px;
  border-bottom: 0.5px solid #2c2c2c;
  color: var(--text-color);
}


.notifications-section ul li img.notification-avatar {
  width: 40px;      /* largeur fixe */
  height: 40px;     /* hauteur fixe */
  border-radius: 50%; /* cercle */
  object-fit: cover;  /* recadrage de l'image si nécessaire */
}
.notification-time {
  font-size: 0.75rem;
  color: #999;
  margin-top: 2px;
  display: block;
}

.notification-avatar-wrapper {
  position: relative;
  width: 40px;
  height: 40px;
}

.notification-avatar-wrapper::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #333;
  border: 2px solid #121212;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
}

.notification-avatar-wrapper.in-view::after {
  animation: bounce 0.3s ease-out;
}

.notification-avatar-wrapper[data-type="like"]::after {
  content: "\f004";
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* SOLIDE */
  background: #e0245e;
 
}
.notification-avatar-wrapper[data-type="follow"]::after,
.notification-avatar-wrapper[data-type="follow_received"]::after,
.notification-avatar-wrapper[data-type="follow_success"]::after{
  content: "\f025"; /* headphones */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  color: white;
  background: #1da1f2;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: -2px;
  right: -2px;
  border: 2px solid #121212;
 
}

/* Onglet Activité */
#activityTab {
  position: relative; /* Nécessaire pour que le badge soit positionné relativement */
}

/* Badge style "notification" */
#activityTab .notif-badge {
  position: absolute;
  top: -5px;       /* Ajuste verticalement */
  right: 0px;     /* Ajuste horizontalement */
  background: rgba(255, 0, 0, 0.724);
  color: white;
  font-size: 0.7rem;
  font-weight: lighter;
  padding: 2px 6px;
  border-radius: 50%;
  min-width: 16px;
  text-align: center;
  line-height: 16px;
  animation: bounce 0.3s ease-out;
}


@keyframes bounce {
  0%   { transform: scale(0); }
  50%  { transform: scale(1.2); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}


/* -----------------------FOLLOW BUTTON STYLES ----------------------- */
.search-results {
  margin-top: 20px;
}
.search-results h3 {
  margin: 20px;
}

/* Liste des utilisateurs */
.user-results {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  margin-top: 30px;
}
.user-card {
  display: flex;
  align-items: center;
  padding: 10px;
  border: transparent;
  border-radius: 8px;
  width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  margin-bottom: 10px;
  margin-left: 20px;
}
.user-card img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}
.user-card .info {
  display: flex;
  flex-direction: column;
}
.user-card .info .username {
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-color)
}

/* Bouton Follow */
.follow, .follow-in-header {
  display: flex;
  align-items: center;
}
.follow-form {
  margin: 0;
  border: 0.5px solid #2c2c2c;
  border-radius: 5px;
  padding: 5px 10px;
  background-color: transparent;
  cursor: pointer;
}
.follow-button {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9em;
  color: #2c2c2c;
  background: none;
  border: none;
  cursor: pointer;
}
.follow-button i {
  font-size: 1em;
}

/* Publication */
.publication-wrapper {
  margin-bottom: 30px;
}
.publication-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-picture img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.author-info {
  display: flex;
  flex-direction: column;
}
.follow-in-header {
  margin-left: auto; /* pousse le bouton à droite */
}

  /* Pour que les <li> reviennent bien à la ligne */
  .sidebar ul {

    display: block;
    list-style-type: none;
    transition: all .3s ease-in-out;
    
  }
  .sidebar ul li a {
    font-size: 12px;
    padding: 8px;
  }
  .title-section {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 10;    
    background-color:var(--main-bg-color); 
  
  }
  .title-section h2{
    font-size: 24px;
    color: var(--text-color);
    padding: 5px;
    font-weight: lighter;
  }
  .title-section p{
    color: gray;
    font-size: 12px;

  }
  .logo{
    font-family: "Chelsea Market", system-ui;
    color: var(--text-color);
    font-weight: 400;
    font-style: normal;
    text-align: center;
    margin-bottom: 30px;
  }
 

  
  .playlist{

    color: gray;
    font-size: 12px;
    margin-top: 20px;
    margin-bottom: 10px;
    overflow-y: scroll;
    


  }
  .playlist::-webkit-scrollbar {
    width: 4px; /* plus fine que 8px */
}


  
  .playlist ul li{
    padding: 10px;
    text-align: center;
    align-items: center;
    transition: all .3s ease-in-out;

  }

  .playlist ul li a{
    color: var(--text-color);
    text-align: center;
    align-items: center;
  }
  ul li:hover{
    background-color: var(--hover-bg-color);
    border-radius: 5px;
    border: transparent;
    color:var(--hover-text-color);
    transition: all .4s ease-in-out;
  }
  ul li a:hover{
    color: var(--hover-text-color);
    text-decoration: none;
  }
  ul li.active,
  ul li.active a {
    background-color: var(--hover-bg-color);
    color: var(--hover-text-color);
    border-radius: 5px;
    text-decoration: none;
}


  .profile-summary{
    border-top: 0.5px solid var(--border-color);
    color: var(--text-color);
    font-size: 12px;
    padding-top: 10px;
    margin-top: auto;
  }
  .avatar-info{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    transition: all .2s ease-in-out;
    
  }
  .avatar-info.active{
    background-color: var(--hover-bg-color);
    color: var(--hover-text-color);
    border-radius: 10px;
    text-decoration: none;
  }

  .avatar-info img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: -10px;
  }
  .avatar-info .avatar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-decoration: none;
    color: var(--text-color);
  }
  
  .avatar-info p {
    display: flex;
    align-items: center;
    flex: 1;
    margin: 0;
    margin-top: -10px;
  }
  
  .avatar-info .fa-solid {
    margin-left: auto;
  }
  

  .avatar-info:hover{
    background-color: var(--hover-bg-color);
    border-radius: 10px;
    border: transparent;
    transition: all .4s ease-in-out;
  }
  .avatar-info:hover p{
    color: var(--hover-text-color);
    transition: all .2s ease-in-out;
  }
  .avatar-info:hover img{
    border: 2px solid var(--main-bg-color);
    transition: all .2s ease-in-out;
  }


.stats-card-container {
    display: flex;          /* active flexbox pour les cards */
    gap: 30px;              /* espace entre les cards */
    margin-left: auto;      /* pousse les cards vers la droite */
    padding-right: 120px;    /* espace à droite par rapport à l'écran */
    padding-top: 20px;      /* optionnel, pour respirer en haut */
}

.profile-info {
    margin-top: 10px;
    margin-left: 10px;
    color: var(--text-color);
    font-size: 10px;
    font-weight:lighter;
}
.profile-details p {
    font-size: 24px;
    font-weight: lighter;
    color: var(--text-color);
    margin-left: 10px;
}
.bio{

    color: gray;
    padding:10px;
    font-size:14px;

}
.carrousel{ 
    position : relative;
    margin : 10px 10px;
    margin-bottom: 15px;
    max-width: 100%;
    border: transparent; 
    border-radius: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    box-shadow: 0 8px 32px 0 rgba(12,125,255,0.15);
 } 
 /* Ligne de lumière en haut du conteneur */
.carrousel::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}
 .sticky{
    position: sticky;
    top: 100px;
    z-index: 3;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    
 }

.carrousel ul {
  display: flex;
  width: 100%;
  padding: 0;
  margin: 0;
  position: relative;
}
.carrousel ul li { 
  display: inline-block;
  flex:1; 
  text-align:center;
  font-size: 14px;
  font-weight: lighter; 
  color: var(--text-color);
  position: relative;
  z-index: 1;  
  padding: 20px;
  border-radius: 40px; 
}
.carrousel ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    background: transparent;
    margin-top: 0;
}


.carrousel ul li:hover { 
  background-color: transparent;
  color:none;
  cursor: pointer;
}
    


.carrousel .selector {
position: absolute;
top: 0;
left: 0;
height: 100%; 
border-radius: 40px;
border: solid 2px var(--hover-bg-color);

backdrop-filter: blur(14px) saturate(130%);
-webkit-backdrop-filter: blur(14px) saturate(130%);
z-index: 0;

transition: left 0.28s cubic-bezier(.2,.8,.2,1),
width 0.28s cubic-bezier(.2,.8,.2,1);
}

/* Reflet interne en dome — l'effet "verre épais" d'Apple */
.carrousel .selector::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 20%;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 100%);
  border-radius: 0 0 50% 50%;
}

.carrousel ul li.active {
  color: var(--text-color);
  background-color: transparent; /* IMPORTANT */
  border: none;
  padding: 10px;
  border-radius: 30px;
}

#pod-section,
#playlists-section,
#overview-section,
#activity-section {
    scroll-margin-top: 200px; 
}

.summary-cards {
  display: flex;
  justify-content: center;   /* centre correctement les cartes */
  gap: 20px;                 /* espace entre les cartes */
  padding: 0 10px;           /* 10px de marge à gauche + droite */
  margin: 20px 0;            /* espacement vertical */
}

.stats-card {
    position: relative; 
    background-color: var(--secondary-bg-color);
    padding: 20px;
    width: 130px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-color);
    font-weight: lighter;
    font-size: 16px;
}
.stats-card p{
    color: gray;
    font-size: 12px;
}
.stats-card span {
    position: absolute;
    top: 8px;   /* distance du haut */
    left: 8px;  /* distance de la gauche */
    font-size: 12px;
    opacity: 0.7;
}

.stats-card-container {

    margin-top: 20px;
    margin-bottom: 20px;
    margin:10px;

}
.top-genres ul{
    white-space: normal;
    display: block;
    list-style-type:decimal;
    margin-left: 15px;
    color: var(--text-color);
    padding:15px;
    
}
.top-genres ul li a{
    color: var(--text-color);
    font-size: 10px;
    padding:10px;
}
.top-genres ul li{
    margin-bottom: 8px;
    font-size: 14px;
    color: gray;
    padding:10px;
}
.top-genres ul li:hover{
  color: var(--hover-text-color);
}

.top-genres{
    margin-top: 20px;
    margin: 20px;
    padding:10px;
    background-color: var(--secondary-bg-color);
    border-radius: 12px;
    width: auto;
    border: 0.5px solid var(--border-color);
}

.progress-bar {
    display: block;
    width: 100%;
    height: 8px;
    background-color: #444;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
    transition: all 0.3s ease-in-out;
}
.progress-fill {
    display: block;
    background: #6c63ff;
    border-radius: 4px;
    height: 100%;
    transition: width 0.4s ease;
}
.top-pods{
    margin-top: 20px;
    margin: 20px;
    padding:10px;
    color: #c2c2c2;
}

.playlist-section{
    margin-top: 20px;
    margin: 20px;
    padding:10px;
    color: var(--border-color);
}
.playlist-card{
    background-color: var(--secondary-bg-color);
    padding: 20px;
    width: 200px;
    height: 250px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: inline-block;
    margin: 10px;
}


.activite-section{
    margin-top: 20px;
    margin: 20px;
    padding:10px;
    color: var(--text-color);
}


    
.publication-list h3{
    margin-top: 20px;
    margin: 20px;
    padding:10px;
    color: var(--text-color);
}
    /* -----------------------PUBLISH FORM STYLES ----------------------- */

.publish-form {
  position: relative;
  z-index: 0;
  padding: 15px;
  border: transparent;
  border-radius: 5px;
  margin-bottom: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  margin: 20px;
  background-color: var(--main-bg-color);
}
.publish-form p{
  color: grey;
  margin-bottom: 10px;
  font-style: lighter;


}


.publish-form textarea {
  width: calc(100% - 12px);
  padding: 10px;
  font-family: Arial, Helvetica, sans-serif;
  margin-bottom: 10px;
  border: none;
  box-sizing: border-box;

  min-height: 80px;
  background-color:var(--main-bg-color); 
  color:var(--text-color);
  border-radius: 10px;
  resize: none;
}

.publish-form input {
  width: calc(50% - 12px);
  padding: 10px;
  background-color:var(--main-bg-color);
  border-radius: 10px; 
  color:var(--text-color);

  margin-bottom: 10px;

  border: none;
  box-sizing: border-box;
  min-height: 80px;
}

.publish-form textarea:focus,
.publish-form input:focus {
  outline: none;
  border: transparent;
  border-radius: 10px;
}

.publish-form select{
  background-color:var(--main-bg-color); 
  color: var(--text-color);
}
.toggle-publish-button{
  width: 90%;
  border: transparent;
  position: relative;
  background:linear-gradient(90deg, #67d1bf, #128975); ;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  display: block;
  margin: 0 auto; 


}

/* -----------------------PUBLICATION FEED STYLES ----------------------- */

.publication-wall {
  display: flex;
  /* Utilise Flexbox pour l'arrangement en colonne */
  flex-direction: column;
  /* Définit la direction des éléments en colonne */
  gap: 20px;
  /* Espace entre les publications */
}






.publication-header {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.profile-picture {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ccc;
  /* Placeholder */
  margin-right: 10px;
  overflow: hidden;
  top: 0;
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  margin-left: 50px;
  flex-grow: 1;
}

.author-name {
  font-weight:lighter ;
  margin-bottom: 2px;
  color: var(--text-color);
}

.author-name span {
  font-weight:lighter;

  margin-bottom: 2px;
  color: var(--text-color);
  font-size: small;
}

.publication-date {
  font-size: 0.8em;
  color: #777;
}

.publication-content {
  margin-bottom: 10px;
  color: var(--text-color);

}

.publication-actions {
  display: flex;
  gap: 10px;
  font-size: 0.9em;
  color: #555;
}

.publication-actions button {
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  padding: 5px 0;
}




.publication-wall {
  display: flex;
  /* Utilise Flexbox pour l'arrangement en colonne */
  flex-direction: column;
  /* Définit la direction des éléments en colonne */
  gap: 20px;
  /* Espace entre les publications */
}

.publication {
  background-color:var(--main-bg-color); 
  border-radius: 8px;
  border: transparent;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin: 20px;
  word-break: break-word;
  /* Empêche les longs mots de casser la mise en page */
}

.publication-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.profile-picture {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ccc;
  /* Placeholder */
  margin-right: 10px;
  overflow: hidden;
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  flex-grow: 1;
}

.author-name {
  font-weight: bold;
  margin-bottom: 2px;
}

.publication-date {
  font-size: 0.8em;
  color: #777;
}

.publication-content {
  margin-bottom: 10px;
}

.publication-actions {
  display: flex;
  gap: 10px;
  font-size: 0.9em;
  color: #555;
}

.publication-actions button {
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  padding: 10px 15px;
}

.publication-actions button:hover {
  border: transparent;
  border-radius: 8px;
  padding: 10px 15px;
  color: #555;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: transparent;
  transition: background-color 0.3s ease;

}


.profile-profile-picture img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;

  border: transparent;
}
.profile-profile-picture {
  position: relative;
  display: flex;
  /* plus adapté qu'inline-block si tu utilises flexbox autour */
  justify-content: center;
  align-items: center;

  width: 80px;
  /* taille de base */
  aspect-ratio: 1 / 1;
  /* ⬅ garde un cercle, largeur = hauteur */
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid white;
  margin-bottom: 10px;
  cursor: pointer;
  flex-shrink: 0;
  /* empêche le cercle de se déformer si le parent se rétrécit */
}

.profile-profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* remplit le cercle sans déformation */
  display: block;
  /* supprime les petits espaces sous l'image */
}

.overlay-text {
  position: absolute;
  top: 0;
  /* colle l'overlay au sommet */
  left: 0;
  /* colle l'overlay à gauche */
  width: 100%;
  /* prend toute la largeur du conteneur */
  height: 100%;
  /* prend toute la hauteur du conteneur */
  background: rgba(244, 242, 242, 0.6);
  color: black;
  font-size: 18px;
  text-align: center;
  display: flex;
  /* pour centrer le texte */
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  /* garde le cercle */
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Exemple pour montrer l'overlay au survol */
.profile-profile-picture:hover .overlay-text {
  opacity: 1;

}

.profile {
  border: none;
  padding: 20px;
  border-radius: 8px;

}


.menu-container {
  position: absolute;
  right: 20px;
  z-index: 1;
  
}

.menu-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: gray;
}

.menu-dropdown {
  position: absolute;
  top: 25px;
  right: 0;
  background: #222;
  border-radius: 6px;
  padding: 5px 0;
  display: none;
  flex-direction: column;
  width: 150px;

}
.menu-item {
  padding: 10px 15px;
  color: white;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
}

.menu-container.active .menu-dropdown {
  display: flex;
}

.profil-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  padding: 10px;
}

.profil-actions button {
  flex: 1;
  padding: 10px;
  border: solid 0.25px rgb(22, 46, 136);
  border-radius: 10px;
  background-color: #f0f0f0;
  cursor: pointer;
  font-weight: bold;
}

.profil-actions button:hover {
  background-color: #e0e0e0;
}


/* -----------------------COMMENT SECTION STYLES ----------------------- */


.comment-section {
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  border: transparent;
  background-color:var(--main-bg-color); 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .6s ease, opacity .2s ease;
  margin: 10px;
}

.comment-section.show {
  max-height: 400px;
  /* Ajustez cette valeur selon le contenu */
  opacity: 1;
  overflow: visible;
}

.comments-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 10px;
  position: relative;
}






.comment-form input {

  padding: 8px;
  border: transparent;
  background-color:rgb(34, 34, 34); 
  color:var(--text-color);
  border-radius: 30px;
  width: 80%;
}

.comment-form-profile input[type="text"] {

  padding: 8px;
  border: transparent;
  background-color:var(--main-bg-color); 
  border-radius: 30px;
  width: 80%;
  color: var(--text-color);
}

.comment-form-profile input:focus {
  outline: none;
 

}

.comment-form button {
  padding: 8px 12px;
  border: solid 0.25px rgb(22, 46, 136);
  border-radius: 25px;
  position: absolute;
  right: 30px;
  color: black;
  cursor: pointer;
}

.comment-form-profile button {
  padding: 8px 12px;
  border: solid 0.25px rgb(22, 46, 136);
  border-radius: 25px;
  position: absolute;
  right: 10px;
  color: var(--text-color);
  cursor: pointer;
}

.comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.comment-picture {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-picture img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background-color: #ccc;
}

.comment-content {
  flex: 1;
  border-radius: 8px;
  padding: 8px 12px;
  border: transparent;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background:var(--secondary-bg-color); 
  color:var(--text-color);
}

.author-name {
  font-weight: bold;
  margin-bottom: 4px;
}

.comment-text {
  margin-bottom: 6px;
  color: var(--text-color);
}

.comment-footer {
  display: flex;
  justify-content: flex-end;
}

.like-button {
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  margin: 20px;
  font-size: 1em;
  transition: transform 0.2s ease, color 0.2s ease;
}

.heart-icon.fa-solid {
  color: #a70404;
  transform: scale(1.2);
  transition: transform 0.2s ease;
}

.comment-toggle-button{
  
      background: none;
      border: none;
      cursor: pointer;
      color: #555;
      margin: 20px;
      font-size: 1em;
      transition: transform 0.2s ease, color 0.2s ease;
  
}

/* Responsive and mediaQueries */

@media screen and (max-width: 768px) {

  .main-container {
    width: 100%;
    margin: 0;
  }
  .profile-header{
    position:relative;
  }
.profile-header .profile-profile-picture{
    display: flex;
    flex-direction: column;
    align-items: start;
}
.profile-header .profile-details{
    position: absolute;
    top: 10px;
    left: 100px;
}
.profile-header .followers-following{
    position: absolute;
    display: flex;
    gap: 10px;
    top: 50px;
    left: 110px;
}

  
  .sidebar {
    display: none;
  }
   .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--main-bg-color);
    border-top: 1px solid var(--border-color);
    z-index: 10;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: none;
}
  .bottom-nav.open {
    display: block;

}
.bottom-nav .playlist {
    display: none;
  }
  .toggle-bottom-nav{
    display: block;
    position: fixed;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--main-bg-color);
    border: solid 0.25px rgb(22, 46, 136);
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 11;
  }

  
  .socials {
    display: none;
  }
  
}

.header, .container, .article, .toc, footer {
    box-sizing: border-box;
}

  .body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.8;
    min-height: 100vh;
  }

  /* Noise texture overlay */
  .body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
  }

  /* Header */
  .header {
    position: relative;
    padding: 80px 40px 60px;
    border-bottom: 1px solid var(--border); 
    margin-top: 100px;
    display: inline-flex;

}

  .header::after {
    content: '♪';
    position: absolute;
    right: -20px;
    top: -40px;
    font-size: 280px;
    color: var(--accent);
    opacity: 0.04;
    font-family: var(--heading-font);
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0px) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
  }

  .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    text-decoration: none;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }

  .logo-text {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
  }

  .header-tag {
    display: inline-block;
    background: rgba(232, 200, 64, 0.1);
    border: 1px solid rgba(232, 200, 64, 0.3);
    color: var(--accent);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 2px;
    margin-bottom: 20px;
  }

  h1 {
    font-family: var(--heading-font);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--text);
    max-width: 700px;
  }

  h1 span {
    color: var(--accent);
    font-style: italic;
  }

  .white a span{
    color: var(--text);
    font-style: normal;
  }
  .white a i {
    color: var(--text);
    font-style: normal;
  }

  .header-meta {
    margin-top: 24px;
    color: var(--muted);
    font-size: 14px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
  }

  .header-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .header-meta span::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
  }

  /* Layout */
 .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px 80px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row-reverse; 
    gap: 60px;
    align-items: flex-start;
}

  /* Navigation latérale */
  .toc {
    position: sticky;
    top: 130px;
    width: 220px;
    flex-shrink: 0;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    align-self: flex-start; /* ← important pour sticky */
}

  .toc-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
  }

  .toc a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
  }

  .toc a:last-child { border-bottom: none; }
  .toc a:hover { color: var(--accent); }

  /* Articles */
  .content {
    flex: 1;
    padding-top: 60px;
    min-width: 0;
}

  .article {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
  }

  .article:nth-child(1) { animation-delay: 0.1s; }
  .article:nth-child(2) { animation-delay: 0.2s; }
  .article:nth-child(3) { animation-delay: 0.3s; }
  .article:nth-child(4) { animation-delay: 0.4s; }
  .article:nth-child(5) { animation-delay: 0.5s; }
  .article:nth-child(6) { animation-delay: 0.6s; }
  .article:nth-child(7) { animation-delay: 0.7s; }
  .article:nth-child(8) { animation-delay: 0.8s; }

  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }

  .article:last-child {
    border-bottom: none;
  }

  .article-number {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
  }

  .article h2 {
    font-family: var(--heading-font);
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
  }

  .article p {
    color: #b0b0c8;
    margin-bottom: 16px;
    font-weight: 300;
  }

  .article ul {
    list-style: none;
    margin: 16px 0 24px 0;
  }

  .article ul li {
    position: relative;
    padding-left: 24px;
    color: #b0b0c8;
    margin-bottom: 10px;
    font-weight: 300;
  }

  .article ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 14px;
  }

  /* Callout box */
  .callout {
    background: rgba(232, 200, 64, 0.05);
    border-left: 3px solid var(--accent);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 4px 4px 0;
  }

  .callout p {
    margin: 0;
    color: rgba(232, 200, 64, 0.85);
    font-size: 14px;
  }

  .callout strong {
    color: var(--accent);
  }

  /* Warning box */
  .warning {
    background: rgba(255, 107, 53, 0.05);
    border-left: 3px solid var(--accent2);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 4px 4px 0;
  }

  .warning p {
    margin: 0;
    color: rgba(255, 107, 53, 0.85);
    font-size: 14px;
  }

  /* Footer */
  footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 40px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
  }

  footer strong {
    color: var(--accent);
  }

  @media (max-width: 768px) {
    .header { padding: 50px 24px 40px; }
    .container { padding: 0 24px 60px; }
    .toc { display: none; }
    footer { padding: 30px 24px; }
  }


.back-nav {
    margin-bottom: 20px;
}

.back-nav a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-nav a:hover {
    color: #000;
}
