* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, 'Segoe UI', 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf2 100%);
    min-height: 100vh;
}

.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========== NAVBAR ========== */
.navbar {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d6a4f;
}

.logo-icon {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-btn {
    background: transparent;
    border: none;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
    font-size: 0.95rem;
}

.nav-btn:hover {
    background: #e8f5e9;
}

.btn-login {
    background: #2d6a4f;
    color: white;
}

.btn-login:hover {
    background: #1b4d3e;
}

.btn-register {
    background: #52b788;
    color: white;
}

.btn-register:hover {
    background: #40916c;
}

.btn-logout {
    background: #dc2f02;
    color: white;
}

.btn-logout:hover {
    background: #9d0208;
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ========== MAIN ========== */
main {
    flex: 1;
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 25px;
    width: 100%;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #2d6a4f, #1b4d3e);
    border-radius: 30px;
    padding: 50px 30px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.hero .highlight {
    color: #ffd166;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.btn-primary {
    background: #ffd166;
    color: #1b4d3e;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #ffc107;
    transform: scale(1.02);
}

.btn-secondary {
    background: #e9ecef;
    color: #2d6a4f;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
}

/* Catégories */
.categories-section {
    margin-bottom: 40px;
}

.categories-section h2 {
    color: #1e3a2f;
    margin-bottom: 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.category-card {
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.category-card span {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.category-card p {
    font-weight: 500;
    color: #2d6a4f;
}

/* Filtres avancés */
.filters-advanced {
    background: white;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filters-advanced input,
.filters-advanced select {
    flex: 1;
    min-width: 160px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 0.9rem;
    outline: none;
}

.filters-advanced input:focus,
.filters-advanced select:focus {
    border-color: #2d6a4f;
}

/* Grid services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.card-image {
    height: 180px;
    background: linear-gradient(135deg, #52b788, #2d6a4f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.card-content {
    padding: 20px;
}

.card-category {
    display: inline-block;
    background: #d8f3dc;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    color: #2d6a4f;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.3rem;
    color: #1e3a2f;
    margin-bottom: 8px;
}

.card-desc {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2d6a4f;
    margin-bottom: 8px;
}

.card-delivery {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 12px;
}

.card-seller {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #52b788;
}

.contact-btn-card {
    background: #52b788;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 8px;
}

.delete-btn-card {
    background: #dc2f02;
    color: white;
    border: none;
    padding: 8px;
    width: 100%;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 8px;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2d6a4f;
}

.stat-label {
    color: #6c757d;
    margin-top: 8px;
}

/* Profile card */
.profile-card {
    background: white;
    border-radius: 30px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.profile-avatar {
    font-size: 5rem;
    margin-bottom: 15px;
}

.profile-info {
    text-align: left;
    margin: 25px 0;
}

.info-row {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 15px;
}

.info-row label {
    font-weight: bold;
    width: 120px;
    color: #2d6a4f;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    max-width: 550px;
    width: 90%;
    padding: 30px;
    border-radius: 28px;
    position: relative;
}

.modal-content.large {
    max-width: 650px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
}

.auth-form input,
.modal-content input,
.modal-content textarea,
.modal-content select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 25px;
}

.btn-submit {
    background: #2d6a4f;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.btn-cancel {
    background: #e9ecef;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 15px;
}

.pass-icon {
    position: absolute;
    top: 23px;
    right: 16px;
    width: 24px;
    cursor: pointer;
}

footer {
    background: #1e3a2f;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .filters-advanced {
        flex-direction: column;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }
}

.empty-msg {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 30px;
    color: #6c757d;
}