/* Barre de recherche */
.mca-search-box {
    margin-bottom: 20px;
}

.mca-search-field {
    position: relative;
    max-width: 500px;
    margin: 0 auto 30px auto;
}

.mca-search-field input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mca-search-field input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.2);
}

/* Formulaire de liste déroulante */
.mca-search-form {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.mca-form-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

#mca-category-select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    min-width: 250px;
}

.mca-search-form button {
    padding: 12px 25px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mca-search-form button:hover {
    background: #005a87;
}

.mca-clear-filters {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    padding: 12px 15px;
}

.mca-clear-filters:hover {
    color: #333;
    text-decoration: underline;
}

/* Suggestions de catégories */
.mca-category-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #007cba;
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.mca-category-suggestion-item {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mca-category-suggestion-item:hover {
    background-color: #f8f9fa;
}

.mca-category-suggestion-item:last-child {
    border-bottom: none;
}

.mca-category-suggestion-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.mca-category-suggestion-count {
    font-size: 0.85em;
    color: #666;
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 12px;
}

.mca-suggestion-loading,
.mca-suggestion-empty,
.mca-suggestion-error {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Catégorie sélectionnée */
.mca-selected-category {
    margin-bottom: 30px;
    text-align: center;
}

.mca-selected-category-content {
    display: inline-flex;
    align-items: center;
    background: #007cba;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 124, 186, 0.3);
}

.mca-selected-category-name {
    font-weight: 600;
    font-size: 18px;
    margin-right: 15px;
}

.mca-clear-category {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.mca-clear-category:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* En-tête de catégorie */
.mca-category-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.mca-category-header h2 {
    color: #333;
    margin: 0;
    font-size: 2em;
    font-weight: 600;
}

/* Message d'accueil */
.mca-welcome-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.mca-welcome-message h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 2em;
}

.mca-welcome-message p {
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid des professionnels */
.mca-professionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Cartes des professionnels */
.mca-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mca-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.mca-card-thumb {
    height: 120px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mca-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mca-card-thumb-placeholder {
    font-size: 3em;
    color: #ccc;
}

.mca-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mca-card-body h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
}

.mca-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.mca-badge {
    background: #007cba;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
}

.mca-verified {
    color: #28a745;
    font-size: 0.8em;
    font-weight: 500;
}

.mca-card-desc {
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.mca-card-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mca-card-contact li {
    padding: 6px 0;
    color: #555;
    display: flex;
    align-items: center;
}

.mca-card-contact li a {
    color: #007cba;
    text-decoration: none;
}

.mca-card-contact li a:hover {
    text-decoration: underline;
}

/* États de chargement */
.mca-loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.mca-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mca-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1em;
    background: #f8f9fa;
    border-radius: 12px;
}

.mca-error {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
    background: #f8d7da;
    border-radius: 8px;
}

/* Pagination */
.mca-pagination {
    text-align: center;
    margin-top: 40px;
}

.mca-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #007cba;
    transition: all 0.3s ease;
}

.mca-pagination .page-numbers.current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.mca-pagination .page-numbers:hover {
    background: #f8f9fa;
    border-color: #007cba;
}

/* Responsive */
@media (max-width: 768px) {
    .mca-search-field {
        max-width: 100%;
    }
    
    .mca-form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    #mca-category-select {
        min-width: auto;
        width: 100%;
    }
    
    .mca-professionals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mca-card-body {
        padding: 20px;
    }
    
    .mca-category-header h2 {
        font-size: 1.5em;
    }
    
    .mca-selected-category-content {
        padding: 10px 20px;
    }
}