/* ============================================================
   EDUCOJEUX - Autocomplétion SIRENE
   ============================================================ */

.educojeux-sirene-wrapper {
    position: relative;
}

.educojeux-sirene-help {
    display: block;
    margin-top: 4px;
    color: #5a6473;
    font-size: 0.85rem;
    line-height: 1.3;
}

.educojeux-sirene-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 9999;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    max-height: 360px;
    overflow-y: auto;
}

.educojeux-sirene-hint {
    padding: 12px 14px;
    color: #667085;
    font-size: 0.9rem;
    font-style: italic;
}

.educojeux-sirene-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f0f2f5;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.educojeux-sirene-item:last-child {
    border-bottom: none;
}

.educojeux-sirene-item:hover,
.educojeux-sirene-item:focus {
    background: #f4f7fb;
    outline: none;
}

.educojeux-sirene-name {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.educojeux-sirene-meta {
    display: block;
    font-size: 0.82rem;
    color: #667085;
}

.educojeux-sirene-badge {
    display: inline-block;
    background: #667085;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.2px;
}

.educojeux-sirene-badge--co {
    background: #000091;
}

/* --- Chips de filtre (Toutes / Communes / Intercommunalités) --- */
.educojeux-sirene-filters {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.educojeux-sirene-chip {
    background: #fff;
    border: 1px solid #d0d5dd;
    color: #475467;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.2;
}

.educojeux-sirene-chip:hover {
    border-color: #000091;
    color: #000091;
}

.educojeux-sirene-chip.is-active {
    background: #000091;
    border-color: #000091;
    color: #fff;
}

.educojeux-sirene-chip.is-active:hover {
    background: #000074;
}

/* --- Bandeau "Filtré sur le code postal X" --- */
.educojeux-sirene-cp-info {
    margin-top: 6px;
    padding: 5px 10px;
    background: #f0f4ff;
    color: #000091;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 500;
    display: inline-block;
}

.educojeux-sirene-cp-info::before {
    content: '📍 ';
    margin-right: 4px;
}
