

select {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 30%;
    box-sizing: border-box;
    font-size: 16px;
}



.publish-toggle {
    position: absolute;
    bottom: 15px;
    /* 15px du bas du formulaire */
    right: 15px;
    /* 15px de la droite */
    background-color: #eceeef;
    color: #000;
    border: solid 2px black;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 9;
    transform-origin: center;
}

.publish-toggle:hover {
    background-color: black;
    color: white;
    animation: pulseEffect 1s ;


}

@keyframes pulseEffect {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    40% {
        transform: scale(1.15);
        filter: brightness(1.1);
    }

    60% {
        transform: scale(1.15);
        filter: brightness(1.1);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.publication {
    border: solid 3px #0c6b5b;
    position: relative;
}

.separator {
    height: 0.5px;
    background-color: black;
    margin: 10px 0;
}

.genre-design {
    background-color: black;
    color: white;
    padding: 5px 10px;

    border-radius: 30px;
    display: inline-block;

    font-size: 14px;
    font-weight: lighter;

}

.genre {
    height: auto;
    background-color: transparent;
    color: #fff;
}

.genre-design:hover {
    background-color: #0c6b5b;
    color: white;

}

.privacy-select {
    width: auto;
    /* ou un pourcentage fixe */
    max-width: 150px;
    /* largeur maximale souhaitée */
    min-width: 80px;
    /* largeur minimale si tu veux */
    display: inline-block;
    border: transparent;
}

.privacy {
    display: inline-flex;
    /* aligne le select et l'icône */
    align-items: center;
    /* centrer verticalement */
    gap: 4px;

    /* espace entre select et icône */
}

.publication-header .privacy .privacy {
    position: absolute;
    top: 0;
    right: 0px;
    margin: 5px;
    padding: 5px;
    display: inline-flex;

    /* pousse à droite */
    /* supprime float:right car inutile */
}

.privacy-select-publish {
    width: auto;
    /* ou un pourcentage fixe */
    max-width: 150px;
    /* largeur maximale souhaitée */
    min-width: 80px;
    /* largeur minimale si tu veux */
    display: inline-block;

}

.plateform-tooltip {
    display: inline-block;
    position: relative;
    cursor: pointer;
    color: #555;
    font-size: 1.2rem;
    margin-left: 6px;
}

/* Le tooltip est caché par défaut */
.tooltip {
    display: none;
    position: absolute;
    top: 65%;
    /* en dessous de l’icône */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: opacity 0.2s ease;
    opacity: 0;
}

/* Petite flèche du tooltip */
.tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    /* pointe vers l’icône */
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}

/* Affichage du tooltip quand on survole l’icône */
.plateform-tooltip:hover+.tooltip {
    display: block;
    opacity: 1;
}






@keyframes bounceBack {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

/* Conteneur de l’icône avec tooltip */
.privacy-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Message caché par défaut */
.privacy-tooltip .tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    max-width: 220px;
    background-color: #333;
    color: #fff;
    text-align: left;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.2;
    position: absolute;
    bottom: 125%;
    /* au-dessus de l’icône */
    left: 50%;
    transform: translateX(-50%);
    white-space: normal;
    transition: opacity 0.2s ease-in-out;
    z-index: 10;
}

/* Petite flèche en bas */
.privacy-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Affichage au hover */
.privacy-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.organizer {
    width: 100%;
    display: flex;
    /* active le mode flex */
    justify-content: space-between;
    /* espace égal entre les boutons */
    text-align: center;
    margin-bottom: 20px;
    position: sticky;
    top: 100px;
    z-index: 11;
    border: solid 5px white;
    background-color: white;
}

.organizer button {
    flex: 1;
    /* chaque bouton prend un tiers */
    background-color: #eceeef;
    border: none;
    padding: 10px 0;
    /* padding vertical, horizontal géré par flex */
    margin: 0 5px;
    /* petit espace entre les boutons */
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.organizer button:hover {
    background-color: #0c6b5b;
    color: white;
    transform: scale(1.05);
}

/* Optionnel : enlever la marge à gauche et à droite du premier et dernier bouton */
.organizer button:first-child {
    margin-left: 0;
}

.organizer button:last-child {
    margin-right: 0;
}

.load-more {
    border: solid 1px black;
    border-radius: 50px;
    padding: 10px 10px;
    background-color: transparent;
}




.details {
    margin-left: 20px;
    color: whitesmoke;
    font-size: small;
    margin-top: 10px;
    margin-bottom: 5px;
    padding: 10px;
}




.alert-success {
    position: fixed;
    bottom: 20px;
    right: 20px;

    background-color: rgb(255, 255, 255);
    color: rgb(27, 33, 29);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #155724;

    z-index: 1000;

    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    text-align: left;
    font-weight: 200;
    opacity: 1;
    transition: opacity 0.5s ease;
    animation: wobble 1.5s ease;
    transition: opacity 0.5s ease;

}

@keyframes wobble {

    0%,
    100% {
        transform: translateX(0);
    }

    15% {
        transform: translateX(-25px) rotate(-5deg);
    }

    30% {
        transform: translateX(20px) rotate(3deg);
    }

    45% {
        transform: translateX(-15px) rotate(-3deg);
    }

    60% {
        transform: translateX(10px) rotate(2deg);
    }

    75% {
        transform: translateX(-5px) rotate(-1deg);
    }
}




.alert-success.hide {
    opacity: 0;
}

.alert-success.show {
    opacity: 1;
}

.publish-form-button {
    position: relative;
    /* nécessaire pour que le bouton soit positionné par rapport à ce conteneur */
    width: 100%;
    height: 50px;
    margin-bottom: 20px;
    /* prend toute la hauteur de la page */
}

/* Bouton centré */
.add-post-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: #0c6b5b;
    color: white;
    font-size: 36px;
    /* icône agrandie */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.add-post-btn:hover {

    background-color: #6c63ff;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 rgba(12, 107, 91, 0.7);
    }

    70% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 10px rgba(12, 107, 91, 0.7);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 rgba(12, 107, 91, 0.7);
    }

}





