/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */




/* =boutons de partage réseaux sociaux 
------------------------------------------------------- */
/* Désactivation totale de l'icône de lien externe pour le bloc de partage */
#main-content .custom-share-links li a.external-link::after,
#main-content .custom-share-links li a::after {
    content: "" !important;
    display: none !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}

/* On s'assure que rien ne vient décaler l'icône de réseau social */
.custom-share-links li a {
    position: relative !important;
}

/* Container et titre */
.custom-share-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
}

.share-title {
    font-weight: bold;
    color: #333;
}

/* Suppression des puces et alignement */
ul.custom-share-links {
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
}

ul.custom-share-links li {
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Transformation des liens en cercles avec icônes */
.custom-share-links li a {
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    text-align: center !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    font-family: "ETmodules" !important; /* Police d'icônes Divi */
    font-size: 20px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

/* Codes spécifiques des icônes Divi */
.share-facebook::before { content: "\e093"; }
.share-x::before        { content: "\e094"; }
.share-linkedin::before { content: "\e09d"; }
.share-whatsapp::before { content: "\e0ad"; }

/* Couleurs de fond */
.share-facebook { background-color: #3b5998 !important; }
.share-x        { background-color: #000000 !important; }
.share-linkedin { background-color: #0077b5 !important; }
.share-whatsapp { background-color: #25d366 !important; }

/* Effet au survol */
.custom-share-links li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0.9;
}

/* Supprimer l'icône de lien externe uniquement pour les boutons de partage */
.custom-share-links li a::after {
    content: none !important;
    display: none !important;
    margin: 0 !important;
}

/* Ajustement pour s'assurer que l'icône Divi reste centrée */
.custom-share-links li a::before {
    margin-right: 0 !important;
}

/* Suppression définitive de l'émoji lien externe sur les boutons de partage */
body .custom-share-container ul.custom-share-links li a.external-link::after {
    content: "" !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    position: absolute !important; /* Sort le résidu du flux */
}

/* On s'assure que l'icône de partage (::before) ne bouge pas */
body .custom-share-container ul.custom-share-links li a.external-link::before {
    margin: 0 !important;
    display: inline-block !important;
}