/**************** PAGE PROFIL ******************/

.page-profil-top {
    height: 100%;
    width: 100%;
    padding-bottom: 20px;
    position: relative;
    border-bottom: solid 2px #0001F0;
}
.dark-mode .page-profil-top {
    border-bottom-color: #0e0eae;
}

.page-profil-top>a {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 20px;
}

.page-profil-top>img {
    width: 150px; 
    height: 150px; 
    object-fit: cover; 
    border-radius: 50%;
}

.dark-mode .page-profil-top>img{
    border: 2px solid #a6a6a6;
}

.page-profil-top .profil div {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
}

.page-profil-top .noms-user {
    padding: 10px 15px;
}
.page-profil-top .noms-user p {
    margin: 0;
    padding: 0;
    font-size: 20px;
}
.dark-mode .page-profil-top .noms-user p {
    color: #a6a6a6;
}

.page-profil-bottom ul li .profil .user p.username{
    color: #0001F0;
    font-weight: 600;
}

.dark-mode .page-profil-bottom ul li .profil .user p.username{
    color: #0e0eae;
}

.page-profil-top .noms-user p:nth-child(1) {
    font-size: 32px;
}
.page-profil-top .noms-user p:nth-child(2) {
    font-style: italic;
}

.page-profil-top span {
    padding: 10px;
    cursor: pointer;
}
.dark-mode .page-profil-top span {
    color: #a6a6a6;
}

.page-profil-top .ajouter-modifier button {
    margin-top: 10px;
    padding: 10px;
    border: none;
    border-radius: 30px;
    background-color: #0001F0;
    font-size: 14px;
    border: none;
}
.dark-mode .page-profil-top .ajouter-modifier button {
    background-color: #0e0eae;
}

.page-profil-top .ajouter-modifier button a {
    color: white;
}
.dark-mode .page-profil-top .ajouter-modifier button a {
    color: #a6a6a6;
}

.page-profil-top .ajouter-modifier form input {
    padding: 10px 20px;
    border-radius: 30px;
    background-color: #0001F0;
    color: white;
    border: none;
    font-size: 18px;
    color: white;
}
.dark-mode .page-profil-top .ajouter-modifier form input {
    background-color: #0e0eae;
}

/**************** PAGE MODIFIER PROFIL ******************/

.page-modif-profil {
    width: 100%;
    height: 75vh;
    margin-bottom: 170px;
}

.page-modif-profil form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 25px;
}

.page-modif-profil form label {
    width: 100%;
}
.dark-mode .page-modif-profil form label {
    color: #a6a6a6;
}

.page-modif-profil form .titre {
    font-size: 30px;
    font-weight: 600;
    text-align: center;
}

.page-modif-profil form>input {
    margin: 8px 8px 20px 8px;
    width: 100%;
    padding: 10px;
    background-color: transparent;
    border: none;
    border-bottom: solid 2px #0001F0;
    color: black;
}
.dark-mode .page-modif-profil form>input {
    border-bottom-color: #0e0eae;
    color: #a6a6a6;
}

.page-modif-profil form>input:focus {
    outline: none;
}

.page-modif-profil form .modif {
    background-color: #0001F0;
    color: white;
    height: 10%;
    padding: 10px;
    border-radius: 20px;
    width: 30%;
    margin-left: auto;
    transition: all .5s;
}
.dark-mode .page-modif-profil form .modif {
    background-color: #0e0eae;
    color: #a6a6a6;
}
.page-modif-profil form .modif:hover {
    border: solid 2px #0001F0;
    background-color: #fAFAFA;
    color: #0001F0;
    transition: all .5s;
}
.dark-mode .page-modif-profil form .modif:hover {
    border-color: #0e0eae;
    background-color: #101010;
    color: #0e0eae;
}

/********** PFP **********/

