/*
===============================================================================
MARKETPLACE PAGE STYLES
===============================================================================
Styles pour la page marketplace des services - BookConnect
Sections : Hero, Fonctionnement, Catégories, Prestataires, Services Premium, Plumes
===============================================================================
*/

/* ===== VARIABLES CSS ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --marketplace-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --success-color: #10b981;
    --warning-color: #fbbf24;
    --primary-blue: #3b82f6;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-light: #f8fafc;
    --bg-gray: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ===== SECTION HERO MARKETPLACE ===== */
.marketplace-hero {
    background: var(--marketplace-gradient);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
}

.marketplace-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.marketplace-hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Statistiques Hero */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== SECTION FONCTIONNEMENT MARKETPLACE ===== */
.marketplace-overview {
    padding: 5rem 0;
    background: var(--bg-light);
}

.marketplace-overview h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 2.5rem;
}

.marketplace-overview p {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.marketplace-timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    position: relative;
    gap: 1rem;
}

.marketplace-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: var(--bg-gray);
    z-index: 1;
}

.timeline-step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
    background: white;
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    max-width: 220px;
    margin: 0 auto;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-gray);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 1rem;
    transition: var(--transition);
}

.timeline-step.active .step-number {
    background: var(--marketplace-gradient);
    color: white;
}

.timeline-step h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

.timeline-step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* ===== SECTION CATÉGORIES MARKETPLACE ===== */
.marketplace-categories {
    padding: 5rem 0;
    background: white;
}

.marketplace-categories h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-size: 2.5rem;
}

.category-detail {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.category-detail.visible {
    opacity: 1;
    transform: translateY(0);
}

/* En-tête des catégories */
.category-header {
    background: linear-gradient(135deg, #f1f5f9 0%, var(--bg-gray) 100%);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-badge {
    background: var(--marketplace-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.category-header h3 {
    flex: 1;
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.coverage {
    background: var(--success-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Contenu des catégories */
.category-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.category-services h4,
.category-providers h4,
.category-pricing h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-services ul,
.category-providers ul {
    list-style: none;
    padding: 0;
}

.category-services li,
.category-providers li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    padding-left: 1.5rem;
}

.category-services li::before,
.category-providers li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

.pricing-ranges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.price-range {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.service-name {
    font-weight: 500;
    color: var(--text-primary);
}

.price-from {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.9rem;
}

/* ===== SECTION PRESTATAIRES VEDETTES ===== */
.featured-providers {
    padding: 5rem 0;
    background: var(--bg-light);
}

.featured-providers h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 2.5rem;
}

.featured-providers p {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.provider-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.provider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--marketplace-gradient);
}

.provider-avatar {
    position: relative;
    margin-bottom: 1.5rem;
}

.provider-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-light);
}

.provider-badge {
    position: absolute;
    top: -5px;
    right: 10px;
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.provider-info h4 {
    margin: 0 0 0.25rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.provider-specialty {
    color: var(--marketplace-gradient);
    font-weight: 600;
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}

.provider-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 1rem;
}

.provider-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.provider-stats span {
    background: var(--bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.provider-price {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.provider-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-contact,
.btn-portfolio {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-contact {
    background: var(--marketplace-gradient);
    color: white;
}

.btn-contact:hover {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    transform: translateY(-1px);
}

.btn-portfolio {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--bg-gray);
}

.btn-portfolio:hover {
    background: var(--bg-light);
    border-color: var(--marketplace-gradient);
    color: var(--marketplace-gradient);
}

/* ===== SECTION SERVICES BOOKCONNECT ===== */
.bookconnect-services {
    padding: 5rem 0;
    background: white;
}

.bookconnect-services h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 2.5rem;
}

.bookconnect-services p {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.premium-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.premium-service {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.premium-service:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--marketplace-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.service-icon i {
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.premium-service h4 {
    margin: 0 0 1rem;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.premium-service p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.premium-service ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.premium-service li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.premium-service li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

/* ===== SECTION PLUMES MARKETPLACE ===== */
.marketplace-plumes {
    padding: 5rem 0;
    background: var(--bg-light);
}

.marketplace-plumes h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-size: 2.5rem;
}

.plumes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.plumes-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.plumes-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.earn-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.earn-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
}

.earn-action {
    font-weight: 500;
    color: var(--text-primary);
}

.earn-points {
    font-weight: 700;
    color: var(--success-color);
    font-size: 0.9rem;
}

.spend-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.spend-category h4 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.spend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
    margin-bottom: 0.5rem;
}

.spend-service {
    font-weight: 500;
    color: var(--text-primary);
}

.spend-cost {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 0.9rem;
}

/* ===== SECTION CTA ===== */
.cta-section {
    background: var(--secondary-gradient);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--text-primary);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Hero responsive */
    .marketplace-hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Timeline responsive */
    .marketplace-timeline {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .marketplace-timeline::before {
        display: none;
    }
    
    .timeline-step {
        max-width: 300px;
        width: 100%;
    }
    
    /* Catégories responsive */
    .category-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Prestataires responsive */
    .providers-grid {
        grid-template-columns: 1fr;
    }
    
    .provider-actions {
        flex-direction: column;
    }
    
    /* Services premium responsive */
    .premium-services {
        grid-template-columns: 1fr;
    }
    
    /* Plumes responsive */
    .plumes-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* CTA responsive */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .marketplace-hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-item strong {
        font-size: 1.5rem;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .category-header h3 {
        font-size: 1.2rem;
    }
    
    .provider-card {
        padding: 1.5rem;
    }
    
    .provider-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .premium-service {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
}

/* ===== ANIMATIONS SPÉCIALES MARKETPLACE ===== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.provider-badge {
    animation: pulse 2s ease-in-out infinite;
}

.category-badge:hover {
    transform: scale(1.1) rotate(5deg);
}

.earn-item:hover,
.spend-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

/*
===============================================================================
FIN DU FICHIER MARKETPLACE.CSS
===============================================================================
*/
