* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
}

body {
    background-color: #f5f7fb;
    padding-bottom: 70px; /* espace pour bottom-nav */
}

/* Login page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(145deg, #1a2a6c, #b21f1f, #fdbb4d);
    padding: 1rem;
}
.login-container {
    background: white;
    border-radius: 32px;
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
    text-align: center;
}
.logo h1 {
    font-size: 2rem;
    color: #1e3c72;
}
.login-form input, .login-form button {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border-radius: 60px;
    border: 1px solid #ddd;
    font-size: 1rem;
}
.btn-primary {
    background: #0a66c2;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.btn-primary:hover { background: #004182; }
.demo-info {
    font-size: 0.75rem;
    color: gray;
    margin-top: 1rem;
}

/* Bottom navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}
.nav-item {
    text-decoration: none;
    color: #777;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}
.nav-item.active, .nav-item:active {
    color: #0a66c2;
}

/* Feed cards */
.app-container, .profile-container, .detail-container, .form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}
.header {
    margin-bottom: 1.2rem;
}
.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.search-form input, .search-form select {
    flex: 1;
    padding: 12px;
    border-radius: 40px;
    border: 1px solid #ccc;
    background: white;
}
.btn-search {
    background: #0a66c2;
    border: none;
    border-radius: 40px;
    padding: 0 18px;
    color: white;
    font-size: 1.2rem;
}
.feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.2s;
}
.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.card-body {
    padding: 14px;
}
.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.want {
    font-weight: 600;
    color: #2c7a4d;
    margin: 6px 0;
}
.location {
    color: #6c757d;
    font-size: 0.85rem;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}
.category {
    background: #eef2ff;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
}
.card-actions {
    display: flex;
    gap: 12px;
}
.like-btn, .btn-detail {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}
.btn-detail {
    background: #0a66c2;
    color: white;
    padding: 6px 14px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.8rem;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}
/* Detail page */
.detail-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 20px;
}
.detail-img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
}
.detail-info {
    padding: 1.5rem;
}
.want-item {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1e7e34;
    margin: 10px 0;
}
.meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 15px 0;
    font-size: 0.85rem;
    color: #555;
}
.owner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}
.avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.btn-whatsapp {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}
.btn-link {
    display: inline-block;
    margin-top: 20px;
    color: #0a66c2;
    text-decoration: none;
}
/* Profile */
.profile-header {
    text-align: center;
    background: white;
    border-radius: 30px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.my-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mini-card {
    display: flex;
    gap: 12px;
    background: white;
    border-radius: 20px;
    padding: 10px;
    align-items: center;
}
.mini-card img {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    object-fit: cover;
}
.btn-logout {
    display: block;
    margin: 30px auto;
    text-align: center;
    background: #dc3545;
    color: white;
    padding: 10px;
    border-radius: 60px;
    text-decoration: none;
    width: 80%;
}
.alert {
    padding: 12px;
    border-radius: 24px;
    margin-bottom: 20px;
}
.error {
    background: #ffe0e0;
    color: #c00;
}
.success {
    background: #e0ffe0;
    color: #2c7a4d;
}
@media (min-width: 600px) {
    .feed {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .card-img {
        height: 160px;
    }
}