body {
    background-color: #000000;
    color: #e0e0e0;
    padding: 0;
    margin: 0;
    position: relative;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
  }

  .sticky-media-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    z-index: 99;
    overflow: hidden;
    display: none;
  }

  body.sticky-active .sticky-media-bg {
    display: block;
  }

  .sticky-media-bg video,
  .sticky-media-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) brightness(0.9);
    transform: scale(1.1);
  }

  .sticky-media-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent 0%, #121212 100%);
    pointer-events: none;
  }

/*  
body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    padding: 0;
  }


*/  
  
 /*
  .phone-frame {
    max-width: 375px;
    margin: 20px auto;
    border: 10px solid #2c2c2c;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  }
*/
 

  .header {
    background-color: #181818;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .icon {
    width: 24px;
    height: 24px;
    fill: #e0e0e0c7;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  
  .icon:hover {
    transform: scale(1.1);
  }
  

/*  

.content {
    padding: 20px;
    height: calc(100vh - 140px);
    overflow-y: auto;
  }

*/  

  .content {
    padding: 0;
    overflow-y: auto;
    scroll-snap-type: none;
    height: calc(100dvh - 45px);
    /* Hauteur = viewport - header (~45px) */
    scroll-behavior: smooth;
  }
  
  .post {
    margin-bottom: 1px;
    overflow: hidden;
    border-radius: 17px; 
    position: relative;
    width: 100%;
  /*  background-color: #222327; */
    margin-left: 0;
    margin-right: 0;
  }

  .post::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--post-bg-image, none);
    background-size: cover;
    background-position: center;
    filter: blur(26px) brightness(0.38);
    transform: scale(1.18);
    z-index: 0;
    pointer-events: none;
  }

  .post::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.08) 30%, rgba(0,0,0,0.78) 100%);
    z-index: 0;
    pointer-events: none;
  }

  .post > * {
    position: relative;
    z-index: 1;
  }
  
  .post-header {
    display: flex;
    align-items: center;
    padding: 5px;
    background-color: #181818;
    border-radius: 0px 0px 0px 0px;
  }
  
  .post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    cursor: pointer;
  }
  
  .post-username {
    font-weight: bold;
    cursor: pointer;
  }
  
  .post-time {
    font-size: 12px;
    color: #888;
   /* margin-left: 10px; */
  }
  
  .post-image {
    width: 100%;
    height: auto;
    cursor: pointer;
  }
  
  .post-actions {
    display: flex;
    justify-content: space-around;
    padding: 10px;
  }
  
  .post-caption {
    padding: 0 10px 10px;
    background-color: black;
  }

/* Post texte dans le media container - ratio 1:1 */
.post-media-container .post-text-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 20px;
    margin: 0;
    font-size: 30px;
    line-height: 1.5;
    color: #fff;
    word-wrap: break-word;
    width: 100%;
    height: 100%;
    display: flex;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

/* Pour les textes longs, on permet le scroll */
.post-media-container .post-text-content.long-text,
.post-media-container .post-text-content:has(br + br) {
    overflow-y: auto;
    font-size: 24px;
    padding: 30px;
}

/* Scrollbar personnalisee */
.post-text-content::-webkit-scrollbar {
    width: 4px;
}

.post-text-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

/* ========== CONTROLES POST TEXTE EN VISIONNAGE ========== */
.post-text-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.post-active .post-text-controls {
    opacity: 1;
    pointer-events: auto;
}

.post-text-controls .fullscreen-format-btn {
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-text-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: #fff;
    font-size: 12px;
    background: rgba(0,0,0,0.5);
    padding: 4px 8px;
    border-radius: 4px;
}

/* ========== CONTROLES IMAGE EN VISIONNAGE ========== */
.image-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.post-active .image-controls {
    opacity: 1;
    pointer-events: auto;
}

.image-controls .fullscreen-format-btn {
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.image-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: #fff;
    font-size: 12px;
    background: rgba(0,0,0,0.5);
    padding: 4px 8px;
    border-radius: 4px;
}
  
  .notification-badge {
    background-color: #ff3b30;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: -5px;
    right: -5px;
  }
  
  .search-bar {
    flex-grow: 1;
    margin: 0 10px;
    padding: 5px;
    background-color: #2c2c2c;
    border: none;
    border-radius: 5px;
    color: #e0e0e0;
  }
  
  .profile {
    text-align: center;
    padding: 20px;
  }
  
  .profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
  }
  
  .media-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }
  
  .media-itemX {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }
  
  .media-itemX img,
  .media-itemX video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .media-stats {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
  }
  
  .messages-list {
    list-style-type: none;
    padding: 20px;
    margin: 0;
    background-color: #1c1c1c;
    border-radius: 10px;
  }
  
  .message-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: #2c2c2c;
    transition: background-color 0.2s ease;
  }
  
  .message-item:hover {
    background-color: #3c3c3c;
  }
  
  .message-item > div:first-child {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    flex: 1;
  }
  
  .message-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3c3c3c;
  }
  
  .message-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  .message-username {
    font-weight: bold;
    color: #e0e0e0;
  }
  
  .message-preview {
    color: #888;
    font-size: 0.9em;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .message-time {
    color: #666;
    font-size: 0.8em;
  }
  
  .message-notification {
    background-color: #ff3b30;
    color: white;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
  }
  
  .chat {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
    background-color: #1c1c1c;
    border-radius: 10px;
  }
  
  .chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 15px;
    position: relative;
  }
  
  .message.received {
    align-self: flex-start;
    background-color: #2c2c2c;
    border-bottom-left-radius: 5px;
  }
  
  .message.sent {
    align-self: flex-end;
    background-color: #0095f6;
    border-bottom-right-radius: 5px;
  }
  
  .message p {
    margin: 0;
    color: #e0e0e0;
    line-height: 1.4;
  }
  
  .message .timestamp {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
    display: block;
  }
  
  .chat-input {
    display: flex;
    gap: 10px;
    padding: 15px;
    background-color: #2c2c2c;
    border-radius: 0 0 10px 10px;
  }
  
  .chat-input input {
    flex-grow: 1;
    padding: 12px;
    border: none;
    border-radius: 20px;
    background-color: #3c3c3c;
    color: #e0e0e0;
    font-size: 14px;
  }
  
  .chat-input input:focus {
    outline: none;
    background-color: #4c4c4c;
  }
  
  .chat-input button {
    padding: 8px 20px;
    background-color: #0095f6;
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .chat-input button:hover {
    background-color: #0077c2;
  }
  
  .load-more {
    text-align: center;
    padding: 10px;
    background-color: #2c2c2c;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
  }
  
  .profile-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
  }
  
  .profile-btn {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .profile-btn:hover {
    background-color: #3c3c3c;
  }
  
  .follow-list {
    background-color: #1c1c1c;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
  }
  
  .follow-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .follow-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
  }
  
  .profile-btn span {
    background-color: #3c3c3c;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 5px;
  }
  
  .edit-icon {
    cursor: pointer;
    margin-left: 5px;
  }
  
  .follow-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #2c2c2c;
    color: rgb(224, 223, 223);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  
  .follow-btn:hover {
    opacity: 0.8;
  }
  
  .full-screen-post {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    overflow-y: auto;
    z-index: 1000;
  }
  
  .full-screen-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
  }
  
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    background: none;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
}

#post-details {
  padding: 20px;
}

#post-details ul {
  list-style-type: none;
  padding: 0;
}

#post-details li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

#post-details .post-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
  cursor: pointer;
}

#post-details span {
  flex-grow: 1;
  cursor: pointer;
}

#post-details .follow-btn {
  background-color: #0095f6;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}


::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: transparent;
}

::-webkit-scrollbar-thumb:hover {
  background: transparent;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.create-post {
  padding: 20px;
}

.create-post textarea {
  width: 100%;
  height: 100px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #2c2c2c;
  background-color: #1c1c1c;
  color: #e0e0e0;
  resize: vertical;
}

.create-post button {
  background-color: #0095f6;
  color: white;
  border: none;
  padding: 10px 15px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 5px;
}

.create-post button:hover {
  background-color: #0077c2;
}

#media-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.message-actions {
  display: flex;
  gap: 10px;
}

.message-actions button {
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #2c2c2c;
  color: #e0e0e0;
}

.message-actions button:hover {
  background-color: #3c3c3c;
}

.post-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2px;
    margin-bottom: 10px;
}

.post-media-carousel {
    max-width: 100%;
    aspect-ratio: var(--post-media-aspect-ratio, 2 / 3);
    overflow: hidden;
    border-radius: 13px 13px 0px 0px;
    position: relative;
    background: #020511;
}

