/* =============================================================
   CATEGORY.CSS — DESIGN BRAND IDENTITÉ (Bleu & Vert)
   Cible : annuaire/category.php
   ============================================================= */

:root {
    --brand-blue: #0B132B;
    --brand-green: #39FF14;
    --magz-red: #F73F52; /* Fallback for some Magz elements */
    --bg-light: #fbfbfb;
    --border-lite: #eee;
}

/* ── Header Dynamique (Style Institutionnel) ────────────────── */
.dir-header {
    background: var(--brand-blue);
    color: #fff;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}
.dir-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-green);
}

.dir-breadcrumb {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dir-breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.dir-breadcrumb a:hover { color: var(--brand-green); }
.dir-breadcrumb span { color: rgba(255,255,255,0.3); }

.dir-h1 {
    font-size: clamp(24px, 5vw, 38px);
    font-weight: 900;
    margin: 0 0 15px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.dir-intro {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    max-width: 800px;
    line-height: 1.6;
    margin-bottom: 25px;
}
.dir-intro strong { color: var(--brand-green); }

.result-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(57, 255, 20, 0.1);
    color: var(--brand-green);
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

/* ── Grille de Résultats & Elite Cards ──────────────────────── */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* On réutilise le style Elite Card mais adapté aux couleurs brand */
.elite-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.elite-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border-color: var(--brand-green);
}

.elite-card .badge-top {
    position: absolute;
    top: 15px;
    right: 15px;
}

.elite-card .logo-container {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 10px;
}
.elite-card .logo-container img { max-width: 100%; max-height: 100%; object-fit: contain; }

.elite-card h3 { font-size: 16px; font-weight: 900; margin: 0 0 5px; color: var(--brand-blue); }
.elite-card .sector { font-size: 11px; font-weight: 800; color: #aaa; text-transform: uppercase; margin-bottom: 15px; }

.elite-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-bottom: 20px;
}
.elite-card .tag { font-size: 10px; font-weight: 800; background: #f8f9fa; padding: 3px 10px; border-radius: 20px; color: #666; }

.elite-card .footer {
    width: 100%;
    padding-top: 15px;
    border-top: 1px dotted #eee;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 900;
}
.elite-card .location { color: #999; }
.elite-card .view-btn { color: var(--brand-green); }

/* ── Sidebar (Style Magz) ────────────────────────────────────── */
.sidebar-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    margin-bottom: 30px;
}
.sidebar-title {
    font-size: 14px;
    font-weight: 900;
    color: var(--brand-blue);
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-title i { color: var(--brand-green); font-size: 18px; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #555;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid #f9f9f9;
}
.sidebar-link i { font-size: 10px; color: #ccc; }
.sidebar-link:hover { color: var(--brand-green); padding-left: 5px; }

/* ── No Result ──────────────────────────────────────────────── */
.no-result {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border: 1px dashed #ddd;
    border-radius: 4px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .dir-header { padding: 40px 0; }
    .companies-grid { grid-template-columns: 1fr; }
}