.iframe-preview {
    display: none;
    margin-top: 10px;
    width: 100%;
    /* prend toute la largeur du parent */
    max-width: 100%;
    /* limite au conteneur */
    position: relative;
    padding-bottom: 56.25%;
    /* ratio 16:9 par défaut */
    height: 0;
    overflow: hidden;
}

/* iframe YouTube / vidéo */
.iframe-preview iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* s’adapte au conteneur */
    height: 100%;
    border: none;
}

.modifierApropos {
    position: absolute;
    left: 50%;
    top: 85%;
    /* ajuste la hauteur (plus petit = plus haut) */
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 10px;

    color: black;
    border: none;
    cursor: pointer;
}
@media screen and (max-width: 700px) {
    .modifierApropos {
        left: 70%;

        
        /* ajuste la hauteur pour les petits écrans */
    }
    
}

.logo-menu {
    position: absolute;
    left: 50%;
    top: 50%;
    /* place le point de référence plus bas */
    transform: translate(-50%, -50%);
    /* garde le centre du logo sur le point défini */
    display: flex;
    justify-content: center;
    align-items: center;

}

.logo-menu img {
    height: 40px;
    /* ajuste selon ton besoin */
    width: auto;

}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}


/* Permet de positionner des éléments enfants absolument par rapport au formulaire */









.upload-btn {
    margin-top: 10px;
    padding: 10px 10px;
    border: solid 1px rgb(22, 46, 136);
    color: black;

    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-photo {
    margin-top: 20px;
    display: none;
    /* Masqué par défaut */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: whitesmoke;
    padding: 20px;
    color: black;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 10px;
    width: 500px;
    text-align: center;
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(244, 242, 242, 0.6);
    /* fond semi-transparent */
    color: black;
    font-size: 18px;
    text-align: center;
    justify-content: center;

    line-height: 150px;
    opacity: 0;
    border-radius: 50%;
    /* invisible par défaut */
    transition: opacity 0.3s ease;
    width: 150px;
    height: 150px;
}

.profile-profile-picture {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.profile-profile-picture:hover .overlay-text {
    opacity: 1;
    /* rendre le texte visible au survol */
}

.more-details {
    margin-left: 20px;
    color: black;
    font-size: small;
    margin-top: 10px;
    margin-bottom: 5px;
    padding: 10px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;

    /* Masqué par défaut */
}

.more-details.show {
    max-height: 500px;
    /* Ajustez cette valeur selon le contenu */
    opacity: 1;
    overflow: visible;
}


.modifierApropos-container {
    margin-left: 20px;
    color: black;
    font-size: small;
    margin-top: 10px;
    margin-bottom: 5px;
    padding: 10px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;

}

.modifierApropos-container.show {
    max-height: 800px;
    /* Ajustez cette valeur selon le contenu */
    opacity: 1;
    overflow: visible;
}

.modifierApropos-container form input {
    display: block;
    margin-bottom: 10px;
    padding: 8px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.annulerModifierApropos {
    display: none;
    /* Masqué par défaut */
}

.profile-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.9em;


}

.publication-actions {
    justify-content: baseline;
    /* centre les boutons horizontalement */
    gap: 20px;
    /* espace entre les boutons */
    flex-wrap: wrap;

}

.publication-actions button {
    padding: 10px 20px;
    border: transparent;
    border-radius: 8px;

    cursor: pointer;

    text-align: center;
    transition: background-color 0.2s;
}





@keyframes pulseEffect {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0.7);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0.7);
    }
}


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

}

.like-button:hover {
    color: #333;
    transform: scale(1.1);
}





.comment-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    padding: 5px 0;
    font-size: 1em;
    transition: transform 0.2s ease, color 0.2s ease;

}




.comment-toggle:hover {
    color: #333;
    transform: scale(1.1);
}

.comment-toggle.show {
    display: block;
    animation: bounceIn 0.5s;
    position: relative;
    float: right;

}


@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.fa-solid {
    animation: bounceIn 0.5s;
}

.iframe-wrapper {
    width: 100%;

    /* largeur max pour desktop */
    margin: 20px 0;
    position: relative;
}

.iframe-wrapper iframe {
    width: 100%;
    border: none;
    border-radius: 12px;
}