.media-container {
    display: flex;
    height: 100%;
    width: 100%;
    position: relative;
}

.media-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.4);
    transform: scale(2.1);
    z-index: 0;
}

.media-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.8) 100%);
    z-index: 0;
}

.media-container > * {
    position: relative;
    z-index: 1;
}

.media-item {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    aspect-ratio: var(--media-aspect-ratio, var(--post-media-aspect-ratio, 2 / 3));
    position: relative;
}

/* Container 16:9 pour les médias larges (plus larges que 1:1) */
.media-item.media-landscape .media-16-9-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.media-item.media-landscape .media-16-9-wrapper img,
.media-item.media-landscape .media-16-9-wrapper video,
.media-item.media-landscape .media-16-9-wrapper .post-video-container {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Médias portrait (2:3 à 4:5 selon écran) remplissent le container avec cover */
.media-item.media-portrait {
    width: 100%;
    height: 100%;
}

.media-item.media-portrait img,
.media-item.media-portrait video {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}

.media-item.media-portrait .post-video-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.media-item.media-portrait .post-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.post-image, .post-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.media-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

.prev-media, .next-media {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.media-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background: white;
}

.post-video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 5px;
}

.video-progress {
    flex-grow: 1;
    height: 3px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
}

.video-mute-btn {
    background: none;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s, transform 0.2s;
    opacity: 0.85;
}

.video-mute-btn:hover {
    background: rgba(60,60,60,0.95);
    transform: scale(1.08);
    opacity: 1;
}

.video-mute-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: #fff;
    pointer-events: none;
}

#video-preview {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin: 0 auto;
}

#video-trim-container {
    position: relative;
    margin-top: 10px;
}

#trim-slider {
    height: 10px;
    margin-top: 10px;
}

#trim-time {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.noUi-connect {
    background: #3498db;
}

.noUi-handle {
    width: 4px;
    height: 16px;
    top: -3px;
    right: -2px;
    border-radius: 2px;
    background: #3498db;
    cursor: pointer;
}

.noUi-handle:before, .noUi-handle:after {
    display: none;
}

.noUi-tooltip {
    display: none;
}

.noUi-active .noUi-tooltip {
    display: block;
}

.post-media-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: var(--post-media-aspect-ratio, 2 / 3);
    width: 100%;
   /* background: #000; */
    border-radius: 0;
}

/* Conteneur commun pour le ticker et les actions en bas */
.post-bottom-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
/*  background-color: lch(32 9.65 197.7 / 0.63); */
    border-radius: 30px 8px 30px 8px; 
    padding: 10px 15px;
    gap: 10px;
  /*  border: 3px solid #263738; */
    box-sizing: border-box;
    min-height: 102px;
    overflow: hidden;
}

.post-bottom-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.post-bottom-container.has-video-feed-controls {
    min-height: 138px;
}

.feed-video-progress-line {
    position: relative;
    width: 100%;
    height: 36px;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    overflow: visible;
    touch-action: none;
    display: flex;
    align-items: center;
}

.feed-video-progress-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    background: rgb(157 184 193 / 32%);
    border-radius: 6px;
}

.feed-video-progress-thumb {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    margin-left: 0;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.28);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    transform: translateX(-50%);
    left: 0%;
    pointer-events: none;
    transition: left 0.08s linear;
}

.feed-video-progress-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 6px;
    pointer-events: none;
}

.post.video-is-playing .post-bottom-video-row .feed-video-toggle-sound {
    visibility: hidden;
    pointer-events: none;
}

.feed-video-control-row {
    width: fit-content;
    display: flex;
  /*  background-color: #67737c4d; */
    border-radius: 40px 40px 40px 40px;
    align-items: center;
   /* border: 2px solid #474747; */
    justify-content: flex-start;
    gap: 10px;
}

.feed-video-time-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  /*  background: rgb(38 55 56); */
    background: rgb(6 13 16);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 12px;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
    min-width: 88px;
}

.feed-video-time-display .feed-current-time {
    color: #c0bba4;
}

.feed-video-time-display .feed-time-separator {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 1px;
}

.feed-video-time-display .feed-total-time {
    color: rgba(255, 255, 255, 0.75);
}

.feed-video-toggle-play,
.feed-video-toggle-sound {
    background: rgb(6 13 16);
    border: 1px solid rgba(255, 255, 255, 0); 
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

.feed-video-toggle-play:hover,
.feed-video-toggle-sound:hover {
    background: rgba(255, 255, 255, 0.16);
}

.feed-video-toggle-play svg,
.feed-video-toggle-sound svg {
    width: 18px;
    height: 18px;
    fill: #f6f6f6d6;
    display: none;
}

.feed-video-toggle-play.is-paused .icon-play,
.feed-video-toggle-sound.is-muted .icon-sound-off {
    display: block;
}

.feed-video-toggle-play:not(.is-paused) .icon-pause,
.feed-video-toggle-sound:not(.is-muted) .icon-sound-on {
    display: block;
}

/* Barre d'actions horizontale en bas */
.post-actions-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    border: 1px solid #ffffff00;
    border-radius: 5px;
    margin-top: -61px;
    padding: 6px 10px;
}

.post-actions-bottom .action-btn {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 3px;
    cursor: pointer;
}

.post-actions-bottom .action-btn .icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.post-actions-bottom .action-btn .action-count {
    color: #9fa0ffd4;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    margin-top: -3px;
    cursor: pointer;
}

.post-actions-bottom .like-icon.liked {
    fill: #ff00617d;
    stroke: #ffa4524f;
    stroke-width: 1.5px;
}

.post-media-container > img,
.post-media-container > video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}

.post-media-container .post-video-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.post-media-container .post-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cacher les anciens header/caption s'ils existent encore */
.post > .post-header,
.post > .post-caption {
    display: none !important;
}

/* Header overlay en haut */
.post-header-overlay {
    display: flex;
    align-items: center;
    pointer-events: auto;
  /* background-color: #6ab6ee4d; */
  /*  background-color: #263738; */
  /*  border-radius: 8px 8px 0 0; */
    border-radius: 40px 40px 40px 40px;
  /*  border: 3px solid #263738; */
    padding: 12px 15px 8px 15px;
}

.post-header-overlay .post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    cursor: pointer;
    border: 1px solid #a76f22;
    object-fit: cover;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.post-header-overlay .post-user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 52px;
    position: absolute;
    left: 15px;
}

.post-header-overlay .post-username {
    font-weight: normal;
    cursor: pointer;
    color: #ffffffb5;
    font-size: 17px;
   /* text-shadow: 0 1px 3px rgba(0,0,0,0.8); */
    white-space: nowrap;
    line-height: 1.2;
}

.post-header-overlay .post-time {
    font-size: 12px;
    color: #aaa;
   /* text-shadow: 0 1px 3px rgba(0,0,0,0.8); */
    white-space: nowrap;
    line-height: 1.2;
    margin-top: 2px;
}

/* Caption overlay en bas du header */
.post-caption-overlay {
    pointer-events: auto;
    background-color: #060d1000;
    padding: 2px 16px;
    color: #ffffff96;
    
 /*   font-family: monospace; */
    font-size: 1.1rem;
    line-height: 1.6rem;
    font-weight: normal;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    box-sizing: border-box;
    min-height: 56px;
    max-height: 56px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    word-break: break-word;
    position: relative;
    cursor: pointer;
}

.post-caption-overlay.is-expanded {
    max-height: none;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
}

/* Section commentaires avec label */
.post-comments-section {
    flex: 1;
    min-width: 0;
    display: flex;
    border-radius: 30px 30px 30px 30px;
    padding: 10px 15px;
    background-color: #22232785;
    gap: 10px;
    border: 2px solid #474747;
    /* border: #67737c4d; */
    box-sizing: border-box;
    flex-direction: column;
}

/* Zone de commentaires en vedette (ticker) */
.post-comments-ticker {
    pointer-events: auto;
    padding: 0;
    min-height: 50px;
    max-height: 50px;
    overflow: hidden;
}

.comments-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
   /* text-transform: uppercase; */
    letter-spacing: 0.5px;
    padding: 0px 0px 0px 35px;
}

.comments-ticker-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.comment-ticker-main {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.comment-ticker-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.comment-ticker-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.comment-ticker-avatar {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    display: block !important;
}

.comment-ticker-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
    justify-content: flex-start;
}

.comment-ticker-header .comment-ticker-time {
    margin-left: auto;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}

.comment-ticker-username {
    font-weight: 600;
    color: #ffffff8f;
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.comment-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.comment-badge.popular {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
}

.comment-badge.recent {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: #fff;
}

.comment-ticker-right .comment-ticker-time {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
}

.comment-ticker-text {
    color: rgb(255 255 255 / 75%);
    font-size: 16px;
    line-height: 1.3;
    margin: 3px 0 4px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.3em * 2);
}

