
/* Copyright Intelligence Universelle */ 

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Pour aligner verticalement les éléments */
    padding: 10px 15px; /* Ajout d'un padding pour l'espacement autour des éléments */
}
.publication-date {
    font-size: 12px;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    display: flex;
    align-items: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #f9f9f9, #e0e0e0);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.publication-date::before {
    content: '';
    background-image: url('/assets/images/calendar.png');
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



.share-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    position: relative;
}

.share-trigger {
    display: inline-flex; /* Use flexbox for centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.share-trigger:hover,
.share-trigger.active {
    background-color: #d4d4d4;
    transform: rotate(10deg) scale(1.1);
}

.share-buttons {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border-radius: 25px;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}


.button {
    display: inline-flex; /* Use flexbox for centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    margin-bottom: 10px; /* Space between buttons */
}

.button:hover {
    background-color: #ccc;
    transform: scale(1.1);
}

.icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.tooltip {
    visibility: hidden;
    width: max-content;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 12px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.button:hover .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}


/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .share-trigger {

        background: none;
    }
    .share-trigger .icon {
        width: 75%; /* Make buttons full width */
        height: 75%; /* Adjust icon size */
    }
    .tooltip {
        white-space: normal; /* Permettre au texte de sauter à la ligne */
        width: auto; /* Ajuster la largeur automatiquement */
        left: 50%; /* Centrer le tooltip */
        bottom: 91%; /* Descendre un peu plus le tooltip */
        font-size: 10px; /* Taille de police plus petite pour les petits écrans */
        padding: 6px 15px; /* Augmenter le padding pour un cadre plus grand */
    }

    .button {
        width: 110%; /* Make buttons full width */
        display: flex; /* Use flexbox for better alignment */
        justify-content: center; /* Center the content */
        margin-bottom: 7px; /* Space between buttons */
    }

    .icon {
        width: 24px; /* Adjust icon size */
        height: 24px; /* Adjust icon size */
    }
}
