*,
*::before,
*::after {
    box-sizing: border-box;
}

.sr-only {
    border: 0 !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
}

.sr-only-focusable:focus,
.sr-only-focusable:active {
    clip: auto !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
    height: auto !important;
    margin: auto !important;
    overflow: visible !important;
    width: auto !important;
    white-space: normal !important;
}

a.evitement {
    display: inline-block;
    color: #555;
    background: #fff;
    padding: .5em;
    position: absolute;
    left: -99999rem;
    z-index: 100;
}

a.evitement:focus {
    left: 0;
}

:root{
    --inter: "Inter", serif;
    --blue: #2D2D80;
    --light-gray: #f8f8f8;
}

body{
    margin: 0;
    font-family: var(--inter);
    min-width: 330px;
    background-color: #EBEBEB;
}

.desktop{
    display: none;
}

/* Login et inscription */

.login-page, .inscri-page{
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container, .inscri-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    max-width: 500px;
}

.login-logo, .inscri-logo{
    width: 65%;
    text-align: center;
}

.login-title, .inscri-title{
    text-align: center;
    font-size: 3.5rem;
    line-height: 2rem;
    margin-bottom: 20px;
}

.login-title-sup, .inscri-title-sup{
    font-size: 1.5rem;
    font-weight: 400;
}

