/* =========================================
   STYLE SPÉCIFIQUE : ÉTAPE 1 (INSTAGRAM)
   ========================================= */

#step1-insta {
    padding: 0 0 60px 0; /* Padding bottom pour la nav fixée */
    gap: 0;
    background-color: #000000;
    color: #ffffff;
    justify-content: flex-start;
}

/* =========================================
   EN-TÊTE
   ========================================= */
.insta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #262626;
    width: 100%;
}

.insta-header h1 {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    color: white;
}

.icon-btn {
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;

    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

/* =========================================
   POST
   ========================================= */
.post-container {
    flex-grow: 1;
    width: 100%;
}

.post-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
}

.profile-pic {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%; /* Rend l'image ronde */
    object-fit: cover;  /* Évite que l'image soit étirée/écrasée */
    background-color: #363636;
}

.username {
    font-weight: 600;
    font-size: 14px;
    margin-left: 0px;
    color: #ffffff;
}

.post-header .username {
    margin-left: 7px;
}


.post-options {
    margin-left: auto;
}

/* Le carré blanc */
.post-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #ffffff;
}

/* =========================================
   ACTIONS SOUS LE POST
   ========================================= */
.post-actions {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
}

.actions-left {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* =========================================
   DÉTAILS (Description, compteurs)
   ========================================= */


.post-details p {
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
    color: #afafaf;
}

.text-muted {
    color: #cacaca;
}

.post-date {
    font-size: 12px;
    color: #cacaca;
    margin-top: 4px;
}

/* =========================================
   BARRE DE NAVIGATION (BOTTOM)
   ========================================= */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #262626;
    width: 100%;
    max-width: 450px;
    background-color: #000000;
    position: fixed;
    bottom: 0;
    z-index: 1000;
}

.bottom-nav .profile-pic {
    width: 24px;
    height: 24px;
    margin: 0;
}

.hidden {
    display: none !important;
}
#déroulé_com{
    color: white;
    font-weight : 550;
}


.not-circle{
    color: #4b5563 !important;
}





/* =========================================
   ESPACEMENT DESCRIPTION ET COMMENTAIRES
   ========================================= */
.post-details {
    padding: 0 16px 20px 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px; /* Donne de l'air entre les likes, la desc et la liste */
}

.likes {
    font-weight: 600;
    font-size: 14px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px; /* Espace entre chaque commentaire */
    margin: 4px;

}

.comment-block p {
    font-size: 14px;
    line-height: 1.4;
}

.comment-meta {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    font-size: 12px;
}

.btn-reply {
    color: #a8a8a8;
    font-weight: 600;
    cursor: pointer;
}

/* Style si le bouton répondre est actif/sélectionné */
.active-reply {
    color: #ffffff;
}

/* =========================================
   BARRE DE RÉPONSE ACTIVE (Tout en bas)
   ========================================= */
.reply-input-bar {
    width: 100%;
    background-color: #000000;
    border-top: 1px solid #262626;
    display: flex;
    flex-direction: column;

}

/* Bandeau indicateur "En réponse à..." */
.reply-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background-color: #121212;
    font-size: 12px;
}

.cancel-reply {
    color: #a8a8a8;
    cursor: pointer;
    font-size: 14px;
}

/* La ligne d'input */
.input-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    width: 100%;
}

.small-pic {
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
}

.reply-input-bar input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    outline: none;
    font-size: 14px;
    margin: 0 12px;
}

.reply-input-bar input::placeholder {
    color: #8e8e8e;
}

.btn-publish {
    color: #0095f6;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}


/* =========================================
   GESTION DES RÉPONSES IMBRIQUÉES
   ========================================= */
.comment-reply-block {
    display: flex;
    gap: 10px;
    padding-left: 42px; /* Crée le décalage vers la droite sous ton post */
    margin-top: -6px;   /* Rapproche la réponse de ton commentaire */
}

.comment-reply-block .comment-content {
    display: flex;
    flex-direction: column;
}

/* Petite photo de profil spécifique pour les réponses */
.xs-pic {
    width: 24px !important;
    height: 24px !important;
    margin-right: 0 !important;
    background-color: #363636;
}

.no-margin{
    color: #333333;
}

/* typing indicator dots animation */
.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #262626;
    padding: 8px 12px;
    border-radius: 18px;
    width: fit-content;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #a8a8a8;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* =========================================
   ANIMATIONS ET NOTIFICATIONS
   ========================================= */

.message-icon {
    position: relative;
    transition: transform 0.3s ease;
}

.message-icon.animate-shake {
    animation: shake-highlight 2s cubic-bezier(.36,.07,.19,.97) both ;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes shake-highlight {
    0%, 100% { transform: scale(1) rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: scale(1.2) rotate(-5deg); }
    20%, 40%, 60%, 80% { transform: scale(1.2) rotate(5deg); }
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff3b30;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid black;
}