/* ================================================
   BOUTONS DE PARTAGE SOCIAL - CHARTE ZAHRA TV
   ================================================ */

/* Container des boutons de partage */
.share-post {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 30px 0;
    margin: 30px 0;
    justify-content: flex-start;
    align-items: center;
    list-style: none;
}

/* Reset des styles par défaut */
ul.share-post {
    padding: 0;
    margin: 30px 0;
}

ul.share-post li {
    list-style: none;
    margin: 0;
    padding: 0;
    float: none;
    display: inline-block;
}

/* Styles des boutons avec couleurs ZAHRA TV */
ul.share-post li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    color: white;
    float: none;
    margin: 0;
}

/* Effet brillance au survol */
ul.share-post li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    font-family: inherit;
    font-size: inherit;
    display: block;
    margin: 0;
    font-weight: normal;
}

ul.share-post li a:hover::before {
    left: 100%;
}

ul.share-post li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    opacity: 1;
}

/* FACEBOOK - Dégradé vert ZAHRA TV */
.facebook-share {
    background: linear-gradient(135deg, var(--zahra-vert-moyen), var(--zahra-vert-fonce)) !important;
    color: white !important;
}

.facebook-share:hover {
    background: linear-gradient(135deg, var(--zahra-vert-fonce), #003d2e) !important;
}

/* TWITTER - Dégradé doré ZAHRA TV */
.twitter-share {
    background: linear-gradient(135deg, var(--zahra-dore-clair), var(--zahra-dore-profond)) !important;
    color: var(--zahra-vert-fonce) !important;
}

.twitter-share:hover {
    background: linear-gradient(135deg, var(--zahra-dore-profond), #9e7a3a) !important;
}

/* PINTEREST - Vert foncé ZAHRA TV */
.pinterest-share {
    background: linear-gradient(135deg, var(--zahra-vert-fonce), #003d2e) !important;
    color: var(--zahra-dore-clair) !important;
}

.pinterest-share:hover {
    background: linear-gradient(135deg, #003d2e, #002418) !important;
}

/* Icônes FontAwesome */
.facebook-share i,
.twitter-share i,
.pinterest-share i {
    font-size: 18px;
    margin: 0;
}

/* Alternative si pas d'icône FontAwesome - utiliser les before */
.facebook-share::after {
    content: "\f09a";
    font-family: "FontAwesome";
    font-size: 18px;
    margin-right: 8px;
    order: -1;
}

.twitter-share::after {
    content: "\f099";
    font-family: "FontAwesome";
    font-size: 18px;
    margin-right: 8px;
    order: -1;
}

.pinterest-share::after {
    content: "\f0d2";
    font-family: "FontAwesome";
    font-size: 18px;
    margin-right: 8px;
    order: -1;
}

/* RESPONSIVE - Mobile */
@media (max-width: 767px) {
    .share-post {
        justify-content: center;
        gap: 10px;
    }
    
    ul.share-post li a {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .facebook-share::after,
    .twitter-share::after,
    .pinterest-share::after {
        font-size: 16px;
    }
}

@media (max-width: 479px) {
    .share-post {
        flex-direction: column;
        align-items: stretch;
    }
    
    ul.share-post li {
        width: 100%;
    }
    
    ul.share-post li a {
        width: 100%;
        justify-content: center;
    }
}

/* Fix pour la section réseaux sociaux (sidebar) */
#social_counts.square {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
}

#social_counts .item {
    background: linear-gradient(135deg, var(--zahra-vert-moyen), var(--zahra-vert-fonce)) !important;
    color: white !important;
    padding: 0 !important;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 !important;
    min-height: 60px !important;
    width: auto !important;
    float: none !important;
}

#social_counts .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(227, 193, 102, 0.2), transparent);
    transition: left 0.5s ease;
}

#social_counts .item:hover::before {
    left: 100%;
}

#social_counts .item:hover {
    background: linear-gradient(135deg, var(--zahra-dore-clair), var(--zahra-dore-profond));
    color: var(--zahra-vert-fonce);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(227, 193, 102, 0.4);
}

#social_counts .item i {
    font-size: 32px;
    transition: transform 0.3s ease;
}

#social_counts .item:hover i {
    transform: scale(1.15);
}

/* Responsive réseaux sociaux sidebar */
@media (max-width: 767px) {
    #social_counts.square {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    #social_counts .item {
        min-height: 55px;
    }
    
    #social_counts .item i {
        font-size: 26px;
    }
}

@media (max-width: 479px) {
    #social_counts.square {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    #social_counts .item {
        min-height: 50px;
    }
    
    #social_counts .item i {
        font-size: 24px;
    }
}

