/**
 * Services Single Page Styles
 * Styles pour la page de détail d'un service
 */

/* Bouton de partage de service */
.share-activity-btn {
    background: transparent;
    color: #5F2C70;
    padding: 15px 20px;
    border:none;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.share-activity-btn:hover {
    background: #5F2C70;
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    .d-flex.gap-3 {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem !important;
    }
    
    .share-activity-btn {
        justify-content: center;
        width: 100%;
    }
}

/* Modal de partage - Identique aux témoignages */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

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

.share-modal {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-modal-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.share-modal-header h5 {
    margin: 0;
    color: #5F2C70;
    font-weight: 600;
    flex: 1;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    color: #5F2C70;
}

.share-modal-body {
    padding: 0 1.5rem 1.5rem;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.share-options .btn {
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

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

.share-options .btn-primary {
    background: var(--purple-primary, #5F2C70);
    border-color: var(--purple-primary, #5F2C70);
    color: white;
}

.share-options .btn-primary:hover {
    background: var(--purple-secondary, #250831);
    border-color: var(--purple-secondary, #250831);
}

.share-options .btn-outline-primary {
    color: var(--purple-primary, #5F2C70);
    border-color: var(--purple-primary, #5F2C70);
    background: transparent;
}

.share-options .btn-outline-primary:hover {
    background: var(--purple-primary, #5F2C70);
    border-color: var(--purple-primary, #5F2C70);
    color: white;
}

.share-options .btn-outline-secondary {
    color: var(--purple-secondary, #250831);
    border-color: var(--purple-secondary, #250831);
    background: transparent;
}

.share-options .btn-outline-secondary:hover {
    background: var(--purple-secondary, #250831);
    border-color: var(--purple-secondary, #250831);
    color: white;
}

/* Animation pour les alertes */
#shareSuccess {
    animation: slideInUp 0.3s ease-out;
}

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

/* Responsive */
@media (max-width: 480px) {
    .share-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .share-modal-header {
        padding: 1rem 1rem 0;
        margin-bottom: 1rem;
    }
    
    .share-modal-body {
        padding: 0 1rem 1rem;
    }
}

/* Description content - réduire les marges des paragraphes */
.event-details .description-content p {
    margin-bottom: 0.5rem;
}

.event-details .description-content p:last-child {
    margin-bottom: 0;
}
