/* ===== VARIABLES ===== */
:root {
    --primary: #09B1BA;
    --primary-dark: #078a91;
    --primary-light: #e8f9fa;
    --secondary: #2c2c2c;
    --text: #333333;
    --text-light: #666666;
    --border: #e0e0e0;
    --bg: #f5f5f5;
    --white: #ffffff;
    --success: #28a745;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
}

/* ===== RESET & BASE ===== */
* { box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--white) !important;
    border-bottom: 2px solid var(--primary);
    padding: 10px 0;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary) !important;
    text-decoration: none;
}

.navbar-brand span {
    color: var(--secondary);
}

.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: 6px;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: white !important;
}

.nav-btn-deposer {
    background: var(--primary);
    color: white !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.nav-btn-deposer:hover {
    background: var(--primary-dark);
    color: white !important;
}

.nav-link-compte {
    color: var(--text) !important;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 12px;
}

.nav-link-compte:hover { color: var(--primary) !important; }

.lang-switch a {
    color: var(--text-light);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.lang-switch a.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #09B1BA 0%, #4ecdc4 100%);
    color: white;
    padding: 50px 0 40px;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.search-bar {
    background: white;
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-width: 700px;
    margin: 0 auto;
}

.search-bar input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 1rem;
    color: var(--text);
    background: transparent;
}

.search-bar button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.search-bar button:hover { background: var(--primary-dark); }

/* ===== CATÉGORIES ===== */
.categories-bar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.categories-bar .container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.categorie-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.categorie-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.categorie-pill.active {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
}

/* ===== FILTRE PRIX ===== */
.filtre-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.filtre-card .btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-weight: 600;
}

/* ===== CARTES ANNONCES ===== */
.card-annonce {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text);
    display: block;
    height: 100%;
}

.card-annonce:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
    border-color: var(--primary);
    color: var(--text);
    text-decoration: none;
}

.card-annonce-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f0f0f0;
}

.card-annonce-img-placeholder {
    width: 100%;
    height: 180px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2.5rem;
}

.card-annonce-body {
    padding: 12px;
}

.card-annonce-titre {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
}

.card-annonce-prix {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.card-annonce-ville {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.card-annonce-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.badge-categorie {
    background: var(--primary-light);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 50px;
    font-weight: 600;
}

.badge-vue {
    color: var(--text-light);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--secondary);
    color: #aaa;
    padding: 30px 0;
    margin-top: 50px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover { color: var(--primary); }

.footer-disclaimer {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ddd;
    border-top: 1px solid #444;
    padding-top: 15px;
    margin-top: 15px;
}

/* ===== FORMS ===== */
.form-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(9, 177, 186, 0.15);
}

/* ===== noUiSlider customisation ===== */
.noUi-connect { background: var(--primary); }
.noUi-handle {
    border-radius: 50%;
    box-shadow: none;
    border: 2px solid var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.5rem; }
    .search-bar { border-radius: 12px; flex-wrap: wrap; padding: 10px; }
    .search-bar input { width: 100%; margin-bottom: 8px; }
    .search-bar button { width: 100%; border-radius: 6px; }
    .categories-bar .container { gap: 6px; }
    .categorie-pill { padding: 6px 12px; font-size: 0.8rem; }
}
