* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
}

nav {
    background-color: #ffffff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #1877f2;
}

.nav-items a {
    margin-left: 1rem;
    text-decoration: none;
    color: #65676b;
}

.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.post-form {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.post-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.post-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.post-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}
/* Styles pour le profil */
.profile-container {
    max-width: 935px;
    margin: 0 auto;
    padding: 30px 20px;
}

.profile-header {
    display: flex;
    margin-bottom: 44px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-right: 100px;
}

.profile-info {
    flex: 1;
}

.profile-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Styles pour les messages */
.messages-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
    height: calc(100vh - 60px);
    padding: 20px;
}

.conversations-list {
    background: white;
    border-radius: 8px;
    overflow-y: auto;
}

.conversation {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.conversation:hover {
    background: #f8f9fa;
}

.conversation.active {
    background: #e9ecef;
}

.message-content {
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.message {
    margin-bottom: 10px;
    max-width: 70%;
}

.message.sent {
    margin-left: auto;
    background: #0084ff;
    color: white;
    border-radius: 18px;
    padding: 8px 12px;
}

.message.received {
    background: #e9ecef;
    border-radius: 18px;
    padding: 8px 12px;
}

.message-form {
    padding: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
}

.message-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
}
/* Styles pour l'authentification */
.auth-page {
    background-color: #fafafa;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-container {
    max-width: 350px;
    width: 100%;
    padding: 0 20px;
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.auth-form input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.auth-form button {
    background: #1877f2;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.auth-form button:hover {
    background: #166fe5;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

.auth-link a {
    color: #1877f2;
    text-decoration: none;
}
.auth-btn {
    padding: 8px 16px;
    background-color: #1877f2;
    color: white;
    border-radius: 4px;
    margin-left: 10px;
    text-decoration: none;
}

.auth-btn:hover {
    background-color: #166fe5;
}

.interaction-message {
    text-align: center;
    padding: 10px;
    background-color: #f0f2f5;
    border-radius: 4px;
    margin: 10px 0;
}
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}
.post {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.post-header {
    padding: 15px;
    display: flex;
    align-items: center;
}

.post-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.post-image {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}

.post-content {
    padding: 15px;
}

.post-caption {
    margin-bottom: 10px;
}

.post-stats {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.post-actions {
    padding: 0 15px 15px;
    display: flex;
    gap: 10px;
}

.like-btn, .dislike-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.like-btn {
    background: #1877f2;
    color: white;
}

.dislike-btn {
    background: #f0f2f5;
    color: #1c1e21;
}

.comments-section {
    padding: 15px;
    border-top: 1px solid #f0f2f5;
}

.comment {
    margin-bottom: 8px;
}

.comment-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.comment-form input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.no-posts {
    text-align: center;
    padding: 20px;
    color: #666;
}