.page-modif-profil form .pfp {
    width: 100%;
    height: 120px;
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
}
.page-modif-profil form .pfp .profil {
    width: 120px; 
    height: 120px; 
}
.page-modif-profil form .pfp .profil div {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 120px; 
    height: 120px; 
    border-radius: 50%; 
    font-size: 32px;
}
.page-modif-profil form .pfp .profil img {
    width: 120px; 
    height: 120px; 
    object-fit: cover; 
    border-radius: 50%;
}
.page-modif-profil form .pfp .profil img:nth-child(2) {
    position: relative;
    top: -120px;
    z-index: 1;
}
.page-modif-profil form .pfp input {
    width: 120px;
    height: 120px;
    z-index: 2;
    position: relative;
    top: -120px;
    left: 0px;
}
.page-modif-profil form .pfp input[type="file"]::-webkit-file-upload-button {
    visibility: hidden;
}
.page-modif-profil form .pfp input[type="file"] {
    color: transparent;
    position: relative;
}

/********** AMIS **********/

#abonnements {
    display: none;
    background-color: #ddddeaff;
    box-shadow: 0px 0px 10px 4px rgba(137,137,137,0.35);
    width: 90vw;
    height: 67vh;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    padding: 30px;
    border-radius: 15px;
}

.dark-mode #abonnements{
    background-color: #101010;
    color: #a6a6a6;
    box-shadow: 0px 0px 19px 4px rgba(96, 96, 96, 0.2);
}

#abonnements div {
    display: flex;
    justify-content: space-between;
}
#abonnements div i {
    font-size: 26px;
    cursor: pointer;
}
#abonnements div h4 {
    font-size: 18px;
}
#abonnements ul {
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
#abonnements ul li {
    padding: 0 30px 15px 30px;
    border-bottom: solid 2px #0001F0;
}
.dark-mode #abonnements ul li {
    border-bottom-color: #0e0eae;
}

/********** POSTS **********/

.page-profil-bottom {
    padding-top: 20px;
    width: 100%;
}

.page-profil-bottom ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
}

.page-profil-bottom ul li {
    background-color: rgba(233, 233, 233, 0.4);
    box-shadow: 0px 0px 10px 4px rgba(137,137,137,0.35);
    margin: 10px 0;
    border-radius: 10px;
}

.dark-mode .page-profil-bottom ul li{
    background-color: rgba(36, 36, 36, 0.4);
    box-shadow: 0px 0px 19px 4px rgba(96, 96, 96, 0.2);
}

.page-profil-bottom ul li .profil {
    display: flex;
    justify-content: space-between;
    padding: 20px 20px;
    gap: 10px;
    color: black;
}
.dark-mode .page-profil-bottom ul li .profil {
    color: #a6a6a6;
}

.page-profil-bottom ul li .profil a {
    display: flex;
    color: black;
}
.dark-mode .page-profil-bottom ul li .profil a {
    color: #a6a6a6;
}

.page-profil-bottom ul li .profil a .pfp {
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
}
.dark-mode .page-profil-bottom ul li .profil a .pfp {
    color: #a6a6a6;
}

.pfp img, .comm-pfp img{
    width: 70px;
    height: 70px;
    border-radius: 100px;
    object-fit: cover;
}
.dark-mode .pfp img, .dark-mode .comm-pfp img{
    border: 1px solid #a6a6a6;
}

.pfp .initials {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    border-radius: 100px;
    font-size: 30px;
}

.page-profil-bottom ul li .profil a .user {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-left: 20px;
    color: black;
}

.dark-mode .page-profil-bottom ul li .profil a .user {
    color: #a6a6a6;
}

.page-profil-bottom ul li .profil .user p.username{
    color: #0001F0;
    font-weight: 600;
}
.dark-mode .page-profil-bottom ul li .profil .user p.username{
    color: #0e0eae;
}

.page-profil-bottom ul li .profil .cat {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}
.page-profil-bottom ul li .profil form button {
    color: #f44336;
    background-color: transparent;
    border: none;
}
.page-profil-bottom ul li .profil form button i {
    font-size: 18px;
}
.page-profil-bottom ul li .profil .cat a {
    display: block; 
    width: 20px; 
    height: 20px;
    border-radius: 50%;
}