.login-form, .inscri-form{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-input, .inscri-input{
    width: 80%;
    border-radius: 5px;
    margin-bottom: 10px;
}

.login-input-mandatory, .inscri-input-mandatory{
    color: var(--blue);
}

.login-input input, .inscri-input input,.inscri-input select{
    width: 100%;
    height: 40px;
    padding: 10px;
    border: 1px solid black;
    border-radius: 5px;
    margin-bottom: 10px;
}

.login-input-wrapper, .inscri-input-wrapper{
    position: relative;
    display: inline-block;
    width: 100%;
}

.login-input-wrapper button, .inscri-input-wrapper button{
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    border: none;
    background-color: white;
    cursor: pointer;
    width: 20px;
    height: 20px;
    margin: 10px;
    padding: 0;
}

.login-mdp-hider, .inscri-mdp-hider{
    background-size: contain;
    background-repeat: no-repeat;
}

.login-mdp-hider.untoggled, .inscri-mdp-hider.untoggled{
    background-image: url('images/svg/untoggled.svg');
}

.login-mdp-hider.toggled, .inscri-mdp-hider.toggled{
    background-image: url('images/svg/toggled.svg');
}

.login-erreur, .inscri-erreur{
    color: red;
    font-size: 0.8rem;
    margin-top: 0;
}

.login-extra{
    display: flex;
    width: 80%;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.login-extra-remember{
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-extra input[type="checkbox"]{
    cursor: pointer;
    height: 1rem;
    width: 1rem;
    margin: 0;
}

.login-extra input[type="checkbox"]:checked {
    background-color: red;
}

.login-extra a{
    color: #001D6C;
    font-weight: 500;
}

.login-submit, .inscri-submit{
    width: 80%;
    background-color: var(--blue);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 16px 12px;
    cursor: pointer;
    font-size: 1rem;
}

.inscri-page input[type="file"]{
    background-color: white;
}

.inscri-compte, .login-compte{
    text-align: center;
}

.inscri-compte a, .login-compte a{
    color: black;
}

/* Navbar */

.navbar-container{
    padding: 7px;
    background-color: #EBEBEB;
}

.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--blue);
    color: white;
    width: 100%;
    border-radius: 4px;
    padding: 7px;
}

.navbar-identity{
    display: flex;
    gap: 15px;
}

.navbar-photo{
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.navbar-name{
    font-weight: bold;
    font-size: 0.8rem;
    margin: 0;
    margin-top: 10px;
}

.navbar-togglemenu{
    background-color: transparent;
    border: none;
    cursor: pointer;
    background-image: url('images/svg/navbar-toggle.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 30px;
    height: 20px;
}

.navbar-menu-container.hidden{
    display: none;
}

.navbar-menu-container{
    background-color: #00000080;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: flex-end;
    z-index: 100;
}

.navbar-menu.hidden{
    display: none;
}

.navbar-menu{
    height: 100vh;
    width: 180px;
    background-color: var(--light-gray);
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
    animation: slideIn 0.3s ease-out forwards;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.navbar-menu a{
    color: var(--blue);
    text-decoration: none;
}

.navbar-menu-links-item{
    margin-bottom: 12px;
}

.navbar-menu-logout a{
    color: red;
    font-weight: bold;
}


/* Accueil */

.apps-container{
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color:  #EBEBEB;
}

.app-title{
    margin: 0;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--blue);
    font-weight: 600;
}

.app-title a{
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.app-container{
    background-color: var(--light-gray);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

    /* Emploi du temps */

    .hour-groups{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hour-group{
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .class-time{
        margin: 0;
        font-weight: 600;
        font-size: .75rem;
        width: 40px;
    }

    .class p{
        margin: 0;
        font-size: .75rem;
        text-align: left;
    }

    .class p:first-child{
        margin-bottom: 5px;
    }

    .class-container{
        padding: 5px;
        border-radius: 5px;
        background-color: #dadada;
        width: 280px;
    }


    /* Dernières ressources consultées */

    .lastressources-list{
        padding: 0;
        margin: 0;
        list-style: none;
        width: 300px;
    }

    .lastressources-list li{
        margin-bottom: 5px;
    }

    .lastressources-list a{
        color: black;
    }

    /* Messages */

    .message-pfp{
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    .lastmessages-list{
        padding: 0;
        margin: 0;
        list-style: none;
        width: 300px;
    }

    .lastmessages-list li{
        padding: 5px;
        border-radius: 5px;
        background-color: #C1C1C1;
        margin-bottom: 10px;
    }

    .lastmessages-list li a{
        display: flex;
        gap: 10px;
        align-items: center;
        color: black;
        text-decoration: none;
    }

    .lastmessages-list-item{
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: start;
    }

    .lastmessages-list-item p{
        text-align: left;
    }

    .lastmessages-list-item p {
        margin: 0;
    }

    .lastmessages-list-item-sender{
        font-weight: 600;
    }

    /* Derniers posts */

    .lastposts-list{
        padding: 0;
        margin: 0;
        list-style: none;
        width: 300px;
    }

    .lastposts-list li{
        display: flex;
        flex-direction: column;
        align-items: start;
        padding: 5px;
        border-radius: 5px;
        background-color: #C1C1C1;
        margin-bottom: 10px;
    }

    .lastposts-list li a{
        color: black;
        text-decoration: none;
        font-weight: 600;
    }

    /* Dernieres notes */

    .lastnotes-list{
        padding: 0;
        margin: 0;
        list-style: none;
        width: 300px;
    }

    .lastnotes-list li{
        display: flex;
        justify-content: space-between;
        margin-bottom: 5px;
    }

    /* Absences */

    .lastabsences-list{
        padding: 0;
        margin: 0;
        list-style: none;
        width: 300px;
    }

    .lastabsences-list li{
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        align-items: center;
    }

    .lastabsences-list-item-info {
        display: flex;
        flex-direction: column;
    }

    .lastabsences-list-item-duree{
        font-size: .8rem;
        color: red;
    }

    .lastabsences-list-item-justifier{
        padding: 3px 8px;
        border-radius: 12px;
        background-color: var(--blue);
    }

    .lastabsences-list-item-justifier a{
        color: white;
        text-decoration: none;
    }


/* Notes */

.page-note{
    padding: 7px;
}

.page-note h1, .page-note h2 {
    text-align: center;
}

.page-note form {
    margin: 20px 0;
    text-align: center;
}

.page-note label {
    margin-right: 10px;
}

.page-note select, .page-note button {
    padding: 8px;
    margin-top: 10px;
}

.page-note table {
    width: 80%;
    max-width: 1024px;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: white;
    border-radius: 5px;
}

.page-note table th, .page-note table td {
    padding: 10px;
    text-align: left;
}

.page-note table tr {
    border-bottom: 1px solid #ddd;
}

.page-note table th {
    color: #333;
}

.page-note p {
    text-align: center;
}

#matiere_id{
    border: #333;
    border-radius: 5px;
}

.notes-btnmodif-container{
    display: flex;
    justify-content: center;
}

.notes-btnmodif{
    padding: 8px;
    background-color: var(--blue);
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;
    text-decoration: none;
}


/* Ressources */

.page-ressources{
    padding: 7px;
}

.page-ressources h1{
    text-align: center;
}

.page-ressources .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px;
    justify-content: center;
    max-width: 1200px;
    margin: 20px auto; 
}

.page-ressources .block {
    border-radius: 8px;
    background-color: var(--light-gray);
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-ressources .block h3 {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-ressources .block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.page-ressources .block ul li {
    margin: 5px 0;
}

.page-ressources .block a {
    text-decoration: none;
    color: var(--blue);
    font-size: 0.9em;
}

.page-ressources .block a:hover {
    text-decoration: underline;
}

.page-ressources .search-bar {
    text-align: center;
    margin: 20px;
}

.page-ressources .search-bar input {
    padding: 8px;
    width: 50%;
    font-size: 1em;
    border: #333;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .page-ressources .container {
        grid-template-columns: repeat(2, 1fr); 
    }

    .page-ressources .search-bar input {
        width: 80%;
    }
}

@media (max-width: 480px) {
    .page-ressources .container {
        grid-template-columns: 1fr; 
    }

    .page-ressources .block {
        flex: 0 0 calc(90% - 10px);
    }
}


/* Messagerie */

.page-messagerie .contain {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
}
.page-messagerie .sidebar {
    background-color: #f4f4f4;
    border-right: 1px solid #ccc;
    overflow-y: auto;
    padding: 15px;
}

#user-filter{
    width: 100%;
    height: 40px;
    border: #333;
    border-radius: 10px;
    padding-left: 15px;
}

.page-messagerie .sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.page-messagerie .sidebar ul {
    list-style: none;
    padding: 0;
}
.page-messagerie .sidebar ul li {
    margin: 10px 0;
}
.page-messagerie .sidebar ul li a {
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
    display: block;
    border-radius: 4px;
}
.page-messagerie .sidebar ul li a:hover {
    background-color: #ddd;
}
.page-messagerie .chat-container {
    display: flex;
    flex-direction: column;
}
.page-messagerie .chat-header {
    background-color: var(--blue);
    color: white;
    padding: 10px;
    width: 100vw;
}
.page-messagerie .chat-header h2 {
    margin: 0;
    font-size: 1.2rem;
}
.page-messagerie .chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f9f9f9;
    width: 100vw;
    height: 60vh;
}
.page-messagerie .message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 15px;
    max-width: 100%;
    width: fit-content;
}
.page-messagerie .message p{
    margin: 0;
    margin-bottom: 10px;
}

.page-messagerie .message small{
    text-align: right;
    display: block;
    width: 100%;
    font-size: .75rem;
}

.page-messagerie .message.sent {
    background-color: var(--blue);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
    margin-left: auto;
}
.page-messagerie .message.received {
    background-color: #ddd;
    align-self: flex-start;
    border-bottom-left-radius: 0;
    margin-right: auto;
}
.page-messagerie .chat-input {
    padding: 10px;
    background-color: #f4f4f4;
    border-top: 1px solid #ccc;
    width: 100vw;
}
.page-messagerie .chat-input textarea {
    width: calc(100% - 100px);
    margin-right: 10px;
    resize: none;
}
.page-messagerie .chat-input button {
    padding: 10px 20px;
    background-color: var(--blue);
    color: white;
    border: none;
    border-radius: 4px;
}

.page-messagerie .page-switcher {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding: 10px;
    width: 100%;
    top: 0;
    left: 0;
}

.page-messagerie .switch-button {
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 0 10px;
    transition: background-color 0.3s, color 0.3s;
}

.page-messagerie .switch-button:hover {
    background-color: var(--blue);
    color: #fff;
}

.page-messagerie .switch-button.active {
    background-color: var(--blue);
    color: white;
    font-weight: bold;
    border: none;
}

#message-form{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#message-form textarea{
    width: 100%;
    height: 40px;
    border: #333;
    border-radius: 10px;
    padding: 10px;
    font-family: var(--inter);
}


/* Emploi du temps */

.timetable-container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Added this line */
}

.timetable-container h1 {
    text-align: center;
    font-size: 1.5rem;
}

.timetable-container .week-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.timetable-container .week-nav {
    text-decoration: none;
    color: var(--blue);
    font-weight: bold;
    font-size: .8rem;
}

.timetable-container .week-nav:hover {
    text-decoration: underline;
}

.timetable-container .current-week {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
}

.timetable-container .timetable {
    display: flex;
    flex-direction: column;
}

.timetable-container .day-column {
    margin-top: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    width: 100%;
}

.timetable-container .day-column::-webkit-scrollbar {
    display: none; 
}

.timetable-container .day-title {
    font-size: 1rem;
    font-weight: bold;
    min-width: 75px;
}

.timetable-container .hour-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timetable-container .hour-title {
    font-size: .9rem;
}

.timetable-container .events-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timetable-container .event {
    padding: 10px;
    background-color: #f4f4f4;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 200px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.timetable-container .event-title {
    font-size: .9rem;
    font-weight: bold;
}

.timetable-container .event-location {
    font-size: .75rem;
}

/* Profil */

.page-profil {
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.page-profil .container {
    width: 90%;
    max-width: 800px;
    margin: 30px 0;
    padding: 20px;
    border-radius: 8px;
}


.page-profil h1 {
    text-align: center;
    margin-bottom: 20px;
}

.page-profil .message {
    text-align: center;
    margin: 10px 0;
    font-size: 14px;
}

.page-profil .message.error {
    color: #d9534f;
}

.page-profil .message.success {
    color: #5cb85c;
}

.page-profil .profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-profil .profile-photo {
    margin-bottom: 20px;
}

.page-profil .profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid var(--blue);
    display: block;
    margin: 0 auto;
}

.page-profil form {
    margin-top: 10px;
}.page-profil 

.page-profil input[type="file"]{
    display: none; 
}

.profil-input-photo{
    display: none;
}

.page-profil button {
    padding: 10px 20px;
    border: none;
    background-color: var(--blue);
    color: #fff;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.page-profil .profile-info {
    margin-top: 30px;
    width: 100%;
}

.page-profil .profile-info p {
    margin: 10px 0;
    font-size: 16px;
}

.page-profil .links {
    margin-top: 20px;
}

.page-profil .links a {
    display: block;
    color: var(--blue);
    margin: 5px 0;
    font-size: 16px;
}

.page-profil .links a:hover {
    text-decoration: underline;
}


/* modif infos profil */

.modifprofil h2 {
    text-align: center;
    margin: 0;
}

.modifprofil .container{
    width: 100%;
}

.modifprofil form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modifprofil .form-group {
    width: 100%;
    margin: 5px 0;
    max-width: 400px;
}

.modifprofil .form-group input{
    width: 100%;
    height: 30px;
    border-radius: 10px;
    padding: 2px 10px;
}


/* Absences */

.page-absences{
    padding: 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-absences td button{
    background-color: var(--blue);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: .5rem;
}

.page-absences td textarea{
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    resize: none;
    font-size: .5rem;
    font-family: var(--inter);
}

.page-absences h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.page-absences .filter-btns {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.page-absences .filter-btn {
    padding: 10px 20px;
    margin: 0 10px;
    background-color: var(--blue);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-absences .container{
    max-width: 1000px;
    margin: 0;
}

.page-absences table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: .5rem;
    max-width: 1000px;
    margin-bottom: 40px;
}

.page-absences table th, .page-absences table td {
    padding: 10px;
    border: none;
    text-align: left;
}

.page-absences table th {
    background-color: #f4f4f4;
}

.page-absences .absence-row {
    background-color: #fff;
}

.page-absences .absence-row:nth-child(even) {
    background-color: #f9f9f9;
}

.page-absences .absence-row:hover {
    background-color: #f1f1f1;
}

.page-absences .absence-row .actions {
    display: flex;
    gap: 10px;
}

.page-absences .absence-row .actions button {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-absences .absence-row .actions button:hover {
    background-color: #0056b3;
}

.page-absences .just{
    background-color: #9bff8e;
}

.page-absences .non-just{
    background-color: #ff8e8e;
}


/* Posts */

.page-posts h3 {
    color: var(--blue);
}

.page-posts a {
    color: var(--blue);
    text-decoration: none;
}

.page-posts a:hover {
    text-decoration: underline;
}

.page-posts .auteur {
    margin-top: 10px;
    font-style: italic;
}
.page-posts .commentaire {
    background-color: #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    margin-top: 20px;
}

.page-posts .commentaire strong {
    color: #2c3e50;
}

.page-posts .commentaire small {
    color: #7f8c8d;
    display: block;
    margin-top: 5px;
}

.page-posts form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}


.page-posts .error-message {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}

.page-posts .success-message {
    color: green;
    font-size: 14px;
    margin-bottom: 10px;
}

.page-posts .container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 7px;
    gap: 20px;
}

.page-posts .sidebar {
    overflow-y: auto;
    position: relative;
}

.page-posts .sidebar h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.page-posts .sidebar ul {
    list-style: none;
    padding: 0;
}

.page-posts .sidebar ul li {
    margin: 10px 0;
}

.page-posts .sidebar ul li button {
    width: 100%;
    padding: 8px 12px;
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: left;
    color: #333;
    cursor: pointer;
}

.page-posts .sidebar ul li button:hover {
    background-color: #ddd;
}


.page-posts .filters {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.page-posts .posts-container {
    flex: 1;
}

.page-posts .create-post-btn {
    display: inline-block;
    background-color: var(--blue);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    margin-bottom: 20px;
    align-self: flex-end; 
}

.page-posts .create-post-btn:hover {
    text-decoration: none;
}

.page-posts .post-buttons {
    display: flex;
    justify-content: space-between; 
    width: 100%; 
    margin-top: 15px;
}

.page-posts .post-buttons button {
    flex: 1;  
    margin-right: 10px;
    text-align: center;
}

.page-posts .post-buttons button:last-child {
    margin-right: 0;
}

.page-posts .post {
    margin-bottom: 20px;
    padding: 15px;
}

.page-posts .post h2 {
    font-size: 20px;
    margin: 10px 0;
}

.page-posts .post p {
    font-size: 16px;
    line-height: 1.5;
}

.page-posts .post small {
    color: #888;
}

.page-posts .auteur {
    font-weight: bold;
    margin-bottom: 10px;
}

.page-posts .post-image-container img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 10px;
}

.page-posts .profile-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    vertical-align: middle;
}

.page-posts .page-switcher {
    display: flex;
    justify-content: center;
    margin-top: 1rem; 
    padding: 10px;
    width: 100%;
    top: 0;
    left: 0;
}

.page-posts .switch-button {
    padding: 10px 20px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 0 10px;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
}

.page-posts .switch-button:hover {
    background-color: var(--blue);
    color: #fff;
    text-decoration: none;
}

.page-posts .switch-button.active {
    background-color: var(--blue);
    color: white;
    font-weight: bold;
    border-color: var(--blue);
}

.page-posts .upvote-container {
    margin-top: 10px;
}

.page-posts .upvote-button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
}

.page-posts .upvote-button:hover {
    background-color: #e0e0e0;
}

.page-posts .comment-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.page-posts .comment-buttons button {
    width: 35px;
    height: 35px;
    background-image: url(images/svg/link.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    padding: none;
}

.page-posts .button {
    padding: 10px;
    text-align: center;
    background-color: var(--blue);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 35px;
    text-decoration: none;
    font-size: .9rem;
}

.page-posts .button:hover {
    background-color: var(--blue);
    text-decoration: none;
}

.page-posts .button.left {
    text-align: left;
}

.page-posts .button.center {
    text-align: center;
}

.page-posts .button.right {
    text-align: right;
}

.page-posts .filters button.active {
    background-color: var(--blue);
    color: white;
    border-color: var(--blue);
}

.page-posts .filters button {
    padding: 10px 5px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    width: 22%;
    text-align: center;
}

.page-posts .filters button:hover {
    background-color: #e0e0e0;
    color: black;
    border: 1px solid #ddd;;
}

.page-posts .post .tags {
    background-color: var(--blue);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}


.page-posts .delete-post-btn {
    background-color: #ff4d4d;
    border: none;           
    cursor: pointer;         
    border-radius: 5px;        
    transition: background-color 0.3s ease; 
    height: 35px;
    width: 35px;
    margin-top: 10px;
    background-image: url(images/svg/bin.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
}

.page-posts .delete-post-btn:focus {
    outline: none;  
}

.page-posts .btns-post {
    display: flex;
    justify-content: space-between;
    align-items: center;
}