/* SECTION TIKTOK AVEC VOTRE CHARTE GRAPHIQUE */
.tiktok-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* FORMES ORGANIQUES COMME VOS AUTRES SECTIONS */
.tiktok-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 180px;
    height: 180px;
    background: rgba(255, 20, 147, 0.08);
    border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%;
    animation: float-tiktok 14s ease-in-out infinite;
}

.tiktok-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: rgba(59, 130, 246, 0.06);
    border-radius: 45% 55% 35% 65% / 55% 35% 65% 45%;
    animation: float-tiktok 10s ease-in-out infinite reverse;
}

@keyframes float-tiktok {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%;
    }
    33% { 
        transform: translateY(-18px) rotate(120deg);
        border-radius: 35% 65% 45% 55% / 65% 35% 55% 45%;
    }
    66% { 
        transform: translateY(8px) rotate(240deg);
        border-radius: 55% 45% 65% 35% / 40% 55% 45% 60%;
    }
}

.tiktok-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.tiktok-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.tiktok-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* PLACEHOLDER VIDÉO STYLE TIKTOK */
.tiktok-video-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.tiktok-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff0050 0%, #ff4081 50%, #e91e63 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.restaurant-theme {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ffa726 100%);
}

.escape-theme {
    background: linear-gradient(135deg, #6a1b99 0%, #8e24aa 50%, #ab47bc 100%);
}

.tiktok-play-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tiktok-play-btn:hover {
    transform: scale(1.1);
    background: white;
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 14px solid var(--primary);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 3px;
}

.tiktok-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.tiktok-logo {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.video-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tiktok-info {
    padding: 1.5rem;
}

.tiktok-info h3 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.tiktok-description {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.tiktok-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    background: var(--bg-alt);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
}

.stat-icon {
    font-size: 0.9rem;
}

.stat-number {
    font-weight: 600;
    color: var(--text);
    font-family: "Montserrat", sans-serif;
}

.tiktok-buttons {
    display: flex;
    gap: 0.6rem;
}

.tiktok-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
}

/* BADGE TRENDING */
.tiktok-badge {
    position: absolute;
    top: 15px;
    right: -8px;
    background: #ff0050;
    color: white;
    padding: 0.3rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    transform: rotate(8deg);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(255, 0, 80, 0.3);
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ANIMATIONS SPÉCIALES */
.tiktok-card:hover .tiktok-play-btn {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.tiktok-card:hover .video-title {
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
    50% { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.5); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tiktok-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tiktok-video-container {
        height: 250px;
    }
    
    .tiktok-info {
        padding: 1.5rem;
    }
    
    .tiktok-buttons {
        flex-direction: column;
    }
    
    .tiktok-stats {
        justify-content: space-around;
        gap: 1rem;
    }
    
    .tiktok-badge {
        top: 10px;
        right: -5px;
        padding: 0.25rem 1.2rem;
    }
    
    .tiktok-play-btn {
        width: 50px;
        height: 50px;
    }
    
    .play-icon {
        border-left-width: 16px;
        border-top-width: 10px;
        border-bottom-width: 10px;
    }
}

@media (max-width: 480px) {
    .tiktok-overlay {
        top: 15px;
        left: 15px;
        right: 15px;
    }
    
    .tiktok-logo {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .video-title {
        font-size: 0.8rem;
    }
    
    .tiktok-stats {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
}