.afd-annuaire-wrap {
    width: 100%;
}

.afd-search-bar {
    margin-bottom: 28px;
}

.afd-search-bar input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.4;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    box-sizing: border-box;
    background: #ffffff;
}

.afd-search-bar input:focus {
    outline: none;
    border-color: #999999;
}

.afd-loading,
.afd-error,
.afd-scroll-loader {
    margin: 16px 0 24px;
    font-size: 15px;
    line-height: 1.5;
    color: #555555;
}

.afd-section {
    margin-bottom: 40px;
}

.afd-section-title {
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 1.2;
}

.afd-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.afd-card {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.afd-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #8a6500;
    background: #fff7d6;
    border: 1px solid #f2e3a3;
    border-radius: 999px;
    padding: 8px 12px;
    margin-bottom: 14px;
    width: fit-content;
}

.afd-card-title {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 14px;
    font-weight: 700;
    word-break: break-word;
}

.afd-card-row {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.afd-card-row strong {
    display: block;
    margin-bottom: 4px;
}

.afd-card-link {
    margin-top: auto;
    display: inline-block;
    padding-top: 8px;
    font-weight: 600;
    text-decoration: none;
}

.afd-card-link:hover,
.afd-card-link:focus {
    text-decoration: underline;
}

.afd-empty-message {
    margin-top: 12px;
    color: #666666;
}

.afd-hidden {
    display: none;
}

@media (max-width: 980px) {
    .afd-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .afd-grid {
        grid-template-columns: 1fr;
    }

    .afd-section-title {
        font-size: 24px;
    }

    .afd-card-title {
        font-size: 20px;
    }
}