/* Social Feed CSS - Version complète */

.social-feed-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.social-feed-container-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.social-feed-header {
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.social-feed-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.social-feed-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Liens réseaux sociaux */
.social-links-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.25);
}

.social-link i {
    font-size: 1.2rem;
}

.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e1306c;
}

.social-link.linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
}

/* Grille responsive */
.social-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Posts */
.social-post {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

/* Embeds natifs */
.social-embed {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 20px;
}

.facebook-embed .fb-page {
    margin: 0 auto;
}

.instagram-embed {
    max-width: 100%;
}

/* Header du post */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.platform-badge {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.post-date {
    color: #999;
    font-size: 0.9rem;
}

/* Image */
.post-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

.social-post:hover .post-image img {
    transform: scale(1.05);
}

/* Contenu */
.post-content {
    padding: 20px;
}

.post-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #333;
}

.post-content p {
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stats */
.post-stats {
    display: flex;
    gap: 20px;
    padding: 0 20px 15px;
    color: #999;
    font-size: 0.9rem;
}

.post-stats i {
    color: #ccc;
    margin-right: 5px;
}

/* Lien */
.post-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.post-link:hover {
    background: #e9ecef;
    color: #212529;
}

/* Loader */
.social-feed-loader {
    text-align: center;
    padding: 60px;
    color: white;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fallback */
.social-feed-fallback {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.fallback-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.fallback-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.fallback-link.facebook { background: #1877f2; }
.fallback-link.instagram { background: #e1306c; }
.fallback-link.linkedin { background: #0a66c2; }

.fallback-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Boutons */
.btn-load-more, .btn-retry {
    padding: 12px 30px;
    background: white;
    color: #764ba2;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-load-more:hover, .btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-retry {
    background: #764ba2;
    color: white;
    margin-top: 20px;
}

/* Animation */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.social-feed-footer {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .social-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .social-feed-title {
        font-size: 2rem;
    }

    .post-image {
        height: 200px;
    }

    .social-embed {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .social-feed-section {
        padding: 60px 15px;
    }

    .social-links-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .social-link {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .fallback-links {
        flex-direction: column;
        align-items: center;
    }
}
