/**
 * Artisan Manager - Front-end Styles
 * 
 * À inclure dans votre thème ou via wp_enqueue_style
 * 
 * @package Artisan_Manager
 * @version 1.0.0
 */

/* ==========================================================================
   Artisan Card (Shortcode & Listings)
   ========================================================================== */

.artisan-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.artisan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.artisan-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

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

.artisan-card-content {
    padding: 20px;
}

.artisan-card-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.artisan-card-title a {
    color: #1d2327;
    text-decoration: none;
}

.artisan-card-title a:hover {
    color: #2271b1;
}

.artisan-card-location {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: #646970;
}

.artisan-card-phone {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
}

.artisan-card-phone a {
    color: #2271b1;
    text-decoration: none;
}

.artisan-card-phone a:hover {
    text-decoration: underline;
}

.artisan-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.artisan-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #f0f6fc;
    color: #0a4b78;
    border-radius: 20px;
}

/* ==========================================================================
   Artisan Grid (pour liste d'artisans)
   ========================================================================== */

.artisan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ==========================================================================
   Artisan Single (page détail)
   ========================================================================== */

.artisan-single {
    max-width: 900px;
    margin: 0 auto;
}

.artisan-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
}

.artisan-thumbnail img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.artisan-info h1 {
    margin: 0 0 15px 0;
    font-size: 2rem;
    color: #1d2327;
}

.artisan-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.artisan-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.artisan-meta-item:last-child {
    border-bottom: none;
}

.artisan-meta-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.artisan-meta-item a {
    color: #2271b1;
    text-decoration: none;
}

.artisan-meta-item a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Sections (Services, Paiements)
   ========================================================================== */

.artisan-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.artisan-section-title {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d2327;
}

.artisan-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.artisan-tags .artisan-tag {
    font-size: 0.85rem;
    padding: 6px 14px;
}

.artisan-tag-paiement {
    background: #e8f5e9;
    color: #1b5e20;
}

/* ==========================================================================
   Map Container
   ========================================================================== */

.artisan-map {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin: 30px 0;
}

.artisan-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   Contact CTA
   ========================================================================== */

.artisan-contact-cta {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.artisan-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.artisan-btn-primary {
    background: #2271b1;
    color: #fff;
}

.artisan-btn-primary:hover {
    background: #135e96;
    color: #fff;
}

.artisan-btn-secondary {
    background: #f0f0f0;
    color: #1d2327;
}

.artisan-btn-secondary:hover {
    background: #e0e0e0;
}

/* ==========================================================================
   Horaires d'ouverture
   ========================================================================== */

.artisan-hours {
    margin: 20px 0;
}

.artisan-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.artisan-hours-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.artisan-hours-day {
    font-weight: 500;
    color: #1d2327;
}

.artisan-hours-time {
    color: #646970;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .artisan-header {
        grid-template-columns: 1fr;
    }
    
    .artisan-contact-cta {
        flex-direction: column;
    }
    
    .artisan-btn {
        justify-content: center;
    }
    
    .artisan-grid {
        grid-template-columns: 1fr;
    }
}
