/* -------------------------
   Footer Compact et Lisible
   ------------------------- */

body {
    padding: 0 !important;
    margin: 0 !important;
}

/* Espace entre le contenu et le footer */
.content-area,
.main-content,
.post-card:last-child,
.home .post-card:last-child {
    margin-bottom: 45px;
}

.main-wrapper, .site-content, .content-area, .main-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

.site-footer {
    margin: 0 !important;
    padding: 24px 40px !important;
    background: #1a1a1a !important;  /* Fond plus foncé pour meilleur contraste */
    color: #fff !important;
    border-top: 1px solid rgba(255,255,255,0.1); /* Séparation subtile */
}

.page-template .site-footer {
    margin-top: 0;
}

.site-footer .inner {
    display: flex !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem !important;
    font-size: 1.3rem !important;
    line-height: 1.5 !important;
    max-width: 1400px;
    margin: 0 auto;
}

/* Copyright à gauche */
.site-footer .copyright {
    margin: 0 !important;
    font-size: 1.4rem !important;
    flex-shrink: 0;
}

.site-footer .copyright a {
    color: #fff !important;
    letter-spacing: -0.015em;
    font-weight: 600;
    text-decoration: none;
}

.site-footer .copyright a:hover {
    opacity: 0.8;
}

/* Réseaux sociaux au centre */
.social-links-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.social-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    transition: all 0.3s ease;
    overflow: hidden;
    color: rgba(255,255,255,0.7);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: transparent;
}

.social-icon:hover svg {
    transform: scale(1.1);
    color: white;
}

.social-icon:hover::before {
    opacity: 1;
}

.facebook-icon::before {
    background: #1877f2;
}

.instagram-icon::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.linkedin-icon::before {
    background: #0a66c2;
}

/* Latest Posts + Menu secondaire à droite */
.latest-posts-link {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.latest-posts-link > a {
    font-weight: 600;
    font-size: 1.4rem;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    color: #fff !important;
    text-decoration: none;
}

.latest-posts-link > a:hover {
    opacity: 0.8;
}

/* Séparateur vertical centré */
.latest-posts-link > a::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.3);
    margin: 0 1rem;
    vertical-align: middle;
}

/* Menu secondaire */
.footer-nav {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav ul {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.footer-nav a {
    text-decoration: none;
    color: rgba(255,255,255,0.7) !important;
    font-weight: 500;
    font-size: 1.3rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: rgba(255,255,255,1) !important;
}

/* Séparateur entre liens du menu secondaire */
/* On retire le séparateur du PREMIER lien car il y a déjà le séparateur de "Latest Posts" */
.footer-nav li:first-child::before {
    display: none;
}

.footer-nav li:first-child a {
    padding-left: 0.3rem;
}

.footer-nav li:not(:first-child)::before {
    content: "•";
    margin-right: 1rem;
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 991px) {
    .site-footer .inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .site-footer .copyright {
        order: 1;
        width: 100%;
        text-align: center;
    }
    
    .social-links-footer {
        order: 2;
    }
    
    .latest-posts-link {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Cacher le séparateur sur mobile */
    .latest-posts-link > a::after {
        display: none;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .site-footer {
        padding: 20px 24px !important;
    }
    
    .site-footer .copyright {
        font-size: 1.3rem !important;
    }
    
    .latest-posts-link {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-nav {
        gap: 0.75rem;
    }
    
    .footer-nav li:not(:first-child)::before {
        margin-right: 0.75rem;
    }
}

/* Social Share buttons (pour les articles) */
.social-share {
    margin: 3rem auto 2rem;
    padding: 0;
}

.social-share .share-title {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid var(--color-border, #e5e7eb);
    background: transparent;
    cursor: pointer;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-button svg {
    width: 20px;
    height: 20px;
}

.share-button.twitter:hover {
    background: #000000;
    border-color: #000000;
    color: white;
}

.share-button.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

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

.share-button.linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: white;
}

.share-button.whatsapp:hover { 
    background: #25d366;
    border-color: #25d366;
    color: white;
}

.share-button.email:hover {
    background: #6b7280;
    border-color: #6b7280;
    color: white;
}

.share-button.copy-link:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: white;
}

/* Style pour les tags dans les cartes d'articles */
a.post-card-primary-tag {
    color: inherit;
    text-decoration: none;
}

a.post-card-primary-tag:hover {
    color: inherit;
    text-decoration: none;
}