/* Styles spécifiques à la page artisans */

/* Hero Section */
.artisans-hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.min-vh-70 {
    min-height: 70vh;
}

.artisan-search-form .input-group {
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.artisan-search-form .form-control {
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
}

.artisan-search-form .btn {
    padding: 15px 25px;
}

/* Filtres */
.filters-sidebar {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.filter-option:hover {
    background-color: #e9ecef;
    color: #495057;
    text-decoration: none;
}

.filter-option.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.filter-option.active .badge {
    background-color: white !important;
    color: #007bff !important;
}

/* Cartes Artisans */
.artisan-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.artisan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.artisan-header {
    position: relative;
    padding: 0;
}

.artisan-image {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.artisan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artisan-card:hover .artisan-image img {
    transform: scale(1.05);
}

.artisan-image-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #6c757d;
    font-size: 4rem;
}

.artisan-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.artisan-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.artisan-location {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.artisan-name {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #212529;
    font-size: 1.2rem;
}

.artisan-category {
    margin-bottom: 1rem;
}

.artisan-bio {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.artisan-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.artisan-stats .stat {
    text-align: center;
}

.artisan-stats .stat strong {
    display: block;
    font-size: 1.25rem;
    color: #212529;
}

.artisan-stats .stat small {
    color: #6c757d;
    font-size: 0.8rem;
}

.artisan-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.artisan-rating .stars {
    color: #ffc107;
}

.artisan-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* État vide */
.empty-state {
    padding: 3rem 1rem;
}

.empty-state i {
    opacity: 0.5;
}

/* Section CTA */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .artisans-hero-section {
        padding: 80px 0;
    }
    
    .min-vh-70 {
        min-height: 50vh;
    }
    
    .artisan-search-form .form-control {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .artisan-card {
        margin-bottom: 1rem;
    }
    
    .artisan-stats {
        padding: 0.75rem 0;
    }
    
    .artisan-stats .stat strong {
        font-size: 1.1rem;
    }
}

/* Animation de chargement */
.artisan-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.artisan-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