.comment-ticker-text.no-comments {
    color: rgba(255,255,255,0.5);
    font-style: italic;
    font-size: 12px;
}

.comment-ticker-stats {
    display: flex;
    gap: 10px;
}

.comment-stat {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

.comment-stat.likes::before {
    content: '❤️ ';
    font-size: 10px;
}

.comment-stat.replies::before {
    content: '💬 ';
    font-size: 10px;
}

/* Styles pour le système de lecture automatique progressive */
.post-video {
    transition: opacity 0.3s ease;
}

.post-video.is-playing {
    opacity: 1;
}

.post-video.buffering::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Masquer l'overlay play quand la vidéo joue */
.post-video.is-playing + .video-play-overlay {
    opacity: 0;
    pointer-events: none;
}

.likes-list {
    max-height: 150px;
    overflow-y: auto;
    padding: 0;
    list-style-type: none;
}



.audio-comment-btn {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 20px;
    cursor: pointer;
}

.post-interactions {
    position: absolute;
    top: 0;
    left: 0;
    right: 130px;  /* Espace pour l'image minimisée */
    bottom: 0;
    background-color: rgba(28, 28, 28, 0.9);
    color: white;
    padding: 0;
    overflow-y: hidden;
    z-index: 1;
    display: none;
}

.post-interactions.active {
    display: block;
}

.post-likes, .post-comments {
    display: none;
}

.post-media-carousel.minimized {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 120px;
    height: 120px;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.post-media-carousel.minimized img,
.post-media-carousel.minimized video {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.post-interactions {
    position: relative;
    background-color: #1c1c1c;
    padding: 0;
    margin-top: 10px;
    height: 60vh;
    border: 3px solid #6e6e6e;
}

.post-likes, .post-comments {
    display: none;
    height: 100%;
}

.minimized + .post-interactions {
    margin-right: 0;
}

/* Masquer les boutons de navigation quand minimisé */
.post-media-carousel.minimized .prev-media,
.post-media-carousel.minimized .next-media,
.post-media-carousel.minimized .media-dots {
    display: none;
}




@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.likes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.like-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #333;
}

.like-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}


.like-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #2c2c2c;
    border-radius: 10px;
}

.like-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.follow-btn.following {
    background-color: #2c2c2c;
    border: 1px solid #444;
}

.post-likes {
    height: 100%;
    padding: 20px;
}

.like-username {
    font-weight: 500;
    color: #e0e0e0;
}

.likes-container {
    position: relative;
    background-color: #1c1c1c;
    padding: 15px;
    margin-top: 10px;
    overflow-y: auto;
    height: 60vh;
    border: 3px solid #6e6e6e;
    display: none;
}

.likes-container.active {
    display: block;
}

.likes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
    margin-bottom: 15px;
}

.likes-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
}

.likes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.like-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background-color: #2c2c2c;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.like-item:hover {
    background-color: #3c3c3c;
}

.like-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.like-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.like-details {
    display: flex;
    flex-direction: column;
}

.like-username {
    font-weight: 500;
    color: #e0e0e0;
}

.follow-btn {
    padding: 6px 16px;
    border-radius: 6px;
    border: none;
    background-color: #2c2c2c;
    color: rgb(221, 220, 220);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.follow-btn:hover {
    background-color: #1a91da;
}

.follow-btn.following {
    background-color: #2c2c2c;
    border: 1px solid #444;
}

.share-container {
    position: relative;
    background-color: #1c1c1c;
    padding: 15px;
    margin-top: 10px;
    overflow-y: auto;
    height: 60vh;
    border: 3px solid #6e6e6e;
    
    display: none;
}

.share-container.active {
    display: block;
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.share-header h3 {
    margin: 0;
    color: #e0e0e0;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 15px;
    background: none;
    border: none;
    color: #e0e0e0;
    padding: 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.share-option:hover {
    background-color: #333;
}

.share-icon {
    font-size: 24px;
}

.minimized + .share-container {
    margin-right: 0;
}

.like-icon {
    transition: all 0.3s ease;
    fill: #dddbdbbd;
   /* stroke: #b2aea0bf;
    stroke-width: 1.5px; */
}

.like-icon.liked {
    fill: #ff3040;
    animation: likeAnimation 0.3s ease;
}

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

.likes-text {
    cursor: pointer;
    color: #e0e0e0;
    margin-right: 15px;
}

.likes-text:hover {
    text-decoration: underline;
}

.post-comments {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}



/* Style pour le picker d'emoji */
.emoji-picker {
    position: absolute;
    bottom: -220px;
    right: 0;
    background: #2c2c2c;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: none;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    width: 250px;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
}

.emoji-picker.active {
    display: grid;
}

.emoji-item {
    cursor: pointer;
    padding: 5px;
    text-align: center;
    transition: transform 0.2s;
}

.emoji-item:hover {
    transform: scale(1.2);
}























.container {
  width: 100%;
  max-width: 414px;
  height: 50vh;
  background: #242526;
  position: relative;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  overflow: hidden;
}


.btn-comments {
  background: #1877f2;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  width: 80%;
  max-width: 300px;
}

.btn-comments:hover {
  background: #166fe5;
  transform: scale(1.02);
}

.comments-section {
  display: none;  
  height: 60vh;
  display: flex;
  flex-direction: column;
}

.comment-form {
  padding: 10px;
  background: #3a3b3c;
  border-top: 1px solid #ddd;
}

.comment {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #3a3b3c;
  position: relative;
  transition: background-color 0.3s ease;
}

.reply-to {
  background: #3a3b3c;
  border-left: 3px solid #1877f2;
  padding: 5px 10px;
  margin-bottom: 8px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 0.9em;
}

.reply-to:hover {
  background: #4a4b4c;
}

.long-press-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(24, 119, 242, 0.1);
  display: none;
  justify-content: center;
  align-items: center;
}

.reply-actions {
  background: #3a3b3c;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  gap: 10px;
}

.reply-btn, .voice-reply-btn {
  background: #1877f2;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1877f2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1877f2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.comment-content {
  flex: 1;
}

.comment-author {
  font-weight: bold;
  margin-bottom: 4px;
  color: #e4e6eb;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-timestamp {
  color: #8e9297;
  font-size: 12px;
  font-weight: normal;
}

.comment-text {
  color: #e4e6eb;
}

.comment-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #3a3b3c;
  border-radius: 20px;
  padding: 5px 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comment-input {
  flex: 1;
  border: 1px solid #818181;
  padding: 8px;
  font-size: 14px;
  outline: none;
  border-radius: 4px;
  background: transparent;
  color: #e4e6eb;
  
}

.comment-input::placeholder {
  color: #b0b3b8;
}

.voice-record-overlay {
  display: none !important;  
}

.timer {
  color: white;
  font-size: 48px;
  margin-bottom: 20px;
}

.waveform-container {
  height: 60px;
  width: 100%;
  background: #242526;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 5px;
}

.waveform {
  width: 100%;
  height: 100%;
  display: block;
}

.recording-controls {
  position: absolute;
  right: 40px;
  display: none;
  gap: 8px;
  align-items: center;
}

.recording-controls button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cancel-record-btn {
  background: #dc3545;
  color: white;
}

.confirm-record-btn {
  background: #28a745;
  color: white;
}

.delete-record-btn, .send-record-btn {
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: pulse 1.5s infinite;
}

.delete-record-btn {
  background: #dc3545;
  color: white;
}

.send-record-btn {
  background: #28a745;
  color: white;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes waveform {
  0% { transform: scaleY(0.1); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0.1); }
}

.waveform line {
  transform-origin: center;
}

.waveform.active line {
  animation: waveform 1s ease-in-out infinite;
}

.voice-message {
  width: 200px;
  margin-top: 5px;
  background: #3a3b3c;
  padding: 10px;
  border-radius: 15px;
}

.voice-message .mute-btn {
  background: none;
  border: none;
  color: #1877f2;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
}

.voice-message .recording-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.voice-message.recording .recording-status {
  color: #ff0000;
  font-size: 12px;
  display: block;
  margin-top: 4px;
}

.voice-duration {
  color: #65676b;
  font-size: 12px;
  display: block;
  margin-top: 4px; 
}

.voice-call {
  background: #3a3b3c;
  border-radius: 8px;
  padding: 10px;
  margin: 5px 0;
}

.call-record {
  color: #b0b3b8;
  font-style: italic;  
  padding: 5px 0;
  text-align: center;
}

.call-record {
  color: #b0b3b8;
  font-style: italic;
  padding: 5px 0;
}

.control-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #1877f2;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-icon {
  width: 24px;
  height: 24px;
  fill: #1877f2;
}

.voice-icon.recording {
  fill: #dc3545;  
}

.voice-icon.recording path {
  position: relative;
}

.voice-icon.recording::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #dc3545;
  transform: rotate(45deg);
}

