/**
 * ==========================================
 * CSS COMPLÉMENTAIRE - TEMPLATES ARTISAN & COIFFEUR
 * ==========================================
 * Version 1.0
 * Styles additionnels pour animations et effets spéciaux
 * À inclure APRÈS pizzeria.css
 */

/* ==========================================
   ANIMATIONS BADGE URGENCE (Artisan)
   ========================================== */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 51, 51, 0);
    }
}

.urgence-badge {
    animation: pulse 2s infinite;
}

/* ==========================================
   GLASSMORPHISM (Artisan & Coiffeur)
   ========================================== */

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card-strong {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

/* ==========================================
   SLIDER AVANT/APRÈS (Coiffeur & Artisan)
   ========================================== */

.before-after-slider {
    position: relative;
    overflow: hidden;
    cursor: ew-resize;
}

.before-after-slider .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.before-after-slider .before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.before-after-slider .slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: ew-resize;
    transition: transform 0.2s ease;
}

.before-after-slider .slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.before-after-slider .slider-handle::before,
.before-after-slider .slider-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 2px;
    height: 100vh;
    background: white;
    opacity: 0.5;
}

.before-after-slider .slider-handle::before {
    right: 50%;
    transform: translateY(-50%);
}

.before-after-slider .slider-handle::after {
    left: 50%;
    transform: translateY(-50%);
}

/* ==========================================
   BADGES & LABELS
   ========================================== */

.badge-populaire {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    display: inline-block;
}

.badge-urgence {
    background: #FF3333;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

.badge-nouveau {
    background: #00C853;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ==========================================
   FILTRES (Réalisations)
   ========================================== */

.filter-btn {
    background: white;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.filter-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.filter-btn.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ==========================================
   LIGHTBOX
   ========================================== */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    padding: 2rem;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    max-width: 1200px;
    margin: 3rem auto 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    animation: fadeInUp 0.4s ease;
}

.lightbox-close {
    position: absolute;
    top: -10px;
    right: 0;
    background: white;
    color: #333;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-close:hover {
    background: #f0f0f0;
    transform: rotate(90deg);
}

/* ==========================================
   CARDS AMÉLIORÉES
   ========================================== */

.service-card,
.realisation-card,
.team-member-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card:hover,
.realisation-card:hover,
.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* ==========================================
   GRADIENT OVERLAYS
   ========================================== */

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.gradient-overlay-light {
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,0.95));
}

/* ==========================================
   STAT BADGES (Années d'expérience, etc.)
   ========================================== */

.stat-badge {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-align: center;
    min-width: 150px;
}

.stat-badge-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-badge-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 600;
}

/* ==========================================
   ICON CIRCLES (Colorés)
   ========================================== */

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.icon-circle-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.icon-circle-solid {
    background: var(--color-primary);
}

/* ==========================================
   SPECIALTY BADGES (Coiffeur)
   ========================================== */

.specialty-badge {
    background: #f8f9fa;
    color: var(--color-primary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 600;
    border: 2px solid var(--color-primary);
    display: inline-block;
    transition: all 0.3s ease;
}

.specialty-badge:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* ==========================================
   ZONE INTERVENTION (Artisan)
   ========================================== */

.zone-badge {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: white;
    display: inline-block;
    margin: 0.25rem;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ==========================================
   STAR RATING
   ========================================== */

.star-rating {
    display: inline-flex;
    gap: 0.25rem;
    color: #FFD700;
    font-size: 1.25rem;
}

.star-rating .star-empty {
    color: #ddd;
}

/* ==========================================
   HOVER EFFECTS AVANCÉS
   ========================================== */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg) scale(1.05);
}

/* ==========================================
   LOADING SPINNER
   ========================================== */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* ==========================================
   TIMELINE (Pour historique équipe)
   ========================================== */

.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--color-primary);
    opacity: 0.3;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--color-primary);
}

/* ==========================================
   PRICE TAG
   ========================================== */

.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.price-tag-small {
    font-size: 0.875rem;
    color: #666;
    font-weight: 400;
}

.price-tag-highlight {
    background: var(--color-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

/* ==========================================
   CATEGORY COLOR DOTS
   ========================================== */

.category-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-warning {
    border-left: 4px solid #ffc107;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

/* ==========================================
   RESPONSIVE OVERRIDES
   ========================================== */

@media (max-width: 768px) {
    .before-after-slider .slider-handle {
        width: 40px;
        height: 40px;
    }
    
    .stat-badge {
        min-width: 120px;
        padding: 1rem;
    }
    
    .stat-badge-number {
        font-size: 2rem;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

/* ==========================================
   UTILITIES
   ========================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.rounded-xl {
    border-radius: 20px;
}

.rounded-2xl {
    border-radius: 30px;
}

.shadow-xl {
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.shadow-2xl {
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}
