* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #16181d;
    color: #e6e6e6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
header {
    background: #1f232b;
    border-bottom: 1px solid #2c323b;
    padding: 16px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    color: #ff6e14;
    text-decoration: none;
}

.logo span {
    color: #e6e6e6;
}

nav a {
    color: #9aa0a8;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    font-size: 14px;
}

nav a:hover {
    color: #ff6e14;
}

.btn-post {
    background: #ff6e14;
    color: #fff !important;
    padding: 10px 16px;
    border-radius: 4px;
}

.btn-post:hover {
    background: #e55d0a;
}

/* Main */
main {
    padding: 24px 16px;
    min-height: 60vh;
}

/* Slogan / hero */
.hero h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.hero p {
    color: #9aa0a8;
    margin-bottom: 24px;
}

.input-search {
    flex: 1;
    padding: 10px;
    border: 1px solid #2c323b;
    border-radius: 4px;
    background: #1f232b;
    color: #e6e6e6;
    outline: none;
}

.input-search:focus {
    border-color: #ff6e14;
}

/* Grille d'annonces */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.card {
    background: #1f232b;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2c323b;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-color: #ff6e14;
    transform: translateY(-2px);
}

.card-img {
    height: 160px;
    background: #2a2f38;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c737d;
    font-size: 13px;
}

.card-body {
    padding: 12px;
}

.card-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 13px;
    color: #6c737d;
    margin-bottom: 6px;
}

.card-price {
    color: #ff6e14;
    font-weight: 800;
    font-size: 18px;
}

/* Détail d'annonce */
.detail {
    background: #1f232b;
    border: 1px solid #2c323b;
    border-radius: 8px;
    padding: 24px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.detail-img {
    height: 300px;
    background: #2a2f38;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c737d;
}

.detail h1 {
    font-size: 24px;
    margin: 16px 0 8px;
}

.detail-price {
    font-size: 28px;
    font-weight: 800;
    color: #ff6e14;
    margin-bottom: 8px;
}

.detail-desc {
    line-height: 1.6;
    color: #b6bcc4;
}

.detail-cat {
    color: #6c737d;
    margin-bottom: 16px;
}

.sidebar {
    background: #2a2f38;
    border: 1px solid #2c323b;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
}

.sidebar h3 {
    margin-bottom: 12px;
}

.sidebar p {
    margin-bottom: 12px;
    color: #9aa0a8;
    font-size: 14px;
}

.btn-contact {
    display: block;
    width: 100%;
    text-align: center;
    background: #ff6e14;
    color: #fff;
    padding: 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.btn-contact:hover {
    background: #e55d0a;
}

/* Footer */
footer {
    background: #1f232b;
    border-top: 1px solid #2c323b;
    padding: 16px 0;
    text-align: center;
    color: #6c737d;
    font-size: 13px;
}

.btn-back {
    display: inline-block;
    margin-bottom: 16px;
    color: #ff6e14;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

@media (max-width: 768px) {
    .detail {
        grid-template-columns: 1fr;
    }
    .header-inner {
        flex-direction: column;
        gap: 12px;
    }
}