.submit-btnn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.submit-icon {
  width: 24px;
  height: 24px;
  fill: #1877f2;
}

.emoji-panel {
  display: none;
  position: absolute;
  bottom: 60px; 
  left: 10px;
  background: #3a3b3c;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  z-index: 1000; 
  max-height: 200px;
  overflow-y: auto;
  width: calc(100% - 20px); 
}

.emoji-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background 0.2s;
}

.emoji-btn:hover {
  background: #4a4b4c;
}

.scroll-bottom-btn {
  position: absolute; 
  bottom: 80px; 
  right: 20px;
  background: #1877f2;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.scroll-bottom-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.current-date {
  position: sticky;
  top: 0;
  background: #242526;
  padding: 8px;
  text-align: center;
  color: #b0b3b8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #3a3b3c;
  z-index: 10;
  margin: 10px 0;
}

.cancel-btn {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 8px;
  padding: 4px;
  color: #dc3545;
}

.voice-call-status {
  display: flex;
  align-items: center;
  gap: 4px;
}

.active-voice-calls {
  position: static;
  background: #3a3b3c;
  padding: 5px;
  border-bottom: 1px solid #4a4b4c;
  z-index: 1000;
  margin: 0;
}

.voice-caller {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border-bottom: 1px solid #4a4b4c;
  color: #e4e6eb;
}

.end-call-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.time-extension-prompt {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.9);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  z-index: 1001;
}

.time-extension-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
}

.profile-pic-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.edit-profile-pic {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #3a4762;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 6px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.edit-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

.cropper-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cropper-wrapper {
    max-width: 90%;
    max-height: 70vh;
}

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

.cropper-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.cropper-btn.confirm {
    background: #1DA1F2;
    color: white;
}

.cropper-btn.cancel {
    background: #dc3545;
    color: white;
}

.delete-post-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(255, 59, 48, 0.8);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 6px;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-post-btn svg {
  fill: white;
}

.delete-post-btn:hover {
  background-color: rgba(255, 59, 48, 1);
  transform: scale(1.1);
}

#target-post {
    border: 2px solid #1877f2;
    animation: highlight-post 2s ease-out;
}

@keyframes highlight-post {
    0% { border-color: #1877f2; }
    50% { border-color: transparent; }
    100% { border-color: #1877f2; }
}

.notification-item {
    background: #2c2c2c;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.notification-item.new {
    opacity: 1;
    transform: translateY(0);
}

.notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.recommendation-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #2c2c2c;
    border-radius: 8px;
    margin-bottom: 10px;
}

.recommendation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.recommendation-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recommendation-info small {
    color: #888;
    font-size: 0.8em;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.stats-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #e0e0e0;
}

.stats-btn .count {
    font-weight: bold;
    font-size: 1.2em;
}

.follows-container {
    width: 100%;
    background: #1c1c1c;
    border-radius: 10px;
    margin: 15px 0;
    display: none;
}

.follows-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #333;
}

.follows-list {
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.follow-item {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 10px;
    border-bottom: 1px solid #333;
}

.follow-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.follow-info {
    flex: 1;
}

.close-btn {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 24px;
    cursor: pointer;
}

.follows-container {
    margin-top: 20px;
    background: #1c1c1c;
    border-radius: 10px;
    padding: 15px;
    width: 100%;
}

.follow-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #333;
}

.follow-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.follow-info {
    flex: 1;
}

.follow-item .follow-btn {
    padding: 5px 10px;
    border-radius: 5px;
}

.comment .avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;  /* Empêche l'avatar de rétrécir */
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.comment .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Assure que l'image couvre tout l'espace sans déformation */
}

/* Styles pour l'authentification */
.auth-container {
    height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-form {
    width: 100%;
    max-width: 320px;
    background-color: #201f25;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #e0e0e0;
    font-size: 24px;
}

.profile-pic-upload {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.profile-pic-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2c2c2c;
}

.edit-profile-pic {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #3a4762;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.edit-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

.form-fields {
    margin-bottom: 20px;
}

.form-fields p {
    margin-bottom: 15px;
}

.form-fields label {
    display: block;
    margin-bottom: 5px;
    color: #e0e0e0;
    font-size: 14px;
}

.form-fields input {
    width: 100%;
    padding: 10px;
    border: 1px solid #2c2c2c;
    border-radius: 8px;
    background-color: #242424;
    color: #e0e0e0;
    font-size: 16px;
    box-sizing: border-box;
}

.form-fields input:focus {
    outline: none;
    border-color: #4e4b48;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #4e4b48;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #4e4b48;
}

.auth-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #e0e0e0;
}

.auth-link a {
    color: #508fed;
    font-weight: bold;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Gestion des erreurs de formulaire */
.errorlist {
    color: #ff3b30;
    list-style: none;
    padding: 0;
    margin: 5px 0;
    font-size: 14px;
}

/* Style pour les messages de succès/erreur */
.messages {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.messages li {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.messages .success {
    background-color: #28a745;
    color: white;
}

.messages .error {
    background-color: #dc3545;
    color: white;
}

.form-fields input.error {
    border-color: #dc3545;
}

.error-message {
    /* Original: display: none; - Je modifie cette ligne */
    display: block; /* Afficher par défaut les messages d'erreur */
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* Ajouter une règle pour masquer les conteneurs d'erreur vides */
.error-message:empty {
    display: none;
}

.form-fields {
    position: relative;
}

.form-fields input:focus {
    border-color: #474747;
}

.form-fields input.error:focus {
    border-color: #dc3545;
}

.content .cropper-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100% !important;
    width: 100% !important;
}

.content .cropper-wrapper {
    position: relative;
    width: 100%;
    height: calc(100% - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.content .cropper-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    background: rgba(0,0,0,0.8);
}

/* Style de l'en-tête de conversation */
.chat-header {
    padding: 15px 20px;
    background-color: #1c1c1c;
    border-bottom: 1px solid #2c2c2c;
    border-radius: 10px 10px 0 0;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3c3c3c;
}

.chat-username {
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
}

/* Styles spécifiques pour la page messages */
.messages-container {
    padding: 20px;
    background-color: #121212;
}

.messages-title {
    font-size: 24px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 20px;
    padding-left: 10px;
}

.messages-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    background-color: transparent;
}

.messages-list .message-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #1c1c1c;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.messages-list .message-item:hover {
    background-color: #2c2c2c;
}

.message-content-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    flex: 1;
}

.messages-list .message-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.message-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.messages-list .message-username {
    font-size: 16px;
    font-weight: 500;
    color: #e0e0e0;
}

.messages-list .message-notification {
    background-color: #ff3b30;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
}

.delete-conversation-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.delete-conversation-btn:hover {
    opacity: 1;
}

.delete-conversation-btn svg {
    fill: #e0e0e0;
}

.no-messages {
    text-align: center;
    color: #888;
    padding: 20px;
    font-size: 16px;
}

/* Styles pour la boîte de dialogue de confirmation */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog-box {
    background-color: #1c1c1c;
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.dialog-box h3 {
    color: #e0e0e0;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.dialog-box p {
    color: #b0b0b0;
    margin: 0 0 20px 0;
    font-size: 16px;
}

.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.dialog-buttons button {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dialog-buttons .cancel-btn {
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.dialog-buttons .confirm-btn {
    background-color: #dc3545;
    color: white;
}

.dialog-buttons .cancel-btn:hover {
    background-color: #3c3c3c;
}

.dialog-buttons .confirm-btn:hover {
    background-color: #bb2d3b;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.search-bar {
    width: 100%;
    padding: 8px 35px 8px 12px;
    border: 1px solid #fefefe4f;
    border-radius: 20px;
    background-color: #222327;
    color: #e0e0e0;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.search-icon svg {
    width: 20px;
    height: 20px;
    fill: #888;
    transition: fill 0.2s ease;
}

.search-icon:hover svg {
    fill: #e0e0e0;
}

.header-action-btn {
    border: 1px solid #3a3a3a;
    background: #232427;
    color: #dcdcdc;
    border-radius: 999px;
    height: 30px;
    min-width: 30px;
    padding: 0 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header-action-wrapper {
    position: relative;
    display: inline-flex;
}

.header-action-btn svg {
    width: 18px;
    height: 18px;
    fill: #dcdcdc;
}

.header-action-wrapper .notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
}

.header-search-drawer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 10px;
    background: #181818;
    transition: max-height 0.2s ease, opacity 0.2s ease, padding 0.2s ease;
}

.header-search-drawer.is-open {
    max-height: 72px;
    opacity: 1;
    padding: 8px 10px 10px;
}

.live-shortcut-btn {
    display: none;
}

.live-shortcut-btn.is-visible {
    display: inline-flex;
}

.social-page {
    padding: 14px;
    color: #e6e6e6;
}

.social-page-header h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.social-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.social-tabs-scroll {
    overflow-x: auto;
    padding-bottom: 2px;
}

.social-tab {
    border: 1px solid #3d3d3d;
    background: #222327;
    color: #d7d7d7;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.social-tab.is-active {
    background: #d7d7d7;
    color: #121212;
}

.social-tab-panel {
    display: none;
}

.social-tab-panel.is-active {
    display: block;
}

.social-section {
    margin-bottom: 16px;
}

.social-section h3 {
    margin: 0 0 8px;
    font-size: 13px;
    color: #bcbcbc;
}

.social-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #212226;
    border: 1px solid #2f2f2f;
    border-radius: 12px;
    margin-bottom: 8px;
}

.social-user-main {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    cursor: pointer;
}

.social-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.social-username {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.call-history-meta {
    font-size: 11px;
    color: #9e9e9e;
}

.call-actions {
    display: flex;
    gap: 6px;
}

.call-action-btn {
    border: 1px solid #4a4a4a;
    background: transparent;
    color: #dfdfdf;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 11px;
    cursor: pointer;
}

.social-empty {
    margin: 6px 0 10px;
    color: #9a9a9a;
    font-size: 13px;
}

.call-room {
    padding: 14px;
    color: #e7e7e7;
}

.call-room-header h2 {
    margin: 0;
    font-size: 18px;
}

.call-room-subtitle {
    margin: 4px 0 10px;
    color: #aaaaaa;
    font-size: 12px;
}

.call-videos {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #2f2f2f;
    background: #0f0f10;
    min-height: 260px;
}

.call-video {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    background: #000;
}

.call-video.local-video {
    position: absolute;
    width: 110px;
    height: 150px;
    right: 10px;
    bottom: 10px;
    border-radius: 10px;
    border: 1px solid #444;
}

.call-video.is-hidden {
    display: none;
}

.call-status {
    margin-top: 10px;
    color: #c8c8c8;
    font-size: 13px;
}

.call-controls {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.call-control-btn {
    border: 1px solid #484848;
    background: #232427;
    color: #e3e3e3;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
}

.call-control-btn.danger {
    border-color: #8c2d2d;
    background: #5b1f1f;
}

.call-control-btn.is-hidden {
    display: none !important;
}

.global-call-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 12px;
    box-sizing: border-box;
}

.global-call-modal.is-visible {
    display: flex;
}

.global-call-modal-inner {
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 24px);
    overflow: auto;
    border-radius: 16px;
    background: #121316;
    border: 1px solid #2a2a2e;
    padding-bottom: 4px;
}

body.global-call-modal-open {
    overflow: hidden;
}

.search-results {
    padding: 20px;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.user-item .profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.users-results, .posts-results {
    margin-bottom: 20px;
}

.search-header {
    padding: 15px;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

.search-header h2 {
    margin: 0;
    font-size: 16px;
    color: #fff;
}

.search-users-results {
    background: #1c1c1c;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-search-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #2a2a2a;
    border-radius: 8px;
}

.user-search-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    cursor: pointer;
}

.user-search-username {
    flex: 1;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
}

.user-search-item .follow-btn {
    padding: 6px 12px;
    border-radius: 5px;
    background: #0095f6;
    color: white;
    border: none;
    cursor: pointer;
}

.user-search-item .follow-btn:hover {
    background: #0081d6;
}

/* Styles pour l'overlay de chargement */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.trim-controls {
    margin-top: 15px;
    padding: 10px;
    background: #2c2c2c;
    border-radius: 8px;
    position: relative;
    z-index: 2;
}

/* Modal vidéo - Style moderne et compact */
#video-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    overflow-y: auto;
}

#video-preview-modal .modal-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

#video-preview-modal .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#video-preview-modal h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 60px 0 20px 0;
    text-align: center;
}

#video-preview-modal .video-preview-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    margin: 0 0 20px 0;
}

#video-preview-modal #video-preview {
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    background: #000;
    border-radius: 8px;
}

