/* =============================================================
   ANNUAIRE.CSS — DESIGN ELITE (Architecture Ordonnée)
   Cible : annuaire/index.php
   ============================================================= */

:root {
    --brand-blue: #0B132B;
    --brand-green: #39FF14;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --border-color: #eee;
}

/* ── Hero Section (Nettoyé) ──────────────────────────────────── */
.dir-hero {
    background: #fbfbfb;
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-h1 {
    font-size: 36px;
    font-weight: 900;
    color: var(--brand-blue);
    margin-top: 0;
    letter-spacing: -1.5px;
}
.hero-h1 em { color: var(--brand-green); font-style: normal; }

.hero-sub {
    color: #777;
    font-size: 16px;
    max-width: 600px;
    margin-bottom: 30px;
}

/* ── Moteur de Recherche Grid ────────────────────────────────── */
.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 180px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.search-form .search-wrapper {
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-right: 1px solid #eee;
}
.search-form .search-wrapper i { color: var(--brand-green); margin-right: 12px; font-size: 18px; }
.search-form select {
    border: none;
    width: 100%;
    height: 54px;
    font-weight: 700;
    font-size: 14px;
    outline: none;
}
.search-form button {
    background: var(--brand-blue);
    color: #fff;
    border: none;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: 0.3s;
}
.search-form button:hover {
    background: var(--brand-green);
    color: var(--brand-blue);
}

/* ── Barre de Filtres par Expertises (Compact) ────────────────── */
.expertise-filter-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    background: #fff;
    padding: 10px 0;
}
.filter-label {
    font-size: 13px;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
    white-space: nowrap;
}
.filter-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none; /* Firefox */
}
.filter-scroll::-webkit-scrollbar { display: none; } /* Safari/Chrome */

.filter-pill {
    white-space: nowrap;
    padding: 6px 16px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
    border: 1px solid transparent;
}
.filter-pill:hover { background: #e2e8f0; color: var(--brand-green); }
.filter-pill.active { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }

/* ── Cartes Entreprises "Elite" (Style Recrutement) ───────────── */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.elite-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.elite-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border-color: var(--brand-green);
}

.elite-card .badge-top {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
}
.elite-card .badge-top svg {
    width: 24px;
    height: 24px;
}

.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;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.elite-card .logo-container img { max-width: 100%; max-height: 100%; object-fit: contain; }

.elite-card .co-info h3 { font-size: 16px; font-weight: 900; margin: 0 0 5px; color: var(--brand-blue); }
.elite-card .co-info .sector { font-size: 12px; font-weight: 700; 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: #f9f9f9; 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: 800;
}
.elite-card .footer .location { color: #999; }
.elite-card .footer .view-btn { color: var(--brand-green); }

/* ── Badges Premium ─────────────────────────────────────────── */
.premium-badge {
    font-size: 9px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}
.b-gold   { background: #FFD700; color: #854d0e; }
.b-silver { background: #E2E2E2; color: #333; }
.b-blue   { background: #1877f2; color: #fff; }

/* ── Titres Magz ────────────────────────────────────────────── */
.block-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
    padding-bottom: 10px;
}
.block-title h2 {
    font-size: 15px;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    color: #333;
    position: relative;
}
.block-title h2:after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--brand-green);
}

/* ── SEO & CTA Sections ──────────────────────────────────────── */
.seo-block {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}
.seo-block h2, .seo-block h3 { color: var(--brand-blue); font-size: 20px; }
.seo-block p { color: #666; font-size: 15px; line-height: 1.7; margin-bottom: 25px; }

.cta-bottom {
    background: var(--brand-blue);
    padding: 60px 40px;
    border-radius: 4px;
    text-align: center;
    color: #fff;
    margin-top: 60px;
}
.cta-bottom h2 { color: #fff; font-size: 28px; margin-bottom: 10px; }
.cta-bottom p { color: rgba(255,255,255,0.7); margin-bottom: 30px; }

.btn-cta-main {
    background: var(--brand-green);
    color: var(--brand-blue);
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}
.btn-cta-main:hover { background: #fff; color: var(--brand-blue); transform: translateY(-3px); }

.btn-cta-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    margin-left: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.3s;
}
.btn-cta-secondary:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .search-form { grid-template-columns: 1fr; }
    .search-form .search-wrapper { border-right: none; border-bottom: 1px solid #eee; }
    .search-form button { height: 50px; }
    .expertises-grid { grid-template-columns: 1fr; }
}
