/* Configuration générale */
body {
    background-color: #ff236e;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    /* On retire le display: flex d'ici pour que la navbar puisse respirer */
}

.container {
    width: 95%;
    max-width: 600px;
    margin: 20px auto; /* Le "auto" permet de centrer le contenu sans casser la navbar */
}

.navbar {
    width: 100%; /* La barre doit prendre tout l'écran en largeur */
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Style des cartes (Posts) */
.post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 15px;
}

/* En-tête du post */
.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.post-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: bold;
    color: #1c1e21;
}

.date {
    font-size: 0.8rem;
    color: #65676b;
}

/* Formulaire de création */
.create-post textarea {
    width: 100%;
    border: none;
    background: #f0f2f5;
    border-radius: 20px;
    padding: 10px 15px;
    resize: none;
    outline: none;
}

.create-post button {
    margin-top: 10px;
    background: #1877f2; /* Bleu Facebook */
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.create-post button:hover {
    background: #166fe5;
}
/* Navbar Style */
.navbar {
    background: #a60e42;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 20px;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #1877f2;
}

.logo span { color: #2ecc71; } /* Petit look "Nature" */

.nav-links a {
    text-decoration: none;
    color: #65676b;
    margin: 0 15px;
    font-weight: 600;
}

.nav-links a:hover { color: #1877f2; }

.logout-btn { color: #e74c3c !important; }

.avatar-xs {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    vertical-align: middle;
    margin-left: 10px;
    object-fit: cover;
}
/* La photo dans la barre de navigation */
.avatar-xs {
    width: 40px;  /* Largeur fixe */
    height: 40px; /* Hauteur fixe */
    border-radius: 50%; /* Rend la photo ronde */
    object-fit: cover;  /* Empêche l'image d'être déformée */
    border: 2px solid #1877f2; /* Un petit cercle bleu autour */
    vertical-align: middle;
}

/* On s'assure que le menu aligne bien les éléments horizontalement */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px; /* Espace entre le pseudo et la photo */
}
/* Style par défaut du bouton J'aime */
.like-btn {
    text-decoration: none;
    color: #65676b;
    font-weight: 600;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Style quand on a cliqué sur J'aime */
.like-btn.liked {
    color: #1877f2; /* Bleu Facebook */
}

.like-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    padding: 2px 5px;
}
/* Styles pour les pages de Connexion et Inscription */
.auth-body {
    background: linear-gradient(135deg, #2ecc71 0%, #1877f2 100%); /* Dégradé Nature (vert) vers Social (bleu) */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

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

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
}

.auth-header h1 {
    margin-bottom: 5px;
}

.auth-header p {
    color: #65676b;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #1877f2;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box; /* Important pour que le padding ne dépasse pas */
    outline: none;
    font-size: 1rem;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

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

.auth-footer {
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.auth-footer a {
    color: #2ecc71;
    text-decoration: none;
    font-weight: bold;
}

.auth-footer a:hover {
    text-decoration: underline;
}
/* Structure principale */
.main-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Menu de gauche (Sidebar) */
.sidebar {
    width: 250px;
    position: sticky;
    top: 80px; /* Pour qu'il reste visible quand on scrolle */
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    text-decoration: none;
    color: #1c1e21;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.3s;
}

.sidebar-menu a:hover {
    background: #f2f2f2;
}

.sidebar-menu i {
    font-size: 1.2rem;
    width: 25px;
    color: #1877f2; /* Bleu standard ou choisis ta couleur */
}

/* Le fil d'actualité prend le reste de la place */
.feed {
    flex: 1;
}