#video-preview-modal .trim-controls {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

#video-preview-modal .trim-info {
    margin-top: 12px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    text-align: center;
}

#video-preview-modal .modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding: 20px 0;
}

#video-preview-modal .cancel-btn,
#video-preview-modal .apply-btn {
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#video-preview-modal .cancel-btn {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

#video-preview-modal .cancel-btn:hover {
    background: rgba(255,255,255,0.2);
}

#video-preview-modal .apply-btn {
    background: #4CAF50;
    color: #fff;
}

#video-preview-modal .apply-btn:hover {
    background: #45a049;
}

.trim-times {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #e0e0e0;
    font-size: 14px;
}

.trim-info {
    margin-top: 10px;
    color: #888;
    font-size: 12px;
    text-align: center;
}

#video-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    margin: 0;
    min-height: 300px;
}

#trim-slider {
    height: 10px;
    margin: 20px 0;
    background: #333;
}

.noUi-connect {
    background: #1DA1F2;
}

.noUi-handle {
    border: none;
    background: #1DA1F2;
    box-shadow: none;
    cursor: pointer;
    border-radius: 50%;
    width: 16px !important;
    height: 16px !important;
    right: -8px !important;
    top: -4px !important;
}

.noUi-handle::before,
.noUi-handle::after {
    display: none;
}

.video-preview-container {
    margin: 20px 0;
    position: relative;
    transition: all 0.3s ease;
    min-height: 300px;
}

#video-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    margin: 0;
    min-height: 300px;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.text-only-post {
    background: #1c1c1c;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: #e0e0e0;
}

.emoji-picker {
    position: absolute;
    bottom: -220px;
    right: 0;
    background: #2c2c2c;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: none;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    width: 250px;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
}

.emoji-picker.active {
    display: grid;
}

.emoji-btn {
    background: none;
    border: none;
    font-size: 20px;
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.emoji-btn:hover {
    background: #3c3c3c;
}

/* Cacher la zone de texte pour les posts vidéo */
.caption-input-container.hidden-for-video {
    display: none !important;
}

/* Cacher le conteneur de preview pour les posts vidéo */
.media-input-container.hidden-for-video {
    display: none !important;
}

/* Page de création de post vidéo */
.create-post-video {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

.create-post-video form {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.create-post-video .media-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.create-post-video .media-preview {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 9/16;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.create-post-video .media-preview video,
.create-post-video .media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.create-post-video .upload-section {
    margin-top: auto;
    padding: 20px 0;
}

/* Centrer le bouton quand aucune vidéo n'est sélectionnée */
.create-post-video .upload-section:only-child,
.create-post-video form:has(.media-input-container.hidden-for-video) .upload-section {
    margin-top: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-post-video .upload-btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px;
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.create-post-video .upload-btn-large:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
}

/* Icône play overlay pour les vidéos du feed */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 5;
}

.video-play-overlay svg {
    width: 32px;
    height: 32px;
    fill: #fff;
    margin-left: 4px;
}

/* Loader 3 points pour vidéo feed en chargement */
.feed-video-loading-indicator {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 6;
    pointer-events: none;
}

.feed-video-loading-indicator .loading-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #90d1ff6c;
    opacity: 0.3;
    animation: feedDotsPulse 0.9s infinite ease-in-out;
}

.feed-video-loading-indicator .loading-dot:nth-child(1) { animation-delay: 0s; }
.feed-video-loading-indicator .loading-dot:nth-child(2) { animation-delay: 0.2s; }
.feed-video-loading-indicator .loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes feedDotsPulse {
    0%, 100% { opacity: 0.25; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
}

.post-video-container.is-loading .feed-video-loading-indicator {
    display: flex;
}

/* Pendant le chargement du post qui doit jouer, masquer l'overlay play */
.post-video-container.is-loading .video-play-overlay {
    opacity: 0;
}

.create-post-video .upload-btn-large svg {
    width: 24px;
    height: 24px;
}

.create-post-video #publish-btn {
    margin-top: 16px;
    width: 100%;
    padding: 18px;
    background: #4CAF50;
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.create-post-video #publish-btn:hover {
    background: #45a049;
}

.caption-input-container {
    position: relative;
    margin-bottom: 15px;
    width: 100%;
}

.emoji-trigger {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
    padding: 5px;
    z-index: 2;
}

.emoji-trigger:hover {
    color: #e0e0e0;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.cancel-btn, .apply-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn {
    background-color: #3c3c3c;
    color: #e0e0e0;
}

.cancel-btn:hover {
    background-color: #4c4c4c;
}

.apply-btn {
    background-color: #1DA1F2;
    color: white;
}

.apply-btn:hover {
    background-color: #1a91da;
    transform: translateY(-1px);
}

.apply-btn:active {
    transform: translateY(0);
}

/* Ajouter un effet de pulsation pour indiquer que l'application est nécessaire */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(29, 161, 242, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(29, 161, 242, 0); }
    100% { box-shadow: 0 0 0 0 rgba(29, 161, 242, 0); }
}

.apply-btn.needed {
    animation: pulse 2s infinite;
}

.custom-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1c1c1c;
    color: #e0e0e0;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 300px;
    text-align: center;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.custom-alert.error {
    border-left: 4px solid #ff3b30;
    background-color: rgba(255, 59, 48, 0.1);
}

.custom-alert.warning {
    border-left: 4px solid #ffcc00;
    background-color: rgba(255, 204, 0, 0.1);
}

/* Style pour le bouton Appliquer quand il est nécessaire */
.apply-btn.needed {
    animation: pulse 2s infinite;
    background-color: #ff3b30;
}

@keyframes pulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4);
    }
    70% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 59, 48, 0);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

