.page-home {
    width: 100%;
    margin-top: 15px;
}

.page-home>form {
    font-weight: 600;
}
.page-home>form select {
    padding: 5px 10px;
    border-radius: 10px;
    border: solid #0001F0;
}
.dark-mode .page-home>form select {
    border-color: #0e0eae;
    background-color: transparent;
    color: #a6a6a6;
}
.page-home>form input {
    padding: 6px 10px;
    border-radius: 10px;
    border: solid #0001F0;
    background-color: #0001F0;
    color: white;
    transition: all .5s;
}
.dark-mode .page-home>form input {
    border-color: #0e0eae;
    background-color: #0e0eae;
    color: #a6a6a6;
}
.page-home>form input:hover {
    background-color: transparent;
    color: black;
    transition: all .5s;
}

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

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

.dark-mode .page-home ul li{
    background-color: #181818a9;
    box-shadow: 0px 0px 10px 4px rgba(13, 13, 13, 0.749);
}

.page-home ul li .profil {
    display: flex;
    justify-content: space-between;
    padding: 20px 20px;
    gap: 10px;
    color: black;
}

.page-home ul li .profil a {
    display: flex;
}

.page-home ul li .profil a .pfp {
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pfp img, .comm-pfp img{
    width: 70px;
    height: 70px;
    border-radius: 100px;
    object-fit: cover;
}

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

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

.page-home ul li .profil .cat {
    width: 20px; 
    height: 20px;
    border-radius: 50%;
}
.page-home ul li .profil .cat a {
    display: block; 
    width: 20px; 
    height: 20px;
}

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

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

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

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

.dark-mode .page-home ul li .contenu {
    margin: 0 10px;
    padding: 15px 10px;
    border-top-color: #0e0eae;
    border-bottom-color: #0e0eae;
}

.page-home ul li .contenu a p {
    margin: 0;
    padding: 0;
}

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

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

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

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

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

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

.dark-mode .page-home ul li .action form button i{
    color: #0e0eae;
}

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

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


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

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

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

.page-home ul li .action div a {
    display: flex;
}

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

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


.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;
}

.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;
    }
}

.top-comment a {
    display: flex;
    justify-items: center;
    padding: 10px 25px 15px 40px;
}
.top-comment a img {
    width: 35px; 
    height:35px; 
    object-fit: cover; 
    border-radius:50%;
}
.top-comment a span {
    margin-left: 15px;
    align-self: center;
}


@media (min-width: 769px) {
    .page-home ul li .action {
        flex-direction: row;
        gap: 0;
    }
    .page-home ul li .action form {
        width: 65%;
    }
    .page-home ul li .action div {
        width: 35%;
    }
}

/* Popup pour inciter à poster */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.dark-mode .popup-overlay {
    background-color: rgba(0, 0, 0, 0.8);
}

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

.popup-content {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.dark-mode .popup-content {
    background-color: #1e1e1e;
    color: white;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: transform 0.2s ease;
}

.dark-mode .popup-close {
    color: white;
}

.popup-close:hover {
    transform: scale(1.2);
}

.popup-body {
    text-align: center;
}

.popup-body h2 {
    color: #0001F0;
    margin-bottom: 15px;
    font-size: 28px;
}

.dark-mode .popup-body h2 {
    color: #6060ff;
}

.popup-body p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

.dark-mode .popup-body p {
    color: #ccc;
}

.popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #0001F0;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 1, 240, 0.3);
}

.dark-mode .popup-btn {
    background-color: #6060ff;
    box-shadow: 0 4px 15px rgba(96, 96, 255, 0.3);
}

.popup-btn:hover {
    background-color: #0000cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 1, 240, 0.4);
}

.dark-mode .popup-btn:hover {
    background-color: #5050dd;
    box-shadow: 0 6px 20px rgba(96, 96, 255, 0.4);
}

.popup-btn i {
    font-size: 18px;
}

.vide {
    text-align: center;
}
.dark-mode .vide {
    color: #a6a6a6;
}