:root {
    --gmod-bg: #0f1319;
    --gmod-card: #1a212b;
    --gmod-blue: #177ebb;
    --gmod-blue-hover: #1b8cd2;
    --gmod-text-gray: #8b99a6;
    --gmod-border: #232c39;
    --gmod-stars: #4b5866;
}

body { background-color: var(--gmod-bg); color: #e2e8f0; font-family: 'Segoe UI', sans-serif; }

/* --- HERO SECTION --- */
.hero-background-pattern {
    background-color: #0c1015;
    background-image: repeating-linear-gradient(45deg, #10141a 25%, transparent 25%, transparent 75%, #10141a 75%, #10141a), repeating-linear-gradient(45deg, #10141a 25%, #0c1015 25%, #0c1015 75%, #10141a 75%, #10141a);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    padding: 40px 0;
    border-bottom: 1px solid var(--gmod-border);
}
.hero-container { max-width: 1100px; margin: 0 auto; }
.featured-block { display: flex; height: 350px; background: var(--gmod-card); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.featured-left { 
    flex: 2; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
    display: flex; 
    align-items: flex-end; /* Force la barre à rester tout en bas */
}
/* LA BARRE ALIGNÉE EN BAS DE L'IMAGE HERO */
.featured-bottom-bar { 
    width: 100%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: rgba(15, 19, 25, 0.85); /* Fond sombre Gmodstore */
    padding: 10px 20px; 
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.featured-bar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.featured-price { 
    background: var(--gmod-card); 
    color: white; 
    padding: 6px 15px; 
    border-radius: 3px; 
    border: 1px solid var(--gmod-border); 
    font-weight: bold; 
    font-size: 0.85rem; 
}
.featured-bottom-bar h2 { margin: 0; font-size: 0.95rem; color: white; display: flex; align-items: center; gap: 10px; font-weight: bold; }

.featured-right { flex: 1; display: flex; flex-direction: column; padding: 15px; background: var(--gmod-card); border-left: 1px solid var(--gmod-border); }
.featured-thumbnails { display: flex; gap: 10px; height: 80px; margin-bottom: 15px; }
.featured-thumbnails .thumb { flex: 1; background-size: cover; background-position: center; border: 1px solid var(--gmod-border); }
.featured-desc h3 { font-size: 1.1rem; margin: 0 0 10px 0; color: white; }
.featured-desc p { font-size: 0.85rem; color: var(--gmod-text-gray); line-height: 1.5; margin: 0; flex-grow: 1; }
.featured-action { margin-top: auto; text-align: right; }
.btn-gmod { background: var(--gmod-blue); color: white; padding: 8px 20px; text-decoration: none; font-weight: bold; border-radius: 3px; font-size: 0.9rem; transition: 0.2s; display: inline-block; }
.btn-gmod:hover { background: var(--gmod-blue-hover); }

/* --- SEARCH BAR --- */
.search-container { text-align: center; margin: 30px 0; }
.gmod-search { display: inline-flex; background: #131820; border: 1px solid var(--gmod-border); border-radius: 4px; overflow: hidden; width: 500px; max-width: 90%; }
.gmod-search i { padding: 12px 15px; color: var(--gmod-text-gray); font-size: 1rem; }
.gmod-search input { flex: 1; background: transparent; border: none; color: white; font-size: 0.95rem; outline: none; }
.gmod-search button { background: var(--gmod-blue); color: white; border: none; padding: 0 25px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.gmod-search button:hover { background: var(--gmod-blue-hover); }

/* --- GRIDS & CARDS --- */
.main-content { padding-bottom: 80px; max-width: 1200px; }
.section-heading { margin-bottom: 15px; display: flex; align-items: center; }
.section-heading h2 { font-size: 1.3rem; margin: 0; color: #fff; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.section-heading h2 i { color: var(--gmod-text-gray); font-size: 1rem; cursor: help; }

.gmod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gmod-card { background: var(--gmod-card); border-radius: 4px; border: 1px solid var(--gmod-border); text-decoration: none; color: white; display: flex; flex-direction: column; overflow: hidden; transition: 0.2s; }
.gmod-card:hover { border-color: #3b4656; }
.card-img { height: 140px; background-size: cover; background-position: center; position: relative; }
.label-new { position: absolute; bottom: 10px; left: 10px; background: #27ae60; color: white; font-size: 0.7rem; font-weight: bold; padding: 3px 6px; border-radius: 2px; }

.card-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.card-title-row { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.card-avatar { width: 16px; height: 16px; border-radius: 2px; object-fit: cover; }
.card-title { font-size: 0.85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; color: white; }

.card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; }
.card-stars { color: var(--gmod-stars); font-size: 0.7rem; display: flex; align-items: center; gap: 2px; }
.review-count { color: var(--gmod-text-gray); margin-left: 4px; font-weight: bold; }
.card-price { background: var(--gmod-blue); color: white; padding: 6px 12px; font-size: 0.8rem; font-weight: bold; border-radius: 3px; }

/* --- JOB CARDS --- */
.job-card-gmod { padding: 15px; display: flex; flex-direction: column; gap: 12px; }
.job-card-title { font-weight: 600; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-card-cat { font-size: 0.8rem; color: var(--gmod-text-gray); }
.job-card-user { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.job-card-user img { width: 35px; height: 35px; border-radius: 4px; object-fit: cover; }
.job-user-info { display: flex; flex-direction: column; }
.job-username { font-size: 0.9rem; font-weight: bold; }
.job-role { font-size: 0.75rem; color: var(--gmod-text-gray); }
.job-card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.job-time { font-size: 0.75rem; color: var(--gmod-text-gray); }
.job-budget { background: var(--gmod-blue); color: white; padding: 5px 12px; border-radius: 3px; font-weight: bold; font-size: 0.85rem; }

.btn-gmod-outline { display: inline-block; background: transparent; border: 1px solid var(--gmod-blue); color: white; padding: 8px 25px; border-radius: 3px; font-size: 0.9rem; text-decoration: none; transition: 0.2s; }
.btn-gmod-outline:hover { background: var(--gmod-blue); }