.create-post {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.media-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.media-preview {
    width: 100%;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.media-preview img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
}

.media-preview .video-thumbnail {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.media-preview .video-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

#media-input {
    padding: 10px;
    background-color: #2c2c2c;
    border-radius: 8px;
    border: 2px dashed #3c3c3c;
    cursor: pointer;
    text-align: center;
    color: #e0e0e0;
}

#media-input:hover {
    background-color: #3c3c3c;
    border-color: #4c4c4c;
}

.caption-input-container {
    position: relative;
    margin-bottom: 15px;
}

.caption-input-container textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    padding-right: 40px;
    background-color: #2c2c2c;
    border: none;
    border-radius: 8px;
    color: #e0e0e0;
    resize: vertical;
}

.modal {
    display: none;
}

.install-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 9999;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: bounce 1s infinite;
    display: none;
    width: auto;
    min-width: 200px;
    text-align: center;
    margin-bottom: env(safe-area-inset-bottom);
}

.install-button:hover {
    background-color: #45a049;
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Ajustement pour les appareils mobiles */
@media (max-width: 768px) {
    .install-button {
        bottom: 40px;
        width: 80%;
        max-width: 300px;
    }
}

.installation-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.install-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background-color: #555555;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    z-index: 1000;
    display: none;
    transition: all 0.3s ease;
}

.install-button:hover {
    background-color: #555555;
    transform: translateX(-50%) scale(1.05);
}

.install-button:active {
    transform: translateX(-50%) scale(0.95);
}

.live-stream-container {
    margin-bottom: 70px;
    background-color: #1c1c1c00;
  /*  border-radius: 10px; */
    overflow: hidden;
}

.live-stream-container .post-header {
    padding: 1px;
   /* border-bottom: 1px solid #4f4f4f; */
}

/* Header du live stream */
.live-stream-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.live-stream-post-header .post-title {
    min-width: 0;
}

.live-stream-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0px 10px 0px 0px;
    flex-shrink: 0;
}

.live-stream-container .live-header-btn {
    background: transparent;
    border: none;
    color: #c8c8c8;
    padding: 8px;
    margin: 0;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.live-stream-container .live-header-btn:hover {
    background: #2c2c2c;
    color: #fff;
}

.live-stream-container .live-header-btn:focus-visible {
    outline: 2px solid #555;
    outline-offset: 2px;
}

.live-stream-container .live-header-btn .live-icon {
    width: 22px;
    height: 22px;
    display: block;
}

/* Icônes son header */
.live-stream-container .live-header-btn.live-mute-toggle .live-icon-sound-on {
    display: none;
}

.live-stream-container .live-header-btn.live-mute-toggle.live-sound-on .live-icon-sound-off {
    display: none;
}

.live-stream-container .live-header-btn.live-mute-toggle.live-sound-on .live-icon-sound-on {
    display: block;
}

/* Icônes plein écran header */
.live-stream-container .live-header-btn.live-fullscreen-toggle .live-icon-fs-exit {
    display: none;
}

.live-stream-container .live-header-btn.live-fullscreen-toggle.live-fullscreen-active .live-icon-fs-enter {
    display: none;
}

.live-stream-container .live-header-btn.live-fullscreen-toggle.live-fullscreen-active .live-icon-fs-exit {
    display: block;
}

.post-title {
    display: flex;
    align-items: center;
    color: #ccccccc9;
    padding: 0px 0px 0px 20px;
    gap: 10px;
    font-weight: 200;
}

.live-indicator {
    color: #c835357d;
    font-size: 50px;
    animation: pulse 2s infinite;
}

.live-stream-player {
    position: relative;
    width: 100%;
    border-radius: 10px;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.live-stream-player iframe,
.live-stream-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.live-stream-player iframe,
.live-stream-player video,
.live-stream-player .youtube-live-embed {
    opacity: 1;
    transition: opacity 0.25s ease;
}

.live-stream-player.live-player-ready iframe,
.live-stream-player.live-player-ready video,
.live-stream-player.live-player-ready .youtube-live-embed {
    opacity: 1;
}

/* Placeholder quand il n'y a pas de diffusion */
.live-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #07060c;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.live-stream-player.live-player-ready .live-placeholder {
    display: none;
}

.live-placeholder-content {
    text-align: center;
    color: #fff;
}

.live-loading-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.live-loading-dots .loading-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6ab6ee4d;
    opacity: 0.3;
    animation: liveDotsPulse 0.9s infinite ease-in-out;
}

.live-loading-dots .loading-dot:nth-child(1) { animation-delay: 0s; }
.live-loading-dots .loading-dot:nth-child(2) { animation-delay: 0.2s; }
.live-loading-dots .loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes liveDotsPulse {
    0%, 100% { opacity: 0.25; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
}

.live-placeholder-time {
    display: none;
}

.live-placeholder-text {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-placeholder-wait {
    font-size: 14px;
    color: #aaa;
    margin-top: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animation pulsante pour le placeholder */
.live-placeholder-content {
    animation: livePlaceholderPulse 2s ease-in-out infinite;
}

@keyframes livePlaceholderPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* YouTube Live Embed */
.youtube-live-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.youtube-live-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none; /* Empêche les clics de rediriger */
}

.live-stream-error {
    padding: 16px;
    color: #ccc;
    font-size: 14px;
    text-align: center;
}

.live-badge-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff0000;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 1.5s infinite;
    pointer-events: none;
    z-index: 10;
}

/* Contrôles overlay du live (uniquement visible en plein écran) */
.live-controls-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Visible uniquement en plein écran */
.live-stream-player:fullscreen .live-controls-overlay,
.live-stream-player:-webkit-full-screen .live-controls-overlay {
    pointer-events: auto;
}

.live-stream-player:fullscreen .live-controls-overlay.visible,
.live-stream-player:-webkit-full-screen .live-controls-overlay.visible {
    opacity: 1;
}

.live-control-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
    backdrop-filter: blur(4px);
}

.live-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.live-control-btn:active {
    transform: scale(0.95);
}

.live-control-btn .live-icon {
    width: 24px;
    height: 24px;
    display: block;
}

/* Icônes son : muet par défaut */
.live-control-btn.live-mute-toggle .live-icon-sound-on {
    display: none;
}

.live-control-btn.live-mute-toggle.live-sound-on .live-icon-sound-off {
    display: none;
}

.live-control-btn.live-mute-toggle.live-sound-on .live-icon-sound-on {
    display: block;
}

/* Icônes plein écran */
.live-control-btn.live-fullscreen-toggle .live-icon-fs-exit {
    display: none;
}

.live-control-btn.live-fullscreen-toggle.live-fullscreen-active .live-icon-fs-enter {
    display: none;
}

.live-control-btn.live-fullscreen-toggle.live-fullscreen-active .live-icon-fs-exit {
    display: block;
}

/* Styles plein écran pour l'overlay */
.live-stream-player:fullscreen .live-controls-overlay,
.live-stream-player:-webkit-full-screen .live-controls-overlay {
    bottom: 24px;
    right: 24px;
}

/* Plein écran : zone vidéo */
.live-stream-player:fullscreen {
    background: #000;
    border-radius: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 0 !important;
    overflow: hidden;
}

.live-stream-player:fullscreen .youtube-live-embed {
    position: absolute;
    inset: 0;
    padding-top: 0;
    height: 100%;
    width: 100%;
}

