:root {
    --vosges-dark-green: #1b4332;
    --vosges-green: #2d6a4f;
    --vosges-light-green: #40916c;
    --vosges-mint: #d8f3dc;
    --vosges-blue: #1d3557;
    --vosges-lake: #457b9d;
    --vosges-sky: #eaf4f4;
    --vosges-terracotta: #e76f51;
    --vosges-warm: #f4a261;
    --vosges-gold: #d4a373;
    --vosges-bg: #f8fafc;
    --vosges-card-bg: #ffffff;
    --vosges-border: #e2e8f0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--vosges-bg);
    color: #1e293b;
    margin: 0;
    padding: 0;
}

a {
    color: var(--vosges-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--vosges-dark-green);
}

/* Header & Navbar */
.vosges-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--vosges-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.brand-badge {
    background: linear-gradient(135deg, var(--vosges-dark-green), var(--vosges-light-green));
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 6px rgba(27, 67, 50, 0.25);
}

.nav-link {
    font-weight: 500;
    color: #475569 !important;
    padding: 0.6rem 0.9rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--vosges-dark-green) !important;
    background-color: #f1f5f9;
}

/* User Role Badges */
.badge-role-particulier {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.badge-role-association {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-role-entreprise {
    background-color: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-role-gestionnaire {
    background-color: #ede9fe;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

.badge-role-administrateur {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Event Status Badges */
.badge-status-approuve {
    background-color: #dcfce7;
    color: #166534;
}

.badge-status-enattente {
    background-color: #fef9c3;
    color: #854d0e;
}

.badge-status-refuse {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Ad Status Badges */
.badge-ad-disponible {
    background-color: #dcfce7;
    color: #166534;
}

.badge-ad-reserve {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-ad-vendu {
    background-color: #e2e8f0;
    color: #475569;
}

/* Buttons */
.btn-vosges-primary {
    background-color: var(--vosges-green);
    color: white;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.55rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-vosges-primary:hover {
    background-color: var(--vosges-dark-green);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25);
}

.btn-vosges-outline {
    background-color: transparent;
    color: var(--vosges-green);
    border: 1.5px solid var(--vosges-green);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.55rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-vosges-outline:hover {
    background-color: var(--vosges-green);
    color: white;
    transform: translateY(-1px);
}

.btn-vosges-accent {
    background-color: var(--vosges-terracotta);
    color: white;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.55rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-vosges-accent:hover {
    background-color: #d05d41;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 111, 81, 0.3);
}

/* Card Styling */
.card-modern {
    background: #ffffff;
    border: 1px solid var(--vosges-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.card-image-cover {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background-color: #e2e8f0;
}

/* Hero Section */
.hero-vosges {
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.95), rgba(45, 106, 79, 0.88)), url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
    color: white;
    padding: 4rem 1.5rem;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 10px 30px rgba(27, 67, 50, 0.2);
}

/* Mini-site Banner & Header */
.minisite-banner {
    height: 240px;
    width: 100%;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
}

.minisite-avatar-box {
    margin-top: -65px;
    position: relative;
    z-index: 2;
}

.minisite-avatar {
    width: 130px;
    height: 130px;
    border-radius: 20px;
    border: 4px solid #ffffff;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Notification Popover / Dropdown */
.notification-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    max-height: 480px;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--vosges-border);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    padding: 0.5rem 0;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
    cursor: pointer;
}

.notification-item:hover {
    background-color: #f8fafc;
}

.notification-item.unread {
    background-color: #f0fdf4;
    border-left: 3px solid var(--vosges-green);
}

/* Chat & Messaging UI */
.chat-container {
    height: 600px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--vosges-border);
    overflow: hidden;
}

.chat-contact-list {
    height: 100%;
    overflow-y: auto;
    border-right: 1px solid var(--vosges-border);
}

.chat-messages-box {
    height: calc(600px - 140px);
    overflow-y: auto;
    padding: 1.25rem;
    background-color: #f8fafc;
}

.message-bubble {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    margin-bottom: 0.75rem;
}

.message-bubble.mine {
    background-color: var(--vosges-green);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.message-bubble.theirs {
    background-color: #ffffff;
    color: #1e293b;
    border: 1px solid var(--vosges-border);
    margin-right: auto;
    border-bottom-left-radius: 2px;
}

/* Modal styling */
.modal-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1040;
}

.modal-custom {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Price tag in ads */
.price-tag {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--vosges-green);
}

/* Avatar general */
.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

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

.avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

/* Stats Counter Pill */
.stat-card {
    background: white;
    border: 1px solid var(--vosges-border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}