body {
    background-color: #0d0d0d;
    color: #f0f0f0;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

h2 {
    color: #9a4ef2;
}

form input, form select, form button {
    display: block;
    margin: 10px 0;
    padding: 10px;
    width: 300px;
    background-color: #1c1c1c;
    color: #fff;
    border: none;
    border-radius: 5px;
}

form button {
    background-color: #9a4ef2;
    cursor: pointer;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 180px;
    height: 100%;
    background-color: #121212;
    display: flex;
    flex-direction: column;
    padding-top: 50px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.5);
}

.sidebar a {
    color: #fff;
    padding: 15px;
    text-decoration: none;
    transition: background 0.2s;
}

.sidebar a:hover {
    background-color: #9a4ef2;
}

.main-content p {
    color: #ccc;
    font-size: 18px;
}

/* Sidebar classique */
.sidebar {
    width: 220px;
    position: fixed;
    height: 100vh;
    background-color: #111;
    padding-top: 20px;
    z-index: 999;
    top: 0;
    left: 0;
    transition: 0.3s;
}
.sidebar a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
}
.sidebar a:hover {
    background: #222;
}

/* Toggle (hamburger) */
.navbar-toggle {
    display: none;
    background-color: #9a4ef2;
    color: white;
    padding: 12px 20px;
    font-size: 18px;
    cursor: pointer;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .navbar-toggle {
        display: block;
    }
    .main-content {
        margin-left: 0 !important;
        padding-top: 60px;
    }
}

/* Responsive pour la page de profil */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0 !important;
        padding: 20px;
    }

    .profil-img {
        width: 100px;
        height: 100px;
    }

    form {
        max-width: 100%;
        padding: 20px;
    }

    .post {
        max-width: 100%;
        padding: 15px;
    }

    textarea,
    select,
    input[type="text"],
    input[type="file"] {
        font-size: 16px;
        padding: 10px;
    }

    button {
        padding: 10px;
        width: 100%;
        font-size: 16px;
    }

    h2, h3 {
        font-size: 22px;
        text-align: center;
    }

    .profil-img {
        display: block;
        margin: 0 auto 20px auto;
    }

    .post img,
    .post video {
        width: 100%;
        height: auto;
    }
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 180px;
    height: 100vh;
    background-color: #1a1a1a;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.sidebar a {
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    color: white;
    background-color: #2a2a2a;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s;
}

.sidebar a:hover {
    background-color: #9a4ef2;
    color: white;
}

/* Mobile adaptation */
@media screen and (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        padding: 10px;
        position: relative;
    }

    .sidebar a {
        flex: 1 1 40%;
        text-align: center;
        font-size: 13px;
    }

    .main-content {
        margin-left: 0 !important;
        padding-top: 80px;
    }
}