.page-profil-bottom ul li .profil .user p {
    margin: 0;
    padding: 0;
}

.page-profil-bottom ul li .contenu {
    margin: 0 10px;
    padding: 15px 10px;
    border-top: solid 1px #0001F0;
    border-bottom: solid 1px #0001F0;
}

.dark-mode .page-profil-bottom ul li .contenu {
    border-top: solid 1px #0e0eae;
    border-bottom: solid 1px #0e0eae;
}

.page-profil-bottom ul li .contenu a p {
    margin: 0;
    padding: 0;
    color: black;
}

.dark-mode .page-profil-bottom ul li .contenu a p {
    color: #a6a6a6;
}

.page-profil-bottom ul li .contenu a media {
    margin: 0;
    padding: 0;
}

.page-profil-bottom ul li .action {
    padding: 10px;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.page-profil-bottom ul li .action form {
    width: 100%;
    height: 30px;
    position: relative;
    margin: 0;
}

.page-profil-bottom ul li .action form input {
    width: 100%;
    height: 100%;
    border-radius: 100px;
    background-color: transparent;
    color: black;
    border: solid 1px #0001F0;
    padding: 7px 12px;
}

.dark-mode .page-profil-bottom ul li .action form input{
    border-color: #0e0eae;
    color: #a6a6a6;
}

.page-profil-bottom ul li .action form button {
    background-color: transparent;
    border: none;
    position: absolute;
    right: 8px;
    top: 20%;
}
.page-profil-bottom ul li .action form button i {
    color: #0001F0;
    font-size: 16px;
}

.dark-mode .page-profil-bottom ul li .action form button i {
    color: #a6a6a6;
}

.page-profil-bottom ul li .action form input::placeholder {
    color: grey;
}

.page-profil-bottom ul li .action form input:focus {
    outline: solid grey 1px;
}


.page-profil-bottom ul li .action div {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    height: 30px;
}

.page-profil-bottom ul li .action span {
    margin: 0 10px 0 0;
    width: 20px;
    text-align: center;
}

.page-profil-bottom ul li .action div button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    background-color: transparent;
    border: none;
    color: black;
    cursor: pointer;
    padding: 0;
    margin: 0;
}
.dark-mode .page-profil-bottom ul li .action div button {
    color: #a6a6a6;
}

.page-profil-bottom ul li .action div a {
    display: flex;
    color: black;
}
.dark-mode .page-profil-bottom ul li .action div a {
    color: #a6a6a6;
}

.page-profil-bottom ul li .action div button i {
    font-size: 20px;
    transform-origin: center;
}

.action div .btn-like i {
    color: #000 !important;
    transition: all .3s ease;
}
.dark-mode .action div .btn-like i {
    color: #a6a6a6 !important;
}

.action div .btn-like.liked i {
    color: #4CAF50 !important;
    transition: all .3s ease;
}

.action div .btn-dislike i {
    color: #000 !important;
    transition: all .3s ease;
}
.dark-mode .action div .btn-dislike i {
    color: #a6a6a6 !important;
}

.action div .btn-dislike.disliked i {
    color: #f44336 !important;
    transition: all .3s ease;
}

.dark-mode .action div i, .dark-mode .action span {
    color: #a6a6a6 !important;
}

.anim-like {
    animation: like .5s ease;
}

@keyframes like {
    0% {
        font-size: 25px;
    }
    50% {
        font-size: 30px;
    }
    100% {
        font-size: 25px;
    }
}


@media (min-width: 769px) {
    .page-profil-bottom ul li .action {
        flex-direction: row;
        gap: 0;
    }
    .page-profil-bottom ul li .action form {
        width: 65%;
    }
    .page-profil-bottom ul li .action div {
        width: 35%;
    }
    #abonnements div h4 {
        font-size: 22px;
    }
}

@media (min-width: 1025px) {
    #abonnements {
        width: 55vw;
    }
}