:root {
    --orange: #E87722;
    --orange-dark: #C45F0A;
    --orange-light: #FFF3E0;
    --blue: #1A3A6B;
    --blue-dark: #0D2147;
    --blue-light: #E8F0FB;
}

* { box-sizing: border-box; }
body { font-family: 'Helvetica Neue', Arial, sans-serif; color: #222; background: #f5f5f5; }

/* ===== NAVBAR ===== */
.ba-navbar-top { background: #fff; border-bottom: 1px solid #e0e0e0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.navbar-logo img { display: block; }

/* Search bar */
.ba-search-main { max-width: 600px; }
.ba-search-main > div { border: 2px solid #e0e0e0; border-radius: 8px; overflow: hidden; background: #fff; transition: border-color 0.2s; }
.ba-search-main > div:focus-within { border-color: var(--orange); }
.search-input-wrap, .search-city-wrap { position: relative; display: flex; align-items: center; }
.search-input-wrap { flex: 1; border-right: 1px solid #e0e0e0; }
.search-city-wrap { width: 160px; border-right: 1px solid #e0e0e0; }
.search-icon, .city-icon { position: absolute; left: 10px; font-size: 16px; color: #aaa; pointer-events: none; }
.ba-search-main input { border: none; outline: none; padding: 9px 10px 9px 32px; font-size: 14px; width: 100%; background: transparent; }
.search-btn { background: var(--orange); border: none; color: #fff; padding: 0 16px; font-size: 18px; cursor: pointer; transition: background 0.2s; }
.search-btn:hover { background: var(--orange-dark); }

/* Buttons navbar */
.btn-deposer { background: var(--orange); color: #fff; border: none; padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; display: flex; align-items: center; white-space: nowrap; transition: background 0.2s; }
.btn-deposer:hover { background: var(--orange-dark); color: #fff; }
.btn-deposer-mobile { background: var(--orange); color: #fff; border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; text-decoration: none; }
.btn-nav-link { background: none; border: none; color: #444; font-size: 13px; padding: 6px 10px; border-radius: 6px; cursor: pointer; text-decoration: none; display: flex; align-items: center; transition: background 0.15s; white-space: nowrap; }
.btn-nav-link:hover { background: #f5f5f5; color: var(--orange); }
.notif-badge { position: absolute; top: -4px; right: -4px; background: #e00; color: #fff; font-size: 10px; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ===== CAT BAR ===== */
.ba-cat-bar { background: #fff; border-bottom: 1px solid #e0e0e0; position: relative; z-index: 100; }
.cat-bar-scroll { display: flex; align-items: center; gap: 0; overflow-x: auto; overflow-y: visible; scrollbar-width: none; -ms-overflow-style: none; }
.cat-bar-scroll::-webkit-scrollbar { display: none; }
.cat-bar-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 16px; font-size: 12px; color: #444; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: all 0.15s; }
.cat-bar-item i { font-size: 20px; color: #666; }
.cat-bar-item:hover, .cat-bar-item.active { color: var(--orange); border-bottom-color: var(--orange); }
.cat-bar-item:hover i, .cat-bar-item.active i { color: var(--orange); }

/* ===== BUTTONS ===== */
.btn-orange { background: var(--orange) !important; color: #fff !important; border: none !important; font-weight: 600; }
.btn-orange:hover { background: var(--orange-dark) !important; color: #fff !important; }
.btn-blue { background: var(--blue) !important; color: #fff !important; border: none !important; }
.btn-blue:hover { background: var(--blue-dark) !important; color: #fff !important; }
.btn-outline-orange { border: 2px solid var(--orange) !important; color: var(--orange) !important; background: transparent !important; font-weight: 600; }
.btn-outline-orange:hover { background: var(--orange) !important; color: #fff !important; }

/* Colors */
.text-orange { color: var(--orange) !important; }
.text-blue { color: var(--blue) !important; }
.bg-orange { background: var(--orange) !important; }
.bg-blue { background: var(--blue) !important; }
.bg-orange-light { background: var(--orange-light) !important; }
.bg-blue-light { background: var(--blue-light) !important; }
.border-orange { border-color: var(--orange) !important; }

/* ===== HERO (compact) ===== */
.ba-hero { background: var(--blue-dark); padding: 28px 0; }
.ba-hero h1 { color: #fff; font-size: 1.8rem; font-weight: 700; }
.ba-hero p { color: rgba(255,255,255,0.8); }
.ba-hero-search { background: #fff; border-radius: 10px; padding: 14px; }

/* ===== LISTING CARDS — style liste ===== */
.ba-listing-list-card { background: #fff; border: 1px solid #e0e6ef; border-radius: 10px; overflow: hidden; transition: box-shadow 0.2s; margin-bottom: 10px; display: flex; text-decoration: none; color: inherit; }
.ba-listing-list-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); border-color: #ccc; }
.ba-listing-list-card .card-img-wrap { width: 200px; min-width: 200px; height: 150px; overflow: hidden; position: relative; }
.ba-listing-list-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ba-listing-list-card .card-img-wrap .no-img { width: 100%; height: 100%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; }
.ba-listing-list-card .card-content { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.ba-listing-list-card .card-title { font-size: 15px; font-weight: 600; color: #222; margin-bottom: 4px; }
.ba-listing-list-card .card-desc { font-size: 13px; color: #666; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ba-listing-list-card .card-price { font-size: 20px; font-weight: 700; color: var(--orange); }
.ba-listing-list-card .card-meta { font-size: 12px; color: #999; }

/* Grid cards (catégories) */
.ba-listing-card { background: #fff; border: 1px solid #e0e6ef; border-radius: 10px; overflow: hidden; transition: box-shadow 0.2s; height: 100%; text-decoration: none; color: inherit; display: block; }
.ba-listing-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.ba-listing-card .card-img { width: 100%; height: 170px; object-fit: cover; }
.ba-listing-card .card-body { padding: 10px 12px; }
.ba-listing-card .price { font-size: 17px; font-weight: 700; color: var(--orange); }
.ba-listing-card .title { font-size: 13px; font-weight: 600; color: #222; margin: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ba-listing-card .location { font-size: 12px; color: #999; }

/* Badges */
.badge-urgent { background: var(--orange); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 3px; font-weight: 600; }
.badge-video { background: var(--blue); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 3px; }
.badge-pro { background: #FFD700; color: #333; font-size: 11px; padding: 2px 8px; border-radius: 3px; font-weight: 600; }

/* ===== SECTION TITLES ===== */
.ba-section-title { font-size: 1.2rem; font-weight: 700; color: #222; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.ba-section-title::after { content: ''; flex: 1; height: 1px; background: #e0e0e0; }

/* ===== STATS ===== */
.ba-stat { text-align: center; }
.ba-stat .num { font-size: 1.8rem; font-weight: 700; color: var(--orange); }
.ba-stat .label { font-size: 13px; color: #666; }

/* ===== CATEGORIES GRID ===== */
.ba-cat-card { background: #fff; border: 1px solid #e0e6ef; border-radius: 10px; padding: 18px 10px; text-align: center; cursor: pointer; transition: all 0.15s; text-decoration: none; display: block; }
.ba-cat-card:hover { border-color: var(--orange); box-shadow: 0 4px 16px rgba(232,119,34,0.12); }
.ba-cat-card i { font-size: 28px; color: var(--blue); display: block; margin-bottom: 6px; }
.ba-cat-card:hover i { color: var(--orange); }
.ba-cat-card span { font-size: 12px; color: #444; font-weight: 500; }

/* ===== FORMS ===== */
.ba-form-card { background: #fff; border-radius: 10px; border: 1px solid #e0e6ef; padding: 24px; }
.ba-form-label { font-weight: 600; color: #333; font-size: 14px; margin-bottom: 5px; display: block; }
.ba-form-control { border: 1.5px solid #dde3ef; border-radius: 7px; padding: 9px 13px; font-size: 14px; width: 100%; transition: border-color 0.2s; background: #fff; }
.ba-form-control:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(232,119,34,0.08); }

/* Package cards */
.ba-package-card { border: 2px solid #e0e6ef; border-radius: 10px; padding: 18px; cursor: pointer; transition: all 0.2s; }
.ba-package-card:hover, .ba-package-card.selected { border-color: var(--orange); background: var(--orange-light); }
.ba-package-card.featured { border-color: var(--blue); }
.ba-package-card .pkg-price { font-size: 20px; font-weight: 700; color: var(--orange); }

/* Video upload */
.ba-video-upload { border: 2px dashed #b0bfe8; border-radius: 10px; padding: 28px; text-align: center; background: var(--blue-light); cursor: pointer; transition: all 0.2s; }
.ba-video-upload:hover { border-color: var(--orange); background: var(--orange-light); }
.ba-video-upload.has-video { border-color: #28a745; background: #f0fff4; border-style: solid; }

/* Messages */
.ba-msg-bubble { max-width: 70%; padding: 10px 14px; border-radius: 18px; font-size: 14px; margin-bottom: 6px; }
.ba-msg-bubble.sent { background: var(--blue); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.ba-msg-bubble.received { background: #f0f2f5; color: #222; border-bottom-left-radius: 4px; }

/* ===== FOOTER ===== */
.ba-footer { background: var(--blue-dark); color: #ccc; }
.ba-footer .footer-link { color: #aaa; text-decoration: none; font-size: 13px; line-height: 2.2; display: block; }
.ba-footer .footer-link:hover { color: var(--orange); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .ba-listing-list-card .card-img-wrap { width: 120px; min-width: 120px; height: 110px; }
    .ba-listing-list-card .card-title { font-size: 13px; }
    .ba-listing-list-card .card-price { font-size: 16px; }
    .ba-search-main { display: none; }
    .search-city-wrap { display: none; }
}
.ba-logo-text { font-family: 'Arial Black', Arial; font-size: 22px; font-weight: 900; color: var(--blue); text-decoration: none; }
.ba-logo-text span { color: var(--orange); }
.ba-logo-text small { font-size: 13px; color: var(--orange); }
.ba-navbar-top .ba-logo-text { color: white; }

/* === FOOTER FIX === */
.ba-footer { color: #ccc !important; }
.ba-footer p, .ba-footer span, .ba-footer small { color: #bbb !important; }
.ba-footer h6 { color: var(--orange) !important; }
.ba-footer .footer-link { color: #bbb !important; }
.ba-footer .footer-link:hover { color: var(--orange) !important; }
.ba-footer .border-top { border-color: rgba(255,255,255,0.1) !important; }
.ba-footer .border-secondary { border-color: rgba(255,255,255,0.1) !important; }
.ba-footer strong { color: #fff !important; }
.ba-footer a { color: #bbb !important; }
.ba-footer a:hover { color: var(--orange) !important; }
/* Copyright ligne du bas */
.ba-footer .text-muted { color: #888 !important; }

/* Logo plus grand */
.navbar-logo img { height: 60px !important; }
.ba-navbar-top .container-fluid { padding-top: 6px !important; padding-bottom: 6px !important; }

/* ===== DROPDOWN CATEGORIES ===== */
.cat-bar-dropdown-wrap { position: relative; display: inline-flex; }
.cat-dropdown { display: none; position: absolute; top: 100%; left: 0; z-index: 999; min-width: 220px; padding-top: 4px; }
.cat-dropdown-inner { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 8px 0; min-width: 200px; }
.cat-dropdown-title { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.5px; padding: 6px 16px; border-bottom: 1px solid #f0f0f0; margin-bottom: 4px; }
.cat-dropdown-item { display: flex; align-items: center; padding: 7px 16px; font-size: 13px; color: #444; text-decoration: none; transition: background 0.1s; white-space: nowrap; }
.cat-dropdown-item:hover { background: var(--orange-light); color: var(--orange); }
.cat-dropdown-all { font-weight: 600; color: var(--blue); border-bottom: 1px solid #f5f5f5; margin-bottom: 4px; }
.cat-dropdown-all:hover { color: var(--orange); }

/* ===== BARRE DE RECHERCHE HERO AMÉLIORÉE ===== */
.ba-hero-search .form-select { border: 1.5px solid #e0e0e0; border-radius: 7px; font-size: 14px; }
.ba-hero-search .form-select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,119,34,0.08); }
.ba-hero-search .form-control { border: 1.5px solid #e0e0e0; border-radius: 7px; font-size: 14px; }
.ba-hero-search .form-control:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,119,34,0.08); }
.ba-hero-search .input-group .form-control:focus { box-shadow: none; }

/* Dropdown au clic - reset hover */

/* Hero search amélioré */
.ba-hero-search { background:#fff; border-radius:12px; padding:16px; box-shadow:0 8px 32px rgba(0,0,0,0.2); }
.ba-hero-search .form-control, .ba-hero-search .form-select { background:#f8f9fa; border:1px solid #e0e0e0 !important; border-radius:8px; font-size:14px; height:42px; }
.ba-hero-search .form-control:focus, .ba-hero-search .form-select:focus { border-color:var(--orange) !important; box-shadow:0 0 0 3px rgba(232,119,34,0.1) !important; background:#fff; }
.ba-hero-search .input-group { background:#f8f9fa; border:1px solid #e0e0e0; border-radius:8px; overflow:hidden; }
.ba-hero-search .input-group .form-control { border:none !important; background:transparent; }
.ba-hero-search .input-group-text { background:transparent; border:none; }
.ba-hero-search .border-top { border-color:rgba(0,0,0,0.08) !important; }

/* Fix alignement annonces homepage */
.ba-listing-list-card {
    display: flex !important;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s;
}
.ba-listing-list-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.ba-listing-list-card .card-img-wrap {
    width: 180px !important;
    min-width: 180px !important;
    height: 130px !important;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.ba-listing-list-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ba-listing-list-card .card-content {
    padding: 12px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}
.ba-listing-list-card .card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.ba-listing-list-card .card-desc {
    font-size: 13px;
    color: #777;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ba-listing-list-card .card-price {
    font-size: 19px;
    font-weight: 700;
    color: var(--orange);
}
.ba-listing-list-card .card-meta {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
}

/* Fix dropdown catégories */
.cat-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    min-width: 200px;
    padding-top: 4px;
}
.cat-dropdown-inner {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 8px 0;
    max-height: 400px;
    overflow-y: auto;
}
.cat-dropdown-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 16px 4px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 4px;
}
.cat-dropdown-item {
    display: block;
    padding: 7px 16px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.1s;
}
.cat-dropdown-item:hover { background: var(--orange-light); color: var(--orange); }
.cat-dropdown-all { font-weight: 600; color: var(--blue); }

/* Catégories - survol CSS pur */
.cat-bar-dropdown-wrap { position: relative !important; }
.cat-bar-dropdown-wrap .cat-dropdown { display: none !important; }
.cat-bar-item .ti-chevron-down { transition: transform 0.2s; }
.cat-bar-dropdown-wrap:hover .ti-chevron-down { transform: rotate(180deg); }
.cat-bar-dropdown-wrap:hover .cat-bar-item { color: var(--orange) !important; }

/* === DROPDOWN CATEGORIES FINAL === */
.cat-bar-dropdown-wrap { position: relative !important; }
.cat-bar-dropdown-wrap .cat-dropdown { display: none !important; }
.cat-bar-dropdown-wrap:hover .cat-dropdown { display: block !important; }
.cat-bar-dropdown-wrap:hover .cat-bar-item { color: var(--orange) !important; }

/* DROPDOWN FINAL */
.cat-bar-dropdown-wrap:hover > .cat-dropdown { display: block !important; }
.cat-bar-dropdown-wrap:hover > .cat-bar-item { color: var(--orange) !important; }
.cat-bar-dropdown-wrap:hover > .cat-bar-item i { color: var(--orange) !important; }

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
    /* Navbar */
    .ba-navbar-top .container { padding: 0 12px; }
    .navbar-logo img { height: 42px !important; }
    .btn-deposer { padding: 6px 12px !important; font-size: 13px !important; }
    #ba-date, #ba-time { display: none !important; }

    /* Hero */
    .ba-hero { padding: 20px 0 !important; }
    .ba-hero h1 { font-size: 1.4rem !important; }
    .ba-hero-search { padding: 12px !important; }
    .ba-hero-search .row { gap: 8px; }
    .ba-hero-search .form-control,
    .ba-hero-search .form-select { height: 40px; font-size: 14px; }
    .ba-hero-search .border-top { display: none; }

    /* Catégories */
    .ba-cat-bar .cat-bar-scroll { padding: 0 8px; }
    .cat-bar-item { padding: 8px 10px !important; font-size: 11px !important; }
    .cat-bar-item i { font-size: 18px !important; }
    .cat-dropdown { position: fixed !important; top: auto !important; bottom: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important; z-index: 9999 !important; }
    .cat-dropdown-inner { border-radius: 16px 16px 0 0 !important; max-height: 60vh; overflow-y: auto; padding: 16px 0 !important; }

    /* Annonces liste */
    .ba-listing-list-card { flex-direction: column !important; }
    .ba-listing-list-card .card-img-wrap { width: 100% !important; height: 180px !important; }
    .ba-listing-list-card .card-content { padding: 10px !important; }

    /* Page annonce */
    .col-lg-8, .col-lg-4 { width: 100% !important; }
    #main-photo { max-height: 260px !important; }

    /* Dashboard */
    .ba-form-card { padding: 16px !important; }
}

@media (max-width: 480px) {
    .ba-hero h1 { font-size: 1.2rem !important; }
    .ba-listing-list-card .card-img-wrap { height: 150px !important; }
    .cat-bar-item span { display: none !important; }
}
EOF# Ajouter CSS responsive complet
cat >> /home/admin/web/bonnesannonces.fr/public_html/public/css/app.css << 'EOF'

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
    /* Navbar */
    .ba-navbar-top .container { padding: 0 12px; }
    .navbar-logo img { height: 42px !important; }
    .btn-deposer { padding: 6px 12px !important; font-size: 13px !important; }
    #ba-date, #ba-time { display: none !important; }

    /* Hero */
    .ba-hero { padding: 20px 0 !important; }
    .ba-hero h1 { font-size: 1.4rem !important; }
    .ba-hero-search { padding: 12px !important; }
    .ba-hero-search .row { gap: 8px; }
    .ba-hero-search .form-control,
    .ba-hero-search .form-select { height: 40px; font-size: 14px; }
    .ba-hero-search .border-top { display: none; }

    /* Catégories */
    .ba-cat-bar .cat-bar-scroll { padding: 0 8px; }
    .cat-bar-item { padding: 8px 10px !important; font-size: 11px !important; }
    .cat-bar-item i { font-size: 18px !important; }
    .cat-dropdown { position: fixed !important; top: auto !important; bottom: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important; z-index: 9999 !important; }
    .cat-dropdown-inner { border-radius: 16px 16px 0 0 !important; max-height: 60vh; overflow-y: auto; padding: 16px 0 !important; }

    /* Annonces liste */
    .ba-listing-list-card { flex-direction: column !important; }
    .ba-listing-list-card .card-img-wrap { width: 100% !important; height: 180px !important; }
    .ba-listing-list-card .card-content { padding: 10px !important; }

    /* Page annonce */
    .col-lg-8, .col-lg-4 { width: 100% !important; }
    #main-photo { max-height: 260px !important; }

    /* Dashboard */
    .ba-form-card { padding: 16px !important; }
}

@media (max-width: 480px) {
    .ba-hero h1 { font-size: 1.2rem !important; }
    .ba-listing-list-card .card-img-wrap { height: 150px !important; }
    .cat-bar-item span { display: none !important; }
}
