/* /assets/css/style.css */
/* Minimal CSS Boilerplate for ECE In */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f3f2ef;
    /* Couleur de fond style LinkedIn */
    color: #333;
    line-height: 1.6;
}

/* --- Layout Principal --- */
#wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Header / Navigation --- */
header {
    background-color: #0073b1;
    /* Bleu ECE / Professionnel */
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-size: 1.5rem;
}

header p {
    font-size: 0.9rem;
    opacity: 0.8;
}

header #icon {
    width: 50px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transform: translateY(-1px);
}

nav a:active {
    transform: translateY(1px);
}

.logout-btn {
    color: #ffcccc;
    background-color: rgba(209, 17, 36, 0.2);
}

.logout-btn:hover {
    background-color: rgba(209, 17, 36, 0.4);
}

.admin-link {
    color: #ffff99;
    font-weight: bold;
    background-color: rgba(255, 255, 153, 0.15);
}

.admin-link:hover {
    background-color: rgba(255, 255, 153, 0.3);
}

/* --- Section Principale --- */
#main-content {
    flex: 1;
    padding: 2rem;
    background-color: #f3f2ef;
}

/* --- Boutons et Formulaires --- */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background-color: #0073b1;
    color: white;
}

.btn-primary:hover {
    background-color: #005582;
}

.btn-secondary {
    background-color: #fff;
    border: 1px solid #0073b1;
    color: #0073b1;
}

.btn-secondary:hover {
    background-color: #f0f7f9;
}

.btn-danger {
    background-color: #d11124;
    color: white;
}

.btn-small {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

form .form-group {
    margin-bottom: 1rem;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea,
form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* --- Conteneurs Spécifiques --- */
.login-container {
    max-width: 400px;
    margin: 4rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.error-msg {
    color: #d11124;
    background-color: #fce7e9;
    padding: 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* --- Accueil (Fil d'actualité) --- */
.home-container,
.profile-container,
.network-container,
.jobs-container,
.notifications-container,
.admin-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.create-post-box {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

/* --- Notifications --- */
.notifications-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.notif-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.notif-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.notif-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    text-decoration: none;
    color: #333;
}

.notif-item.unread {
    border-left: 4px solid #0073b1;
    background-color: #f0f7f9;
}

.notif-item.unread p {
    font-weight: 600;
}

.notif-item.read {
    border-left: 4px solid #ccc;
}

.notif-item .time {
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
    margin-left: 1rem;
}

.create-post-box textarea {
    height: 80px;
    resize: none;
    margin-bottom: 1rem;
}

.post-options {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.post-card,
.job-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.post-meta {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

.post-media img {
    max-width: 100%;
    border-radius: 4px;
    margin-top: 1rem;
}

/* --- Actions des posts --- */
.post-actions {
    display: flex;
    gap: 1rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    margin-top: 1rem;
}

.btn-action {
    background: none;
    border: none;
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-action:hover {
    background: #f0f0f0;
}

/* Style spécifique au bouton J'aime */
.btn-like i {
    font-size: 1.4rem; /* Plus gros par défaut */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s;
}

.btn-like.liked {
    color: #0073b1; /* Devient bleu */
}

.btn-like.liked i {
    color: #0073b1;
}

/* Animation au clic via JS ajoutant une classe temporelle */
.btn-like.animating i {
    transform: scale(1.4) rotate(-15deg);
}

/* --- Commentaires --- */
.post-comments {
    border-top: 1px solid #eee;
    margin-top: 1rem;
    padding-top: 1rem;
}

.comments-list {
    margin-bottom: 1rem;
}

.comment-item {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.avatar-micro {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-bubble {
    background-color: #f0f2f5;
    padding: 0.5rem 0.8rem;
    border-radius: 18px;
    border-top-left-radius: 4px;
    flex: 1;
}

.comment-bubble strong {
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.2rem;
}

.comment-bubble p {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.comment-date {
    font-size: 0.75rem;
    color: #888;
    margin-left: 0.5rem;
}

.comment-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.comment-form input[type="text"] {
    flex: 1;
    border-radius: 20px;
    padding: 0.5rem 1rem;
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-medium {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    margin-top: -60px;
}

/* --- Profil --- */
.profile-banner {
    height: 200px;
    background-color: #ccc;
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0;
}

.profile-header {
    display: flex;
    gap: 1.5rem;
    padding: 0 2rem 2rem;
    align-items: flex-end;
}

.profile-details .section {
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

/* --- Réseau --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.friend-card {
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
}

.friend-card a {
    text-decoration: none;
    color: inherit;
}

.friend-card .status {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* --- Tableaux Admin --- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.admin-table th,
.admin-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.admin-table th {
    background-color: #f8f9fa;
}

/* --- Footer --- */
footer {
    background-color: #fff;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.9rem;
}