/* 
 * PRESTATAIRE PROFILE - COMPACT MODERN
 * Design épuré, compact, animé
 */

:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --primary-color: #6366f1;
    --accent-color: #8b5cf6;
    --text-dark: #111827;
    --text-medium: #4b5563;
    --text-light: #9ca3af;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* --- PAGE --- */
.prestataire-profile-page {
    background: var(--bg-page);
    min-height: 100vh;
    padding-bottom: 80px;
}

/* --- HERO COMPACT --- */
.profile-hero {
    background: var(--primary-gradient);
    padding: 24px 16px 50px;
    position: relative;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at top, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.profile-hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.profile-header-main {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeInUp 0.5s ease-out;
}

/* AVATAR COMPACT */
.profile-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.9);
    overflow: hidden;
    background: white;
    transition: var(--transition);
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e7ff;
    color: var(--primary-color);
}

.profile-avatar-placeholder svg {
    width: 36px;
    height: 36px;
}

.profile-verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #10b981;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: pulse-soft 2s infinite;
}

.profile-verified-badge svg {
    width: 12px;
    height: 12px;
}

/* INFO HEADER */
.profile-header-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 4px;
    line-height: 1.2;
}

.profile-specialty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.profile-specialty i {
    font-size: 0.75rem;
}

/* STATS INLINE */
.profile-header-stats {
    display: flex;
    gap: 20px;
}

.profile-stat {
    text-align: center;
    color: white;
}

.profile-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.profile-stat-value small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.profile-stat-label {
    font-size: 0.7rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- CONTACT CARD --- */
.profile-contact-card {
    max-width: 700px;
    margin: -30px auto 20px;
    padding: 0 16px;
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.profile-contact-grid {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.profile-contact-info {
    flex: 1;
    min-width: 0;
}

.profile-contact-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    font-weight: 600;
}

.profile-contact-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* RATING */
.profile-rating-section {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef3c7;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.profile-rating-section:hover {
    background: #fde68a;
}

.profile-rating-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #92400e;
    line-height: 1;
}

.profile-rating-stars {
    display: flex;
    gap: 2px;
}

.profile-rating-stars svg {
    width: 16px;
    height: 16px;
}

.profile-rating-count {
    font-size: 0.75rem;
    color: #a16207;
    margin-left: auto;
}

/* ACTION BUTTONS */
.profile-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    flex: 1;
}

.profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.profile-btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.profile-btn-secondary {
    background: #f1f5f9;
    color: var(--primary-color);
}

.profile-btn-secondary:hover {
    background: #e0e7ff;
}

.profile-btn-danger {
    background: #fee2e2;
    color: #dc2626;
}

/* --- MAIN CONTENT --- */
.profile-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.5s ease-out;
}

.profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.profile-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.profile-section-title-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.profile-section-badge {
    background: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.profile-section-body {
    /* no padding needed */
}

.profile-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin: 0;
}

/* --- ITEMS GRID --- */
.profile-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.profile-item-card {
    background: #f8fafc;
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.profile-item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: #f1f5f9;
}

.profile-item-image {
    height: 100px;
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
}

.profile-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.profile-item-card:hover .profile-item-image img {
    transform: scale(1.08);
}

.profile-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    gap: 4px;
}

.profile-item-placeholder svg {
    width: 24px;
    height: 24px;
}

.profile-item-placeholder span {
    font-size: 0.65rem;
}

.profile-item-price {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.profile-item-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 3px;
}

.profile-item-content {
    padding: 10px;
}

.profile-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-item-desc {
    font-size: 0.75rem;
    color: var(--text-medium);
    margin: 6px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-item-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 8px;
}

.profile-item-meta svg {
    width: 12px;
    height: 12px;
}

/* LOAD MORE */
.profile-load-more {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.profile-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);
}

.profile-load-more-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f5f3ff;
}

.profile-load-more-btn svg {
    width: 14px;
    height: 14px;
}

/* --- REVIEWS --- */
.profile-reviews-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.profile-reviews-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fef3c7;
    padding: 8px 12px;
    border-radius: 8px;
}

.profile-reviews-avg {
    font-size: 1.25rem;
    font-weight: 800;
    color: #92400e;
}

