.lls-annuaire-wrapper {
    --lls-primary: #8c2f39;
    --lls-text: #2b2b2b;
    --lls-muted: #6b6b6b;
    --lls-border: #e6e2dd;
    --lls-bg-alt: #faf8f6;
    font-family: inherit;
    color: var(--lls-text);
}

.lls-carte-container {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.lls-table-container + .lls-carte-container {
    margin-top: 24px;
    margin-bottom: 0;
}

.lls-filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--lls-bg-alt);
    border-radius: 10px;
    border: 1px solid var(--lls-border);
}

.lls-filtre-champ {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
}

.lls-filtre-champ label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--lls-muted);
}

.lls-filtre {
    padding: 8px 12px;
    border: 1px solid var(--lls-border);
    border-radius: 8px;
    background: #fff;
    font-size: 0.95rem;
}

.lls-table-container {
    overflow: auto;
    max-height: var(--lls-table-max-height, 60vh);
    border-radius: 12px;
    border: 1px solid var(--lls-border);
}

.lls-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #fff;
}

.lls-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.lls-table thead th {
    text-align: left;
    padding: 14px 16px;
    background: var(--lls-bg-alt);
    border-bottom: 2px solid var(--lls-border);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lls-muted);
    font-weight: 700;
    white-space: nowrap;
}

.lls-table .lls-sortable {
    cursor: pointer;
    user-select: none;
}

.lls-table .lls-sortable:hover {
    color: var(--lls-primary);
}

.lls-table .lls-sortable::after {
    content: " ⇕";
    opacity: 0.6;
    font-size: 1.1em;
    margin-left: 4px;
}

.lls-table .lls-sortable.lls-sort-asc::after {
    content: " ↑";
    opacity: 1;
    font-size: 1.2em;
    font-weight: 900;
    color: var(--lls-primary);
}

.lls-table .lls-sortable.lls-sort-desc::after {
    content: " ↓";
    opacity: 1;
    font-size: 1.2em;
    font-weight: 900;
    color: var(--lls-primary);
}

.lls-table tbody tr {
    border-bottom: 1px solid var(--lls-border);
    transition: background-color 0.15s ease;
}

.lls-table tbody tr:last-child {
    border-bottom: none;
}

.lls-table tbody tr:hover {
    background-color: var(--lls-bg-alt);
}

.lls-table td {
    padding: 14px 16px;
    vertical-align: middle;
}

.lls-th-logo,
.lls-td-logo {
    width: 60px;
}

.lls-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.lls-logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--lls-bg-alt);
    border: 1px dashed var(--lls-border);
    display: block;
}

.lls-sub-info {
    font-size: 0.82rem;
    color: var(--lls-muted);
    margin-top: 2px;
}

.lls-sub-info a {
    color: var(--lls-primary);
    text-decoration: none;
}

.lls-sub-info a:hover {
    text-decoration: underline;
}

.lls-th-statut,
.lls-td-statut {
    width: 110px;
    white-space: nowrap;
}

.lls-td-contact a {
    color: var(--lls-primary);
    text-decoration: none;
    word-break: break-all;
}

.lls-td-contact a:hover {
    text-decoration: underline;
}

.lls-no-results td {
    text-align: center;
    padding: 30px;
    color: var(--lls-muted);
}

.lls-table.lls-loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

@media (max-width: 768px) {
    .lls-filtre-champ {
        min-width: 100%;
    }

    .lls-table thead {
        display: none;
    }

    .lls-table,
    .lls-table tbody,
    .lls-table tr,
    .lls-table td {
        display: block;
        width: 100%;
    }

    .lls-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--lls-border);
        border-radius: 10px;
        padding: 10px;
    }

    .lls-table td {
        padding: 6px 4px;
        border: none;
    }

    .lls-td-logo {
        display: flex;
        justify-content: flex-start;
    }
}
