/* Styles pour le modal de partage */
.share-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s;
}

.share-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 15% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s;
}

.share-modal-header {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-modal-header h5 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.share-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.share-close:hover,
.share-close:focus {
    color: black;
    text-decoration: none;
}

.share-modal-body {
    padding: 15px;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.share-option:hover {
    background-color: #f5f5f5;
}

.share-option i {
    font-size: 24px;
    margin-bottom: 8px;
}

.share-option span {
    font-size: 14px;
}

/* Couleurs spécifiques pour les icônes */
#shareFacebook i {
    color: #3b5998;
}

#shareTwitter i {
    color: #1da1f2;
}

#shareLinkedIn i {
    color: #0077b5;
}

#shareWhatsApp i {
    color: #25d366;
}

#shareEmail i {
    color: #ea4335;
}

#shareCopy i {
    color: #6c757d;
}

/* Toast pour la notification de copie */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
}

.toast-notification.show {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive */
@media (max-width: 576px) {
    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .share-modal-content {
        margin: 30% auto;
        width: 95%;
    }
}