.profile-reviews-stars {
    display: flex;
    gap: 2px;
}

.profile-reviews-stars svg {
    width: 14px;
    height: 14px;
    color: #f59e0b;
}

.profile-review-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.profile-review-card:hover {
    background: #f1f5f9;
}

.profile-review-card:last-child {
    margin-bottom: 0;
}

.profile-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.profile-review-avatar,
.profile-reviewer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.profile-review-author,
.profile-reviewer-info {
    flex: 1;
    min-width: 0;
}

.profile-review-name,
.profile-reviewer-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.profile-review-date {
    font-size: 0.7rem;
    color: var(--text-light);
}

.profile-review-rating {
    display: flex;
    gap: 2px;
}

.profile-review-rating svg {
    width: 12px;
    height: 12px;
}

.profile-review-text {
    color: var(--text-medium);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* --- EMPTY STATE --- */
.profile-empty {
    text-align: center;
    padding: 30px 16px;
}

.profile-empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-empty-icon svg {
    width: 24px;
    height: 24px;
    color: #94a3b8;
}

.profile-empty h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px;
}

.profile-empty p {
    font-size: 0.8rem;
    color: var(--text-medium);
    margin: 0;
}

/* --- RESPONSIVE --- */
@media (min-width: 640px) {
    .profile-hero {
        padding: 32px 24px 60px;
    }
    
    .profile-avatar {
        width: 90px;
        height: 90px;
    }
    
    .profile-name {
        font-size: 1.75rem;
    }
    
    .profile-contact-grid {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .profile-contact-item {
        flex: 1;
        min-width: 180px;
    }
    
    .profile-rating-section {
        flex: 0 0 auto;
    }
    
    .profile-actions {
        flex: 0 0 auto;
        margin-top: 0;
    }
    
    .profile-items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .profile-item-image {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .profile-header-main {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-header-stats {
        justify-content: center;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .profile-btn {
        width: 100%;
    }
}

/* --- ONLINE STATUS --- */
.profile-online-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
}

.profile-online-status.online {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.profile-online-status.online::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-online 2s infinite;
}

.profile-online-status.offline {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

@keyframes pulse-online {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* --- PROFILE TYPE BADGES --- */
.profile-type-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.profile-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.profile-type-badge.boutique {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile-type-badge.restaurant {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(234, 88, 12, 0.3));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile-type-badge.services {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.3));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- VIDEOS SECTION --- */
.profile-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .profile-videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.profile-video-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a2e;
    aspect-ratio: 9/16;
    cursor: pointer;
    transition: var(--transition);
}

.profile-video-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.profile-video-card video,
.profile-video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
}

.profile-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.profile-video-card:hover .profile-video-play {
    transform: translate(-50%, -50%) scale(1.1);
    background: white;
}

.profile-video-title {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-video-views {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- BOUTIQUE STYLE SECTION --- */
.profile-section.boutique-style {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border: 1px solid #e9d5ff;
}

.profile-section.boutique-style .profile-section-title-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

.profile-section.boutique-style .profile-section-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

/* --- RESTAURANT STYLE SECTION --- */
.profile-section.restaurant-style {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
}

.profile-section.restaurant-style .profile-section-title-icon {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.profile-section.restaurant-style .profile-section-badge {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

/* --- NAV TABS --- */
.profile-nav-tabs {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.profile-nav-tabs::-webkit-scrollbar {
    display: none;
}

.profile-nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-medium);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: transparent;
}

.profile-nav-tab:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

.profile-nav-tab.active {
    background: var(--primary-gradient);
    color: white;
}

.profile-nav-tab .tab-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
}

.profile-nav-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.3);
}

/* --- QUICK STATS CARDS --- */
.profile-quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .profile-quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.profile-quick-stat {
    background: white;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.profile-quick-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.profile-quick-stat-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.profile-quick-stat-icon.services {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
}

.profile-quick-stat-icon.products {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    color: #9333ea;
}

.profile-quick-stat-icon.food {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    color: #ea580c;
}

.profile-quick-stat-icon.videos {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #db2777;
}

.profile-quick-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.profile-quick-stat-label {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* --- VIDEO MODAL --- */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.video-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.video-modal video {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