.live-stream-player:fullscreen iframe,
.live-stream-player:fullscreen video {
    object-fit: contain;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.username-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.edit-username-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-username-btn .edit-icon {
    width: 20px;
    height: 20px;
    fill: #e0e0e0;
}

.edit-username-btn:hover .edit-icon {
    fill: #1DA1F2;
}

.username-editor {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2c2c2c;
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    display: none;
}

.username-editor.active {
    display: block;
}

.username-editor input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: #3c3c3c;
    border: 1px solid #4c4c4c;
    border-radius: 5px;
    color: #e0e0e0;
}

.username-editor .buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
}

.verified-icon {
    width: 20px;
    height: 20px;
    fill: #1DA1F2;
}

.username-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}


/* Adjust for different contexts */
.post-header .verified-icon {
    width: 14px;
    height: 14px;
}

.profile .verified-icon {
    width: 20px;
    height: 20px;
}

/* Make sure username containers can accommodate the badge */
.post-username,
.comment-username,
.conversation-username,
.user-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Ensure proper alignment in search results */

.username-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #e0e0e0;
    text-decoration: none;
}

.follow-btn.hiding {
    opacity: 0;
    transform: scale(0.8);
}

.admin-btn {
    background-color: #2c2c2c;  /* Changé de #ff3b30 à une couleur plus sombre et discrète */
    color: #808080;  /* Gris clair pour le texte */
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.admin-btn:hover {
    background-color: #383838;  /* Légèrement plus clair au survol */
    transform: scale(1.05);
}

.admin-btn:active {
    transform: scale(0.95);
}

/* Skeleton loading styles */
.post-skeleton {
    animation: pulse 1.5s infinite;
}

.skeleton {
    background: linear-gradient(90deg, #2c2c2c 25%, #383838 50%, #2c2c2c 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.username-placeholder {
    width: 120px;
    height: 20px;
    border-radius: 4px;
}

.media-placeholder {
    width: 100%;
    height: 300px;
    border-radius: 8px;
}

.action-placeholder {
    width: 80px;
    height: 24px;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.offline-container {
    padding: 20px;
}

.offline-message {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    background: #2c2c2c;
    border-radius: 8px;
}

.retry-btn {
    background: #1DA1F2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #1991db;
    transform: scale(1.05);
}

.form-non-field-errors {
    background-color: #ffebeb;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-left: 4px solid #dc3545;
}

.form-non-field-errors p.errorlist {
    margin: 5px 0;
    color: #dc3545;
}

/* Styles pour le popup d'authentification */
.auth-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    animation: fadeIn 0.3s ease;
}

.auth-popup-content {
    background-color: #1c1c1c;
    padding: 25px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid #333;
}

.auth-popup h3 {
    color: #e0e0e0;
    margin: 0 0 15px 0;
    font-size: 1.5em;
}

.auth-popup p {
    color: #b0b0b0;
    margin-bottom: 25px;
    line-height: 1.5;
}

.auth-popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.auth-popup-button {
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.auth-popup-button.login {
    background-color: #0095f6;
    color: white;
}

.auth-popup-button.login:hover {
    background-color: #0081d6;
}

.auth-popup-button.cancel {
    background-color: transparent;
    border: 1px solid #666;
    color: #e0e0e0;
}

.auth-popup-button.cancel:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   YOUTUBE-STYLE STICKY PLAYER SYSTEM
   ============================================ */

/* Container principal */
.posts-container.sticky-mode {
    padding-top: 45vh;
}

.posts-container {
}

/* Post actif (sticky en haut) */
.post-active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 45vh;
    z-index: 100;
    background: #0000003d;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    pointer-events: auto; /* Assurer que les interactions fonctionnent */
}

/* Le post actif reste fixe même quand on scroll */
.post-active {
    will-change: transform;
}

.post-active .post-media-container {
    flex: 1;
    width: 100%;
    min-height: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.post-active .post-media-container img,
.post-active .post-media-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* S'assurer que le container vidéo remplit tout l'espace */
.post-active .post-video-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-active .post-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Le carousel dans le post actif doit remplir tout l'espace */
.post-active .post-media-carousel {
    width: 100%;
    height: 100%;
    max-height: none;
}

.post-active .post-media-carousel .media-item {
    width: 100%;
    height: 100%;
}

.post-active .post-media-carousel .media-item img,
.post-active .post-media-carousel .media-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Masquer seulement certains éléments du post actif */
.post-active .post-header,
.post-active .post-caption,
.post-active .comments-section {
    display: none !important;
}

/* Garder visible les actions sur le post actif */
.post-active .post-actions,
.post-active .post-interactions {
    display: flex !important;
}

/* ========== TOP COMMENT PREVIEW ========== */

/* Caché sur tous les posts normaux, visible seulement sur post-active */
.top-comment-preview {
    display: none;
}

.post-active .top-comment-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1px 12px;
    background: rgba(0, 0, 0, 0.3);
    cursor: default;
    overflow: hidden;
}

.post-active .top-comment-preview:hover {
    background: rgba(255,255,255,0.1);
}

/* Avatar + nom de l'auteur du POST (fixe, à gauche) */
.top-comment-post-author {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.top-comment-post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.5);
}

.top-comment-post-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.top-comment-post-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.top-comment-post-followers {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    line-height: 1.2;
}

/* Zone de commentaire (au centre) */
.top-comment-box {
    flex: 1;
    background: #78787800;
    border-radius: 3px;
    padding: 1px 75px;
    min-width: 0;
}

.top-comment-header {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.top-comment-count {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    margin-left: 4px;
}

.top-comment-list {
    min-height: 32px;
}

.top-comment-item {
    display: flex;
    gap: 8px;
}

.top-comment-item-avatar {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.top-comment-item-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.top-comment-item-name {
    font-size: 11px;
    font-weight: 600;
    color: #ffffffbb;
    line-height: 1.2;
}

.top-comment-item-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.825);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== POST-ACTIONS STYLE POUR POST-ACTIVE ========== */
/* Layout horizontal: [S'abonner] [likes text] [coeur] [fleche] */
.post-active .post-actions {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 3px 12px;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
}

/* Masquer les icônes commentaire et partage, mais PAS le cœur */
.post-active .post-actions > .icon:not(.like-icon):not(:last-of-type) {
    display: none !important;
}

/* Masquer tous les spans sauf likes-text dans post-active */
.post-active .post-actions > span:not(.likes-text) {
    display: none !important;
}

/* Cacher le bouton follow dans les posts normaux */
.post-actions .follow-btn-post {
    display: none;
}

/* ========== POST-ACTIVE INFO (titre et période) ========== */
/* Cacher par défaut */
.post-active-info {
    display: none;
}

/* Visible uniquement en post-active */
.post-active .post-active-info {
    display: block;
    padding: 1px 12px;
    margin-bottom: 4px;
}

.post-active .post-active-caption {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 4px;
}

.post-active .post-active-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-align: left;
}

/* Cacher le pseudo-élément, utiliser le vrai bouton */
.post-active .post-actions::before {
    display: none !important;
}

/* Bouton S'abonner (Suvre) à gauche - visible uniquement en post-active */
.post-active .post-actions .follow-btn-post {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    order: 1;
    margin-right: auto;
}

.post-active .post-actions .follow-btn-post.following {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

/* Le texte des likes aligné à droite avant le cœur */
.post-active .post-actions .likes-text {
    flex: 0 0 auto;
    text-align: right;
    font-size: 0;
    color: #fff;
    order: 2;
    padding-right: 8px;
}

/* Espacement égal entre texte, cœur et flèche */
.post-active .post-actions {
    justify-content: flex-start !important;
    gap: 0;
}

.post-active .post-actions::before {
    margin-right: auto;
}

.post-active .post-actions .likes-text {
    margin-right: 8px;
}

.post-active .post-actions .like-icon {
    margin-right: 8px;
}

.post-active .post-actions .likes-text .like-count {
    font-size: 14px;
    font-weight: 500;
}

.post-active .post-actions .likes-text .like-count::after {
    content: " ont aimé";
}

/* Le vrai bouton cœur (cliquable) à droite du texte */
.post-active .post-actions .like-icon {
    display: block !important;
    order: 3;
    width: 24px;
    height: 24px;
    margin-left: 0;
}

/* La flèche de partage tout à droite */
.post-active .post-actions .icon:last-of-type {
    order: 4;
    width: 24px;
    height: 24px;
}

.post-active .post-actions .icon:last-of-type path {
    d: path("M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z");
}

/* Cacher TOUT les contrôles natifs des vidéos par défaut */
.post-video::-webkit-media-controls,
.post-video::-webkit-media-controls-enclosure,
.post-video::-webkit-media-controls-panel,
.post-video::-webkit-media-controls-play-button,
.post-video::-webkit-media-controls-volume-slider,
.post-video::-webkit-media-controls-mute-button,
.post-video::-webkit-media-controls-fullscreen-button,
.post-video::-webkit-media-controls-timeline,
.post-video::-webkit-media-controls-current-time-display,
.post-video::-webkit-media-controls-time-remaining-display {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Cacher TOUS les contrôles vidéo custom par défaut (partout) */
.video-controls,
.video-mute-btn,
.video-progress {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* File d'attente - style pour autoplay */
.posts-queue .post video {
    pointer-events: none;
}

/* Post actif - cacher TOUS les contrôles vidéo sauf notre nouvelle barre */
.post-active .video-controls,
.post-active .video-mute-btn,
.post-active .video-progress {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* File d'attente des posts (en dessous) */
.posts-queue {
    position: relative;
    z-index: 1;
    background: #12121200;
    min-height: 55vh;
}

.posts-queue .post {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Tous les posts ont une bordure en bas, sauf le post actif */
.post {
    border-bottom: 6px solid #344b5c00;
}

.post-active {
    border-bottom: none !important;
}

.posts-queue .post:hover {
    opacity: 0.9;
}

.posts-queue .post:active {
    transform: scale(0.98);
}

/* Posts dans la file d'attente - meme format que les posts normaux */
.posts-queue .post-media-container img,
.posts-queue .post-media-container video {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Posts texte dans la file d'attente - même format */
.posts-queue .post-media-container .post-text-content {
    aspect-ratio: 1 / 1;
    width: 100%;
    font-size: 14px;
    padding: 15px;
    margin: 0 auto;
}

/* Header caché en mode sticky */
body.sticky-active .header {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

body.sticky-active .content {
    padding-top: 0;
}

/* Indicateur de swipe */
.swipe-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    z-index: 101;
}

/* Animation de transition */
.post-switching {
    animation: postSwitch 0.3s ease;
}

@keyframes postSwitch {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bouton fermer le mode sticky */
.close-sticky-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 102;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(5px);
}

.close-sticky-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ============================================
   CONTRÔLES VIDÉO PERSONNALISÉS
   ============================================ */

.custom-video-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    display: none !important;
}

/* Afficher les contrôles uniquement sur le post actif */
.post-active .custom-video-controls {
    display: flex !important;
    opacity: 0;
    pointer-events: none;
}

.post-active .custom-video-controls.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Volume vertical (gauche) */
.volume-control {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.vol-label {
    font-size: 10px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.volume-slider-vertical {
    width: 6px;
    height: 80px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.volume-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75%;
    background: #fff;
    border-radius: 3px;
}

.vol-percent {
    font-size: 11px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Bouton Play/Pause (centre) */
.center-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5);
    border: 2px solid #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.center-play-btn:hover {
    background: rgba(0,0,0,0.7);
    transform: translate(-50%, -50%) scale(1.1);
}

.center-play-btn svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

/* Bouton Plein Écran avec format (droite) */
.fullscreen-format-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fullscreen-format-btn:hover {
    background: rgba(0,0,0,0.7);
}

.format-preview {
    width: 30px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 3px;
    background: rgba(255,255,255,0.2);
}

.fullscreen-format-btn span {
    font-size: 9px;
    color: #fff;
    text-align: center;
    line-height: 1.2;
}

/* Contrôles du bas */
.bottom-controls {
    position: absolute;
    bottom: 45px;
    left: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seek-btn {
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.seek-btn:hover {
    background: rgba(0,0,0,0.7);
}

.seek-btn svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.seek-btn span {
    position: absolute;
    bottom: 2px;
    font-size: 8px;
    color: #fff;
    font-weight: bold;
}

/* Barre de temps */
.time-bar-container {
    flex: 1;
    padding: 0 10px;
}

.time-bar {
    position: relative;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    display: flex;
    align-items: center;
}

.time-point {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    z-index: 2;
}

.time-point.start-point {
    left: 0;
}

.time-point.end-point {
    right: 0;
}

.time-progress {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: #4CAF50;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.time-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    left: 0%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.1s ease;
}

.time-handle:hover {
    transform: translateX(-50%) scale(1.2);
}

/* Titre et date */
.video-info {
    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 5px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-title:hover {
    color: #4CAF50;
}

.video-title.expanded {
    -webkit-line-clamp: unset;
    display: block;
    background: rgba(0,0,0,0.8);
    padding: 10px;
    border-radius: 8px;
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    z-index: 10;
}

.video-date {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.video-time-display {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    margin-left: 10px;
    float: right;
}

/* Barre de progression en bas */
.video-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Afficher la barre de progression quand les contrôles sont visibles */
.custom-video-controls.visible .video-progress-bar {
    opacity: 1;
}

.video-progress-bar .video-progress-filled {
    height: 100%;
    background: #4CAF50;
    width: 0%;
    transition: width 0.1s linear;
}

/* Responsive */
@media (max-width: 768px) {
    .post-active {
        height: 40vh;
    }
    
    .posts-container.sticky-mode {
        padding-top: 40vh;
    }
}

.phone-frame {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Overlay des interactions positionn� sous le post-media-container */
.post-interactions-overlay {
    position: relative;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    border-radius: 0 0 8px 8px;
    padding: 15px;
    margin-top: 0;
    max-height: 300px;
    overflow-y: auto;
    z-index: 20;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-interactions-overlay .overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.post-interactions-overlay .overlay-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.post-interactions-overlay .close-overlay {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-interactions-overlay .comment-item,
.post-interactions-overlay .like-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.post-interactions-overlay .comment-item img,
.post-interactions-overlay .like-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.post-interactions-overlay .comment-content {
    flex: 1;
}

.post-interactions-overlay .comment-username {
    font-weight: 600;
    font-size: 13px;
    color: #fff;
}

.post-interactions-overlay .comment-text {
    font-size: 13px;
    color: #ccc;
    margin: 2px 0 0 0;
}

/* Styles pour le post-interactions dans le flux normal */
.post > .post-interactions {
    position: relative;
    width: 100%;
    background-color: #1c1c1c;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
    max-height: 300px;
    overflow-y: auto;
    z-index: 20;
}

.post > .post-interactions .post-comments {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post > .post-interactions .comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #1c1c1c;
}

.post > .post-interactions .comments-header span {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.post > .post-interactions .close-comments {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post > .post-interactions .comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 15px;
    max-height: 200px;
}

.post > .post-interactions .comment-form {
    display: flex;
    gap: 10px;
    padding: 12px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #1c1c1c;
}

.post > .post-interactions .comment-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    color: #fff;
    font-size: 13px;
}

.post > .post-interactions .comment-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.post > .post-interactions .comment-submit {
    background: #0095f6;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
/* Post interactions overlay (comme dans le projet de reference) */
.post-interactions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 0;
    overflow-y: hidden;
    z-index: 10;
    display: none;
}

.post-interactions.active {
    display: block;
}

/* Structure des commentaires dans l'overlay */
.post-comments {
    display: none;
    height: 100%;
    flex-direction: column;
}

.post-comments .comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.8);
}

.post-comments .comments-header span {
    font-weight: 600;
    font-size: 16px;
}

.post-comments .close-comments {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-comments .comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 15px;
}

.post-comments .comment-input-container {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.8);
}

.post-comments .comment-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    color: #fff;
    font-size: 14px;
}

.post-comments .comment-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.post-comments .send-comment-btn {
    background: #0095f6;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* Style des commentaires */
.post-comments .comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.post-comments .comment-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.post-comments .comment-content {
    flex: 1;
}

.post-comments .comment-username {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.post-comments .comment-text {
    font-size: 14px;
    color: #ccc;
    margin: 4px 0 0 0;
    line-height: 1.4;
}

/**
 * Note : Dans ce fichier style.css, on utilise principalement plusieurs classes "container"
 * pour structurer la page et organiser les blocs principaux de l'interface. 
 * 
 * On retrouve des éléments comme :
 * - .content (containeur principal du contenu)
 * - .post (chaque post, qui agit comme un sous-conteneur)
 * - .post-header, .post-comments, etc. qui servent aussi de containeurs pour organiser différentes sections d'un post.
 * 
 * Globalement, il y a :
 * - 1 gros containeur principal (.content)
 * - Pour chaque post : 1 containeur .post + ses sous-containeurs (.post-header, .post-comments...)
 * 
 * Le nombre exact de containeurs utilisés dépendra donc du nombre de posts/commentaires affichés dynamiquement,
 * mais les structures de containeurs sont définies par ces classes CSS dans ce fichier.
 */
